Handle null a bit more carefully.
[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.5cvs.
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.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
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/llvm-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/llvm-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 LLVM_ON_UNIX LLVM_ON_WIN32 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 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.5cvs 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.5cvs:";;
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.5cvs
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.5cvs, 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       "llvm-java")
1595
1596 subdirs="$subdirs projects/llvm-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       "llvm-poolalloc")
1607
1608 subdirs="$subdirs projects/llvm-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     LLVM_ON_UNIX=1
1760
1761     LLVM_ON_WIN32=0
1762
1763     ;;
1764   Win32)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=0
1771
1772     LLVM_ON_WIN32=1
1773
1774     ;;
1775 esac
1776
1777 case $target in
1778   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1779
1780   ;;
1781 esac
1782
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786   echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788   case $target in
1789   i?86-*)                 llvm_cv_target_arch="x86" ;;
1790   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1791   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1792   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1793   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1794   *)                      llvm_cv_target_arch="Unknown" ;;
1795 esac
1796 fi
1797 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1798 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1799
1800 if test "$llvm_cv_target_arch" = "Unknown" ; then
1801   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1802 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1803 fi
1804
1805 ARCH=$llvm_cv_target_arch
1806
1807
1808 ac_ext=c
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 if test -n "$ac_tool_prefix"; then
1814   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   if test -n "$CC"; then
1822   ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827   IFS=$as_save_IFS
1828   test -z "$as_dir" && as_dir=.
1829   for ac_exec_ext in '' $ac_executable_extensions; do
1830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833     break 2
1834   fi
1835 done
1836 done
1837
1838 fi
1839 fi
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842   echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845   echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 fi
1848
1849 fi
1850 if test -z "$ac_cv_prog_CC"; then
1851   ac_ct_CC=$CC
1852   # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$ac_ct_CC"; then
1860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_ac_ct_CC="gcc"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879 if test -n "$ac_ct_CC"; then
1880   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881 echo "${ECHO_T}$ac_ct_CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887   CC=$ac_ct_CC
1888 else
1889   CC="$ac_cv_prog_CC"
1890 fi
1891
1892 if test -z "$CC"; then
1893   if test -n "$ac_tool_prefix"; then
1894   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$CC"; then
1902   ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_CC="${ac_tool_prefix}cc"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922   echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929 fi
1930 if test -z "$ac_cv_prog_CC"; then
1931   ac_ct_CC=$CC
1932   # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   if test -n "$ac_ct_CC"; then
1940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945   IFS=$as_save_IFS
1946   test -z "$as_dir" && as_dir=.
1947   for ac_exec_ext in '' $ac_executable_extensions; do
1948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949     ac_cv_prog_ac_ct_CC="cc"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1962 else
1963   echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967   CC=$ac_ct_CC
1968 else
1969   CC="$ac_cv_prog_CC"
1970 fi
1971
1972 fi
1973 if test -z "$CC"; then
1974   # Extract the first word of "cc", so it can be a program name with args.
1975 set dummy cc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$CC"; then
1982   ac_cv_prog_CC="$CC" # Let the user override the test.
1983 else
1984   ac_prog_rejected=no
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993        ac_prog_rejected=yes
1994        continue
1995      fi
1996     ac_cv_prog_CC="cc"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002
2003 if test $ac_prog_rejected = yes; then
2004   # We found a bogon in the path, so make sure we never use it.
2005   set dummy $ac_cv_prog_CC
2006   shift
2007   if test $# != 0; then
2008     # We chose a different compiler from the bogus one.
2009     # However, it has the same basename, so the bogon will be chosen
2010     # first if we set CC to just the basename; use the full file name.
2011     shift
2012     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013   fi
2014 fi
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019   echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2021 else
2022   echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2024 fi
2025
2026 fi
2027 if test -z "$CC"; then
2028   if test -n "$ac_tool_prefix"; then
2029   for ac_prog in cl
2030   do
2031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   if test -n "$CC"; then
2039   ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050     break 2
2051   fi
2052 done
2053 done
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6
2061 else
2062   echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066     test -n "$CC" && break
2067   done
2068 fi
2069 if test -z "$CC"; then
2070   ac_ct_CC=$CC
2071   for ac_prog in cl
2072 do
2073   # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$ac_ct_CC"; then
2081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090     ac_cv_prog_ac_ct_CC="$ac_prog"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096
2097 fi
2098 fi
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2103 else
2104   echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2106 fi
2107
2108   test -n "$ac_ct_CC" && break
2109 done
2110
2111   CC=$ac_ct_CC
2112 fi
2113
2114 fi
2115
2116
2117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&2;}
2121    { (exit 1); exit 1; }; }
2122
2123 # Provide some information about the compiler.
2124 echo "$as_me:$LINENO:" \
2125      "checking for C compiler version" >&5
2126 ac_compiler=`set X $ac_compile; echo $2`
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2128   (eval $ac_compiler --version </dev/null >&5) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2133   (eval $ac_compiler -v </dev/null >&5) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }
2137 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2138   (eval $ac_compiler -V </dev/null >&5) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2167   (eval $ac_link_default) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; then
2171   # Find the output, starting from the most likely.  This scheme is
2172 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2173 # resort.
2174
2175 # Be careful to initialize this variable, since it used to be cached.
2176 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2177 ac_cv_exeext=
2178 # b.out is created by i960 compilers.
2179 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2180 do
2181   test -f "$ac_file" || continue
2182   case $ac_file in
2183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2184         ;;
2185     conftest.$ac_ext )
2186         # This is the source file.
2187         ;;
2188     [ab].out )
2189         # We found the default executable, but exeext='' is most
2190         # certainly right.
2191         break;;
2192     *.* )
2193         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194         # FIXME: I believe we export ac_cv_exeext for Libtool,
2195         # but it would be cool to find out if it's true.  Does anybody
2196         # maintain Libtool? --akim.
2197         export ac_cv_exeext
2198         break;;
2199     * )
2200         break;;
2201   esac
2202 done
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211    { (exit 77); exit 77; }; }
2212 fi
2213
2214 ac_exeext=$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6
2217
2218 # Check the compiler produces executables we can run.  If not, either
2219 # the compiler is broken, or we cross compile.
2220 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225   if { ac_try='./$ac_file'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; }; then
2231     cross_compiling=no
2232   else
2233     if test "$cross_compiling" = maybe; then
2234         cross_compiling=yes
2235     else
2236         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&2;}
2242    { (exit 1); exit 1; }; }
2243     fi
2244   fi
2245 fi
2246 echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6
2248
2249 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2250 ac_clean_files=$ac_clean_files_save
2251 # Check the compiler produces executables we can run.  If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2255 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256 echo "${ECHO_T}$cross_compiling" >&6
2257
2258 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261   (eval $ac_link) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; then
2265   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2267 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 # `rm'.
2269 for ac_file in conftest.exe conftest conftest.*; do
2270   test -f "$ac_file" || continue
2271   case $ac_file in
2272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2273     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274           export ac_cv_exeext
2275           break;;
2276     * ) break;;
2277   esac
2278 done
2279 else
2280   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&2;}
2284    { (exit 1); exit 1; }; }
2285 fi
2286
2287 rm -f conftest$ac_cv_exeext
2288 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289 echo "${ECHO_T}$ac_cv_exeext" >&6
2290
2291 rm -f conftest.$ac_ext
2292 EXEEXT=$ac_cv_exeext
2293 ac_exeext=$EXEEXT
2294 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2296 if test "${ac_cv_objext+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305
2306 int
2307 main ()
2308 {
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.o conftest.obj
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316   (eval $ac_compile) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; then
2320   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321   case $ac_file in
2322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2323     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324        break;;
2325   esac
2326 done
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&2;}
2335    { (exit 1); exit 1; }; }
2336 fi
2337
2338 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 fi
2340 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2341 echo "${ECHO_T}$ac_cv_objext" >&6
2342 OBJEXT=$ac_cv_objext
2343 ac_objext=$OBJEXT
2344 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2345 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2346 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355
2356 int
2357 main ()
2358 {
2359 #ifndef __GNUC__
2360        choke me
2361 #endif
2362
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369   (eval $ac_compile) 2>conftest.er1
2370   ac_status=$?
2371   grep -v '^ *+' conftest.er1 >conftest.err
2372   rm -f conftest.er1
2373   cat conftest.err >&5
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); } &&
2376          { ac_try='test -z "$ac_c_werror_flag"
2377                          || test ! -s conftest.err'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; } &&
2383          { ac_try='test -s conftest.$ac_objext'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; }; then
2389   ac_compiler_gnu=yes
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_compiler_gnu=no
2395 fi
2396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2397 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2398
2399 fi
2400 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402 GCC=`test $ac_compiler_gnu = yes && echo yes`
2403 ac_test_CFLAGS=${CFLAGS+set}
2404 ac_save_CFLAGS=$CFLAGS
2405 CFLAGS="-g"
2406 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408 if test "${ac_cv_prog_cc_g+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h.  */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h.  */
2417
2418 int
2419 main ()
2420 {
2421
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428   (eval $ac_compile) 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } &&
2435          { ac_try='test -z "$ac_c_werror_flag"
2436                          || test ! -s conftest.err'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; } &&
2442          { ac_try='test -s conftest.$ac_objext'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; }; then
2448   ac_cv_prog_cc_g=yes
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_cv_prog_cc_g=no
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460   CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462   if test "$GCC" = yes; then
2463     CFLAGS="-g -O2"
2464   else
2465     CFLAGS="-g"
2466   fi
2467 else
2468   if test "$GCC" = yes; then
2469     CFLAGS="-O2"
2470   else
2471     CFLAGS=
2472   fi
2473 fi
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   ac_cv_prog_cc_stdc=no
2480 ac_save_CC=$CC
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487 #include <stdarg.h>
2488 #include <stdio.h>
2489 #include <sys/types.h>
2490 #include <sys/stat.h>
2491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2492 struct buf { int x; };
2493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494 static char *e (p, i)
2495      char **p;
2496      int i;
2497 {
2498   return p[i];
2499 }
2500 static char *f (char * (*g) (char **, int), char **p, ...)
2501 {
2502   char *s;
2503   va_list v;
2504   va_start (v,p);
2505   s = g (p, va_arg (v,int));
2506   va_end (v);
2507   return s;
2508 }
2509
2510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2511    function prototypes and stuff, but not '\xHH' hex character constants.
2512    These don't provoke an error unfortunately, instead are silently treated
2513    as 'x'.  The following induces an error, until -std1 is added to get
2514    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2515    array size at least.  It's necessary to write '\x00'==0 to get something
2516    that's true only with -std1.  */
2517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2518
2519 int test (int i, double x);
2520 struct s1 {int (*f) (int a);};
2521 struct s2 {int (*f) (double a);};
2522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2523 int argc;
2524 char **argv;
2525 int
2526 main ()
2527 {
2528 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 # Don't try gcc -ansi; that turns off useful extensions and
2534 # breaks some systems' header files.
2535 # AIX                   -qlanglvl=ansi
2536 # Ultrix and OSF/1      -std1
2537 # HP-UX 10.20 and later -Ae
2538 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2539 # SVR4                  -Xc -D__EXTENSIONS__
2540 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541 do
2542   CC="$ac_save_CC $ac_arg"
2543   rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>conftest.er1
2546   ac_status=$?
2547   grep -v '^ *+' conftest.er1 >conftest.err
2548   rm -f conftest.er1
2549   cat conftest.err >&5
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); } &&
2552          { ac_try='test -z "$ac_c_werror_flag"
2553                          || test ! -s conftest.err'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; }; then
2565   ac_cv_prog_cc_stdc=$ac_arg
2566 break
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 fi
2572 rm -f conftest.err conftest.$ac_objext
2573 done
2574 rm -f conftest.$ac_ext conftest.$ac_objext
2575 CC=$ac_save_CC
2576
2577 fi
2578
2579 case "x$ac_cv_prog_cc_stdc" in
2580   x|xno)
2581     echo "$as_me:$LINENO: result: none needed" >&5
2582 echo "${ECHO_T}none needed" >&6 ;;
2583   *)
2584     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2585 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2586     CC="$CC $ac_cv_prog_cc_stdc" ;;
2587 esac
2588
2589 # Some people use a C++ compiler to compile C.  Since we use `exit',
2590 # in C++ we need to declare it.  In case someone uses the same compiler
2591 # for both compiling C and C++ we need to have the C++ compiler decide
2592 # the declaration of exit, since it's the most demanding environment.
2593 cat >conftest.$ac_ext <<_ACEOF
2594 #ifndef __cplusplus
2595   choke me
2596 #endif
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   for ac_declaration in \
2621    '' \
2622    'extern "C" void std::exit (int) throw (); using std::exit;' \
2623    'extern "C" void std::exit (int); using std::exit;' \
2624    'extern "C" void exit (int) throw ();' \
2625    'extern "C" void exit (int);' \
2626    'void exit (int);'
2627 do
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 $ac_declaration
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639 exit (42);
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_c_werror_flag"
2654                          || test ! -s conftest.err'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   :
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 continue
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674   cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h.  */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h.  */
2680 $ac_declaration
2681 int
2682 main ()
2683 {
2684 exit (42);
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691   (eval $ac_compile) 2>conftest.er1
2692   ac_status=$?
2693   grep -v '^ *+' conftest.er1 >conftest.err
2694   rm -f conftest.er1
2695   cat conftest.err >&5
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); } &&
2698          { ac_try='test -z "$ac_c_werror_flag"
2699                          || test ! -s conftest.err'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; } &&
2705          { ac_try='test -s conftest.$ac_objext'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   break
2712 else
2713   echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 fi
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 done
2719 rm -f conftest*
2720 if test -n "$ac_declaration"; then
2721   echo '#ifdef __cplusplus' >>confdefs.h
2722   echo $ac_declaration      >>confdefs.h
2723   echo '#endif'             >>confdefs.h
2724 fi
2725
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 fi
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2740 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2741 if test "${ac_cv_c_bigendian+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   # See if sys/param.h defines the BYTE_ORDER macro.
2745 cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #include <sys/types.h>
2752 #include <sys/param.h>
2753
2754 int
2755 main ()
2756 {
2757 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2758  bogus endian macros
2759 #endif
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_c_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   # It does; now see whether it defined to BIG_ENDIAN or not.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794 #include <sys/types.h>
2795 #include <sys/param.h>
2796
2797 int
2798 main ()
2799 {
2800 #if BYTE_ORDER != BIG_ENDIAN
2801  not big endian
2802 #endif
2803
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810   (eval $ac_compile) 2>conftest.er1
2811   ac_status=$?
2812   grep -v '^ *+' conftest.er1 >conftest.err
2813   rm -f conftest.er1
2814   cat conftest.err >&5
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); } &&
2817          { ac_try='test -z "$ac_c_werror_flag"
2818                          || test ! -s conftest.err'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; } &&
2824          { ac_try='test -s conftest.$ac_objext'
2825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826   (eval $ac_try) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; }; then
2830   ac_cv_c_bigendian=yes
2831 else
2832   echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835 ac_cv_c_bigendian=no
2836 fi
2837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838 else
2839   echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 # It does not; compile a test program.
2843 if test "$cross_compiling" = yes; then
2844   # try to guess the endianness by grepping values into an object file
2845   ac_cv_c_bigendian=unknown
2846   cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2853 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2854 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2855 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2856 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2857 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2858 int
2859 main ()
2860 {
2861  _ascii (); _ebcdic ();
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868   (eval $ac_compile) 2>conftest.er1
2869   ac_status=$?
2870   grep -v '^ *+' conftest.er1 >conftest.err
2871   rm -f conftest.er1
2872   cat conftest.err >&5
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); } &&
2875          { ac_try='test -z "$ac_c_werror_flag"
2876                          || test ! -s conftest.err'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; } &&
2882          { ac_try='test -s conftest.$ac_objext'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; }; then
2888   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2889   ac_cv_c_bigendian=yes
2890 fi
2891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2892   if test "$ac_cv_c_bigendian" = unknown; then
2893     ac_cv_c_bigendian=no
2894   else
2895     # finding both strings is unlikely to happen, but who knows?
2896     ac_cv_c_bigendian=unknown
2897   fi
2898 fi
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 fi
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 else
2906   cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 int
2913 main ()
2914 {
2915   /* Are we little or big endian?  From Harbison&Steele.  */
2916   union
2917   {
2918     long l;
2919     char c[sizeof (long)];
2920   } u;
2921   u.l = 1;
2922   exit (u.c[sizeof (long) - 1] == 1);
2923 }
2924 _ACEOF
2925 rm -f conftest$ac_exeext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927   (eval $ac_link) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; }; then
2936   ac_cv_c_bigendian=no
2937 else
2938   echo "$as_me: program exited with status $ac_status" >&5
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ( exit $ac_status )
2943 ac_cv_c_bigendian=yes
2944 fi
2945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2946 fi
2947 fi
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 fi
2950 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2951 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2952 case $ac_cv_c_bigendian in
2953   yes)
2954     ENDIAN=big
2955  ;;
2956   no)
2957     ENDIAN=little
2958  ;;
2959   *)
2960     { { echo "$as_me:$LINENO: error: unknown endianness
2961 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2962 echo "$as_me: error: unknown endianness
2963 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2964    { (exit 1); exit 1; }; } ;;
2965 esac
2966
2967
2968
2969 # Check whether --enable-optimized or --disable-optimized was given.
2970 if test "${enable_optimized+set}" = set; then
2971   enableval="$enable_optimized"
2972
2973 else
2974   enableval=no
2975 fi;
2976 if test ${enableval} = "no" ; then
2977   ENABLE_OPTIMIZED=
2978
2979 else
2980   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2981
2982 fi
2983
2984 # Check whether --enable-jit or --disable-jit was given.
2985 if test "${enable_jit+set}" = set; then
2986   enableval="$enable_jit"
2987
2988 else
2989   enableval=default
2990 fi;
2991 if test ${enableval} = "no"
2992 then
2993   JIT=
2994
2995 else
2996   case "$llvm_cv_target_arch" in
2997     x86)     JIT=TARGET_HAS_JIT=1
2998  ;;
2999     Sparc)   JIT=TARGET_HAS_JIT=1
3000  ;;
3001     PowerPC) JIT=TARGET_HAS_JIT=1
3002  ;;
3003     x86_64)  JIT=
3004  ;;
3005     *)       JIT=
3006  ;;
3007   esac
3008 fi
3009
3010 # Check whether --enable-doxygen or --disable-doxygen was given.
3011 if test "${enable_doxygen+set}" = set; then
3012   enableval="$enable_doxygen"
3013
3014 else
3015   enableval=default
3016 fi;
3017 case "$enableval" in
3018   yes) ENABLE_DOXYGEN=1
3019  ;;
3020   no)  ENABLE_DOXYGEN=0
3021  ;;
3022   default) ENABLE_DOXYGEN=0
3023  ;;
3024   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3025 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3026    { (exit 1); exit 1; }; } ;;
3027 esac
3028
3029
3030 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3031 if test "${with_llvmgccdir+set}" = set; then
3032   withval="$with_llvmgccdir"
3033
3034 else
3035   withval=default
3036 fi;
3037 case "$withval" in
3038   default) WITH_LLVMGCCDIR=default ;;
3039   /*)      WITH_LLVMGCCDIR=$withval ;;
3040   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3041 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3042    { (exit 1); exit 1; }; } ;;
3043 esac
3044
3045
3046 ac_ext=c
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3053 # On Suns, sometimes $CPP names a directory.
3054 if test -n "$CPP" && test -d "$CPP"; then
3055   CPP=
3056 fi
3057 if test -z "$CPP"; then
3058   if test "${ac_cv_prog_CPP+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061       # Double quotes because CPP needs to be expanded
3062     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3063     do
3064       ac_preproc_ok=false
3065 for ac_c_preproc_warn_flag in '' yes
3066 do
3067   # Use a header file that comes with gcc, so configuring glibc
3068   # with a fresh cross-compiler works.
3069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070   # <limits.h> exists even on freestanding compilers.
3071   # On the NeXT, cc -E runs the code through the compiler's parser,
3072   # not just through cpp. "Syntax error" is here to catch this case.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #ifdef __STDC__
3080 # include <limits.h>
3081 #else
3082 # include <assert.h>
3083 #endif
3084                      Syntax error
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } >/dev/null; then
3094   if test -s conftest.err; then
3095     ac_cpp_err=$ac_c_preproc_warn_flag
3096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097   else
3098     ac_cpp_err=
3099   fi
3100 else
3101   ac_cpp_err=yes
3102 fi
3103 if test -z "$ac_cpp_err"; then
3104   :
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109   # Broken: fails on valid input.
3110 continue
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113
3114   # OK, works on sane cases.  Now check whether non-existent headers
3115   # can be detected and how.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #include <ac_nonexistent.h>
3123 _ACEOF
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } >/dev/null; then
3132   if test -s conftest.err; then
3133     ac_cpp_err=$ac_c_preproc_warn_flag
3134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135   else
3136     ac_cpp_err=
3137   fi
3138 else
3139   ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142   # Broken: success on invalid input.
3143 continue
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148   # Passes both tests.
3149 ac_preproc_ok=:
3150 break
3151 fi
3152 rm -f conftest.err conftest.$ac_ext
3153
3154 done
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then
3158   break
3159 fi
3160
3161     done
3162     ac_cv_prog_CPP=$CPP
3163
3164 fi
3165   CPP=$ac_cv_prog_CPP
3166 else
3167   ac_cv_prog_CPP=$CPP
3168 fi
3169 echo "$as_me:$LINENO: result: $CPP" >&5
3170 echo "${ECHO_T}$CPP" >&6
3171 ac_preproc_ok=false
3172 for ac_c_preproc_warn_flag in '' yes
3173 do
3174   # Use a header file that comes with gcc, so configuring glibc
3175   # with a fresh cross-compiler works.
3176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177   # <limits.h> exists even on freestanding compilers.
3178   # On the NeXT, cc -E runs the code through the compiler's parser,
3179   # not just through cpp. "Syntax error" is here to catch this case.
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186 #ifdef __STDC__
3187 # include <limits.h>
3188 #else
3189 # include <assert.h>
3190 #endif
3191                      Syntax error
3192 _ACEOF
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } >/dev/null; then
3201   if test -s conftest.err; then
3202     ac_cpp_err=$ac_c_preproc_warn_flag
3203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204   else
3205     ac_cpp_err=
3206   fi
3207 else
3208   ac_cpp_err=yes
3209 fi
3210 if test -z "$ac_cpp_err"; then
3211   :
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216   # Broken: fails on valid input.
3217 continue
3218 fi
3219 rm -f conftest.err conftest.$ac_ext
3220
3221   # OK, works on sane cases.  Now check whether non-existent headers
3222   # can be detected and how.
3223   cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #include <ac_nonexistent.h>
3230 _ACEOF
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } >/dev/null; then
3239   if test -s conftest.err; then
3240     ac_cpp_err=$ac_c_preproc_warn_flag
3241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242   else
3243     ac_cpp_err=
3244   fi
3245 else
3246   ac_cpp_err=yes
3247 fi
3248 if test -z "$ac_cpp_err"; then
3249   # Broken: success on invalid input.
3250 continue
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255   # Passes both tests.
3256 ac_preproc_ok=:
3257 break
3258 fi
3259 rm -f conftest.err conftest.$ac_ext
3260
3261 done
3262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263 rm -f conftest.err conftest.$ac_ext
3264 if $ac_preproc_ok; then
3265   :
3266 else
3267   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3268 See \`config.log' for more details." >&5
3269 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3270 See \`config.log' for more details." >&2;}
3271    { (exit 1); exit 1; }; }
3272 fi
3273
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 if test -n "$ac_tool_prefix"; then
3286   for ac_prog in gcc
3287   do
3288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_CC+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   if test -n "$CC"; then
3296   ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_exec_ext in '' $ac_executable_extensions; do
3304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311
3312 fi
3313 fi
3314 CC=$ac_cv_prog_CC
3315 if test -n "$CC"; then
3316   echo "$as_me:$LINENO: result: $CC" >&5
3317 echo "${ECHO_T}$CC" >&6
3318 else
3319   echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 fi
3322
3323     test -n "$CC" && break
3324   done
3325 fi
3326 if test -z "$CC"; then
3327   ac_ct_CC=$CC
3328   for ac_prog in gcc
3329 do
3330   # Extract the first word of "$ac_prog", so it can be a program name with args.
3331 set dummy $ac_prog; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$ac_ct_CC"; then
3338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_ac_ct_CC="$ac_prog"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3359 echo "${ECHO_T}$ac_ct_CC" >&6
3360 else
3361   echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363 fi
3364
3365   test -n "$ac_ct_CC" && break
3366 done
3367
3368   CC=$ac_ct_CC
3369 fi
3370
3371
3372 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3373 See \`config.log' for more details." >&5
3374 echo "$as_me: error: no acceptable C compiler found in \$PATH
3375 See \`config.log' for more details." >&2;}
3376    { (exit 1); exit 1; }; }
3377
3378 # Provide some information about the compiler.
3379 echo "$as_me:$LINENO:" \
3380      "checking for C compiler version" >&5
3381 ac_compiler=`set X $ac_compile; echo $2`
3382 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3383   (eval $ac_compiler --version </dev/null >&5) 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }
3387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3388   (eval $ac_compiler -v </dev/null >&5) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }
3392 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3393   (eval $ac_compiler -V </dev/null >&5) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }
3397
3398 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3399 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3400 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413 #ifndef __GNUC__
3414        choke me
3415 #endif
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423   (eval $ac_compile) 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } &&
3430          { ac_try='test -z "$ac_c_werror_flag"
3431                          || test ! -s conftest.err'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; } &&
3437          { ac_try='test -s conftest.$ac_objext'
3438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439   (eval $ac_try) 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }; }; then
3443   ac_compiler_gnu=yes
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 ac_compiler_gnu=no
3449 fi
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453 fi
3454 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3455 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3456 GCC=`test $ac_compiler_gnu = yes && echo yes`
3457 ac_test_CFLAGS=${CFLAGS+set}
3458 ac_save_CFLAGS=$CFLAGS
3459 CFLAGS="-g"
3460 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3462 if test "${ac_cv_prog_cc_g+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482   (eval $ac_compile) 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } &&
3489          { ac_try='test -z "$ac_c_werror_flag"
3490                          || test ! -s conftest.err'
3491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492   (eval $ac_try) 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }; } &&
3496          { ac_try='test -s conftest.$ac_objext'
3497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; }; then
3502   ac_cv_prog_cc_g=yes
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 ac_cv_prog_cc_g=no
3508 fi
3509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3513 if test "$ac_test_CFLAGS" = set; then
3514   CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516   if test "$GCC" = yes; then
3517     CFLAGS="-g -O2"
3518   else
3519     CFLAGS="-g"
3520   fi
3521 else
3522   if test "$GCC" = yes; then
3523     CFLAGS="-O2"
3524   else
3525     CFLAGS=
3526   fi
3527 fi
3528 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3529 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3530 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   ac_cv_prog_cc_stdc=no
3534 ac_save_CC=$CC
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541 #include <stdarg.h>
3542 #include <stdio.h>
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3549      char **p;
3550      int i;
3551 {
3552   return p[i];
3553 }
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3555 {
3556   char *s;
3557   va_list v;
3558   va_start (v,p);
3559   s = g (p, va_arg (v,int));
3560   va_end (v);
3561   return s;
3562 }
3563
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3565    function prototypes and stuff, but not '\xHH' hex character constants.
3566    These don't provoke an error unfortunately, instead are silently treated
3567    as 'x'.  The following induces an error, until -std1 is added to get
3568    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3569    array size at least.  It's necessary to write '\x00'==0 to get something
3570    that's true only with -std1.  */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
3573 int test (int i, double x);
3574 struct s1 {int (*f) (int a);};
3575 struct s2 {int (*f) (double a);};
3576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577 int argc;
3578 char **argv;
3579 int
3580 main ()
3581 {
3582 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 # Don't try gcc -ansi; that turns off useful extensions and
3588 # breaks some systems' header files.
3589 # AIX                   -qlanglvl=ansi
3590 # Ultrix and OSF/1      -std1
3591 # HP-UX 10.20 and later -Ae
3592 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3593 # SVR4                  -Xc -D__EXTENSIONS__
3594 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 do
3596   CC="$ac_save_CC $ac_arg"
3597   rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          { ac_try='test -z "$ac_c_werror_flag"
3607                          || test ! -s conftest.err'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; } &&
3613          { ac_try='test -s conftest.$ac_objext'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   ac_cv_prog_cc_stdc=$ac_arg
3620 break
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 fi
3626 rm -f conftest.err conftest.$ac_objext
3627 done
3628 rm -f conftest.$ac_ext conftest.$ac_objext
3629 CC=$ac_save_CC
3630
3631 fi
3632
3633 case "x$ac_cv_prog_cc_stdc" in
3634   x|xno)
3635     echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6 ;;
3637   *)
3638     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3640     CC="$CC $ac_cv_prog_cc_stdc" ;;
3641 esac
3642
3643 # Some people use a C++ compiler to compile C.  Since we use `exit',
3644 # in C++ we need to declare it.  In case someone uses the same compiler
3645 # for both compiling C and C++ we need to have the C++ compiler decide
3646 # the declaration of exit, since it's the most demanding environment.
3647 cat >conftest.$ac_ext <<_ACEOF
3648 #ifndef __cplusplus
3649   choke me
3650 #endif
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654   (eval $ac_compile) 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } &&
3661          { ac_try='test -z "$ac_c_werror_flag"
3662                          || test ! -s conftest.err'
3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; } &&
3668          { ac_try='test -s conftest.$ac_objext'
3669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; }; then
3674   for ac_declaration in \
3675    '' \
3676    'extern "C" void std::exit (int) throw (); using std::exit;' \
3677    'extern "C" void std::exit (int); using std::exit;' \
3678    'extern "C" void exit (int) throw ();' \
3679    'extern "C" void exit (int);' \
3680    'void exit (int);'
3681 do
3682   cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688 $ac_declaration
3689 #include <stdlib.h>
3690 int
3691 main ()
3692 {
3693 exit (42);
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700   (eval $ac_compile) 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } &&
3707          { ac_try='test -z "$ac_c_werror_flag"
3708                          || test ! -s conftest.err'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; } &&
3714          { ac_try='test -s conftest.$ac_objext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   :
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 continue
3726 fi
3727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728   cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734 $ac_declaration
3735 int
3736 main ()
3737 {
3738 exit (42);
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745   (eval $ac_compile) 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } &&
3752          { ac_try='test -z "$ac_c_werror_flag"
3753                          || test ! -s conftest.err'
3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; } &&
3759          { ac_try='test -s conftest.$ac_objext'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; }; then
3765   break
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 fi
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 done
3773 rm -f conftest*
3774 if test -n "$ac_declaration"; then
3775   echo '#ifdef __cplusplus' >>confdefs.h
3776   echo $ac_declaration      >>confdefs.h
3777   echo '#endif'             >>confdefs.h
3778 fi
3779
3780 else
3781   echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 fi
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 ac_ext=cc
3793 ac_cpp='$CXXCPP $CPPFLAGS'
3794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3797 if test -n "$ac_tool_prefix"; then
3798   for ac_prog in $CCC g++
3799   do
3800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_CXX+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -n "$CXX"; then
3808   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for ac_exec_ext in '' $ac_executable_extensions; do
3816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822 done
3823
3824 fi
3825 fi
3826 CXX=$ac_cv_prog_CXX
3827 if test -n "$CXX"; then
3828   echo "$as_me:$LINENO: result: $CXX" >&5
3829 echo "${ECHO_T}$CXX" >&6
3830 else
3831   echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3833 fi
3834
3835     test -n "$CXX" && break
3836   done
3837 fi
3838 if test -z "$CXX"; then
3839   ac_ct_CXX=$CXX
3840   for ac_prog in $CCC g++
3841 do
3842   # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   if test -n "$ac_ct_CXX"; then
3850   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857   for ac_exec_ext in '' $ac_executable_extensions; do
3858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859     ac_cv_prog_ac_ct_CXX="$ac_prog"
3860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864 done
3865
3866 fi
3867 fi
3868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3869 if test -n "$ac_ct_CXX"; then
3870   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3871 echo "${ECHO_T}$ac_ct_CXX" >&6
3872 else
3873   echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875 fi
3876
3877   test -n "$ac_ct_CXX" && break
3878 done
3879 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3880
3881   CXX=$ac_ct_CXX
3882 fi
3883
3884
3885 # Provide some information about the compiler.
3886 echo "$as_me:$LINENO:" \
3887      "checking for C++ compiler version" >&5
3888 ac_compiler=`set X $ac_compile; echo $2`
3889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3890   (eval $ac_compiler --version </dev/null >&5) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }
3894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3895   (eval $ac_compiler -v </dev/null >&5) 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }
3899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3900   (eval $ac_compiler -V </dev/null >&5) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }
3904
3905 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920 #ifndef __GNUC__
3921        choke me
3922 #endif
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930   (eval $ac_compile) 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } &&
3937          { ac_try='test -z "$ac_cxx_werror_flag"
3938                          || test ! -s conftest.err'
3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940   (eval $ac_try) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; } &&
3944          { ac_try='test -s conftest.$ac_objext'
3945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946   (eval $ac_try) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }; }; then
3950   ac_compiler_gnu=yes
3951 else
3952   echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 ac_compiler_gnu=no
3956 fi
3957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3959
3960 fi
3961 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3962 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3963 GXX=`test $ac_compiler_gnu = yes && echo yes`
3964 ac_test_CXXFLAGS=${CXXFLAGS+set}
3965 ac_save_CXXFLAGS=$CXXFLAGS
3966 CXXFLAGS="-g"
3967 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3968 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3969 if test "${ac_cv_prog_cxx_g+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h.  */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h.  */
3978
3979 int
3980 main ()
3981 {
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989   (eval $ac_compile) 2>conftest.er1
3990   ac_status=$?
3991   grep -v '^ *+' conftest.er1 >conftest.err
3992   rm -f conftest.er1
3993   cat conftest.err >&5
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); } &&
3996          { ac_try='test -z "$ac_cxx_werror_flag"
3997                          || test ! -s conftest.err'
3998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999   (eval $ac_try) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; } &&
4003          { ac_try='test -s conftest.$ac_objext'
4004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005   (eval $ac_try) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; }; then
4009   ac_cv_prog_cxx_g=yes
4010 else
4011   echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 ac_cv_prog_cxx_g=no
4015 fi
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 fi
4018 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4020 if test "$ac_test_CXXFLAGS" = set; then
4021   CXXFLAGS=$ac_save_CXXFLAGS
4022 elif test $ac_cv_prog_cxx_g = yes; then
4023   if test "$GXX" = yes; then
4024     CXXFLAGS="-g -O2"
4025   else
4026     CXXFLAGS="-g"
4027   fi
4028 else
4029   if test "$GXX" = yes; then
4030     CXXFLAGS="-O2"
4031   else
4032     CXXFLAGS=
4033   fi
4034 fi
4035 for ac_declaration in \
4036    '' \
4037    'extern "C" void std::exit (int) throw (); using std::exit;' \
4038    'extern "C" void std::exit (int); using std::exit;' \
4039    'extern "C" void exit (int) throw ();' \
4040    'extern "C" void exit (int);' \
4041    'void exit (int);'
4042 do
4043   cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h.  */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h.  */
4049 $ac_declaration
4050 #include <stdlib.h>
4051 int
4052 main ()
4053 {
4054 exit (42);
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061   (eval $ac_compile) 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } &&
4068          { ac_try='test -z "$ac_cxx_werror_flag"
4069                          || test ! -s conftest.err'
4070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071   (eval $ac_try) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); }; } &&
4075          { ac_try='test -s conftest.$ac_objext'
4076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077   (eval $ac_try) 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   :
4082 else
4083   echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 continue
4087 fi
4088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089   cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 $ac_declaration
4096 int
4097 main ()
4098 {
4099 exit (42);
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106   (eval $ac_compile) 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } &&
4113          { ac_try='test -z "$ac_cxx_werror_flag"
4114                          || test ! -s conftest.err'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; } &&
4120          { ac_try='test -s conftest.$ac_objext'
4121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122   (eval $ac_try) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; }; then
4126   break
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 fi
4132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 done
4134 rm -f conftest*
4135 if test -n "$ac_declaration"; then
4136   echo '#ifdef __cplusplus' >>confdefs.h
4137   echo $ac_declaration      >>confdefs.h
4138   echo '#endif'             >>confdefs.h
4139 fi
4140
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147 echo "$as_me:$LINENO: checking " >&5
4148 echo $ECHO_N "checking ... $ECHO_C" >&6
4149 if test "${ac_cv_has_flex+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   for ac_prog in flex lex
4153 do
4154   # Extract the first word of "$ac_prog", so it can be a program name with args.
4155 set dummy $ac_prog; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_LEX+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test -n "$LEX"; then
4162   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167   IFS=$as_save_IFS
4168   test -z "$as_dir" && as_dir=.
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171     ac_cv_prog_LEX="$ac_prog"
4172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173     break 2
4174   fi
4175 done
4176 done
4177
4178 fi
4179 fi
4180 LEX=$ac_cv_prog_LEX
4181 if test -n "$LEX"; then
4182   echo "$as_me:$LINENO: result: $LEX" >&5
4183 echo "${ECHO_T}$LEX" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189   test -n "$LEX" && break
4190 done
4191 test -n "$LEX" || LEX=":"
4192
4193 if test -z "$LEXLIB"
4194 then
4195   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4196 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4197 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   ac_check_lib_save_LIBS=$LIBS
4201 LIBS="-lfl  $LIBS"
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208
4209 /* Override any gcc2 internal prototype to avoid an error.  */
4210 #ifdef __cplusplus
4211 extern "C"
4212 #endif
4213 /* We use char because int might match the return type of a gcc2
4214    builtin and then its argument prototype would still apply.  */
4215 char yywrap ();
4216 int
4217 main ()
4218 {
4219 yywrap ();
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226   (eval $ac_link) 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_c_werror_flag"
4234                          || test ! -s conftest.err'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; } &&
4240          { ac_try='test -s conftest$ac_exeext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_cv_lib_fl_yywrap=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_cv_lib_fl_yywrap=no
4252 fi
4253 rm -f conftest.err conftest.$ac_objext \
4254       conftest$ac_exeext conftest.$ac_ext
4255 LIBS=$ac_check_lib_save_LIBS
4256 fi
4257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4259 if test $ac_cv_lib_fl_yywrap = yes; then
4260   LEXLIB="-lfl"
4261 else
4262   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   ac_check_lib_save_LIBS=$LIBS
4268 LIBS="-ll  $LIBS"
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275
4276 /* Override any gcc2 internal prototype to avoid an error.  */
4277 #ifdef __cplusplus
4278 extern "C"
4279 #endif
4280 /* We use char because int might match the return type of a gcc2
4281    builtin and then its argument prototype would still apply.  */
4282 char yywrap ();
4283 int
4284 main ()
4285 {
4286 yywrap ();
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293   (eval $ac_link) 2>conftest.er1
4294   ac_status=$?
4295   grep -v '^ *+' conftest.er1 >conftest.err
4296   rm -f conftest.er1
4297   cat conftest.err >&5
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -z "$ac_c_werror_flag"
4301                          || test ! -s conftest.err'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; } &&
4307          { ac_try='test -s conftest$ac_exeext'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; }; then
4313   ac_cv_lib_l_yywrap=yes
4314 else
4315   echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318 ac_cv_lib_l_yywrap=no
4319 fi
4320 rm -f conftest.err conftest.$ac_objext \
4321       conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4323 fi
4324 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4325 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4326 if test $ac_cv_lib_l_yywrap = yes; then
4327   LEXLIB="-ll"
4328 fi
4329
4330 fi
4331
4332 fi
4333
4334 if test "x$LEX" != "x:"; then
4335   echo "$as_me:$LINENO: checking lex output file root" >&5
4336 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4337 if test "${ac_cv_prog_lex_root+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   # The minimal lex program is just a single line: %%.  But some broken lexes
4341 # (Solaris, I think it was) want two %% lines, so accommodate them.
4342 cat >conftest.l <<_ACEOF
4343 %%
4344 %%
4345 _ACEOF
4346 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4347   (eval $LEX conftest.l) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }
4351 if test -f lex.yy.c; then
4352   ac_cv_prog_lex_root=lex.yy
4353 elif test -f lexyy.c; then
4354   ac_cv_prog_lex_root=lexyy
4355 else
4356   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4357 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4358    { (exit 1); exit 1; }; }
4359 fi
4360 fi
4361 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4362 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4363 rm -f conftest.l
4364 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4365
4366 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4367 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4368 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   # POSIX says lex can declare yytext either as a pointer or an array; the
4372 # default is implementation-dependent. Figure out which it is, since
4373 # not all implementations provide the %pointer and %array declarations.
4374 ac_cv_prog_lex_yytext_pointer=no
4375 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4376 ac_save_LIBS=$LIBS
4377 LIBS="$LIBS $LEXLIB"
4378 cat >conftest.$ac_ext <<_ACEOF
4379 `cat $LEX_OUTPUT_ROOT.c`
4380 _ACEOF
4381 rm -f conftest.$ac_objext conftest$ac_exeext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383   (eval $ac_link) 2>conftest.er1
4384   ac_status=$?
4385   grep -v '^ *+' conftest.er1 >conftest.err
4386   rm -f conftest.er1
4387   cat conftest.err >&5
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } &&
4390          { ac_try='test -z "$ac_c_werror_flag"
4391                          || test ! -s conftest.err'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; } &&
4397          { ac_try='test -s conftest$ac_exeext'
4398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399   (eval $ac_try) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; }; then
4403   ac_cv_prog_lex_yytext_pointer=yes
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 fi
4409 rm -f conftest.err conftest.$ac_objext \
4410       conftest$ac_exeext conftest.$ac_ext
4411 LIBS=$ac_save_LIBS
4412 rm -f "${LEX_OUTPUT_ROOT}.c"
4413
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4416 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4417 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define YYTEXT_POINTER 1
4421 _ACEOF
4422
4423 fi
4424
4425 fi
4426
4427 fi
4428 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4429 echo "${ECHO_T}$ac_cv_has_flex" >&6
4430 if test "$LEX" != "flex"; then
4431   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4432 echo "$as_me: error: flex not found but required" >&2;}
4433    { (exit 1); exit 1; }; }
4434 else
4435   FLEX=flex
4436
4437 fi
4438
4439 echo "$as_me:$LINENO: checking " >&5
4440 echo $ECHO_N "checking ... $ECHO_C" >&6
4441 if test "${llvm_cv_has_bison+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   for ac_prog in 'bison -y' byacc
4445 do
4446   # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_YACC+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   if test -n "$YACC"; then
4454   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463     ac_cv_prog_YACC="$ac_prog"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469
4470 fi
4471 fi
4472 YACC=$ac_cv_prog_YACC
4473 if test -n "$YACC"; then
4474   echo "$as_me:$LINENO: result: $YACC" >&5
4475 echo "${ECHO_T}$YACC" >&6
4476 else
4477   echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479 fi
4480
4481   test -n "$YACC" && break
4482 done
4483 test -n "$YACC" || YACC="yacc"
4484
4485 fi
4486 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4487 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4488 if test "$YACC" != "bison -y"; then
4489   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4490 echo "$as_me: error: bison not found but required" >&2;}
4491    { (exit 1); exit 1; }; }
4492 else
4493   BISON=bison
4494
4495 fi
4496
4497 echo "$as_me:$LINENO: checking for GNU make" >&5
4498 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4499 if test "${llvm_cv_gnu_make_command+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   llvm_cv_gnu_make_command=''
4503  for a in "$MAKE" make gmake gnumake ; do
4504   if test -z "$a" ; then continue ; fi ;
4505   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4506   then
4507    llvm_cv_gnu_make_command=$a ;
4508    break;
4509   fi
4510  done
4511 fi
4512 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4513 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4514  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4515    ifGNUmake='' ;
4516  else
4517    ifGNUmake='#' ;
4518    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4519 echo "${ECHO_T}\"Not found\"" >&6;
4520  fi
4521
4522
4523 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4524 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4525 LN_S=$as_ln_s
4526 if test "$LN_S" = "ln -s"; then
4527   echo "$as_me:$LINENO: result: yes" >&5
4528 echo "${ECHO_T}yes" >&6
4529 else
4530   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4531 echo "${ECHO_T}no, using $LN_S" >&6
4532 fi
4533
4534 # Extract the first word of "cmp", so it can be a program name with args.
4535 set dummy cmp; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_path_CMP+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   case $CMP in
4542   [\\/]* | ?:[\\/]*)
4543   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4544   ;;
4545   *)
4546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551   for ac_exec_ext in '' $ac_executable_extensions; do
4552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555     break 2
4556   fi
4557 done
4558 done
4559
4560   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561   ;;
4562 esac
4563 fi
4564 CMP=$ac_cv_path_CMP
4565
4566 if test -n "$CMP"; then
4567   echo "$as_me:$LINENO: result: $CMP" >&5
4568 echo "${ECHO_T}$CMP" >&6
4569 else
4570   echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4572 fi
4573
4574 # Extract the first word of "cp", so it can be a program name with args.
4575 set dummy cp; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_path_CP+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   case $CP in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599
4600   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4601   ;;
4602 esac
4603 fi
4604 CP=$ac_cv_path_CP
4605
4606 if test -n "$CP"; then
4607   echo "$as_me:$LINENO: result: $CP" >&5
4608 echo "${ECHO_T}$CP" >&6
4609 else
4610   echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4612 fi
4613
4614 # Extract the first word of "date", so it can be a program name with args.
4615 set dummy date; ac_word=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_path_DATE+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   case $DATE in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639
4640   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4641   ;;
4642 esac
4643 fi
4644 DATE=$ac_cv_path_DATE
4645
4646 if test -n "$DATE"; then
4647   echo "$as_me:$LINENO: result: $DATE" >&5
4648 echo "${ECHO_T}$DATE" >&6
4649 else
4650   echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653
4654 # Extract the first word of "find", so it can be a program name with args.
4655 set dummy find; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_path_FIND+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   case $FIND in
4662   [\\/]* | ?:[\\/]*)
4663   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4664   ;;
4665   *)
4666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679
4680   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4681   ;;
4682 esac
4683 fi
4684 FIND=$ac_cv_path_FIND
4685
4686 if test -n "$FIND"; then
4687   echo "$as_me:$LINENO: result: $FIND" >&5
4688 echo "${ECHO_T}$FIND" >&6
4689 else
4690   echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692 fi
4693
4694 # Extract the first word of "grep", so it can be a program name with args.
4695 set dummy grep; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_GREP+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   case $GREP in
4702   [\\/]* | ?:[\\/]*)
4703   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4704   ;;
4705   *)
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719
4720   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4721   ;;
4722 esac
4723 fi
4724 GREP=$ac_cv_path_GREP
4725
4726 if test -n "$GREP"; then
4727   echo "$as_me:$LINENO: result: $GREP" >&5
4728 echo "${ECHO_T}$GREP" >&6
4729 else
4730   echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732 fi
4733
4734 # Extract the first word of "mkdir", so it can be a program name with args.
4735 set dummy mkdir; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_path_MKDIR+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $MKDIR in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759
4760   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4761   ;;
4762 esac
4763 fi
4764 MKDIR=$ac_cv_path_MKDIR
4765
4766 if test -n "$MKDIR"; then
4767   echo "$as_me:$LINENO: result: $MKDIR" >&5
4768 echo "${ECHO_T}$MKDIR" >&6
4769 else
4770   echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 # Extract the first word of "mv", so it can be a program name with args.
4775 set dummy mv; ac_word=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_path_MV+set}" = set; then
4779   echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781   case $MV in
4782   [\\/]* | ?:[\\/]*)
4783   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4784   ;;
4785   *)
4786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799
4800   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4801   ;;
4802 esac
4803 fi
4804 MV=$ac_cv_path_MV
4805
4806 if test -n "$MV"; then
4807   echo "$as_me:$LINENO: result: $MV" >&5
4808 echo "${ECHO_T}$MV" >&6
4809 else
4810   echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814 if test -n "$ac_tool_prefix"; then
4815   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_RANLIB+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$RANLIB"; then
4823   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838
4839 fi
4840 fi
4841 RANLIB=$ac_cv_prog_RANLIB
4842 if test -n "$RANLIB"; then
4843   echo "$as_me:$LINENO: result: $RANLIB" >&5
4844 echo "${ECHO_T}$RANLIB" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850 fi
4851 if test -z "$ac_cv_prog_RANLIB"; then
4852   ac_ct_RANLIB=$RANLIB
4853   # Extract the first word of "ranlib", so it can be a program name with args.
4854 set dummy ranlib; ac_word=$2
4855 echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$ac_ct_RANLIB"; then
4861   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870     ac_cv_prog_ac_ct_RANLIB="ranlib"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876
4877   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4878 fi
4879 fi
4880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4881 if test -n "$ac_ct_RANLIB"; then
4882   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4883 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889   RANLIB=$ac_ct_RANLIB
4890 else
4891   RANLIB="$ac_cv_prog_RANLIB"
4892 fi
4893
4894 # Extract the first word of "rm", so it can be a program name with args.
4895 set dummy rm; ac_word=$2
4896 echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898 if test "${ac_cv_path_RM+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   case $RM in
4902   [\\/]* | ?:[\\/]*)
4903   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4904   ;;
4905   *)
4906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919
4920   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4921   ;;
4922 esac
4923 fi
4924 RM=$ac_cv_path_RM
4925
4926 if test -n "$RM"; then
4927   echo "$as_me:$LINENO: result: $RM" >&5
4928 echo "${ECHO_T}$RM" >&6
4929 else
4930   echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4932 fi
4933
4934 # Extract the first word of "sed", so it can be a program name with args.
4935 set dummy sed; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_SED+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   case $SED in
4942   [\\/]* | ?:[\\/]*)
4943   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4944   ;;
4945   *)
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959
4960   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4961   ;;
4962 esac
4963 fi
4964 SED=$ac_cv_path_SED
4965
4966 if test -n "$SED"; then
4967   echo "$as_me:$LINENO: result: $SED" >&5
4968 echo "${ECHO_T}$SED" >&6
4969 else
4970   echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4972 fi
4973
4974 # Extract the first word of "tar", so it can be a program name with args.
4975 set dummy tar; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_path_TAR+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   case $TAR in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998 done
4999
5000   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5001   ;;
5002 esac
5003 fi
5004 TAR=$ac_cv_path_TAR
5005
5006 if test -n "$TAR"; then
5007   echo "$as_me:$LINENO: result: $TAR" >&5
5008 echo "${ECHO_T}$TAR" >&6
5009 else
5010   echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5012 fi
5013
5014
5015 # Find a good install program.  We prefer a C program (faster),
5016 # so one script is as good as another.  But avoid the broken or
5017 # incompatible versions:
5018 # SysV /etc/install, /usr/sbin/install
5019 # SunOS /usr/etc/install
5020 # IRIX /sbin/install
5021 # AIX /bin/install
5022 # AmigaOS /C/install, which installs bootblocks on floppy discs
5023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5026 # OS/2's system install, which has a completely different semantic
5027 # ./install, which can be erroneously created by make from ./install.sh.
5028 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5029 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5030 if test -z "$INSTALL"; then
5031 if test "${ac_cv_path_install+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039   # Account for people who put trailing slashes in PATH elements.
5040 case $as_dir/ in
5041   ./ | .// | /cC/* | \
5042   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5043   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5044   /usr/ucb/* ) ;;
5045   *)
5046     # OSF1 and SCO ODT 3.0 have their own names for install.
5047     # Don't use installbsd from OSF since it installs stuff as root
5048     # by default.
5049     for ac_prog in ginstall scoinst install; do
5050       for ac_exec_ext in '' $ac_executable_extensions; do
5051         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5052           if test $ac_prog = install &&
5053             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5054             # AIX install.  It has an incompatible calling convention.
5055             :
5056           elif test $ac_prog = install &&
5057             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5058             # program-specific install script used by HP pwplus--don't use.
5059             :
5060           else
5061             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5062             break 3
5063           fi
5064         fi
5065       done
5066     done
5067     ;;
5068 esac
5069 done
5070
5071
5072 fi
5073   if test "${ac_cv_path_install+set}" = set; then
5074     INSTALL=$ac_cv_path_install
5075   else
5076     # As a last resort, use the slow shell script.  We don't cache a
5077     # path for INSTALL within a source directory, because that will
5078     # break other packages using the cache if that directory is
5079     # removed, or if the path is relative.
5080     INSTALL=$ac_install_sh
5081   fi
5082 fi
5083 echo "$as_me:$LINENO: result: $INSTALL" >&5
5084 echo "${ECHO_T}$INSTALL" >&6
5085
5086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5087 # It thinks the first close brace ends the variable substitution.
5088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5089
5090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5091
5092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5093
5094
5095 # Extract the first word of "bzip2", so it can be a program name with args.
5096 set dummy bzip2; ac_word=$2
5097 echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5099 if test "${ac_cv_path_BZIP2+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   case $BZIP2 in
5103   [\\/]* | ?:[\\/]*)
5104   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5105   ;;
5106   *)
5107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112   for ac_exec_ext in '' $ac_executable_extensions; do
5113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116     break 2
5117   fi
5118 done
5119 done
5120
5121   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5122   ;;
5123 esac
5124 fi
5125 BZIP2=$ac_cv_path_BZIP2
5126
5127 if test -n "$BZIP2"; then
5128   echo "$as_me:$LINENO: result: $BZIP2" >&5
5129 echo "${ECHO_T}$BZIP2" >&6
5130 else
5131   echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5133 fi
5134
5135 # Extract the first word of "dot", so it can be a program name with args.
5136 set dummy dot; ac_word=$2
5137 echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139 if test "${ac_cv_path_DOT+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   case $DOT in
5143   [\\/]* | ?:[\\/]*)
5144   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5145   ;;
5146   *)
5147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160
5161   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5162   ;;
5163 esac
5164 fi
5165 DOT=$ac_cv_path_DOT
5166
5167 if test -n "$DOT"; then
5168   echo "$as_me:$LINENO: result: $DOT" >&5
5169 echo "${ECHO_T}$DOT" >&6
5170 else
5171   echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173 fi
5174
5175 # Extract the first word of "doxygen", so it can be a program name with args.
5176 set dummy doxygen; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   case $DOXYGEN in
5183   [\\/]* | ?:[\\/]*)
5184   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5185   ;;
5186   *)
5187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192   for ac_exec_ext in '' $ac_executable_extensions; do
5193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199 done
5200
5201   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5202   ;;
5203 esac
5204 fi
5205 DOXYGEN=$ac_cv_path_DOXYGEN
5206
5207 if test -n "$DOXYGEN"; then
5208   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5209 echo "${ECHO_T}$DOXYGEN" >&6
5210 else
5211   echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 fi
5214
5215 # Extract the first word of "etags", so it can be a program name with args.
5216 set dummy etags; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_path_ETAGS+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   case $ETAGS in
5223   [\\/]* | ?:[\\/]*)
5224   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5225   ;;
5226   *)
5227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232   for ac_exec_ext in '' $ac_executable_extensions; do
5233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239 done
5240
5241   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5242   ;;
5243 esac
5244 fi
5245 ETAGS=$ac_cv_path_ETAGS
5246
5247 if test -n "$ETAGS"; then
5248   echo "$as_me:$LINENO: result: $ETAGS" >&5
5249 echo "${ECHO_T}$ETAGS" >&6
5250 else
5251   echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253 fi
5254
5255 # Extract the first word of "groff", so it can be a program name with args.
5256 set dummy groff; ac_word=$2
5257 echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259 if test "${ac_cv_path_GROFF+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   case $GROFF in
5263   [\\/]* | ?:[\\/]*)
5264   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5265   ;;
5266   *)
5267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270   IFS=$as_save_IFS
5271   test -z "$as_dir" && as_dir=.
5272   for ac_exec_ext in '' $ac_executable_extensions; do
5273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276     break 2
5277   fi
5278 done
5279 done
5280
5281   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5282   ;;
5283 esac
5284 fi
5285 GROFF=$ac_cv_path_GROFF
5286
5287 if test -n "$GROFF"; then
5288   echo "$as_me:$LINENO: result: $GROFF" >&5
5289 echo "${ECHO_T}$GROFF" >&6
5290 else
5291   echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5293 fi
5294
5295 # Extract the first word of "gzip", so it can be a program name with args.
5296 set dummy gzip; ac_word=$2
5297 echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299 if test "${ac_cv_path_GZIP+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   case $GZIP in
5303   [\\/]* | ?:[\\/]*)
5304   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5305   ;;
5306   *)
5307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320
5321   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5322   ;;
5323 esac
5324 fi
5325 GZIP=$ac_cv_path_GZIP
5326
5327 if test -n "$GZIP"; then
5328   echo "$as_me:$LINENO: result: $GZIP" >&5
5329 echo "${ECHO_T}$GZIP" >&6
5330 else
5331   echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333 fi
5334
5335 # Extract the first word of "pod2html", so it can be a program name with args.
5336 set dummy pod2html; ac_word=$2
5337 echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339 if test "${ac_cv_path_POD2HTML+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   case $POD2HTML in
5343   [\\/]* | ?:[\\/]*)
5344   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5345   ;;
5346   *)
5347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350   IFS=$as_save_IFS
5351   test -z "$as_dir" && as_dir=.
5352   for ac_exec_ext in '' $ac_executable_extensions; do
5353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356     break 2
5357   fi
5358 done
5359 done
5360
5361   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5362   ;;
5363 esac
5364 fi
5365 POD2HTML=$ac_cv_path_POD2HTML
5366
5367 if test -n "$POD2HTML"; then
5368   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5369 echo "${ECHO_T}$POD2HTML" >&6
5370 else
5371   echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5373 fi
5374
5375 # Extract the first word of "pod2man", so it can be a program name with args.
5376 set dummy pod2man; ac_word=$2
5377 echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379 if test "${ac_cv_path_POD2MAN+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   case $POD2MAN in
5383   [\\/]* | ?:[\\/]*)
5384   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5385   ;;
5386   *)
5387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392   for ac_exec_ext in '' $ac_executable_extensions; do
5393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399 done
5400
5401   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5402   ;;
5403 esac
5404 fi
5405 POD2MAN=$ac_cv_path_POD2MAN
5406
5407 if test -n "$POD2MAN"; then
5408   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5409 echo "${ECHO_T}$POD2MAN" >&6
5410 else
5411   echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5413 fi
5414
5415 # Extract the first word of "runtest", so it can be a program name with args.
5416 set dummy runtest; ac_word=$2
5417 echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419 if test "${ac_cv_path_RUNTEST+set}" = set; then
5420   echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422   case $RUNTEST in
5423   [\\/]* | ?:[\\/]*)
5424   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5425   ;;
5426   *)
5427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
5431   test -z "$as_dir" && as_dir=.
5432   for ac_exec_ext in '' $ac_executable_extensions; do
5433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436     break 2
5437   fi
5438 done
5439 done
5440
5441   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5442   ;;
5443 esac
5444 fi
5445 RUNTEST=$ac_cv_path_RUNTEST
5446
5447 if test -n "$RUNTEST"; then
5448   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5449 echo "${ECHO_T}$RUNTEST" >&6
5450 else
5451   echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6
5453 fi
5454
5455
5456 no_itcl=true
5457 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5458 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5459
5460 # Check whether --with-tclinclude or --without-tclinclude was given.
5461 if test "${with_tclinclude+set}" = set; then
5462   withval="$with_tclinclude"
5463   with_tclinclude=${withval}
5464 else
5465   with_tclinclude=''
5466 fi;
5467 if test "${ac_cv_path_tclsh+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470
5471 if test x"${with_tclinclude}" != x ; then
5472   if test -f ${with_tclinclude}/tclsh ; then
5473     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5474   elif test -f ${with_tclinclude}/src/tclsh ; then
5475     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5476   else
5477     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5478 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5479    { (exit 1); exit 1; }; }
5480   fi
5481 fi
5482
5483 if test x"${ac_cv_path_tclsh}" = x ; then
5484   echo "$as_me:$LINENO: result: none" >&5
5485 echo "${ECHO_T}none" >&6
5486   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
5487 do
5488   # Extract the first word of "$ac_prog", so it can be a program name with args.
5489 set dummy $ac_prog; ac_word=$2
5490 echo "$as_me:$LINENO: checking for $ac_word" >&5
5491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5492 if test "${ac_cv_path_TCLSH+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   case $TCLSH in
5496   [\\/]* | ?:[\\/]*)
5497   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5498   ;;
5499   *)
5500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505   for ac_exec_ext in '' $ac_executable_extensions; do
5506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512 done
5513
5514   ;;
5515 esac
5516 fi
5517 TCLSH=$ac_cv_path_TCLSH
5518
5519 if test -n "$TCLSH"; then
5520   echo "$as_me:$LINENO: result: $TCLSH" >&5
5521 echo "${ECHO_T}$TCLSH" >&6
5522 else
5523   echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6
5525 fi
5526
5527   test -n "$TCLSH" && break
5528 done
5529
5530   if test x"${TCLSH}" = x ; then
5531     ac_cv_path_tclsh='';
5532   else
5533     ac_cv_path_tclsh="${TCLSH}";
5534   fi
5535 else
5536   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5537 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5538   TCLSH="${ac_cv_path_tclsh}"
5539
5540 fi
5541
5542 fi
5543
5544 # Extract the first word of "zip", so it can be a program name with args.
5545 set dummy zip; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_path_ZIP+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   case $ZIP in
5552   [\\/]* | ?:[\\/]*)
5553   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5554   ;;
5555   *)
5556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_exec_ext in '' $ac_executable_extensions; do
5562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568 done
5569
5570   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5571   ;;
5572 esac
5573 fi
5574 ZIP=$ac_cv_path_ZIP
5575
5576 if test -n "$ZIP"; then
5577   echo "$as_me:$LINENO: result: $ZIP" >&5
5578 echo "${ECHO_T}$ZIP" >&6
5579 else
5580   echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5582 fi
5583
5584
5585 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5586 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5587 if test "${llvm_cv_link_use_r+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590    ac_ext=c
5591 ac_cpp='$CPP $CPPFLAGS'
5592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595
5596   oldcflags="$CFLAGS"
5597   CFLAGS="$CFLAGS -Wl,-R."
5598   cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604
5605 int
5606 main ()
5607 {
5608 int main() { return 0; }
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615   (eval $ac_link) 2>conftest.er1
5616   ac_status=$?
5617   grep -v '^ *+' conftest.er1 >conftest.err
5618   rm -f conftest.er1
5619   cat conftest.err >&5
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -z "$ac_c_werror_flag"
5623                          || test ! -s conftest.err'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; } &&
5629          { ac_try='test -s conftest$ac_exeext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   llvm_cv_link_use_r=yes
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 llvm_cv_link_use_r=no
5641 fi
5642 rm -f conftest.err conftest.$ac_objext \
5643       conftest$ac_exeext conftest.$ac_ext
5644   CFLAGS="$oldcflags"
5645   ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651
5652 fi
5653 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5654 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5655 if test "$llvm_cv_link_use_r" = yes ; then
5656
5657 cat >>confdefs.h <<\_ACEOF
5658 #define HAVE_LINK_R 1
5659 _ACEOF
5660
5661   fi
5662
5663
5664
5665
5666 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5667 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5668 if test "${ac_cv_c_const+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677
5678 int
5679 main ()
5680 {
5681 /* FIXME: Include the comments suggested by Paul. */
5682 #ifndef __cplusplus
5683   /* Ultrix mips cc rejects this.  */
5684   typedef int charset[2];
5685   const charset x;
5686   /* SunOS 4.1.1 cc rejects this.  */
5687   char const *const *ccp;
5688   char **p;
5689   /* NEC SVR4.0.2 mips cc rejects this.  */
5690   struct point {int x, y;};
5691   static struct point const zero = {0,0};
5692   /* AIX XL C 1.02.0.0 rejects this.
5693      It does not let you subtract one const X* pointer from another in
5694      an arm of an if-expression whose if-part is not a constant
5695      expression */
5696   const char *g = "string";
5697   ccp = &g + (g ? g-g : 0);
5698   /* HPUX 7.0 cc rejects these. */
5699   ++ccp;
5700   p = (char**) ccp;
5701   ccp = (char const *const *) p;
5702   { /* SCO 3.2v4 cc rejects this.  */
5703     char *t;
5704     char const *s = 0 ? (char *) 0 : (char const *) 0;
5705
5706     *t++ = 0;
5707   }
5708   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5709     int x[] = {25, 17};
5710     const int *foo = &x[0];
5711     ++foo;
5712   }
5713   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5714     typedef const int *iptr;
5715     iptr p = 0;
5716     ++p;
5717   }
5718   { /* AIX XL C 1.02.0.0 rejects this saying
5719        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5720     struct s { int j; const int *ap[3]; };
5721     struct s *b; b->j = 5;
5722   }
5723   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5724     const int foo = 10;
5725   }
5726 #endif
5727
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734   (eval $ac_compile) 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } &&
5741          { ac_try='test -z "$ac_c_werror_flag"
5742                          || test ! -s conftest.err'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; } &&
5748          { ac_try='test -s conftest.$ac_objext'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; }; then
5754   ac_cv_c_const=yes
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 ac_cv_c_const=no
5760 fi
5761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762 fi
5763 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5764 echo "${ECHO_T}$ac_cv_c_const" >&6
5765 if test $ac_cv_c_const = no; then
5766
5767 cat >>confdefs.h <<\_ACEOF
5768 #define const
5769 _ACEOF
5770
5771 fi
5772
5773
5774 echo "$as_me:$LINENO: checking for egrep" >&5
5775 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5776 if test "${ac_cv_prog_egrep+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5780     then ac_cv_prog_egrep='grep -E'
5781     else ac_cv_prog_egrep='egrep'
5782     fi
5783 fi
5784 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5785 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5786  EGREP=$ac_cv_prog_egrep
5787
5788
5789 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5791 if test "${ac_cv_header_stdc+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800 #include <stdlib.h>
5801 #include <stdarg.h>
5802 #include <string.h>
5803 #include <float.h>
5804
5805 int
5806 main ()
5807 {
5808
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815   (eval $ac_compile) 2>conftest.er1
5816   ac_status=$?
5817   grep -v '^ *+' conftest.er1 >conftest.err
5818   rm -f conftest.er1
5819   cat conftest.err >&5
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); } &&
5822          { ac_try='test -z "$ac_c_werror_flag"
5823                          || test ! -s conftest.err'
5824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825   (eval $ac_try) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; } &&
5829          { ac_try='test -s conftest.$ac_objext'
5830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831   (eval $ac_try) 2>&5
5832   ac_status=$?
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); }; }; then
5835   ac_cv_header_stdc=yes
5836 else
5837   echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840 ac_cv_header_stdc=no
5841 fi
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843
5844 if test $ac_cv_header_stdc = yes; then
5845   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5846   cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h.  */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h.  */
5852 #include <string.h>
5853
5854 _ACEOF
5855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856   $EGREP "memchr" >/dev/null 2>&1; then
5857   :
5858 else
5859   ac_cv_header_stdc=no
5860 fi
5861 rm -f conftest*
5862
5863 fi
5864
5865 if test $ac_cv_header_stdc = yes; then
5866   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5867   cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873 #include <stdlib.h>
5874
5875 _ACEOF
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877   $EGREP "free" >/dev/null 2>&1; then
5878   :
5879 else
5880   ac_cv_header_stdc=no
5881 fi
5882 rm -f conftest*
5883
5884 fi
5885
5886 if test $ac_cv_header_stdc = yes; then
5887   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5888   if test "$cross_compiling" = yes; then
5889   :
5890 else
5891   cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 #include <ctype.h>
5898 #if ((' ' & 0x0FF) == 0x020)
5899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5901 #else
5902 # define ISLOWER(c) \
5903                    (('a' <= (c) && (c) <= 'i') \
5904                      || ('j' <= (c) && (c) <= 'r') \
5905                      || ('s' <= (c) && (c) <= 'z'))
5906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5907 #endif
5908
5909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5910 int
5911 main ()
5912 {
5913   int i;
5914   for (i = 0; i < 256; i++)
5915     if (XOR (islower (i), ISLOWER (i))
5916         || toupper (i) != TOUPPER (i))
5917       exit(2);
5918   exit (0);
5919 }
5920 _ACEOF
5921 rm -f conftest$ac_exeext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923   (eval $ac_link) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   :
5933 else
5934   echo "$as_me: program exited with status $ac_status" >&5
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ( exit $ac_status )
5939 ac_cv_header_stdc=no
5940 fi
5941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 fi
5944 fi
5945 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5946 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5947 if test $ac_cv_header_stdc = yes; then
5948
5949 cat >>confdefs.h <<\_ACEOF
5950 #define STDC_HEADERS 1
5951 _ACEOF
5952
5953 fi
5954
5955
5956
5957
5958
5959
5960 ac_header_dirent=no
5961 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5962   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5963 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5964 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 #include <sys/types.h>
5975 #include <$ac_hdr>
5976
5977 int
5978 main ()
5979 {
5980 if ((DIR *) 0)
5981 return 0;
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988   (eval $ac_compile) 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } &&
5995          { ac_try='test -z "$ac_c_werror_flag"
5996                          || test ! -s conftest.err'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; } &&
6002          { ac_try='test -s conftest.$ac_objext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   eval "$as_ac_Header=yes"
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 eval "$as_ac_Header=no"
6014 fi
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020   cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6022 _ACEOF
6023
6024 ac_header_dirent=$ac_hdr; break
6025 fi
6026
6027 done
6028 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6029 if test $ac_header_dirent = dirent.h; then
6030   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6032 if test "${ac_cv_search_opendir+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   ac_func_search_save_LIBS=$LIBS
6036 ac_cv_search_opendir=no
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043
6044 /* Override any gcc2 internal prototype to avoid an error.  */
6045 #ifdef __cplusplus
6046 extern "C"
6047 #endif
6048 /* We use char because int might match the return type of a gcc2
6049    builtin and then its argument prototype would still apply.  */
6050 char opendir ();
6051 int
6052 main ()
6053 {
6054 opendir ();
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061   (eval $ac_link) 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } &&
6068          { ac_try='test -z "$ac_c_werror_flag"
6069                          || test ! -s conftest.err'
6070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071   (eval $ac_try) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; } &&
6075          { ac_try='test -s conftest$ac_exeext'
6076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077   (eval $ac_try) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; }; then
6081   ac_cv_search_opendir="none required"
6082 else
6083   echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 fi
6087 rm -f conftest.err conftest.$ac_objext \
6088       conftest$ac_exeext conftest.$ac_ext
6089 if test "$ac_cv_search_opendir" = no; then
6090   for ac_lib in dir; do
6091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6092     cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098
6099 /* Override any gcc2 internal prototype to avoid an error.  */
6100 #ifdef __cplusplus
6101 extern "C"
6102 #endif
6103 /* We use char because int might match the return type of a gcc2
6104    builtin and then its argument prototype would still apply.  */
6105 char opendir ();
6106 int
6107 main ()
6108 {
6109 opendir ();
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116   (eval $ac_link) 2>conftest.er1
6117   ac_status=$?
6118   grep -v '^ *+' conftest.er1 >conftest.err
6119   rm -f conftest.er1
6120   cat conftest.err >&5
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } &&
6123          { ac_try='test -z "$ac_c_werror_flag"
6124                          || test ! -s conftest.err'
6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126   (eval $ac_try) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; } &&
6130          { ac_try='test -s conftest$ac_exeext'
6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132   (eval $ac_try) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; }; then
6136   ac_cv_search_opendir="-l$ac_lib"
6137 break
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 fi
6143 rm -f conftest.err conftest.$ac_objext \
6144       conftest$ac_exeext conftest.$ac_ext
6145   done
6146 fi
6147 LIBS=$ac_func_search_save_LIBS
6148 fi
6149 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6150 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6151 if test "$ac_cv_search_opendir" != no; then
6152   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6153
6154 fi
6155
6156 else
6157   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6158 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6159 if test "${ac_cv_search_opendir+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162   ac_func_search_save_LIBS=$LIBS
6163 ac_cv_search_opendir=no
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170
6171 /* Override any gcc2 internal prototype to avoid an error.  */
6172 #ifdef __cplusplus
6173 extern "C"
6174 #endif
6175 /* We use char because int might match the return type of a gcc2
6176    builtin and then its argument prototype would still apply.  */
6177 char opendir ();
6178 int
6179 main ()
6180 {
6181 opendir ();
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188   (eval $ac_link) 2>conftest.er1
6189   ac_status=$?
6190   grep -v '^ *+' conftest.er1 >conftest.err
6191   rm -f conftest.er1
6192   cat conftest.err >&5
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); } &&
6195          { ac_try='test -z "$ac_c_werror_flag"
6196                          || test ! -s conftest.err'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; } &&
6202          { ac_try='test -s conftest$ac_exeext'
6203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204   (eval $ac_try) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }; }; then
6208   ac_cv_search_opendir="none required"
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 fi
6214 rm -f conftest.err conftest.$ac_objext \
6215       conftest$ac_exeext conftest.$ac_ext
6216 if test "$ac_cv_search_opendir" = no; then
6217   for ac_lib in x; do
6218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6219     cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225
6226 /* Override any gcc2 internal prototype to avoid an error.  */
6227 #ifdef __cplusplus
6228 extern "C"
6229 #endif
6230 /* We use char because int might match the return type of a gcc2
6231    builtin and then its argument prototype would still apply.  */
6232 char opendir ();
6233 int
6234 main ()
6235 {
6236 opendir ();
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243   (eval $ac_link) 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } &&
6250          { ac_try='test -z "$ac_c_werror_flag"
6251                          || test ! -s conftest.err'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; } &&
6257          { ac_try='test -s conftest$ac_exeext'
6258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259   (eval $ac_try) 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; }; then
6263   ac_cv_search_opendir="-l$ac_lib"
6264 break
6265 else
6266   echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 fi
6270 rm -f conftest.err conftest.$ac_objext \
6271       conftest$ac_exeext conftest.$ac_ext
6272   done
6273 fi
6274 LIBS=$ac_func_search_save_LIBS
6275 fi
6276 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6277 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6278 if test "$ac_cv_search_opendir" != no; then
6279   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6280
6281 fi
6282
6283 fi
6284
6285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6296                   inttypes.h stdint.h unistd.h
6297 do
6298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 echo "$as_me:$LINENO: checking for $ac_header" >&5
6300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h.  */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h.  */
6310 $ac_includes_default
6311
6312 #include <$ac_header>
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316   (eval $ac_compile) 2>conftest.er1
6317   ac_status=$?
6318   grep -v '^ *+' conftest.er1 >conftest.err
6319   rm -f conftest.er1
6320   cat conftest.err >&5
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); } &&
6323          { ac_try='test -z "$ac_c_werror_flag"
6324                          || test ! -s conftest.err'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; } &&
6330          { ac_try='test -s conftest.$ac_objext'
6331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332   (eval $ac_try) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   eval "$as_ac_Header=yes"
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 eval "$as_ac_Header=no"
6342 fi
6343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344 fi
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6348   cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6351
6352 fi
6353
6354 done
6355
6356
6357
6358 for ac_header in dlfcn.h
6359 do
6360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362   echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 fi
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 else
6370   # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h.  */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h.  */
6379 $ac_includes_default
6380 #include <$ac_header>
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384   (eval $ac_compile) 2>conftest.er1
6385   ac_status=$?
6386   grep -v '^ *+' conftest.er1 >conftest.err
6387   rm -f conftest.er1
6388   cat conftest.err >&5
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } &&
6391          { ac_try='test -z "$ac_c_werror_flag"
6392                          || test ! -s conftest.err'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; } &&
6398          { ac_try='test -s conftest.$ac_objext'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; }; then
6404   ac_header_compiler=yes
6405 else
6406   echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_header_compiler=no
6410 fi
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6414
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 #include <$ac_header>
6425 _ACEOF
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428   ac_status=$?
6429   grep -v '^ *+' conftest.er1 >conftest.err
6430   rm -f conftest.er1
6431   cat conftest.err >&5
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); } >/dev/null; then
6434   if test -s conftest.err; then
6435     ac_cpp_err=$ac_c_preproc_warn_flag
6436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6437   else
6438     ac_cpp_err=
6439   fi
6440 else
6441   ac_cpp_err=yes
6442 fi
6443 if test -z "$ac_cpp_err"; then
6444   ac_header_preproc=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449   ac_header_preproc=no
6450 fi
6451 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6454
6455 # So?  What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457   yes:no: )
6458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462     ac_header_preproc=yes
6463     ;;
6464   no:yes:* )
6465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6477     (
6478       cat <<\_ASBOX
6479 ## ----------------------------------- ##
6480 ## Report this to llvmbugs@cs.uiuc.edu ##
6481 ## ----------------------------------- ##
6482 _ASBOX
6483     ) |
6484       sed "s/^/$as_me: WARNING:     /" >&2
6485     ;;
6486 esac
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   eval "$as_ac_Header=\$ac_header_preproc"
6493 fi
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496
6497 fi
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499   cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6502
6503 fi
6504
6505 done
6506
6507 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6508 if test "${enable_ltdl_install+set}" = set; then
6509   enableval="$enable_ltdl_install"
6510
6511 fi;
6512
6513
6514
6515 if test x"${enable_ltdl_install-no}" != xno; then
6516   INSTALL_LTDL_TRUE=
6517   INSTALL_LTDL_FALSE='#'
6518 else
6519   INSTALL_LTDL_TRUE='#'
6520   INSTALL_LTDL_FALSE=
6521 fi
6522
6523
6524
6525 if test x"${enable_ltdl_convenience-no}" != xno; then
6526   CONVENIENCE_LTDL_TRUE=
6527   CONVENIENCE_LTDL_FALSE='#'
6528 else
6529   CONVENIENCE_LTDL_TRUE='#'
6530   CONVENIENCE_LTDL_FALSE=
6531 fi
6532
6533
6534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6536 library_names_spec=
6537 libname_spec='lib$name'
6538 soname_spec=
6539 shrext_cmds=".so"
6540 postinstall_cmds=
6541 postuninstall_cmds=
6542 finish_cmds=
6543 finish_eval=
6544 shlibpath_var=
6545 shlibpath_overrides_runpath=unknown
6546 version_type=none
6547 dynamic_linker="$host_os ld.so"
6548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6549 if test "$GCC" = yes; then
6550   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6551   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6552     # if the path contains ";" then we assume it to be the separator
6553     # otherwise default to the standard path separator (i.e. ":") - it is
6554     # assumed that no part of a normal pathname contains ";" but that should
6555     # okay in the real world where ";" in dirpaths is itself problematic.
6556     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6557   else
6558     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6559   fi
6560 else
6561   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6562 fi
6563 need_lib_prefix=unknown
6564 hardcode_into_libs=no
6565
6566 # when you set need_version to no, make sure it does not cause -set_version
6567 # flags to be left without arguments
6568 need_version=unknown
6569
6570 case $host_os in
6571 aix3*)
6572   version_type=linux
6573   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6574   shlibpath_var=LIBPATH
6575
6576   # AIX 3 has no versioning support, so we append a major version to the name.
6577   soname_spec='${libname}${release}${shared_ext}$major'
6578   ;;
6579
6580 aix4* | aix5*)
6581   version_type=linux
6582   need_lib_prefix=no
6583   need_version=no
6584   hardcode_into_libs=yes
6585   if test "$host_cpu" = ia64; then
6586     # AIX 5 supports IA64
6587     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6588     shlibpath_var=LD_LIBRARY_PATH
6589   else
6590     # With GCC up to 2.95.x, collect2 would create an import file
6591     # for dependence libraries.  The import file would start with
6592     # the line `#! .'.  This would cause the generated library to
6593     # depend on `.', always an invalid library.  This was fixed in
6594     # development snapshots of GCC prior to 3.0.
6595     case $host_os in
6596       aix4 | aix4.[01] | aix4.[01].*)
6597       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6598            echo ' yes '
6599            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6600         :
6601       else
6602         can_build_shared=no
6603       fi
6604       ;;
6605     esac
6606     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6607     # soname into executable. Probably we can add versioning support to
6608     # collect2, so additional links can be useful in future.
6609     if test "$aix_use_runtimelinking" = yes; then
6610       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6611       # instead of lib<name>.a to let people know that these are not
6612       # typical AIX shared libraries.
6613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6614     else
6615       # We preserve .a as extension for shared libraries through AIX4.2
6616       # and later when we are not doing run time linking.
6617       library_names_spec='${libname}${release}.a $libname.a'
6618       soname_spec='${libname}${release}${shared_ext}$major'
6619     fi
6620     shlibpath_var=LIBPATH
6621   fi
6622   ;;
6623
6624 amigaos*)
6625   library_names_spec='$libname.ixlibrary $libname.a'
6626   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6627   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'
6628   ;;
6629
6630 beos*)
6631   library_names_spec='${libname}${shared_ext}'
6632   dynamic_linker="$host_os ld.so"
6633   shlibpath_var=LIBRARY_PATH
6634   ;;
6635
6636 bsdi[45]*)
6637   version_type=linux
6638   need_version=no
6639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6640   soname_spec='${libname}${release}${shared_ext}$major'
6641   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6642   shlibpath_var=LD_LIBRARY_PATH
6643   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6644   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6645   # the default ld.so.conf also contains /usr/contrib/lib and
6646   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6647   # libtool to hard-code these into programs
6648   ;;
6649
6650 cygwin* | mingw* | pw32*)
6651   version_type=windows
6652   shrext_cmds=".dll"
6653   need_version=no
6654   need_lib_prefix=no
6655
6656   case $GCC,$host_os in
6657   yes,cygwin* | yes,mingw* | yes,pw32*)
6658     library_names_spec='$libname.dll.a'
6659     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6660     postinstall_cmds='base_file=`basename \${file}`~
6661       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6662       dldir=$destdir/`dirname \$dlpath`~
6663       test -d \$dldir || mkdir -p \$dldir~
6664       $install_prog $dir/$dlname \$dldir/$dlname'
6665     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6666       dlpath=$dir/\$dldll~
6667        $rm \$dlpath'
6668     shlibpath_overrides_runpath=yes
6669
6670     case $host_os in
6671     cygwin*)
6672       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6673       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6674       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6675       ;;
6676     mingw*)
6677       # MinGW DLLs use traditional 'lib' prefix
6678       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6679       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6680       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6681         # It is most probably a Windows format PATH printed by
6682         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6683         # path with ; separators, and with drive letters. We can handle the
6684         # drive letters (cygwin fileutils understands them), so leave them,
6685         # especially as we might pass files found there to a mingw objdump,
6686         # which wouldn't understand a cygwinified path. Ahh.
6687         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6688       else
6689         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6690       fi
6691       ;;
6692     pw32*)
6693       # pw32 DLLs use 'pw' prefix rather than 'lib'
6694       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6695       ;;
6696     esac
6697     ;;
6698
6699   *)
6700     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6701     ;;
6702   esac
6703   dynamic_linker='Win32 ld.exe'
6704   # FIXME: first we should search . and the directory the executable is in
6705   shlibpath_var=PATH
6706   ;;
6707
6708 darwin* | rhapsody*)
6709   dynamic_linker="$host_os dyld"
6710   version_type=darwin
6711   need_lib_prefix=no
6712   need_version=no
6713   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6714   soname_spec='${libname}${release}${major}$shared_ext'
6715   shlibpath_overrides_runpath=yes
6716   shlibpath_var=DYLD_LIBRARY_PATH
6717   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6718   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6719   if test "$GCC" = yes; then
6720     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"`
6721   else
6722     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6723   fi
6724   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6725   ;;
6726
6727 dgux*)
6728   version_type=linux
6729   need_lib_prefix=no
6730   need_version=no
6731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6732   soname_spec='${libname}${release}${shared_ext}$major'
6733   shlibpath_var=LD_LIBRARY_PATH
6734   ;;
6735
6736 freebsd1*)
6737   dynamic_linker=no
6738   ;;
6739
6740 kfreebsd*-gnu)
6741   version_type=linux
6742   need_lib_prefix=no
6743   need_version=no
6744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6745   soname_spec='${libname}${release}${shared_ext}$major'
6746   shlibpath_var=LD_LIBRARY_PATH
6747   shlibpath_overrides_runpath=no
6748   hardcode_into_libs=yes
6749   dynamic_linker='GNU ld.so'
6750   ;;
6751
6752 freebsd*)
6753   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6754   version_type=freebsd-$objformat
6755   case $version_type in
6756     freebsd-elf*)
6757       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6758       need_version=no
6759       need_lib_prefix=no
6760       ;;
6761     freebsd-*)
6762       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6763       need_version=yes
6764       ;;
6765   esac
6766   shlibpath_var=LD_LIBRARY_PATH
6767   case $host_os in
6768   freebsd2*)
6769     shlibpath_overrides_runpath=yes
6770     ;;
6771   freebsd3.01* | freebsdelf3.01*)
6772     shlibpath_overrides_runpath=yes
6773     hardcode_into_libs=yes
6774     ;;
6775   *) # from 3.2 on
6776     shlibpath_overrides_runpath=no
6777     hardcode_into_libs=yes
6778     ;;
6779   esac
6780   ;;
6781
6782 gnu*)
6783   version_type=linux
6784   need_lib_prefix=no
6785   need_version=no
6786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6787   soname_spec='${libname}${release}${shared_ext}$major'
6788   shlibpath_var=LD_LIBRARY_PATH
6789   hardcode_into_libs=yes
6790   ;;
6791
6792 hpux9* | hpux10* | hpux11*)
6793   # Give a soname corresponding to the major version so that dld.sl refuses to
6794   # link against other versions.
6795   version_type=sunos
6796   need_lib_prefix=no
6797   need_version=no
6798   case "$host_cpu" in
6799   ia64*)
6800     shrext_cmds='.so'
6801     hardcode_into_libs=yes
6802     dynamic_linker="$host_os dld.so"
6803     shlibpath_var=LD_LIBRARY_PATH
6804     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6806     soname_spec='${libname}${release}${shared_ext}$major'
6807     if test "X$HPUX_IA64_MODE" = X32; then
6808       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6809     else
6810       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6811     fi
6812     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6813     ;;
6814    hppa*64*)
6815      shrext_cmds='.sl'
6816      hardcode_into_libs=yes
6817      dynamic_linker="$host_os dld.sl"
6818      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6819      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6820      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6821      soname_spec='${libname}${release}${shared_ext}$major'
6822      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6823      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6824      ;;
6825    *)
6826     shrext_cmds='.sl'
6827     dynamic_linker="$host_os dld.sl"
6828     shlibpath_var=SHLIB_PATH
6829     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831     soname_spec='${libname}${release}${shared_ext}$major'
6832     ;;
6833   esac
6834   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6835   postinstall_cmds='chmod 555 $lib'
6836   ;;
6837
6838 irix5* | irix6* | nonstopux*)
6839   case $host_os in
6840     nonstopux*) version_type=nonstopux ;;
6841     *)
6842         if test "$lt_cv_prog_gnu_ld" = yes; then
6843                 version_type=linux
6844         else
6845                 version_type=irix
6846         fi ;;
6847   esac
6848   need_lib_prefix=no
6849   need_version=no
6850   soname_spec='${libname}${release}${shared_ext}$major'
6851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6852   case $host_os in
6853   irix5* | nonstopux*)
6854     libsuff= shlibsuff=
6855     ;;
6856   *)
6857     case $LD in # libtool.m4 will add one of these switches to LD
6858     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6859       libsuff= shlibsuff= libmagic=32-bit;;
6860     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6861       libsuff=32 shlibsuff=N32 libmagic=N32;;
6862     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6863       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6864     *) libsuff= shlibsuff= libmagic=never-match;;
6865     esac
6866     ;;
6867   esac
6868   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6869   shlibpath_overrides_runpath=no
6870   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6871   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6872   hardcode_into_libs=yes
6873   ;;
6874
6875 # No shared lib support for Linux oldld, aout, or coff.
6876 linux*oldld* | linux*aout* | linux*coff*)
6877   dynamic_linker=no
6878   ;;
6879
6880 # This must be Linux ELF.
6881 linux*)
6882   version_type=linux
6883   need_lib_prefix=no
6884   need_version=no
6885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6886   soname_spec='${libname}${release}${shared_ext}$major'
6887   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6888   shlibpath_var=LD_LIBRARY_PATH
6889   shlibpath_overrides_runpath=no
6890   # This implies no fast_install, which is unacceptable.
6891   # Some rework will be needed to allow for fast_install
6892   # before this can be enabled.
6893   hardcode_into_libs=yes
6894
6895   # Append ld.so.conf contents to the search path
6896   if test -f /etc/ld.so.conf; then
6897     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6898     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6899   fi
6900
6901   # We used to test for /lib/ld.so.1 and disable shared libraries on
6902   # powerpc, because MkLinux only supported shared libraries with the
6903   # GNU dynamic linker.  Since this was broken with cross compilers,
6904   # most powerpc-linux boxes support dynamic linking these days and
6905   # people can always --disable-shared, the test was removed, and we
6906   # assume the GNU/Linux dynamic linker is in use.
6907   dynamic_linker='GNU/Linux ld.so'
6908   ;;
6909
6910 knetbsd*-gnu)
6911   version_type=linux
6912   need_lib_prefix=no
6913   need_version=no
6914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6915   soname_spec='${libname}${release}${shared_ext}$major'
6916   shlibpath_var=LD_LIBRARY_PATH
6917   shlibpath_overrides_runpath=no
6918   hardcode_into_libs=yes
6919   dynamic_linker='GNU ld.so'
6920   ;;
6921
6922 netbsd*)
6923   version_type=sunos
6924   need_lib_prefix=no
6925   need_version=no
6926   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6928     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6929     dynamic_linker='NetBSD (a.out) ld.so'
6930   else
6931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6932     soname_spec='${libname}${release}${shared_ext}$major'
6933     dynamic_linker='NetBSD ld.elf_so'
6934   fi
6935   shlibpath_var=LD_LIBRARY_PATH
6936   shlibpath_overrides_runpath=yes
6937   hardcode_into_libs=yes
6938   ;;
6939
6940 newsos6)
6941   version_type=linux
6942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6943   shlibpath_var=LD_LIBRARY_PATH
6944   shlibpath_overrides_runpath=yes
6945   ;;
6946
6947 nto-qnx*)
6948   version_type=linux
6949   need_lib_prefix=no
6950   need_version=no
6951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6952   soname_spec='${libname}${release}${shared_ext}$major'
6953   shlibpath_var=LD_LIBRARY_PATH
6954   shlibpath_overrides_runpath=yes
6955   ;;
6956
6957 openbsd*)
6958   version_type=sunos
6959   need_lib_prefix=no
6960   need_version=no
6961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6962   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6963   shlibpath_var=LD_LIBRARY_PATH
6964   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6965     case $host_os in
6966       openbsd2.[89] | openbsd2.[89].*)
6967         shlibpath_overrides_runpath=no
6968         ;;
6969       *)
6970         shlibpath_overrides_runpath=yes
6971         ;;
6972       esac
6973   else
6974     shlibpath_overrides_runpath=yes
6975   fi
6976   ;;
6977
6978 os2*)
6979   libname_spec='$name'
6980   shrext_cmds=".dll"
6981   need_lib_prefix=no
6982   library_names_spec='$libname${shared_ext} $libname.a'
6983   dynamic_linker='OS/2 ld.exe'
6984   shlibpath_var=LIBPATH
6985   ;;
6986
6987 osf3* | osf4* | osf5*)
6988   version_type=osf
6989   need_lib_prefix=no
6990   need_version=no
6991   soname_spec='${libname}${release}${shared_ext}$major'
6992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6993   shlibpath_var=LD_LIBRARY_PATH
6994   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6995   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6996   ;;
6997
6998 sco3.2v5*)
6999   version_type=osf
7000   soname_spec='${libname}${release}${shared_ext}$major'
7001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7002   shlibpath_var=LD_LIBRARY_PATH
7003   ;;
7004
7005 solaris*)
7006   version_type=linux
7007   need_lib_prefix=no
7008   need_version=no
7009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7010   soname_spec='${libname}${release}${shared_ext}$major'
7011   shlibpath_var=LD_LIBRARY_PATH
7012   shlibpath_overrides_runpath=yes
7013   hardcode_into_libs=yes
7014   # ldd complains unless libraries are executable
7015   postinstall_cmds='chmod +x $lib'
7016   ;;
7017
7018 sunos4*)
7019   version_type=sunos
7020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7021   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7022   shlibpath_var=LD_LIBRARY_PATH
7023   shlibpath_overrides_runpath=yes
7024   if test "$with_gnu_ld" = yes; then
7025     need_lib_prefix=no
7026   fi
7027   need_version=yes
7028   ;;
7029
7030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7031   version_type=linux
7032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033   soname_spec='${libname}${release}${shared_ext}$major'
7034   shlibpath_var=LD_LIBRARY_PATH
7035   case $host_vendor in
7036     sni)
7037       shlibpath_overrides_runpath=no
7038       need_lib_prefix=no
7039       export_dynamic_flag_spec='${wl}-Blargedynsym'
7040       runpath_var=LD_RUN_PATH
7041       ;;
7042     siemens)
7043       need_lib_prefix=no
7044       ;;
7045     motorola)
7046       need_lib_prefix=no
7047       need_version=no
7048       shlibpath_overrides_runpath=no
7049       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7050       ;;
7051   esac
7052   ;;
7053
7054 sysv4*MP*)
7055   if test -d /usr/nec ;then
7056     version_type=linux
7057     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7058     soname_spec='$libname${shared_ext}.$major'
7059     shlibpath_var=LD_LIBRARY_PATH
7060   fi
7061   ;;
7062
7063 uts4*)
7064   version_type=linux
7065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7066   soname_spec='${libname}${release}${shared_ext}$major'
7067   shlibpath_var=LD_LIBRARY_PATH
7068   ;;
7069
7070 *)
7071   dynamic_linker=no
7072   ;;
7073 esac
7074 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7075 echo "${ECHO_T}$dynamic_linker" >&6
7076 test "$dynamic_linker" = no && can_build_shared=no
7077
7078
7079 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7080 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7081 if test "${libltdl_cv_shlibext+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084
7085 module=yes
7086 eval libltdl_cv_shlibext=$shrext_cmds
7087
7088 fi
7089 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7090 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7091 if test -n "$libltdl_cv_shlibext"; then
7092
7093 cat >>confdefs.h <<_ACEOF
7094 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7095 _ACEOF
7096
7097 fi
7098
7099
7100 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7101 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7102 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   libltdl_cv_shlibpath_var="$shlibpath_var"
7106 fi
7107 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7108 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7109 if test -n "$libltdl_cv_shlibpath_var"; then
7110
7111 cat >>confdefs.h <<_ACEOF
7112 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7113 _ACEOF
7114
7115 fi
7116
7117
7118 echo "$as_me:$LINENO: checking for the default library search path" >&5
7119 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7120 if test "${libltdl_cv_sys_search_path+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7124 fi
7125 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7126 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7127 if test -n "$libltdl_cv_sys_search_path"; then
7128   sys_search_path=
7129   for dir in $libltdl_cv_sys_search_path; do
7130     if test -z "$sys_search_path"; then
7131       sys_search_path="$dir"
7132     else
7133       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7134     fi
7135   done
7136
7137 cat >>confdefs.h <<_ACEOF
7138 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7139 _ACEOF
7140
7141 fi
7142
7143 echo "$as_me:$LINENO: checking for objdir" >&5
7144 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7145 if test "${libltdl_cv_objdir+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   libltdl_cv_objdir="$objdir"
7149   if test -n "$objdir"; then
7150     :
7151   else
7152     rm -f .libs 2>/dev/null
7153     mkdir .libs 2>/dev/null
7154     if test -d .libs; then
7155       libltdl_cv_objdir=.libs
7156     else
7157       # MS-DOS does not allow filenames that begin with a dot.
7158       libltdl_cv_objdir=_libs
7159     fi
7160   rmdir .libs 2>/dev/null
7161   fi
7162
7163 fi
7164 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7165 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7166
7167 cat >>confdefs.h <<_ACEOF
7168 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7169 _ACEOF
7170
7171
7172 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7173 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7174 if test "${lt_cv_path_NM+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$NM"; then
7178   # Let the user override the test.
7179   lt_cv_path_NM="$NM"
7180 else
7181   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7182   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7183     IFS="$lt_save_ifs"
7184     test -z "$ac_dir" && ac_dir=.
7185     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7186     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7187       # Check to see if the nm accepts a BSD-compat flag.
7188       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7189       #   nm: unknown option "B" ignored
7190       # Tru64's nm complains that /dev/null is an invalid object file
7191       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7192       */dev/null* | *'Invalid file or object type'*)
7193         lt_cv_path_NM="$tmp_nm -B"
7194         break
7195         ;;
7196       *)
7197         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7198         */dev/null*)
7199           lt_cv_path_NM="$tmp_nm -p"
7200           break
7201           ;;
7202         *)
7203           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7204           continue # so that we can try to find one that supports BSD flags
7205           ;;
7206         esac
7207       esac
7208     fi
7209   done
7210   IFS="$lt_save_ifs"
7211   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7212 fi
7213 fi
7214 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7215 echo "${ECHO_T}$lt_cv_path_NM" >&6
7216 NM="$lt_cv_path_NM"
7217
7218
7219
7220
7221
7222 # Check for command to grab the raw symbol name followed by C symbol from nm.
7223 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7224 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7225 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228
7229 # These are sane defaults that work on at least a few old systems.
7230 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7231
7232 # Character class describing NM global symbol codes.
7233 symcode='[BCDEGRST]'
7234
7235 # Regexp to match symbols that can be accessed directly from C.
7236 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7237
7238 # Transform the above into a raw symbol and a C symbol.
7239 symxfrm='\1 \2\3 \3'
7240
7241 # Transform an extracted symbol line into a proper C declaration
7242 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7243
7244 # Transform an extracted symbol line into symbol name and symbol address
7245 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'"
7246
7247 # Define system-specific variables.
7248 case $host_os in
7249 aix*)
7250   symcode='[BCDT]'
7251   ;;
7252 cygwin* | mingw* | pw32*)
7253   symcode='[ABCDGISTW]'
7254   ;;
7255 hpux*) # Its linker distinguishes data from code symbols
7256   if test "$host_cpu" = ia64; then
7257     symcode='[ABCDEGRST]'
7258   fi
7259   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7260   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'"
7261   ;;
7262 linux*)
7263   if test "$host_cpu" = ia64; then
7264     symcode='[ABCDGIRSTW]'
7265     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7266     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'"
7267   fi
7268   ;;
7269 irix* | nonstopux*)
7270   symcode='[BCDEGRST]'
7271   ;;
7272 osf*)
7273   symcode='[BCDEGQRST]'
7274   ;;
7275 solaris* | sysv5*)
7276   symcode='[BDRT]'
7277   ;;
7278 sysv4)
7279   symcode='[DFNSTU]'
7280   ;;
7281 esac
7282
7283 # Handle CRLF in mingw tool chain
7284 opt_cr=
7285 case $build_os in
7286 mingw*)
7287   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7288   ;;
7289 esac
7290
7291 # If we're using GNU nm, then use its standard symbol codes.
7292 case `$NM -V 2>&1` in
7293 *GNU* | *'with BFD'*)
7294   symcode='[ABCDGIRSTW]' ;;
7295 esac
7296
7297 # Try without a prefix undercore, then with it.
7298 for ac_symprfx in "" "_"; do
7299
7300   # Write the raw and C identifiers.
7301   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7302
7303   # Check to see that the pipe works correctly.
7304   pipe_works=no
7305
7306   rm -f conftest*
7307   cat > conftest.$ac_ext <<EOF
7308 #ifdef __cplusplus
7309 extern "C" {
7310 #endif
7311 char nm_test_var;
7312 void nm_test_func(){}
7313 #ifdef __cplusplus
7314 }
7315 #endif
7316 int main(){nm_test_var='a';nm_test_func();return(0);}
7317 EOF
7318
7319   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320   (eval $ac_compile) 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); }; then
7324     # Now try to grab the symbols.
7325     nlist=conftest.nm
7326     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7327   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } && test -s "$nlist"; then
7331       # Try sorting and uniquifying the output.
7332       if sort "$nlist" | uniq > "$nlist"T; then
7333         mv -f "$nlist"T "$nlist"
7334       else
7335         rm -f "$nlist"T
7336       fi
7337
7338       # Make sure that we snagged all the symbols we need.
7339       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7340         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7341           cat <<EOF > conftest.$ac_ext
7342 #ifdef __cplusplus
7343 extern "C" {
7344 #endif
7345
7346 EOF
7347           # Now generate the symbol file.
7348           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7349
7350           cat <<EOF >> conftest.$ac_ext
7351 #if defined (__STDC__) && __STDC__
7352 # define lt_ptr_t void *
7353 #else
7354 # define lt_ptr_t char *
7355 # define const
7356 #endif
7357
7358 /* The mapping between symbol names and symbols. */
7359 const struct {
7360   const char *name;
7361   lt_ptr_t address;
7362 }
7363 lt_preloaded_symbols[] =
7364 {
7365 EOF
7366           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7367           cat <<\EOF >> conftest.$ac_ext
7368   {0, (lt_ptr_t) 0}
7369 };
7370
7371 #ifdef __cplusplus
7372 }
7373 #endif
7374 EOF
7375           # Now try linking the two files.
7376           mv conftest.$ac_objext conftstm.$ac_objext
7377           lt_save_LIBS="$LIBS"
7378           lt_save_CFLAGS="$CFLAGS"
7379           LIBS="conftstm.$ac_objext"
7380           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7381           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382   (eval $ac_link) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7386             pipe_works=yes
7387           fi
7388           LIBS="$lt_save_LIBS"
7389           CFLAGS="$lt_save_CFLAGS"
7390         else
7391           echo "cannot find nm_test_func in $nlist" >&5
7392         fi
7393       else
7394         echo "cannot find nm_test_var in $nlist" >&5
7395       fi
7396     else
7397       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7398     fi
7399   else
7400     echo "$progname: failed program was:" >&5
7401     cat conftest.$ac_ext >&5
7402   fi
7403   rm -f conftest* conftst*
7404
7405   # Do not use the global_symbol_pipe unless it works.
7406   if test "$pipe_works" = yes; then
7407     break
7408   else
7409     lt_cv_sys_global_symbol_pipe=
7410   fi
7411 done
7412
7413 fi
7414
7415 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7416   lt_cv_sys_global_symbol_to_cdecl=
7417 fi
7418 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7419   echo "$as_me:$LINENO: result: failed" >&5
7420 echo "${ECHO_T}failed" >&6
7421 else
7422   echo "$as_me:$LINENO: result: ok" >&5
7423 echo "${ECHO_T}ok" >&6
7424 fi
7425
7426
7427 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7428 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7429 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7433     libltdl_cv_preloaded_symbols=yes
7434   else
7435     libltdl_cv_preloaded_symbols=no
7436   fi
7437
7438 fi
7439 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7440 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7441 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7442
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_PRELOADED_SYMBOLS 1
7445 _ACEOF
7446
7447 fi
7448
7449 LIBADD_DL=
7450
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457
7458 echo "$as_me:$LINENO: checking for shl_load" >&5
7459 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7460 if test "${ac_cv_func_shl_load+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h.  */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h.  */
7469 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7471 #define shl_load innocuous_shl_load
7472
7473 /* System header to define __stub macros and hopefully few prototypes,
7474     which can conflict with char shl_load (); below.
7475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476     <limits.h> exists even on freestanding compilers.  */
7477
7478 #ifdef __STDC__
7479 # include <limits.h>
7480 #else
7481 # include <assert.h>
7482 #endif
7483
7484 #undef shl_load
7485
7486 /* Override any gcc2 internal prototype to avoid an error.  */
7487 #ifdef __cplusplus
7488 extern "C"
7489 {
7490 #endif
7491 /* We use char because int might match the return type of a gcc2
7492    builtin and then its argument prototype would still apply.  */
7493 char shl_load ();
7494 /* The GNU C library defines this for functions which it implements
7495     to always fail with ENOSYS.  Some functions are actually named
7496     something starting with __ and the normal name is an alias.  */
7497 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7498 choke me
7499 #else
7500 char (*f) () = shl_load;
7501 #endif
7502 #ifdef __cplusplus
7503 }
7504 #endif
7505
7506 int
7507 main ()
7508 {
7509 return f != shl_load;
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>conftest.er1
7517   ac_status=$?
7518   grep -v '^ *+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -z "$ac_c_werror_flag"
7524                          || test ! -s conftest.err'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; } &&
7530          { ac_try='test -s conftest$ac_exeext'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_func_shl_load=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 ac_cv_func_shl_load=no
7542 fi
7543 rm -f conftest.err conftest.$ac_objext \
7544       conftest$ac_exeext conftest.$ac_ext
7545 fi
7546 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7547 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7548 if test $ac_cv_func_shl_load = yes; then
7549
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_SHL_LOAD 1
7552 _ACEOF
7553
7554 else
7555   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7556 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7557 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   ac_check_lib_save_LIBS=$LIBS
7561 LIBS="-ldld  $LIBS"
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h.  */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h.  */
7568
7569 /* Override any gcc2 internal prototype to avoid an error.  */
7570 #ifdef __cplusplus
7571 extern "C"
7572 #endif
7573 /* We use char because int might match the return type of a gcc2
7574    builtin and then its argument prototype would still apply.  */
7575 char shl_load ();
7576 int
7577 main ()
7578 {
7579 shl_load ();
7580   ;
7581   return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586   (eval $ac_link) 2>conftest.er1
7587   ac_status=$?
7588   grep -v '^ *+' conftest.er1 >conftest.err
7589   rm -f conftest.er1
7590   cat conftest.err >&5
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -z "$ac_c_werror_flag"
7594                          || test ! -s conftest.err'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   ac_cv_lib_dld_shl_load=yes
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_lib_dld_shl_load=no
7612 fi
7613 rm -f conftest.err conftest.$ac_objext \
7614       conftest$ac_exeext conftest.$ac_ext
7615 LIBS=$ac_check_lib_save_LIBS
7616 fi
7617 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7618 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7619 if test $ac_cv_lib_dld_shl_load = yes; then
7620
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_SHL_LOAD 1
7623 _ACEOF
7624
7625         LIBADD_DL="$LIBADD_DL -ldld"
7626 else
7627   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7628 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-ldl  $LIBS"
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640
7641 /* Override any gcc2 internal prototype to avoid an error.  */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 /* We use char because int might match the return type of a gcc2
7646    builtin and then its argument prototype would still apply.  */
7647 char dlopen ();
7648 int
7649 main ()
7650 {
7651 dlopen ();
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658   (eval $ac_link) 2>conftest.er1
7659   ac_status=$?
7660   grep -v '^ *+' conftest.er1 >conftest.err
7661   rm -f conftest.er1
7662   cat conftest.err >&5
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } &&
7665          { ac_try='test -z "$ac_c_werror_flag"
7666                          || test ! -s conftest.err'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; } &&
7672          { ac_try='test -s conftest$ac_exeext'
7673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674   (eval $ac_try) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; }; then
7678   ac_cv_lib_dl_dlopen=yes
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683 ac_cv_lib_dl_dlopen=no
7684 fi
7685 rm -f conftest.err conftest.$ac_objext \
7686       conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7688 fi
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7691 if test $ac_cv_lib_dl_dlopen = yes; then
7692
7693 cat >>confdefs.h <<\_ACEOF
7694 #define HAVE_LIBDL 1
7695 _ACEOF
7696
7697                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7698 else
7699   cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h.  */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h.  */
7705 #if HAVE_DLFCN_H
7706 #  include <dlfcn.h>
7707 #endif
7708
7709 int
7710 main ()
7711 {
7712 dlopen(0, 0);
7713   ;
7714   return 0;
7715 }
7716 _ACEOF
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719   (eval $ac_link) 2>conftest.er1
7720   ac_status=$?
7721   grep -v '^ *+' conftest.er1 >conftest.err
7722   rm -f conftest.er1
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } &&
7726          { ac_try='test -z "$ac_c_werror_flag"
7727                          || test ! -s conftest.err'
7728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729   (eval $ac_try) 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; } &&
7733          { ac_try='test -s conftest$ac_exeext'
7734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735   (eval $ac_try) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); }; }; then
7739
7740 cat >>confdefs.h <<\_ACEOF
7741 #define HAVE_LIBDL 1
7742 _ACEOF
7743  libltdl_cv_func_dlopen="yes"
7744 else
7745   echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7749 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7750 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   ac_check_lib_save_LIBS=$LIBS
7754 LIBS="-lsvld  $LIBS"
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 /* Override any gcc2 internal prototype to avoid an error.  */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767    builtin and then its argument prototype would still apply.  */
7768 char dlopen ();
7769 int
7770 main ()
7771 {
7772 dlopen ();
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779   (eval $ac_link) 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -z "$ac_c_werror_flag"
7787                          || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest$ac_exeext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_cv_lib_svld_dlopen=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 ac_cv_lib_svld_dlopen=no
7805 fi
7806 rm -f conftest.err conftest.$ac_objext \
7807       conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7809 fi
7810 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7811 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7812 if test $ac_cv_lib_svld_dlopen = yes; then
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_LIBDL 1
7816 _ACEOF
7817
7818                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7819 else
7820   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7821 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7822 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7823   echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825   ac_check_lib_save_LIBS=$LIBS
7826 LIBS="-ldld  $LIBS"
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h.  */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h.  */
7833
7834 /* Override any gcc2 internal prototype to avoid an error.  */
7835 #ifdef __cplusplus
7836 extern "C"
7837 #endif
7838 /* We use char because int might match the return type of a gcc2
7839    builtin and then its argument prototype would still apply.  */
7840 char dld_link ();
7841 int
7842 main ()
7843 {
7844 dld_link ();
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851   (eval $ac_link) 2>conftest.er1
7852   ac_status=$?
7853   grep -v '^ *+' conftest.er1 >conftest.err
7854   rm -f conftest.er1
7855   cat conftest.err >&5
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); } &&
7858          { ac_try='test -z "$ac_c_werror_flag"
7859                          || test ! -s conftest.err'
7860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861   (eval $ac_try) 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }; } &&
7865          { ac_try='test -s conftest$ac_exeext'
7866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867   (eval $ac_try) 2>&5
7868   ac_status=$?
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); }; }; then
7871   ac_cv_lib_dld_dld_link=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ac_cv_lib_dld_dld_link=no
7877 fi
7878 rm -f conftest.err conftest.$ac_objext \
7879       conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7881 fi
7882 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7883 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7884 if test $ac_cv_lib_dld_dld_link = yes; then
7885
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_DLD 1
7888 _ACEOF
7889
7890                 LIBADD_DL="$LIBADD_DL -ldld"
7891 else
7892   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7893 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7894 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7905 #define _dyld_func_lookup innocuous__dyld_func_lookup
7906
7907 /* System header to define __stub macros and hopefully few prototypes,
7908     which can conflict with char _dyld_func_lookup (); below.
7909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7910     <limits.h> exists even on freestanding compilers.  */
7911
7912 #ifdef __STDC__
7913 # include <limits.h>
7914 #else
7915 # include <assert.h>
7916 #endif
7917
7918 #undef _dyld_func_lookup
7919
7920 /* Override any gcc2 internal prototype to avoid an error.  */
7921 #ifdef __cplusplus
7922 extern "C"
7923 {
7924 #endif
7925 /* We use char because int might match the return type of a gcc2
7926    builtin and then its argument prototype would still apply.  */
7927 char _dyld_func_lookup ();
7928 /* The GNU C library defines this for functions which it implements
7929     to always fail with ENOSYS.  Some functions are actually named
7930     something starting with __ and the normal name is an alias.  */
7931 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7932 choke me
7933 #else
7934 char (*f) () = _dyld_func_lookup;
7935 #endif
7936 #ifdef __cplusplus
7937 }
7938 #endif
7939
7940 int
7941 main ()
7942 {
7943 return f != _dyld_func_lookup;
7944   ;
7945   return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950   (eval $ac_link) 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -z "$ac_c_werror_flag"
7958                          || test ! -s conftest.err'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; } &&
7964          { ac_try='test -s conftest$ac_exeext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_func__dyld_func_lookup=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_func__dyld_func_lookup=no
7976 fi
7977 rm -f conftest.err conftest.$ac_objext \
7978       conftest$ac_exeext conftest.$ac_ext
7979 fi
7980 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7981 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7982 if test $ac_cv_func__dyld_func_lookup = yes; then
7983
7984 cat >>confdefs.h <<\_ACEOF
7985 #define HAVE_DYLD 1
7986 _ACEOF
7987
7988 fi
7989
7990
7991 fi
7992
7993
7994 fi
7995
7996
7997 fi
7998 rm -f conftest.err conftest.$ac_objext \
7999       conftest$ac_exeext conftest.$ac_ext
8000
8001 fi
8002
8003
8004 fi
8005
8006
8007 fi
8008
8009
8010 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8011 then
8012   lt_save_LIBS="$LIBS"
8013   LIBS="$LIBS $LIBADD_DL"
8014
8015 for ac_func in dlerror
8016 do
8017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8018 echo "$as_me:$LINENO: checking for $ac_func" >&5
8019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8020 if eval "test \"\${$as_ac_var+set}\" = set"; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8031 #define $ac_func innocuous_$ac_func
8032
8033 /* System header to define __stub macros and hopefully few prototypes,
8034     which can conflict with char $ac_func (); below.
8035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8036     <limits.h> exists even on freestanding compilers.  */
8037
8038 #ifdef __STDC__
8039 # include <limits.h>
8040 #else
8041 # include <assert.h>
8042 #endif
8043
8044 #undef $ac_func
8045
8046 /* Override any gcc2 internal prototype to avoid an error.  */
8047 #ifdef __cplusplus
8048 extern "C"
8049 {
8050 #endif
8051 /* We use char because int might match the return type of a gcc2
8052    builtin and then its argument prototype would still apply.  */
8053 char $ac_func ();
8054 /* The GNU C library defines this for functions which it implements
8055     to always fail with ENOSYS.  Some functions are actually named
8056     something starting with __ and the normal name is an alias.  */
8057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8058 choke me
8059 #else
8060 char (*f) () = $ac_func;
8061 #endif
8062 #ifdef __cplusplus
8063 }
8064 #endif
8065
8066 int
8067 main ()
8068 {
8069 return f != $ac_func;
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076   (eval $ac_link) 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } &&
8083          { ac_try='test -z "$ac_c_werror_flag"
8084                          || test ! -s conftest.err'
8085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086   (eval $ac_try) 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; } &&
8090          { ac_try='test -s conftest$ac_exeext'
8091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092   (eval $ac_try) 2>&5
8093   ac_status=$?
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); }; }; then
8096   eval "$as_ac_var=yes"
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 eval "$as_ac_var=no"
8102 fi
8103 rm -f conftest.err conftest.$ac_objext \
8104       conftest$ac_exeext conftest.$ac_ext
8105 fi
8106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8108 if test `eval echo '${'$as_ac_var'}'` = yes; then
8109   cat >>confdefs.h <<_ACEOF
8110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8111 _ACEOF
8112
8113 fi
8114 done
8115
8116   LIBS="$lt_save_LIBS"
8117 fi
8118 ac_ext=c
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123
8124
8125
8126 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8127 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8128 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8129   echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131   ac_cv_sys_symbol_underscore=no
8132   cat > conftest.$ac_ext <<EOF
8133 void nm_test_func(){}
8134 int main(){nm_test_func;return 0;}
8135 EOF
8136   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137   (eval $ac_compile) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; then
8141     # Now try to grab the symbols.
8142     ac_nlist=conftest.nm
8143     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8144   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } && test -s "$ac_nlist"; then
8148       # See whether the symbols have a leading underscore.
8149       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8150         ac_cv_sys_symbol_underscore=yes
8151       else
8152         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8153           :
8154         else
8155           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8156         fi
8157       fi
8158     else
8159       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8160     fi
8161   else
8162     echo "configure: failed program was:" >&5
8163     cat conftest.c >&5
8164   fi
8165   rm -rf conftest*
8166
8167 fi
8168 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8169 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8170
8171
8172 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8173   if test x"$libltdl_cv_func_dlopen" = xyes ||
8174      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8175         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8176 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8177 if test "${libltdl_cv_need_uscore+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   libltdl_cv_need_uscore=unknown
8181           save_LIBS="$LIBS"
8182           LIBS="$LIBS $LIBADD_DL"
8183           if test "$cross_compiling" = yes; then :
8184   libltdl_cv_need_uscore=cross
8185 else
8186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8187   lt_status=$lt_dlunknown
8188   cat > conftest.$ac_ext <<EOF
8189 #line 8189 "configure"
8190 #include "confdefs.h"
8191
8192 #if HAVE_DLFCN_H
8193 #include <dlfcn.h>
8194 #endif
8195
8196 #include <stdio.h>
8197
8198 #ifdef RTLD_GLOBAL
8199 #  define LT_DLGLOBAL           RTLD_GLOBAL
8200 #else
8201 #  ifdef DL_GLOBAL
8202 #    define LT_DLGLOBAL         DL_GLOBAL
8203 #  else
8204 #    define LT_DLGLOBAL         0
8205 #  endif
8206 #endif
8207
8208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8209    find out it does not work in some platform. */
8210 #ifndef LT_DLLAZY_OR_NOW
8211 #  ifdef RTLD_LAZY
8212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8213 #  else
8214 #    ifdef DL_LAZY
8215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8216 #    else
8217 #      ifdef RTLD_NOW
8218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8219 #      else
8220 #        ifdef DL_NOW
8221 #          define LT_DLLAZY_OR_NOW      DL_NOW
8222 #        else
8223 #          define LT_DLLAZY_OR_NOW      0
8224 #        endif
8225 #      endif
8226 #    endif
8227 #  endif
8228 #endif
8229
8230 #ifdef __cplusplus
8231 extern "C" void exit (int);
8232 #endif
8233
8234 void fnord() { int i=42;}
8235 int main ()
8236 {
8237   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8238   int status = $lt_dlunknown;
8239
8240   if (self)
8241     {
8242       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8243       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8244       /* dlclose (self); */
8245     }
8246
8247     exit (status);
8248 }
8249 EOF
8250   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251   (eval $ac_link) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8255     (./conftest; exit; ) 2>/dev/null
8256     lt_status=$?
8257     case x$lt_status in
8258       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8259       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8260       x$lt_unknown|x*)  ;;
8261     esac
8262   else :
8263     # compilation failed
8264
8265   fi
8266 fi
8267 rm -fr conftest*
8268
8269           LIBS="$save_LIBS"
8270
8271 fi
8272 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8273 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8274   fi
8275 fi
8276
8277 if test x"$libltdl_cv_need_uscore" = xyes; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define NEED_USCORE 1
8281 _ACEOF
8282
8283 fi
8284
8285
8286 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8287 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8288 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8289   echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291   # PORTME does your system automatically load deplibs for dlopen?
8292   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8293   # For now, we just catch OSes we know something about -- in the
8294   # future, we'll try test this programmatically.
8295   libltdl_cv_sys_dlopen_deplibs=unknown
8296   case "$host_os" in
8297   aix3*|aix4.1.*|aix4.2.*)
8298     # Unknown whether this is true for these versions of AIX, but
8299     # we want this `case' here to explicitly catch those versions.
8300     libltdl_cv_sys_dlopen_deplibs=unknown
8301     ;;
8302   aix[45]*)
8303     libltdl_cv_sys_dlopen_deplibs=yes
8304     ;;
8305   darwin*)
8306     # Assuming the user has installed a libdl from somewhere, this is true
8307     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8308     libltdl_cv_sys_dlopen_deplibs=yes
8309     ;;
8310   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8311     # GNU and its variants, using gnu ld.so (Glibc)
8312     libltdl_cv_sys_dlopen_deplibs=yes
8313     ;;
8314   hpux10*|hpux11*)
8315     libltdl_cv_sys_dlopen_deplibs=yes
8316     ;;
8317   irix[12345]*|irix6.[01]*)
8318     # Catch all versions of IRIX before 6.2, and indicate that we don't
8319     # know how it worked for any of those versions.
8320     libltdl_cv_sys_dlopen_deplibs=unknown
8321     ;;
8322   irix*)
8323     # The case above catches anything before 6.2, and it's known that
8324     # at 6.2 and later dlopen does load deplibs.
8325     libltdl_cv_sys_dlopen_deplibs=yes
8326     ;;
8327   netbsd*)
8328     libltdl_cv_sys_dlopen_deplibs=yes
8329     ;;
8330   openbsd*)
8331     libltdl_cv_sys_dlopen_deplibs=yes
8332     ;;
8333   osf[1234]*)
8334     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8335     # it did *not* use an RPATH in a shared library to find objects the
8336     # library depends on, so we explictly say `no'.
8337     libltdl_cv_sys_dlopen_deplibs=no
8338     ;;
8339   osf5.0|osf5.0a|osf5.1)
8340     # dlopen *does* load deplibs and with the right loader patch applied
8341     # it even uses RPATH in a shared library to search for shared objects
8342     # that the library depends on, but there's no easy way to know if that
8343     # patch is installed.  Since this is the case, all we can really
8344     # say is unknown -- it depends on the patch being installed.  If
8345     # it is, this changes to `yes'.  Without it, it would be `no'.
8346     libltdl_cv_sys_dlopen_deplibs=unknown
8347     ;;
8348   osf*)
8349     # the two cases above should catch all versions of osf <= 5.1.  Read
8350     # the comments above for what we know about them.
8351     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8352     # is used to find them so we can finally say `yes'.
8353     libltdl_cv_sys_dlopen_deplibs=yes
8354     ;;
8355   solaris*)
8356     libltdl_cv_sys_dlopen_deplibs=yes
8357     ;;
8358   esac
8359
8360 fi
8361 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8362 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8363 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8364
8365 cat >>confdefs.h <<\_ACEOF
8366 #define LTDL_DLOPEN_DEPLIBS 1
8367 _ACEOF
8368
8369 fi
8370
8371
8372 for ac_header in argz.h
8373 do
8374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376   echo "$as_me:$LINENO: checking for $ac_header" >&5
8377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 fi
8381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8383 else
8384   # Is the header compilable?
8385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393 $ac_includes_default
8394 #include <$ac_header>
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398   (eval $ac_compile) 2>conftest.er1
8399   ac_status=$?
8400   grep -v '^ *+' conftest.er1 >conftest.err
8401   rm -f conftest.er1
8402   cat conftest.err >&5
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -z "$ac_c_werror_flag"
8406                          || test ! -s conftest.err'
8407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408   (eval $ac_try) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_header_compiler=yes
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 ac_header_compiler=no
8424 fi
8425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427 echo "${ECHO_T}$ac_header_compiler" >&6
8428
8429 # Is the header present?
8430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438 #include <$ac_header>
8439 _ACEOF
8440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } >/dev/null; then
8448   if test -s conftest.err; then
8449     ac_cpp_err=$ac_c_preproc_warn_flag
8450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8451   else
8452     ac_cpp_err=
8453   fi
8454 else
8455   ac_cpp_err=yes
8456 fi
8457 if test -z "$ac_cpp_err"; then
8458   ac_header_preproc=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463   ac_header_preproc=no
8464 fi
8465 rm -f conftest.err conftest.$ac_ext
8466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8467 echo "${ECHO_T}$ac_header_preproc" >&6
8468
8469 # So?  What about this header?
8470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8471   yes:no: )
8472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8476     ac_header_preproc=yes
8477     ;;
8478   no:yes:* )
8479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8491     (
8492       cat <<\_ASBOX
8493 ## ----------------------------------- ##
8494 ## Report this to llvmbugs@cs.uiuc.edu ##
8495 ## ----------------------------------- ##
8496 _ASBOX
8497     ) |
8498       sed "s/^/$as_me: WARNING:     /" >&2
8499     ;;
8500 esac
8501 echo "$as_me:$LINENO: checking for $ac_header" >&5
8502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   eval "$as_ac_Header=\$ac_header_preproc"
8507 fi
8508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8510
8511 fi
8512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8513   cat >>confdefs.h <<_ACEOF
8514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8515 _ACEOF
8516
8517 fi
8518
8519 done
8520
8521
8522 echo "$as_me:$LINENO: checking for error_t" >&5
8523 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8524 if test "${ac_cv_type_error_t+set}" = set; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533 #if HAVE_ARGZ_H
8534 #  include <argz.h>
8535 #endif
8536
8537 int
8538 main ()
8539 {
8540 if ((error_t *) 0)
8541   return 0;
8542 if (sizeof (error_t))
8543   return 0;
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550   (eval $ac_compile) 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -z "$ac_c_werror_flag"
8558                          || test ! -s conftest.err'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; } &&
8564          { ac_try='test -s conftest.$ac_objext'
8565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566   (eval $ac_try) 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; }; then
8570   ac_cv_type_error_t=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ac_cv_type_error_t=no
8576 fi
8577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578 fi
8579 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8580 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8581 if test $ac_cv_type_error_t = yes; then
8582
8583 cat >>confdefs.h <<_ACEOF
8584 #define HAVE_ERROR_T 1
8585 _ACEOF
8586
8587
8588 else
8589
8590 cat >>confdefs.h <<\_ACEOF
8591 #define error_t int
8592 _ACEOF
8593
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8603 do
8604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8605 echo "$as_me:$LINENO: checking for $ac_func" >&5
8606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8607 if eval "test \"\${$as_ac_var+set}\" = set"; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8618 #define $ac_func innocuous_$ac_func
8619
8620 /* System header to define __stub macros and hopefully few prototypes,
8621     which can conflict with char $ac_func (); below.
8622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623     <limits.h> exists even on freestanding compilers.  */
8624
8625 #ifdef __STDC__
8626 # include <limits.h>
8627 #else
8628 # include <assert.h>
8629 #endif
8630
8631 #undef $ac_func
8632
8633 /* Override any gcc2 internal prototype to avoid an error.  */
8634 #ifdef __cplusplus
8635 extern "C"
8636 {
8637 #endif
8638 /* We use char because int might match the return type of a gcc2
8639    builtin and then its argument prototype would still apply.  */
8640 char $ac_func ();
8641 /* The GNU C library defines this for functions which it implements
8642     to always fail with ENOSYS.  Some functions are actually named
8643     something starting with __ and the normal name is an alias.  */
8644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8645 choke me
8646 #else
8647 char (*f) () = $ac_func;
8648 #endif
8649 #ifdef __cplusplus
8650 }
8651 #endif
8652
8653 int
8654 main ()
8655 {
8656 return f != $ac_func;
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663   (eval $ac_link) 2>conftest.er1
8664   ac_status=$?
8665   grep -v '^ *+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } &&
8670          { ac_try='test -z "$ac_c_werror_flag"
8671                          || test ! -s conftest.err'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; } &&
8677          { ac_try='test -s conftest$ac_exeext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   eval "$as_ac_var=yes"
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 eval "$as_ac_var=no"
8689 fi
8690 rm -f conftest.err conftest.$ac_objext \
8691       conftest$ac_exeext conftest.$ac_ext
8692 fi
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696   cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 _ACEOF
8699
8700 fi
8701 done
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8731                   stdio.h unistd.h
8732 do
8733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8735   echo "$as_me:$LINENO: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 fi
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8742 else
8743   # Is the header compilable?
8744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h.  */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h.  */
8752 $ac_includes_default
8753 #include <$ac_header>
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757   (eval $ac_compile) 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -z "$ac_c_werror_flag"
8765                          || test ! -s conftest.err'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; } &&
8771          { ac_try='test -s conftest.$ac_objext'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   ac_header_compiler=yes
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 ac_header_compiler=no
8783 fi
8784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8786 echo "${ECHO_T}$ac_header_compiler" >&6
8787
8788 # Is the header present?
8789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h.  */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h.  */
8797 #include <$ac_header>
8798 _ACEOF
8799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } >/dev/null; then
8807   if test -s conftest.err; then
8808     ac_cpp_err=$ac_c_preproc_warn_flag
8809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8810   else
8811     ac_cpp_err=
8812   fi
8813 else
8814   ac_cpp_err=yes
8815 fi
8816 if test -z "$ac_cpp_err"; then
8817   ac_header_preproc=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822   ac_header_preproc=no
8823 fi
8824 rm -f conftest.err conftest.$ac_ext
8825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8826 echo "${ECHO_T}$ac_header_preproc" >&6
8827
8828 # So?  What about this header?
8829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8830   yes:no: )
8831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8835     ac_header_preproc=yes
8836     ;;
8837   no:yes:* )
8838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8850     (
8851       cat <<\_ASBOX
8852 ## ----------------------------------- ##
8853 ## Report this to llvmbugs@cs.uiuc.edu ##
8854 ## ----------------------------------- ##
8855 _ASBOX
8856     ) |
8857       sed "s/^/$as_me: WARNING:     /" >&2
8858     ;;
8859 esac
8860 echo "$as_me:$LINENO: checking for $ac_header" >&5
8861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   eval "$as_ac_Header=\$ac_header_preproc"
8866 fi
8867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8869
8870 fi
8871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8872   cat >>confdefs.h <<_ACEOF
8873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8874 _ACEOF
8875
8876 fi
8877
8878 done
8879
8880
8881
8882
8883
8884 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8885 do
8886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888   echo "$as_me:$LINENO: checking for $ac_header" >&5
8889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891   echo $ECHO_N "(cached) $ECHO_C" >&6
8892 fi
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895 else
8896   # Is the header compilable?
8897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905 $ac_includes_default
8906 #include <$ac_header>
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910   (eval $ac_compile) 2>conftest.er1
8911   ac_status=$?
8912   grep -v '^ *+' conftest.er1 >conftest.err
8913   rm -f conftest.er1
8914   cat conftest.err >&5
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -z "$ac_c_werror_flag"
8918                          || test ! -s conftest.err'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; } &&
8924          { ac_try='test -s conftest.$ac_objext'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; }; then
8930   ac_header_compiler=yes
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_header_compiler=no
8936 fi
8937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8939 echo "${ECHO_T}$ac_header_compiler" >&6
8940
8941 # Is the header present?
8942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950 #include <$ac_header>
8951 _ACEOF
8952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8954   ac_status=$?
8955   grep -v '^ *+' conftest.er1 >conftest.err
8956   rm -f conftest.er1
8957   cat conftest.err >&5
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } >/dev/null; then
8960   if test -s conftest.err; then
8961     ac_cpp_err=$ac_c_preproc_warn_flag
8962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8963   else
8964     ac_cpp_err=
8965   fi
8966 else
8967   ac_cpp_err=yes
8968 fi
8969 if test -z "$ac_cpp_err"; then
8970   ac_header_preproc=yes
8971 else
8972   echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975   ac_header_preproc=no
8976 fi
8977 rm -f conftest.err conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8979 echo "${ECHO_T}$ac_header_preproc" >&6
8980
8981 # So?  What about this header?
8982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8983   yes:no: )
8984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8988     ac_header_preproc=yes
8989     ;;
8990   no:yes:* )
8991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9003     (
9004       cat <<\_ASBOX
9005 ## ----------------------------------- ##
9006 ## Report this to llvmbugs@cs.uiuc.edu ##
9007 ## ----------------------------------- ##
9008 _ASBOX
9009     ) |
9010       sed "s/^/$as_me: WARNING:     /" >&2
9011     ;;
9012 esac
9013 echo "$as_me:$LINENO: checking for $ac_header" >&5
9014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9016   echo $ECHO_N "(cached) $ECHO_C" >&6
9017 else
9018   eval "$as_ac_Header=\$ac_header_preproc"
9019 fi
9020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9022
9023 fi
9024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025   cat >>confdefs.h <<_ACEOF
9026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9027 _ACEOF
9028
9029 fi
9030
9031 done
9032
9033
9034
9035 for ac_header in string.h strings.h
9036 do
9037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9039   echo "$as_me:$LINENO: checking for $ac_header" >&5
9040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042   echo $ECHO_N "(cached) $ECHO_C" >&6
9043 fi
9044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9046 else
9047   # Is the header compilable?
9048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 $ac_includes_default
9057 #include <$ac_header>
9058 _ACEOF
9059 rm -f conftest.$ac_objext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061   (eval $ac_compile) 2>conftest.er1
9062   ac_status=$?
9063   grep -v '^ *+' conftest.er1 >conftest.err
9064   rm -f conftest.er1
9065   cat conftest.err >&5
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); } &&
9068          { ac_try='test -z "$ac_c_werror_flag"
9069                          || test ! -s conftest.err'
9070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071   (eval $ac_try) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); }; } &&
9075          { ac_try='test -s conftest.$ac_objext'
9076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077   (eval $ac_try) 2>&5
9078   ac_status=$?
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); }; }; then
9081   ac_header_compiler=yes
9082 else
9083   echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 ac_header_compiler=no
9087 fi
9088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9090 echo "${ECHO_T}$ac_header_compiler" >&6
9091
9092 # Is the header present?
9093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 /* confdefs.h.  */
9097 _ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h.  */
9101 #include <$ac_header>
9102 _ACEOF
9103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9105   ac_status=$?
9106   grep -v '^ *+' conftest.er1 >conftest.err
9107   rm -f conftest.er1
9108   cat conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } >/dev/null; then
9111   if test -s conftest.err; then
9112     ac_cpp_err=$ac_c_preproc_warn_flag
9113     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9114   else
9115     ac_cpp_err=
9116   fi
9117 else
9118   ac_cpp_err=yes
9119 fi
9120 if test -z "$ac_cpp_err"; then
9121   ac_header_preproc=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126   ac_header_preproc=no
9127 fi
9128 rm -f conftest.err conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9130 echo "${ECHO_T}$ac_header_preproc" >&6
9131
9132 # So?  What about this header?
9133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9134   yes:no: )
9135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9139     ac_header_preproc=yes
9140     ;;
9141   no:yes:* )
9142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9154     (
9155       cat <<\_ASBOX
9156 ## ----------------------------------- ##
9157 ## Report this to llvmbugs@cs.uiuc.edu ##
9158 ## ----------------------------------- ##
9159 _ASBOX
9160     ) |
9161       sed "s/^/$as_me: WARNING:     /" >&2
9162     ;;
9163 esac
9164 echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167   echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169   eval "$as_ac_Header=\$ac_header_preproc"
9170 fi
9171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9173
9174 fi
9175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9176   cat >>confdefs.h <<_ACEOF
9177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9178 _ACEOF
9179  break
9180 fi
9181
9182 done
9183
9184
9185
9186
9187 for ac_func in strchr index
9188 do
9189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9190 echo "$as_me:$LINENO: checking for $ac_func" >&5
9191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9192 if eval "test \"\${$as_ac_var+set}\" = set"; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195   cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9203 #define $ac_func innocuous_$ac_func
9204
9205 /* System header to define __stub macros and hopefully few prototypes,
9206     which can conflict with char $ac_func (); below.
9207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9208     <limits.h> exists even on freestanding compilers.  */
9209
9210 #ifdef __STDC__
9211 # include <limits.h>
9212 #else
9213 # include <assert.h>
9214 #endif
9215
9216 #undef $ac_func
9217
9218 /* Override any gcc2 internal prototype to avoid an error.  */
9219 #ifdef __cplusplus
9220 extern "C"
9221 {
9222 #endif
9223 /* We use char because int might match the return type of a gcc2
9224    builtin and then its argument prototype would still apply.  */
9225 char $ac_func ();
9226 /* The GNU C library defines this for functions which it implements
9227     to always fail with ENOSYS.  Some functions are actually named
9228     something starting with __ and the normal name is an alias.  */
9229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9230 choke me
9231 #else
9232 char (*f) () = $ac_func;
9233 #endif
9234 #ifdef __cplusplus
9235 }
9236 #endif
9237
9238 int
9239 main ()
9240 {
9241 return f != $ac_func;
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248   (eval $ac_link) 2>conftest.er1
9249   ac_status=$?
9250   grep -v '^ *+' conftest.er1 >conftest.err
9251   rm -f conftest.er1
9252   cat conftest.err >&5
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -z "$ac_c_werror_flag"
9256                          || test ! -s conftest.err'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; } &&
9262          { ac_try='test -s conftest$ac_exeext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   eval "$as_ac_var=yes"
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 eval "$as_ac_var=no"
9274 fi
9275 rm -f conftest.err conftest.$ac_objext \
9276       conftest$ac_exeext conftest.$ac_ext
9277 fi
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9280 if test `eval echo '${'$as_ac_var'}'` = yes; then
9281   cat >>confdefs.h <<_ACEOF
9282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9283 _ACEOF
9284  break
9285 fi
9286 done
9287
9288
9289
9290 for ac_func in strrchr rindex
9291 do
9292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9293 echo "$as_me:$LINENO: checking for $ac_func" >&5
9294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_var+set}\" = set"; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9306 #define $ac_func innocuous_$ac_func
9307
9308 /* System header to define __stub macros and hopefully few prototypes,
9309     which can conflict with char $ac_func (); below.
9310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311     <limits.h> exists even on freestanding compilers.  */
9312
9313 #ifdef __STDC__
9314 # include <limits.h>
9315 #else
9316 # include <assert.h>
9317 #endif
9318
9319 #undef $ac_func
9320
9321 /* Override any gcc2 internal prototype to avoid an error.  */
9322 #ifdef __cplusplus
9323 extern "C"
9324 {
9325 #endif
9326 /* We use char because int might match the return type of a gcc2
9327    builtin and then its argument prototype would still apply.  */
9328 char $ac_func ();
9329 /* The GNU C library defines this for functions which it implements
9330     to always fail with ENOSYS.  Some functions are actually named
9331     something starting with __ and the normal name is an alias.  */
9332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333 choke me
9334 #else
9335 char (*f) () = $ac_func;
9336 #endif
9337 #ifdef __cplusplus
9338 }
9339 #endif
9340
9341 int
9342 main ()
9343 {
9344 return f != $ac_func;
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351   (eval $ac_link) 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } &&
9358          { ac_try='test -z "$ac_c_werror_flag"
9359                          || test ! -s conftest.err'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; } &&
9365          { ac_try='test -s conftest$ac_exeext'
9366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367   (eval $ac_try) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); }; }; then
9371   eval "$as_ac_var=yes"
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376 eval "$as_ac_var=no"
9377 fi
9378 rm -f conftest.err conftest.$ac_objext \
9379       conftest$ac_exeext conftest.$ac_ext
9380 fi
9381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9383 if test `eval echo '${'$as_ac_var'}'` = yes; then
9384   cat >>confdefs.h <<_ACEOF
9385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9386 _ACEOF
9387  break
9388 fi
9389 done
9390
9391
9392
9393 for ac_func in memcpy bcopy
9394 do
9395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9396 echo "$as_me:$LINENO: checking for $ac_func" >&5
9397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_var+set}\" = set"; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9409 #define $ac_func innocuous_$ac_func
9410
9411 /* System header to define __stub macros and hopefully few prototypes,
9412     which can conflict with char $ac_func (); below.
9413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414     <limits.h> exists even on freestanding compilers.  */
9415
9416 #ifdef __STDC__
9417 # include <limits.h>
9418 #else
9419 # include <assert.h>
9420 #endif
9421
9422 #undef $ac_func
9423
9424 /* Override any gcc2 internal prototype to avoid an error.  */
9425 #ifdef __cplusplus
9426 extern "C"
9427 {
9428 #endif
9429 /* We use char because int might match the return type of a gcc2
9430    builtin and then its argument prototype would still apply.  */
9431 char $ac_func ();
9432 /* The GNU C library defines this for functions which it implements
9433     to always fail with ENOSYS.  Some functions are actually named
9434     something starting with __ and the normal name is an alias.  */
9435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9436 choke me
9437 #else
9438 char (*f) () = $ac_func;
9439 #endif
9440 #ifdef __cplusplus
9441 }
9442 #endif
9443
9444 int
9445 main ()
9446 {
9447 return f != $ac_func;
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454   (eval $ac_link) 2>conftest.er1
9455   ac_status=$?
9456   grep -v '^ *+' conftest.er1 >conftest.err
9457   rm -f conftest.er1
9458   cat conftest.err >&5
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); } &&
9461          { ac_try='test -z "$ac_c_werror_flag"
9462                          || test ! -s conftest.err'
9463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464   (eval $ac_try) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; } &&
9468          { ac_try='test -s conftest$ac_exeext'
9469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470   (eval $ac_try) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; }; then
9474   eval "$as_ac_var=yes"
9475 else
9476   echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9478
9479 eval "$as_ac_var=no"
9480 fi
9481 rm -f conftest.err conftest.$ac_objext \
9482       conftest$ac_exeext conftest.$ac_ext
9483 fi
9484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9486 if test `eval echo '${'$as_ac_var'}'` = yes; then
9487   cat >>confdefs.h <<_ACEOF
9488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9489 _ACEOF
9490  break
9491 fi
9492 done
9493
9494
9495
9496 for ac_func in memmove strcmp
9497 do
9498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9499 echo "$as_me:$LINENO: checking for $ac_func" >&5
9500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_var+set}\" = set"; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9512 #define $ac_func innocuous_$ac_func
9513
9514 /* System header to define __stub macros and hopefully few prototypes,
9515     which can conflict with char $ac_func (); below.
9516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517     <limits.h> exists even on freestanding compilers.  */
9518
9519 #ifdef __STDC__
9520 # include <limits.h>
9521 #else
9522 # include <assert.h>
9523 #endif
9524
9525 #undef $ac_func
9526
9527 /* Override any gcc2 internal prototype to avoid an error.  */
9528 #ifdef __cplusplus
9529 extern "C"
9530 {
9531 #endif
9532 /* We use char because int might match the return type of a gcc2
9533    builtin and then its argument prototype would still apply.  */
9534 char $ac_func ();
9535 /* The GNU C library defines this for functions which it implements
9536     to always fail with ENOSYS.  Some functions are actually named
9537     something starting with __ and the normal name is an alias.  */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539 choke me
9540 #else
9541 char (*f) () = $ac_func;
9542 #endif
9543 #ifdef __cplusplus
9544 }
9545 #endif
9546
9547 int
9548 main ()
9549 {
9550 return f != $ac_func;
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557   (eval $ac_link) 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -z "$ac_c_werror_flag"
9565                          || test ! -s conftest.err'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; } &&
9571          { ac_try='test -s conftest$ac_exeext'
9572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573   (eval $ac_try) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; }; then
9577   eval "$as_ac_var=yes"
9578 else
9579   echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582 eval "$as_ac_var=no"
9583 fi
9584 rm -f conftest.err conftest.$ac_objext \
9585       conftest$ac_exeext conftest.$ac_ext
9586 fi
9587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9589 if test `eval echo '${'$as_ac_var'}'` = yes; then
9590   cat >>confdefs.h <<_ACEOF
9591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9592 _ACEOF
9593
9594 fi
9595 done
9596
9597
9598
9599
9600 for ac_func in closedir opendir readdir
9601 do
9602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9603 echo "$as_me:$LINENO: checking for $ac_func" >&5
9604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9605 if eval "test \"\${$as_ac_var+set}\" = set"; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9616 #define $ac_func innocuous_$ac_func
9617
9618 /* System header to define __stub macros and hopefully few prototypes,
9619     which can conflict with char $ac_func (); below.
9620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621     <limits.h> exists even on freestanding compilers.  */
9622
9623 #ifdef __STDC__
9624 # include <limits.h>
9625 #else
9626 # include <assert.h>
9627 #endif
9628
9629 #undef $ac_func
9630
9631 /* Override any gcc2 internal prototype to avoid an error.  */
9632 #ifdef __cplusplus
9633 extern "C"
9634 {
9635 #endif
9636 /* We use char because int might match the return type of a gcc2
9637    builtin and then its argument prototype would still apply.  */
9638 char $ac_func ();
9639 /* The GNU C library defines this for functions which it implements
9640     to always fail with ENOSYS.  Some functions are actually named
9641     something starting with __ and the normal name is an alias.  */
9642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9643 choke me
9644 #else
9645 char (*f) () = $ac_func;
9646 #endif
9647 #ifdef __cplusplus
9648 }
9649 #endif
9650
9651 int
9652 main ()
9653 {
9654 return f != $ac_func;
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661   (eval $ac_link) 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -z "$ac_c_werror_flag"
9669                          || test ! -s conftest.err'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; } &&
9675          { ac_try='test -s conftest$ac_exeext'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681   eval "$as_ac_var=yes"
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 eval "$as_ac_var=no"
9687 fi
9688 rm -f conftest.err conftest.$ac_objext \
9689       conftest$ac_exeext conftest.$ac_ext
9690 fi
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9693 if test `eval echo '${'$as_ac_var'}'` = yes; then
9694   cat >>confdefs.h <<_ACEOF
9695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9696 _ACEOF
9697
9698 fi
9699 done
9700
9701
9702 # Check whether --enable-shared or --disable-shared was given.
9703 if test "${enable_shared+set}" = set; then
9704   enableval="$enable_shared"
9705   p=${PACKAGE-default}
9706     case $enableval in
9707     yes) enable_shared=yes ;;
9708     no) enable_shared=no ;;
9709     *)
9710       enable_shared=no
9711       # Look at the argument we got.  We use all the common list separators.
9712       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9713       for pkg in $enableval; do
9714         IFS="$lt_save_ifs"
9715         if test "X$pkg" = "X$p"; then
9716           enable_shared=yes
9717         fi
9718       done
9719       IFS="$lt_save_ifs"
9720       ;;
9721     esac
9722 else
9723   enable_shared=yes
9724 fi;
9725
9726 # Check whether --enable-static or --disable-static was given.
9727 if test "${enable_static+set}" = set; then
9728   enableval="$enable_static"
9729   p=${PACKAGE-default}
9730     case $enableval in
9731     yes) enable_static=yes ;;
9732     no) enable_static=no ;;
9733     *)
9734      enable_static=no
9735       # Look at the argument we got.  We use all the common list separators.
9736       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9737       for pkg in $enableval; do
9738         IFS="$lt_save_ifs"
9739         if test "X$pkg" = "X$p"; then
9740           enable_static=yes
9741         fi
9742       done
9743       IFS="$lt_save_ifs"
9744       ;;
9745     esac
9746 else
9747   enable_static=yes
9748 fi;
9749
9750 # Check whether --enable-fast-install or --disable-fast-install was given.
9751 if test "${enable_fast_install+set}" = set; then
9752   enableval="$enable_fast_install"
9753   p=${PACKAGE-default}
9754     case $enableval in
9755     yes) enable_fast_install=yes ;;
9756     no) enable_fast_install=no ;;
9757     *)
9758       enable_fast_install=no
9759       # Look at the argument we got.  We use all the common list separators.
9760       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9761       for pkg in $enableval; do
9762         IFS="$lt_save_ifs"
9763         if test "X$pkg" = "X$p"; then
9764           enable_fast_install=yes
9765         fi
9766       done
9767       IFS="$lt_save_ifs"
9768       ;;
9769     esac
9770 else
9771   enable_fast_install=yes
9772 fi;
9773
9774 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9775 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9776 if test "${lt_cv_path_SED+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   # Loop through the user's path and test for sed and gsed.
9780 # Then use that list of sed's as ones to test for truncation.
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784   IFS=$as_save_IFS
9785   test -z "$as_dir" && as_dir=.
9786   for lt_ac_prog in sed gsed; do
9787     for ac_exec_ext in '' $ac_executable_extensions; do
9788       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9789         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9790       fi
9791     done
9792   done
9793 done
9794 lt_ac_max=0
9795 lt_ac_count=0
9796 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9797 # along with /bin/sed that truncates output.
9798 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9799   test ! -f $lt_ac_sed && break
9800   cat /dev/null > conftest.in
9801   lt_ac_count=0
9802   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9803   # Check for GNU sed and select it if it is found.
9804   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9805     lt_cv_path_SED=$lt_ac_sed
9806     break
9807   fi
9808   while true; do
9809     cat conftest.in conftest.in >conftest.tmp
9810     mv conftest.tmp conftest.in
9811     cp conftest.in conftest.nl
9812     echo >>conftest.nl
9813     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9814     cmp -s conftest.out conftest.nl || break
9815     # 10000 chars as input seems more than enough
9816     test $lt_ac_count -gt 10 && break
9817     lt_ac_count=`expr $lt_ac_count + 1`
9818     if test $lt_ac_count -gt $lt_ac_max; then
9819       lt_ac_max=$lt_ac_count
9820       lt_cv_path_SED=$lt_ac_sed
9821     fi
9822   done
9823 done
9824
9825 fi
9826
9827 SED=$lt_cv_path_SED
9828 echo "$as_me:$LINENO: result: $SED" >&5
9829 echo "${ECHO_T}$SED" >&6
9830
9831
9832 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9833 if test "${with_gnu_ld+set}" = set; then
9834   withval="$with_gnu_ld"
9835   test "$withval" = no || with_gnu_ld=yes
9836 else
9837   with_gnu_ld=no
9838 fi;
9839 ac_prog=ld
9840 if test "$GCC" = yes; then
9841   # Check if gcc -print-prog-name=ld gives a path.
9842   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9843 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9844   case $host in
9845   *-*-mingw*)
9846     # gcc leaves a trailing carriage return which upsets mingw
9847     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9848   *)
9849     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9850   esac
9851   case $ac_prog in
9852     # Accept absolute paths.
9853     [\\/]* | ?:[\\/]*)
9854       re_direlt='/[^/][^/]*/\.\./'
9855       # Canonicalize the pathname of ld
9856       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9857       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9858         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9859       done
9860       test -z "$LD" && LD="$ac_prog"
9861       ;;
9862   "")
9863     # If it fails, then pretend we aren't using GCC.
9864     ac_prog=ld
9865     ;;
9866   *)
9867     # If it is relative, then search for the first ld in PATH.
9868     with_gnu_ld=unknown
9869     ;;
9870   esac
9871 elif test "$with_gnu_ld" = yes; then
9872   echo "$as_me:$LINENO: checking for GNU ld" >&5
9873 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9874 else
9875   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9876 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9877 fi
9878 if test "${lt_cv_path_LD+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   if test -z "$LD"; then
9882   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9883   for ac_dir in $PATH; do
9884     IFS="$lt_save_ifs"
9885     test -z "$ac_dir" && ac_dir=.
9886     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9887       lt_cv_path_LD="$ac_dir/$ac_prog"
9888       # Check to see if the program is GNU ld.  I'd rather use --version,
9889       # but apparently some GNU ld's only accept -v.
9890       # Break only if it was the GNU/non-GNU ld that we prefer.
9891       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9892       *GNU* | *'with BFD'*)
9893         test "$with_gnu_ld" != no && break
9894         ;;
9895       *)
9896         test "$with_gnu_ld" != yes && break
9897         ;;
9898       esac
9899     fi
9900   done
9901   IFS="$lt_save_ifs"
9902 else
9903   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9904 fi
9905 fi
9906
9907 LD="$lt_cv_path_LD"
9908 if test -n "$LD"; then
9909   echo "$as_me:$LINENO: result: $LD" >&5
9910 echo "${ECHO_T}$LD" >&6
9911 else
9912   echo "$as_me:$LINENO: result: no" >&5
9913 echo "${ECHO_T}no" >&6
9914 fi
9915 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9916 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9917    { (exit 1); exit 1; }; }
9918 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9919 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9920 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9924 case `$LD -v 2>&1 </dev/null` in
9925 *GNU* | *'with BFD'*)
9926   lt_cv_prog_gnu_ld=yes
9927   ;;
9928 *)
9929   lt_cv_prog_gnu_ld=no
9930   ;;
9931 esac
9932 fi
9933 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9934 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9935 with_gnu_ld=$lt_cv_prog_gnu_ld
9936
9937
9938 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9939 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9940 if test "${lt_cv_ld_reload_flag+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   lt_cv_ld_reload_flag='-r'
9944 fi
9945 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9946 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9947 reload_flag=$lt_cv_ld_reload_flag
9948 case $reload_flag in
9949 "" | " "*) ;;
9950 *) reload_flag=" $reload_flag" ;;
9951 esac
9952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9953 case $host_os in
9954   darwin*)
9955     if test "$GCC" = yes; then
9956       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9957     else
9958       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9959     fi
9960     ;;
9961 esac
9962
9963 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9964 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9965 if test "${lt_cv_deplibs_check_method+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   lt_cv_file_magic_cmd='$MAGIC_CMD'
9969 lt_cv_file_magic_test_file=
9970 lt_cv_deplibs_check_method='unknown'
9971 # Need to set the preceding variable on all platforms that support
9972 # interlibrary dependencies.
9973 # 'none' -- dependencies not supported.
9974 # `unknown' -- same as none, but documents that we really don't know.
9975 # 'pass_all' -- all dependencies passed with no checks.
9976 # 'test_compile' -- check by making test program.
9977 # 'file_magic [[regex]]' -- check by looking for files in library path
9978 # which responds to the $file_magic_cmd with a given extended regex.
9979 # If you have `file' or equivalent on your system and you're not sure
9980 # whether `pass_all' will *always* work, you probably want this one.
9981
9982 case $host_os in
9983 aix4* | aix5*)
9984   lt_cv_deplibs_check_method=pass_all
9985   ;;
9986
9987 beos*)
9988   lt_cv_deplibs_check_method=pass_all
9989   ;;
9990
9991 bsdi[45]*)
9992   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9993   lt_cv_file_magic_cmd='/usr/bin/file -L'
9994   lt_cv_file_magic_test_file=/shlib/libc.so
9995   ;;
9996
9997 cygwin*)
9998   # func_win32_libid is a shell function defined in ltmain.sh
9999   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10000   lt_cv_file_magic_cmd='func_win32_libid'
10001   ;;
10002
10003 mingw* | pw32*)
10004   # Base MSYS/MinGW do not provide the 'file' command needed by
10005   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10006   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10007   lt_cv_file_magic_cmd='$OBJDUMP -f'
10008   ;;
10009
10010 darwin* | rhapsody*)
10011   lt_cv_deplibs_check_method=pass_all
10012   ;;
10013
10014 freebsd* | kfreebsd*-gnu)
10015   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10016     case $host_cpu in
10017     i*86 )
10018       # Not sure whether the presence of OpenBSD here was a mistake.
10019       # Let's accept both of them until this is cleared up.
10020       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10021       lt_cv_file_magic_cmd=/usr/bin/file
10022       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10023       ;;
10024     esac
10025   else
10026     lt_cv_deplibs_check_method=pass_all
10027   fi
10028   ;;
10029
10030 gnu*)
10031   lt_cv_deplibs_check_method=pass_all
10032   ;;
10033
10034 hpux10.20* | hpux11*)
10035   lt_cv_file_magic_cmd=/usr/bin/file
10036   case "$host_cpu" in
10037   ia64*)
10038     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10039     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10040     ;;
10041   hppa*64*)
10042     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]'
10043     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10044     ;;
10045   *)
10046     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10047     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10048     ;;
10049   esac
10050   ;;
10051
10052 irix5* | irix6* | nonstopux*)
10053   case $LD in
10054   *-32|*"-32 ") libmagic=32-bit;;
10055   *-n32|*"-n32 ") libmagic=N32;;
10056   *-64|*"-64 ") libmagic=64-bit;;
10057   *) libmagic=never-match;;
10058   esac
10059   lt_cv_deplibs_check_method=pass_all
10060   ;;
10061
10062 # This must be Linux ELF.
10063 linux*)
10064   lt_cv_deplibs_check_method=pass_all
10065   ;;
10066
10067 netbsd*)
10068   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10069     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10070   else
10071     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10072   fi
10073   ;;
10074
10075 newos6*)
10076   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10077   lt_cv_file_magic_cmd=/usr/bin/file
10078   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10079   ;;
10080
10081 nto-qnx*)
10082   lt_cv_deplibs_check_method=unknown
10083   ;;
10084
10085 openbsd*)
10086   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10087     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10088   else
10089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10090   fi
10091   ;;
10092
10093 osf3* | osf4* | osf5*)
10094   lt_cv_deplibs_check_method=pass_all
10095   ;;
10096
10097 sco3.2v5*)
10098   lt_cv_deplibs_check_method=pass_all
10099   ;;
10100
10101 solaris*)
10102   lt_cv_deplibs_check_method=pass_all
10103   ;;
10104
10105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10106   case $host_vendor in
10107   motorola)
10108     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]'
10109     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10110     ;;
10111   ncr)
10112     lt_cv_deplibs_check_method=pass_all
10113     ;;
10114   sequent)
10115     lt_cv_file_magic_cmd='/bin/file'
10116     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10117     ;;
10118   sni)
10119     lt_cv_file_magic_cmd='/bin/file'
10120     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10121     lt_cv_file_magic_test_file=/lib/libc.so
10122     ;;
10123   siemens)
10124     lt_cv_deplibs_check_method=pass_all
10125     ;;
10126   esac
10127   ;;
10128
10129 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10130   lt_cv_deplibs_check_method=pass_all
10131   ;;
10132 esac
10133
10134 fi
10135 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10136 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10137 file_magic_cmd=$lt_cv_file_magic_cmd
10138 deplibs_check_method=$lt_cv_deplibs_check_method
10139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10140
10141
10142
10143 # If no C compiler was specified, use CC.
10144 LTCC=${LTCC-"$CC"}
10145
10146 # Allow CC to be a program name with arguments.
10147 compiler=$CC
10148
10149 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10150 if test "${enable_libtool_lock+set}" = set; then
10151   enableval="$enable_libtool_lock"
10152
10153 fi;
10154 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10155
10156 # Some flags need to be propagated to the compiler or linker for good
10157 # libtool support.
10158 case $host in
10159 ia64-*-hpux*)
10160   # Find out which ABI we are using.
10161   echo 'int i;' > conftest.$ac_ext
10162   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163   (eval $ac_compile) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; then
10167     case `/usr/bin/file conftest.$ac_objext` in
10168     *ELF-32*)
10169       HPUX_IA64_MODE="32"
10170       ;;
10171     *ELF-64*)
10172       HPUX_IA64_MODE="64"
10173       ;;
10174     esac
10175   fi
10176   rm -rf conftest*
10177   ;;
10178 *-*-irix6*)
10179   # Find out which ABI we are using.
10180   echo '#line 10180 "configure"' > conftest.$ac_ext
10181   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182   (eval $ac_compile) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; then
10186    if test "$lt_cv_prog_gnu_ld" = yes; then
10187     case `/usr/bin/file conftest.$ac_objext` in
10188     *32-bit*)
10189       LD="${LD-ld} -melf32bsmip"
10190       ;;
10191     *N32*)
10192       LD="${LD-ld} -melf32bmipn32"
10193       ;;
10194     *64-bit*)
10195       LD="${LD-ld} -melf64bmip"
10196       ;;
10197     esac
10198    else
10199     case `/usr/bin/file conftest.$ac_objext` in
10200     *32-bit*)
10201       LD="${LD-ld} -32"
10202       ;;
10203     *N32*)
10204       LD="${LD-ld} -n32"
10205       ;;
10206     *64-bit*)
10207       LD="${LD-ld} -64"
10208       ;;
10209     esac
10210    fi
10211   fi
10212   rm -rf conftest*
10213   ;;
10214
10215 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10216   # Find out which ABI we are using.
10217   echo 'int i;' > conftest.$ac_ext
10218   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219   (eval $ac_compile) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; then
10223     case "`/usr/bin/file conftest.o`" in
10224     *32-bit*)
10225       case $host in
10226         x86_64-*linux*)
10227           LD="${LD-ld} -m elf_i386"
10228           ;;
10229         ppc64-*linux*|powerpc64-*linux*)
10230           LD="${LD-ld} -m elf32ppclinux"
10231           ;;
10232         s390x-*linux*)
10233           LD="${LD-ld} -m elf_s390"
10234           ;;
10235         sparc64-*linux*)
10236           LD="${LD-ld} -m elf32_sparc"
10237           ;;
10238       esac
10239       ;;
10240     *64-bit*)
10241       case $host in
10242         x86_64-*linux*)
10243           LD="${LD-ld} -m elf_x86_64"
10244           ;;
10245         ppc*-*linux*|powerpc*-*linux*)
10246           LD="${LD-ld} -m elf64ppc"
10247           ;;
10248         s390*-*linux*)
10249           LD="${LD-ld} -m elf64_s390"
10250           ;;
10251         sparc*-*linux*)
10252           LD="${LD-ld} -m elf64_sparc"
10253           ;;
10254       esac
10255       ;;
10256     esac
10257   fi
10258   rm -rf conftest*
10259   ;;
10260
10261 *-*-sco3.2v5*)
10262   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10263   SAVE_CFLAGS="$CFLAGS"
10264   CFLAGS="$CFLAGS -belf"
10265   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10266 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10267 if test "${lt_cv_cc_needs_belf+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   ac_ext=c
10271 ac_cpp='$CPP $CPPFLAGS'
10272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10275
10276      cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h.  */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h.  */
10282
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286   (eval $ac_link) 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -z "$ac_c_werror_flag"
10294                          || test ! -s conftest.err'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; } &&
10300          { ac_try='test -s conftest$ac_exeext'
10301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302   (eval $ac_try) 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); }; }; then
10306   lt_cv_cc_needs_belf=yes
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311 lt_cv_cc_needs_belf=no
10312 fi
10313 rm -f conftest.err conftest.$ac_objext \
10314       conftest$ac_exeext conftest.$ac_ext
10315      ac_ext=c
10316 ac_cpp='$CPP $CPPFLAGS'
10317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10320
10321 fi
10322 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10323 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10324   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10325     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10326     CFLAGS="$SAVE_CFLAGS"
10327   fi
10328   ;;
10329
10330 esac
10331
10332 need_locks="$enable_libtool_lock"
10333
10334
10335
10336
10337 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10338     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10339     (test "X$CXX" != "Xg++"))) ; then
10340   ac_ext=cc
10341 ac_cpp='$CXXCPP $CPPFLAGS'
10342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10345 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10346 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10347 if test -z "$CXXCPP"; then
10348   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10349   echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351       # Double quotes because CXXCPP needs to be expanded
10352     for CXXCPP in "$CXX -E" "/lib/cpp"
10353     do
10354       ac_preproc_ok=false
10355 for ac_cxx_preproc_warn_flag in '' yes
10356 do
10357   # Use a header file that comes with gcc, so configuring glibc
10358   # with a fresh cross-compiler works.
10359   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360   # <limits.h> exists even on freestanding compilers.
10361   # On the NeXT, cc -E runs the code through the compiler's parser,
10362   # not just through cpp. "Syntax error" is here to catch this case.
10363   cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h.  */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h.  */
10369 #ifdef __STDC__
10370 # include <limits.h>
10371 #else
10372 # include <assert.h>
10373 #endif
10374                      Syntax error
10375 _ACEOF
10376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } >/dev/null; then
10384   if test -s conftest.err; then
10385     ac_cpp_err=$ac_cxx_preproc_warn_flag
10386     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10387   else
10388     ac_cpp_err=
10389   fi
10390 else
10391   ac_cpp_err=yes
10392 fi
10393 if test -z "$ac_cpp_err"; then
10394   :
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399   # Broken: fails on valid input.
10400 continue
10401 fi
10402 rm -f conftest.err conftest.$ac_ext
10403
10404   # OK, works on sane cases.  Now check whether non-existent headers
10405   # can be detected and how.
10406   cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h.  */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h.  */
10412 #include <ac_nonexistent.h>
10413 _ACEOF
10414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10416   ac_status=$?
10417   grep -v '^ *+' conftest.er1 >conftest.err
10418   rm -f conftest.er1
10419   cat conftest.err >&5
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } >/dev/null; then
10422   if test -s conftest.err; then
10423     ac_cpp_err=$ac_cxx_preproc_warn_flag
10424     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10425   else
10426     ac_cpp_err=
10427   fi
10428 else
10429   ac_cpp_err=yes
10430 fi
10431 if test -z "$ac_cpp_err"; then
10432   # Broken: success on invalid input.
10433 continue
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438   # Passes both tests.
10439 ac_preproc_ok=:
10440 break
10441 fi
10442 rm -f conftest.err conftest.$ac_ext
10443
10444 done
10445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10446 rm -f conftest.err conftest.$ac_ext
10447 if $ac_preproc_ok; then
10448   break
10449 fi
10450
10451     done
10452     ac_cv_prog_CXXCPP=$CXXCPP
10453
10454 fi
10455   CXXCPP=$ac_cv_prog_CXXCPP
10456 else
10457   ac_cv_prog_CXXCPP=$CXXCPP
10458 fi
10459 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10460 echo "${ECHO_T}$CXXCPP" >&6
10461 ac_preproc_ok=false
10462 for ac_cxx_preproc_warn_flag in '' yes
10463 do
10464   # Use a header file that comes with gcc, so configuring glibc
10465   # with a fresh cross-compiler works.
10466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467   # <limits.h> exists even on freestanding compilers.
10468   # On the NeXT, cc -E runs the code through the compiler's parser,
10469   # not just through cpp. "Syntax error" is here to catch this case.
10470   cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h.  */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h.  */
10476 #ifdef __STDC__
10477 # include <limits.h>
10478 #else
10479 # include <assert.h>
10480 #endif
10481                      Syntax error
10482 _ACEOF
10483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10485   ac_status=$?
10486   grep -v '^ *+' conftest.er1 >conftest.err
10487   rm -f conftest.er1
10488   cat conftest.err >&5
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } >/dev/null; then
10491   if test -s conftest.err; then
10492     ac_cpp_err=$ac_cxx_preproc_warn_flag
10493     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10494   else
10495     ac_cpp_err=
10496   fi
10497 else
10498   ac_cpp_err=yes
10499 fi
10500 if test -z "$ac_cpp_err"; then
10501   :
10502 else
10503   echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10505
10506   # Broken: fails on valid input.
10507 continue
10508 fi
10509 rm -f conftest.err conftest.$ac_ext
10510
10511   # OK, works on sane cases.  Now check whether non-existent headers
10512   # can be detected and how.
10513   cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519 #include <ac_nonexistent.h>
10520 _ACEOF
10521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10523   ac_status=$?
10524   grep -v '^ *+' conftest.er1 >conftest.err
10525   rm -f conftest.er1
10526   cat conftest.err >&5
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } >/dev/null; then
10529   if test -s conftest.err; then
10530     ac_cpp_err=$ac_cxx_preproc_warn_flag
10531     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10532   else
10533     ac_cpp_err=
10534   fi
10535 else
10536   ac_cpp_err=yes
10537 fi
10538 if test -z "$ac_cpp_err"; then
10539   # Broken: success on invalid input.
10540 continue
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545   # Passes both tests.
10546 ac_preproc_ok=:
10547 break
10548 fi
10549 rm -f conftest.err conftest.$ac_ext
10550
10551 done
10552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10553 rm -f conftest.err conftest.$ac_ext
10554 if $ac_preproc_ok; then
10555   :
10556 else
10557   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10558 See \`config.log' for more details." >&5
10559 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10560 See \`config.log' for more details." >&2;}
10561    { (exit 1); exit 1; }; }
10562 fi
10563
10564 ac_ext=cc
10565 ac_cpp='$CXXCPP $CPPFLAGS'
10566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10569
10570 fi
10571
10572
10573 ac_ext=f
10574 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10575 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10577 if test -n "$ac_tool_prefix"; then
10578   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10579   do
10580     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10582 echo "$as_me:$LINENO: checking for $ac_word" >&5
10583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10584 if test "${ac_cv_prog_F77+set}" = set; then
10585   echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587   if test -n "$F77"; then
10588   ac_cv_prog_F77="$F77" # Let the user override the test.
10589 else
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593   IFS=$as_save_IFS
10594   test -z "$as_dir" && as_dir=.
10595   for ac_exec_ext in '' $ac_executable_extensions; do
10596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10599     break 2
10600   fi
10601 done
10602 done
10603
10604 fi
10605 fi
10606 F77=$ac_cv_prog_F77
10607 if test -n "$F77"; then
10608   echo "$as_me:$LINENO: result: $F77" >&5
10609 echo "${ECHO_T}$F77" >&6
10610 else
10611   echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10613 fi
10614
10615     test -n "$F77" && break
10616   done
10617 fi
10618 if test -z "$F77"; then
10619   ac_ct_F77=$F77
10620   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10621 do
10622   # Extract the first word of "$ac_prog", so it can be a program name with args.
10623 set dummy $ac_prog; ac_word=$2
10624 echo "$as_me:$LINENO: checking for $ac_word" >&5
10625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10626 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629   if test -n "$ac_ct_F77"; then
10630   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10631 else
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10634 do
10635   IFS=$as_save_IFS
10636   test -z "$as_dir" && as_dir=.
10637   for ac_exec_ext in '' $ac_executable_extensions; do
10638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639     ac_cv_prog_ac_ct_F77="$ac_prog"
10640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10641     break 2
10642   fi
10643 done
10644 done
10645
10646 fi
10647 fi
10648 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10649 if test -n "$ac_ct_F77"; then
10650   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10651 echo "${ECHO_T}$ac_ct_F77" >&6
10652 else
10653   echo "$as_me:$LINENO: result: no" >&5
10654 echo "${ECHO_T}no" >&6
10655 fi
10656
10657   test -n "$ac_ct_F77" && break
10658 done
10659
10660   F77=$ac_ct_F77
10661 fi
10662
10663
10664 # Provide some information about the compiler.
10665 echo "$as_me:10665:" \
10666      "checking for Fortran 77 compiler version" >&5
10667 ac_compiler=`set X $ac_compile; echo $2`
10668 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10669   (eval $ac_compiler --version </dev/null >&5) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }
10673 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10674   (eval $ac_compiler -v </dev/null >&5) 2>&5
10675   ac_status=$?
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); }
10678 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10679   (eval $ac_compiler -V </dev/null >&5) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }
10683 rm -f a.out
10684
10685 # If we don't use `.F' as extension, the preprocessor is not run on the
10686 # input file.  (Note that this only needs to work for GNU compilers.)
10687 ac_save_ext=$ac_ext
10688 ac_ext=F
10689 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10690 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10691 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   cat >conftest.$ac_ext <<_ACEOF
10695       program main
10696 #ifndef __GNUC__
10697        choke me
10698 #endif
10699
10700       end
10701 _ACEOF
10702 rm -f conftest.$ac_objext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10704   (eval $ac_compile) 2>conftest.er1
10705   ac_status=$?
10706   grep -v '^ *+' conftest.er1 >conftest.err
10707   rm -f conftest.er1
10708   cat conftest.err >&5
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); } &&
10711          { ac_try='test -z "$ac_f77_werror_flag"
10712                          || test ! -s conftest.err'
10713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714   (eval $ac_try) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }; } &&
10718          { ac_try='test -s conftest.$ac_objext'
10719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720   (eval $ac_try) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; }; then
10724   ac_compiler_gnu=yes
10725 else
10726   echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 ac_compiler_gnu=no
10730 fi
10731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10732 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10733
10734 fi
10735 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10736 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10737 ac_ext=$ac_save_ext
10738 ac_test_FFLAGS=${FFLAGS+set}
10739 ac_save_FFLAGS=$FFLAGS
10740 FFLAGS=
10741 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10742 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10743 if test "${ac_cv_prog_f77_g+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   FFLAGS=-g
10747 cat >conftest.$ac_ext <<_ACEOF
10748       program main
10749
10750       end
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754   (eval $ac_compile) 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } &&
10761          { ac_try='test -z "$ac_f77_werror_flag"
10762                          || test ! -s conftest.err'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; } &&
10768          { ac_try='test -s conftest.$ac_objext'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   ac_cv_prog_f77_g=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_prog_f77_g=no
10780 fi
10781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10782
10783 fi
10784 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10785 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10786 if test "$ac_test_FFLAGS" = set; then
10787   FFLAGS=$ac_save_FFLAGS
10788 elif test $ac_cv_prog_f77_g = yes; then
10789   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10790     FFLAGS="-g -O2"
10791   else
10792     FFLAGS="-g"
10793   fi
10794 else
10795   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10796     FFLAGS="-O2"
10797   else
10798     FFLAGS=
10799   fi
10800 fi
10801
10802 G77=`test $ac_compiler_gnu = yes && echo yes`
10803 ac_ext=c
10804 ac_cpp='$CPP $CPPFLAGS'
10805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10808
10809
10810
10811 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10812
10813 # find the maximum length of command line arguments
10814 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10815 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10816 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819     i=0
10820   teststring="ABCD"
10821
10822   case $build_os in
10823   msdosdjgpp*)
10824     # On DJGPP, this test can blow up pretty badly due to problems in libc
10825     # (any single argument exceeding 2000 bytes causes a buffer overrun
10826     # during glob expansion).  Even if it were fixed, the result of this
10827     # check would be larger than it should be.
10828     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10829     ;;
10830
10831   gnu*)
10832     # Under GNU Hurd, this test is not required because there is
10833     # no limit to the length of command line arguments.
10834     # Libtool will interpret -1 as no limit whatsoever
10835     lt_cv_sys_max_cmd_len=-1;
10836     ;;
10837
10838   cygwin* | mingw*)
10839     # On Win9x/ME, this test blows up -- it succeeds, but takes
10840     # about 5 minutes as the teststring grows exponentially.
10841     # Worse, since 9x/ME are not pre-emptively multitasking,
10842     # you end up with a "frozen" computer, even though with patience
10843     # the test eventually succeeds (with a max line length of 256k).
10844     # Instead, let's just punt: use the minimum linelength reported by
10845     # all of the supported platforms: 8192 (on NT/2K/XP).
10846     lt_cv_sys_max_cmd_len=8192;
10847     ;;
10848
10849   amigaos*)
10850     # On AmigaOS with pdksh, this test takes hours, literally.
10851     # So we just punt and use a minimum line length of 8192.
10852     lt_cv_sys_max_cmd_len=8192;
10853     ;;
10854
10855   netbsd* | freebsd* | openbsd* | darwin* )
10856     # This has been around since 386BSD, at least.  Likely further.
10857     if test -x /sbin/sysctl; then
10858       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10859     elif test -x /usr/sbin/sysctl; then
10860       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10861     else
10862       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10863     fi
10864     # And add a safety zone
10865     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10866     ;;
10867
10868  *)
10869     # If test is not a shell built-in, we'll probably end up computing a
10870     # maximum length that is only half of the actual maximum length, but
10871     # we can't tell.
10872     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10873     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10874                = "XX$teststring") >/dev/null 2>&1 &&
10875             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10876             lt_cv_sys_max_cmd_len=$new_result &&
10877             test $i != 17 # 1/2 MB should be enough
10878     do
10879       i=`expr $i + 1`
10880       teststring=$teststring$teststring
10881     done
10882     teststring=
10883     # Add a significant safety factor because C++ compilers can tack on massive
10884     # amounts of additional arguments before passing them to the linker.
10885     # It appears as though 1/2 is a usable value.
10886     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10887     ;;
10888   esac
10889
10890 fi
10891
10892 if test -n $lt_cv_sys_max_cmd_len ; then
10893   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10894 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10895 else
10896   echo "$as_me:$LINENO: result: none" >&5
10897 echo "${ECHO_T}none" >&6
10898 fi
10899
10900
10901
10902
10903 # Check for command to grab the raw symbol name followed by C symbol from nm.
10904 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10905 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10906 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10907   echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909
10910 # These are sane defaults that work on at least a few old systems.
10911 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10912
10913 # Character class describing NM global symbol codes.
10914 symcode='[BCDEGRST]'
10915
10916 # Regexp to match symbols that can be accessed directly from C.
10917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10918
10919 # Transform the above into a raw symbol and a C symbol.
10920 symxfrm='\1 \2\3 \3'
10921
10922 # Transform an extracted symbol line into a proper C declaration
10923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10924
10925 # Transform an extracted symbol line into symbol name and symbol address
10926 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'"
10927
10928 # Define system-specific variables.
10929 case $host_os in
10930 aix*)
10931   symcode='[BCDT]'
10932   ;;
10933 cygwin* | mingw* | pw32*)
10934   symcode='[ABCDGISTW]'
10935   ;;
10936 hpux*) # Its linker distinguishes data from code symbols
10937   if test "$host_cpu" = ia64; then
10938     symcode='[ABCDEGRST]'
10939   fi
10940   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10941   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'"
10942   ;;
10943 linux*)
10944   if test "$host_cpu" = ia64; then
10945     symcode='[ABCDGIRSTW]'
10946     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10947     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'"
10948   fi
10949   ;;
10950 irix* | nonstopux*)
10951   symcode='[BCDEGRST]'
10952   ;;
10953 osf*)
10954   symcode='[BCDEGQRST]'
10955   ;;
10956 solaris* | sysv5*)
10957   symcode='[BDRT]'
10958   ;;
10959 sysv4)
10960   symcode='[DFNSTU]'
10961   ;;
10962 esac
10963
10964 # Handle CRLF in mingw tool chain
10965 opt_cr=
10966 case $build_os in
10967 mingw*)
10968   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10969   ;;
10970 esac
10971
10972 # If we're using GNU nm, then use its standard symbol codes.
10973 case `$NM -V 2>&1` in
10974 *GNU* | *'with BFD'*)
10975   symcode='[ABCDGIRSTW]' ;;
10976 esac
10977
10978 # Try without a prefix undercore, then with it.
10979 for ac_symprfx in "" "_"; do
10980
10981   # Write the raw and C identifiers.
10982   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10983
10984   # Check to see that the pipe works correctly.
10985   pipe_works=no
10986
10987   rm -f conftest*
10988   cat > conftest.$ac_ext <<EOF
10989 #ifdef __cplusplus
10990 extern "C" {
10991 #endif
10992 char nm_test_var;
10993 void nm_test_func(){}
10994 #ifdef __cplusplus
10995 }
10996 #endif
10997 int main(){nm_test_var='a';nm_test_func();return(0);}
10998 EOF
10999
11000   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11001   (eval $ac_compile) 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; then
11005     # Now try to grab the symbols.
11006     nlist=conftest.nm
11007     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11008   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } && test -s "$nlist"; then
11012       # Try sorting and uniquifying the output.
11013       if sort "$nlist" | uniq > "$nlist"T; then
11014         mv -f "$nlist"T "$nlist"
11015       else
11016         rm -f "$nlist"T
11017       fi
11018
11019       # Make sure that we snagged all the symbols we need.
11020       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11021         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11022           cat <<EOF > conftest.$ac_ext
11023 #ifdef __cplusplus
11024 extern "C" {
11025 #endif
11026
11027 EOF
11028           # Now generate the symbol file.
11029           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11030
11031           cat <<EOF >> conftest.$ac_ext
11032 #if defined (__STDC__) && __STDC__
11033 # define lt_ptr_t void *
11034 #else
11035 # define lt_ptr_t char *
11036 # define const
11037 #endif
11038
11039 /* The mapping between symbol names and symbols. */
11040 const struct {
11041   const char *name;
11042   lt_ptr_t address;
11043 }
11044 lt_preloaded_symbols[] =
11045 {
11046 EOF
11047           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11048           cat <<\EOF >> conftest.$ac_ext
11049   {0, (lt_ptr_t) 0}
11050 };
11051
11052 #ifdef __cplusplus
11053 }
11054 #endif
11055 EOF
11056           # Now try linking the two files.
11057           mv conftest.$ac_objext conftstm.$ac_objext
11058           lt_save_LIBS="$LIBS"
11059           lt_save_CFLAGS="$CFLAGS"
11060           LIBS="conftstm.$ac_objext"
11061           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11062           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063   (eval $ac_link) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11067             pipe_works=yes
11068           fi
11069           LIBS="$lt_save_LIBS"
11070           CFLAGS="$lt_save_CFLAGS"
11071         else
11072           echo "cannot find nm_test_func in $nlist" >&5
11073         fi
11074       else
11075         echo "cannot find nm_test_var in $nlist" >&5
11076       fi
11077     else
11078       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11079     fi
11080   else
11081     echo "$progname: failed program was:" >&5
11082     cat conftest.$ac_ext >&5
11083   fi
11084   rm -f conftest* conftst*
11085
11086   # Do not use the global_symbol_pipe unless it works.
11087   if test "$pipe_works" = yes; then
11088     break
11089   else
11090     lt_cv_sys_global_symbol_pipe=
11091   fi
11092 done
11093
11094 fi
11095
11096 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11097   lt_cv_sys_global_symbol_to_cdecl=
11098 fi
11099 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11100   echo "$as_me:$LINENO: result: failed" >&5
11101 echo "${ECHO_T}failed" >&6
11102 else
11103   echo "$as_me:$LINENO: result: ok" >&5
11104 echo "${ECHO_T}ok" >&6
11105 fi
11106
11107 echo "$as_me:$LINENO: checking for objdir" >&5
11108 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11109 if test "${lt_cv_objdir+set}" = set; then
11110   echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112   rm -f .libs 2>/dev/null
11113 mkdir .libs 2>/dev/null
11114 if test -d .libs; then
11115   lt_cv_objdir=.libs
11116 else
11117   # MS-DOS does not allow filenames that begin with a dot.
11118   lt_cv_objdir=_libs
11119 fi
11120 rmdir .libs 2>/dev/null
11121 fi
11122 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11123 echo "${ECHO_T}$lt_cv_objdir" >&6
11124 objdir=$lt_cv_objdir
11125
11126
11127
11128
11129
11130 case $host_os in
11131 aix3*)
11132   # AIX sometimes has problems with the GCC collect2 program.  For some
11133   # reason, if we set the COLLECT_NAMES environment variable, the problems
11134   # vanish in a puff of smoke.
11135   if test "X${COLLECT_NAMES+set}" != Xset; then
11136     COLLECT_NAMES=
11137     export COLLECT_NAMES
11138   fi
11139   ;;
11140 esac
11141
11142 # Sed substitution that helps us do robust quoting.  It backslashifies
11143 # metacharacters that are still active within double-quoted strings.
11144 Xsed='sed -e s/^X//'
11145 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11146
11147 # Same as above, but do not quote variable references.
11148 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11149
11150 # Sed substitution to delay expansion of an escaped shell variable in a
11151 # double_quote_subst'ed string.
11152 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11153
11154 # Sed substitution to avoid accidental globbing in evaled expressions
11155 no_glob_subst='s/\*/\\\*/g'
11156
11157 # Constants:
11158 rm="rm -f"
11159
11160 # Global variables:
11161 default_ofile=mklib
11162 can_build_shared=yes
11163
11164 # All known linkers require a `.a' archive for static linking (except M$VC,
11165 # which needs '.lib').
11166 libext=a
11167 ltmain="$ac_aux_dir/ltmain.sh"
11168 ofile="$default_ofile"
11169 with_gnu_ld="$lt_cv_prog_gnu_ld"
11170
11171 if test -n "$ac_tool_prefix"; then
11172   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11173 set dummy ${ac_tool_prefix}ar; ac_word=$2
11174 echo "$as_me:$LINENO: checking for $ac_word" >&5
11175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11176 if test "${ac_cv_prog_AR+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   if test -n "$AR"; then
11180   ac_cv_prog_AR="$AR" # Let the user override the test.
11181 else
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11184 do
11185   IFS=$as_save_IFS
11186   test -z "$as_dir" && as_dir=.
11187   for ac_exec_ext in '' $ac_executable_extensions; do
11188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189     ac_cv_prog_AR="${ac_tool_prefix}ar"
11190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11191     break 2
11192   fi
11193 done
11194 done
11195
11196 fi
11197 fi
11198 AR=$ac_cv_prog_AR
11199 if test -n "$AR"; then
11200   echo "$as_me:$LINENO: result: $AR" >&5
11201 echo "${ECHO_T}$AR" >&6
11202 else
11203   echo "$as_me:$LINENO: result: no" >&5
11204 echo "${ECHO_T}no" >&6
11205 fi
11206
11207 fi
11208 if test -z "$ac_cv_prog_AR"; then
11209   ac_ct_AR=$AR
11210   # Extract the first word of "ar", so it can be a program name with args.
11211 set dummy ar; ac_word=$2
11212 echo "$as_me:$LINENO: checking for $ac_word" >&5
11213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217   if test -n "$ac_ct_AR"; then
11218   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11219 else
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11222 do
11223   IFS=$as_save_IFS
11224   test -z "$as_dir" && as_dir=.
11225   for ac_exec_ext in '' $ac_executable_extensions; do
11226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227     ac_cv_prog_ac_ct_AR="ar"
11228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11229     break 2
11230   fi
11231 done
11232 done
11233
11234   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11235 fi
11236 fi
11237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11238 if test -n "$ac_ct_AR"; then
11239   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11240 echo "${ECHO_T}$ac_ct_AR" >&6
11241 else
11242   echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6
11244 fi
11245
11246   AR=$ac_ct_AR
11247 else
11248   AR="$ac_cv_prog_AR"
11249 fi
11250
11251 if test -n "$ac_tool_prefix"; then
11252   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11254 echo "$as_me:$LINENO: checking for $ac_word" >&5
11255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11256 if test "${ac_cv_prog_RANLIB+set}" = set; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   if test -n "$RANLIB"; then
11260   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11261 else
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11264 do
11265   IFS=$as_save_IFS
11266   test -z "$as_dir" && as_dir=.
11267   for ac_exec_ext in '' $ac_executable_extensions; do
11268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11271     break 2
11272   fi
11273 done
11274 done
11275
11276 fi
11277 fi
11278 RANLIB=$ac_cv_prog_RANLIB
11279 if test -n "$RANLIB"; then
11280   echo "$as_me:$LINENO: result: $RANLIB" >&5
11281 echo "${ECHO_T}$RANLIB" >&6
11282 else
11283   echo "$as_me:$LINENO: result: no" >&5
11284 echo "${ECHO_T}no" >&6
11285 fi
11286
11287 fi
11288 if test -z "$ac_cv_prog_RANLIB"; then
11289   ac_ct_RANLIB=$RANLIB
11290   # Extract the first word of "ranlib", so it can be a program name with args.
11291 set dummy ranlib; ac_word=$2
11292 echo "$as_me:$LINENO: checking for $ac_word" >&5
11293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   if test -n "$ac_ct_RANLIB"; then
11298   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   test -z "$as_dir" && as_dir=.
11305   for ac_exec_ext in '' $ac_executable_extensions; do
11306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307     ac_cv_prog_ac_ct_RANLIB="ranlib"
11308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312 done
11313
11314   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11315 fi
11316 fi
11317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11318 if test -n "$ac_ct_RANLIB"; then
11319   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11320 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11321 else
11322   echo "$as_me:$LINENO: result: no" >&5
11323 echo "${ECHO_T}no" >&6
11324 fi
11325
11326   RANLIB=$ac_ct_RANLIB
11327 else
11328   RANLIB="$ac_cv_prog_RANLIB"
11329 fi
11330
11331 if test -n "$ac_tool_prefix"; then
11332   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11333 set dummy ${ac_tool_prefix}strip; ac_word=$2
11334 echo "$as_me:$LINENO: checking for $ac_word" >&5
11335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11336 if test "${ac_cv_prog_STRIP+set}" = set; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339   if test -n "$STRIP"; then
11340   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345   IFS=$as_save_IFS
11346   test -z "$as_dir" && as_dir=.
11347   for ac_exec_ext in '' $ac_executable_extensions; do
11348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11349     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11351     break 2
11352   fi
11353 done
11354 done
11355
11356 fi
11357 fi
11358 STRIP=$ac_cv_prog_STRIP
11359 if test -n "$STRIP"; then
11360   echo "$as_me:$LINENO: result: $STRIP" >&5
11361 echo "${ECHO_T}$STRIP" >&6
11362 else
11363   echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6
11365 fi
11366
11367 fi
11368 if test -z "$ac_cv_prog_STRIP"; then
11369   ac_ct_STRIP=$STRIP
11370   # Extract the first word of "strip", so it can be a program name with args.
11371 set dummy strip; ac_word=$2
11372 echo "$as_me:$LINENO: checking for $ac_word" >&5
11373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11374 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   if test -n "$ac_ct_STRIP"; then
11378   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11379 else
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11382 do
11383   IFS=$as_save_IFS
11384   test -z "$as_dir" && as_dir=.
11385   for ac_exec_ext in '' $ac_executable_extensions; do
11386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387     ac_cv_prog_ac_ct_STRIP="strip"
11388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11389     break 2
11390   fi
11391 done
11392 done
11393
11394   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11395 fi
11396 fi
11397 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11398 if test -n "$ac_ct_STRIP"; then
11399   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11400 echo "${ECHO_T}$ac_ct_STRIP" >&6
11401 else
11402   echo "$as_me:$LINENO: result: no" >&5
11403 echo "${ECHO_T}no" >&6
11404 fi
11405
11406   STRIP=$ac_ct_STRIP
11407 else
11408   STRIP="$ac_cv_prog_STRIP"
11409 fi
11410
11411
11412 old_CC="$CC"
11413 old_CFLAGS="$CFLAGS"
11414
11415 # Set sane defaults for various variables
11416 test -z "$AR" && AR=ar
11417 test -z "$AR_FLAGS" && AR_FLAGS=cru
11418 test -z "$AS" && AS=as
11419 test -z "$CC" && CC=cc
11420 test -z "$LTCC" && LTCC=$CC
11421 test -z "$DLLTOOL" && DLLTOOL=dlltool
11422 test -z "$LD" && LD=ld
11423 test -z "$LN_S" && LN_S="ln -s"
11424 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11425 test -z "$NM" && NM=nm
11426 test -z "$SED" && SED=sed
11427 test -z "$OBJDUMP" && OBJDUMP=objdump
11428 test -z "$RANLIB" && RANLIB=:
11429 test -z "$STRIP" && STRIP=:
11430 test -z "$ac_objext" && ac_objext=o
11431
11432 # Determine commands to create old-style static archives.
11433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11434 old_postinstall_cmds='chmod 644 $oldlib'
11435 old_postuninstall_cmds=
11436
11437 if test -n "$RANLIB"; then
11438   case $host_os in
11439   openbsd*)
11440     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11441     ;;
11442   *)
11443     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11444     ;;
11445   esac
11446   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11447 fi
11448
11449 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11450
11451 # Only perform the check for file, if the check method requires it
11452 case $deplibs_check_method in
11453 file_magic*)
11454   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11455     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11456 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11457 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   case $MAGIC_CMD in
11461 [\\/*] |  ?:[\\/]*)
11462   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11463   ;;
11464 *)
11465   lt_save_MAGIC_CMD="$MAGIC_CMD"
11466   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11467   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11468   for ac_dir in $ac_dummy; do
11469     IFS="$lt_save_ifs"
11470     test -z "$ac_dir" && ac_dir=.
11471     if test -f $ac_dir/${ac_tool_prefix}file; then
11472       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11473       if test -n "$file_magic_test_file"; then
11474         case $deplibs_check_method in
11475         "file_magic "*)
11476           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11477           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11478           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11479             $EGREP "$file_magic_regex" > /dev/null; then
11480             :
11481           else
11482             cat <<EOF 1>&2
11483
11484 *** Warning: the command libtool uses to detect shared libraries,
11485 *** $file_magic_cmd, produces output that libtool cannot recognize.
11486 *** The result is that libtool may fail to recognize shared libraries
11487 *** as such.  This will affect the creation of libtool libraries that
11488 *** depend on shared libraries, but programs linked with such libtool
11489 *** libraries will work regardless of this problem.  Nevertheless, you
11490 *** may want to report the problem to your system manager and/or to
11491 *** bug-libtool@gnu.org
11492
11493 EOF
11494           fi ;;
11495         esac
11496       fi
11497       break
11498     fi
11499   done
11500   IFS="$lt_save_ifs"
11501   MAGIC_CMD="$lt_save_MAGIC_CMD"
11502   ;;
11503 esac
11504 fi
11505
11506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11507 if test -n "$MAGIC_CMD"; then
11508   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11509 echo "${ECHO_T}$MAGIC_CMD" >&6
11510 else
11511   echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6
11513 fi
11514
11515 if test -z "$lt_cv_path_MAGIC_CMD"; then
11516   if test -n "$ac_tool_prefix"; then
11517     echo "$as_me:$LINENO: checking for file" >&5
11518 echo $ECHO_N "checking for file... $ECHO_C" >&6
11519 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   case $MAGIC_CMD in
11523 [\\/*] |  ?:[\\/]*)
11524   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11525   ;;
11526 *)
11527   lt_save_MAGIC_CMD="$MAGIC_CMD"
11528   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11529   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11530   for ac_dir in $ac_dummy; do
11531     IFS="$lt_save_ifs"
11532     test -z "$ac_dir" && ac_dir=.
11533     if test -f $ac_dir/file; then
11534       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11535       if test -n "$file_magic_test_file"; then
11536         case $deplibs_check_method in
11537         "file_magic "*)
11538           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11539           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11540           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11541             $EGREP "$file_magic_regex" > /dev/null; then
11542             :
11543           else
11544             cat <<EOF 1>&2
11545
11546 *** Warning: the command libtool uses to detect shared libraries,
11547 *** $file_magic_cmd, produces output that libtool cannot recognize.
11548 *** The result is that libtool may fail to recognize shared libraries
11549 *** as such.  This will affect the creation of libtool libraries that
11550 *** depend on shared libraries, but programs linked with such libtool
11551 *** libraries will work regardless of this problem.  Nevertheless, you
11552 *** may want to report the problem to your system manager and/or to
11553 *** bug-libtool@gnu.org
11554
11555 EOF
11556           fi ;;
11557         esac
11558       fi
11559       break
11560     fi
11561   done
11562   IFS="$lt_save_ifs"
11563   MAGIC_CMD="$lt_save_MAGIC_CMD"
11564   ;;
11565 esac
11566 fi
11567
11568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11569 if test -n "$MAGIC_CMD"; then
11570   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11571 echo "${ECHO_T}$MAGIC_CMD" >&6
11572 else
11573   echo "$as_me:$LINENO: result: no" >&5
11574 echo "${ECHO_T}no" >&6
11575 fi
11576
11577   else
11578     MAGIC_CMD=:
11579   fi
11580 fi
11581
11582   fi
11583   ;;
11584 esac
11585
11586 enable_dlopen=yes
11587 enable_win32_dll=no
11588
11589 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11590 if test "${enable_libtool_lock+set}" = set; then
11591   enableval="$enable_libtool_lock"
11592
11593 fi;
11594 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11595
11596
11597 # Check whether --with-pic or --without-pic was given.
11598 if test "${with_pic+set}" = set; then
11599   withval="$with_pic"
11600   pic_mode="$withval"
11601 else
11602   pic_mode=default
11603 fi;
11604 test -z "$pic_mode" && pic_mode=default
11605
11606 # Use C for the default configuration in the libtool script
11607 tagname=
11608 lt_save_CC="$CC"
11609 ac_ext=c
11610 ac_cpp='$CPP $CPPFLAGS'
11611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11614
11615
11616 # Source file extension for C test sources.
11617 ac_ext=c
11618
11619 # Object file extension for compiled C test sources.
11620 objext=o
11621 objext=$objext
11622
11623 # Code to be used in simple compile tests
11624 lt_simple_compile_test_code="int some_variable = 0;\n"
11625
11626 # Code to be used in simple link tests
11627 lt_simple_link_test_code='int main(){return(0);}\n'
11628
11629
11630 # If no C compiler was specified, use CC.
11631 LTCC=${LTCC-"$CC"}
11632
11633 # Allow CC to be a program name with arguments.
11634 compiler=$CC
11635
11636
11637 #
11638 # Check for any special shared library compilation flags.
11639 #
11640 lt_prog_cc_shlib=
11641 if test "$GCC" = no; then
11642   case $host_os in
11643   sco3.2v5*)
11644     lt_prog_cc_shlib='-belf'
11645     ;;
11646   esac
11647 fi
11648 if test -n "$lt_prog_cc_shlib"; then
11649   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11650 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11651   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11652   else
11653     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11654 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11655     lt_cv_prog_cc_can_build_shared=no
11656   fi
11657 fi
11658
11659
11660 #
11661 # Check to make sure the static flag actually works.
11662 #
11663 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11664 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11665 if test "${lt_prog_compiler_static_works+set}" = set; then
11666   echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668   lt_prog_compiler_static_works=no
11669    save_LDFLAGS="$LDFLAGS"
11670    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11671    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11672    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11673      # The compiler can only warn and ignore the option if not recognized
11674      # So say no if there are warnings
11675      if test -s conftest.err; then
11676        # Append any errors to the config.log.
11677        cat conftest.err 1>&5
11678      else
11679        lt_prog_compiler_static_works=yes
11680      fi
11681    fi
11682    $rm conftest*
11683    LDFLAGS="$save_LDFLAGS"
11684
11685 fi
11686 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11687 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11688
11689 if test x"$lt_prog_compiler_static_works" = xyes; then
11690     :
11691 else
11692     lt_prog_compiler_static=
11693 fi
11694
11695
11696
11697
11698 lt_prog_compiler_no_builtin_flag=
11699
11700 if test "$GCC" = yes; then
11701   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11702
11703
11704 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   lt_cv_prog_compiler_rtti_exceptions=no
11710   ac_outfile=conftest.$ac_objext
11711    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11712    lt_compiler_flag="-fno-rtti -fno-exceptions"
11713    # Insert the option either (1) after the last *FLAGS variable, or
11714    # (2) before a word containing "conftest.", or (3) at the end.
11715    # Note that $ac_compile itself does not contain backslashes and begins
11716    # with a dollar sign (not a hyphen), so the echo should work correctly.
11717    # The option is referenced via a variable to avoid confusing sed.
11718    lt_compile=`echo "$ac_compile" | $SED \
11719    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11721    -e 's:$: $lt_compiler_flag:'`
11722    (eval echo "\"\$as_me:11722: $lt_compile\"" >&5)
11723    (eval "$lt_compile" 2>conftest.err)
11724    ac_status=$?
11725    cat conftest.err >&5
11726    echo "$as_me:11726: \$? = $ac_status" >&5
11727    if (exit $ac_status) && test -s "$ac_outfile"; then
11728      # The compiler can only warn and ignore the option if not recognized
11729      # So say no if there are warnings
11730      if test ! -s conftest.err; then
11731        lt_cv_prog_compiler_rtti_exceptions=yes
11732      fi
11733    fi
11734    $rm conftest*
11735
11736 fi
11737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11739
11740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11741     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11742 else
11743     :
11744 fi
11745
11746 fi
11747
11748 lt_prog_compiler_wl=
11749 lt_prog_compiler_pic=
11750 lt_prog_compiler_static=
11751
11752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11754
11755   if test "$GCC" = yes; then
11756     lt_prog_compiler_wl='-Wl,'
11757     lt_prog_compiler_static='-static'
11758
11759     case $host_os in
11760       aix*)
11761       # All AIX code is PIC.
11762       if test "$host_cpu" = ia64; then
11763         # AIX 5 now supports IA64 processor
11764         lt_prog_compiler_static='-Bstatic'
11765       fi
11766       ;;
11767
11768     amigaos*)
11769       # FIXME: we need at least 68020 code to build shared libraries, but
11770       # adding the `-m68020' flag to GCC prevents building anything better,
11771       # like `-m68040'.
11772       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11773       ;;
11774
11775     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11776       # PIC is the default for these OSes.
11777       ;;
11778
11779     mingw* | pw32* | os2*)
11780       # This hack is so that the source file can tell whether it is being
11781       # built for inclusion in a dll (and should export symbols for example).
11782       lt_prog_compiler_pic='-DDLL_EXPORT'
11783       ;;
11784
11785     darwin* | rhapsody*)
11786       # PIC is the default on this platform
11787       # Common symbols not allowed in MH_DYLIB files
11788       lt_prog_compiler_pic='-fno-common'
11789       ;;
11790
11791     msdosdjgpp*)
11792       # Just because we use GCC doesn't mean we suddenly get shared libraries
11793       # on systems that don't support them.
11794       lt_prog_compiler_can_build_shared=no
11795       enable_shared=no
11796       ;;
11797
11798     sysv4*MP*)
11799       if test -d /usr/nec; then
11800         lt_prog_compiler_pic=-Kconform_pic
11801       fi
11802       ;;
11803
11804     hpux*)
11805       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11806       # not for PA HP-UX.
11807       case "$host_cpu" in
11808       hppa*64*|ia64*)
11809         # +Z the default
11810         ;;
11811       *)
11812         lt_prog_compiler_pic='-fPIC'
11813         ;;
11814       esac
11815       ;;
11816
11817     *)
11818       lt_prog_compiler_pic='-fPIC'
11819       ;;
11820     esac
11821   else
11822     # PORTME Check for flag to pass linker flags through the system compiler.
11823     case $host_os in
11824     aix*)
11825       lt_prog_compiler_wl='-Wl,'
11826       if test "$host_cpu" = ia64; then
11827         # AIX 5 now supports IA64 processor
11828         lt_prog_compiler_static='-Bstatic'
11829       else
11830         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11831       fi
11832       ;;
11833       darwin*)
11834         # PIC is the default on this platform
11835         # Common symbols not allowed in MH_DYLIB files
11836        case "$cc_basename" in
11837          xlc*)
11838          lt_prog_compiler_pic='-qnocommon'
11839          lt_prog_compiler_wl='-Wl,'
11840          ;;
11841        esac
11842        ;;
11843
11844     mingw* | pw32* | os2*)
11845       # This hack is so that the source file can tell whether it is being
11846       # built for inclusion in a dll (and should export symbols for example).
11847       lt_prog_compiler_pic='-DDLL_EXPORT'
11848       ;;
11849
11850     hpux9* | hpux10* | hpux11*)
11851       lt_prog_compiler_wl='-Wl,'
11852       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11853       # not for PA HP-UX.
11854       case "$host_cpu" in
11855       hppa*64*|ia64*)
11856         # +Z the default
11857         ;;
11858       *)
11859         lt_prog_compiler_pic='+Z'
11860         ;;
11861       esac
11862       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11863       lt_prog_compiler_static='${wl}-a ${wl}archive'
11864       ;;
11865
11866     irix5* | irix6* | nonstopux*)
11867       lt_prog_compiler_wl='-Wl,'
11868       # PIC (with -KPIC) is the default.
11869       lt_prog_compiler_static='-non_shared'
11870       ;;
11871
11872     newsos6)
11873       lt_prog_compiler_pic='-KPIC'
11874       lt_prog_compiler_static='-Bstatic'
11875       ;;
11876
11877     linux*)
11878       case $CC in
11879       icc* | ecc*)
11880         lt_prog_compiler_wl='-Wl,'
11881         lt_prog_compiler_pic='-KPIC'
11882         lt_prog_compiler_static='-static'
11883         ;;
11884       ccc*)
11885         lt_prog_compiler_wl='-Wl,'
11886         # All Alpha code is PIC.
11887         lt_prog_compiler_static='-non_shared'
11888         ;;
11889       esac
11890       ;;
11891
11892     osf3* | osf4* | osf5*)
11893       lt_prog_compiler_wl='-Wl,'
11894       # All OSF/1 code is PIC.
11895       lt_prog_compiler_static='-non_shared'
11896       ;;
11897
11898     sco3.2v5*)
11899       lt_prog_compiler_pic='-Kpic'
11900       lt_prog_compiler_static='-dn'
11901       ;;
11902
11903     solaris*)
11904       lt_prog_compiler_wl='-Wl,'
11905       lt_prog_compiler_pic='-KPIC'
11906       lt_prog_compiler_static='-Bstatic'
11907       ;;
11908
11909     sunos4*)
11910       lt_prog_compiler_wl='-Qoption ld '
11911       lt_prog_compiler_pic='-PIC'
11912       lt_prog_compiler_static='-Bstatic'
11913       ;;
11914
11915     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11916       lt_prog_compiler_wl='-Wl,'
11917       lt_prog_compiler_pic='-KPIC'
11918       lt_prog_compiler_static='-Bstatic'
11919       ;;
11920
11921     sysv4*MP*)
11922       if test -d /usr/nec ;then
11923         lt_prog_compiler_pic='-Kconform_pic'
11924         lt_prog_compiler_static='-Bstatic'
11925       fi
11926       ;;
11927
11928     uts4*)
11929       lt_prog_compiler_pic='-pic'
11930       lt_prog_compiler_static='-Bstatic'
11931       ;;
11932
11933     *)
11934       lt_prog_compiler_can_build_shared=no
11935       ;;
11936     esac
11937   fi
11938
11939 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11941
11942 #
11943 # Check to make sure the PIC flag actually works.
11944 #
11945 if test -n "$lt_prog_compiler_pic"; then
11946
11947 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11949 if test "${lt_prog_compiler_pic_works+set}" = set; then
11950   echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952   lt_prog_compiler_pic_works=no
11953   ac_outfile=conftest.$ac_objext
11954    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11955    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11956    # Insert the option either (1) after the last *FLAGS variable, or
11957    # (2) before a word containing "conftest.", or (3) at the end.
11958    # Note that $ac_compile itself does not contain backslashes and begins
11959    # with a dollar sign (not a hyphen), so the echo should work correctly.
11960    # The option is referenced via a variable to avoid confusing sed.
11961    lt_compile=`echo "$ac_compile" | $SED \
11962    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11964    -e 's:$: $lt_compiler_flag:'`
11965    (eval echo "\"\$as_me:11965: $lt_compile\"" >&5)
11966    (eval "$lt_compile" 2>conftest.err)
11967    ac_status=$?
11968    cat conftest.err >&5
11969    echo "$as_me:11969: \$? = $ac_status" >&5
11970    if (exit $ac_status) && test -s "$ac_outfile"; then
11971      # The compiler can only warn and ignore the option if not recognized
11972      # So say no if there are warnings
11973      if test ! -s conftest.err; then
11974        lt_prog_compiler_pic_works=yes
11975      fi
11976    fi
11977    $rm conftest*
11978
11979 fi
11980 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11981 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11982
11983 if test x"$lt_prog_compiler_pic_works" = xyes; then
11984     case $lt_prog_compiler_pic in
11985      "" | " "*) ;;
11986      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11987      esac
11988 else
11989     lt_prog_compiler_pic=
11990      lt_prog_compiler_can_build_shared=no
11991 fi
11992
11993 fi
11994 case "$host_os" in
11995   # For platforms which do not support PIC, -DPIC is meaningless:
11996   *djgpp*)
11997     lt_prog_compiler_pic=
11998     ;;
11999   *)
12000     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12001     ;;
12002 esac
12003
12004 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12005 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12006 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   lt_cv_prog_compiler_c_o=no
12010    $rm -r conftest 2>/dev/null
12011    mkdir conftest
12012    cd conftest
12013    mkdir out
12014    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12015
12016    lt_compiler_flag="-o out/conftest2.$ac_objext"
12017    # Insert the option either (1) after the last *FLAGS variable, or
12018    # (2) before a word containing "conftest.", or (3) at the end.
12019    # Note that $ac_compile itself does not contain backslashes and begins
12020    # with a dollar sign (not a hyphen), so the echo should work correctly.
12021    lt_compile=`echo "$ac_compile" | $SED \
12022    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12024    -e 's:$: $lt_compiler_flag:'`
12025    (eval echo "\"\$as_me:12025: $lt_compile\"" >&5)
12026    (eval "$lt_compile" 2>out/conftest.err)
12027    ac_status=$?
12028    cat out/conftest.err >&5
12029    echo "$as_me:12029: \$? = $ac_status" >&5
12030    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12031    then
12032      # The compiler can only warn and ignore the option if not recognized
12033      # So say no if there are warnings
12034      if test ! -s out/conftest.err; then
12035        lt_cv_prog_compiler_c_o=yes
12036      fi
12037    fi
12038    chmod u+w .
12039    $rm conftest*
12040    # SGI C++ compiler will create directory out/ii_files/ for
12041    # template instantiation
12042    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12043    $rm out/* && rmdir out
12044    cd ..
12045    rmdir conftest
12046    $rm conftest*
12047
12048 fi
12049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12050 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12051
12052
12053 hard_links="nottested"
12054 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12055   # do not overwrite the value of need_locks provided by the user
12056   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12058   hard_links=yes
12059   $rm conftest*
12060   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12061   touch conftest.a
12062   ln conftest.a conftest.b 2>&5 || hard_links=no
12063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12064   echo "$as_me:$LINENO: result: $hard_links" >&5
12065 echo "${ECHO_T}$hard_links" >&6
12066   if test "$hard_links" = no; then
12067     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12069     need_locks=warn
12070   fi
12071 else
12072   need_locks=no
12073 fi
12074
12075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12077
12078   runpath_var=
12079   allow_undefined_flag=
12080   enable_shared_with_static_runtimes=no
12081   archive_cmds=
12082   archive_expsym_cmds=
12083   old_archive_From_new_cmds=
12084   old_archive_from_expsyms_cmds=
12085   export_dynamic_flag_spec=
12086   whole_archive_flag_spec=
12087   thread_safe_flag_spec=
12088   hardcode_libdir_flag_spec=
12089   hardcode_libdir_flag_spec_ld=
12090   hardcode_libdir_separator=
12091   hardcode_direct=no
12092   hardcode_minus_L=no
12093   hardcode_shlibpath_var=unsupported
12094   link_all_deplibs=unknown
12095   hardcode_automatic=no
12096   module_cmds=
12097   module_expsym_cmds=
12098   always_export_symbols=no
12099   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12100   # include_expsyms should be a list of space-separated symbols to be *always*
12101   # included in the symbol list
12102   include_expsyms=
12103   # exclude_expsyms can be an extended regexp of symbols to exclude
12104   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12105   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12106   # as well as any symbol that contains `d'.
12107   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12108   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12109   # platforms (ab)use it in PIC code, but their linkers get confused if
12110   # the symbol is explicitly referenced.  Since portable code cannot
12111   # rely on this symbol name, it's probably fine to never include it in
12112   # preloaded symbol tables.
12113   extract_expsyms_cmds=
12114
12115   case $host_os in
12116   cygwin* | mingw* | pw32*)
12117     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12118     # When not using gcc, we currently assume that we are using
12119     # Microsoft Visual C++.
12120     if test "$GCC" != yes; then
12121       with_gnu_ld=no
12122     fi
12123     ;;
12124   openbsd*)
12125     with_gnu_ld=no
12126     ;;
12127   esac
12128
12129   ld_shlibs=yes
12130   if test "$with_gnu_ld" = yes; then
12131     # If archive_cmds runs LD, not CC, wlarc should be empty
12132     wlarc='${wl}'
12133
12134     # See if GNU ld supports shared libraries.
12135     case $host_os in
12136     aix3* | aix4* | aix5*)
12137       # On AIX/PPC, the GNU linker is very broken
12138       if test "$host_cpu" != ia64; then
12139         ld_shlibs=no
12140         cat <<EOF 1>&2
12141
12142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12143 *** to be unable to reliably create shared libraries on AIX.
12144 *** Therefore, libtool is disabling shared libraries support.  If you
12145 *** really care for shared libraries, you may want to modify your PATH
12146 *** so that a non-GNU linker is found, and then restart.
12147
12148 EOF
12149       fi
12150       ;;
12151
12152     amigaos*)
12153       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)'
12154       hardcode_libdir_flag_spec='-L$libdir'
12155       hardcode_minus_L=yes
12156
12157       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12158       # that the semantics of dynamic libraries on AmigaOS, at least up
12159       # to version 4, is to share data among multiple programs linked
12160       # with the same dynamic library.  Since this doesn't match the
12161       # behavior of shared libraries on other platforms, we can't use
12162       # them.
12163       ld_shlibs=no
12164       ;;
12165
12166     beos*)
12167       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12168         allow_undefined_flag=unsupported
12169         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12170         # support --undefined.  This deserves some investigation.  FIXME
12171         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172       else
12173         ld_shlibs=no
12174       fi
12175       ;;
12176
12177     cygwin* | mingw* | pw32*)
12178       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12179       # as there is no search path for DLLs.
12180       hardcode_libdir_flag_spec='-L$libdir'
12181       allow_undefined_flag=unsupported
12182       always_export_symbols=no
12183       enable_shared_with_static_runtimes=yes
12184       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12185
12186       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12187         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12188         # If the export-symbols file already is a .def file (1st line
12189         # is EXPORTS), use it as is; otherwise, prepend...
12190         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12191           cp $export_symbols $output_objdir/$soname.def;
12192         else
12193           echo EXPORTS > $output_objdir/$soname.def;
12194           cat $export_symbols >> $output_objdir/$soname.def;
12195         fi~
12196         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12197       else
12198         ld_shlibs=no
12199       fi
12200       ;;
12201
12202     netbsd*)
12203       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12204         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12205         wlarc=
12206       else
12207         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12208         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12209       fi
12210       ;;
12211
12212     solaris* | sysv5*)
12213       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12214         ld_shlibs=no
12215         cat <<EOF 1>&2
12216
12217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12218 *** create shared libraries on Solaris systems.  Therefore, libtool
12219 *** is disabling shared libraries support.  We urge you to upgrade GNU
12220 *** binutils to release 2.9.1 or newer.  Another option is to modify
12221 *** your PATH or compiler configuration so that the native linker is
12222 *** used, and then restart.
12223
12224 EOF
12225       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12226         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12228       else
12229         ld_shlibs=no
12230       fi
12231       ;;
12232
12233     sunos4*)
12234       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12235       wlarc=
12236       hardcode_direct=yes
12237       hardcode_shlibpath_var=no
12238       ;;
12239
12240   linux*)
12241     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12242         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243         archive_cmds="$tmp_archive_cmds"
12244       supports_anon_versioning=no
12245       case `$LD -v 2>/dev/null` in
12246         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12247         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12248         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12249         *\ 2.11.*) ;; # other 2.11 versions
12250         *) supports_anon_versioning=yes ;;
12251       esac
12252       if test $supports_anon_versioning = yes; then
12253         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12255 $echo "local: *; };" >> $output_objdir/$libname.ver~
12256         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12257       else
12258         archive_expsym_cmds="$tmp_archive_cmds"
12259       fi
12260     else
12261       ld_shlibs=no
12262     fi
12263     ;;
12264
12265     *)
12266       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12267         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12269       else
12270         ld_shlibs=no
12271       fi
12272       ;;
12273     esac
12274
12275     if test "$ld_shlibs" = yes; then
12276       runpath_var=LD_RUN_PATH
12277       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12278       export_dynamic_flag_spec='${wl}--export-dynamic'
12279       # ancient GNU ld didn't support --whole-archive et. al.
12280       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12281         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12282       else
12283         whole_archive_flag_spec=
12284       fi
12285     fi
12286   else
12287     # PORTME fill in a description of your system's linker (not GNU ld)
12288     case $host_os in
12289     aix3*)
12290       allow_undefined_flag=unsupported
12291       always_export_symbols=yes
12292       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'
12293       # Note: this linker hardcodes the directories in LIBPATH if there
12294       # are no directories specified by -L.
12295       hardcode_minus_L=yes
12296       if test "$GCC" = yes && test -z "$link_static_flag"; then
12297         # Neither direct hardcoding nor static linking is supported with a
12298         # broken collect2.
12299         hardcode_direct=unsupported
12300       fi
12301       ;;
12302
12303     aix4* | aix5*)
12304       if test "$host_cpu" = ia64; then
12305         # On IA64, the linker does run time linking by default, so we don't
12306         # have to do anything special.
12307         aix_use_runtimelinking=no
12308         exp_sym_flag='-Bexport'
12309         no_entry_flag=""
12310       else
12311         # If we're using GNU nm, then we don't want the "-C" option.
12312         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12313         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12314           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'
12315         else
12316           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'
12317         fi
12318         aix_use_runtimelinking=no
12319
12320         # Test if we are trying to use run time linking or normal
12321         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12322         # need to do runtime linking.
12323         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12324           for ld_flag in $LDFLAGS; do
12325           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12326             aix_use_runtimelinking=yes
12327             break
12328           fi
12329           done
12330         esac
12331
12332         exp_sym_flag='-bexport'
12333         no_entry_flag='-bnoentry'
12334       fi
12335
12336       # When large executables or shared objects are built, AIX ld can
12337       # have problems creating the table of contents.  If linking a library
12338       # or program results in "error TOC overflow" add -mminimal-toc to
12339       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12340       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12341
12342       archive_cmds=''
12343       hardcode_direct=yes
12344       hardcode_libdir_separator=':'
12345       link_all_deplibs=yes
12346
12347       if test "$GCC" = yes; then
12348         case $host_os in aix4.012|aix4.012.*)
12349         # We only want to do this on AIX 4.2 and lower, the check
12350         # below for broken collect2 doesn't work under 4.3+
12351           collect2name=`${CC} -print-prog-name=collect2`
12352           if test -f "$collect2name" && \
12353            strings "$collect2name" | grep resolve_lib_name >/dev/null
12354           then
12355           # We have reworked collect2
12356           hardcode_direct=yes
12357           else
12358           # We have old collect2
12359           hardcode_direct=unsupported
12360           # It fails to find uninstalled libraries when the uninstalled
12361           # path is not listed in the libpath.  Setting hardcode_minus_L
12362           # to unsupported forces relinking
12363           hardcode_minus_L=yes
12364           hardcode_libdir_flag_spec='-L$libdir'
12365           hardcode_libdir_separator=
12366           fi
12367         esac
12368         shared_flag='-shared'
12369       else
12370         # not using gcc
12371         if test "$host_cpu" = ia64; then
12372         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12373         # chokes on -Wl,-G. The following line is correct:
12374           shared_flag='-G'
12375         else
12376         if test "$aix_use_runtimelinking" = yes; then
12377             shared_flag='${wl}-G'
12378           else
12379             shared_flag='${wl}-bM:SRE'
12380         fi
12381         fi
12382       fi
12383
12384       # It seems that -bexpall does not export symbols beginning with
12385       # underscore (_), so it is better to generate a list of symbols to export.
12386       always_export_symbols=yes
12387       if test "$aix_use_runtimelinking" = yes; then
12388         # Warning - without using the other runtime loading flags (-brtl),
12389         # -berok will link without error, but may produce a broken library.
12390         allow_undefined_flag='-berok'
12391        # Determine the default libpath from the value encoded in an empty executable.
12392        cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398
12399 int
12400 main ()
12401 {
12402
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409   (eval $ac_link) 2>conftest.er1
12410   ac_status=$?
12411   grep -v '^ *+' conftest.er1 >conftest.err
12412   rm -f conftest.er1
12413   cat conftest.err >&5
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -z "$ac_c_werror_flag"
12417                          || test ! -s conftest.err'
12418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419   (eval $ac_try) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; } &&
12423          { ac_try='test -s conftest$ac_exeext'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; }; then
12429
12430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12431 }'`
12432 # Check for a 64-bit object if we didn't find anything.
12433 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; }
12434 }'`; fi
12435 else
12436   echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439 fi
12440 rm -f conftest.err conftest.$ac_objext \
12441       conftest$ac_exeext conftest.$ac_ext
12442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12443
12444        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12445         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"
12446        else
12447         if test "$host_cpu" = ia64; then
12448           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12449           allow_undefined_flag="-z nodefs"
12450           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"
12451         else
12452          # Determine the default libpath from the value encoded in an empty executable.
12453          cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h.  */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h.  */
12459
12460 int
12461 main ()
12462 {
12463
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470   (eval $ac_link) 2>conftest.er1
12471   ac_status=$?
12472   grep -v '^ *+' conftest.er1 >conftest.err
12473   rm -f conftest.er1
12474   cat conftest.err >&5
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } &&
12477          { ac_try='test -z "$ac_c_werror_flag"
12478                          || test ! -s conftest.err'
12479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480   (eval $ac_try) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; } &&
12484          { ac_try='test -s conftest$ac_exeext'
12485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486   (eval $ac_try) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; }; then
12490
12491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12492 }'`
12493 # Check for a 64-bit object if we didn't find anything.
12494 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; }
12495 }'`; fi
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500 fi
12501 rm -f conftest.err conftest.$ac_objext \
12502       conftest$ac_exeext conftest.$ac_ext
12503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12504
12505          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12506           # Warning - without using the other run time loading flags,
12507           # -berok will link without error, but may produce a broken library.
12508           no_undefined_flag=' ${wl}-bernotok'
12509           allow_undefined_flag=' ${wl}-berok'
12510           # -bexpall does not export symbols beginning with underscore (_)
12511           always_export_symbols=yes
12512           # Exported symbols can be pulled into shared objects from archives
12513           whole_archive_flag_spec=' '
12514           archive_cmds_need_lc=yes
12515           # This is similar to how AIX traditionally builds it's shared libraries.
12516           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'
12517         fi
12518       fi
12519       ;;
12520
12521     amigaos*)
12522       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)'
12523       hardcode_libdir_flag_spec='-L$libdir'
12524       hardcode_minus_L=yes
12525       # see comment about different semantics on the GNU ld section
12526       ld_shlibs=no
12527       ;;
12528
12529     bsdi[45]*)
12530       export_dynamic_flag_spec=-rdynamic
12531       ;;
12532
12533     cygwin* | mingw* | pw32*)
12534       # When not using gcc, we currently assume that we are using
12535       # Microsoft Visual C++.
12536       # hardcode_libdir_flag_spec is actually meaningless, as there is
12537       # no search path for DLLs.
12538       hardcode_libdir_flag_spec=' '
12539       allow_undefined_flag=unsupported
12540       # Tell ltmain to make .lib files, not .a files.
12541       libext=lib
12542       # Tell ltmain to make .dll files, not .so files.
12543       shrext_cmds=".dll"
12544       # FIXME: Setting linknames here is a bad hack.
12545       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12546       # The linker will automatically build a .lib file if we build a DLL.
12547       old_archive_From_new_cmds='true'
12548       # FIXME: Should let the user specify the lib program.
12549       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12550       fix_srcfile_path='`cygpath -w "$srcfile"`'
12551       enable_shared_with_static_runtimes=yes
12552       ;;
12553
12554     darwin* | rhapsody*)
12555       case "$host_os" in
12556         rhapsody* | darwin1.[012])
12557          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12558          ;;
12559        *) # Darwin 1.3 on
12560          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12561            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12562          else
12563            case ${MACOSX_DEPLOYMENT_TARGET} in
12564              10.[012])
12565                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12566                ;;
12567              10.*)
12568                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12569                ;;
12570            esac
12571          fi
12572          ;;
12573       esac
12574       archive_cmds_need_lc=no
12575       hardcode_direct=no
12576       hardcode_automatic=yes
12577       hardcode_shlibpath_var=unsupported
12578       whole_archive_flag_spec=''
12579       link_all_deplibs=yes
12580     if test "$GCC" = yes ; then
12581         output_verbose_link_cmd='echo'
12582         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12583       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12584       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12585       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}'
12586       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}'
12587     else
12588       case "$cc_basename" in
12589         xlc*)
12590          output_verbose_link_cmd='echo'
12591          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12592          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12593           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12594          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}'
12595           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}'
12596           ;;
12597        *)
12598          ld_shlibs=no
12599           ;;
12600       esac
12601     fi
12602       ;;
12603
12604     dgux*)
12605       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12606       hardcode_libdir_flag_spec='-L$libdir'
12607       hardcode_shlibpath_var=no
12608       ;;
12609
12610     freebsd1*)
12611       ld_shlibs=no
12612       ;;
12613
12614     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12615     # support.  Future versions do this automatically, but an explicit c++rt0.o
12616     # does not break anything, and helps significantly (at the cost of a little
12617     # extra space).
12618     freebsd2.2*)
12619       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12620       hardcode_libdir_flag_spec='-R$libdir'
12621       hardcode_direct=yes
12622       hardcode_shlibpath_var=no
12623       ;;
12624
12625     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12626     freebsd2*)
12627       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12628       hardcode_direct=yes
12629       hardcode_minus_L=yes
12630       hardcode_shlibpath_var=no
12631       ;;
12632
12633     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12634     freebsd* | kfreebsd*-gnu)
12635       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12636       hardcode_libdir_flag_spec='-R$libdir'
12637       hardcode_direct=yes
12638       hardcode_shlibpath_var=no
12639       ;;
12640
12641     hpux9*)
12642       if test "$GCC" = yes; then
12643         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'
12644       else
12645         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'
12646       fi
12647       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12648       hardcode_libdir_separator=:
12649       hardcode_direct=yes
12650
12651       # hardcode_minus_L: Not really in the search PATH,
12652       # but as the default location of the library.
12653       hardcode_minus_L=yes
12654       export_dynamic_flag_spec='${wl}-E'
12655       ;;
12656
12657     hpux10* | hpux11*)
12658       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12659         case "$host_cpu" in
12660         hppa*64*|ia64*)
12661           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12662           ;;
12663         *)
12664           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12665           ;;
12666         esac
12667       else
12668         case "$host_cpu" in
12669         hppa*64*|ia64*)
12670           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12671           ;;
12672         *)
12673           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12674           ;;
12675         esac
12676       fi
12677       if test "$with_gnu_ld" = no; then
12678         case "$host_cpu" in
12679         hppa*64*)
12680           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12681           hardcode_libdir_flag_spec_ld='+b $libdir'
12682           hardcode_libdir_separator=:
12683           hardcode_direct=no
12684           hardcode_shlibpath_var=no
12685           ;;
12686         ia64*)
12687           hardcode_libdir_flag_spec='-L$libdir'
12688           hardcode_direct=no
12689           hardcode_shlibpath_var=no
12690
12691           # hardcode_minus_L: Not really in the search PATH,
12692           # but as the default location of the library.
12693           hardcode_minus_L=yes
12694           ;;
12695         *)
12696           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12697           hardcode_libdir_separator=:
12698           hardcode_direct=yes
12699           export_dynamic_flag_spec='${wl}-E'
12700
12701           # hardcode_minus_L: Not really in the search PATH,
12702           # but as the default location of the library.
12703           hardcode_minus_L=yes
12704           ;;
12705         esac
12706       fi
12707       ;;
12708
12709     irix5* | irix6* | nonstopux*)
12710       if test "$GCC" = yes; then
12711         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'
12712       else
12713         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'
12714         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12715       fi
12716       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12717       hardcode_libdir_separator=:
12718       link_all_deplibs=yes
12719       ;;
12720
12721     netbsd*)
12722       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12724       else
12725         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12726       fi
12727       hardcode_libdir_flag_spec='-R$libdir'
12728       hardcode_direct=yes
12729       hardcode_shlibpath_var=no
12730       ;;
12731
12732     newsos6)
12733       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12734       hardcode_direct=yes
12735       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12736       hardcode_libdir_separator=:
12737       hardcode_shlibpath_var=no
12738       ;;
12739
12740     openbsd*)
12741       hardcode_direct=yes
12742       hardcode_shlibpath_var=no
12743       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12744         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12745         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12746         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12747         export_dynamic_flag_spec='${wl}-E'
12748       else
12749        case $host_os in
12750          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12751            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12752            hardcode_libdir_flag_spec='-R$libdir'
12753            ;;
12754          *)
12755            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12756            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12757            ;;
12758        esac
12759       fi
12760       ;;
12761
12762     os2*)
12763       hardcode_libdir_flag_spec='-L$libdir'
12764       hardcode_minus_L=yes
12765       allow_undefined_flag=unsupported
12766       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'
12767       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12768       ;;
12769
12770     osf3*)
12771       if test "$GCC" = yes; then
12772         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12773         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'
12774       else
12775         allow_undefined_flag=' -expect_unresolved \*'
12776         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'
12777       fi
12778       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12779       hardcode_libdir_separator=:
12780       ;;
12781
12782     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12783       if test "$GCC" = yes; then
12784         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12785         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'
12786         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12787       else
12788         allow_undefined_flag=' -expect_unresolved \*'
12789         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'
12790         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12791         $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'
12792
12793         # Both c and cxx compiler support -rpath directly
12794         hardcode_libdir_flag_spec='-rpath $libdir'
12795       fi
12796       hardcode_libdir_separator=:
12797       ;;
12798
12799     sco3.2v5*)
12800       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12801       hardcode_shlibpath_var=no
12802       export_dynamic_flag_spec='${wl}-Bexport'
12803       runpath_var=LD_RUN_PATH
12804       hardcode_runpath_var=yes
12805       ;;
12806
12807     solaris*)
12808       no_undefined_flag=' -z text'
12809       if test "$GCC" = yes; then
12810         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12811         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12812           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12813       else
12814         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12815         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12817       fi
12818       hardcode_libdir_flag_spec='-R$libdir'
12819       hardcode_shlibpath_var=no
12820       case $host_os in
12821       solaris2.[0-5] | solaris2.[0-5].*) ;;
12822       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12823         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12824       esac
12825       link_all_deplibs=yes
12826       ;;
12827
12828     sunos4*)
12829       if test "x$host_vendor" = xsequent; then
12830         # Use $CC to link under sequent, because it throws in some extra .o
12831         # files that make .init and .fini sections work.
12832         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12833       else
12834         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12835       fi
12836       hardcode_libdir_flag_spec='-L$libdir'
12837       hardcode_direct=yes
12838       hardcode_minus_L=yes
12839       hardcode_shlibpath_var=no
12840       ;;
12841
12842     sysv4)
12843       case $host_vendor in
12844         sni)
12845           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846           hardcode_direct=yes # is this really true???
12847         ;;
12848         siemens)
12849           ## LD is ld it makes a PLAMLIB
12850           ## CC just makes a GrossModule.
12851           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12852           reload_cmds='$CC -r -o $output$reload_objs'
12853           hardcode_direct=no
12854         ;;
12855         motorola)
12856           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12858         ;;
12859       esac
12860       runpath_var='LD_RUN_PATH'
12861       hardcode_shlibpath_var=no
12862       ;;
12863
12864     sysv4.3*)
12865       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12866       hardcode_shlibpath_var=no
12867       export_dynamic_flag_spec='-Bexport'
12868       ;;
12869
12870     sysv4*MP*)
12871       if test -d /usr/nec; then
12872         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873         hardcode_shlibpath_var=no
12874         runpath_var=LD_RUN_PATH
12875         hardcode_runpath_var=yes
12876         ld_shlibs=yes
12877       fi
12878       ;;
12879
12880     sysv4.2uw2*)
12881       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12882       hardcode_direct=yes
12883       hardcode_minus_L=no
12884       hardcode_shlibpath_var=no
12885       hardcode_runpath_var=yes
12886       runpath_var=LD_RUN_PATH
12887       ;;
12888
12889    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12890       no_undefined_flag='${wl}-z ${wl}text'
12891       if test "$GCC" = yes; then
12892         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12893       else
12894         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12895       fi
12896       runpath_var='LD_RUN_PATH'
12897       hardcode_shlibpath_var=no
12898       ;;
12899
12900     sysv5*)
12901       no_undefined_flag=' -z text'
12902       # $CC -shared without GNU ld will not create a library from C++
12903       # object files and a static libstdc++, better avoid it by now
12904       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12906                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12907       hardcode_libdir_flag_spec=
12908       hardcode_shlibpath_var=no
12909       runpath_var='LD_RUN_PATH'
12910       ;;
12911
12912     uts4*)
12913       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914       hardcode_libdir_flag_spec='-L$libdir'
12915       hardcode_shlibpath_var=no
12916       ;;
12917
12918     *)
12919       ld_shlibs=no
12920       ;;
12921     esac
12922   fi
12923
12924 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12925 echo "${ECHO_T}$ld_shlibs" >&6
12926 test "$ld_shlibs" = no && can_build_shared=no
12927
12928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12929 if test "$GCC" = yes; then
12930   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12931 fi
12932
12933 #
12934 # Do we need to explicitly link libc?
12935 #
12936 case "x$archive_cmds_need_lc" in
12937 x|xyes)
12938   # Assume -lc should be added
12939   archive_cmds_need_lc=yes
12940
12941   if test "$enable_shared" = yes && test "$GCC" = yes; then
12942     case $archive_cmds in
12943     *'~'*)
12944       # FIXME: we may have to deal with multi-command sequences.
12945       ;;
12946     '$CC '*)
12947       # Test whether the compiler implicitly links with -lc since on some
12948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12949       # to ld, don't add -lc before -lgcc.
12950       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12952       $rm conftest*
12953       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12954
12955       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956   (eval $ac_compile) 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } 2>conftest.err; then
12960         soname=conftest
12961         lib=conftest
12962         libobjs=conftest.$ac_objext
12963         deplibs=
12964         wl=$lt_prog_compiler_wl
12965         compiler_flags=-v
12966         linker_flags=-v
12967         verstring=
12968         output_objdir=.
12969         libname=conftest
12970         lt_save_allow_undefined_flag=$allow_undefined_flag
12971         allow_undefined_flag=
12972         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12973   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }
12977         then
12978           archive_cmds_need_lc=no
12979         else
12980           archive_cmds_need_lc=yes
12981         fi
12982         allow_undefined_flag=$lt_save_allow_undefined_flag
12983       else
12984         cat conftest.err 1>&5
12985       fi
12986       $rm conftest*
12987       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12988 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12989       ;;
12990     esac
12991   fi
12992   ;;
12993 esac
12994
12995 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12996 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12997 library_names_spec=
12998 libname_spec='lib$name'
12999 soname_spec=
13000 shrext_cmds=".so"
13001 postinstall_cmds=
13002 postuninstall_cmds=
13003 finish_cmds=
13004 finish_eval=
13005 shlibpath_var=
13006 shlibpath_overrides_runpath=unknown
13007 version_type=none
13008 dynamic_linker="$host_os ld.so"
13009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13010 if test "$GCC" = yes; then
13011   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13012   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13013     # if the path contains ";" then we assume it to be the separator
13014     # otherwise default to the standard path separator (i.e. ":") - it is
13015     # assumed that no part of a normal pathname contains ";" but that should
13016     # okay in the real world where ";" in dirpaths is itself problematic.
13017     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13018   else
13019     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13020   fi
13021 else
13022   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13023 fi
13024 need_lib_prefix=unknown
13025 hardcode_into_libs=no
13026
13027 # when you set need_version to no, make sure it does not cause -set_version
13028 # flags to be left without arguments
13029 need_version=unknown
13030
13031 case $host_os in
13032 aix3*)
13033   version_type=linux
13034   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13035   shlibpath_var=LIBPATH
13036
13037   # AIX 3 has no versioning support, so we append a major version to the name.
13038   soname_spec='${libname}${release}${shared_ext}$major'
13039   ;;
13040
13041 aix4* | aix5*)
13042   version_type=linux
13043   need_lib_prefix=no
13044   need_version=no
13045   hardcode_into_libs=yes
13046   if test "$host_cpu" = ia64; then
13047     # AIX 5 supports IA64
13048     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13049     shlibpath_var=LD_LIBRARY_PATH
13050   else
13051     # With GCC up to 2.95.x, collect2 would create an import file
13052     # for dependence libraries.  The import file would start with
13053     # the line `#! .'.  This would cause the generated library to
13054     # depend on `.', always an invalid library.  This was fixed in
13055     # development snapshots of GCC prior to 3.0.
13056     case $host_os in
13057       aix4 | aix4.[01] | aix4.[01].*)
13058       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13059            echo ' yes '
13060            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13061         :
13062       else
13063         can_build_shared=no
13064       fi
13065       ;;
13066     esac
13067     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13068     # soname into executable. Probably we can add versioning support to
13069     # collect2, so additional links can be useful in future.
13070     if test "$aix_use_runtimelinking" = yes; then
13071       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13072       # instead of lib<name>.a to let people know that these are not
13073       # typical AIX shared libraries.
13074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075     else
13076       # We preserve .a as extension for shared libraries through AIX4.2
13077       # and later when we are not doing run time linking.
13078       library_names_spec='${libname}${release}.a $libname.a'
13079       soname_spec='${libname}${release}${shared_ext}$major'
13080     fi
13081     shlibpath_var=LIBPATH
13082   fi
13083   ;;
13084
13085 amigaos*)
13086   library_names_spec='$libname.ixlibrary $libname.a'
13087   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13088   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'
13089   ;;
13090
13091 beos*)
13092   library_names_spec='${libname}${shared_ext}'
13093   dynamic_linker="$host_os ld.so"
13094   shlibpath_var=LIBRARY_PATH
13095   ;;
13096
13097 bsdi[45]*)
13098   version_type=linux
13099   need_version=no
13100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101   soname_spec='${libname}${release}${shared_ext}$major'
13102   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13103   shlibpath_var=LD_LIBRARY_PATH
13104   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13105   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13106   # the default ld.so.conf also contains /usr/contrib/lib and
13107   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13108   # libtool to hard-code these into programs
13109   ;;
13110
13111 cygwin* | mingw* | pw32*)
13112   version_type=windows
13113   shrext_cmds=".dll"
13114   need_version=no
13115   need_lib_prefix=no
13116
13117   case $GCC,$host_os in
13118   yes,cygwin* | yes,mingw* | yes,pw32*)
13119     library_names_spec='$libname.dll.a'
13120     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13121     postinstall_cmds='base_file=`basename \${file}`~
13122       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13123       dldir=$destdir/`dirname \$dlpath`~
13124       test -d \$dldir || mkdir -p \$dldir~
13125       $install_prog $dir/$dlname \$dldir/$dlname'
13126     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13127       dlpath=$dir/\$dldll~
13128        $rm \$dlpath'
13129     shlibpath_overrides_runpath=yes
13130
13131     case $host_os in
13132     cygwin*)
13133       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13134       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13135       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13136       ;;
13137     mingw*)
13138       # MinGW DLLs use traditional 'lib' prefix
13139       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13140       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13141       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13142         # It is most probably a Windows format PATH printed by
13143         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13144         # path with ; separators, and with drive letters. We can handle the
13145         # drive letters (cygwin fileutils understands them), so leave them,
13146         # especially as we might pass files found there to a mingw objdump,
13147         # which wouldn't understand a cygwinified path. Ahh.
13148         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13149       else
13150         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13151       fi
13152       ;;
13153     pw32*)
13154       # pw32 DLLs use 'pw' prefix rather than 'lib'
13155       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13156       ;;
13157     esac
13158     ;;
13159
13160   *)
13161     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13162     ;;
13163   esac
13164   dynamic_linker='Win32 ld.exe'
13165   # FIXME: first we should search . and the directory the executable is in
13166   shlibpath_var=PATH
13167   ;;
13168
13169 darwin* | rhapsody*)
13170   dynamic_linker="$host_os dyld"
13171   version_type=darwin
13172   need_lib_prefix=no
13173   need_version=no
13174   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13175   soname_spec='${libname}${release}${major}$shared_ext'
13176   shlibpath_overrides_runpath=yes
13177   shlibpath_var=DYLD_LIBRARY_PATH
13178   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13179   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13180   if test "$GCC" = yes; then
13181     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"`
13182   else
13183     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13184   fi
13185   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13186   ;;
13187
13188 dgux*)
13189   version_type=linux
13190   need_lib_prefix=no
13191   need_version=no
13192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13193   soname_spec='${libname}${release}${shared_ext}$major'
13194   shlibpath_var=LD_LIBRARY_PATH
13195   ;;
13196
13197 freebsd1*)
13198   dynamic_linker=no
13199   ;;
13200
13201 kfreebsd*-gnu)
13202   version_type=linux
13203   need_lib_prefix=no
13204   need_version=no
13205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13206   soname_spec='${libname}${release}${shared_ext}$major'
13207   shlibpath_var=LD_LIBRARY_PATH
13208   shlibpath_overrides_runpath=no
13209   hardcode_into_libs=yes
13210   dynamic_linker='GNU ld.so'
13211   ;;
13212
13213 freebsd*)
13214   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13215   version_type=freebsd-$objformat
13216   case $version_type in
13217     freebsd-elf*)
13218       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13219       need_version=no
13220       need_lib_prefix=no
13221       ;;
13222     freebsd-*)
13223       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13224       need_version=yes
13225       ;;
13226   esac
13227   shlibpath_var=LD_LIBRARY_PATH
13228   case $host_os in
13229   freebsd2*)
13230     shlibpath_overrides_runpath=yes
13231     ;;
13232   freebsd3.01* | freebsdelf3.01*)
13233     shlibpath_overrides_runpath=yes
13234     hardcode_into_libs=yes
13235     ;;
13236   *) # from 3.2 on
13237     shlibpath_overrides_runpath=no
13238     hardcode_into_libs=yes
13239     ;;
13240   esac
13241   ;;
13242
13243 gnu*)
13244   version_type=linux
13245   need_lib_prefix=no
13246   need_version=no
13247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13248   soname_spec='${libname}${release}${shared_ext}$major'
13249   shlibpath_var=LD_LIBRARY_PATH
13250   hardcode_into_libs=yes
13251   ;;
13252
13253 hpux9* | hpux10* | hpux11*)
13254   # Give a soname corresponding to the major version so that dld.sl refuses to
13255   # link against other versions.
13256   version_type=sunos
13257   need_lib_prefix=no
13258   need_version=no
13259   case "$host_cpu" in
13260   ia64*)
13261     shrext_cmds='.so'
13262     hardcode_into_libs=yes
13263     dynamic_linker="$host_os dld.so"
13264     shlibpath_var=LD_LIBRARY_PATH
13265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267     soname_spec='${libname}${release}${shared_ext}$major'
13268     if test "X$HPUX_IA64_MODE" = X32; then
13269       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13270     else
13271       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13272     fi
13273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13274     ;;
13275    hppa*64*)
13276      shrext_cmds='.sl'
13277      hardcode_into_libs=yes
13278      dynamic_linker="$host_os dld.sl"
13279      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13280      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13281      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282      soname_spec='${libname}${release}${shared_ext}$major'
13283      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13284      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13285      ;;
13286    *)
13287     shrext_cmds='.sl'
13288     dynamic_linker="$host_os dld.sl"
13289     shlibpath_var=SHLIB_PATH
13290     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292     soname_spec='${libname}${release}${shared_ext}$major'
13293     ;;
13294   esac
13295   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13296   postinstall_cmds='chmod 555 $lib'
13297   ;;
13298
13299 irix5* | irix6* | nonstopux*)
13300   case $host_os in
13301     nonstopux*) version_type=nonstopux ;;
13302     *)
13303         if test "$lt_cv_prog_gnu_ld" = yes; then
13304                 version_type=linux
13305         else
13306                 version_type=irix
13307         fi ;;
13308   esac
13309   need_lib_prefix=no
13310   need_version=no
13311   soname_spec='${libname}${release}${shared_ext}$major'
13312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13313   case $host_os in
13314   irix5* | nonstopux*)
13315     libsuff= shlibsuff=
13316     ;;
13317   *)
13318     case $LD in # libtool.m4 will add one of these switches to LD
13319     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13320       libsuff= shlibsuff= libmagic=32-bit;;
13321     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13322       libsuff=32 shlibsuff=N32 libmagic=N32;;
13323     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13324       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13325     *) libsuff= shlibsuff= libmagic=never-match;;
13326     esac
13327     ;;
13328   esac
13329   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13330   shlibpath_overrides_runpath=no
13331   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13332   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13333   hardcode_into_libs=yes
13334   ;;
13335
13336 # No shared lib support for Linux oldld, aout, or coff.
13337 linux*oldld* | linux*aout* | linux*coff*)
13338   dynamic_linker=no
13339   ;;
13340
13341 # This must be Linux ELF.
13342 linux*)
13343   version_type=linux
13344   need_lib_prefix=no
13345   need_version=no
13346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347   soname_spec='${libname}${release}${shared_ext}$major'
13348   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13349   shlibpath_var=LD_LIBRARY_PATH
13350   shlibpath_overrides_runpath=no
13351   # This implies no fast_install, which is unacceptable.
13352   # Some rework will be needed to allow for fast_install
13353   # before this can be enabled.
13354   hardcode_into_libs=yes
13355
13356   # Append ld.so.conf contents to the search path
13357   if test -f /etc/ld.so.conf; then
13358     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13359     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13360   fi
13361
13362   # We used to test for /lib/ld.so.1 and disable shared libraries on
13363   # powerpc, because MkLinux only supported shared libraries with the
13364   # GNU dynamic linker.  Since this was broken with cross compilers,
13365   # most powerpc-linux boxes support dynamic linking these days and
13366   # people can always --disable-shared, the test was removed, and we
13367   # assume the GNU/Linux dynamic linker is in use.
13368   dynamic_linker='GNU/Linux ld.so'
13369   ;;
13370
13371 knetbsd*-gnu)
13372   version_type=linux
13373   need_lib_prefix=no
13374   need_version=no
13375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376   soname_spec='${libname}${release}${shared_ext}$major'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   shlibpath_overrides_runpath=no
13379   hardcode_into_libs=yes
13380   dynamic_linker='GNU ld.so'
13381   ;;
13382
13383 netbsd*)
13384   version_type=sunos
13385   need_lib_prefix=no
13386   need_version=no
13387   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13389     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390     dynamic_linker='NetBSD (a.out) ld.so'
13391   else
13392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13393     soname_spec='${libname}${release}${shared_ext}$major'
13394     dynamic_linker='NetBSD ld.elf_so'
13395   fi
13396   shlibpath_var=LD_LIBRARY_PATH
13397   shlibpath_overrides_runpath=yes
13398   hardcode_into_libs=yes
13399   ;;
13400
13401 newsos6)
13402   version_type=linux
13403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404   shlibpath_var=LD_LIBRARY_PATH
13405   shlibpath_overrides_runpath=yes
13406   ;;
13407
13408 nto-qnx*)
13409   version_type=linux
13410   need_lib_prefix=no
13411   need_version=no
13412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413   soname_spec='${libname}${release}${shared_ext}$major'
13414   shlibpath_var=LD_LIBRARY_PATH
13415   shlibpath_overrides_runpath=yes
13416   ;;
13417
13418 openbsd*)
13419   version_type=sunos
13420   need_lib_prefix=no
13421   need_version=no
13422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13423   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13424   shlibpath_var=LD_LIBRARY_PATH
13425   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13426     case $host_os in
13427       openbsd2.[89] | openbsd2.[89].*)
13428         shlibpath_overrides_runpath=no
13429         ;;
13430       *)
13431         shlibpath_overrides_runpath=yes
13432         ;;
13433       esac
13434   else
13435     shlibpath_overrides_runpath=yes
13436   fi
13437   ;;
13438
13439 os2*)
13440   libname_spec='$name'
13441   shrext_cmds=".dll"
13442   need_lib_prefix=no
13443   library_names_spec='$libname${shared_ext} $libname.a'
13444   dynamic_linker='OS/2 ld.exe'
13445   shlibpath_var=LIBPATH
13446   ;;
13447
13448 osf3* | osf4* | osf5*)
13449   version_type=osf
13450   need_lib_prefix=no
13451   need_version=no
13452   soname_spec='${libname}${release}${shared_ext}$major'
13453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454   shlibpath_var=LD_LIBRARY_PATH
13455   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13456   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13457   ;;
13458
13459 sco3.2v5*)
13460   version_type=osf
13461   soname_spec='${libname}${release}${shared_ext}$major'
13462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463   shlibpath_var=LD_LIBRARY_PATH
13464   ;;
13465
13466 solaris*)
13467   version_type=linux
13468   need_lib_prefix=no
13469   need_version=no
13470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471   soname_spec='${libname}${release}${shared_ext}$major'
13472   shlibpath_var=LD_LIBRARY_PATH
13473   shlibpath_overrides_runpath=yes
13474   hardcode_into_libs=yes
13475   # ldd complains unless libraries are executable
13476   postinstall_cmds='chmod +x $lib'
13477   ;;
13478
13479 sunos4*)
13480   version_type=sunos
13481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13482   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13483   shlibpath_var=LD_LIBRARY_PATH
13484   shlibpath_overrides_runpath=yes
13485   if test "$with_gnu_ld" = yes; then
13486     need_lib_prefix=no
13487   fi
13488   need_version=yes
13489   ;;
13490
13491 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13492   version_type=linux
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494   soname_spec='${libname}${release}${shared_ext}$major'
13495   shlibpath_var=LD_LIBRARY_PATH
13496   case $host_vendor in
13497     sni)
13498       shlibpath_overrides_runpath=no
13499       need_lib_prefix=no
13500       export_dynamic_flag_spec='${wl}-Blargedynsym'
13501       runpath_var=LD_RUN_PATH
13502       ;;
13503     siemens)
13504       need_lib_prefix=no
13505       ;;
13506     motorola)
13507       need_lib_prefix=no
13508       need_version=no
13509       shlibpath_overrides_runpath=no
13510       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13511       ;;
13512   esac
13513   ;;
13514
13515 sysv4*MP*)
13516   if test -d /usr/nec ;then
13517     version_type=linux
13518     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13519     soname_spec='$libname${shared_ext}.$major'
13520     shlibpath_var=LD_LIBRARY_PATH
13521   fi
13522   ;;
13523
13524 uts4*)
13525   version_type=linux
13526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527   soname_spec='${libname}${release}${shared_ext}$major'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   ;;
13530
13531 *)
13532   dynamic_linker=no
13533   ;;
13534 esac
13535 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13536 echo "${ECHO_T}$dynamic_linker" >&6
13537 test "$dynamic_linker" = no && can_build_shared=no
13538
13539 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13540 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13541 hardcode_action=
13542 if test -n "$hardcode_libdir_flag_spec" || \
13543    test -n "$runpath_var" || \
13544    test "X$hardcode_automatic" = "Xyes" ; then
13545
13546   # We can hardcode non-existant directories.
13547   if test "$hardcode_direct" != no &&
13548      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13549      # have to relink, otherwise we might link with an installed library
13550      # when we should be linking with a yet-to-be-installed one
13551      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13552      test "$hardcode_minus_L" != no; then
13553     # Linking always hardcodes the temporary library directory.
13554     hardcode_action=relink
13555   else
13556     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13557     hardcode_action=immediate
13558   fi
13559 else
13560   # We cannot hardcode anything, or else we can only hardcode existing
13561   # directories.
13562   hardcode_action=unsupported
13563 fi
13564 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13565 echo "${ECHO_T}$hardcode_action" >&6
13566
13567 if test "$hardcode_action" = relink; then
13568   # Fast installation is not supported
13569   enable_fast_install=no
13570 elif test "$shlibpath_overrides_runpath" = yes ||
13571      test "$enable_shared" = no; then
13572   # Fast installation is not necessary
13573   enable_fast_install=needless
13574 fi
13575
13576 striplib=
13577 old_striplib=
13578 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13579 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13580 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13581   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13582   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13583   echo "$as_me:$LINENO: result: yes" >&5
13584 echo "${ECHO_T}yes" >&6
13585 else
13586 # FIXME - insert some real tests, host_os isn't really good enough
13587   case $host_os in
13588    darwin*)
13589        if test -n "$STRIP" ; then
13590          striplib="$STRIP -x"
13591          echo "$as_me:$LINENO: result: yes" >&5
13592 echo "${ECHO_T}yes" >&6
13593        else
13594   echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6
13596 fi
13597        ;;
13598    *)
13599   echo "$as_me:$LINENO: result: no" >&5
13600 echo "${ECHO_T}no" >&6
13601     ;;
13602   esac
13603 fi
13604
13605 if test "x$enable_dlopen" != xyes; then
13606   enable_dlopen=unknown
13607   enable_dlopen_self=unknown
13608   enable_dlopen_self_static=unknown
13609 else
13610   lt_cv_dlopen=no
13611   lt_cv_dlopen_libs=
13612
13613   case $host_os in
13614   beos*)
13615     lt_cv_dlopen="load_add_on"
13616     lt_cv_dlopen_libs=
13617     lt_cv_dlopen_self=yes
13618     ;;
13619
13620   mingw* | pw32*)
13621     lt_cv_dlopen="LoadLibrary"
13622     lt_cv_dlopen_libs=
13623    ;;
13624
13625   cygwin*)
13626     lt_cv_dlopen="dlopen"
13627     lt_cv_dlopen_libs=
13628    ;;
13629
13630   darwin*)
13631   # if libdl is installed we need to link against it
13632     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13633 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13634 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-ldl  $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645
13646 /* Override any gcc2 internal prototype to avoid an error.  */
13647 #ifdef __cplusplus
13648 extern "C"
13649 #endif
13650 /* We use char because int might match the return type of a gcc2
13651    builtin and then its argument prototype would still apply.  */
13652 char dlopen ();
13653 int
13654 main ()
13655 {
13656 dlopen ();
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663   (eval $ac_link) 2>conftest.er1
13664   ac_status=$?
13665   grep -v '^ *+' conftest.er1 >conftest.err
13666   rm -f conftest.er1
13667   cat conftest.err >&5
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -z "$ac_c_werror_flag"
13671                          || test ! -s conftest.err'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; } &&
13677          { ac_try='test -s conftest$ac_exeext'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683   ac_cv_lib_dl_dlopen=yes
13684 else
13685   echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688 ac_cv_lib_dl_dlopen=no
13689 fi
13690 rm -f conftest.err conftest.$ac_objext \
13691       conftest$ac_exeext conftest.$ac_ext
13692 LIBS=$ac_check_lib_save_LIBS
13693 fi
13694 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13695 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13696 if test $ac_cv_lib_dl_dlopen = yes; then
13697   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13698 else
13699
13700     lt_cv_dlopen="dyld"
13701     lt_cv_dlopen_libs=
13702     lt_cv_dlopen_self=yes
13703
13704 fi
13705
13706    ;;
13707
13708   *)
13709     echo "$as_me:$LINENO: checking for shl_load" >&5
13710 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13711 if test "${ac_cv_func_shl_load+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h.  */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h.  */
13720 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13722 #define shl_load innocuous_shl_load
13723
13724 /* System header to define __stub macros and hopefully few prototypes,
13725     which can conflict with char shl_load (); below.
13726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13727     <limits.h> exists even on freestanding compilers.  */
13728
13729 #ifdef __STDC__
13730 # include <limits.h>
13731 #else
13732 # include <assert.h>
13733 #endif
13734
13735 #undef shl_load
13736
13737 /* Override any gcc2 internal prototype to avoid an error.  */
13738 #ifdef __cplusplus
13739 extern "C"
13740 {
13741 #endif
13742 /* We use char because int might match the return type of a gcc2
13743    builtin and then its argument prototype would still apply.  */
13744 char shl_load ();
13745 /* The GNU C library defines this for functions which it implements
13746     to always fail with ENOSYS.  Some functions are actually named
13747     something starting with __ and the normal name is an alias.  */
13748 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13749 choke me
13750 #else
13751 char (*f) () = shl_load;
13752 #endif
13753 #ifdef __cplusplus
13754 }
13755 #endif
13756
13757 int
13758 main ()
13759 {
13760 return f != shl_load;
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767   (eval $ac_link) 2>conftest.er1
13768   ac_status=$?
13769   grep -v '^ *+' conftest.er1 >conftest.err
13770   rm -f conftest.er1
13771   cat conftest.err >&5
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); } &&
13774          { ac_try='test -z "$ac_c_werror_flag"
13775                          || test ! -s conftest.err'
13776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777   (eval $ac_try) 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); }; } &&
13781          { ac_try='test -s conftest$ac_exeext'
13782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783   (eval $ac_try) 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; }; then
13787   ac_cv_func_shl_load=yes
13788 else
13789   echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792 ac_cv_func_shl_load=no
13793 fi
13794 rm -f conftest.err conftest.$ac_objext \
13795       conftest$ac_exeext conftest.$ac_ext
13796 fi
13797 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13798 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13799 if test $ac_cv_func_shl_load = yes; then
13800   lt_cv_dlopen="shl_load"
13801 else
13802   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13803 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-ldld  $LIBS"
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815
13816 /* Override any gcc2 internal prototype to avoid an error.  */
13817 #ifdef __cplusplus
13818 extern "C"
13819 #endif
13820 /* We use char because int might match the return type of a gcc2
13821    builtin and then its argument prototype would still apply.  */
13822 char shl_load ();
13823 int
13824 main ()
13825 {
13826 shl_load ();
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833   (eval $ac_link) 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } &&
13840          { ac_try='test -z "$ac_c_werror_flag"
13841                          || test ! -s conftest.err'
13842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843   (eval $ac_try) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; } &&
13847          { ac_try='test -s conftest$ac_exeext'
13848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849   (eval $ac_try) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; }; then
13853   ac_cv_lib_dld_shl_load=yes
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_cv_lib_dld_shl_load=no
13859 fi
13860 rm -f conftest.err conftest.$ac_objext \
13861       conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13863 fi
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13866 if test $ac_cv_lib_dld_shl_load = yes; then
13867   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13868 else
13869   echo "$as_me:$LINENO: checking for dlopen" >&5
13870 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13871 if test "${ac_cv_func_dlopen+set}" = set; then
13872   echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874   cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h.  */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h.  */
13880 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13882 #define dlopen innocuous_dlopen
13883
13884 /* System header to define __stub macros and hopefully few prototypes,
13885     which can conflict with char dlopen (); below.
13886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13887     <limits.h> exists even on freestanding compilers.  */
13888
13889 #ifdef __STDC__
13890 # include <limits.h>
13891 #else
13892 # include <assert.h>
13893 #endif
13894
13895 #undef dlopen
13896
13897 /* Override any gcc2 internal prototype to avoid an error.  */
13898 #ifdef __cplusplus
13899 extern "C"
13900 {
13901 #endif
13902 /* We use char because int might match the return type of a gcc2
13903    builtin and then its argument prototype would still apply.  */
13904 char dlopen ();
13905 /* The GNU C library defines this for functions which it implements
13906     to always fail with ENOSYS.  Some functions are actually named
13907     something starting with __ and the normal name is an alias.  */
13908 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13909 choke me
13910 #else
13911 char (*f) () = dlopen;
13912 #endif
13913 #ifdef __cplusplus
13914 }
13915 #endif
13916
13917 int
13918 main ()
13919 {
13920 return f != dlopen;
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13927   (eval $ac_link) 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -z "$ac_c_werror_flag"
13935                          || test ! -s conftest.err'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; } &&
13941          { ac_try='test -s conftest$ac_exeext'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_cv_func_dlopen=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_cv_func_dlopen=no
13953 fi
13954 rm -f conftest.err conftest.$ac_objext \
13955       conftest$ac_exeext conftest.$ac_ext
13956 fi
13957 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13958 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13959 if test $ac_cv_func_dlopen = yes; then
13960   lt_cv_dlopen="dlopen"
13961 else
13962   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967   ac_check_lib_save_LIBS=$LIBS
13968 LIBS="-ldl  $LIBS"
13969 cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h.  */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h.  */
13975
13976 /* Override any gcc2 internal prototype to avoid an error.  */
13977 #ifdef __cplusplus
13978 extern "C"
13979 #endif
13980 /* We use char because int might match the return type of a gcc2
13981    builtin and then its argument prototype would still apply.  */
13982 char dlopen ();
13983 int
13984 main ()
13985 {
13986 dlopen ();
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 rm -f conftest.$ac_objext conftest$ac_exeext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13993   (eval $ac_link) 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } &&
14000          { ac_try='test -z "$ac_c_werror_flag"
14001                          || test ! -s conftest.err'
14002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003   (eval $ac_try) 2>&5
14004   ac_status=$?
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); }; } &&
14007          { ac_try='test -s conftest$ac_exeext'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   ac_cv_lib_dl_dlopen=yes
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14017
14018 ac_cv_lib_dl_dlopen=no
14019 fi
14020 rm -f conftest.err conftest.$ac_objext \
14021       conftest$ac_exeext conftest.$ac_ext
14022 LIBS=$ac_check_lib_save_LIBS
14023 fi
14024 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14026 if test $ac_cv_lib_dl_dlopen = yes; then
14027   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14028 else
14029   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14030 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034   ac_check_lib_save_LIBS=$LIBS
14035 LIBS="-lsvld  $LIBS"
14036 cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h.  */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h.  */
14042
14043 /* Override any gcc2 internal prototype to avoid an error.  */
14044 #ifdef __cplusplus
14045 extern "C"
14046 #endif
14047 /* We use char because int might match the return type of a gcc2
14048    builtin and then its argument prototype would still apply.  */
14049 char dlopen ();
14050 int
14051 main ()
14052 {
14053 dlopen ();
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14060   (eval $ac_link) 2>conftest.er1
14061   ac_status=$?
14062   grep -v '^ *+' conftest.er1 >conftest.err
14063   rm -f conftest.er1
14064   cat conftest.err >&5
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -z "$ac_c_werror_flag"
14068                          || test ! -s conftest.err'
14069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070   (eval $ac_try) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; } &&
14074          { ac_try='test -s conftest$ac_exeext'
14075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076   (eval $ac_try) 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; }; then
14080   ac_cv_lib_svld_dlopen=yes
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 ac_cv_lib_svld_dlopen=no
14086 fi
14087 rm -f conftest.err conftest.$ac_objext \
14088       conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14090 fi
14091 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14092 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14093 if test $ac_cv_lib_svld_dlopen = yes; then
14094   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14095 else
14096   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   ac_check_lib_save_LIBS=$LIBS
14102 LIBS="-ldld  $LIBS"
14103 cat >conftest.$ac_ext <<_ACEOF
14104 /* confdefs.h.  */
14105 _ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h.  */
14109
14110 /* Override any gcc2 internal prototype to avoid an error.  */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 /* We use char because int might match the return type of a gcc2
14115    builtin and then its argument prototype would still apply.  */
14116 char dld_link ();
14117 int
14118 main ()
14119 {
14120 dld_link ();
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 rm -f conftest.$ac_objext conftest$ac_exeext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14127   (eval $ac_link) 2>conftest.er1
14128   ac_status=$?
14129   grep -v '^ *+' conftest.er1 >conftest.err
14130   rm -f conftest.er1
14131   cat conftest.err >&5
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); } &&
14134          { ac_try='test -z "$ac_c_werror_flag"
14135                          || test ! -s conftest.err'
14136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137   (eval $ac_try) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; } &&
14141          { ac_try='test -s conftest$ac_exeext'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }; then
14147   ac_cv_lib_dld_dld_link=yes
14148 else
14149   echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14151
14152 ac_cv_lib_dld_dld_link=no
14153 fi
14154 rm -f conftest.err conftest.$ac_objext \
14155       conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14157 fi
14158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14159 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14160 if test $ac_cv_lib_dld_dld_link = yes; then
14161   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14162 fi
14163
14164
14165 fi
14166
14167
14168 fi
14169
14170
14171 fi
14172
14173
14174 fi
14175
14176
14177 fi
14178
14179     ;;
14180   esac
14181
14182   if test "x$lt_cv_dlopen" != xno; then
14183     enable_dlopen=yes
14184   else
14185     enable_dlopen=no
14186   fi
14187
14188   case $lt_cv_dlopen in
14189   dlopen)
14190     save_CPPFLAGS="$CPPFLAGS"
14191     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14192
14193     save_LDFLAGS="$LDFLAGS"
14194     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14195
14196     save_LIBS="$LIBS"
14197     LIBS="$lt_cv_dlopen_libs $LIBS"
14198
14199     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14200 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14201 if test "${lt_cv_dlopen_self+set}" = set; then
14202   echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204           if test "$cross_compiling" = yes; then :
14205   lt_cv_dlopen_self=cross
14206 else
14207   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14208   lt_status=$lt_dlunknown
14209   cat > conftest.$ac_ext <<EOF
14210 #line 14210 "configure"
14211 #include "confdefs.h"
14212
14213 #if HAVE_DLFCN_H
14214 #include <dlfcn.h>
14215 #endif
14216
14217 #include <stdio.h>
14218
14219 #ifdef RTLD_GLOBAL
14220 #  define LT_DLGLOBAL           RTLD_GLOBAL
14221 #else
14222 #  ifdef DL_GLOBAL
14223 #    define LT_DLGLOBAL         DL_GLOBAL
14224 #  else
14225 #    define LT_DLGLOBAL         0
14226 #  endif
14227 #endif
14228
14229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14230    find out it does not work in some platform. */
14231 #ifndef LT_DLLAZY_OR_NOW
14232 #  ifdef RTLD_LAZY
14233 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14234 #  else
14235 #    ifdef DL_LAZY
14236 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14237 #    else
14238 #      ifdef RTLD_NOW
14239 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14240 #      else
14241 #        ifdef DL_NOW
14242 #          define LT_DLLAZY_OR_NOW      DL_NOW
14243 #        else
14244 #          define LT_DLLAZY_OR_NOW      0
14245 #        endif
14246 #      endif
14247 #    endif
14248 #  endif
14249 #endif
14250
14251 #ifdef __cplusplus
14252 extern "C" void exit (int);
14253 #endif
14254
14255 void fnord() { int i=42;}
14256 int main ()
14257 {
14258   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14259   int status = $lt_dlunknown;
14260
14261   if (self)
14262     {
14263       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14264       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14265       /* dlclose (self); */
14266     }
14267
14268     exit (status);
14269 }
14270 EOF
14271   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272   (eval $ac_link) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14276     (./conftest; exit; ) 2>/dev/null
14277     lt_status=$?
14278     case x$lt_status in
14279       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14280       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14281       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14282     esac
14283   else :
14284     # compilation failed
14285     lt_cv_dlopen_self=no
14286   fi
14287 fi
14288 rm -fr conftest*
14289
14290
14291 fi
14292 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14293 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14294
14295     if test "x$lt_cv_dlopen_self" = xyes; then
14296       LDFLAGS="$LDFLAGS $link_static_flag"
14297       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14298 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14299 if test "${lt_cv_dlopen_self_static+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302           if test "$cross_compiling" = yes; then :
14303   lt_cv_dlopen_self_static=cross
14304 else
14305   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14306   lt_status=$lt_dlunknown
14307   cat > conftest.$ac_ext <<EOF
14308 #line 14308 "configure"
14309 #include "confdefs.h"
14310
14311 #if HAVE_DLFCN_H
14312 #include <dlfcn.h>
14313 #endif
14314
14315 #include <stdio.h>
14316
14317 #ifdef RTLD_GLOBAL
14318 #  define LT_DLGLOBAL           RTLD_GLOBAL
14319 #else
14320 #  ifdef DL_GLOBAL
14321 #    define LT_DLGLOBAL         DL_GLOBAL
14322 #  else
14323 #    define LT_DLGLOBAL         0
14324 #  endif
14325 #endif
14326
14327 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14328    find out it does not work in some platform. */
14329 #ifndef LT_DLLAZY_OR_NOW
14330 #  ifdef RTLD_LAZY
14331 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14332 #  else
14333 #    ifdef DL_LAZY
14334 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14335 #    else
14336 #      ifdef RTLD_NOW
14337 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14338 #      else
14339 #        ifdef DL_NOW
14340 #          define LT_DLLAZY_OR_NOW      DL_NOW
14341 #        else
14342 #          define LT_DLLAZY_OR_NOW      0
14343 #        endif
14344 #      endif
14345 #    endif
14346 #  endif
14347 #endif
14348
14349 #ifdef __cplusplus
14350 extern "C" void exit (int);
14351 #endif
14352
14353 void fnord() { int i=42;}
14354 int main ()
14355 {
14356   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14357   int status = $lt_dlunknown;
14358
14359   if (self)
14360     {
14361       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14362       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14363       /* dlclose (self); */
14364     }
14365
14366     exit (status);
14367 }
14368 EOF
14369   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14370   (eval $ac_link) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14374     (./conftest; exit; ) 2>/dev/null
14375     lt_status=$?
14376     case x$lt_status in
14377       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14378       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14379       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14380     esac
14381   else :
14382     # compilation failed
14383     lt_cv_dlopen_self_static=no
14384   fi
14385 fi
14386 rm -fr conftest*
14387
14388
14389 fi
14390 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14391 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14392     fi
14393
14394     CPPFLAGS="$save_CPPFLAGS"
14395     LDFLAGS="$save_LDFLAGS"
14396     LIBS="$save_LIBS"
14397     ;;
14398   esac
14399
14400   case $lt_cv_dlopen_self in
14401   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14402   *) enable_dlopen_self=unknown ;;
14403   esac
14404
14405   case $lt_cv_dlopen_self_static in
14406   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14407   *) enable_dlopen_self_static=unknown ;;
14408   esac
14409 fi
14410
14411
14412 # Report which librarie types wil actually be built
14413 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14414 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14415 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14416 echo "${ECHO_T}$can_build_shared" >&6
14417
14418 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14419 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14420 test "$can_build_shared" = "no" && enable_shared=no
14421
14422 # On AIX, shared libraries and static libraries use the same namespace, and
14423 # are all built from PIC.
14424 case "$host_os" in
14425 aix3*)
14426   test "$enable_shared" = yes && enable_static=no
14427   if test -n "$RANLIB"; then
14428     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14429     postinstall_cmds='$RANLIB $lib'
14430   fi
14431   ;;
14432
14433 aix4* | aix5*)
14434   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14435     test "$enable_shared" = yes && enable_static=no
14436   fi
14437     ;;
14438 esac
14439 echo "$as_me:$LINENO: result: $enable_shared" >&5
14440 echo "${ECHO_T}$enable_shared" >&6
14441
14442 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14443 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14444 # Make sure either enable_shared or enable_static is yes.
14445 test "$enable_shared" = yes || enable_static=yes
14446 echo "$as_me:$LINENO: result: $enable_static" >&5
14447 echo "${ECHO_T}$enable_static" >&6
14448
14449 # The else clause should only fire when bootstrapping the
14450 # libtool distribution, otherwise you forgot to ship ltmain.sh
14451 # with your package, and you will get complaints that there are
14452 # no rules to generate ltmain.sh.
14453 if test -f "$ltmain"; then
14454   # See if we are running on zsh, and set the options which allow our commands through
14455   # without removal of \ escapes.
14456   if test -n "${ZSH_VERSION+set}" ; then
14457     setopt NO_GLOB_SUBST
14458   fi
14459   # Now quote all the things that may contain metacharacters while being
14460   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14461   # variables and quote the copies for generation of the libtool script.
14462   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14463     SED SHELL STRIP \
14464     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14465     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14466     deplibs_check_method reload_flag reload_cmds need_locks \
14467     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14468     lt_cv_sys_global_symbol_to_c_name_address \
14469     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14470     old_postinstall_cmds old_postuninstall_cmds \
14471     compiler \
14472     CC \
14473     LD \
14474     lt_prog_compiler_wl \
14475     lt_prog_compiler_pic \
14476     lt_prog_compiler_static \
14477     lt_prog_compiler_no_builtin_flag \
14478     export_dynamic_flag_spec \
14479     thread_safe_flag_spec \
14480     whole_archive_flag_spec \
14481     enable_shared_with_static_runtimes \
14482     old_archive_cmds \
14483     old_archive_from_new_cmds \
14484     predep_objects \
14485     postdep_objects \
14486     predeps \
14487     postdeps \
14488     compiler_lib_search_path \
14489     archive_cmds \
14490     archive_expsym_cmds \
14491     postinstall_cmds \
14492     postuninstall_cmds \
14493     old_archive_from_expsyms_cmds \
14494     allow_undefined_flag \
14495     no_undefined_flag \
14496     export_symbols_cmds \
14497     hardcode_libdir_flag_spec \
14498     hardcode_libdir_flag_spec_ld \
14499     hardcode_libdir_separator \
14500     hardcode_automatic \
14501     module_cmds \
14502     module_expsym_cmds \
14503     lt_cv_prog_compiler_c_o \
14504     exclude_expsyms \
14505     include_expsyms; do
14506
14507     case $var in
14508     old_archive_cmds | \
14509     old_archive_from_new_cmds | \
14510     archive_cmds | \
14511     archive_expsym_cmds | \
14512     module_cmds | \
14513     module_expsym_cmds | \
14514     old_archive_from_expsyms_cmds | \
14515     export_symbols_cmds | \
14516     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14517     postinstall_cmds | postuninstall_cmds | \
14518     old_postinstall_cmds | old_postuninstall_cmds | \
14519     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14520       # Double-quote double-evaled strings.
14521       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14522       ;;
14523     *)
14524       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14525       ;;
14526     esac
14527   done
14528
14529   case $lt_echo in
14530   *'\$0 --fallback-echo"')
14531     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14532     ;;
14533   esac
14534
14535 cfgfile="${ofile}T"
14536   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14537   $rm -f "$cfgfile"
14538   { echo "$as_me:$LINENO: creating $ofile" >&5
14539 echo "$as_me: creating $ofile" >&6;}
14540
14541   cat <<__EOF__ >> "$cfgfile"
14542 #! $SHELL
14543
14544 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14545 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14546 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14547 #
14548 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14549 # Free Software Foundation, Inc.
14550 #
14551 # This file is part of GNU Libtool:
14552 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14553 #
14554 # This program is free software; you can redistribute it and/or modify
14555 # it under the terms of the GNU General Public License as published by
14556 # the Free Software Foundation; either version 2 of the License, or
14557 # (at your option) any later version.
14558 #
14559 # This program is distributed in the hope that it will be useful, but
14560 # WITHOUT ANY WARRANTY; without even the implied warranty of
14561 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14562 # General Public License for more details.
14563 #
14564 # You should have received a copy of the GNU General Public License
14565 # along with this program; if not, write to the Free Software
14566 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14567 #
14568 # As a special exception to the GNU General Public License, if you
14569 # distribute this file as part of a program that contains a
14570 # configuration script generated by Autoconf, you may include it under
14571 # the same distribution terms that you use for the rest of that program.
14572
14573 # A sed program that does not truncate output.
14574 SED=$lt_SED
14575
14576 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14577 Xsed="$SED -e s/^X//"
14578
14579 # The HP-UX ksh and POSIX shell print the target directory to stdout
14580 # if CDPATH is set.
14581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14582
14583 # The names of the tagged configurations supported by this script.
14584 available_tags=
14585
14586 # ### BEGIN LIBTOOL CONFIG
14587
14588 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14589
14590 # Shell to use when invoking shell scripts.
14591 SHELL=$lt_SHELL
14592
14593 # Whether or not to build shared libraries.
14594 build_libtool_libs=$enable_shared
14595
14596 # Whether or not to build static libraries.
14597 build_old_libs=$enable_static
14598
14599 # Whether or not to add -lc for building shared libraries.
14600 build_libtool_need_lc=$archive_cmds_need_lc
14601
14602 # Whether or not to disallow shared libs when runtime libs are static
14603 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14604
14605 # Whether or not to optimize for fast installation.
14606 fast_install=$enable_fast_install
14607
14608 # The host system.
14609 host_alias=$host_alias
14610 host=$host
14611
14612 # An echo program that does not interpret backslashes.
14613 echo=$lt_echo
14614
14615 # The archiver.
14616 AR=$lt_AR
14617 AR_FLAGS=$lt_AR_FLAGS
14618
14619 # A C compiler.
14620 LTCC=$lt_LTCC
14621
14622 # A language-specific compiler.
14623 CC=$lt_compiler
14624
14625 # Is the compiler the GNU C compiler?
14626 with_gcc=$GCC
14627
14628 # An ERE matcher.
14629 EGREP=$lt_EGREP
14630
14631 # The linker used to build libraries.
14632 LD=$lt_LD
14633
14634 # Whether we need hard or soft links.
14635 LN_S=$lt_LN_S
14636
14637 # A BSD-compatible nm program.
14638 NM=$lt_NM
14639
14640 # A symbol stripping program
14641 STRIP=$lt_STRIP
14642
14643 # Used to examine libraries when file_magic_cmd begins "file"
14644 MAGIC_CMD=$MAGIC_CMD
14645
14646 # Used on cygwin: DLL creation program.
14647 DLLTOOL="$DLLTOOL"
14648
14649 # Used on cygwin: object dumper.
14650 OBJDUMP="$OBJDUMP"
14651
14652 # Used on cygwin: assembler.
14653 AS="$AS"
14654
14655 # The name of the directory that contains temporary libtool files.
14656 objdir=$objdir
14657
14658 # How to create reloadable object files.
14659 reload_flag=$lt_reload_flag
14660 reload_cmds=$lt_reload_cmds
14661
14662 # How to pass a linker flag through the compiler.
14663 wl=$lt_lt_prog_compiler_wl
14664
14665 # Object file suffix (normally "o").
14666 objext="$ac_objext"
14667
14668 # Old archive suffix (normally "a").
14669 libext="$libext"
14670
14671 # Shared library suffix (normally ".so").
14672 shrext_cmds='$shrext_cmds'
14673
14674 # Executable file suffix (normally "").
14675 exeext="$exeext"
14676
14677 # Additional compiler flags for building library objects.
14678 pic_flag=$lt_lt_prog_compiler_pic
14679 pic_mode=$pic_mode
14680
14681 # What is the maximum length of a command?
14682 max_cmd_len=$lt_cv_sys_max_cmd_len
14683
14684 # Does compiler simultaneously support -c and -o options?
14685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14686
14687 # Must we lock files when doing compilation ?
14688 need_locks=$lt_need_locks
14689
14690 # Do we need the lib prefix for modules?
14691 need_lib_prefix=$need_lib_prefix
14692
14693 # Do we need a version for libraries?
14694 need_version=$need_version
14695
14696 # Whether dlopen is supported.
14697 dlopen_support=$enable_dlopen
14698
14699 # Whether dlopen of programs is supported.
14700 dlopen_self=$enable_dlopen_self
14701
14702 # Whether dlopen of statically linked programs is supported.
14703 dlopen_self_static=$enable_dlopen_self_static
14704
14705 # Compiler flag to prevent dynamic linking.
14706 link_static_flag=$lt_lt_prog_compiler_static
14707
14708 # Compiler flag to turn off builtin functions.
14709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14710
14711 # Compiler flag to allow reflexive dlopens.
14712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14713
14714 # Compiler flag to generate shared objects directly from archives.
14715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14716
14717 # Compiler flag to generate thread-safe objects.
14718 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14719
14720 # Library versioning type.
14721 version_type=$version_type
14722
14723 # Format of library name prefix.
14724 libname_spec=$lt_libname_spec
14725
14726 # List of archive names.  First name is the real one, the rest are links.
14727 # The last name is the one that the linker finds with -lNAME.
14728 library_names_spec=$lt_library_names_spec
14729
14730 # The coded name of the library, if different from the real name.
14731 soname_spec=$lt_soname_spec
14732
14733 # Commands used to build and install an old-style archive.
14734 RANLIB=$lt_RANLIB
14735 old_archive_cmds=$lt_old_archive_cmds
14736 old_postinstall_cmds=$lt_old_postinstall_cmds
14737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14738
14739 # Create an old-style archive from a shared archive.
14740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14741
14742 # Create a temporary old-style archive to link instead of a shared archive.
14743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14744
14745 # Commands used to build and install a shared archive.
14746 archive_cmds=$lt_archive_cmds
14747 archive_expsym_cmds=$lt_archive_expsym_cmds
14748 postinstall_cmds=$lt_postinstall_cmds
14749 postuninstall_cmds=$lt_postuninstall_cmds
14750
14751 # Commands used to build a loadable module (assumed same as above if empty)
14752 module_cmds=$lt_module_cmds
14753 module_expsym_cmds=$lt_module_expsym_cmds
14754
14755 # Commands to strip libraries.
14756 old_striplib=$lt_old_striplib
14757 striplib=$lt_striplib
14758
14759 # Dependencies to place before the objects being linked to create a
14760 # shared library.
14761 predep_objects=$lt_predep_objects
14762
14763 # Dependencies to place after the objects being linked to create a
14764 # shared library.
14765 postdep_objects=$lt_postdep_objects
14766
14767 # Dependencies to place before the objects being linked to create a
14768 # shared library.
14769 predeps=$lt_predeps
14770
14771 # Dependencies to place after the objects being linked to create a
14772 # shared library.
14773 postdeps=$lt_postdeps
14774
14775 # The library search path used internally by the compiler when linking
14776 # a shared library.
14777 compiler_lib_search_path=$lt_compiler_lib_search_path
14778
14779 # Method to check whether dependent libraries are shared objects.
14780 deplibs_check_method=$lt_deplibs_check_method
14781
14782 # Command to use when deplibs_check_method == file_magic.
14783 file_magic_cmd=$lt_file_magic_cmd
14784
14785 # Flag that allows shared libraries with undefined symbols to be built.
14786 allow_undefined_flag=$lt_allow_undefined_flag
14787
14788 # Flag that forces no undefined symbols.
14789 no_undefined_flag=$lt_no_undefined_flag
14790
14791 # Commands used to finish a libtool library installation in a directory.
14792 finish_cmds=$lt_finish_cmds
14793
14794 # Same as above, but a single script fragment to be evaled but not shown.
14795 finish_eval=$lt_finish_eval
14796
14797 # Take the output of nm and produce a listing of raw symbols and C names.
14798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14799
14800 # Transform the output of nm in a proper C declaration
14801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14802
14803 # Transform the output of nm in a C name address pair
14804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14805
14806 # This is the shared library runtime path variable.
14807 runpath_var=$runpath_var
14808
14809 # This is the shared library path variable.
14810 shlibpath_var=$shlibpath_var
14811
14812 # Is shlibpath searched before the hard-coded library search path?
14813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14814
14815 # How to hardcode a shared library path into an executable.
14816 hardcode_action=$hardcode_action
14817
14818 # Whether we should hardcode library paths into libraries.
14819 hardcode_into_libs=$hardcode_into_libs
14820
14821 # Flag to hardcode \$libdir into a binary during linking.
14822 # This must work even if \$libdir does not exist.
14823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14824
14825 # If ld is used when linking, flag to hardcode \$libdir into
14826 # a binary during linking. This must work even if \$libdir does
14827 # not exist.
14828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14829
14830 # Whether we need a single -rpath flag with a separated argument.
14831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14832
14833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14834 # resulting binary.
14835 hardcode_direct=$hardcode_direct
14836
14837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14838 # resulting binary.
14839 hardcode_minus_L=$hardcode_minus_L
14840
14841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14842 # the resulting binary.
14843 hardcode_shlibpath_var=$hardcode_shlibpath_var
14844
14845 # Set to yes if building a shared library automatically hardcodes DIR into the library
14846 # and all subsequent libraries and executables linked against it.
14847 hardcode_automatic=$hardcode_automatic
14848
14849 # Variables whose values should be saved in libtool wrapper scripts and
14850 # restored at relink time.
14851 variables_saved_for_relink="$variables_saved_for_relink"
14852
14853 # Whether libtool must link a program against all its dependency libraries.
14854 link_all_deplibs=$link_all_deplibs
14855
14856 # Compile-time system search path for libraries
14857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14858
14859 # Run-time system search path for libraries
14860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14861
14862 # Fix the shell variable \$srcfile for the compiler.
14863 fix_srcfile_path="$fix_srcfile_path"
14864
14865 # Set to yes if exported symbols are required.
14866 always_export_symbols=$always_export_symbols
14867
14868 # The commands to list exported symbols.
14869 export_symbols_cmds=$lt_export_symbols_cmds
14870
14871 # The commands to extract the exported symbol list from a shared archive.
14872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14873
14874 # Symbols that should not be listed in the preloaded symbols.
14875 exclude_expsyms=$lt_exclude_expsyms
14876
14877 # Symbols that must always be exported.
14878 include_expsyms=$lt_include_expsyms
14879
14880 # ### END LIBTOOL CONFIG
14881
14882 __EOF__
14883
14884
14885   case $host_os in
14886   aix3*)
14887     cat <<\EOF >> "$cfgfile"
14888
14889 # AIX sometimes has problems with the GCC collect2 program.  For some
14890 # reason, if we set the COLLECT_NAMES environment variable, the problems
14891 # vanish in a puff of smoke.
14892 if test "X${COLLECT_NAMES+set}" != Xset; then
14893   COLLECT_NAMES=
14894   export COLLECT_NAMES
14895 fi
14896 EOF
14897     ;;
14898   esac
14899
14900   # We use sed instead of cat because bash on DJGPP gets confused if
14901   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14902   # text mode, it properly converts lines to CR/LF.  This bash problem
14903   # is reportedly fixed, but why not run on old versions too?
14904   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14905
14906   mv -f "$cfgfile" "$ofile" || \
14907     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14908   chmod +x "$ofile"
14909
14910 else
14911   # If there is no Makefile yet, we rely on a make rule to execute
14912   # `config.status --recheck' to rerun these tests and create the
14913   # libtool script then.
14914   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14915   if test -f "$ltmain_in"; then
14916     test -f Makefile && make "$ltmain"
14917   fi
14918 fi
14919
14920
14921 ac_ext=c
14922 ac_cpp='$CPP $CPPFLAGS'
14923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14926
14927 CC="$lt_save_CC"
14928
14929
14930 # Check whether --with-tags or --without-tags was given.
14931 if test "${with_tags+set}" = set; then
14932   withval="$with_tags"
14933   tagnames="$withval"
14934 fi;
14935
14936 if test -f "$ltmain" && test -n "$tagnames"; then
14937   if test ! -f "${ofile}"; then
14938     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14939 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14940   fi
14941
14942   if test -z "$LTCC"; then
14943     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14944     if test -z "$LTCC"; then
14945       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14946 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14947     else
14948       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14949 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14950     fi
14951   fi
14952
14953   # Extract list of available tagged configurations in $ofile.
14954   # Note that this assumes the entire list is on one line.
14955   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14956
14957   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14958   for tagname in $tagnames; do
14959     IFS="$lt_save_ifs"
14960     # Check whether tagname contains only valid characters
14961     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14962     "") ;;
14963     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14964 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14965    { (exit 1); exit 1; }; }
14966         ;;
14967     esac
14968
14969     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14970     then
14971       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14972 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14973    { (exit 1); exit 1; }; }
14974     fi
14975
14976     # Update the list of available tags.
14977     if test -n "$tagname"; then
14978       echo appending configuration tag "$tagname" to $ofile
14979
14980       case $tagname in
14981       CXX)
14982         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14983             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14984             (test "X$CXX" != "Xg++"))) ; then
14985           ac_ext=cc
14986 ac_cpp='$CXXCPP $CPPFLAGS'
14987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14990
14991
14992
14993
14994 archive_cmds_need_lc_CXX=no
14995 allow_undefined_flag_CXX=
14996 always_export_symbols_CXX=no
14997 archive_expsym_cmds_CXX=
14998 export_dynamic_flag_spec_CXX=
14999 hardcode_direct_CXX=no
15000 hardcode_libdir_flag_spec_CXX=
15001 hardcode_libdir_flag_spec_ld_CXX=
15002 hardcode_libdir_separator_CXX=
15003 hardcode_minus_L_CXX=no
15004 hardcode_automatic_CXX=no
15005 module_cmds_CXX=
15006 module_expsym_cmds_CXX=
15007 link_all_deplibs_CXX=unknown
15008 old_archive_cmds_CXX=$old_archive_cmds
15009 no_undefined_flag_CXX=
15010 whole_archive_flag_spec_CXX=
15011 enable_shared_with_static_runtimes_CXX=no
15012
15013 # Dependencies to place before and after the object being linked:
15014 predep_objects_CXX=
15015 postdep_objects_CXX=
15016 predeps_CXX=
15017 postdeps_CXX=
15018 compiler_lib_search_path_CXX=
15019
15020 # Source file extension for C++ test sources.
15021 ac_ext=cc
15022
15023 # Object file extension for compiled C++ test sources.
15024 objext=o
15025 objext_CXX=$objext
15026
15027 # Code to be used in simple compile tests
15028 lt_simple_compile_test_code="int some_variable = 0;\n"
15029
15030 # Code to be used in simple link tests
15031 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15032
15033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15034
15035 # If no C compiler was specified, use CC.
15036 LTCC=${LTCC-"$CC"}
15037
15038 # Allow CC to be a program name with arguments.
15039 compiler=$CC
15040
15041
15042 # Allow CC to be a program name with arguments.
15043 lt_save_CC=$CC
15044 lt_save_LD=$LD
15045 lt_save_GCC=$GCC
15046 GCC=$GXX
15047 lt_save_with_gnu_ld=$with_gnu_ld
15048 lt_save_path_LD=$lt_cv_path_LD
15049 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15050   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15051 else
15052   unset lt_cv_prog_gnu_ld
15053 fi
15054 if test -n "${lt_cv_path_LDCXX+set}"; then
15055   lt_cv_path_LD=$lt_cv_path_LDCXX
15056 else
15057   unset lt_cv_path_LD
15058 fi
15059 test -z "${LDCXX+set}" || LD=$LDCXX
15060 CC=${CXX-"c++"}
15061 compiler=$CC
15062 compiler_CXX=$CC
15063 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15064
15065 # We don't want -fno-exception wen compiling C++ code, so set the
15066 # no_builtin_flag separately
15067 if test "$GXX" = yes; then
15068   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15069 else
15070   lt_prog_compiler_no_builtin_flag_CXX=
15071 fi
15072
15073 if test "$GXX" = yes; then
15074   # Set up default GNU C++ configuration
15075
15076
15077 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15078 if test "${with_gnu_ld+set}" = set; then
15079   withval="$with_gnu_ld"
15080   test "$withval" = no || with_gnu_ld=yes
15081 else
15082   with_gnu_ld=no
15083 fi;
15084 ac_prog=ld
15085 if test "$GCC" = yes; then
15086   # Check if gcc -print-prog-name=ld gives a path.
15087   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15088 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15089   case $host in
15090   *-*-mingw*)
15091     # gcc leaves a trailing carriage return which upsets mingw
15092     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15093   *)
15094     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15095   esac
15096   case $ac_prog in
15097     # Accept absolute paths.
15098     [\\/]* | ?:[\\/]*)
15099       re_direlt='/[^/][^/]*/\.\./'
15100       # Canonicalize the pathname of ld
15101       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15102       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15103         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15104       done
15105       test -z "$LD" && LD="$ac_prog"
15106       ;;
15107   "")
15108     # If it fails, then pretend we aren't using GCC.
15109     ac_prog=ld
15110     ;;
15111   *)
15112     # If it is relative, then search for the first ld in PATH.
15113     with_gnu_ld=unknown
15114     ;;
15115   esac
15116 elif test "$with_gnu_ld" = yes; then
15117   echo "$as_me:$LINENO: checking for GNU ld" >&5
15118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15119 else
15120   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15122 fi
15123 if test "${lt_cv_path_LD+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126   if test -z "$LD"; then
15127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15128   for ac_dir in $PATH; do
15129     IFS="$lt_save_ifs"
15130     test -z "$ac_dir" && ac_dir=.
15131     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15132       lt_cv_path_LD="$ac_dir/$ac_prog"
15133       # Check to see if the program is GNU ld.  I'd rather use --version,
15134       # but apparently some GNU ld's only accept -v.
15135       # Break only if it was the GNU/non-GNU ld that we prefer.
15136       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15137       *GNU* | *'with BFD'*)
15138         test "$with_gnu_ld" != no && break
15139         ;;
15140       *)
15141         test "$with_gnu_ld" != yes && break
15142         ;;
15143       esac
15144     fi
15145   done
15146   IFS="$lt_save_ifs"
15147 else
15148   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15149 fi
15150 fi
15151
15152 LD="$lt_cv_path_LD"
15153 if test -n "$LD"; then
15154   echo "$as_me:$LINENO: result: $LD" >&5
15155 echo "${ECHO_T}$LD" >&6
15156 else
15157   echo "$as_me:$LINENO: result: no" >&5
15158 echo "${ECHO_T}no" >&6
15159 fi
15160 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15161 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15162    { (exit 1); exit 1; }; }
15163 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15164 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15165 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15166   echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15169 case `$LD -v 2>&1 </dev/null` in
15170 *GNU* | *'with BFD'*)
15171   lt_cv_prog_gnu_ld=yes
15172   ;;
15173 *)
15174   lt_cv_prog_gnu_ld=no
15175   ;;
15176 esac
15177 fi
15178 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15179 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15180 with_gnu_ld=$lt_cv_prog_gnu_ld
15181
15182
15183
15184   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15185   # archiving commands below assume that GNU ld is being used.
15186   if test "$with_gnu_ld" = yes; then
15187     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15188     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'
15189
15190     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15191     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15192
15193     # If archive_cmds runs LD, not CC, wlarc should be empty
15194     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15195     #     investigate it a little bit more. (MM)
15196     wlarc='${wl}'
15197
15198     # ancient GNU ld didn't support --whole-archive et. al.
15199     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15200         grep 'no-whole-archive' > /dev/null; then
15201       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15202     else
15203       whole_archive_flag_spec_CXX=
15204     fi
15205   else
15206     with_gnu_ld=no
15207     wlarc=
15208
15209     # A generic and very simple default shared library creation
15210     # command for GNU C++ for the case where it uses the native
15211     # linker, instead of GNU ld.  If possible, this setting should
15212     # overridden to take advantage of the native linker features on
15213     # the platform it is being used on.
15214     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15215   fi
15216
15217   # Commands to make compiler produce verbose output that lists
15218   # what "hidden" libraries, object files and flags are used when
15219   # linking a shared library.
15220   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15221
15222 else
15223   GXX=no
15224   with_gnu_ld=no
15225   wlarc=
15226 fi
15227
15228 # PORTME: fill in a description of your system's C++ link characteristics
15229 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15231 ld_shlibs_CXX=yes
15232 case $host_os in
15233   aix3*)
15234     # FIXME: insert proper C++ library support
15235     ld_shlibs_CXX=no
15236     ;;
15237   aix4* | aix5*)
15238     if test "$host_cpu" = ia64; then
15239       # On IA64, the linker does run time linking by default, so we don't
15240       # have to do anything special.
15241       aix_use_runtimelinking=no
15242       exp_sym_flag='-Bexport'
15243       no_entry_flag=""
15244     else
15245       aix_use_runtimelinking=no
15246
15247       # Test if we are trying to use run time linking or normal
15248       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15249       # need to do runtime linking.
15250       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15251         for ld_flag in $LDFLAGS; do
15252           case $ld_flag in
15253           *-brtl*)
15254             aix_use_runtimelinking=yes
15255             break
15256             ;;
15257           esac
15258         done
15259       esac
15260
15261       exp_sym_flag='-bexport'
15262       no_entry_flag='-bnoentry'
15263     fi
15264
15265     # When large executables or shared objects are built, AIX ld can
15266     # have problems creating the table of contents.  If linking a library
15267     # or program results in "error TOC overflow" add -mminimal-toc to
15268     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15269     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15270
15271     archive_cmds_CXX=''
15272     hardcode_direct_CXX=yes
15273     hardcode_libdir_separator_CXX=':'
15274     link_all_deplibs_CXX=yes
15275
15276     if test "$GXX" = yes; then
15277       case $host_os in aix4.012|aix4.012.*)
15278       # We only want to do this on AIX 4.2 and lower, the check
15279       # below for broken collect2 doesn't work under 4.3+
15280         collect2name=`${CC} -print-prog-name=collect2`
15281         if test -f "$collect2name" && \
15282            strings "$collect2name" | grep resolve_lib_name >/dev/null
15283         then
15284           # We have reworked collect2
15285           hardcode_direct_CXX=yes
15286         else
15287           # We have old collect2
15288           hardcode_direct_CXX=unsupported
15289           # It fails to find uninstalled libraries when the uninstalled
15290           # path is not listed in the libpath.  Setting hardcode_minus_L
15291           # to unsupported forces relinking
15292           hardcode_minus_L_CXX=yes
15293           hardcode_libdir_flag_spec_CXX='-L$libdir'
15294           hardcode_libdir_separator_CXX=
15295         fi
15296       esac
15297       shared_flag='-shared'
15298     else
15299       # not using gcc
15300       if test "$host_cpu" = ia64; then
15301         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15302         # chokes on -Wl,-G. The following line is correct:
15303         shared_flag='-G'
15304       else
15305         if test "$aix_use_runtimelinking" = yes; then
15306           shared_flag='${wl}-G'
15307         else
15308           shared_flag='${wl}-bM:SRE'
15309         fi
15310       fi
15311     fi
15312
15313     # It seems that -bexpall does not export symbols beginning with
15314     # underscore (_), so it is better to generate a list of symbols to export.
15315     always_export_symbols_CXX=yes
15316     if test "$aix_use_runtimelinking" = yes; then
15317       # Warning - without using the other runtime loading flags (-brtl),
15318       # -berok will link without error, but may produce a broken library.
15319       allow_undefined_flag_CXX='-berok'
15320       # Determine the default libpath from the value encoded in an empty executable.
15321       cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h.  */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h.  */
15327
15328 int
15329 main ()
15330 {
15331
15332   ;
15333   return 0;
15334 }
15335 _ACEOF
15336 rm -f conftest.$ac_objext conftest$ac_exeext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338   (eval $ac_link) 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } &&
15345          { ac_try='test -z "$ac_cxx_werror_flag"
15346                          || test ! -s conftest.err'
15347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348   (eval $ac_try) 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); }; } &&
15352          { ac_try='test -s conftest$ac_exeext'
15353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354   (eval $ac_try) 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; }; then
15358
15359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15360 }'`
15361 # Check for a 64-bit object if we didn't find anything.
15362 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; }
15363 }'`; fi
15364 else
15365   echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15367
15368 fi
15369 rm -f conftest.err conftest.$ac_objext \
15370       conftest$ac_exeext conftest.$ac_ext
15371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15372
15373       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15374
15375       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"
15376      else
15377       if test "$host_cpu" = ia64; then
15378         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15379         allow_undefined_flag_CXX="-z nodefs"
15380         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"
15381       else
15382         # Determine the default libpath from the value encoded in an empty executable.
15383         cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389
15390 int
15391 main ()
15392 {
15393
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400   (eval $ac_link) 2>conftest.er1
15401   ac_status=$?
15402   grep -v '^ *+' conftest.er1 >conftest.err
15403   rm -f conftest.er1
15404   cat conftest.err >&5
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); } &&
15407          { ac_try='test -z "$ac_cxx_werror_flag"
15408                          || test ! -s conftest.err'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; } &&
15414          { ac_try='test -s conftest$ac_exeext'
15415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416   (eval $ac_try) 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; }; then
15420
15421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15422 }'`
15423 # Check for a 64-bit object if we didn't find anything.
15424 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; }
15425 }'`; fi
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 fi
15431 rm -f conftest.err conftest.$ac_objext \
15432       conftest$ac_exeext conftest.$ac_ext
15433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15434
15435         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15436         # Warning - without using the other run time loading flags,
15437         # -berok will link without error, but may produce a broken library.
15438         no_undefined_flag_CXX=' ${wl}-bernotok'
15439         allow_undefined_flag_CXX=' ${wl}-berok'
15440         # -bexpall does not export symbols beginning with underscore (_)
15441         always_export_symbols_CXX=yes
15442         # Exported symbols can be pulled into shared objects from archives
15443         whole_archive_flag_spec_CXX=' '
15444         archive_cmds_need_lc_CXX=yes
15445         # This is similar to how AIX traditionally builds it's shared libraries.
15446         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'
15447       fi
15448     fi
15449     ;;
15450   chorus*)
15451     case $cc_basename in
15452       *)
15453         # FIXME: insert proper C++ library support
15454         ld_shlibs_CXX=no
15455         ;;
15456     esac
15457     ;;
15458
15459
15460   cygwin* | mingw* | pw32*)
15461     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15462     # as there is no search path for DLLs.
15463     hardcode_libdir_flag_spec_CXX='-L$libdir'
15464     allow_undefined_flag_CXX=unsupported
15465     always_export_symbols_CXX=no
15466     enable_shared_with_static_runtimes_CXX=yes
15467
15468     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15469       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'
15470       # If the export-symbols file already is a .def file (1st line
15471       # is EXPORTS), use it as is; otherwise, prepend...
15472       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473         cp $export_symbols $output_objdir/$soname.def;
15474       else
15475         echo EXPORTS > $output_objdir/$soname.def;
15476         cat $export_symbols >> $output_objdir/$soname.def;
15477       fi~
15478       $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'
15479     else
15480       ld_shlibs_CXX=no
15481     fi
15482   ;;
15483       darwin* | rhapsody*)
15484         case "$host_os" in
15485         rhapsody* | darwin1.[012])
15486          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15487          ;;
15488        *) # Darwin 1.3 on
15489          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15490            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15491          else
15492            case ${MACOSX_DEPLOYMENT_TARGET} in
15493              10.[012])
15494                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15495                ;;
15496              10.*)
15497                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15498                ;;
15499            esac
15500          fi
15501          ;;
15502         esac
15503       archive_cmds_need_lc_CXX=no
15504       hardcode_direct_CXX=no
15505       hardcode_automatic_CXX=yes
15506       hardcode_shlibpath_var_CXX=unsupported
15507       whole_archive_flag_spec_CXX=''
15508       link_all_deplibs_CXX=yes
15509
15510     if test "$GXX" = yes ; then
15511       lt_int_apple_cc_single_mod=no
15512       output_verbose_link_cmd='echo'
15513       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15514        lt_int_apple_cc_single_mod=yes
15515       fi
15516       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15517        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15518       else
15519           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'
15520         fi
15521         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15522         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15523           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15524             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}'
15525           else
15526             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}'
15527           fi
15528             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}'
15529       else
15530       case "$cc_basename" in
15531         xlc*)
15532          output_verbose_link_cmd='echo'
15533           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'
15534           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536           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}'
15537           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}'
15538           ;;
15539        *)
15540          ld_shlibs_CXX=no
15541           ;;
15542       esac
15543       fi
15544         ;;
15545
15546   dgux*)
15547     case $cc_basename in
15548       ec++)
15549         # FIXME: insert proper C++ library support
15550         ld_shlibs_CXX=no
15551         ;;
15552       ghcx)
15553         # Green Hills C++ Compiler
15554         # FIXME: insert proper C++ library support
15555         ld_shlibs_CXX=no
15556         ;;
15557       *)
15558         # FIXME: insert proper C++ library support
15559         ld_shlibs_CXX=no
15560         ;;
15561     esac
15562     ;;
15563   freebsd12*)
15564     # C++ shared libraries reported to be fairly broken before switch to ELF
15565     ld_shlibs_CXX=no
15566     ;;
15567   freebsd-elf*)
15568     archive_cmds_need_lc_CXX=no
15569     ;;
15570   freebsd* | kfreebsd*-gnu)
15571     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15572     # conventions
15573     ld_shlibs_CXX=yes
15574     ;;
15575   gnu*)
15576     ;;
15577   hpux9*)
15578     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15579     hardcode_libdir_separator_CXX=:
15580     export_dynamic_flag_spec_CXX='${wl}-E'
15581     hardcode_direct_CXX=yes
15582     hardcode_minus_L_CXX=yes # Not in the search PATH,
15583                                 # but as the default
15584                                 # location of the library.
15585
15586     case $cc_basename in
15587     CC)
15588       # FIXME: insert proper C++ library support
15589       ld_shlibs_CXX=no
15590       ;;
15591     aCC)
15592       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'
15593       # Commands to make compiler produce verbose output that lists
15594       # what "hidden" libraries, object files and flags are used when
15595       # linking a shared library.
15596       #
15597       # There doesn't appear to be a way to prevent this compiler from
15598       # explicitly linking system object files so we need to strip them
15599       # from the output so that they don't get included in the library
15600       # dependencies.
15601       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'
15602       ;;
15603     *)
15604       if test "$GXX" = yes; then
15605         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'
15606       else
15607         # FIXME: insert proper C++ library support
15608         ld_shlibs_CXX=no
15609       fi
15610       ;;
15611     esac
15612     ;;
15613   hpux10*|hpux11*)
15614     if test $with_gnu_ld = no; then
15615       case "$host_cpu" in
15616       hppa*64*)
15617         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15618         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15619         hardcode_libdir_separator_CXX=:
15620         ;;
15621       ia64*)
15622         hardcode_libdir_flag_spec_CXX='-L$libdir'
15623         ;;
15624       *)
15625         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15626         hardcode_libdir_separator_CXX=:
15627         export_dynamic_flag_spec_CXX='${wl}-E'
15628         ;;
15629       esac
15630     fi
15631     case "$host_cpu" in
15632     hppa*64*)
15633       hardcode_direct_CXX=no
15634       hardcode_shlibpath_var_CXX=no
15635       ;;
15636     ia64*)
15637       hardcode_direct_CXX=no
15638       hardcode_shlibpath_var_CXX=no
15639       hardcode_minus_L_CXX=yes # Not in the search PATH,
15640                                               # but as the default
15641                                               # location of the library.
15642       ;;
15643     *)
15644       hardcode_direct_CXX=yes
15645       hardcode_minus_L_CXX=yes # Not in the search PATH,
15646                                               # but as the default
15647                                               # location of the library.
15648       ;;
15649     esac
15650
15651     case $cc_basename in
15652       CC)
15653         # FIXME: insert proper C++ library support
15654         ld_shlibs_CXX=no
15655         ;;
15656       aCC)
15657         case "$host_cpu" in
15658         hppa*64*|ia64*)
15659           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15660           ;;
15661         *)
15662           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15663           ;;
15664         esac
15665         # Commands to make compiler produce verbose output that lists
15666         # what "hidden" libraries, object files and flags are used when
15667         # linking a shared library.
15668         #
15669         # There doesn't appear to be a way to prevent this compiler from
15670         # explicitly linking system object files so we need to strip them
15671         # from the output so that they don't get included in the library
15672         # dependencies.
15673         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'
15674         ;;
15675       *)
15676         if test "$GXX" = yes; then
15677           if test $with_gnu_ld = no; then
15678             case "$host_cpu" in
15679             ia64*|hppa*64*)
15680               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15681               ;;
15682             *)
15683               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'
15684               ;;
15685             esac
15686           fi
15687         else
15688           # FIXME: insert proper C++ library support
15689           ld_shlibs_CXX=no
15690         fi
15691         ;;
15692     esac
15693     ;;
15694   irix5* | irix6*)
15695     case $cc_basename in
15696       CC)
15697         # SGI C++
15698         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'
15699
15700         # Archives containing C++ object files must be created using
15701         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15702         # necessary to make sure instantiated templates are included
15703         # in the archive.
15704         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15705         ;;
15706       *)
15707         if test "$GXX" = yes; then
15708           if test "$with_gnu_ld" = no; then
15709             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'
15710           else
15711             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'
15712           fi
15713         fi
15714         link_all_deplibs_CXX=yes
15715         ;;
15716     esac
15717     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15718     hardcode_libdir_separator_CXX=:
15719     ;;
15720   linux*)
15721     case $cc_basename in
15722       KCC)
15723         # Kuck and Associates, Inc. (KAI) C++ Compiler
15724
15725         # KCC will only create a shared library if the output file
15726         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15727         # to its proper name (with version) after linking.
15728         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'
15729         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'
15730         # Commands to make compiler produce verbose output that lists
15731         # what "hidden" libraries, object files and flags are used when
15732         # linking a shared library.
15733         #
15734         # There doesn't appear to be a way to prevent this compiler from
15735         # explicitly linking system object files so we need to strip them
15736         # from the output so that they don't get included in the library
15737         # dependencies.
15738         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'
15739
15740         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15741         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15742
15743         # Archives containing C++ object files must be created using
15744         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15745         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15746         ;;
15747       icpc)
15748         # Intel C++
15749         with_gnu_ld=yes
15750         # version 8.0 and above of icpc choke on multiply defined symbols
15751         # if we add $predep_objects and $postdep_objects, however 7.1 and
15752         # earlier do not add the objects themselves.
15753         case `$CC -V 2>&1` in
15754         *"Version 7."*)
15755           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15756           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'
15757           ;;
15758         *)  # Version 8.0 or newer
15759           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15761           ;;
15762         esac
15763         archive_cmds_need_lc_CXX=no
15764         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15765         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15766         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15767         ;;
15768       cxx)
15769         # Compaq C++
15770         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771         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'
15772
15773         runpath_var=LD_RUN_PATH
15774         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15775         hardcode_libdir_separator_CXX=:
15776
15777         # Commands to make compiler produce verbose output that lists
15778         # what "hidden" libraries, object files and flags are used when
15779         # linking a shared library.
15780         #
15781         # There doesn't appear to be a way to prevent this compiler from
15782         # explicitly linking system object files so we need to strip them
15783         # from the output so that they don't get included in the library
15784         # dependencies.
15785         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'
15786         ;;
15787     esac
15788     ;;
15789   lynxos*)
15790     # FIXME: insert proper C++ library support
15791     ld_shlibs_CXX=no
15792     ;;
15793   m88k*)
15794     # FIXME: insert proper C++ library support
15795     ld_shlibs_CXX=no
15796     ;;
15797   mvs*)
15798     case $cc_basename in
15799       cxx)
15800         # FIXME: insert proper C++ library support
15801         ld_shlibs_CXX=no
15802         ;;
15803       *)
15804         # FIXME: insert proper C++ library support
15805         ld_shlibs_CXX=no
15806         ;;
15807     esac
15808     ;;
15809   netbsd*)
15810     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15811       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15812       wlarc=
15813       hardcode_libdir_flag_spec_CXX='-R$libdir'
15814       hardcode_direct_CXX=yes
15815       hardcode_shlibpath_var_CXX=no
15816     fi
15817     # Workaround some broken pre-1.5 toolchains
15818     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15819     ;;
15820   openbsd2*)
15821     # C++ shared libraries are fairly broken
15822     ld_shlibs_CXX=no
15823     ;;
15824   openbsd*)
15825     hardcode_direct_CXX=yes
15826     hardcode_shlibpath_var_CXX=no
15827     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15828     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15829     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15830       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15831       export_dynamic_flag_spec_CXX='${wl}-E'
15832       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15833     fi
15834     output_verbose_link_cmd='echo'
15835     ;;
15836   osf3*)
15837     case $cc_basename in
15838       KCC)
15839         # Kuck and Associates, Inc. (KAI) C++ Compiler
15840
15841         # KCC will only create a shared library if the output file
15842         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15843         # to its proper name (with version) after linking.
15844         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'
15845
15846         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15847         hardcode_libdir_separator_CXX=:
15848
15849         # Archives containing C++ object files must be created using
15850         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15851         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15852
15853         ;;
15854       RCC)
15855         # Rational C++ 2.4.1
15856         # FIXME: insert proper C++ library support
15857         ld_shlibs_CXX=no
15858         ;;
15859       cxx)
15860         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15861         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'
15862
15863         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15864         hardcode_libdir_separator_CXX=:
15865
15866         # Commands to make compiler produce verbose output that lists
15867         # what "hidden" libraries, object files and flags are used when
15868         # linking a shared library.
15869         #
15870         # There doesn't appear to be a way to prevent this compiler from
15871         # explicitly linking system object files so we need to strip them
15872         # from the output so that they don't get included in the library
15873         # dependencies.
15874         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'
15875         ;;
15876       *)
15877         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15878           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15879           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'
15880
15881           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15882           hardcode_libdir_separator_CXX=:
15883
15884           # Commands to make compiler produce verbose output that lists
15885           # what "hidden" libraries, object files and flags are used when
15886           # linking a shared library.
15887           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15888
15889         else
15890           # FIXME: insert proper C++ library support
15891           ld_shlibs_CXX=no
15892         fi
15893         ;;
15894     esac
15895     ;;
15896   osf4* | osf5*)
15897     case $cc_basename in
15898       KCC)
15899         # Kuck and Associates, Inc. (KAI) C++ Compiler
15900
15901         # KCC will only create a shared library if the output file
15902         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15903         # to its proper name (with version) after linking.
15904         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'
15905
15906         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15907         hardcode_libdir_separator_CXX=:
15908
15909         # Archives containing C++ object files must be created using
15910         # the KAI C++ compiler.
15911         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15912         ;;
15913       RCC)
15914         # Rational C++ 2.4.1
15915         # FIXME: insert proper C++ library support
15916         ld_shlibs_CXX=no
15917         ;;
15918       cxx)
15919         allow_undefined_flag_CXX=' -expect_unresolved \*'
15920         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'
15921         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15922           echo "-hidden">> $lib.exp~
15923           $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~
15924           $rm $lib.exp'
15925
15926         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15927         hardcode_libdir_separator_CXX=:
15928
15929         # Commands to make compiler produce verbose output that lists
15930         # what "hidden" libraries, object files and flags are used when
15931         # linking a shared library.
15932         #
15933         # There doesn't appear to be a way to prevent this compiler from
15934         # explicitly linking system object files so we need to strip them
15935         # from the output so that they don't get included in the library
15936         # dependencies.
15937         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'
15938         ;;
15939       *)
15940         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15941           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15942          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'
15943
15944           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15945           hardcode_libdir_separator_CXX=:
15946
15947           # Commands to make compiler produce verbose output that lists
15948           # what "hidden" libraries, object files and flags are used when
15949           # linking a shared library.
15950           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15951
15952         else
15953           # FIXME: insert proper C++ library support
15954           ld_shlibs_CXX=no
15955         fi
15956         ;;
15957     esac
15958     ;;
15959   psos*)
15960     # FIXME: insert proper C++ library support
15961     ld_shlibs_CXX=no
15962     ;;
15963   sco*)
15964     archive_cmds_need_lc_CXX=no
15965     case $cc_basename in
15966       CC)
15967         # FIXME: insert proper C++ library support
15968         ld_shlibs_CXX=no
15969         ;;
15970       *)
15971         # FIXME: insert proper C++ library support
15972         ld_shlibs_CXX=no
15973         ;;
15974     esac
15975     ;;
15976   sunos4*)
15977     case $cc_basename in
15978       CC)
15979         # Sun C++ 4.x
15980         # FIXME: insert proper C++ library support
15981         ld_shlibs_CXX=no
15982         ;;
15983       lcc)
15984         # Lucid
15985         # FIXME: insert proper C++ library support
15986         ld_shlibs_CXX=no
15987         ;;
15988       *)
15989         # FIXME: insert proper C++ library support
15990         ld_shlibs_CXX=no
15991         ;;
15992     esac
15993     ;;
15994   solaris*)
15995     case $cc_basename in
15996       CC)
15997         # Sun C++ 4.2, 5.x and Centerline C++
15998         no_undefined_flag_CXX=' -zdefs'
15999         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16000         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16001         $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'
16002
16003         hardcode_libdir_flag_spec_CXX='-R$libdir'
16004         hardcode_shlibpath_var_CXX=no
16005         case $host_os in
16006           solaris2.0-5 | solaris2.0-5.*) ;;
16007           *)
16008             # The C++ compiler is used as linker so we must use $wl
16009             # flag to pass the commands to the underlying system
16010             # linker.
16011             # Supported since Solaris 2.6 (maybe 2.5.1?)
16012             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16013             ;;
16014         esac
16015         link_all_deplibs_CXX=yes
16016
16017         # Commands to make compiler produce verbose output that lists
16018         # what "hidden" libraries, object files and flags are used when
16019         # linking a shared library.
16020         #
16021         # There doesn't appear to be a way to prevent this compiler from
16022         # explicitly linking system object files so we need to strip them
16023         # from the output so that they don't get included in the library
16024         # dependencies.
16025         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'
16026
16027         # Archives containing C++ object files must be created using
16028         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16029         # necessary to make sure instantiated templates are included
16030         # in the archive.
16031         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16032         ;;
16033       gcx)
16034         # Green Hills C++ Compiler
16035         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16036
16037         # The C++ compiler must be used to create the archive.
16038         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16039         ;;
16040       *)
16041         # GNU C++ compiler with Solaris linker
16042         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16043           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16044           if $CC --version | grep -v '^2\.7' > /dev/null; then
16045             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16046             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16048
16049             # Commands to make compiler produce verbose output that lists
16050             # what "hidden" libraries, object files and flags are used when
16051             # linking a shared library.
16052             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16053           else
16054             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16055             # platform.
16056             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16057             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16058                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16059
16060             # Commands to make compiler produce verbose output that lists
16061             # what "hidden" libraries, object files and flags are used when
16062             # linking a shared library.
16063             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16064           fi
16065
16066           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16067         fi
16068         ;;
16069     esac
16070     ;;
16071   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16072     archive_cmds_need_lc_CXX=no
16073     ;;
16074   tandem*)
16075     case $cc_basename in
16076       NCC)
16077         # NonStop-UX NCC 3.20
16078         # FIXME: insert proper C++ library support
16079         ld_shlibs_CXX=no
16080         ;;
16081       *)
16082         # FIXME: insert proper C++ library support
16083         ld_shlibs_CXX=no
16084         ;;
16085     esac
16086     ;;
16087   vxworks*)
16088     # FIXME: insert proper C++ library support
16089     ld_shlibs_CXX=no
16090     ;;
16091   *)
16092     # FIXME: insert proper C++ library support
16093     ld_shlibs_CXX=no
16094     ;;
16095 esac
16096 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16097 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16098 test "$ld_shlibs_CXX" = no && can_build_shared=no
16099
16100 GCC_CXX="$GXX"
16101 LD_CXX="$LD"
16102
16103
16104 cat > conftest.$ac_ext <<EOF
16105 class Foo
16106 {
16107 public:
16108   Foo (void) { a = 0; }
16109 private:
16110   int a;
16111 };
16112 EOF
16113
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115   (eval $ac_compile) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; then
16119   # Parse the compiler output and extract the necessary
16120   # objects, libraries and library flags.
16121
16122   # Sentinel used to keep track of whether or not we are before
16123   # the conftest object file.
16124   pre_test_object_deps_done=no
16125
16126   # The `*' in the case matches for architectures that use `case' in
16127   # $output_verbose_cmd can trigger glob expansion during the loop
16128   # eval without this substitution.
16129   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16130
16131   for p in `eval $output_verbose_link_cmd`; do
16132     case $p in
16133
16134     -L* | -R* | -l*)
16135        # Some compilers place space between "-{L,R}" and the path.
16136        # Remove the space.
16137        if test $p = "-L" \
16138           || test $p = "-R"; then
16139          prev=$p
16140          continue
16141        else
16142          prev=
16143        fi
16144
16145        if test "$pre_test_object_deps_done" = no; then
16146          case $p in
16147          -L* | -R*)
16148            # Internal compiler library paths should come after those
16149            # provided the user.  The postdeps already come after the
16150            # user supplied libs so there is no need to process them.
16151            if test -z "$compiler_lib_search_path_CXX"; then
16152              compiler_lib_search_path_CXX="${prev}${p}"
16153            else
16154              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16155            fi
16156            ;;
16157          # The "-l" case would never come before the object being
16158          # linked, so don't bother handling this case.
16159          esac
16160        else
16161          if test -z "$postdeps_CXX"; then
16162            postdeps_CXX="${prev}${p}"
16163          else
16164            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16165          fi
16166        fi
16167        ;;
16168
16169     *.$objext)
16170        # This assumes that the test object file only shows up
16171        # once in the compiler output.
16172        if test "$p" = "conftest.$objext"; then
16173          pre_test_object_deps_done=yes
16174          continue
16175        fi
16176
16177        if test "$pre_test_object_deps_done" = no; then
16178          if test -z "$predep_objects_CXX"; then
16179            predep_objects_CXX="$p"
16180          else
16181            predep_objects_CXX="$predep_objects_CXX $p"
16182          fi
16183        else
16184          if test -z "$postdep_objects_CXX"; then
16185            postdep_objects_CXX="$p"
16186          else
16187            postdep_objects_CXX="$postdep_objects_CXX $p"
16188          fi
16189        fi
16190        ;;
16191
16192     *) ;; # Ignore the rest.
16193
16194     esac
16195   done
16196
16197   # Clean up.
16198   rm -f a.out a.exe
16199 else
16200   echo "libtool.m4: error: problem compiling CXX test program"
16201 fi
16202
16203 $rm -f confest.$objext
16204
16205 case " $postdeps_CXX " in
16206 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16207 esac
16208
16209 lt_prog_compiler_wl_CXX=
16210 lt_prog_compiler_pic_CXX=
16211 lt_prog_compiler_static_CXX=
16212
16213 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16214 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16215
16216   # C++ specific cases for pic, static, wl, etc.
16217   if test "$GXX" = yes; then
16218     lt_prog_compiler_wl_CXX='-Wl,'
16219     lt_prog_compiler_static_CXX='-static'
16220
16221     case $host_os in
16222     aix*)
16223       # All AIX code is PIC.
16224       if test "$host_cpu" = ia64; then
16225         # AIX 5 now supports IA64 processor
16226         lt_prog_compiler_static_CXX='-Bstatic'
16227       fi
16228       ;;
16229     amigaos*)
16230       # FIXME: we need at least 68020 code to build shared libraries, but
16231       # adding the `-m68020' flag to GCC prevents building anything better,
16232       # like `-m68040'.
16233       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16234       ;;
16235     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16236       # PIC is the default for these OSes.
16237       ;;
16238     mingw* | os2* | pw32*)
16239       # This hack is so that the source file can tell whether it is being
16240       # built for inclusion in a dll (and should export symbols for example).
16241       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16242       ;;
16243     darwin* | rhapsody*)
16244       # PIC is the default on this platform
16245       # Common symbols not allowed in MH_DYLIB files
16246       lt_prog_compiler_pic_CXX='-fno-common'
16247       ;;
16248     *djgpp*)
16249       # DJGPP does not support shared libraries at all
16250       lt_prog_compiler_pic_CXX=
16251       ;;
16252     sysv4*MP*)
16253       if test -d /usr/nec; then
16254         lt_prog_compiler_pic_CXX=-Kconform_pic
16255       fi
16256       ;;
16257     hpux*)
16258       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16259       # not for PA HP-UX.
16260       case "$host_cpu" in
16261       hppa*64*|ia64*)
16262         ;;
16263       *)
16264         lt_prog_compiler_pic_CXX='-fPIC'
16265         ;;
16266       esac
16267       ;;
16268     *)
16269       lt_prog_compiler_pic_CXX='-fPIC'
16270       ;;
16271     esac
16272   else
16273     case $host_os in
16274       aix4* | aix5*)
16275         # All AIX code is PIC.
16276         if test "$host_cpu" = ia64; then
16277           # AIX 5 now supports IA64 processor
16278           lt_prog_compiler_static_CXX='-Bstatic'
16279         else
16280           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16281         fi
16282         ;;
16283       chorus*)
16284         case $cc_basename in
16285         cxch68)
16286           # Green Hills C++ Compiler
16287           # _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"
16288           ;;
16289         esac
16290         ;;
16291        darwin*)
16292          # PIC is the default on this platform
16293          # Common symbols not allowed in MH_DYLIB files
16294          case "$cc_basename" in
16295            xlc*)
16296            lt_prog_compiler_pic_CXX='-qnocommon'
16297            lt_prog_compiler_wl_CXX='-Wl,'
16298            ;;
16299          esac
16300        ;;
16301       dgux*)
16302         case $cc_basename in
16303           ec++)
16304             lt_prog_compiler_pic_CXX='-KPIC'
16305             ;;
16306           ghcx)
16307             # Green Hills C++ Compiler
16308             lt_prog_compiler_pic_CXX='-pic'
16309             ;;
16310           *)
16311             ;;
16312         esac
16313         ;;
16314       freebsd* | kfreebsd*-gnu)
16315         # FreeBSD uses GNU C++
16316         ;;
16317       hpux9* | hpux10* | hpux11*)
16318         case $cc_basename in
16319           CC)
16320             lt_prog_compiler_wl_CXX='-Wl,'
16321             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16322             if test "$host_cpu" != ia64; then
16323               lt_prog_compiler_pic_CXX='+Z'
16324             fi
16325             ;;
16326           aCC)
16327             lt_prog_compiler_wl_CXX='-Wl,'
16328             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16329             case "$host_cpu" in
16330             hppa*64*|ia64*)
16331               # +Z the default
16332               ;;
16333             *)
16334               lt_prog_compiler_pic_CXX='+Z'
16335               ;;
16336             esac
16337             ;;
16338           *)
16339             ;;
16340         esac
16341         ;;
16342       irix5* | irix6* | nonstopux*)
16343         case $cc_basename in
16344           CC)
16345             lt_prog_compiler_wl_CXX='-Wl,'
16346             lt_prog_compiler_static_CXX='-non_shared'
16347             # CC pic flag -KPIC is the default.
16348             ;;
16349           *)
16350             ;;
16351         esac
16352         ;;
16353       linux*)
16354         case $cc_basename in
16355           KCC)
16356             # KAI C++ Compiler
16357             lt_prog_compiler_wl_CXX='--backend -Wl,'
16358             lt_prog_compiler_pic_CXX='-fPIC'
16359             ;;
16360           icpc)
16361             # Intel C++
16362             lt_prog_compiler_wl_CXX='-Wl,'
16363             lt_prog_compiler_pic_CXX='-KPIC'
16364             lt_prog_compiler_static_CXX='-static'
16365             ;;
16366           cxx)
16367             # Compaq C++
16368             # Make sure the PIC flag is empty.  It appears that all Alpha
16369             # Linux and Compaq Tru64 Unix objects are PIC.
16370             lt_prog_compiler_pic_CXX=
16371             lt_prog_compiler_static_CXX='-non_shared'
16372             ;;
16373           *)
16374             ;;
16375         esac
16376         ;;
16377       lynxos*)
16378         ;;
16379       m88k*)
16380         ;;
16381       mvs*)
16382         case $cc_basename in
16383           cxx)
16384             lt_prog_compiler_pic_CXX='-W c,exportall'
16385             ;;
16386           *)
16387             ;;
16388         esac
16389         ;;
16390       netbsd*)
16391         ;;
16392       osf3* | osf4* | osf5*)
16393         case $cc_basename in
16394           KCC)
16395             lt_prog_compiler_wl_CXX='--backend -Wl,'
16396             ;;
16397           RCC)
16398             # Rational C++ 2.4.1
16399             lt_prog_compiler_pic_CXX='-pic'
16400             ;;
16401           cxx)
16402             # Digital/Compaq C++
16403             lt_prog_compiler_wl_CXX='-Wl,'
16404             # Make sure the PIC flag is empty.  It appears that all Alpha
16405             # Linux and Compaq Tru64 Unix objects are PIC.
16406             lt_prog_compiler_pic_CXX=
16407             lt_prog_compiler_static_CXX='-non_shared'
16408             ;;
16409           *)
16410             ;;
16411         esac
16412         ;;
16413       psos*)
16414         ;;
16415       sco*)
16416         case $cc_basename in
16417           CC)
16418             lt_prog_compiler_pic_CXX='-fPIC'
16419             ;;
16420           *)
16421             ;;
16422         esac
16423         ;;
16424       solaris*)
16425         case $cc_basename in
16426           CC)
16427             # Sun C++ 4.2, 5.x and Centerline C++
16428             lt_prog_compiler_pic_CXX='-KPIC'
16429             lt_prog_compiler_static_CXX='-Bstatic'
16430             lt_prog_compiler_wl_CXX='-Qoption ld '
16431             ;;
16432           gcx)
16433             # Green Hills C++ Compiler
16434             lt_prog_compiler_pic_CXX='-PIC'
16435             ;;
16436           *)
16437             ;;
16438         esac
16439         ;;
16440       sunos4*)
16441         case $cc_basename in
16442           CC)
16443             # Sun C++ 4.x
16444             lt_prog_compiler_pic_CXX='-pic'
16445             lt_prog_compiler_static_CXX='-Bstatic'
16446             ;;
16447           lcc)
16448             # Lucid
16449             lt_prog_compiler_pic_CXX='-pic'
16450             ;;
16451           *)
16452             ;;
16453         esac
16454         ;;
16455       tandem*)
16456         case $cc_basename in
16457           NCC)
16458             # NonStop-UX NCC 3.20
16459             lt_prog_compiler_pic_CXX='-KPIC'
16460             ;;
16461           *)
16462             ;;
16463         esac
16464         ;;
16465       unixware*)
16466         ;;
16467       vxworks*)
16468         ;;
16469       *)
16470         lt_prog_compiler_can_build_shared_CXX=no
16471         ;;
16472     esac
16473   fi
16474
16475 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16476 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16477
16478 #
16479 # Check to make sure the PIC flag actually works.
16480 #
16481 if test -n "$lt_prog_compiler_pic_CXX"; then
16482
16483 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16485 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488   lt_prog_compiler_pic_works_CXX=no
16489   ac_outfile=conftest.$ac_objext
16490    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16491    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16492    # Insert the option either (1) after the last *FLAGS variable, or
16493    # (2) before a word containing "conftest.", or (3) at the end.
16494    # Note that $ac_compile itself does not contain backslashes and begins
16495    # with a dollar sign (not a hyphen), so the echo should work correctly.
16496    # The option is referenced via a variable to avoid confusing sed.
16497    lt_compile=`echo "$ac_compile" | $SED \
16498    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16500    -e 's:$: $lt_compiler_flag:'`
16501    (eval echo "\"\$as_me:16501: $lt_compile\"" >&5)
16502    (eval "$lt_compile" 2>conftest.err)
16503    ac_status=$?
16504    cat conftest.err >&5
16505    echo "$as_me:16505: \$? = $ac_status" >&5
16506    if (exit $ac_status) && test -s "$ac_outfile"; then
16507      # The compiler can only warn and ignore the option if not recognized
16508      # So say no if there are warnings
16509      if test ! -s conftest.err; then
16510        lt_prog_compiler_pic_works_CXX=yes
16511      fi
16512    fi
16513    $rm conftest*
16514
16515 fi
16516 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16517 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16518
16519 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16520     case $lt_prog_compiler_pic_CXX in
16521      "" | " "*) ;;
16522      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16523      esac
16524 else
16525     lt_prog_compiler_pic_CXX=
16526      lt_prog_compiler_can_build_shared_CXX=no
16527 fi
16528
16529 fi
16530 case "$host_os" in
16531   # For platforms which do not support PIC, -DPIC is meaningless:
16532   *djgpp*)
16533     lt_prog_compiler_pic_CXX=
16534     ;;
16535   *)
16536     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16537     ;;
16538 esac
16539
16540 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16542 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16543   echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545   lt_cv_prog_compiler_c_o_CXX=no
16546    $rm -r conftest 2>/dev/null
16547    mkdir conftest
16548    cd conftest
16549    mkdir out
16550    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16551
16552    lt_compiler_flag="-o out/conftest2.$ac_objext"
16553    # Insert the option either (1) after the last *FLAGS variable, or
16554    # (2) before a word containing "conftest.", or (3) at the end.
16555    # Note that $ac_compile itself does not contain backslashes and begins
16556    # with a dollar sign (not a hyphen), so the echo should work correctly.
16557    lt_compile=`echo "$ac_compile" | $SED \
16558    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16560    -e 's:$: $lt_compiler_flag:'`
16561    (eval echo "\"\$as_me:16561: $lt_compile\"" >&5)
16562    (eval "$lt_compile" 2>out/conftest.err)
16563    ac_status=$?
16564    cat out/conftest.err >&5
16565    echo "$as_me:16565: \$? = $ac_status" >&5
16566    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16567    then
16568      # The compiler can only warn and ignore the option if not recognized
16569      # So say no if there are warnings
16570      if test ! -s out/conftest.err; then
16571        lt_cv_prog_compiler_c_o_CXX=yes
16572      fi
16573    fi
16574    chmod u+w .
16575    $rm conftest*
16576    # SGI C++ compiler will create directory out/ii_files/ for
16577    # template instantiation
16578    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16579    $rm out/* && rmdir out
16580    cd ..
16581    rmdir conftest
16582    $rm conftest*
16583
16584 fi
16585 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16587
16588
16589 hard_links="nottested"
16590 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16591   # do not overwrite the value of need_locks provided by the user
16592   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16594   hard_links=yes
16595   $rm conftest*
16596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16597   touch conftest.a
16598   ln conftest.a conftest.b 2>&5 || hard_links=no
16599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16600   echo "$as_me:$LINENO: result: $hard_links" >&5
16601 echo "${ECHO_T}$hard_links" >&6
16602   if test "$hard_links" = no; then
16603     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16605     need_locks=warn
16606   fi
16607 else
16608   need_locks=no
16609 fi
16610
16611 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16613
16614   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16615   case $host_os in
16616   aix4* | aix5*)
16617     # If we're using GNU nm, then we don't want the "-C" option.
16618     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16619     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16620       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'
16621     else
16622       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'
16623     fi
16624     ;;
16625   pw32*)
16626     export_symbols_cmds_CXX="$ltdll_cmds"
16627   ;;
16628   cygwin* | mingw*)
16629     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16630   ;;
16631   *)
16632     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16633   ;;
16634   esac
16635
16636 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16637 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16638 test "$ld_shlibs_CXX" = no && can_build_shared=no
16639
16640 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16641 if test "$GCC" = yes; then
16642   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16643 fi
16644
16645 #
16646 # Do we need to explicitly link libc?
16647 #
16648 case "x$archive_cmds_need_lc_CXX" in
16649 x|xyes)
16650   # Assume -lc should be added
16651   archive_cmds_need_lc_CXX=yes
16652
16653   if test "$enable_shared" = yes && test "$GCC" = yes; then
16654     case $archive_cmds_CXX in
16655     *'~'*)
16656       # FIXME: we may have to deal with multi-command sequences.
16657       ;;
16658     '$CC '*)
16659       # Test whether the compiler implicitly links with -lc since on some
16660       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16661       # to ld, don't add -lc before -lgcc.
16662       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16663 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16664       $rm conftest*
16665       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16666
16667       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16668   (eval $ac_compile) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } 2>conftest.err; then
16672         soname=conftest
16673         lib=conftest
16674         libobjs=conftest.$ac_objext
16675         deplibs=
16676         wl=$lt_prog_compiler_wl_CXX
16677         compiler_flags=-v
16678         linker_flags=-v
16679         verstring=
16680         output_objdir=.
16681         libname=conftest
16682         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16683         allow_undefined_flag_CXX=
16684         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16685   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }
16689         then
16690           archive_cmds_need_lc_CXX=no
16691         else
16692           archive_cmds_need_lc_CXX=yes
16693         fi
16694         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16695       else
16696         cat conftest.err 1>&5
16697       fi
16698       $rm conftest*
16699       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16700 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16701       ;;
16702     esac
16703   fi
16704   ;;
16705 esac
16706
16707 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16709 library_names_spec=
16710 libname_spec='lib$name'
16711 soname_spec=
16712 shrext_cmds=".so"
16713 postinstall_cmds=
16714 postuninstall_cmds=
16715 finish_cmds=
16716 finish_eval=
16717 shlibpath_var=
16718 shlibpath_overrides_runpath=unknown
16719 version_type=none
16720 dynamic_linker="$host_os ld.so"
16721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16722 if test "$GCC" = yes; then
16723   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16724   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16725     # if the path contains ";" then we assume it to be the separator
16726     # otherwise default to the standard path separator (i.e. ":") - it is
16727     # assumed that no part of a normal pathname contains ";" but that should
16728     # okay in the real world where ";" in dirpaths is itself problematic.
16729     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16730   else
16731     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16732   fi
16733 else
16734   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16735 fi
16736 need_lib_prefix=unknown
16737 hardcode_into_libs=no
16738
16739 # when you set need_version to no, make sure it does not cause -set_version
16740 # flags to be left without arguments
16741 need_version=unknown
16742
16743 case $host_os in
16744 aix3*)
16745   version_type=linux
16746   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16747   shlibpath_var=LIBPATH
16748
16749   # AIX 3 has no versioning support, so we append a major version to the name.
16750   soname_spec='${libname}${release}${shared_ext}$major'
16751   ;;
16752
16753 aix4* | aix5*)
16754   version_type=linux
16755   need_lib_prefix=no
16756   need_version=no
16757   hardcode_into_libs=yes
16758   if test "$host_cpu" = ia64; then
16759     # AIX 5 supports IA64
16760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16761     shlibpath_var=LD_LIBRARY_PATH
16762   else
16763     # With GCC up to 2.95.x, collect2 would create an import file
16764     # for dependence libraries.  The import file would start with
16765     # the line `#! .'.  This would cause the generated library to
16766     # depend on `.', always an invalid library.  This was fixed in
16767     # development snapshots of GCC prior to 3.0.
16768     case $host_os in
16769       aix4 | aix4.[01] | aix4.[01].*)
16770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16771            echo ' yes '
16772            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16773         :
16774       else
16775         can_build_shared=no
16776       fi
16777       ;;
16778     esac
16779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16780     # soname into executable. Probably we can add versioning support to
16781     # collect2, so additional links can be useful in future.
16782     if test "$aix_use_runtimelinking" = yes; then
16783       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16784       # instead of lib<name>.a to let people know that these are not
16785       # typical AIX shared libraries.
16786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16787     else
16788       # We preserve .a as extension for shared libraries through AIX4.2
16789       # and later when we are not doing run time linking.
16790       library_names_spec='${libname}${release}.a $libname.a'
16791       soname_spec='${libname}${release}${shared_ext}$major'
16792     fi
16793     shlibpath_var=LIBPATH
16794   fi
16795   ;;
16796
16797 amigaos*)
16798   library_names_spec='$libname.ixlibrary $libname.a'
16799   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16800   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'
16801   ;;
16802
16803 beos*)
16804   library_names_spec='${libname}${shared_ext}'
16805   dynamic_linker="$host_os ld.so"
16806   shlibpath_var=LIBRARY_PATH
16807   ;;
16808
16809 bsdi[45]*)
16810   version_type=linux
16811   need_version=no
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813   soname_spec='${libname}${release}${shared_ext}$major'
16814   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16815   shlibpath_var=LD_LIBRARY_PATH
16816   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16817   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16818   # the default ld.so.conf also contains /usr/contrib/lib and
16819   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16820   # libtool to hard-code these into programs
16821   ;;
16822
16823 cygwin* | mingw* | pw32*)
16824   version_type=windows
16825   shrext_cmds=".dll"
16826   need_version=no
16827   need_lib_prefix=no
16828
16829   case $GCC,$host_os in
16830   yes,cygwin* | yes,mingw* | yes,pw32*)
16831     library_names_spec='$libname.dll.a'
16832     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16833     postinstall_cmds='base_file=`basename \${file}`~
16834       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16835       dldir=$destdir/`dirname \$dlpath`~
16836       test -d \$dldir || mkdir -p \$dldir~
16837       $install_prog $dir/$dlname \$dldir/$dlname'
16838     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16839       dlpath=$dir/\$dldll~
16840        $rm \$dlpath'
16841     shlibpath_overrides_runpath=yes
16842
16843     case $host_os in
16844     cygwin*)
16845       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16846       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16847       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16848       ;;
16849     mingw*)
16850       # MinGW DLLs use traditional 'lib' prefix
16851       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16852       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16853       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16854         # It is most probably a Windows format PATH printed by
16855         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16856         # path with ; separators, and with drive letters. We can handle the
16857         # drive letters (cygwin fileutils understands them), so leave them,
16858         # especially as we might pass files found there to a mingw objdump,
16859         # which wouldn't understand a cygwinified path. Ahh.
16860         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16861       else
16862         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16863       fi
16864       ;;
16865     pw32*)
16866       # pw32 DLLs use 'pw' prefix rather than 'lib'
16867       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16868       ;;
16869     esac
16870     ;;
16871
16872   *)
16873     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16874     ;;
16875   esac
16876   dynamic_linker='Win32 ld.exe'
16877   # FIXME: first we should search . and the directory the executable is in
16878   shlibpath_var=PATH
16879   ;;
16880
16881 darwin* | rhapsody*)
16882   dynamic_linker="$host_os dyld"
16883   version_type=darwin
16884   need_lib_prefix=no
16885   need_version=no
16886   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16887   soname_spec='${libname}${release}${major}$shared_ext'
16888   shlibpath_overrides_runpath=yes
16889   shlibpath_var=DYLD_LIBRARY_PATH
16890   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16891   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16892   if test "$GCC" = yes; then
16893     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"`
16894   else
16895     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16896   fi
16897   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16898   ;;
16899
16900 dgux*)
16901   version_type=linux
16902   need_lib_prefix=no
16903   need_version=no
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16905   soname_spec='${libname}${release}${shared_ext}$major'
16906   shlibpath_var=LD_LIBRARY_PATH
16907   ;;
16908
16909 freebsd1*)
16910   dynamic_linker=no
16911   ;;
16912
16913 kfreebsd*-gnu)
16914   version_type=linux
16915   need_lib_prefix=no
16916   need_version=no
16917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16918   soname_spec='${libname}${release}${shared_ext}$major'
16919   shlibpath_var=LD_LIBRARY_PATH
16920   shlibpath_overrides_runpath=no
16921   hardcode_into_libs=yes
16922   dynamic_linker='GNU ld.so'
16923   ;;
16924
16925 freebsd*)
16926   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16927   version_type=freebsd-$objformat
16928   case $version_type in
16929     freebsd-elf*)
16930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16931       need_version=no
16932       need_lib_prefix=no
16933       ;;
16934     freebsd-*)
16935       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16936       need_version=yes
16937       ;;
16938   esac
16939   shlibpath_var=LD_LIBRARY_PATH
16940   case $host_os in
16941   freebsd2*)
16942     shlibpath_overrides_runpath=yes
16943     ;;
16944   freebsd3.01* | freebsdelf3.01*)
16945     shlibpath_overrides_runpath=yes
16946     hardcode_into_libs=yes
16947     ;;
16948   *) # from 3.2 on
16949     shlibpath_overrides_runpath=no
16950     hardcode_into_libs=yes
16951     ;;
16952   esac
16953   ;;
16954
16955 gnu*)
16956   version_type=linux
16957   need_lib_prefix=no
16958   need_version=no
16959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16960   soname_spec='${libname}${release}${shared_ext}$major'
16961   shlibpath_var=LD_LIBRARY_PATH
16962   hardcode_into_libs=yes
16963   ;;
16964
16965 hpux9* | hpux10* | hpux11*)
16966   # Give a soname corresponding to the major version so that dld.sl refuses to
16967   # link against other versions.
16968   version_type=sunos
16969   need_lib_prefix=no
16970   need_version=no
16971   case "$host_cpu" in
16972   ia64*)
16973     shrext_cmds='.so'
16974     hardcode_into_libs=yes
16975     dynamic_linker="$host_os dld.so"
16976     shlibpath_var=LD_LIBRARY_PATH
16977     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979     soname_spec='${libname}${release}${shared_ext}$major'
16980     if test "X$HPUX_IA64_MODE" = X32; then
16981       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16982     else
16983       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16984     fi
16985     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16986     ;;
16987    hppa*64*)
16988      shrext_cmds='.sl'
16989      hardcode_into_libs=yes
16990      dynamic_linker="$host_os dld.sl"
16991      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16992      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16993      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16994      soname_spec='${libname}${release}${shared_ext}$major'
16995      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16996      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16997      ;;
16998    *)
16999     shrext_cmds='.sl'
17000     dynamic_linker="$host_os dld.sl"
17001     shlibpath_var=SHLIB_PATH
17002     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004     soname_spec='${libname}${release}${shared_ext}$major'
17005     ;;
17006   esac
17007   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17008   postinstall_cmds='chmod 555 $lib'
17009   ;;
17010
17011 irix5* | irix6* | nonstopux*)
17012   case $host_os in
17013     nonstopux*) version_type=nonstopux ;;
17014     *)
17015         if test "$lt_cv_prog_gnu_ld" = yes; then
17016                 version_type=linux
17017         else
17018                 version_type=irix
17019         fi ;;
17020   esac
17021   need_lib_prefix=no
17022   need_version=no
17023   soname_spec='${libname}${release}${shared_ext}$major'
17024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17025   case $host_os in
17026   irix5* | nonstopux*)
17027     libsuff= shlibsuff=
17028     ;;
17029   *)
17030     case $LD in # libtool.m4 will add one of these switches to LD
17031     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17032       libsuff= shlibsuff= libmagic=32-bit;;
17033     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17034       libsuff=32 shlibsuff=N32 libmagic=N32;;
17035     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17036       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17037     *) libsuff= shlibsuff= libmagic=never-match;;
17038     esac
17039     ;;
17040   esac
17041   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17042   shlibpath_overrides_runpath=no
17043   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17044   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17045   hardcode_into_libs=yes
17046   ;;
17047
17048 # No shared lib support for Linux oldld, aout, or coff.
17049 linux*oldld* | linux*aout* | linux*coff*)
17050   dynamic_linker=no
17051   ;;
17052
17053 # This must be Linux ELF.
17054 linux*)
17055   version_type=linux
17056   need_lib_prefix=no
17057   need_version=no
17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059   soname_spec='${libname}${release}${shared_ext}$major'
17060   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17061   shlibpath_var=LD_LIBRARY_PATH
17062   shlibpath_overrides_runpath=no
17063   # This implies no fast_install, which is unacceptable.
17064   # Some rework will be needed to allow for fast_install
17065   # before this can be enabled.
17066   hardcode_into_libs=yes
17067
17068   # Append ld.so.conf contents to the search path
17069   if test -f /etc/ld.so.conf; then
17070     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17071     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17072   fi
17073
17074   # We used to test for /lib/ld.so.1 and disable shared libraries on
17075   # powerpc, because MkLinux only supported shared libraries with the
17076   # GNU dynamic linker.  Since this was broken with cross compilers,
17077   # most powerpc-linux boxes support dynamic linking these days and
17078   # people can always --disable-shared, the test was removed, and we
17079   # assume the GNU/Linux dynamic linker is in use.
17080   dynamic_linker='GNU/Linux ld.so'
17081   ;;
17082
17083 knetbsd*-gnu)
17084   version_type=linux
17085   need_lib_prefix=no
17086   need_version=no
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   shlibpath_overrides_runpath=no
17091   hardcode_into_libs=yes
17092   dynamic_linker='GNU ld.so'
17093   ;;
17094
17095 netbsd*)
17096   version_type=sunos
17097   need_lib_prefix=no
17098   need_version=no
17099   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17101     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17102     dynamic_linker='NetBSD (a.out) ld.so'
17103   else
17104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17105     soname_spec='${libname}${release}${shared_ext}$major'
17106     dynamic_linker='NetBSD ld.elf_so'
17107   fi
17108   shlibpath_var=LD_LIBRARY_PATH
17109   shlibpath_overrides_runpath=yes
17110   hardcode_into_libs=yes
17111   ;;
17112
17113 newsos6)
17114   version_type=linux
17115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116   shlibpath_var=LD_LIBRARY_PATH
17117   shlibpath_overrides_runpath=yes
17118   ;;
17119
17120 nto-qnx*)
17121   version_type=linux
17122   need_lib_prefix=no
17123   need_version=no
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125   soname_spec='${libname}${release}${shared_ext}$major'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   shlibpath_overrides_runpath=yes
17128   ;;
17129
17130 openbsd*)
17131   version_type=sunos
17132   need_lib_prefix=no
17133   need_version=no
17134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17135   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17136   shlibpath_var=LD_LIBRARY_PATH
17137   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17138     case $host_os in
17139       openbsd2.[89] | openbsd2.[89].*)
17140         shlibpath_overrides_runpath=no
17141         ;;
17142       *)
17143         shlibpath_overrides_runpath=yes
17144         ;;
17145       esac
17146   else
17147     shlibpath_overrides_runpath=yes
17148   fi
17149   ;;
17150
17151 os2*)
17152   libname_spec='$name'
17153   shrext_cmds=".dll"
17154   need_lib_prefix=no
17155   library_names_spec='$libname${shared_ext} $libname.a'
17156   dynamic_linker='OS/2 ld.exe'
17157   shlibpath_var=LIBPATH
17158   ;;
17159
17160 osf3* | osf4* | osf5*)
17161   version_type=osf
17162   need_lib_prefix=no
17163   need_version=no
17164   soname_spec='${libname}${release}${shared_ext}$major'
17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166   shlibpath_var=LD_LIBRARY_PATH
17167   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17168   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17169   ;;
17170
17171 sco3.2v5*)
17172   version_type=osf
17173   soname_spec='${libname}${release}${shared_ext}$major'
17174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175   shlibpath_var=LD_LIBRARY_PATH
17176   ;;
17177
17178 solaris*)
17179   version_type=linux
17180   need_lib_prefix=no
17181   need_version=no
17182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183   soname_spec='${libname}${release}${shared_ext}$major'
17184   shlibpath_var=LD_LIBRARY_PATH
17185   shlibpath_overrides_runpath=yes
17186   hardcode_into_libs=yes
17187   # ldd complains unless libraries are executable
17188   postinstall_cmds='chmod +x $lib'
17189   ;;
17190
17191 sunos4*)
17192   version_type=sunos
17193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17194   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17195   shlibpath_var=LD_LIBRARY_PATH
17196   shlibpath_overrides_runpath=yes
17197   if test "$with_gnu_ld" = yes; then
17198     need_lib_prefix=no
17199   fi
17200   need_version=yes
17201   ;;
17202
17203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17204   version_type=linux
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206   soname_spec='${libname}${release}${shared_ext}$major'
17207   shlibpath_var=LD_LIBRARY_PATH
17208   case $host_vendor in
17209     sni)
17210       shlibpath_overrides_runpath=no
17211       need_lib_prefix=no
17212       export_dynamic_flag_spec='${wl}-Blargedynsym'
17213       runpath_var=LD_RUN_PATH
17214       ;;
17215     siemens)
17216       need_lib_prefix=no
17217       ;;
17218     motorola)
17219       need_lib_prefix=no
17220       need_version=no
17221       shlibpath_overrides_runpath=no
17222       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17223       ;;
17224   esac
17225   ;;
17226
17227 sysv4*MP*)
17228   if test -d /usr/nec ;then
17229     version_type=linux
17230     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17231     soname_spec='$libname${shared_ext}.$major'
17232     shlibpath_var=LD_LIBRARY_PATH
17233   fi
17234   ;;
17235
17236 uts4*)
17237   version_type=linux
17238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239   soname_spec='${libname}${release}${shared_ext}$major'
17240   shlibpath_var=LD_LIBRARY_PATH
17241   ;;
17242
17243 *)
17244   dynamic_linker=no
17245   ;;
17246 esac
17247 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17248 echo "${ECHO_T}$dynamic_linker" >&6
17249 test "$dynamic_linker" = no && can_build_shared=no
17250
17251 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17252 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17253 hardcode_action_CXX=
17254 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17255    test -n "$runpath_var_CXX" || \
17256    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17257
17258   # We can hardcode non-existant directories.
17259   if test "$hardcode_direct_CXX" != no &&
17260      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17261      # have to relink, otherwise we might link with an installed library
17262      # when we should be linking with a yet-to-be-installed one
17263      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17264      test "$hardcode_minus_L_CXX" != no; then
17265     # Linking always hardcodes the temporary library directory.
17266     hardcode_action_CXX=relink
17267   else
17268     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17269     hardcode_action_CXX=immediate
17270   fi
17271 else
17272   # We cannot hardcode anything, or else we can only hardcode existing
17273   # directories.
17274   hardcode_action_CXX=unsupported
17275 fi
17276 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17277 echo "${ECHO_T}$hardcode_action_CXX" >&6
17278
17279 if test "$hardcode_action_CXX" = relink; then
17280   # Fast installation is not supported
17281   enable_fast_install=no
17282 elif test "$shlibpath_overrides_runpath" = yes ||
17283      test "$enable_shared" = no; then
17284   # Fast installation is not necessary
17285   enable_fast_install=needless
17286 fi
17287
17288 striplib=
17289 old_striplib=
17290 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17291 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17292 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17293   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17294   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17295   echo "$as_me:$LINENO: result: yes" >&5
17296 echo "${ECHO_T}yes" >&6
17297 else
17298 # FIXME - insert some real tests, host_os isn't really good enough
17299   case $host_os in
17300    darwin*)
17301        if test -n "$STRIP" ; then
17302          striplib="$STRIP -x"
17303          echo "$as_me:$LINENO: result: yes" >&5
17304 echo "${ECHO_T}yes" >&6
17305        else
17306   echo "$as_me:$LINENO: result: no" >&5
17307 echo "${ECHO_T}no" >&6
17308 fi
17309        ;;
17310    *)
17311   echo "$as_me:$LINENO: result: no" >&5
17312 echo "${ECHO_T}no" >&6
17313     ;;
17314   esac
17315 fi
17316
17317 if test "x$enable_dlopen" != xyes; then
17318   enable_dlopen=unknown
17319   enable_dlopen_self=unknown
17320   enable_dlopen_self_static=unknown
17321 else
17322   lt_cv_dlopen=no
17323   lt_cv_dlopen_libs=
17324
17325   case $host_os in
17326   beos*)
17327     lt_cv_dlopen="load_add_on"
17328     lt_cv_dlopen_libs=
17329     lt_cv_dlopen_self=yes
17330     ;;
17331
17332   mingw* | pw32*)
17333     lt_cv_dlopen="LoadLibrary"
17334     lt_cv_dlopen_libs=
17335    ;;
17336
17337   cygwin*)
17338     lt_cv_dlopen="dlopen"
17339     lt_cv_dlopen_libs=
17340    ;;
17341
17342   darwin*)
17343   # if libdl is installed we need to link against it
17344     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17345 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17347   echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349   ac_check_lib_save_LIBS=$LIBS
17350 LIBS="-ldl  $LIBS"
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h.  */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h.  */
17357
17358 /* Override any gcc2 internal prototype to avoid an error.  */
17359 #ifdef __cplusplus
17360 extern "C"
17361 #endif
17362 /* We use char because int might match the return type of a gcc2
17363    builtin and then its argument prototype would still apply.  */
17364 char dlopen ();
17365 int
17366 main ()
17367 {
17368 dlopen ();
17369   ;
17370   return 0;
17371 }
17372 _ACEOF
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17375   (eval $ac_link) 2>conftest.er1
17376   ac_status=$?
17377   grep -v '^ *+' conftest.er1 >conftest.err
17378   rm -f conftest.er1
17379   cat conftest.err >&5
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); } &&
17382          { ac_try='test -z "$ac_cxx_werror_flag"
17383                          || test ! -s conftest.err'
17384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385   (eval $ac_try) 2>&5
17386   ac_status=$?
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); }; } &&
17389          { ac_try='test -s conftest$ac_exeext'
17390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391   (eval $ac_try) 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; }; then
17395   ac_cv_lib_dl_dlopen=yes
17396 else
17397   echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ac_cv_lib_dl_dlopen=no
17401 fi
17402 rm -f conftest.err conftest.$ac_objext \
17403       conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_check_lib_save_LIBS
17405 fi
17406 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17408 if test $ac_cv_lib_dl_dlopen = yes; then
17409   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17410 else
17411
17412     lt_cv_dlopen="dyld"
17413     lt_cv_dlopen_libs=
17414     lt_cv_dlopen_self=yes
17415
17416 fi
17417
17418    ;;
17419
17420   *)
17421     echo "$as_me:$LINENO: checking for shl_load" >&5
17422 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17423 if test "${ac_cv_func_shl_load+set}" = set; then
17424   echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426   cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17434 #define shl_load innocuous_shl_load
17435
17436 /* System header to define __stub macros and hopefully few prototypes,
17437     which can conflict with char shl_load (); below.
17438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17439     <limits.h> exists even on freestanding compilers.  */
17440
17441 #ifdef __STDC__
17442 # include <limits.h>
17443 #else
17444 # include <assert.h>
17445 #endif
17446
17447 #undef shl_load
17448
17449 /* Override any gcc2 internal prototype to avoid an error.  */
17450 #ifdef __cplusplus
17451 extern "C"
17452 {
17453 #endif
17454 /* We use char because int might match the return type of a gcc2
17455    builtin and then its argument prototype would still apply.  */
17456 char shl_load ();
17457 /* The GNU C library defines this for functions which it implements
17458     to always fail with ENOSYS.  Some functions are actually named
17459     something starting with __ and the normal name is an alias.  */
17460 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17461 choke me
17462 #else
17463 char (*f) () = shl_load;
17464 #endif
17465 #ifdef __cplusplus
17466 }
17467 #endif
17468
17469 int
17470 main ()
17471 {
17472 return f != shl_load;
17473   ;
17474   return 0;
17475 }
17476 _ACEOF
17477 rm -f conftest.$ac_objext conftest$ac_exeext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479   (eval $ac_link) 2>conftest.er1
17480   ac_status=$?
17481   grep -v '^ *+' conftest.er1 >conftest.err
17482   rm -f conftest.er1
17483   cat conftest.err >&5
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); } &&
17486          { ac_try='test -z "$ac_cxx_werror_flag"
17487                          || test ! -s conftest.err'
17488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489   (eval $ac_try) 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; } &&
17493          { ac_try='test -s conftest$ac_exeext'
17494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495   (eval $ac_try) 2>&5
17496   ac_status=$?
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); }; }; then
17499   ac_cv_func_shl_load=yes
17500 else
17501   echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 ac_cv_func_shl_load=no
17505 fi
17506 rm -f conftest.err conftest.$ac_objext \
17507       conftest$ac_exeext conftest.$ac_ext
17508 fi
17509 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17510 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17511 if test $ac_cv_func_shl_load = yes; then
17512   lt_cv_dlopen="shl_load"
17513 else
17514   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17515 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17516 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519   ac_check_lib_save_LIBS=$LIBS
17520 LIBS="-ldld  $LIBS"
17521 cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527
17528 /* Override any gcc2 internal prototype to avoid an error.  */
17529 #ifdef __cplusplus
17530 extern "C"
17531 #endif
17532 /* We use char because int might match the return type of a gcc2
17533    builtin and then its argument prototype would still apply.  */
17534 char shl_load ();
17535 int
17536 main ()
17537 {
17538 shl_load ();
17539   ;
17540   return 0;
17541 }
17542 _ACEOF
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545   (eval $ac_link) 2>conftest.er1
17546   ac_status=$?
17547   grep -v '^ *+' conftest.er1 >conftest.err
17548   rm -f conftest.er1
17549   cat conftest.err >&5
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); } &&
17552          { ac_try='test -z "$ac_cxx_werror_flag"
17553                          || test ! -s conftest.err'
17554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555   (eval $ac_try) 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); }; } &&
17559          { ac_try='test -s conftest$ac_exeext'
17560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561   (eval $ac_try) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; }; then
17565   ac_cv_lib_dld_shl_load=yes
17566 else
17567   echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 ac_cv_lib_dld_shl_load=no
17571 fi
17572 rm -f conftest.err conftest.$ac_objext \
17573       conftest$ac_exeext conftest.$ac_ext
17574 LIBS=$ac_check_lib_save_LIBS
17575 fi
17576 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17577 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17578 if test $ac_cv_lib_dld_shl_load = yes; then
17579   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17580 else
17581   echo "$as_me:$LINENO: checking for dlopen" >&5
17582 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17583 if test "${ac_cv_func_dlopen+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17594 #define dlopen innocuous_dlopen
17595
17596 /* System header to define __stub macros and hopefully few prototypes,
17597     which can conflict with char dlopen (); below.
17598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599     <limits.h> exists even on freestanding compilers.  */
17600
17601 #ifdef __STDC__
17602 # include <limits.h>
17603 #else
17604 # include <assert.h>
17605 #endif
17606
17607 #undef dlopen
17608
17609 /* Override any gcc2 internal prototype to avoid an error.  */
17610 #ifdef __cplusplus
17611 extern "C"
17612 {
17613 #endif
17614 /* We use char because int might match the return type of a gcc2
17615    builtin and then its argument prototype would still apply.  */
17616 char dlopen ();
17617 /* The GNU C library defines this for functions which it implements
17618     to always fail with ENOSYS.  Some functions are actually named
17619     something starting with __ and the normal name is an alias.  */
17620 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17621 choke me
17622 #else
17623 char (*f) () = dlopen;
17624 #endif
17625 #ifdef __cplusplus
17626 }
17627 #endif
17628
17629 int
17630 main ()
17631 {
17632 return f != dlopen;
17633   ;
17634   return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639   (eval $ac_link) 2>conftest.er1
17640   ac_status=$?
17641   grep -v '^ *+' conftest.er1 >conftest.err
17642   rm -f conftest.er1
17643   cat conftest.err >&5
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } &&
17646          { ac_try='test -z "$ac_cxx_werror_flag"
17647                          || test ! -s conftest.err'
17648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649   (eval $ac_try) 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; } &&
17653          { ac_try='test -s conftest$ac_exeext'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; }; then
17659   ac_cv_func_dlopen=yes
17660 else
17661   echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664 ac_cv_func_dlopen=no
17665 fi
17666 rm -f conftest.err conftest.$ac_objext \
17667       conftest$ac_exeext conftest.$ac_ext
17668 fi
17669 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17670 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17671 if test $ac_cv_func_dlopen = yes; then
17672   lt_cv_dlopen="dlopen"
17673 else
17674   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   ac_check_lib_save_LIBS=$LIBS
17680 LIBS="-ldl  $LIBS"
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h.  */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h.  */
17687
17688 /* Override any gcc2 internal prototype to avoid an error.  */
17689 #ifdef __cplusplus
17690 extern "C"
17691 #endif
17692 /* We use char because int might match the return type of a gcc2
17693    builtin and then its argument prototype would still apply.  */
17694 char dlopen ();
17695 int
17696 main ()
17697 {
17698 dlopen ();
17699   ;
17700   return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705   (eval $ac_link) 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } &&
17712          { ac_try='test -z "$ac_cxx_werror_flag"
17713                          || test ! -s conftest.err'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; } &&
17719          { ac_try='test -s conftest$ac_exeext'
17720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721   (eval $ac_try) 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; }; then
17725   ac_cv_lib_dl_dlopen=yes
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 ac_cv_lib_dl_dlopen=no
17731 fi
17732 rm -f conftest.err conftest.$ac_objext \
17733       conftest$ac_exeext conftest.$ac_ext
17734 LIBS=$ac_check_lib_save_LIBS
17735 fi
17736 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17737 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17738 if test $ac_cv_lib_dl_dlopen = yes; then
17739   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17740 else
17741   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17742 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17743 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746   ac_check_lib_save_LIBS=$LIBS
17747 LIBS="-lsvld  $LIBS"
17748 cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h.  */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h.  */
17754
17755 /* Override any gcc2 internal prototype to avoid an error.  */
17756 #ifdef __cplusplus
17757 extern "C"
17758 #endif
17759 /* We use char because int might match the return type of a gcc2
17760    builtin and then its argument prototype would still apply.  */
17761 char dlopen ();
17762 int
17763 main ()
17764 {
17765 dlopen ();
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772   (eval $ac_link) 2>conftest.er1
17773   ac_status=$?
17774   grep -v '^ *+' conftest.er1 >conftest.err
17775   rm -f conftest.er1
17776   cat conftest.err >&5
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); } &&
17779          { ac_try='test -z "$ac_cxx_werror_flag"
17780                          || test ! -s conftest.err'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; } &&
17786          { ac_try='test -s conftest$ac_exeext'
17787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788   (eval $ac_try) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; }; then
17792   ac_cv_lib_svld_dlopen=yes
17793 else
17794   echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797 ac_cv_lib_svld_dlopen=no
17798 fi
17799 rm -f conftest.err conftest.$ac_objext \
17800       conftest$ac_exeext conftest.$ac_ext
17801 LIBS=$ac_check_lib_save_LIBS
17802 fi
17803 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17804 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17805 if test $ac_cv_lib_svld_dlopen = yes; then
17806   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17807 else
17808   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17809 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17810 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17811   echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813   ac_check_lib_save_LIBS=$LIBS
17814 LIBS="-ldld  $LIBS"
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h.  */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h.  */
17821
17822 /* Override any gcc2 internal prototype to avoid an error.  */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 /* We use char because int might match the return type of a gcc2
17827    builtin and then its argument prototype would still apply.  */
17828 char dld_link ();
17829 int
17830 main ()
17831 {
17832 dld_link ();
17833   ;
17834   return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839   (eval $ac_link) 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_cxx_werror_flag"
17847                          || test ! -s conftest.err'
17848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849   (eval $ac_try) 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; } &&
17853          { ac_try='test -s conftest$ac_exeext'
17854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855   (eval $ac_try) 2>&5
17856   ac_status=$?
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); }; }; then
17859   ac_cv_lib_dld_dld_link=yes
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864 ac_cv_lib_dld_dld_link=no
17865 fi
17866 rm -f conftest.err conftest.$ac_objext \
17867       conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17869 fi
17870 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17871 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17872 if test $ac_cv_lib_dld_dld_link = yes; then
17873   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17874 fi
17875
17876
17877 fi
17878
17879
17880 fi
17881
17882
17883 fi
17884
17885
17886 fi
17887
17888
17889 fi
17890
17891     ;;
17892   esac
17893
17894   if test "x$lt_cv_dlopen" != xno; then
17895     enable_dlopen=yes
17896   else
17897     enable_dlopen=no
17898   fi
17899
17900   case $lt_cv_dlopen in
17901   dlopen)
17902     save_CPPFLAGS="$CPPFLAGS"
17903     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17904
17905     save_LDFLAGS="$LDFLAGS"
17906     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17907
17908     save_LIBS="$LIBS"
17909     LIBS="$lt_cv_dlopen_libs $LIBS"
17910
17911     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17912 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17913 if test "${lt_cv_dlopen_self+set}" = set; then
17914   echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916           if test "$cross_compiling" = yes; then :
17917   lt_cv_dlopen_self=cross
17918 else
17919   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17920   lt_status=$lt_dlunknown
17921   cat > conftest.$ac_ext <<EOF
17922 #line 17922 "configure"
17923 #include "confdefs.h"
17924
17925 #if HAVE_DLFCN_H
17926 #include <dlfcn.h>
17927 #endif
17928
17929 #include <stdio.h>
17930
17931 #ifdef RTLD_GLOBAL
17932 #  define LT_DLGLOBAL           RTLD_GLOBAL
17933 #else
17934 #  ifdef DL_GLOBAL
17935 #    define LT_DLGLOBAL         DL_GLOBAL
17936 #  else
17937 #    define LT_DLGLOBAL         0
17938 #  endif
17939 #endif
17940
17941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17942    find out it does not work in some platform. */
17943 #ifndef LT_DLLAZY_OR_NOW
17944 #  ifdef RTLD_LAZY
17945 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17946 #  else
17947 #    ifdef DL_LAZY
17948 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17949 #    else
17950 #      ifdef RTLD_NOW
17951 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17952 #      else
17953 #        ifdef DL_NOW
17954 #          define LT_DLLAZY_OR_NOW      DL_NOW
17955 #        else
17956 #          define LT_DLLAZY_OR_NOW      0
17957 #        endif
17958 #      endif
17959 #    endif
17960 #  endif
17961 #endif
17962
17963 #ifdef __cplusplus
17964 extern "C" void exit (int);
17965 #endif
17966
17967 void fnord() { int i=42;}
17968 int main ()
17969 {
17970   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17971   int status = $lt_dlunknown;
17972
17973   if (self)
17974     {
17975       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17976       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17977       /* dlclose (self); */
17978     }
17979
17980     exit (status);
17981 }
17982 EOF
17983   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984   (eval $ac_link) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17988     (./conftest; exit; ) 2>/dev/null
17989     lt_status=$?
17990     case x$lt_status in
17991       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17992       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17993       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17994     esac
17995   else :
17996     # compilation failed
17997     lt_cv_dlopen_self=no
17998   fi
17999 fi
18000 rm -fr conftest*
18001
18002
18003 fi
18004 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18005 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18006
18007     if test "x$lt_cv_dlopen_self" = xyes; then
18008       LDFLAGS="$LDFLAGS $link_static_flag"
18009       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18010 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18011 if test "${lt_cv_dlopen_self_static+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014           if test "$cross_compiling" = yes; then :
18015   lt_cv_dlopen_self_static=cross
18016 else
18017   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18018   lt_status=$lt_dlunknown
18019   cat > conftest.$ac_ext <<EOF
18020 #line 18020 "configure"
18021 #include "confdefs.h"
18022
18023 #if HAVE_DLFCN_H
18024 #include <dlfcn.h>
18025 #endif
18026
18027 #include <stdio.h>
18028
18029 #ifdef RTLD_GLOBAL
18030 #  define LT_DLGLOBAL           RTLD_GLOBAL
18031 #else
18032 #  ifdef DL_GLOBAL
18033 #    define LT_DLGLOBAL         DL_GLOBAL
18034 #  else
18035 #    define LT_DLGLOBAL         0
18036 #  endif
18037 #endif
18038
18039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18040    find out it does not work in some platform. */
18041 #ifndef LT_DLLAZY_OR_NOW
18042 #  ifdef RTLD_LAZY
18043 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18044 #  else
18045 #    ifdef DL_LAZY
18046 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18047 #    else
18048 #      ifdef RTLD_NOW
18049 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18050 #      else
18051 #        ifdef DL_NOW
18052 #          define LT_DLLAZY_OR_NOW      DL_NOW
18053 #        else
18054 #          define LT_DLLAZY_OR_NOW      0
18055 #        endif
18056 #      endif
18057 #    endif
18058 #  endif
18059 #endif
18060
18061 #ifdef __cplusplus
18062 extern "C" void exit (int);
18063 #endif
18064
18065 void fnord() { int i=42;}
18066 int main ()
18067 {
18068   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18069   int status = $lt_dlunknown;
18070
18071   if (self)
18072     {
18073       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18074       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18075       /* dlclose (self); */
18076     }
18077
18078     exit (status);
18079 }
18080 EOF
18081   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082   (eval $ac_link) 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18086     (./conftest; exit; ) 2>/dev/null
18087     lt_status=$?
18088     case x$lt_status in
18089       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18090       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18091       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18092     esac
18093   else :
18094     # compilation failed
18095     lt_cv_dlopen_self_static=no
18096   fi
18097 fi
18098 rm -fr conftest*
18099
18100
18101 fi
18102 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18103 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18104     fi
18105
18106     CPPFLAGS="$save_CPPFLAGS"
18107     LDFLAGS="$save_LDFLAGS"
18108     LIBS="$save_LIBS"
18109     ;;
18110   esac
18111
18112   case $lt_cv_dlopen_self in
18113   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18114   *) enable_dlopen_self=unknown ;;
18115   esac
18116
18117   case $lt_cv_dlopen_self_static in
18118   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18119   *) enable_dlopen_self_static=unknown ;;
18120   esac
18121 fi
18122
18123
18124 # The else clause should only fire when bootstrapping the
18125 # libtool distribution, otherwise you forgot to ship ltmain.sh
18126 # with your package, and you will get complaints that there are
18127 # no rules to generate ltmain.sh.
18128 if test -f "$ltmain"; then
18129   # See if we are running on zsh, and set the options which allow our commands through
18130   # without removal of \ escapes.
18131   if test -n "${ZSH_VERSION+set}" ; then
18132     setopt NO_GLOB_SUBST
18133   fi
18134   # Now quote all the things that may contain metacharacters while being
18135   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18136   # variables and quote the copies for generation of the libtool script.
18137   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18138     SED SHELL STRIP \
18139     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18140     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18141     deplibs_check_method reload_flag reload_cmds need_locks \
18142     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18143     lt_cv_sys_global_symbol_to_c_name_address \
18144     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18145     old_postinstall_cmds old_postuninstall_cmds \
18146     compiler_CXX \
18147     CC_CXX \
18148     LD_CXX \
18149     lt_prog_compiler_wl_CXX \
18150     lt_prog_compiler_pic_CXX \
18151     lt_prog_compiler_static_CXX \
18152     lt_prog_compiler_no_builtin_flag_CXX \
18153     export_dynamic_flag_spec_CXX \
18154     thread_safe_flag_spec_CXX \
18155     whole_archive_flag_spec_CXX \
18156     enable_shared_with_static_runtimes_CXX \
18157     old_archive_cmds_CXX \
18158     old_archive_from_new_cmds_CXX \
18159     predep_objects_CXX \
18160     postdep_objects_CXX \
18161     predeps_CXX \
18162     postdeps_CXX \
18163     compiler_lib_search_path_CXX \
18164     archive_cmds_CXX \
18165     archive_expsym_cmds_CXX \
18166     postinstall_cmds_CXX \
18167     postuninstall_cmds_CXX \
18168     old_archive_from_expsyms_cmds_CXX \
18169     allow_undefined_flag_CXX \
18170     no_undefined_flag_CXX \
18171     export_symbols_cmds_CXX \
18172     hardcode_libdir_flag_spec_CXX \
18173     hardcode_libdir_flag_spec_ld_CXX \
18174     hardcode_libdir_separator_CXX \
18175     hardcode_automatic_CXX \
18176     module_cmds_CXX \
18177     module_expsym_cmds_CXX \
18178     lt_cv_prog_compiler_c_o_CXX \
18179     exclude_expsyms_CXX \
18180     include_expsyms_CXX; do
18181
18182     case $var in
18183     old_archive_cmds_CXX | \
18184     old_archive_from_new_cmds_CXX | \
18185     archive_cmds_CXX | \
18186     archive_expsym_cmds_CXX | \
18187     module_cmds_CXX | \
18188     module_expsym_cmds_CXX | \
18189     old_archive_from_expsyms_cmds_CXX | \
18190     export_symbols_cmds_CXX | \
18191     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18192     postinstall_cmds | postuninstall_cmds | \
18193     old_postinstall_cmds | old_postuninstall_cmds | \
18194     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18195       # Double-quote double-evaled strings.
18196       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18197       ;;
18198     *)
18199       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18200       ;;
18201     esac
18202   done
18203
18204   case $lt_echo in
18205   *'\$0 --fallback-echo"')
18206     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18207     ;;
18208   esac
18209
18210 cfgfile="$ofile"
18211
18212   cat <<__EOF__ >> "$cfgfile"
18213 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18214
18215 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18216
18217 # Shell to use when invoking shell scripts.
18218 SHELL=$lt_SHELL
18219
18220 # Whether or not to build shared libraries.
18221 build_libtool_libs=$enable_shared
18222
18223 # Whether or not to build static libraries.
18224 build_old_libs=$enable_static
18225
18226 # Whether or not to add -lc for building shared libraries.
18227 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18228
18229 # Whether or not to disallow shared libs when runtime libs are static
18230 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18231
18232 # Whether or not to optimize for fast installation.
18233 fast_install=$enable_fast_install
18234
18235 # The host system.
18236 host_alias=$host_alias
18237 host=$host
18238
18239 # An echo program that does not interpret backslashes.
18240 echo=$lt_echo
18241
18242 # The archiver.
18243 AR=$lt_AR
18244 AR_FLAGS=$lt_AR_FLAGS
18245
18246 # A C compiler.
18247 LTCC=$lt_LTCC
18248
18249 # A language-specific compiler.
18250 CC=$lt_compiler_CXX
18251
18252 # Is the compiler the GNU C compiler?
18253 with_gcc=$GCC_CXX
18254
18255 # An ERE matcher.
18256 EGREP=$lt_EGREP
18257
18258 # The linker used to build libraries.
18259 LD=$lt_LD_CXX
18260
18261 # Whether we need hard or soft links.
18262 LN_S=$lt_LN_S
18263
18264 # A BSD-compatible nm program.
18265 NM=$lt_NM
18266
18267 # A symbol stripping program
18268 STRIP=$lt_STRIP
18269
18270 # Used to examine libraries when file_magic_cmd begins "file"
18271 MAGIC_CMD=$MAGIC_CMD
18272
18273 # Used on cygwin: DLL creation program.
18274 DLLTOOL="$DLLTOOL"
18275
18276 # Used on cygwin: object dumper.
18277 OBJDUMP="$OBJDUMP"
18278
18279 # Used on cygwin: assembler.
18280 AS="$AS"
18281
18282 # The name of the directory that contains temporary libtool files.
18283 objdir=$objdir
18284
18285 # How to create reloadable object files.
18286 reload_flag=$lt_reload_flag
18287 reload_cmds=$lt_reload_cmds
18288
18289 # How to pass a linker flag through the compiler.
18290 wl=$lt_lt_prog_compiler_wl_CXX
18291
18292 # Object file suffix (normally "o").
18293 objext="$ac_objext"
18294
18295 # Old archive suffix (normally "a").
18296 libext="$libext"
18297
18298 # Shared library suffix (normally ".so").
18299 shrext_cmds='$shrext_cmds'
18300
18301 # Executable file suffix (normally "").
18302 exeext="$exeext"
18303
18304 # Additional compiler flags for building library objects.
18305 pic_flag=$lt_lt_prog_compiler_pic_CXX
18306 pic_mode=$pic_mode
18307
18308 # What is the maximum length of a command?
18309 max_cmd_len=$lt_cv_sys_max_cmd_len
18310
18311 # Does compiler simultaneously support -c and -o options?
18312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18313
18314 # Must we lock files when doing compilation ?
18315 need_locks=$lt_need_locks
18316
18317 # Do we need the lib prefix for modules?
18318 need_lib_prefix=$need_lib_prefix
18319
18320 # Do we need a version for libraries?
18321 need_version=$need_version
18322
18323 # Whether dlopen is supported.
18324 dlopen_support=$enable_dlopen
18325
18326 # Whether dlopen of programs is supported.
18327 dlopen_self=$enable_dlopen_self
18328
18329 # Whether dlopen of statically linked programs is supported.
18330 dlopen_self_static=$enable_dlopen_self_static
18331
18332 # Compiler flag to prevent dynamic linking.
18333 link_static_flag=$lt_lt_prog_compiler_static_CXX
18334
18335 # Compiler flag to turn off builtin functions.
18336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18337
18338 # Compiler flag to allow reflexive dlopens.
18339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18340
18341 # Compiler flag to generate shared objects directly from archives.
18342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18343
18344 # Compiler flag to generate thread-safe objects.
18345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18346
18347 # Library versioning type.
18348 version_type=$version_type
18349
18350 # Format of library name prefix.
18351 libname_spec=$lt_libname_spec
18352
18353 # List of archive names.  First name is the real one, the rest are links.
18354 # The last name is the one that the linker finds with -lNAME.
18355 library_names_spec=$lt_library_names_spec
18356
18357 # The coded name of the library, if different from the real name.
18358 soname_spec=$lt_soname_spec
18359
18360 # Commands used to build and install an old-style archive.
18361 RANLIB=$lt_RANLIB
18362 old_archive_cmds=$lt_old_archive_cmds_CXX
18363 old_postinstall_cmds=$lt_old_postinstall_cmds
18364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18365
18366 # Create an old-style archive from a shared archive.
18367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18368
18369 # Create a temporary old-style archive to link instead of a shared archive.
18370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18371
18372 # Commands used to build and install a shared archive.
18373 archive_cmds=$lt_archive_cmds_CXX
18374 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18375 postinstall_cmds=$lt_postinstall_cmds
18376 postuninstall_cmds=$lt_postuninstall_cmds
18377
18378 # Commands used to build a loadable module (assumed same as above if empty)
18379 module_cmds=$lt_module_cmds_CXX
18380 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18381
18382 # Commands to strip libraries.
18383 old_striplib=$lt_old_striplib
18384 striplib=$lt_striplib
18385
18386 # Dependencies to place before the objects being linked to create a
18387 # shared library.
18388 predep_objects=$lt_predep_objects_CXX
18389
18390 # Dependencies to place after the objects being linked to create a
18391 # shared library.
18392 postdep_objects=$lt_postdep_objects_CXX
18393
18394 # Dependencies to place before the objects being linked to create a
18395 # shared library.
18396 predeps=$lt_predeps_CXX
18397
18398 # Dependencies to place after the objects being linked to create a
18399 # shared library.
18400 postdeps=$lt_postdeps_CXX
18401
18402 # The library search path used internally by the compiler when linking
18403 # a shared library.
18404 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18405
18406 # Method to check whether dependent libraries are shared objects.
18407 deplibs_check_method=$lt_deplibs_check_method
18408
18409 # Command to use when deplibs_check_method == file_magic.
18410 file_magic_cmd=$lt_file_magic_cmd
18411
18412 # Flag that allows shared libraries with undefined symbols to be built.
18413 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18414
18415 # Flag that forces no undefined symbols.
18416 no_undefined_flag=$lt_no_undefined_flag_CXX
18417
18418 # Commands used to finish a libtool library installation in a directory.
18419 finish_cmds=$lt_finish_cmds
18420
18421 # Same as above, but a single script fragment to be evaled but not shown.
18422 finish_eval=$lt_finish_eval
18423
18424 # Take the output of nm and produce a listing of raw symbols and C names.
18425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18426
18427 # Transform the output of nm in a proper C declaration
18428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18429
18430 # Transform the output of nm in a C name address pair
18431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18432
18433 # This is the shared library runtime path variable.
18434 runpath_var=$runpath_var
18435
18436 # This is the shared library path variable.
18437 shlibpath_var=$shlibpath_var
18438
18439 # Is shlibpath searched before the hard-coded library search path?
18440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18441
18442 # How to hardcode a shared library path into an executable.
18443 hardcode_action=$hardcode_action_CXX
18444
18445 # Whether we should hardcode library paths into libraries.
18446 hardcode_into_libs=$hardcode_into_libs
18447
18448 # Flag to hardcode \$libdir into a binary during linking.
18449 # This must work even if \$libdir does not exist.
18450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18451
18452 # If ld is used when linking, flag to hardcode \$libdir into
18453 # a binary during linking. This must work even if \$libdir does
18454 # not exist.
18455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18456
18457 # Whether we need a single -rpath flag with a separated argument.
18458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18459
18460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18461 # resulting binary.
18462 hardcode_direct=$hardcode_direct_CXX
18463
18464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18465 # resulting binary.
18466 hardcode_minus_L=$hardcode_minus_L_CXX
18467
18468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18469 # the resulting binary.
18470 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18471
18472 # Set to yes if building a shared library automatically hardcodes DIR into the library
18473 # and all subsequent libraries and executables linked against it.
18474 hardcode_automatic=$hardcode_automatic_CXX
18475
18476 # Variables whose values should be saved in libtool wrapper scripts and
18477 # restored at relink time.
18478 variables_saved_for_relink="$variables_saved_for_relink"
18479
18480 # Whether libtool must link a program against all its dependency libraries.
18481 link_all_deplibs=$link_all_deplibs_CXX
18482
18483 # Compile-time system search path for libraries
18484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18485
18486 # Run-time system search path for libraries
18487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18488
18489 # Fix the shell variable \$srcfile for the compiler.
18490 fix_srcfile_path="$fix_srcfile_path_CXX"
18491
18492 # Set to yes if exported symbols are required.
18493 always_export_symbols=$always_export_symbols_CXX
18494
18495 # The commands to list exported symbols.
18496 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18497
18498 # The commands to extract the exported symbol list from a shared archive.
18499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18500
18501 # Symbols that should not be listed in the preloaded symbols.
18502 exclude_expsyms=$lt_exclude_expsyms_CXX
18503
18504 # Symbols that must always be exported.
18505 include_expsyms=$lt_include_expsyms_CXX
18506
18507 # ### END LIBTOOL TAG CONFIG: $tagname
18508
18509 __EOF__
18510
18511
18512 else
18513   # If there is no Makefile yet, we rely on a make rule to execute
18514   # `config.status --recheck' to rerun these tests and create the
18515   # libtool script then.
18516   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18517   if test -f "$ltmain_in"; then
18518     test -f Makefile && make "$ltmain"
18519   fi
18520 fi
18521
18522
18523 ac_ext=c
18524 ac_cpp='$CPP $CPPFLAGS'
18525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18528
18529 CC=$lt_save_CC
18530 LDCXX=$LD
18531 LD=$lt_save_LD
18532 GCC=$lt_save_GCC
18533 with_gnu_ldcxx=$with_gnu_ld
18534 with_gnu_ld=$lt_save_with_gnu_ld
18535 lt_cv_path_LDCXX=$lt_cv_path_LD
18536 lt_cv_path_LD=$lt_save_path_LD
18537 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18538 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18539
18540         else
18541           tagname=""
18542         fi
18543         ;;
18544
18545       F77)
18546         if test -n "$F77" && test "X$F77" != "Xno"; then
18547
18548 ac_ext=f
18549 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18550 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18552
18553
18554 archive_cmds_need_lc_F77=no
18555 allow_undefined_flag_F77=
18556 always_export_symbols_F77=no
18557 archive_expsym_cmds_F77=
18558 export_dynamic_flag_spec_F77=
18559 hardcode_direct_F77=no
18560 hardcode_libdir_flag_spec_F77=
18561 hardcode_libdir_flag_spec_ld_F77=
18562 hardcode_libdir_separator_F77=
18563 hardcode_minus_L_F77=no
18564 hardcode_automatic_F77=no
18565 module_cmds_F77=
18566 module_expsym_cmds_F77=
18567 link_all_deplibs_F77=unknown
18568 old_archive_cmds_F77=$old_archive_cmds
18569 no_undefined_flag_F77=
18570 whole_archive_flag_spec_F77=
18571 enable_shared_with_static_runtimes_F77=no
18572
18573 # Source file extension for f77 test sources.
18574 ac_ext=f
18575
18576 # Object file extension for compiled f77 test sources.
18577 objext=o
18578 objext_F77=$objext
18579
18580 # Code to be used in simple compile tests
18581 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18582
18583 # Code to be used in simple link tests
18584 lt_simple_link_test_code="      program t\n      end\n"
18585
18586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18587
18588 # If no C compiler was specified, use CC.
18589 LTCC=${LTCC-"$CC"}
18590
18591 # Allow CC to be a program name with arguments.
18592 compiler=$CC
18593
18594
18595 # Allow CC to be a program name with arguments.
18596 lt_save_CC="$CC"
18597 CC=${F77-"f77"}
18598 compiler=$CC
18599 compiler_F77=$CC
18600 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18601
18602 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18603 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18604 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18605 echo "${ECHO_T}$can_build_shared" >&6
18606
18607 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18608 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18609 test "$can_build_shared" = "no" && enable_shared=no
18610
18611 # On AIX, shared libraries and static libraries use the same namespace, and
18612 # are all built from PIC.
18613 case "$host_os" in
18614 aix3*)
18615   test "$enable_shared" = yes && enable_static=no
18616   if test -n "$RANLIB"; then
18617     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18618     postinstall_cmds='$RANLIB $lib'
18619   fi
18620   ;;
18621 aix4* | aix5*)
18622   test "$enable_shared" = yes && enable_static=no
18623   ;;
18624 esac
18625 echo "$as_me:$LINENO: result: $enable_shared" >&5
18626 echo "${ECHO_T}$enable_shared" >&6
18627
18628 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18629 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18630 # Make sure either enable_shared or enable_static is yes.
18631 test "$enable_shared" = yes || enable_static=yes
18632 echo "$as_me:$LINENO: result: $enable_static" >&5
18633 echo "${ECHO_T}$enable_static" >&6
18634
18635 test "$ld_shlibs_F77" = no && can_build_shared=no
18636
18637 GCC_F77="$G77"
18638 LD_F77="$LD"
18639
18640 lt_prog_compiler_wl_F77=
18641 lt_prog_compiler_pic_F77=
18642 lt_prog_compiler_static_F77=
18643
18644 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18645 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18646
18647   if test "$GCC" = yes; then
18648     lt_prog_compiler_wl_F77='-Wl,'
18649     lt_prog_compiler_static_F77='-static'
18650
18651     case $host_os in
18652       aix*)
18653       # All AIX code is PIC.
18654       if test "$host_cpu" = ia64; then
18655         # AIX 5 now supports IA64 processor
18656         lt_prog_compiler_static_F77='-Bstatic'
18657       fi
18658       ;;
18659
18660     amigaos*)
18661       # FIXME: we need at least 68020 code to build shared libraries, but
18662       # adding the `-m68020' flag to GCC prevents building anything better,
18663       # like `-m68040'.
18664       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18665       ;;
18666
18667     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18668       # PIC is the default for these OSes.
18669       ;;
18670
18671     mingw* | pw32* | os2*)
18672       # This hack is so that the source file can tell whether it is being
18673       # built for inclusion in a dll (and should export symbols for example).
18674       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18675       ;;
18676
18677     darwin* | rhapsody*)
18678       # PIC is the default on this platform
18679       # Common symbols not allowed in MH_DYLIB files
18680       lt_prog_compiler_pic_F77='-fno-common'
18681       ;;
18682
18683     msdosdjgpp*)
18684       # Just because we use GCC doesn't mean we suddenly get shared libraries
18685       # on systems that don't support them.
18686       lt_prog_compiler_can_build_shared_F77=no
18687       enable_shared=no
18688       ;;
18689
18690     sysv4*MP*)
18691       if test -d /usr/nec; then
18692         lt_prog_compiler_pic_F77=-Kconform_pic
18693       fi
18694       ;;
18695
18696     hpux*)
18697       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18698       # not for PA HP-UX.
18699       case "$host_cpu" in
18700       hppa*64*|ia64*)
18701         # +Z the default
18702         ;;
18703       *)
18704         lt_prog_compiler_pic_F77='-fPIC'
18705         ;;
18706       esac
18707       ;;
18708
18709     *)
18710       lt_prog_compiler_pic_F77='-fPIC'
18711       ;;
18712     esac
18713   else
18714     # PORTME Check for flag to pass linker flags through the system compiler.
18715     case $host_os in
18716     aix*)
18717       lt_prog_compiler_wl_F77='-Wl,'
18718       if test "$host_cpu" = ia64; then
18719         # AIX 5 now supports IA64 processor
18720         lt_prog_compiler_static_F77='-Bstatic'
18721       else
18722         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18723       fi
18724       ;;
18725       darwin*)
18726         # PIC is the default on this platform
18727         # Common symbols not allowed in MH_DYLIB files
18728        case "$cc_basename" in
18729          xlc*)
18730          lt_prog_compiler_pic_F77='-qnocommon'
18731          lt_prog_compiler_wl_F77='-Wl,'
18732          ;;
18733        esac
18734        ;;
18735
18736     mingw* | pw32* | os2*)
18737       # This hack is so that the source file can tell whether it is being
18738       # built for inclusion in a dll (and should export symbols for example).
18739       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18740       ;;
18741
18742     hpux9* | hpux10* | hpux11*)
18743       lt_prog_compiler_wl_F77='-Wl,'
18744       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18745       # not for PA HP-UX.
18746       case "$host_cpu" in
18747       hppa*64*|ia64*)
18748         # +Z the default
18749         ;;
18750       *)
18751         lt_prog_compiler_pic_F77='+Z'
18752         ;;
18753       esac
18754       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18755       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18756       ;;
18757
18758     irix5* | irix6* | nonstopux*)
18759       lt_prog_compiler_wl_F77='-Wl,'
18760       # PIC (with -KPIC) is the default.
18761       lt_prog_compiler_static_F77='-non_shared'
18762       ;;
18763
18764     newsos6)
18765       lt_prog_compiler_pic_F77='-KPIC'
18766       lt_prog_compiler_static_F77='-Bstatic'
18767       ;;
18768
18769     linux*)
18770       case $CC in
18771       icc* | ecc*)
18772         lt_prog_compiler_wl_F77='-Wl,'
18773         lt_prog_compiler_pic_F77='-KPIC'
18774         lt_prog_compiler_static_F77='-static'
18775         ;;
18776       ccc*)
18777         lt_prog_compiler_wl_F77='-Wl,'
18778         # All Alpha code is PIC.
18779         lt_prog_compiler_static_F77='-non_shared'
18780         ;;
18781       esac
18782       ;;
18783
18784     osf3* | osf4* | osf5*)
18785       lt_prog_compiler_wl_F77='-Wl,'
18786       # All OSF/1 code is PIC.
18787       lt_prog_compiler_static_F77='-non_shared'
18788       ;;
18789
18790     sco3.2v5*)
18791       lt_prog_compiler_pic_F77='-Kpic'
18792       lt_prog_compiler_static_F77='-dn'
18793       ;;
18794
18795     solaris*)
18796       lt_prog_compiler_wl_F77='-Wl,'
18797       lt_prog_compiler_pic_F77='-KPIC'
18798       lt_prog_compiler_static_F77='-Bstatic'
18799       ;;
18800
18801     sunos4*)
18802       lt_prog_compiler_wl_F77='-Qoption ld '
18803       lt_prog_compiler_pic_F77='-PIC'
18804       lt_prog_compiler_static_F77='-Bstatic'
18805       ;;
18806
18807     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18808       lt_prog_compiler_wl_F77='-Wl,'
18809       lt_prog_compiler_pic_F77='-KPIC'
18810       lt_prog_compiler_static_F77='-Bstatic'
18811       ;;
18812
18813     sysv4*MP*)
18814       if test -d /usr/nec ;then
18815         lt_prog_compiler_pic_F77='-Kconform_pic'
18816         lt_prog_compiler_static_F77='-Bstatic'
18817       fi
18818       ;;
18819
18820     uts4*)
18821       lt_prog_compiler_pic_F77='-pic'
18822       lt_prog_compiler_static_F77='-Bstatic'
18823       ;;
18824
18825     *)
18826       lt_prog_compiler_can_build_shared_F77=no
18827       ;;
18828     esac
18829   fi
18830
18831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18832 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18833
18834 #
18835 # Check to make sure the PIC flag actually works.
18836 #
18837 if test -n "$lt_prog_compiler_pic_F77"; then
18838
18839 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18840 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18841 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18842   echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844   lt_prog_compiler_pic_works_F77=no
18845   ac_outfile=conftest.$ac_objext
18846    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18847    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18848    # Insert the option either (1) after the last *FLAGS variable, or
18849    # (2) before a word containing "conftest.", or (3) at the end.
18850    # Note that $ac_compile itself does not contain backslashes and begins
18851    # with a dollar sign (not a hyphen), so the echo should work correctly.
18852    # The option is referenced via a variable to avoid confusing sed.
18853    lt_compile=`echo "$ac_compile" | $SED \
18854    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18855    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18856    -e 's:$: $lt_compiler_flag:'`
18857    (eval echo "\"\$as_me:18857: $lt_compile\"" >&5)
18858    (eval "$lt_compile" 2>conftest.err)
18859    ac_status=$?
18860    cat conftest.err >&5
18861    echo "$as_me:18861: \$? = $ac_status" >&5
18862    if (exit $ac_status) && test -s "$ac_outfile"; then
18863      # The compiler can only warn and ignore the option if not recognized
18864      # So say no if there are warnings
18865      if test ! -s conftest.err; then
18866        lt_prog_compiler_pic_works_F77=yes
18867      fi
18868    fi
18869    $rm conftest*
18870
18871 fi
18872 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18873 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18874
18875 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18876     case $lt_prog_compiler_pic_F77 in
18877      "" | " "*) ;;
18878      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18879      esac
18880 else
18881     lt_prog_compiler_pic_F77=
18882      lt_prog_compiler_can_build_shared_F77=no
18883 fi
18884
18885 fi
18886 case "$host_os" in
18887   # For platforms which do not support PIC, -DPIC is meaningless:
18888   *djgpp*)
18889     lt_prog_compiler_pic_F77=
18890     ;;
18891   *)
18892     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18893     ;;
18894 esac
18895
18896 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18897 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18898 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   lt_cv_prog_compiler_c_o_F77=no
18902    $rm -r conftest 2>/dev/null
18903    mkdir conftest
18904    cd conftest
18905    mkdir out
18906    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18907
18908    lt_compiler_flag="-o out/conftest2.$ac_objext"
18909    # Insert the option either (1) after the last *FLAGS variable, or
18910    # (2) before a word containing "conftest.", or (3) at the end.
18911    # Note that $ac_compile itself does not contain backslashes and begins
18912    # with a dollar sign (not a hyphen), so the echo should work correctly.
18913    lt_compile=`echo "$ac_compile" | $SED \
18914    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18916    -e 's:$: $lt_compiler_flag:'`
18917    (eval echo "\"\$as_me:18917: $lt_compile\"" >&5)
18918    (eval "$lt_compile" 2>out/conftest.err)
18919    ac_status=$?
18920    cat out/conftest.err >&5
18921    echo "$as_me:18921: \$? = $ac_status" >&5
18922    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18923    then
18924      # The compiler can only warn and ignore the option if not recognized
18925      # So say no if there are warnings
18926      if test ! -s out/conftest.err; then
18927        lt_cv_prog_compiler_c_o_F77=yes
18928      fi
18929    fi
18930    chmod u+w .
18931    $rm conftest*
18932    # SGI C++ compiler will create directory out/ii_files/ for
18933    # template instantiation
18934    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18935    $rm out/* && rmdir out
18936    cd ..
18937    rmdir conftest
18938    $rm conftest*
18939
18940 fi
18941 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18942 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18943
18944
18945 hard_links="nottested"
18946 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18947   # do not overwrite the value of need_locks provided by the user
18948   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18949 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18950   hard_links=yes
18951   $rm conftest*
18952   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18953   touch conftest.a
18954   ln conftest.a conftest.b 2>&5 || hard_links=no
18955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18956   echo "$as_me:$LINENO: result: $hard_links" >&5
18957 echo "${ECHO_T}$hard_links" >&6
18958   if test "$hard_links" = no; then
18959     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18960 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18961     need_locks=warn
18962   fi
18963 else
18964   need_locks=no
18965 fi
18966
18967 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18968 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18969
18970   runpath_var=
18971   allow_undefined_flag_F77=
18972   enable_shared_with_static_runtimes_F77=no
18973   archive_cmds_F77=
18974   archive_expsym_cmds_F77=
18975   old_archive_From_new_cmds_F77=
18976   old_archive_from_expsyms_cmds_F77=
18977   export_dynamic_flag_spec_F77=
18978   whole_archive_flag_spec_F77=
18979   thread_safe_flag_spec_F77=
18980   hardcode_libdir_flag_spec_F77=
18981   hardcode_libdir_flag_spec_ld_F77=
18982   hardcode_libdir_separator_F77=
18983   hardcode_direct_F77=no
18984   hardcode_minus_L_F77=no
18985   hardcode_shlibpath_var_F77=unsupported
18986   link_all_deplibs_F77=unknown
18987   hardcode_automatic_F77=no
18988   module_cmds_F77=
18989   module_expsym_cmds_F77=
18990   always_export_symbols_F77=no
18991   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18992   # include_expsyms should be a list of space-separated symbols to be *always*
18993   # included in the symbol list
18994   include_expsyms_F77=
18995   # exclude_expsyms can be an extended regexp of symbols to exclude
18996   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18997   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18998   # as well as any symbol that contains `d'.
18999   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19000   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19001   # platforms (ab)use it in PIC code, but their linkers get confused if
19002   # the symbol is explicitly referenced.  Since portable code cannot
19003   # rely on this symbol name, it's probably fine to never include it in
19004   # preloaded symbol tables.
19005   extract_expsyms_cmds=
19006
19007   case $host_os in
19008   cygwin* | mingw* | pw32*)
19009     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19010     # When not using gcc, we currently assume that we are using
19011     # Microsoft Visual C++.
19012     if test "$GCC" != yes; then
19013       with_gnu_ld=no
19014     fi
19015     ;;
19016   openbsd*)
19017     with_gnu_ld=no
19018     ;;
19019   esac
19020
19021   ld_shlibs_F77=yes
19022   if test "$with_gnu_ld" = yes; then
19023     # If archive_cmds runs LD, not CC, wlarc should be empty
19024     wlarc='${wl}'
19025
19026     # See if GNU ld supports shared libraries.
19027     case $host_os in
19028     aix3* | aix4* | aix5*)
19029       # On AIX/PPC, the GNU linker is very broken
19030       if test "$host_cpu" != ia64; then
19031         ld_shlibs_F77=no
19032         cat <<EOF 1>&2
19033
19034 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19035 *** to be unable to reliably create shared libraries on AIX.
19036 *** Therefore, libtool is disabling shared libraries support.  If you
19037 *** really care for shared libraries, you may want to modify your PATH
19038 *** so that a non-GNU linker is found, and then restart.
19039
19040 EOF
19041       fi
19042       ;;
19043
19044     amigaos*)
19045       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)'
19046       hardcode_libdir_flag_spec_F77='-L$libdir'
19047       hardcode_minus_L_F77=yes
19048
19049       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19050       # that the semantics of dynamic libraries on AmigaOS, at least up
19051       # to version 4, is to share data among multiple programs linked
19052       # with the same dynamic library.  Since this doesn't match the
19053       # behavior of shared libraries on other platforms, we can't use
19054       # them.
19055       ld_shlibs_F77=no
19056       ;;
19057
19058     beos*)
19059       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19060         allow_undefined_flag_F77=unsupported
19061         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19062         # support --undefined.  This deserves some investigation.  FIXME
19063         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19064       else
19065         ld_shlibs_F77=no
19066       fi
19067       ;;
19068
19069     cygwin* | mingw* | pw32*)
19070       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19071       # as there is no search path for DLLs.
19072       hardcode_libdir_flag_spec_F77='-L$libdir'
19073       allow_undefined_flag_F77=unsupported
19074       always_export_symbols_F77=no
19075       enable_shared_with_static_runtimes_F77=yes
19076       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19077
19078       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19079         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19080         # If the export-symbols file already is a .def file (1st line
19081         # is EXPORTS), use it as is; otherwise, prepend...
19082         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19083           cp $export_symbols $output_objdir/$soname.def;
19084         else
19085           echo EXPORTS > $output_objdir/$soname.def;
19086           cat $export_symbols >> $output_objdir/$soname.def;
19087         fi~
19088         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19089       else
19090         ld_shlibs=no
19091       fi
19092       ;;
19093
19094     netbsd*)
19095       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19096         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19097         wlarc=
19098       else
19099         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19100         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19101       fi
19102       ;;
19103
19104     solaris* | sysv5*)
19105       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19106         ld_shlibs_F77=no
19107         cat <<EOF 1>&2
19108
19109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19110 *** create shared libraries on Solaris systems.  Therefore, libtool
19111 *** is disabling shared libraries support.  We urge you to upgrade GNU
19112 *** binutils to release 2.9.1 or newer.  Another option is to modify
19113 *** your PATH or compiler configuration so that the native linker is
19114 *** used, and then restart.
19115
19116 EOF
19117       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19118         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19119         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19120       else
19121         ld_shlibs_F77=no
19122       fi
19123       ;;
19124
19125     sunos4*)
19126       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19127       wlarc=
19128       hardcode_direct_F77=yes
19129       hardcode_shlibpath_var_F77=no
19130       ;;
19131
19132   linux*)
19133     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19134         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135         archive_cmds_F77="$tmp_archive_cmds"
19136       supports_anon_versioning=no
19137       case `$LD -v 2>/dev/null` in
19138         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19139         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19140         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19141         *\ 2.11.*) ;; # other 2.11 versions
19142         *) supports_anon_versioning=yes ;;
19143       esac
19144       if test $supports_anon_versioning = yes; then
19145         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19146 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19147 $echo "local: *; };" >> $output_objdir/$libname.ver~
19148         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19149       else
19150         archive_expsym_cmds_F77="$tmp_archive_cmds"
19151       fi
19152     else
19153       ld_shlibs_F77=no
19154     fi
19155     ;;
19156
19157     *)
19158       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19159         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19160         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19161       else
19162         ld_shlibs_F77=no
19163       fi
19164       ;;
19165     esac
19166
19167     if test "$ld_shlibs_F77" = yes; then
19168       runpath_var=LD_RUN_PATH
19169       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19170       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19171       # ancient GNU ld didn't support --whole-archive et. al.
19172       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19173         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19174       else
19175         whole_archive_flag_spec_F77=
19176       fi
19177     fi
19178   else
19179     # PORTME fill in a description of your system's linker (not GNU ld)
19180     case $host_os in
19181     aix3*)
19182       allow_undefined_flag_F77=unsupported
19183       always_export_symbols_F77=yes
19184       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'
19185       # Note: this linker hardcodes the directories in LIBPATH if there
19186       # are no directories specified by -L.
19187       hardcode_minus_L_F77=yes
19188       if test "$GCC" = yes && test -z "$link_static_flag"; then
19189         # Neither direct hardcoding nor static linking is supported with a
19190         # broken collect2.
19191         hardcode_direct_F77=unsupported
19192       fi
19193       ;;
19194
19195     aix4* | aix5*)
19196       if test "$host_cpu" = ia64; then
19197         # On IA64, the linker does run time linking by default, so we don't
19198         # have to do anything special.
19199         aix_use_runtimelinking=no
19200         exp_sym_flag='-Bexport'
19201         no_entry_flag=""
19202       else
19203         # If we're using GNU nm, then we don't want the "-C" option.
19204         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19205         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19206           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'
19207         else
19208           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'
19209         fi
19210         aix_use_runtimelinking=no
19211
19212         # Test if we are trying to use run time linking or normal
19213         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19214         # need to do runtime linking.
19215         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19216           for ld_flag in $LDFLAGS; do
19217           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19218             aix_use_runtimelinking=yes
19219             break
19220           fi
19221           done
19222         esac
19223
19224         exp_sym_flag='-bexport'
19225         no_entry_flag='-bnoentry'
19226       fi
19227
19228       # When large executables or shared objects are built, AIX ld can
19229       # have problems creating the table of contents.  If linking a library
19230       # or program results in "error TOC overflow" add -mminimal-toc to
19231       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19232       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19233
19234       archive_cmds_F77=''
19235       hardcode_direct_F77=yes
19236       hardcode_libdir_separator_F77=':'
19237       link_all_deplibs_F77=yes
19238
19239       if test "$GCC" = yes; then
19240         case $host_os in aix4.012|aix4.012.*)
19241         # We only want to do this on AIX 4.2 and lower, the check
19242         # below for broken collect2 doesn't work under 4.3+
19243           collect2name=`${CC} -print-prog-name=collect2`
19244           if test -f "$collect2name" && \
19245            strings "$collect2name" | grep resolve_lib_name >/dev/null
19246           then
19247           # We have reworked collect2
19248           hardcode_direct_F77=yes
19249           else
19250           # We have old collect2
19251           hardcode_direct_F77=unsupported
19252           # It fails to find uninstalled libraries when the uninstalled
19253           # path is not listed in the libpath.  Setting hardcode_minus_L
19254           # to unsupported forces relinking
19255           hardcode_minus_L_F77=yes
19256           hardcode_libdir_flag_spec_F77='-L$libdir'
19257           hardcode_libdir_separator_F77=
19258           fi
19259         esac
19260         shared_flag='-shared'
19261       else
19262         # not using gcc
19263         if test "$host_cpu" = ia64; then
19264         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19265         # chokes on -Wl,-G. The following line is correct:
19266           shared_flag='-G'
19267         else
19268         if test "$aix_use_runtimelinking" = yes; then
19269             shared_flag='${wl}-G'
19270           else
19271             shared_flag='${wl}-bM:SRE'
19272         fi
19273         fi
19274       fi
19275
19276       # It seems that -bexpall does not export symbols beginning with
19277       # underscore (_), so it is better to generate a list of symbols to export.
19278       always_export_symbols_F77=yes
19279       if test "$aix_use_runtimelinking" = yes; then
19280         # Warning - without using the other runtime loading flags (-brtl),
19281         # -berok will link without error, but may produce a broken library.
19282         allow_undefined_flag_F77='-berok'
19283        # Determine the default libpath from the value encoded in an empty executable.
19284        cat >conftest.$ac_ext <<_ACEOF
19285       program main
19286
19287       end
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291   (eval $ac_link) 2>conftest.er1
19292   ac_status=$?
19293   grep -v '^ *+' conftest.er1 >conftest.err
19294   rm -f conftest.er1
19295   cat conftest.err >&5
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); } &&
19298          { ac_try='test -z "$ac_f77_werror_flag"
19299                          || test ! -s conftest.err'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; } &&
19305          { ac_try='test -s conftest$ac_exeext'
19306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307   (eval $ac_try) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311
19312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19313 }'`
19314 # Check for a 64-bit object if we didn't find anything.
19315 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; }
19316 }'`; fi
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321 fi
19322 rm -f conftest.err conftest.$ac_objext \
19323       conftest$ac_exeext conftest.$ac_ext
19324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19325
19326        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19327         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"
19328        else
19329         if test "$host_cpu" = ia64; then
19330           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19331           allow_undefined_flag_F77="-z nodefs"
19332           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"
19333         else
19334          # Determine the default libpath from the value encoded in an empty executable.
19335          cat >conftest.$ac_ext <<_ACEOF
19336       program main
19337
19338       end
19339 _ACEOF
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342   (eval $ac_link) 2>conftest.er1
19343   ac_status=$?
19344   grep -v '^ *+' conftest.er1 >conftest.err
19345   rm -f conftest.er1
19346   cat conftest.err >&5
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } &&
19349          { ac_try='test -z "$ac_f77_werror_flag"
19350                          || test ! -s conftest.err'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; } &&
19356          { ac_try='test -s conftest$ac_exeext'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; }; then
19362
19363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19364 }'`
19365 # Check for a 64-bit object if we didn't find anything.
19366 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; }
19367 }'`; fi
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 fi
19373 rm -f conftest.err conftest.$ac_objext \
19374       conftest$ac_exeext conftest.$ac_ext
19375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19376
19377          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19378           # Warning - without using the other run time loading flags,
19379           # -berok will link without error, but may produce a broken library.
19380           no_undefined_flag_F77=' ${wl}-bernotok'
19381           allow_undefined_flag_F77=' ${wl}-berok'
19382           # -bexpall does not export symbols beginning with underscore (_)
19383           always_export_symbols_F77=yes
19384           # Exported symbols can be pulled into shared objects from archives
19385           whole_archive_flag_spec_F77=' '
19386           archive_cmds_need_lc_F77=yes
19387           # This is similar to how AIX traditionally builds it's shared libraries.
19388           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'
19389         fi
19390       fi
19391       ;;
19392
19393     amigaos*)
19394       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)'
19395       hardcode_libdir_flag_spec_F77='-L$libdir'
19396       hardcode_minus_L_F77=yes
19397       # see comment about different semantics on the GNU ld section
19398       ld_shlibs_F77=no
19399       ;;
19400
19401     bsdi[45]*)
19402       export_dynamic_flag_spec_F77=-rdynamic
19403       ;;
19404
19405     cygwin* | mingw* | pw32*)
19406       # When not using gcc, we currently assume that we are using
19407       # Microsoft Visual C++.
19408       # hardcode_libdir_flag_spec is actually meaningless, as there is
19409       # no search path for DLLs.
19410       hardcode_libdir_flag_spec_F77=' '
19411       allow_undefined_flag_F77=unsupported
19412       # Tell ltmain to make .lib files, not .a files.
19413       libext=lib
19414       # Tell ltmain to make .dll files, not .so files.
19415       shrext_cmds=".dll"
19416       # FIXME: Setting linknames here is a bad hack.
19417       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19418       # The linker will automatically build a .lib file if we build a DLL.
19419       old_archive_From_new_cmds_F77='true'
19420       # FIXME: Should let the user specify the lib program.
19421       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19422       fix_srcfile_path='`cygpath -w "$srcfile"`'
19423       enable_shared_with_static_runtimes_F77=yes
19424       ;;
19425
19426     darwin* | rhapsody*)
19427       case "$host_os" in
19428         rhapsody* | darwin1.[012])
19429          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19430          ;;
19431        *) # Darwin 1.3 on
19432          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19433            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19434          else
19435            case ${MACOSX_DEPLOYMENT_TARGET} in
19436              10.[012])
19437                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19438                ;;
19439              10.*)
19440                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19441                ;;
19442            esac
19443          fi
19444          ;;
19445       esac
19446       archive_cmds_need_lc_F77=no
19447       hardcode_direct_F77=no
19448       hardcode_automatic_F77=yes
19449       hardcode_shlibpath_var_F77=unsupported
19450       whole_archive_flag_spec_F77=''
19451       link_all_deplibs_F77=yes
19452     if test "$GCC" = yes ; then
19453         output_verbose_link_cmd='echo'
19454         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19455       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19456       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19457       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}'
19458       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}'
19459     else
19460       case "$cc_basename" in
19461         xlc*)
19462          output_verbose_link_cmd='echo'
19463          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19464          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19465           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19466          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}'
19467           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}'
19468           ;;
19469        *)
19470          ld_shlibs_F77=no
19471           ;;
19472       esac
19473     fi
19474       ;;
19475
19476     dgux*)
19477       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19478       hardcode_libdir_flag_spec_F77='-L$libdir'
19479       hardcode_shlibpath_var_F77=no
19480       ;;
19481
19482     freebsd1*)
19483       ld_shlibs_F77=no
19484       ;;
19485
19486     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19487     # support.  Future versions do this automatically, but an explicit c++rt0.o
19488     # does not break anything, and helps significantly (at the cost of a little
19489     # extra space).
19490     freebsd2.2*)
19491       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19492       hardcode_libdir_flag_spec_F77='-R$libdir'
19493       hardcode_direct_F77=yes
19494       hardcode_shlibpath_var_F77=no
19495       ;;
19496
19497     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19498     freebsd2*)
19499       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19500       hardcode_direct_F77=yes
19501       hardcode_minus_L_F77=yes
19502       hardcode_shlibpath_var_F77=no
19503       ;;
19504
19505     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19506     freebsd* | kfreebsd*-gnu)
19507       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19508       hardcode_libdir_flag_spec_F77='-R$libdir'
19509       hardcode_direct_F77=yes
19510       hardcode_shlibpath_var_F77=no
19511       ;;
19512
19513     hpux9*)
19514       if test "$GCC" = yes; then
19515         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'
19516       else
19517         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'
19518       fi
19519       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19520       hardcode_libdir_separator_F77=:
19521       hardcode_direct_F77=yes
19522
19523       # hardcode_minus_L: Not really in the search PATH,
19524       # but as the default location of the library.
19525       hardcode_minus_L_F77=yes
19526       export_dynamic_flag_spec_F77='${wl}-E'
19527       ;;
19528
19529     hpux10* | hpux11*)
19530       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19531         case "$host_cpu" in
19532         hppa*64*|ia64*)
19533           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19534           ;;
19535         *)
19536           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19537           ;;
19538         esac
19539       else
19540         case "$host_cpu" in
19541         hppa*64*|ia64*)
19542           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19543           ;;
19544         *)
19545           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19546           ;;
19547         esac
19548       fi
19549       if test "$with_gnu_ld" = no; then
19550         case "$host_cpu" in
19551         hppa*64*)
19552           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19553           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19554           hardcode_libdir_separator_F77=:
19555           hardcode_direct_F77=no
19556           hardcode_shlibpath_var_F77=no
19557           ;;
19558         ia64*)
19559           hardcode_libdir_flag_spec_F77='-L$libdir'
19560           hardcode_direct_F77=no
19561           hardcode_shlibpath_var_F77=no
19562
19563           # hardcode_minus_L: Not really in the search PATH,
19564           # but as the default location of the library.
19565           hardcode_minus_L_F77=yes
19566           ;;
19567         *)
19568           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19569           hardcode_libdir_separator_F77=:
19570           hardcode_direct_F77=yes
19571           export_dynamic_flag_spec_F77='${wl}-E'
19572
19573           # hardcode_minus_L: Not really in the search PATH,
19574           # but as the default location of the library.
19575           hardcode_minus_L_F77=yes
19576           ;;
19577         esac
19578       fi
19579       ;;
19580
19581     irix5* | irix6* | nonstopux*)
19582       if test "$GCC" = yes; then
19583         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'
19584       else
19585         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'
19586         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19587       fi
19588       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19589       hardcode_libdir_separator_F77=:
19590       link_all_deplibs_F77=yes
19591       ;;
19592
19593     netbsd*)
19594       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19595         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19596       else
19597         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19598       fi
19599       hardcode_libdir_flag_spec_F77='-R$libdir'
19600       hardcode_direct_F77=yes
19601       hardcode_shlibpath_var_F77=no
19602       ;;
19603
19604     newsos6)
19605       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19606       hardcode_direct_F77=yes
19607       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19608       hardcode_libdir_separator_F77=:
19609       hardcode_shlibpath_var_F77=no
19610       ;;
19611
19612     openbsd*)
19613       hardcode_direct_F77=yes
19614       hardcode_shlibpath_var_F77=no
19615       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19616         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19617         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19618         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19619         export_dynamic_flag_spec_F77='${wl}-E'
19620       else
19621        case $host_os in
19622          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19623            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19624            hardcode_libdir_flag_spec_F77='-R$libdir'
19625            ;;
19626          *)
19627            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19628            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19629            ;;
19630        esac
19631       fi
19632       ;;
19633
19634     os2*)
19635       hardcode_libdir_flag_spec_F77='-L$libdir'
19636       hardcode_minus_L_F77=yes
19637       allow_undefined_flag_F77=unsupported
19638       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'
19639       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19640       ;;
19641
19642     osf3*)
19643       if test "$GCC" = yes; then
19644         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19645         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'
19646       else
19647         allow_undefined_flag_F77=' -expect_unresolved \*'
19648         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'
19649       fi
19650       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19651       hardcode_libdir_separator_F77=:
19652       ;;
19653
19654     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19655       if test "$GCC" = yes; then
19656         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19657         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'
19658         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19659       else
19660         allow_undefined_flag_F77=' -expect_unresolved \*'
19661         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'
19662         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~
19663         $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'
19664
19665         # Both c and cxx compiler support -rpath directly
19666         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19667       fi
19668       hardcode_libdir_separator_F77=:
19669       ;;
19670
19671     sco3.2v5*)
19672       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19673       hardcode_shlibpath_var_F77=no
19674       export_dynamic_flag_spec_F77='${wl}-Bexport'
19675       runpath_var=LD_RUN_PATH
19676       hardcode_runpath_var=yes
19677       ;;
19678
19679     solaris*)
19680       no_undefined_flag_F77=' -z text'
19681       if test "$GCC" = yes; then
19682         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19683         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19684           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19685       else
19686         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19687         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19688         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19689       fi
19690       hardcode_libdir_flag_spec_F77='-R$libdir'
19691       hardcode_shlibpath_var_F77=no
19692       case $host_os in
19693       solaris2.[0-5] | solaris2.[0-5].*) ;;
19694       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19695         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19696       esac
19697       link_all_deplibs_F77=yes
19698       ;;
19699
19700     sunos4*)
19701       if test "x$host_vendor" = xsequent; then
19702         # Use $CC to link under sequent, because it throws in some extra .o
19703         # files that make .init and .fini sections work.
19704         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19705       else
19706         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19707       fi
19708       hardcode_libdir_flag_spec_F77='-L$libdir'
19709       hardcode_direct_F77=yes
19710       hardcode_minus_L_F77=yes
19711       hardcode_shlibpath_var_F77=no
19712       ;;
19713
19714     sysv4)
19715       case $host_vendor in
19716         sni)
19717           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19718           hardcode_direct_F77=yes # is this really true???
19719         ;;
19720         siemens)
19721           ## LD is ld it makes a PLAMLIB
19722           ## CC just makes a GrossModule.
19723           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19724           reload_cmds_F77='$CC -r -o $output$reload_objs'
19725           hardcode_direct_F77=no
19726         ;;
19727         motorola)
19728           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19729           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19730         ;;
19731       esac
19732       runpath_var='LD_RUN_PATH'
19733       hardcode_shlibpath_var_F77=no
19734       ;;
19735
19736     sysv4.3*)
19737       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19738       hardcode_shlibpath_var_F77=no
19739       export_dynamic_flag_spec_F77='-Bexport'
19740       ;;
19741
19742     sysv4*MP*)
19743       if test -d /usr/nec; then
19744         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19745         hardcode_shlibpath_var_F77=no
19746         runpath_var=LD_RUN_PATH
19747         hardcode_runpath_var=yes
19748         ld_shlibs_F77=yes
19749       fi
19750       ;;
19751
19752     sysv4.2uw2*)
19753       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19754       hardcode_direct_F77=yes
19755       hardcode_minus_L_F77=no
19756       hardcode_shlibpath_var_F77=no
19757       hardcode_runpath_var=yes
19758       runpath_var=LD_RUN_PATH
19759       ;;
19760
19761    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19762       no_undefined_flag_F77='${wl}-z ${wl}text'
19763       if test "$GCC" = yes; then
19764         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19765       else
19766         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19767       fi
19768       runpath_var='LD_RUN_PATH'
19769       hardcode_shlibpath_var_F77=no
19770       ;;
19771
19772     sysv5*)
19773       no_undefined_flag_F77=' -z text'
19774       # $CC -shared without GNU ld will not create a library from C++
19775       # object files and a static libstdc++, better avoid it by now
19776       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19778                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19779       hardcode_libdir_flag_spec_F77=
19780       hardcode_shlibpath_var_F77=no
19781       runpath_var='LD_RUN_PATH'
19782       ;;
19783
19784     uts4*)
19785       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19786       hardcode_libdir_flag_spec_F77='-L$libdir'
19787       hardcode_shlibpath_var_F77=no
19788       ;;
19789
19790     *)
19791       ld_shlibs_F77=no
19792       ;;
19793     esac
19794   fi
19795
19796 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19797 echo "${ECHO_T}$ld_shlibs_F77" >&6
19798 test "$ld_shlibs_F77" = no && can_build_shared=no
19799
19800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19801 if test "$GCC" = yes; then
19802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19803 fi
19804
19805 #
19806 # Do we need to explicitly link libc?
19807 #
19808 case "x$archive_cmds_need_lc_F77" in
19809 x|xyes)
19810   # Assume -lc should be added
19811   archive_cmds_need_lc_F77=yes
19812
19813   if test "$enable_shared" = yes && test "$GCC" = yes; then
19814     case $archive_cmds_F77 in
19815     *'~'*)
19816       # FIXME: we may have to deal with multi-command sequences.
19817       ;;
19818     '$CC '*)
19819       # Test whether the compiler implicitly links with -lc since on some
19820       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19821       # to ld, don't add -lc before -lgcc.
19822       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19824       $rm conftest*
19825       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19826
19827       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19828   (eval $ac_compile) 2>&5
19829   ac_status=$?
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } 2>conftest.err; then
19832         soname=conftest
19833         lib=conftest
19834         libobjs=conftest.$ac_objext
19835         deplibs=
19836         wl=$lt_prog_compiler_wl_F77
19837         compiler_flags=-v
19838         linker_flags=-v
19839         verstring=
19840         output_objdir=.
19841         libname=conftest
19842         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19843         allow_undefined_flag_F77=
19844         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19845   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); }
19849         then
19850           archive_cmds_need_lc_F77=no
19851         else
19852           archive_cmds_need_lc_F77=yes
19853         fi
19854         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19855       else
19856         cat conftest.err 1>&5
19857       fi
19858       $rm conftest*
19859       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19860 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19861       ;;
19862     esac
19863   fi
19864   ;;
19865 esac
19866
19867 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19868 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19869 library_names_spec=
19870 libname_spec='lib$name'
19871 soname_spec=
19872 shrext_cmds=".so"
19873 postinstall_cmds=
19874 postuninstall_cmds=
19875 finish_cmds=
19876 finish_eval=
19877 shlibpath_var=
19878 shlibpath_overrides_runpath=unknown
19879 version_type=none
19880 dynamic_linker="$host_os ld.so"
19881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19882 if test "$GCC" = yes; then
19883   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19884   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19885     # if the path contains ";" then we assume it to be the separator
19886     # otherwise default to the standard path separator (i.e. ":") - it is
19887     # assumed that no part of a normal pathname contains ";" but that should
19888     # okay in the real world where ";" in dirpaths is itself problematic.
19889     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19890   else
19891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19892   fi
19893 else
19894   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19895 fi
19896 need_lib_prefix=unknown
19897 hardcode_into_libs=no
19898
19899 # when you set need_version to no, make sure it does not cause -set_version
19900 # flags to be left without arguments
19901 need_version=unknown
19902
19903 case $host_os in
19904 aix3*)
19905   version_type=linux
19906   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19907   shlibpath_var=LIBPATH
19908
19909   # AIX 3 has no versioning support, so we append a major version to the name.
19910   soname_spec='${libname}${release}${shared_ext}$major'
19911   ;;
19912
19913 aix4* | aix5*)
19914   version_type=linux
19915   need_lib_prefix=no
19916   need_version=no
19917   hardcode_into_libs=yes
19918   if test "$host_cpu" = ia64; then
19919     # AIX 5 supports IA64
19920     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19921     shlibpath_var=LD_LIBRARY_PATH
19922   else
19923     # With GCC up to 2.95.x, collect2 would create an import file
19924     # for dependence libraries.  The import file would start with
19925     # the line `#! .'.  This would cause the generated library to
19926     # depend on `.', always an invalid library.  This was fixed in
19927     # development snapshots of GCC prior to 3.0.
19928     case $host_os in
19929       aix4 | aix4.[01] | aix4.[01].*)
19930       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19931            echo ' yes '
19932            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19933         :
19934       else
19935         can_build_shared=no
19936       fi
19937       ;;
19938     esac
19939     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19940     # soname into executable. Probably we can add versioning support to
19941     # collect2, so additional links can be useful in future.
19942     if test "$aix_use_runtimelinking" = yes; then
19943       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19944       # instead of lib<name>.a to let people know that these are not
19945       # typical AIX shared libraries.
19946       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19947     else
19948       # We preserve .a as extension for shared libraries through AIX4.2
19949       # and later when we are not doing run time linking.
19950       library_names_spec='${libname}${release}.a $libname.a'
19951       soname_spec='${libname}${release}${shared_ext}$major'
19952     fi
19953     shlibpath_var=LIBPATH
19954   fi
19955   ;;
19956
19957 amigaos*)
19958   library_names_spec='$libname.ixlibrary $libname.a'
19959   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19960   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'
19961   ;;
19962
19963 beos*)
19964   library_names_spec='${libname}${shared_ext}'
19965   dynamic_linker="$host_os ld.so"
19966   shlibpath_var=LIBRARY_PATH
19967   ;;
19968
19969 bsdi[45]*)
19970   version_type=linux
19971   need_version=no
19972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973   soname_spec='${libname}${release}${shared_ext}$major'
19974   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19975   shlibpath_var=LD_LIBRARY_PATH
19976   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19977   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19978   # the default ld.so.conf also contains /usr/contrib/lib and
19979   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19980   # libtool to hard-code these into programs
19981   ;;
19982
19983 cygwin* | mingw* | pw32*)
19984   version_type=windows
19985   shrext_cmds=".dll"
19986   need_version=no
19987   need_lib_prefix=no
19988
19989   case $GCC,$host_os in
19990   yes,cygwin* | yes,mingw* | yes,pw32*)
19991     library_names_spec='$libname.dll.a'
19992     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19993     postinstall_cmds='base_file=`basename \${file}`~
19994       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19995       dldir=$destdir/`dirname \$dlpath`~
19996       test -d \$dldir || mkdir -p \$dldir~
19997       $install_prog $dir/$dlname \$dldir/$dlname'
19998     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19999       dlpath=$dir/\$dldll~
20000        $rm \$dlpath'
20001     shlibpath_overrides_runpath=yes
20002
20003     case $host_os in
20004     cygwin*)
20005       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20006       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20007       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20008       ;;
20009     mingw*)
20010       # MinGW DLLs use traditional 'lib' prefix
20011       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20012       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20013       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20014         # It is most probably a Windows format PATH printed by
20015         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20016         # path with ; separators, and with drive letters. We can handle the
20017         # drive letters (cygwin fileutils understands them), so leave them,
20018         # especially as we might pass files found there to a mingw objdump,
20019         # which wouldn't understand a cygwinified path. Ahh.
20020         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20021       else
20022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20023       fi
20024       ;;
20025     pw32*)
20026       # pw32 DLLs use 'pw' prefix rather than 'lib'
20027       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20028       ;;
20029     esac
20030     ;;
20031
20032   *)
20033     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20034     ;;
20035   esac
20036   dynamic_linker='Win32 ld.exe'
20037   # FIXME: first we should search . and the directory the executable is in
20038   shlibpath_var=PATH
20039   ;;
20040
20041 darwin* | rhapsody*)
20042   dynamic_linker="$host_os dyld"
20043   version_type=darwin
20044   need_lib_prefix=no
20045   need_version=no
20046   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20047   soname_spec='${libname}${release}${major}$shared_ext'
20048   shlibpath_overrides_runpath=yes
20049   shlibpath_var=DYLD_LIBRARY_PATH
20050   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20051   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20052   if test "$GCC" = yes; then
20053     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"`
20054   else
20055     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20056   fi
20057   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20058   ;;
20059
20060 dgux*)
20061   version_type=linux
20062   need_lib_prefix=no
20063   need_version=no
20064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20065   soname_spec='${libname}${release}${shared_ext}$major'
20066   shlibpath_var=LD_LIBRARY_PATH
20067   ;;
20068
20069 freebsd1*)
20070   dynamic_linker=no
20071   ;;
20072
20073 kfreebsd*-gnu)
20074   version_type=linux
20075   need_lib_prefix=no
20076   need_version=no
20077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20078   soname_spec='${libname}${release}${shared_ext}$major'
20079   shlibpath_var=LD_LIBRARY_PATH
20080   shlibpath_overrides_runpath=no
20081   hardcode_into_libs=yes
20082   dynamic_linker='GNU ld.so'
20083   ;;
20084
20085 freebsd*)
20086   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20087   version_type=freebsd-$objformat
20088   case $version_type in
20089     freebsd-elf*)
20090       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20091       need_version=no
20092       need_lib_prefix=no
20093       ;;
20094     freebsd-*)
20095       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20096       need_version=yes
20097       ;;
20098   esac
20099   shlibpath_var=LD_LIBRARY_PATH
20100   case $host_os in
20101   freebsd2*)
20102     shlibpath_overrides_runpath=yes
20103     ;;
20104   freebsd3.01* | freebsdelf3.01*)
20105     shlibpath_overrides_runpath=yes
20106     hardcode_into_libs=yes
20107     ;;
20108   *) # from 3.2 on
20109     shlibpath_overrides_runpath=no
20110     hardcode_into_libs=yes
20111     ;;
20112   esac
20113   ;;
20114
20115 gnu*)
20116   version_type=linux
20117   need_lib_prefix=no
20118   need_version=no
20119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20120   soname_spec='${libname}${release}${shared_ext}$major'
20121   shlibpath_var=LD_LIBRARY_PATH
20122   hardcode_into_libs=yes
20123   ;;
20124
20125 hpux9* | hpux10* | hpux11*)
20126   # Give a soname corresponding to the major version so that dld.sl refuses to
20127   # link against other versions.
20128   version_type=sunos
20129   need_lib_prefix=no
20130   need_version=no
20131   case "$host_cpu" in
20132   ia64*)
20133     shrext_cmds='.so'
20134     hardcode_into_libs=yes
20135     dynamic_linker="$host_os dld.so"
20136     shlibpath_var=LD_LIBRARY_PATH
20137     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139     soname_spec='${libname}${release}${shared_ext}$major'
20140     if test "X$HPUX_IA64_MODE" = X32; then
20141       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20142     else
20143       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20144     fi
20145     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20146     ;;
20147    hppa*64*)
20148      shrext_cmds='.sl'
20149      hardcode_into_libs=yes
20150      dynamic_linker="$host_os dld.sl"
20151      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20152      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20153      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154      soname_spec='${libname}${release}${shared_ext}$major'
20155      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20156      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20157      ;;
20158    *)
20159     shrext_cmds='.sl'
20160     dynamic_linker="$host_os dld.sl"
20161     shlibpath_var=SHLIB_PATH
20162     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164     soname_spec='${libname}${release}${shared_ext}$major'
20165     ;;
20166   esac
20167   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20168   postinstall_cmds='chmod 555 $lib'
20169   ;;
20170
20171 irix5* | irix6* | nonstopux*)
20172   case $host_os in
20173     nonstopux*) version_type=nonstopux ;;
20174     *)
20175         if test "$lt_cv_prog_gnu_ld" = yes; then
20176                 version_type=linux
20177         else
20178                 version_type=irix
20179         fi ;;
20180   esac
20181   need_lib_prefix=no
20182   need_version=no
20183   soname_spec='${libname}${release}${shared_ext}$major'
20184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20185   case $host_os in
20186   irix5* | nonstopux*)
20187     libsuff= shlibsuff=
20188     ;;
20189   *)
20190     case $LD in # libtool.m4 will add one of these switches to LD
20191     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20192       libsuff= shlibsuff= libmagic=32-bit;;
20193     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20194       libsuff=32 shlibsuff=N32 libmagic=N32;;
20195     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20196       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20197     *) libsuff= shlibsuff= libmagic=never-match;;
20198     esac
20199     ;;
20200   esac
20201   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20202   shlibpath_overrides_runpath=no
20203   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20204   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20205   hardcode_into_libs=yes
20206   ;;
20207
20208 # No shared lib support for Linux oldld, aout, or coff.
20209 linux*oldld* | linux*aout* | linux*coff*)
20210   dynamic_linker=no
20211   ;;
20212
20213 # This must be Linux ELF.
20214 linux*)
20215   version_type=linux
20216   need_lib_prefix=no
20217   need_version=no
20218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20219   soname_spec='${libname}${release}${shared_ext}$major'
20220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20221   shlibpath_var=LD_LIBRARY_PATH
20222   shlibpath_overrides_runpath=no
20223   # This implies no fast_install, which is unacceptable.
20224   # Some rework will be needed to allow for fast_install
20225   # before this can be enabled.
20226   hardcode_into_libs=yes
20227
20228   # Append ld.so.conf contents to the search path
20229   if test -f /etc/ld.so.conf; then
20230     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20231     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20232   fi
20233
20234   # We used to test for /lib/ld.so.1 and disable shared libraries on
20235   # powerpc, because MkLinux only supported shared libraries with the
20236   # GNU dynamic linker.  Since this was broken with cross compilers,
20237   # most powerpc-linux boxes support dynamic linking these days and
20238   # people can always --disable-shared, the test was removed, and we
20239   # assume the GNU/Linux dynamic linker is in use.
20240   dynamic_linker='GNU/Linux ld.so'
20241   ;;
20242
20243 knetbsd*-gnu)
20244   version_type=linux
20245   need_lib_prefix=no
20246   need_version=no
20247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248   soname_spec='${libname}${release}${shared_ext}$major'
20249   shlibpath_var=LD_LIBRARY_PATH
20250   shlibpath_overrides_runpath=no
20251   hardcode_into_libs=yes
20252   dynamic_linker='GNU ld.so'
20253   ;;
20254
20255 netbsd*)
20256   version_type=sunos
20257   need_lib_prefix=no
20258   need_version=no
20259   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20261     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20262     dynamic_linker='NetBSD (a.out) ld.so'
20263   else
20264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20265     soname_spec='${libname}${release}${shared_ext}$major'
20266     dynamic_linker='NetBSD ld.elf_so'
20267   fi
20268   shlibpath_var=LD_LIBRARY_PATH
20269   shlibpath_overrides_runpath=yes
20270   hardcode_into_libs=yes
20271   ;;
20272
20273 newsos6)
20274   version_type=linux
20275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276   shlibpath_var=LD_LIBRARY_PATH
20277   shlibpath_overrides_runpath=yes
20278   ;;
20279
20280 nto-qnx*)
20281   version_type=linux
20282   need_lib_prefix=no
20283   need_version=no
20284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20285   soname_spec='${libname}${release}${shared_ext}$major'
20286   shlibpath_var=LD_LIBRARY_PATH
20287   shlibpath_overrides_runpath=yes
20288   ;;
20289
20290 openbsd*)
20291   version_type=sunos
20292   need_lib_prefix=no
20293   need_version=no
20294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20296   shlibpath_var=LD_LIBRARY_PATH
20297   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20298     case $host_os in
20299       openbsd2.[89] | openbsd2.[89].*)
20300         shlibpath_overrides_runpath=no
20301         ;;
20302       *)
20303         shlibpath_overrides_runpath=yes
20304         ;;
20305       esac
20306   else
20307     shlibpath_overrides_runpath=yes
20308   fi
20309   ;;
20310
20311 os2*)
20312   libname_spec='$name'
20313   shrext_cmds=".dll"
20314   need_lib_prefix=no
20315   library_names_spec='$libname${shared_ext} $libname.a'
20316   dynamic_linker='OS/2 ld.exe'
20317   shlibpath_var=LIBPATH
20318   ;;
20319
20320 osf3* | osf4* | osf5*)
20321   version_type=osf
20322   need_lib_prefix=no
20323   need_version=no
20324   soname_spec='${libname}${release}${shared_ext}$major'
20325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326   shlibpath_var=LD_LIBRARY_PATH
20327   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20328   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20329   ;;
20330
20331 sco3.2v5*)
20332   version_type=osf
20333   soname_spec='${libname}${release}${shared_ext}$major'
20334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335   shlibpath_var=LD_LIBRARY_PATH
20336   ;;
20337
20338 solaris*)
20339   version_type=linux
20340   need_lib_prefix=no
20341   need_version=no
20342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343   soname_spec='${libname}${release}${shared_ext}$major'
20344   shlibpath_var=LD_LIBRARY_PATH
20345   shlibpath_overrides_runpath=yes
20346   hardcode_into_libs=yes
20347   # ldd complains unless libraries are executable
20348   postinstall_cmds='chmod +x $lib'
20349   ;;
20350
20351 sunos4*)
20352   version_type=sunos
20353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20354   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20355   shlibpath_var=LD_LIBRARY_PATH
20356   shlibpath_overrides_runpath=yes
20357   if test "$with_gnu_ld" = yes; then
20358     need_lib_prefix=no
20359   fi
20360   need_version=yes
20361   ;;
20362
20363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20364   version_type=linux
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366   soname_spec='${libname}${release}${shared_ext}$major'
20367   shlibpath_var=LD_LIBRARY_PATH
20368   case $host_vendor in
20369     sni)
20370       shlibpath_overrides_runpath=no
20371       need_lib_prefix=no
20372       export_dynamic_flag_spec='${wl}-Blargedynsym'
20373       runpath_var=LD_RUN_PATH
20374       ;;
20375     siemens)
20376       need_lib_prefix=no
20377       ;;
20378     motorola)
20379       need_lib_prefix=no
20380       need_version=no
20381       shlibpath_overrides_runpath=no
20382       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20383       ;;
20384   esac
20385   ;;
20386
20387 sysv4*MP*)
20388   if test -d /usr/nec ;then
20389     version_type=linux
20390     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20391     soname_spec='$libname${shared_ext}.$major'
20392     shlibpath_var=LD_LIBRARY_PATH
20393   fi
20394   ;;
20395
20396 uts4*)
20397   version_type=linux
20398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399   soname_spec='${libname}${release}${shared_ext}$major'
20400   shlibpath_var=LD_LIBRARY_PATH
20401   ;;
20402
20403 *)
20404   dynamic_linker=no
20405   ;;
20406 esac
20407 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20408 echo "${ECHO_T}$dynamic_linker" >&6
20409 test "$dynamic_linker" = no && can_build_shared=no
20410
20411 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20412 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20413 hardcode_action_F77=
20414 if test -n "$hardcode_libdir_flag_spec_F77" || \
20415    test -n "$runpath_var_F77" || \
20416    test "X$hardcode_automatic_F77" = "Xyes" ; then
20417
20418   # We can hardcode non-existant directories.
20419   if test "$hardcode_direct_F77" != no &&
20420      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20421      # have to relink, otherwise we might link with an installed library
20422      # when we should be linking with a yet-to-be-installed one
20423      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20424      test "$hardcode_minus_L_F77" != no; then
20425     # Linking always hardcodes the temporary library directory.
20426     hardcode_action_F77=relink
20427   else
20428     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20429     hardcode_action_F77=immediate
20430   fi
20431 else
20432   # We cannot hardcode anything, or else we can only hardcode existing
20433   # directories.
20434   hardcode_action_F77=unsupported
20435 fi
20436 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20437 echo "${ECHO_T}$hardcode_action_F77" >&6
20438
20439 if test "$hardcode_action_F77" = relink; then
20440   # Fast installation is not supported
20441   enable_fast_install=no
20442 elif test "$shlibpath_overrides_runpath" = yes ||
20443      test "$enable_shared" = no; then
20444   # Fast installation is not necessary
20445   enable_fast_install=needless
20446 fi
20447
20448 striplib=
20449 old_striplib=
20450 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20451 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20452 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20453   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20454   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20455   echo "$as_me:$LINENO: result: yes" >&5
20456 echo "${ECHO_T}yes" >&6
20457 else
20458 # FIXME - insert some real tests, host_os isn't really good enough
20459   case $host_os in
20460    darwin*)
20461        if test -n "$STRIP" ; then
20462          striplib="$STRIP -x"
20463          echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6
20465        else
20466   echo "$as_me:$LINENO: result: no" >&5
20467 echo "${ECHO_T}no" >&6
20468 fi
20469        ;;
20470    *)
20471   echo "$as_me:$LINENO: result: no" >&5
20472 echo "${ECHO_T}no" >&6
20473     ;;
20474   esac
20475 fi
20476
20477
20478
20479 # The else clause should only fire when bootstrapping the
20480 # libtool distribution, otherwise you forgot to ship ltmain.sh
20481 # with your package, and you will get complaints that there are
20482 # no rules to generate ltmain.sh.
20483 if test -f "$ltmain"; then
20484   # See if we are running on zsh, and set the options which allow our commands through
20485   # without removal of \ escapes.
20486   if test -n "${ZSH_VERSION+set}" ; then
20487     setopt NO_GLOB_SUBST
20488   fi
20489   # Now quote all the things that may contain metacharacters while being
20490   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20491   # variables and quote the copies for generation of the libtool script.
20492   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20493     SED SHELL STRIP \
20494     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20495     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20496     deplibs_check_method reload_flag reload_cmds need_locks \
20497     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20498     lt_cv_sys_global_symbol_to_c_name_address \
20499     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20500     old_postinstall_cmds old_postuninstall_cmds \
20501     compiler_F77 \
20502     CC_F77 \
20503     LD_F77 \
20504     lt_prog_compiler_wl_F77 \
20505     lt_prog_compiler_pic_F77 \
20506     lt_prog_compiler_static_F77 \
20507     lt_prog_compiler_no_builtin_flag_F77 \
20508     export_dynamic_flag_spec_F77 \
20509     thread_safe_flag_spec_F77 \
20510     whole_archive_flag_spec_F77 \
20511     enable_shared_with_static_runtimes_F77 \
20512     old_archive_cmds_F77 \
20513     old_archive_from_new_cmds_F77 \
20514     predep_objects_F77 \
20515     postdep_objects_F77 \
20516     predeps_F77 \
20517     postdeps_F77 \
20518     compiler_lib_search_path_F77 \
20519     archive_cmds_F77 \
20520     archive_expsym_cmds_F77 \
20521     postinstall_cmds_F77 \
20522     postuninstall_cmds_F77 \
20523     old_archive_from_expsyms_cmds_F77 \
20524     allow_undefined_flag_F77 \
20525     no_undefined_flag_F77 \
20526     export_symbols_cmds_F77 \
20527     hardcode_libdir_flag_spec_F77 \
20528     hardcode_libdir_flag_spec_ld_F77 \
20529     hardcode_libdir_separator_F77 \
20530     hardcode_automatic_F77 \
20531     module_cmds_F77 \
20532     module_expsym_cmds_F77 \
20533     lt_cv_prog_compiler_c_o_F77 \
20534     exclude_expsyms_F77 \
20535     include_expsyms_F77; do
20536
20537     case $var in
20538     old_archive_cmds_F77 | \
20539     old_archive_from_new_cmds_F77 | \
20540     archive_cmds_F77 | \
20541     archive_expsym_cmds_F77 | \
20542     module_cmds_F77 | \
20543     module_expsym_cmds_F77 | \
20544     old_archive_from_expsyms_cmds_F77 | \
20545     export_symbols_cmds_F77 | \
20546     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20547     postinstall_cmds | postuninstall_cmds | \
20548     old_postinstall_cmds | old_postuninstall_cmds | \
20549     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20550       # Double-quote double-evaled strings.
20551       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20552       ;;
20553     *)
20554       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20555       ;;
20556     esac
20557   done
20558
20559   case $lt_echo in
20560   *'\$0 --fallback-echo"')
20561     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20562     ;;
20563   esac
20564
20565 cfgfile="$ofile"
20566
20567   cat <<__EOF__ >> "$cfgfile"
20568 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20569
20570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20571
20572 # Shell to use when invoking shell scripts.
20573 SHELL=$lt_SHELL
20574
20575 # Whether or not to build shared libraries.
20576 build_libtool_libs=$enable_shared
20577
20578 # Whether or not to build static libraries.
20579 build_old_libs=$enable_static
20580
20581 # Whether or not to add -lc for building shared libraries.
20582 build_libtool_need_lc=$archive_cmds_need_lc_F77
20583
20584 # Whether or not to disallow shared libs when runtime libs are static
20585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20586
20587 # Whether or not to optimize for fast installation.
20588 fast_install=$enable_fast_install
20589
20590 # The host system.
20591 host_alias=$host_alias
20592 host=$host
20593
20594 # An echo program that does not interpret backslashes.
20595 echo=$lt_echo
20596
20597 # The archiver.
20598 AR=$lt_AR
20599 AR_FLAGS=$lt_AR_FLAGS
20600
20601 # A C compiler.
20602 LTCC=$lt_LTCC
20603
20604 # A language-specific compiler.
20605 CC=$lt_compiler_F77
20606
20607 # Is the compiler the GNU C compiler?
20608 with_gcc=$GCC_F77
20609
20610 # An ERE matcher.
20611 EGREP=$lt_EGREP
20612
20613 # The linker used to build libraries.
20614 LD=$lt_LD_F77
20615
20616 # Whether we need hard or soft links.
20617 LN_S=$lt_LN_S
20618
20619 # A BSD-compatible nm program.
20620 NM=$lt_NM
20621
20622 # A symbol stripping program
20623 STRIP=$lt_STRIP
20624
20625 # Used to examine libraries when file_magic_cmd begins "file"
20626 MAGIC_CMD=$MAGIC_CMD
20627
20628 # Used on cygwin: DLL creation program.
20629 DLLTOOL="$DLLTOOL"
20630
20631 # Used on cygwin: object dumper.
20632 OBJDUMP="$OBJDUMP"
20633
20634 # Used on cygwin: assembler.
20635 AS="$AS"
20636
20637 # The name of the directory that contains temporary libtool files.
20638 objdir=$objdir
20639
20640 # How to create reloadable object files.
20641 reload_flag=$lt_reload_flag
20642 reload_cmds=$lt_reload_cmds
20643
20644 # How to pass a linker flag through the compiler.
20645 wl=$lt_lt_prog_compiler_wl_F77
20646
20647 # Object file suffix (normally "o").
20648 objext="$ac_objext"
20649
20650 # Old archive suffix (normally "a").
20651 libext="$libext"
20652
20653 # Shared library suffix (normally ".so").
20654 shrext_cmds='$shrext_cmds'
20655
20656 # Executable file suffix (normally "").
20657 exeext="$exeext"
20658
20659 # Additional compiler flags for building library objects.
20660 pic_flag=$lt_lt_prog_compiler_pic_F77
20661 pic_mode=$pic_mode
20662
20663 # What is the maximum length of a command?
20664 max_cmd_len=$lt_cv_sys_max_cmd_len
20665
20666 # Does compiler simultaneously support -c and -o options?
20667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20668
20669 # Must we lock files when doing compilation ?
20670 need_locks=$lt_need_locks
20671
20672 # Do we need the lib prefix for modules?
20673 need_lib_prefix=$need_lib_prefix
20674
20675 # Do we need a version for libraries?
20676 need_version=$need_version
20677
20678 # Whether dlopen is supported.
20679 dlopen_support=$enable_dlopen
20680
20681 # Whether dlopen of programs is supported.
20682 dlopen_self=$enable_dlopen_self
20683
20684 # Whether dlopen of statically linked programs is supported.
20685 dlopen_self_static=$enable_dlopen_self_static
20686
20687 # Compiler flag to prevent dynamic linking.
20688 link_static_flag=$lt_lt_prog_compiler_static_F77
20689
20690 # Compiler flag to turn off builtin functions.
20691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20692
20693 # Compiler flag to allow reflexive dlopens.
20694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20695
20696 # Compiler flag to generate shared objects directly from archives.
20697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20698
20699 # Compiler flag to generate thread-safe objects.
20700 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20701
20702 # Library versioning type.
20703 version_type=$version_type
20704
20705 # Format of library name prefix.
20706 libname_spec=$lt_libname_spec
20707
20708 # List of archive names.  First name is the real one, the rest are links.
20709 # The last name is the one that the linker finds with -lNAME.
20710 library_names_spec=$lt_library_names_spec
20711
20712 # The coded name of the library, if different from the real name.
20713 soname_spec=$lt_soname_spec
20714
20715 # Commands used to build and install an old-style archive.
20716 RANLIB=$lt_RANLIB
20717 old_archive_cmds=$lt_old_archive_cmds_F77
20718 old_postinstall_cmds=$lt_old_postinstall_cmds
20719 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20720
20721 # Create an old-style archive from a shared archive.
20722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20723
20724 # Create a temporary old-style archive to link instead of a shared archive.
20725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20726
20727 # Commands used to build and install a shared archive.
20728 archive_cmds=$lt_archive_cmds_F77
20729 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20730 postinstall_cmds=$lt_postinstall_cmds
20731 postuninstall_cmds=$lt_postuninstall_cmds
20732
20733 # Commands used to build a loadable module (assumed same as above if empty)
20734 module_cmds=$lt_module_cmds_F77
20735 module_expsym_cmds=$lt_module_expsym_cmds_F77
20736
20737 # Commands to strip libraries.
20738 old_striplib=$lt_old_striplib
20739 striplib=$lt_striplib
20740
20741 # Dependencies to place before the objects being linked to create a
20742 # shared library.
20743 predep_objects=$lt_predep_objects_F77
20744
20745 # Dependencies to place after the objects being linked to create a
20746 # shared library.
20747 postdep_objects=$lt_postdep_objects_F77
20748
20749 # Dependencies to place before the objects being linked to create a
20750 # shared library.
20751 predeps=$lt_predeps_F77
20752
20753 # Dependencies to place after the objects being linked to create a
20754 # shared library.
20755 postdeps=$lt_postdeps_F77
20756
20757 # The library search path used internally by the compiler when linking
20758 # a shared library.
20759 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20760
20761 # Method to check whether dependent libraries are shared objects.
20762 deplibs_check_method=$lt_deplibs_check_method
20763
20764 # Command to use when deplibs_check_method == file_magic.
20765 file_magic_cmd=$lt_file_magic_cmd
20766
20767 # Flag that allows shared libraries with undefined symbols to be built.
20768 allow_undefined_flag=$lt_allow_undefined_flag_F77
20769
20770 # Flag that forces no undefined symbols.
20771 no_undefined_flag=$lt_no_undefined_flag_F77
20772
20773 # Commands used to finish a libtool library installation in a directory.
20774 finish_cmds=$lt_finish_cmds
20775
20776 # Same as above, but a single script fragment to be evaled but not shown.
20777 finish_eval=$lt_finish_eval
20778
20779 # Take the output of nm and produce a listing of raw symbols and C names.
20780 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20781
20782 # Transform the output of nm in a proper C declaration
20783 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20784
20785 # Transform the output of nm in a C name address pair
20786 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20787
20788 # This is the shared library runtime path variable.
20789 runpath_var=$runpath_var
20790
20791 # This is the shared library path variable.
20792 shlibpath_var=$shlibpath_var
20793
20794 # Is shlibpath searched before the hard-coded library search path?
20795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20796
20797 # How to hardcode a shared library path into an executable.
20798 hardcode_action=$hardcode_action_F77
20799
20800 # Whether we should hardcode library paths into libraries.
20801 hardcode_into_libs=$hardcode_into_libs
20802
20803 # Flag to hardcode \$libdir into a binary during linking.
20804 # This must work even if \$libdir does not exist.
20805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20806
20807 # If ld is used when linking, flag to hardcode \$libdir into
20808 # a binary during linking. This must work even if \$libdir does
20809 # not exist.
20810 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20811
20812 # Whether we need a single -rpath flag with a separated argument.
20813 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20814
20815 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20816 # resulting binary.
20817 hardcode_direct=$hardcode_direct_F77
20818
20819 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20820 # resulting binary.
20821 hardcode_minus_L=$hardcode_minus_L_F77
20822
20823 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20824 # the resulting binary.
20825 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20826
20827 # Set to yes if building a shared library automatically hardcodes DIR into the library
20828 # and all subsequent libraries and executables linked against it.
20829 hardcode_automatic=$hardcode_automatic_F77
20830
20831 # Variables whose values should be saved in libtool wrapper scripts and
20832 # restored at relink time.
20833 variables_saved_for_relink="$variables_saved_for_relink"
20834
20835 # Whether libtool must link a program against all its dependency libraries.
20836 link_all_deplibs=$link_all_deplibs_F77
20837
20838 # Compile-time system search path for libraries
20839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20840
20841 # Run-time system search path for libraries
20842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20843
20844 # Fix the shell variable \$srcfile for the compiler.
20845 fix_srcfile_path="$fix_srcfile_path_F77"
20846
20847 # Set to yes if exported symbols are required.
20848 always_export_symbols=$always_export_symbols_F77
20849
20850 # The commands to list exported symbols.
20851 export_symbols_cmds=$lt_export_symbols_cmds_F77
20852
20853 # The commands to extract the exported symbol list from a shared archive.
20854 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20855
20856 # Symbols that should not be listed in the preloaded symbols.
20857 exclude_expsyms=$lt_exclude_expsyms_F77
20858
20859 # Symbols that must always be exported.
20860 include_expsyms=$lt_include_expsyms_F77
20861
20862 # ### END LIBTOOL TAG CONFIG: $tagname
20863
20864 __EOF__
20865
20866
20867 else
20868   # If there is no Makefile yet, we rely on a make rule to execute
20869   # `config.status --recheck' to rerun these tests and create the
20870   # libtool script then.
20871   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20872   if test -f "$ltmain_in"; then
20873     test -f Makefile && make "$ltmain"
20874   fi
20875 fi
20876
20877
20878 ac_ext=c
20879 ac_cpp='$CPP $CPPFLAGS'
20880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20883
20884 CC="$lt_save_CC"
20885
20886         else
20887           tagname=""
20888         fi
20889         ;;
20890
20891       GCJ)
20892         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20893           ac_ext=c
20894 ac_cpp='$CPP $CPPFLAGS'
20895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20898
20899
20900 # Source file extension for Java test sources.
20901 ac_ext=java
20902
20903 # Object file extension for compiled Java test sources.
20904 objext=o
20905 objext_GCJ=$objext
20906
20907 # Code to be used in simple compile tests
20908 lt_simple_compile_test_code="class foo {}\n"
20909
20910 # Code to be used in simple link tests
20911 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20912
20913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20914
20915 # If no C compiler was specified, use CC.
20916 LTCC=${LTCC-"$CC"}
20917
20918 # Allow CC to be a program name with arguments.
20919 compiler=$CC
20920
20921
20922 # Allow CC to be a program name with arguments.
20923 lt_save_CC="$CC"
20924 CC=${GCJ-"gcj"}
20925 compiler=$CC
20926 compiler_GCJ=$CC
20927
20928 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20929 archive_cmds_need_lc_GCJ=no
20930
20931
20932 lt_prog_compiler_no_builtin_flag_GCJ=
20933
20934 if test "$GCC" = yes; then
20935   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20936
20937
20938 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20939 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20940 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   lt_cv_prog_compiler_rtti_exceptions=no
20944   ac_outfile=conftest.$ac_objext
20945    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20946    lt_compiler_flag="-fno-rtti -fno-exceptions"
20947    # Insert the option either (1) after the last *FLAGS variable, or
20948    # (2) before a word containing "conftest.", or (3) at the end.
20949    # Note that $ac_compile itself does not contain backslashes and begins
20950    # with a dollar sign (not a hyphen), so the echo should work correctly.
20951    # The option is referenced via a variable to avoid confusing sed.
20952    lt_compile=`echo "$ac_compile" | $SED \
20953    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20955    -e 's:$: $lt_compiler_flag:'`
20956    (eval echo "\"\$as_me:20956: $lt_compile\"" >&5)
20957    (eval "$lt_compile" 2>conftest.err)
20958    ac_status=$?
20959    cat conftest.err >&5
20960    echo "$as_me:20960: \$? = $ac_status" >&5
20961    if (exit $ac_status) && test -s "$ac_outfile"; then
20962      # The compiler can only warn and ignore the option if not recognized
20963      # So say no if there are warnings
20964      if test ! -s conftest.err; then
20965        lt_cv_prog_compiler_rtti_exceptions=yes
20966      fi
20967    fi
20968    $rm conftest*
20969
20970 fi
20971 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20972 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20973
20974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20975     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20976 else
20977     :
20978 fi
20979
20980 fi
20981
20982 lt_prog_compiler_wl_GCJ=
20983 lt_prog_compiler_pic_GCJ=
20984 lt_prog_compiler_static_GCJ=
20985
20986 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20987 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20988
20989   if test "$GCC" = yes; then
20990     lt_prog_compiler_wl_GCJ='-Wl,'
20991     lt_prog_compiler_static_GCJ='-static'
20992
20993     case $host_os in
20994       aix*)
20995       # All AIX code is PIC.
20996       if test "$host_cpu" = ia64; then
20997         # AIX 5 now supports IA64 processor
20998         lt_prog_compiler_static_GCJ='-Bstatic'
20999       fi
21000       ;;
21001
21002     amigaos*)
21003       # FIXME: we need at least 68020 code to build shared libraries, but
21004       # adding the `-m68020' flag to GCC prevents building anything better,
21005       # like `-m68040'.
21006       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21007       ;;
21008
21009     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21010       # PIC is the default for these OSes.
21011       ;;
21012
21013     mingw* | pw32* | os2*)
21014       # This hack is so that the source file can tell whether it is being
21015       # built for inclusion in a dll (and should export symbols for example).
21016       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21017       ;;
21018
21019     darwin* | rhapsody*)
21020       # PIC is the default on this platform
21021       # Common symbols not allowed in MH_DYLIB files
21022       lt_prog_compiler_pic_GCJ='-fno-common'
21023       ;;
21024
21025     msdosdjgpp*)
21026       # Just because we use GCC doesn't mean we suddenly get shared libraries
21027       # on systems that don't support them.
21028       lt_prog_compiler_can_build_shared_GCJ=no
21029       enable_shared=no
21030       ;;
21031
21032     sysv4*MP*)
21033       if test -d /usr/nec; then
21034         lt_prog_compiler_pic_GCJ=-Kconform_pic
21035       fi
21036       ;;
21037
21038     hpux*)
21039       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21040       # not for PA HP-UX.
21041       case "$host_cpu" in
21042       hppa*64*|ia64*)
21043         # +Z the default
21044         ;;
21045       *)
21046         lt_prog_compiler_pic_GCJ='-fPIC'
21047         ;;
21048       esac
21049       ;;
21050
21051     *)
21052       lt_prog_compiler_pic_GCJ='-fPIC'
21053       ;;
21054     esac
21055   else
21056     # PORTME Check for flag to pass linker flags through the system compiler.
21057     case $host_os in
21058     aix*)
21059       lt_prog_compiler_wl_GCJ='-Wl,'
21060       if test "$host_cpu" = ia64; then
21061         # AIX 5 now supports IA64 processor
21062         lt_prog_compiler_static_GCJ='-Bstatic'
21063       else
21064         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21065       fi
21066       ;;
21067       darwin*)
21068         # PIC is the default on this platform
21069         # Common symbols not allowed in MH_DYLIB files
21070        case "$cc_basename" in
21071          xlc*)
21072          lt_prog_compiler_pic_GCJ='-qnocommon'
21073          lt_prog_compiler_wl_GCJ='-Wl,'
21074          ;;
21075        esac
21076        ;;
21077
21078     mingw* | pw32* | os2*)
21079       # This hack is so that the source file can tell whether it is being
21080       # built for inclusion in a dll (and should export symbols for example).
21081       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21082       ;;
21083
21084     hpux9* | hpux10* | hpux11*)
21085       lt_prog_compiler_wl_GCJ='-Wl,'
21086       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21087       # not for PA HP-UX.
21088       case "$host_cpu" in
21089       hppa*64*|ia64*)
21090         # +Z the default
21091         ;;
21092       *)
21093         lt_prog_compiler_pic_GCJ='+Z'
21094         ;;
21095       esac
21096       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21097       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21098       ;;
21099
21100     irix5* | irix6* | nonstopux*)
21101       lt_prog_compiler_wl_GCJ='-Wl,'
21102       # PIC (with -KPIC) is the default.
21103       lt_prog_compiler_static_GCJ='-non_shared'
21104       ;;
21105
21106     newsos6)
21107       lt_prog_compiler_pic_GCJ='-KPIC'
21108       lt_prog_compiler_static_GCJ='-Bstatic'
21109       ;;
21110
21111     linux*)
21112       case $CC in
21113       icc* | ecc*)
21114         lt_prog_compiler_wl_GCJ='-Wl,'
21115         lt_prog_compiler_pic_GCJ='-KPIC'
21116         lt_prog_compiler_static_GCJ='-static'
21117         ;;
21118       ccc*)
21119         lt_prog_compiler_wl_GCJ='-Wl,'
21120         # All Alpha code is PIC.
21121         lt_prog_compiler_static_GCJ='-non_shared'
21122         ;;
21123       esac
21124       ;;
21125
21126     osf3* | osf4* | osf5*)
21127       lt_prog_compiler_wl_GCJ='-Wl,'
21128       # All OSF/1 code is PIC.
21129       lt_prog_compiler_static_GCJ='-non_shared'
21130       ;;
21131
21132     sco3.2v5*)
21133       lt_prog_compiler_pic_GCJ='-Kpic'
21134       lt_prog_compiler_static_GCJ='-dn'
21135       ;;
21136
21137     solaris*)
21138       lt_prog_compiler_wl_GCJ='-Wl,'
21139       lt_prog_compiler_pic_GCJ='-KPIC'
21140       lt_prog_compiler_static_GCJ='-Bstatic'
21141       ;;
21142
21143     sunos4*)
21144       lt_prog_compiler_wl_GCJ='-Qoption ld '
21145       lt_prog_compiler_pic_GCJ='-PIC'
21146       lt_prog_compiler_static_GCJ='-Bstatic'
21147       ;;
21148
21149     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21150       lt_prog_compiler_wl_GCJ='-Wl,'
21151       lt_prog_compiler_pic_GCJ='-KPIC'
21152       lt_prog_compiler_static_GCJ='-Bstatic'
21153       ;;
21154
21155     sysv4*MP*)
21156       if test -d /usr/nec ;then
21157         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21158         lt_prog_compiler_static_GCJ='-Bstatic'
21159       fi
21160       ;;
21161
21162     uts4*)
21163       lt_prog_compiler_pic_GCJ='-pic'
21164       lt_prog_compiler_static_GCJ='-Bstatic'
21165       ;;
21166
21167     *)
21168       lt_prog_compiler_can_build_shared_GCJ=no
21169       ;;
21170     esac
21171   fi
21172
21173 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21174 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21175
21176 #
21177 # Check to make sure the PIC flag actually works.
21178 #
21179 if test -n "$lt_prog_compiler_pic_GCJ"; then
21180
21181 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21182 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21183 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186   lt_prog_compiler_pic_works_GCJ=no
21187   ac_outfile=conftest.$ac_objext
21188    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21189    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21190    # Insert the option either (1) after the last *FLAGS variable, or
21191    # (2) before a word containing "conftest.", or (3) at the end.
21192    # Note that $ac_compile itself does not contain backslashes and begins
21193    # with a dollar sign (not a hyphen), so the echo should work correctly.
21194    # The option is referenced via a variable to avoid confusing sed.
21195    lt_compile=`echo "$ac_compile" | $SED \
21196    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21198    -e 's:$: $lt_compiler_flag:'`
21199    (eval echo "\"\$as_me:21199: $lt_compile\"" >&5)
21200    (eval "$lt_compile" 2>conftest.err)
21201    ac_status=$?
21202    cat conftest.err >&5
21203    echo "$as_me:21203: \$? = $ac_status" >&5
21204    if (exit $ac_status) && test -s "$ac_outfile"; then
21205      # The compiler can only warn and ignore the option if not recognized
21206      # So say no if there are warnings
21207      if test ! -s conftest.err; then
21208        lt_prog_compiler_pic_works_GCJ=yes
21209      fi
21210    fi
21211    $rm conftest*
21212
21213 fi
21214 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21215 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21216
21217 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21218     case $lt_prog_compiler_pic_GCJ in
21219      "" | " "*) ;;
21220      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21221      esac
21222 else
21223     lt_prog_compiler_pic_GCJ=
21224      lt_prog_compiler_can_build_shared_GCJ=no
21225 fi
21226
21227 fi
21228 case "$host_os" in
21229   # For platforms which do not support PIC, -DPIC is meaningless:
21230   *djgpp*)
21231     lt_prog_compiler_pic_GCJ=
21232     ;;
21233   *)
21234     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21235     ;;
21236 esac
21237
21238 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21239 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21240 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243   lt_cv_prog_compiler_c_o_GCJ=no
21244    $rm -r conftest 2>/dev/null
21245    mkdir conftest
21246    cd conftest
21247    mkdir out
21248    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21249
21250    lt_compiler_flag="-o out/conftest2.$ac_objext"
21251    # Insert the option either (1) after the last *FLAGS variable, or
21252    # (2) before a word containing "conftest.", or (3) at the end.
21253    # Note that $ac_compile itself does not contain backslashes and begins
21254    # with a dollar sign (not a hyphen), so the echo should work correctly.
21255    lt_compile=`echo "$ac_compile" | $SED \
21256    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21257    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21258    -e 's:$: $lt_compiler_flag:'`
21259    (eval echo "\"\$as_me:21259: $lt_compile\"" >&5)
21260    (eval "$lt_compile" 2>out/conftest.err)
21261    ac_status=$?
21262    cat out/conftest.err >&5
21263    echo "$as_me:21263: \$? = $ac_status" >&5
21264    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21265    then
21266      # The compiler can only warn and ignore the option if not recognized
21267      # So say no if there are warnings
21268      if test ! -s out/conftest.err; then
21269        lt_cv_prog_compiler_c_o_GCJ=yes
21270      fi
21271    fi
21272    chmod u+w .
21273    $rm conftest*
21274    # SGI C++ compiler will create directory out/ii_files/ for
21275    # template instantiation
21276    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21277    $rm out/* && rmdir out
21278    cd ..
21279    rmdir conftest
21280    $rm conftest*
21281
21282 fi
21283 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21284 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21285
21286
21287 hard_links="nottested"
21288 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21289   # do not overwrite the value of need_locks provided by the user
21290   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21291 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21292   hard_links=yes
21293   $rm conftest*
21294   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21295   touch conftest.a
21296   ln conftest.a conftest.b 2>&5 || hard_links=no
21297   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21298   echo "$as_me:$LINENO: result: $hard_links" >&5
21299 echo "${ECHO_T}$hard_links" >&6
21300   if test "$hard_links" = no; then
21301     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21302 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21303     need_locks=warn
21304   fi
21305 else
21306   need_locks=no
21307 fi
21308
21309 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21311
21312   runpath_var=
21313   allow_undefined_flag_GCJ=
21314   enable_shared_with_static_runtimes_GCJ=no
21315   archive_cmds_GCJ=
21316   archive_expsym_cmds_GCJ=
21317   old_archive_From_new_cmds_GCJ=
21318   old_archive_from_expsyms_cmds_GCJ=
21319   export_dynamic_flag_spec_GCJ=
21320   whole_archive_flag_spec_GCJ=
21321   thread_safe_flag_spec_GCJ=
21322   hardcode_libdir_flag_spec_GCJ=
21323   hardcode_libdir_flag_spec_ld_GCJ=
21324   hardcode_libdir_separator_GCJ=
21325   hardcode_direct_GCJ=no
21326   hardcode_minus_L_GCJ=no
21327   hardcode_shlibpath_var_GCJ=unsupported
21328   link_all_deplibs_GCJ=unknown
21329   hardcode_automatic_GCJ=no
21330   module_cmds_GCJ=
21331   module_expsym_cmds_GCJ=
21332   always_export_symbols_GCJ=no
21333   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21334   # include_expsyms should be a list of space-separated symbols to be *always*
21335   # included in the symbol list
21336   include_expsyms_GCJ=
21337   # exclude_expsyms can be an extended regexp of symbols to exclude
21338   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21339   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21340   # as well as any symbol that contains `d'.
21341   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21342   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21343   # platforms (ab)use it in PIC code, but their linkers get confused if
21344   # the symbol is explicitly referenced.  Since portable code cannot
21345   # rely on this symbol name, it's probably fine to never include it in
21346   # preloaded symbol tables.
21347   extract_expsyms_cmds=
21348
21349   case $host_os in
21350   cygwin* | mingw* | pw32*)
21351     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21352     # When not using gcc, we currently assume that we are using
21353     # Microsoft Visual C++.
21354     if test "$GCC" != yes; then
21355       with_gnu_ld=no
21356     fi
21357     ;;
21358   openbsd*)
21359     with_gnu_ld=no
21360     ;;
21361   esac
21362
21363   ld_shlibs_GCJ=yes
21364   if test "$with_gnu_ld" = yes; then
21365     # If archive_cmds runs LD, not CC, wlarc should be empty
21366     wlarc='${wl}'
21367
21368     # See if GNU ld supports shared libraries.
21369     case $host_os in
21370     aix3* | aix4* | aix5*)
21371       # On AIX/PPC, the GNU linker is very broken
21372       if test "$host_cpu" != ia64; then
21373         ld_shlibs_GCJ=no
21374         cat <<EOF 1>&2
21375
21376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21377 *** to be unable to reliably create shared libraries on AIX.
21378 *** Therefore, libtool is disabling shared libraries support.  If you
21379 *** really care for shared libraries, you may want to modify your PATH
21380 *** so that a non-GNU linker is found, and then restart.
21381
21382 EOF
21383       fi
21384       ;;
21385
21386     amigaos*)
21387       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)'
21388       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21389       hardcode_minus_L_GCJ=yes
21390
21391       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21392       # that the semantics of dynamic libraries on AmigaOS, at least up
21393       # to version 4, is to share data among multiple programs linked
21394       # with the same dynamic library.  Since this doesn't match the
21395       # behavior of shared libraries on other platforms, we can't use
21396       # them.
21397       ld_shlibs_GCJ=no
21398       ;;
21399
21400     beos*)
21401       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21402         allow_undefined_flag_GCJ=unsupported
21403         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21404         # support --undefined.  This deserves some investigation.  FIXME
21405         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21406       else
21407         ld_shlibs_GCJ=no
21408       fi
21409       ;;
21410
21411     cygwin* | mingw* | pw32*)
21412       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21413       # as there is no search path for DLLs.
21414       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21415       allow_undefined_flag_GCJ=unsupported
21416       always_export_symbols_GCJ=no
21417       enable_shared_with_static_runtimes_GCJ=yes
21418       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21419
21420       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21421         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21422         # If the export-symbols file already is a .def file (1st line
21423         # is EXPORTS), use it as is; otherwise, prepend...
21424         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21425           cp $export_symbols $output_objdir/$soname.def;
21426         else
21427           echo EXPORTS > $output_objdir/$soname.def;
21428           cat $export_symbols >> $output_objdir/$soname.def;
21429         fi~
21430         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21431       else
21432         ld_shlibs=no
21433       fi
21434       ;;
21435
21436     netbsd*)
21437       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21438         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21439         wlarc=
21440       else
21441         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21442         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21443       fi
21444       ;;
21445
21446     solaris* | sysv5*)
21447       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21448         ld_shlibs_GCJ=no
21449         cat <<EOF 1>&2
21450
21451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21452 *** create shared libraries on Solaris systems.  Therefore, libtool
21453 *** is disabling shared libraries support.  We urge you to upgrade GNU
21454 *** binutils to release 2.9.1 or newer.  Another option is to modify
21455 *** your PATH or compiler configuration so that the native linker is
21456 *** used, and then restart.
21457
21458 EOF
21459       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21460         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21461         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21462       else
21463         ld_shlibs_GCJ=no
21464       fi
21465       ;;
21466
21467     sunos4*)
21468       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21469       wlarc=
21470       hardcode_direct_GCJ=yes
21471       hardcode_shlibpath_var_GCJ=no
21472       ;;
21473
21474   linux*)
21475     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21476         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21477         archive_cmds_GCJ="$tmp_archive_cmds"
21478       supports_anon_versioning=no
21479       case `$LD -v 2>/dev/null` in
21480         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21481         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21482         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21483         *\ 2.11.*) ;; # other 2.11 versions
21484         *) supports_anon_versioning=yes ;;
21485       esac
21486       if test $supports_anon_versioning = yes; then
21487         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21489 $echo "local: *; };" >> $output_objdir/$libname.ver~
21490         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21491       else
21492         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21493       fi
21494     else
21495       ld_shlibs_GCJ=no
21496     fi
21497     ;;
21498
21499     *)
21500       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21502         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21503       else
21504         ld_shlibs_GCJ=no
21505       fi
21506       ;;
21507     esac
21508
21509     if test "$ld_shlibs_GCJ" = yes; then
21510       runpath_var=LD_RUN_PATH
21511       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21512       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21513       # ancient GNU ld didn't support --whole-archive et. al.
21514       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21515         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21516       else
21517         whole_archive_flag_spec_GCJ=
21518       fi
21519     fi
21520   else
21521     # PORTME fill in a description of your system's linker (not GNU ld)
21522     case $host_os in
21523     aix3*)
21524       allow_undefined_flag_GCJ=unsupported
21525       always_export_symbols_GCJ=yes
21526       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'
21527       # Note: this linker hardcodes the directories in LIBPATH if there
21528       # are no directories specified by -L.
21529       hardcode_minus_L_GCJ=yes
21530       if test "$GCC" = yes && test -z "$link_static_flag"; then
21531         # Neither direct hardcoding nor static linking is supported with a
21532         # broken collect2.
21533         hardcode_direct_GCJ=unsupported
21534       fi
21535       ;;
21536
21537     aix4* | aix5*)
21538       if test "$host_cpu" = ia64; then
21539         # On IA64, the linker does run time linking by default, so we don't
21540         # have to do anything special.
21541         aix_use_runtimelinking=no
21542         exp_sym_flag='-Bexport'
21543         no_entry_flag=""
21544       else
21545         # If we're using GNU nm, then we don't want the "-C" option.
21546         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21547         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21548           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'
21549         else
21550           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'
21551         fi
21552         aix_use_runtimelinking=no
21553
21554         # Test if we are trying to use run time linking or normal
21555         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21556         # need to do runtime linking.
21557         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21558           for ld_flag in $LDFLAGS; do
21559           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21560             aix_use_runtimelinking=yes
21561             break
21562           fi
21563           done
21564         esac
21565
21566         exp_sym_flag='-bexport'
21567         no_entry_flag='-bnoentry'
21568       fi
21569
21570       # When large executables or shared objects are built, AIX ld can
21571       # have problems creating the table of contents.  If linking a library
21572       # or program results in "error TOC overflow" add -mminimal-toc to
21573       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21574       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21575
21576       archive_cmds_GCJ=''
21577       hardcode_direct_GCJ=yes
21578       hardcode_libdir_separator_GCJ=':'
21579       link_all_deplibs_GCJ=yes
21580
21581       if test "$GCC" = yes; then
21582         case $host_os in aix4.012|aix4.012.*)
21583         # We only want to do this on AIX 4.2 and lower, the check
21584         # below for broken collect2 doesn't work under 4.3+
21585           collect2name=`${CC} -print-prog-name=collect2`
21586           if test -f "$collect2name" && \
21587            strings "$collect2name" | grep resolve_lib_name >/dev/null
21588           then
21589           # We have reworked collect2
21590           hardcode_direct_GCJ=yes
21591           else
21592           # We have old collect2
21593           hardcode_direct_GCJ=unsupported
21594           # It fails to find uninstalled libraries when the uninstalled
21595           # path is not listed in the libpath.  Setting hardcode_minus_L
21596           # to unsupported forces relinking
21597           hardcode_minus_L_GCJ=yes
21598           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21599           hardcode_libdir_separator_GCJ=
21600           fi
21601         esac
21602         shared_flag='-shared'
21603       else
21604         # not using gcc
21605         if test "$host_cpu" = ia64; then
21606         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21607         # chokes on -Wl,-G. The following line is correct:
21608           shared_flag='-G'
21609         else
21610         if test "$aix_use_runtimelinking" = yes; then
21611             shared_flag='${wl}-G'
21612           else
21613             shared_flag='${wl}-bM:SRE'
21614         fi
21615         fi
21616       fi
21617
21618       # It seems that -bexpall does not export symbols beginning with
21619       # underscore (_), so it is better to generate a list of symbols to export.
21620       always_export_symbols_GCJ=yes
21621       if test "$aix_use_runtimelinking" = yes; then
21622         # Warning - without using the other runtime loading flags (-brtl),
21623         # -berok will link without error, but may produce a broken library.
21624         allow_undefined_flag_GCJ='-berok'
21625        # Determine the default libpath from the value encoded in an empty executable.
21626        cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h.  */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h.  */
21632
21633 int
21634 main ()
21635 {
21636
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21643   (eval $ac_link) 2>conftest.er1
21644   ac_status=$?
21645   grep -v '^ *+' conftest.er1 >conftest.err
21646   rm -f conftest.er1
21647   cat conftest.err >&5
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); } &&
21650          { ac_try='test -z "$ac_c_werror_flag"
21651                          || test ! -s conftest.err'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; } &&
21657          { ac_try='test -s conftest$ac_exeext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663
21664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21665 }'`
21666 # Check for a 64-bit object if we didn't find anything.
21667 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; }
21668 }'`; fi
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673 fi
21674 rm -f conftest.err conftest.$ac_objext \
21675       conftest$ac_exeext conftest.$ac_ext
21676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21677
21678        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21679         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"
21680        else
21681         if test "$host_cpu" = ia64; then
21682           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21683           allow_undefined_flag_GCJ="-z nodefs"
21684           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"
21685         else
21686          # Determine the default libpath from the value encoded in an empty executable.
21687          cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693
21694 int
21695 main ()
21696 {
21697
21698   ;
21699   return 0;
21700 }
21701 _ACEOF
21702 rm -f conftest.$ac_objext conftest$ac_exeext
21703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21704   (eval $ac_link) 2>conftest.er1
21705   ac_status=$?
21706   grep -v '^ *+' conftest.er1 >conftest.err
21707   rm -f conftest.er1
21708   cat conftest.err >&5
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); } &&
21711          { ac_try='test -z "$ac_c_werror_flag"
21712                          || test ! -s conftest.err'
21713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714   (eval $ac_try) 2>&5
21715   ac_status=$?
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); }; } &&
21718          { ac_try='test -s conftest$ac_exeext'
21719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720   (eval $ac_try) 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; }; then
21724
21725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21726 }'`
21727 # Check for a 64-bit object if we didn't find anything.
21728 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; }
21729 }'`; fi
21730 else
21731   echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 fi
21735 rm -f conftest.err conftest.$ac_objext \
21736       conftest$ac_exeext conftest.$ac_ext
21737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21738
21739          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21740           # Warning - without using the other run time loading flags,
21741           # -berok will link without error, but may produce a broken library.
21742           no_undefined_flag_GCJ=' ${wl}-bernotok'
21743           allow_undefined_flag_GCJ=' ${wl}-berok'
21744           # -bexpall does not export symbols beginning with underscore (_)
21745           always_export_symbols_GCJ=yes
21746           # Exported symbols can be pulled into shared objects from archives
21747           whole_archive_flag_spec_GCJ=' '
21748           archive_cmds_need_lc_GCJ=yes
21749           # This is similar to how AIX traditionally builds it's shared libraries.
21750           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'
21751         fi
21752       fi
21753       ;;
21754
21755     amigaos*)
21756       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)'
21757       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21758       hardcode_minus_L_GCJ=yes
21759       # see comment about different semantics on the GNU ld section
21760       ld_shlibs_GCJ=no
21761       ;;
21762
21763     bsdi[45]*)
21764       export_dynamic_flag_spec_GCJ=-rdynamic
21765       ;;
21766
21767     cygwin* | mingw* | pw32*)
21768       # When not using gcc, we currently assume that we are using
21769       # Microsoft Visual C++.
21770       # hardcode_libdir_flag_spec is actually meaningless, as there is
21771       # no search path for DLLs.
21772       hardcode_libdir_flag_spec_GCJ=' '
21773       allow_undefined_flag_GCJ=unsupported
21774       # Tell ltmain to make .lib files, not .a files.
21775       libext=lib
21776       # Tell ltmain to make .dll files, not .so files.
21777       shrext_cmds=".dll"
21778       # FIXME: Setting linknames here is a bad hack.
21779       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21780       # The linker will automatically build a .lib file if we build a DLL.
21781       old_archive_From_new_cmds_GCJ='true'
21782       # FIXME: Should let the user specify the lib program.
21783       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21784       fix_srcfile_path='`cygpath -w "$srcfile"`'
21785       enable_shared_with_static_runtimes_GCJ=yes
21786       ;;
21787
21788     darwin* | rhapsody*)
21789       case "$host_os" in
21790         rhapsody* | darwin1.[012])
21791          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21792          ;;
21793        *) # Darwin 1.3 on
21794          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21795            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21796          else
21797            case ${MACOSX_DEPLOYMENT_TARGET} in
21798              10.[012])
21799                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21800                ;;
21801              10.*)
21802                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21803                ;;
21804            esac
21805          fi
21806          ;;
21807       esac
21808       archive_cmds_need_lc_GCJ=no
21809       hardcode_direct_GCJ=no
21810       hardcode_automatic_GCJ=yes
21811       hardcode_shlibpath_var_GCJ=unsupported
21812       whole_archive_flag_spec_GCJ=''
21813       link_all_deplibs_GCJ=yes
21814     if test "$GCC" = yes ; then
21815         output_verbose_link_cmd='echo'
21816         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21817       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21818       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21819       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}'
21820       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}'
21821     else
21822       case "$cc_basename" in
21823         xlc*)
21824          output_verbose_link_cmd='echo'
21825          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21826          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21827           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21828          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}'
21829           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}'
21830           ;;
21831        *)
21832          ld_shlibs_GCJ=no
21833           ;;
21834       esac
21835     fi
21836       ;;
21837
21838     dgux*)
21839       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21840       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21841       hardcode_shlibpath_var_GCJ=no
21842       ;;
21843
21844     freebsd1*)
21845       ld_shlibs_GCJ=no
21846       ;;
21847
21848     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21849     # support.  Future versions do this automatically, but an explicit c++rt0.o
21850     # does not break anything, and helps significantly (at the cost of a little
21851     # extra space).
21852     freebsd2.2*)
21853       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21854       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21855       hardcode_direct_GCJ=yes
21856       hardcode_shlibpath_var_GCJ=no
21857       ;;
21858
21859     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21860     freebsd2*)
21861       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21862       hardcode_direct_GCJ=yes
21863       hardcode_minus_L_GCJ=yes
21864       hardcode_shlibpath_var_GCJ=no
21865       ;;
21866
21867     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21868     freebsd* | kfreebsd*-gnu)
21869       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21870       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21871       hardcode_direct_GCJ=yes
21872       hardcode_shlibpath_var_GCJ=no
21873       ;;
21874
21875     hpux9*)
21876       if test "$GCC" = yes; then
21877         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'
21878       else
21879         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'
21880       fi
21881       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21882       hardcode_libdir_separator_GCJ=:
21883       hardcode_direct_GCJ=yes
21884
21885       # hardcode_minus_L: Not really in the search PATH,
21886       # but as the default location of the library.
21887       hardcode_minus_L_GCJ=yes
21888       export_dynamic_flag_spec_GCJ='${wl}-E'
21889       ;;
21890
21891     hpux10* | hpux11*)
21892       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21893         case "$host_cpu" in
21894         hppa*64*|ia64*)
21895           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21896           ;;
21897         *)
21898           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21899           ;;
21900         esac
21901       else
21902         case "$host_cpu" in
21903         hppa*64*|ia64*)
21904           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21905           ;;
21906         *)
21907           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21908           ;;
21909         esac
21910       fi
21911       if test "$with_gnu_ld" = no; then
21912         case "$host_cpu" in
21913         hppa*64*)
21914           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21915           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21916           hardcode_libdir_separator_GCJ=:
21917           hardcode_direct_GCJ=no
21918           hardcode_shlibpath_var_GCJ=no
21919           ;;
21920         ia64*)
21921           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21922           hardcode_direct_GCJ=no
21923           hardcode_shlibpath_var_GCJ=no
21924
21925           # hardcode_minus_L: Not really in the search PATH,
21926           # but as the default location of the library.
21927           hardcode_minus_L_GCJ=yes
21928           ;;
21929         *)
21930           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21931           hardcode_libdir_separator_GCJ=:
21932           hardcode_direct_GCJ=yes
21933           export_dynamic_flag_spec_GCJ='${wl}-E'
21934
21935           # hardcode_minus_L: Not really in the search PATH,
21936           # but as the default location of the library.
21937           hardcode_minus_L_GCJ=yes
21938           ;;
21939         esac
21940       fi
21941       ;;
21942
21943     irix5* | irix6* | nonstopux*)
21944       if test "$GCC" = yes; then
21945         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'
21946       else
21947         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'
21948         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21949       fi
21950       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21951       hardcode_libdir_separator_GCJ=:
21952       link_all_deplibs_GCJ=yes
21953       ;;
21954
21955     netbsd*)
21956       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21957         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21958       else
21959         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21960       fi
21961       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21962       hardcode_direct_GCJ=yes
21963       hardcode_shlibpath_var_GCJ=no
21964       ;;
21965
21966     newsos6)
21967       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21968       hardcode_direct_GCJ=yes
21969       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21970       hardcode_libdir_separator_GCJ=:
21971       hardcode_shlibpath_var_GCJ=no
21972       ;;
21973
21974     openbsd*)
21975       hardcode_direct_GCJ=yes
21976       hardcode_shlibpath_var_GCJ=no
21977       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21978         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21979         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21980         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21981         export_dynamic_flag_spec_GCJ='${wl}-E'
21982       else
21983        case $host_os in
21984          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21985            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21986            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21987            ;;
21988          *)
21989            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21990            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21991            ;;
21992        esac
21993       fi
21994       ;;
21995
21996     os2*)
21997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21998       hardcode_minus_L_GCJ=yes
21999       allow_undefined_flag_GCJ=unsupported
22000       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'
22001       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22002       ;;
22003
22004     osf3*)
22005       if test "$GCC" = yes; then
22006         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22007         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'
22008       else
22009         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22010         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'
22011       fi
22012       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22013       hardcode_libdir_separator_GCJ=:
22014       ;;
22015
22016     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22017       if test "$GCC" = yes; then
22018         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22019         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'
22020         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22021       else
22022         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22023         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'
22024         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~
22025         $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'
22026
22027         # Both c and cxx compiler support -rpath directly
22028         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22029       fi
22030       hardcode_libdir_separator_GCJ=:
22031       ;;
22032
22033     sco3.2v5*)
22034       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22035       hardcode_shlibpath_var_GCJ=no
22036       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22037       runpath_var=LD_RUN_PATH
22038       hardcode_runpath_var=yes
22039       ;;
22040
22041     solaris*)
22042       no_undefined_flag_GCJ=' -z text'
22043       if test "$GCC" = yes; then
22044         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22045         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22046           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22047       else
22048         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22049         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22050         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22051       fi
22052       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22053       hardcode_shlibpath_var_GCJ=no
22054       case $host_os in
22055       solaris2.[0-5] | solaris2.[0-5].*) ;;
22056       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22057         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22058       esac
22059       link_all_deplibs_GCJ=yes
22060       ;;
22061
22062     sunos4*)
22063       if test "x$host_vendor" = xsequent; then
22064         # Use $CC to link under sequent, because it throws in some extra .o
22065         # files that make .init and .fini sections work.
22066         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22067       else
22068         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22069       fi
22070       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22071       hardcode_direct_GCJ=yes
22072       hardcode_minus_L_GCJ=yes
22073       hardcode_shlibpath_var_GCJ=no
22074       ;;
22075
22076     sysv4)
22077       case $host_vendor in
22078         sni)
22079           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22080           hardcode_direct_GCJ=yes # is this really true???
22081         ;;
22082         siemens)
22083           ## LD is ld it makes a PLAMLIB
22084           ## CC just makes a GrossModule.
22085           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22086           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22087           hardcode_direct_GCJ=no
22088         ;;
22089         motorola)
22090           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22091           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22092         ;;
22093       esac
22094       runpath_var='LD_RUN_PATH'
22095       hardcode_shlibpath_var_GCJ=no
22096       ;;
22097
22098     sysv4.3*)
22099       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22100       hardcode_shlibpath_var_GCJ=no
22101       export_dynamic_flag_spec_GCJ='-Bexport'
22102       ;;
22103
22104     sysv4*MP*)
22105       if test -d /usr/nec; then
22106         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22107         hardcode_shlibpath_var_GCJ=no
22108         runpath_var=LD_RUN_PATH
22109         hardcode_runpath_var=yes
22110         ld_shlibs_GCJ=yes
22111       fi
22112       ;;
22113
22114     sysv4.2uw2*)
22115       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22116       hardcode_direct_GCJ=yes
22117       hardcode_minus_L_GCJ=no
22118       hardcode_shlibpath_var_GCJ=no
22119       hardcode_runpath_var=yes
22120       runpath_var=LD_RUN_PATH
22121       ;;
22122
22123    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22124       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22125       if test "$GCC" = yes; then
22126         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22127       else
22128         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22129       fi
22130       runpath_var='LD_RUN_PATH'
22131       hardcode_shlibpath_var_GCJ=no
22132       ;;
22133
22134     sysv5*)
22135       no_undefined_flag_GCJ=' -z text'
22136       # $CC -shared without GNU ld will not create a library from C++
22137       # object files and a static libstdc++, better avoid it by now
22138       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22139       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22140                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22141       hardcode_libdir_flag_spec_GCJ=
22142       hardcode_shlibpath_var_GCJ=no
22143       runpath_var='LD_RUN_PATH'
22144       ;;
22145
22146     uts4*)
22147       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22148       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22149       hardcode_shlibpath_var_GCJ=no
22150       ;;
22151
22152     *)
22153       ld_shlibs_GCJ=no
22154       ;;
22155     esac
22156   fi
22157
22158 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22159 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22160 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22161
22162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22163 if test "$GCC" = yes; then
22164   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22165 fi
22166
22167 #
22168 # Do we need to explicitly link libc?
22169 #
22170 case "x$archive_cmds_need_lc_GCJ" in
22171 x|xyes)
22172   # Assume -lc should be added
22173   archive_cmds_need_lc_GCJ=yes
22174
22175   if test "$enable_shared" = yes && test "$GCC" = yes; then
22176     case $archive_cmds_GCJ in
22177     *'~'*)
22178       # FIXME: we may have to deal with multi-command sequences.
22179       ;;
22180     '$CC '*)
22181       # Test whether the compiler implicitly links with -lc since on some
22182       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22183       # to ld, don't add -lc before -lgcc.
22184       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22185 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22186       $rm conftest*
22187       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22188
22189       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22190   (eval $ac_compile) 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } 2>conftest.err; then
22194         soname=conftest
22195         lib=conftest
22196         libobjs=conftest.$ac_objext
22197         deplibs=
22198         wl=$lt_prog_compiler_wl_GCJ
22199         compiler_flags=-v
22200         linker_flags=-v
22201         verstring=
22202         output_objdir=.
22203         libname=conftest
22204         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22205         allow_undefined_flag_GCJ=
22206         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22207   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); }
22211         then
22212           archive_cmds_need_lc_GCJ=no
22213         else
22214           archive_cmds_need_lc_GCJ=yes
22215         fi
22216         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22217       else
22218         cat conftest.err 1>&5
22219       fi
22220       $rm conftest*
22221       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22222 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22223       ;;
22224     esac
22225   fi
22226   ;;
22227 esac
22228
22229 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22231 library_names_spec=
22232 libname_spec='lib$name'
22233 soname_spec=
22234 shrext_cmds=".so"
22235 postinstall_cmds=
22236 postuninstall_cmds=
22237 finish_cmds=
22238 finish_eval=
22239 shlibpath_var=
22240 shlibpath_overrides_runpath=unknown
22241 version_type=none
22242 dynamic_linker="$host_os ld.so"
22243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22244 if test "$GCC" = yes; then
22245   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22246   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22247     # if the path contains ";" then we assume it to be the separator
22248     # otherwise default to the standard path separator (i.e. ":") - it is
22249     # assumed that no part of a normal pathname contains ";" but that should
22250     # okay in the real world where ";" in dirpaths is itself problematic.
22251     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22252   else
22253     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22254   fi
22255 else
22256   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22257 fi
22258 need_lib_prefix=unknown
22259 hardcode_into_libs=no
22260
22261 # when you set need_version to no, make sure it does not cause -set_version
22262 # flags to be left without arguments
22263 need_version=unknown
22264
22265 case $host_os in
22266 aix3*)
22267   version_type=linux
22268   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22269   shlibpath_var=LIBPATH
22270
22271   # AIX 3 has no versioning support, so we append a major version to the name.
22272   soname_spec='${libname}${release}${shared_ext}$major'
22273   ;;
22274
22275 aix4* | aix5*)
22276   version_type=linux
22277   need_lib_prefix=no
22278   need_version=no
22279   hardcode_into_libs=yes
22280   if test "$host_cpu" = ia64; then
22281     # AIX 5 supports IA64
22282     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22283     shlibpath_var=LD_LIBRARY_PATH
22284   else
22285     # With GCC up to 2.95.x, collect2 would create an import file
22286     # for dependence libraries.  The import file would start with
22287     # the line `#! .'.  This would cause the generated library to
22288     # depend on `.', always an invalid library.  This was fixed in
22289     # development snapshots of GCC prior to 3.0.
22290     case $host_os in
22291       aix4 | aix4.[01] | aix4.[01].*)
22292       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22293            echo ' yes '
22294            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22295         :
22296       else
22297         can_build_shared=no
22298       fi
22299       ;;
22300     esac
22301     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22302     # soname into executable. Probably we can add versioning support to
22303     # collect2, so additional links can be useful in future.
22304     if test "$aix_use_runtimelinking" = yes; then
22305       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22306       # instead of lib<name>.a to let people know that these are not
22307       # typical AIX shared libraries.
22308       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22309     else
22310       # We preserve .a as extension for shared libraries through AIX4.2
22311       # and later when we are not doing run time linking.
22312       library_names_spec='${libname}${release}.a $libname.a'
22313       soname_spec='${libname}${release}${shared_ext}$major'
22314     fi
22315     shlibpath_var=LIBPATH
22316   fi
22317   ;;
22318
22319 amigaos*)
22320   library_names_spec='$libname.ixlibrary $libname.a'
22321   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22322   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'
22323   ;;
22324
22325 beos*)
22326   library_names_spec='${libname}${shared_ext}'
22327   dynamic_linker="$host_os ld.so"
22328   shlibpath_var=LIBRARY_PATH
22329   ;;
22330
22331 bsdi[45]*)
22332   version_type=linux
22333   need_version=no
22334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22335   soname_spec='${libname}${release}${shared_ext}$major'
22336   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22337   shlibpath_var=LD_LIBRARY_PATH
22338   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22339   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22340   # the default ld.so.conf also contains /usr/contrib/lib and
22341   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22342   # libtool to hard-code these into programs
22343   ;;
22344
22345 cygwin* | mingw* | pw32*)
22346   version_type=windows
22347   shrext_cmds=".dll"
22348   need_version=no
22349   need_lib_prefix=no
22350
22351   case $GCC,$host_os in
22352   yes,cygwin* | yes,mingw* | yes,pw32*)
22353     library_names_spec='$libname.dll.a'
22354     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22355     postinstall_cmds='base_file=`basename \${file}`~
22356       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22357       dldir=$destdir/`dirname \$dlpath`~
22358       test -d \$dldir || mkdir -p \$dldir~
22359       $install_prog $dir/$dlname \$dldir/$dlname'
22360     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22361       dlpath=$dir/\$dldll~
22362        $rm \$dlpath'
22363     shlibpath_overrides_runpath=yes
22364
22365     case $host_os in
22366     cygwin*)
22367       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22368       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22369       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22370       ;;
22371     mingw*)
22372       # MinGW DLLs use traditional 'lib' prefix
22373       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22374       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22375       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22376         # It is most probably a Windows format PATH printed by
22377         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22378         # path with ; separators, and with drive letters. We can handle the
22379         # drive letters (cygwin fileutils understands them), so leave them,
22380         # especially as we might pass files found there to a mingw objdump,
22381         # which wouldn't understand a cygwinified path. Ahh.
22382         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22383       else
22384         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22385       fi
22386       ;;
22387     pw32*)
22388       # pw32 DLLs use 'pw' prefix rather than 'lib'
22389       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22390       ;;
22391     esac
22392     ;;
22393
22394   *)
22395     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22396     ;;
22397   esac
22398   dynamic_linker='Win32 ld.exe'
22399   # FIXME: first we should search . and the directory the executable is in
22400   shlibpath_var=PATH
22401   ;;
22402
22403 darwin* | rhapsody*)
22404   dynamic_linker="$host_os dyld"
22405   version_type=darwin
22406   need_lib_prefix=no
22407   need_version=no
22408   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22409   soname_spec='${libname}${release}${major}$shared_ext'
22410   shlibpath_overrides_runpath=yes
22411   shlibpath_var=DYLD_LIBRARY_PATH
22412   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22413   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22414   if test "$GCC" = yes; then
22415     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"`
22416   else
22417     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22418   fi
22419   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22420   ;;
22421
22422 dgux*)
22423   version_type=linux
22424   need_lib_prefix=no
22425   need_version=no
22426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22427   soname_spec='${libname}${release}${shared_ext}$major'
22428   shlibpath_var=LD_LIBRARY_PATH
22429   ;;
22430
22431 freebsd1*)
22432   dynamic_linker=no
22433   ;;
22434
22435 kfreebsd*-gnu)
22436   version_type=linux
22437   need_lib_prefix=no
22438   need_version=no
22439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22440   soname_spec='${libname}${release}${shared_ext}$major'
22441   shlibpath_var=LD_LIBRARY_PATH
22442   shlibpath_overrides_runpath=no
22443   hardcode_into_libs=yes
22444   dynamic_linker='GNU ld.so'
22445   ;;
22446
22447 freebsd*)
22448   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22449   version_type=freebsd-$objformat
22450   case $version_type in
22451     freebsd-elf*)
22452       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22453       need_version=no
22454       need_lib_prefix=no
22455       ;;
22456     freebsd-*)
22457       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22458       need_version=yes
22459       ;;
22460   esac
22461   shlibpath_var=LD_LIBRARY_PATH
22462   case $host_os in
22463   freebsd2*)
22464     shlibpath_overrides_runpath=yes
22465     ;;
22466   freebsd3.01* | freebsdelf3.01*)
22467     shlibpath_overrides_runpath=yes
22468     hardcode_into_libs=yes
22469     ;;
22470   *) # from 3.2 on
22471     shlibpath_overrides_runpath=no
22472     hardcode_into_libs=yes
22473     ;;
22474   esac
22475   ;;
22476
22477 gnu*)
22478   version_type=linux
22479   need_lib_prefix=no
22480   need_version=no
22481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22482   soname_spec='${libname}${release}${shared_ext}$major'
22483   shlibpath_var=LD_LIBRARY_PATH
22484   hardcode_into_libs=yes
22485   ;;
22486
22487 hpux9* | hpux10* | hpux11*)
22488   # Give a soname corresponding to the major version so that dld.sl refuses to
22489   # link against other versions.
22490   version_type=sunos
22491   need_lib_prefix=no
22492   need_version=no
22493   case "$host_cpu" in
22494   ia64*)
22495     shrext_cmds='.so'
22496     hardcode_into_libs=yes
22497     dynamic_linker="$host_os dld.so"
22498     shlibpath_var=LD_LIBRARY_PATH
22499     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22501     soname_spec='${libname}${release}${shared_ext}$major'
22502     if test "X$HPUX_IA64_MODE" = X32; then
22503       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22504     else
22505       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22506     fi
22507     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22508     ;;
22509    hppa*64*)
22510      shrext_cmds='.sl'
22511      hardcode_into_libs=yes
22512      dynamic_linker="$host_os dld.sl"
22513      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22514      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22515      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22516      soname_spec='${libname}${release}${shared_ext}$major'
22517      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22518      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22519      ;;
22520    *)
22521     shrext_cmds='.sl'
22522     dynamic_linker="$host_os dld.sl"
22523     shlibpath_var=SHLIB_PATH
22524     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526     soname_spec='${libname}${release}${shared_ext}$major'
22527     ;;
22528   esac
22529   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22530   postinstall_cmds='chmod 555 $lib'
22531   ;;
22532
22533 irix5* | irix6* | nonstopux*)
22534   case $host_os in
22535     nonstopux*) version_type=nonstopux ;;
22536     *)
22537         if test "$lt_cv_prog_gnu_ld" = yes; then
22538                 version_type=linux
22539         else
22540                 version_type=irix
22541         fi ;;
22542   esac
22543   need_lib_prefix=no
22544   need_version=no
22545   soname_spec='${libname}${release}${shared_ext}$major'
22546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22547   case $host_os in
22548   irix5* | nonstopux*)
22549     libsuff= shlibsuff=
22550     ;;
22551   *)
22552     case $LD in # libtool.m4 will add one of these switches to LD
22553     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22554       libsuff= shlibsuff= libmagic=32-bit;;
22555     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22556       libsuff=32 shlibsuff=N32 libmagic=N32;;
22557     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22558       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22559     *) libsuff= shlibsuff= libmagic=never-match;;
22560     esac
22561     ;;
22562   esac
22563   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22564   shlibpath_overrides_runpath=no
22565   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22566   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22567   hardcode_into_libs=yes
22568   ;;
22569
22570 # No shared lib support for Linux oldld, aout, or coff.
22571 linux*oldld* | linux*aout* | linux*coff*)
22572   dynamic_linker=no
22573   ;;
22574
22575 # This must be Linux ELF.
22576 linux*)
22577   version_type=linux
22578   need_lib_prefix=no
22579   need_version=no
22580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22581   soname_spec='${libname}${release}${shared_ext}$major'
22582   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22583   shlibpath_var=LD_LIBRARY_PATH
22584   shlibpath_overrides_runpath=no
22585   # This implies no fast_install, which is unacceptable.
22586   # Some rework will be needed to allow for fast_install
22587   # before this can be enabled.
22588   hardcode_into_libs=yes
22589
22590   # Append ld.so.conf contents to the search path
22591   if test -f /etc/ld.so.conf; then
22592     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22593     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22594   fi
22595
22596   # We used to test for /lib/ld.so.1 and disable shared libraries on
22597   # powerpc, because MkLinux only supported shared libraries with the
22598   # GNU dynamic linker.  Since this was broken with cross compilers,
22599   # most powerpc-linux boxes support dynamic linking these days and
22600   # people can always --disable-shared, the test was removed, and we
22601   # assume the GNU/Linux dynamic linker is in use.
22602   dynamic_linker='GNU/Linux ld.so'
22603   ;;
22604
22605 knetbsd*-gnu)
22606   version_type=linux
22607   need_lib_prefix=no
22608   need_version=no
22609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22610   soname_spec='${libname}${release}${shared_ext}$major'
22611   shlibpath_var=LD_LIBRARY_PATH
22612   shlibpath_overrides_runpath=no
22613   hardcode_into_libs=yes
22614   dynamic_linker='GNU ld.so'
22615   ;;
22616
22617 netbsd*)
22618   version_type=sunos
22619   need_lib_prefix=no
22620   need_version=no
22621   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22623     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22624     dynamic_linker='NetBSD (a.out) ld.so'
22625   else
22626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22627     soname_spec='${libname}${release}${shared_ext}$major'
22628     dynamic_linker='NetBSD ld.elf_so'
22629   fi
22630   shlibpath_var=LD_LIBRARY_PATH
22631   shlibpath_overrides_runpath=yes
22632   hardcode_into_libs=yes
22633   ;;
22634
22635 newsos6)
22636   version_type=linux
22637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22638   shlibpath_var=LD_LIBRARY_PATH
22639   shlibpath_overrides_runpath=yes
22640   ;;
22641
22642 nto-qnx*)
22643   version_type=linux
22644   need_lib_prefix=no
22645   need_version=no
22646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647   soname_spec='${libname}${release}${shared_ext}$major'
22648   shlibpath_var=LD_LIBRARY_PATH
22649   shlibpath_overrides_runpath=yes
22650   ;;
22651
22652 openbsd*)
22653   version_type=sunos
22654   need_lib_prefix=no
22655   need_version=no
22656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22658   shlibpath_var=LD_LIBRARY_PATH
22659   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22660     case $host_os in
22661       openbsd2.[89] | openbsd2.[89].*)
22662         shlibpath_overrides_runpath=no
22663         ;;
22664       *)
22665         shlibpath_overrides_runpath=yes
22666         ;;
22667       esac
22668   else
22669     shlibpath_overrides_runpath=yes
22670   fi
22671   ;;
22672
22673 os2*)
22674   libname_spec='$name'
22675   shrext_cmds=".dll"
22676   need_lib_prefix=no
22677   library_names_spec='$libname${shared_ext} $libname.a'
22678   dynamic_linker='OS/2 ld.exe'
22679   shlibpath_var=LIBPATH
22680   ;;
22681
22682 osf3* | osf4* | osf5*)
22683   version_type=osf
22684   need_lib_prefix=no
22685   need_version=no
22686   soname_spec='${libname}${release}${shared_ext}$major'
22687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688   shlibpath_var=LD_LIBRARY_PATH
22689   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22690   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22691   ;;
22692
22693 sco3.2v5*)
22694   version_type=osf
22695   soname_spec='${libname}${release}${shared_ext}$major'
22696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697   shlibpath_var=LD_LIBRARY_PATH
22698   ;;
22699
22700 solaris*)
22701   version_type=linux
22702   need_lib_prefix=no
22703   need_version=no
22704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22705   soname_spec='${libname}${release}${shared_ext}$major'
22706   shlibpath_var=LD_LIBRARY_PATH
22707   shlibpath_overrides_runpath=yes
22708   hardcode_into_libs=yes
22709   # ldd complains unless libraries are executable
22710   postinstall_cmds='chmod +x $lib'
22711   ;;
22712
22713 sunos4*)
22714   version_type=sunos
22715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22716   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22717   shlibpath_var=LD_LIBRARY_PATH
22718   shlibpath_overrides_runpath=yes
22719   if test "$with_gnu_ld" = yes; then
22720     need_lib_prefix=no
22721   fi
22722   need_version=yes
22723   ;;
22724
22725 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22726   version_type=linux
22727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728   soname_spec='${libname}${release}${shared_ext}$major'
22729   shlibpath_var=LD_LIBRARY_PATH
22730   case $host_vendor in
22731     sni)
22732       shlibpath_overrides_runpath=no
22733       need_lib_prefix=no
22734       export_dynamic_flag_spec='${wl}-Blargedynsym'
22735       runpath_var=LD_RUN_PATH
22736       ;;
22737     siemens)
22738       need_lib_prefix=no
22739       ;;
22740     motorola)
22741       need_lib_prefix=no
22742       need_version=no
22743       shlibpath_overrides_runpath=no
22744       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22745       ;;
22746   esac
22747   ;;
22748
22749 sysv4*MP*)
22750   if test -d /usr/nec ;then
22751     version_type=linux
22752     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22753     soname_spec='$libname${shared_ext}.$major'
22754     shlibpath_var=LD_LIBRARY_PATH
22755   fi
22756   ;;
22757
22758 uts4*)
22759   version_type=linux
22760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22761   soname_spec='${libname}${release}${shared_ext}$major'
22762   shlibpath_var=LD_LIBRARY_PATH
22763   ;;
22764
22765 *)
22766   dynamic_linker=no
22767   ;;
22768 esac
22769 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22770 echo "${ECHO_T}$dynamic_linker" >&6
22771 test "$dynamic_linker" = no && can_build_shared=no
22772
22773 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22774 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22775 hardcode_action_GCJ=
22776 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22777    test -n "$runpath_var_GCJ" || \
22778    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22779
22780   # We can hardcode non-existant directories.
22781   if test "$hardcode_direct_GCJ" != no &&
22782      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22783      # have to relink, otherwise we might link with an installed library
22784      # when we should be linking with a yet-to-be-installed one
22785      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22786      test "$hardcode_minus_L_GCJ" != no; then
22787     # Linking always hardcodes the temporary library directory.
22788     hardcode_action_GCJ=relink
22789   else
22790     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22791     hardcode_action_GCJ=immediate
22792   fi
22793 else
22794   # We cannot hardcode anything, or else we can only hardcode existing
22795   # directories.
22796   hardcode_action_GCJ=unsupported
22797 fi
22798 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22799 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22800
22801 if test "$hardcode_action_GCJ" = relink; then
22802   # Fast installation is not supported
22803   enable_fast_install=no
22804 elif test "$shlibpath_overrides_runpath" = yes ||
22805      test "$enable_shared" = no; then
22806   # Fast installation is not necessary
22807   enable_fast_install=needless
22808 fi
22809
22810 striplib=
22811 old_striplib=
22812 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22813 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22814 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22815   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22816   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22817   echo "$as_me:$LINENO: result: yes" >&5
22818 echo "${ECHO_T}yes" >&6
22819 else
22820 # FIXME - insert some real tests, host_os isn't really good enough
22821   case $host_os in
22822    darwin*)
22823        if test -n "$STRIP" ; then
22824          striplib="$STRIP -x"
22825          echo "$as_me:$LINENO: result: yes" >&5
22826 echo "${ECHO_T}yes" >&6
22827        else
22828   echo "$as_me:$LINENO: result: no" >&5
22829 echo "${ECHO_T}no" >&6
22830 fi
22831        ;;
22832    *)
22833   echo "$as_me:$LINENO: result: no" >&5
22834 echo "${ECHO_T}no" >&6
22835     ;;
22836   esac
22837 fi
22838
22839 if test "x$enable_dlopen" != xyes; then
22840   enable_dlopen=unknown
22841   enable_dlopen_self=unknown
22842   enable_dlopen_self_static=unknown
22843 else
22844   lt_cv_dlopen=no
22845   lt_cv_dlopen_libs=
22846
22847   case $host_os in
22848   beos*)
22849     lt_cv_dlopen="load_add_on"
22850     lt_cv_dlopen_libs=
22851     lt_cv_dlopen_self=yes
22852     ;;
22853
22854   mingw* | pw32*)
22855     lt_cv_dlopen="LoadLibrary"
22856     lt_cv_dlopen_libs=
22857    ;;
22858
22859   cygwin*)
22860     lt_cv_dlopen="dlopen"
22861     lt_cv_dlopen_libs=
22862    ;;
22863
22864   darwin*)
22865   # if libdl is installed we need to link against it
22866     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22867 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22868 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22869   echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871   ac_check_lib_save_LIBS=$LIBS
22872 LIBS="-ldl  $LIBS"
22873 cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h.  */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h.  */
22879
22880 /* Override any gcc2 internal prototype to avoid an error.  */
22881 #ifdef __cplusplus
22882 extern "C"
22883 #endif
22884 /* We use char because int might match the return type of a gcc2
22885    builtin and then its argument prototype would still apply.  */
22886 char dlopen ();
22887 int
22888 main ()
22889 {
22890 dlopen ();
22891   ;
22892   return 0;
22893 }
22894 _ACEOF
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22897   (eval $ac_link) 2>conftest.er1
22898   ac_status=$?
22899   grep -v '^ *+' conftest.er1 >conftest.err
22900   rm -f conftest.er1
22901   cat conftest.err >&5
22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); } &&
22904          { ac_try='test -z "$ac_c_werror_flag"
22905                          || test ! -s conftest.err'
22906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907   (eval $ac_try) 2>&5
22908   ac_status=$?
22909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910   (exit $ac_status); }; } &&
22911          { ac_try='test -s conftest$ac_exeext'
22912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913   (eval $ac_try) 2>&5
22914   ac_status=$?
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); }; }; then
22917   ac_cv_lib_dl_dlopen=yes
22918 else
22919   echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922 ac_cv_lib_dl_dlopen=no
22923 fi
22924 rm -f conftest.err conftest.$ac_objext \
22925       conftest$ac_exeext conftest.$ac_ext
22926 LIBS=$ac_check_lib_save_LIBS
22927 fi
22928 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22930 if test $ac_cv_lib_dl_dlopen = yes; then
22931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22932 else
22933
22934     lt_cv_dlopen="dyld"
22935     lt_cv_dlopen_libs=
22936     lt_cv_dlopen_self=yes
22937
22938 fi
22939
22940    ;;
22941
22942   *)
22943     echo "$as_me:$LINENO: checking for shl_load" >&5
22944 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22945 if test "${ac_cv_func_shl_load+set}" = set; then
22946   echo $ECHO_N "(cached) $ECHO_C" >&6
22947 else
22948   cat >conftest.$ac_ext <<_ACEOF
22949 /* confdefs.h.  */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h.  */
22954 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22956 #define shl_load innocuous_shl_load
22957
22958 /* System header to define __stub macros and hopefully few prototypes,
22959     which can conflict with char shl_load (); below.
22960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22961     <limits.h> exists even on freestanding compilers.  */
22962
22963 #ifdef __STDC__
22964 # include <limits.h>
22965 #else
22966 # include <assert.h>
22967 #endif
22968
22969 #undef shl_load
22970
22971 /* Override any gcc2 internal prototype to avoid an error.  */
22972 #ifdef __cplusplus
22973 extern "C"
22974 {
22975 #endif
22976 /* We use char because int might match the return type of a gcc2
22977    builtin and then its argument prototype would still apply.  */
22978 char shl_load ();
22979 /* The GNU C library defines this for functions which it implements
22980     to always fail with ENOSYS.  Some functions are actually named
22981     something starting with __ and the normal name is an alias.  */
22982 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22983 choke me
22984 #else
22985 char (*f) () = shl_load;
22986 #endif
22987 #ifdef __cplusplus
22988 }
22989 #endif
22990
22991 int
22992 main ()
22993 {
22994 return f != shl_load;
22995   ;
22996   return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001   (eval $ac_link) 2>conftest.er1
23002   ac_status=$?
23003   grep -v '^ *+' conftest.er1 >conftest.err
23004   rm -f conftest.er1
23005   cat conftest.err >&5
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); } &&
23008          { ac_try='test -z "$ac_c_werror_flag"
23009                          || test ! -s conftest.err'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; } &&
23015          { ac_try='test -s conftest$ac_exeext'
23016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017   (eval $ac_try) 2>&5
23018   ac_status=$?
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); }; }; then
23021   ac_cv_func_shl_load=yes
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 ac_cv_func_shl_load=no
23027 fi
23028 rm -f conftest.err conftest.$ac_objext \
23029       conftest$ac_exeext conftest.$ac_ext
23030 fi
23031 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23032 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23033 if test $ac_cv_func_shl_load = yes; then
23034   lt_cv_dlopen="shl_load"
23035 else
23036   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23037 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23038 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041   ac_check_lib_save_LIBS=$LIBS
23042 LIBS="-ldld  $LIBS"
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049
23050 /* Override any gcc2 internal prototype to avoid an error.  */
23051 #ifdef __cplusplus
23052 extern "C"
23053 #endif
23054 /* We use char because int might match the return type of a gcc2
23055    builtin and then its argument prototype would still apply.  */
23056 char shl_load ();
23057 int
23058 main ()
23059 {
23060 shl_load ();
23061   ;
23062   return 0;
23063 }
23064 _ACEOF
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067   (eval $ac_link) 2>conftest.er1
23068   ac_status=$?
23069   grep -v '^ *+' conftest.er1 >conftest.err
23070   rm -f conftest.er1
23071   cat conftest.err >&5
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); } &&
23074          { ac_try='test -z "$ac_c_werror_flag"
23075                          || test ! -s conftest.err'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; } &&
23081          { ac_try='test -s conftest$ac_exeext'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; }; then
23087   ac_cv_lib_dld_shl_load=yes
23088 else
23089   echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23091
23092 ac_cv_lib_dld_shl_load=no
23093 fi
23094 rm -f conftest.err conftest.$ac_objext \
23095       conftest$ac_exeext conftest.$ac_ext
23096 LIBS=$ac_check_lib_save_LIBS
23097 fi
23098 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23099 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23100 if test $ac_cv_lib_dld_shl_load = yes; then
23101   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23102 else
23103   echo "$as_me:$LINENO: checking for dlopen" >&5
23104 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23105 if test "${ac_cv_func_dlopen+set}" = set; then
23106   echo $ECHO_N "(cached) $ECHO_C" >&6
23107 else
23108   cat >conftest.$ac_ext <<_ACEOF
23109 /* confdefs.h.  */
23110 _ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h.  */
23114 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23116 #define dlopen innocuous_dlopen
23117
23118 /* System header to define __stub macros and hopefully few prototypes,
23119     which can conflict with char dlopen (); below.
23120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23121     <limits.h> exists even on freestanding compilers.  */
23122
23123 #ifdef __STDC__
23124 # include <limits.h>
23125 #else
23126 # include <assert.h>
23127 #endif
23128
23129 #undef dlopen
23130
23131 /* Override any gcc2 internal prototype to avoid an error.  */
23132 #ifdef __cplusplus
23133 extern "C"
23134 {
23135 #endif
23136 /* We use char because int might match the return type of a gcc2
23137    builtin and then its argument prototype would still apply.  */
23138 char dlopen ();
23139 /* The GNU C library defines this for functions which it implements
23140     to always fail with ENOSYS.  Some functions are actually named
23141     something starting with __ and the normal name is an alias.  */
23142 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23143 choke me
23144 #else
23145 char (*f) () = dlopen;
23146 #endif
23147 #ifdef __cplusplus
23148 }
23149 #endif
23150
23151 int
23152 main ()
23153 {
23154 return f != dlopen;
23155   ;
23156   return 0;
23157 }
23158 _ACEOF
23159 rm -f conftest.$ac_objext conftest$ac_exeext
23160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23161   (eval $ac_link) 2>conftest.er1
23162   ac_status=$?
23163   grep -v '^ *+' conftest.er1 >conftest.err
23164   rm -f conftest.er1
23165   cat conftest.err >&5
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } &&
23168          { ac_try='test -z "$ac_c_werror_flag"
23169                          || test ! -s conftest.err'
23170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171   (eval $ac_try) 2>&5
23172   ac_status=$?
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); }; } &&
23175          { ac_try='test -s conftest$ac_exeext'
23176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177   (eval $ac_try) 2>&5
23178   ac_status=$?
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); }; }; then
23181   ac_cv_func_dlopen=yes
23182 else
23183   echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23185
23186 ac_cv_func_dlopen=no
23187 fi
23188 rm -f conftest.err conftest.$ac_objext \
23189       conftest$ac_exeext conftest.$ac_ext
23190 fi
23191 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23192 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23193 if test $ac_cv_func_dlopen = yes; then
23194   lt_cv_dlopen="dlopen"
23195 else
23196   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23197 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23198 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23199   echo $ECHO_N "(cached) $ECHO_C" >&6
23200 else
23201   ac_check_lib_save_LIBS=$LIBS
23202 LIBS="-ldl  $LIBS"
23203 cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209
23210 /* Override any gcc2 internal prototype to avoid an error.  */
23211 #ifdef __cplusplus
23212 extern "C"
23213 #endif
23214 /* We use char because int might match the return type of a gcc2
23215    builtin and then its argument prototype would still apply.  */
23216 char dlopen ();
23217 int
23218 main ()
23219 {
23220 dlopen ();
23221   ;
23222   return 0;
23223 }
23224 _ACEOF
23225 rm -f conftest.$ac_objext conftest$ac_exeext
23226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23227   (eval $ac_link) 2>conftest.er1
23228   ac_status=$?
23229   grep -v '^ *+' conftest.er1 >conftest.err
23230   rm -f conftest.er1
23231   cat conftest.err >&5
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); } &&
23234          { ac_try='test -z "$ac_c_werror_flag"
23235                          || test ! -s conftest.err'
23236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237   (eval $ac_try) 2>&5
23238   ac_status=$?
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); }; } &&
23241          { ac_try='test -s conftest$ac_exeext'
23242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243   (eval $ac_try) 2>&5
23244   ac_status=$?
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); }; }; then
23247   ac_cv_lib_dl_dlopen=yes
23248 else
23249   echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23251
23252 ac_cv_lib_dl_dlopen=no
23253 fi
23254 rm -f conftest.err conftest.$ac_objext \
23255       conftest$ac_exeext conftest.$ac_ext
23256 LIBS=$ac_check_lib_save_LIBS
23257 fi
23258 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23260 if test $ac_cv_lib_dl_dlopen = yes; then
23261   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23262 else
23263   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23264 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23266   echo $ECHO_N "(cached) $ECHO_C" >&6
23267 else
23268   ac_check_lib_save_LIBS=$LIBS
23269 LIBS="-lsvld  $LIBS"
23270 cat >conftest.$ac_ext <<_ACEOF
23271 /* confdefs.h.  */
23272 _ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h.  */
23276
23277 /* Override any gcc2 internal prototype to avoid an error.  */
23278 #ifdef __cplusplus
23279 extern "C"
23280 #endif
23281 /* We use char because int might match the return type of a gcc2
23282    builtin and then its argument prototype would still apply.  */
23283 char dlopen ();
23284 int
23285 main ()
23286 {
23287 dlopen ();
23288   ;
23289   return 0;
23290 }
23291 _ACEOF
23292 rm -f conftest.$ac_objext conftest$ac_exeext
23293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23294   (eval $ac_link) 2>conftest.er1
23295   ac_status=$?
23296   grep -v '^ *+' conftest.er1 >conftest.err
23297   rm -f conftest.er1
23298   cat conftest.err >&5
23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300   (exit $ac_status); } &&
23301          { ac_try='test -z "$ac_c_werror_flag"
23302                          || test ! -s conftest.err'
23303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304   (eval $ac_try) 2>&5
23305   ac_status=$?
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); }; } &&
23308          { ac_try='test -s conftest$ac_exeext'
23309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310   (eval $ac_try) 2>&5
23311   ac_status=$?
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); }; }; then
23314   ac_cv_lib_svld_dlopen=yes
23315 else
23316   echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23318
23319 ac_cv_lib_svld_dlopen=no
23320 fi
23321 rm -f conftest.err conftest.$ac_objext \
23322       conftest$ac_exeext conftest.$ac_ext
23323 LIBS=$ac_check_lib_save_LIBS
23324 fi
23325 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23326 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23327 if test $ac_cv_lib_svld_dlopen = yes; then
23328   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23329 else
23330   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23331 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23332 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23333   echo $ECHO_N "(cached) $ECHO_C" >&6
23334 else
23335   ac_check_lib_save_LIBS=$LIBS
23336 LIBS="-ldld  $LIBS"
23337 cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h.  */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h.  */
23343
23344 /* Override any gcc2 internal prototype to avoid an error.  */
23345 #ifdef __cplusplus
23346 extern "C"
23347 #endif
23348 /* We use char because int might match the return type of a gcc2
23349    builtin and then its argument prototype would still apply.  */
23350 char dld_link ();
23351 int
23352 main ()
23353 {
23354 dld_link ();
23355   ;
23356   return 0;
23357 }
23358 _ACEOF
23359 rm -f conftest.$ac_objext conftest$ac_exeext
23360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23361   (eval $ac_link) 2>conftest.er1
23362   ac_status=$?
23363   grep -v '^ *+' conftest.er1 >conftest.err
23364   rm -f conftest.er1
23365   cat conftest.err >&5
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); } &&
23368          { ac_try='test -z "$ac_c_werror_flag"
23369                          || test ! -s conftest.err'
23370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371   (eval $ac_try) 2>&5
23372   ac_status=$?
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); }; } &&
23375          { ac_try='test -s conftest$ac_exeext'
23376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377   (eval $ac_try) 2>&5
23378   ac_status=$?
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); }; }; then
23381   ac_cv_lib_dld_dld_link=yes
23382 else
23383   echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23385
23386 ac_cv_lib_dld_dld_link=no
23387 fi
23388 rm -f conftest.err conftest.$ac_objext \
23389       conftest$ac_exeext conftest.$ac_ext
23390 LIBS=$ac_check_lib_save_LIBS
23391 fi
23392 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23393 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23394 if test $ac_cv_lib_dld_dld_link = yes; then
23395   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23396 fi
23397
23398
23399 fi
23400
23401
23402 fi
23403
23404
23405 fi
23406
23407
23408 fi
23409
23410
23411 fi
23412
23413     ;;
23414   esac
23415
23416   if test "x$lt_cv_dlopen" != xno; then
23417     enable_dlopen=yes
23418   else
23419     enable_dlopen=no
23420   fi
23421
23422   case $lt_cv_dlopen in
23423   dlopen)
23424     save_CPPFLAGS="$CPPFLAGS"
23425     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23426
23427     save_LDFLAGS="$LDFLAGS"
23428     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23429
23430     save_LIBS="$LIBS"
23431     LIBS="$lt_cv_dlopen_libs $LIBS"
23432
23433     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23434 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23435 if test "${lt_cv_dlopen_self+set}" = set; then
23436   echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438           if test "$cross_compiling" = yes; then :
23439   lt_cv_dlopen_self=cross
23440 else
23441   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23442   lt_status=$lt_dlunknown
23443   cat > conftest.$ac_ext <<EOF
23444 #line 23444 "configure"
23445 #include "confdefs.h"
23446
23447 #if HAVE_DLFCN_H
23448 #include <dlfcn.h>
23449 #endif
23450
23451 #include <stdio.h>
23452
23453 #ifdef RTLD_GLOBAL
23454 #  define LT_DLGLOBAL           RTLD_GLOBAL
23455 #else
23456 #  ifdef DL_GLOBAL
23457 #    define LT_DLGLOBAL         DL_GLOBAL
23458 #  else
23459 #    define LT_DLGLOBAL         0
23460 #  endif
23461 #endif
23462
23463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23464    find out it does not work in some platform. */
23465 #ifndef LT_DLLAZY_OR_NOW
23466 #  ifdef RTLD_LAZY
23467 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23468 #  else
23469 #    ifdef DL_LAZY
23470 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23471 #    else
23472 #      ifdef RTLD_NOW
23473 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23474 #      else
23475 #        ifdef DL_NOW
23476 #          define LT_DLLAZY_OR_NOW      DL_NOW
23477 #        else
23478 #          define LT_DLLAZY_OR_NOW      0
23479 #        endif
23480 #      endif
23481 #    endif
23482 #  endif
23483 #endif
23484
23485 #ifdef __cplusplus
23486 extern "C" void exit (int);
23487 #endif
23488
23489 void fnord() { int i=42;}
23490 int main ()
23491 {
23492   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23493   int status = $lt_dlunknown;
23494
23495   if (self)
23496     {
23497       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23498       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23499       /* dlclose (self); */
23500     }
23501
23502     exit (status);
23503 }
23504 EOF
23505   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506   (eval $ac_link) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23510     (./conftest; exit; ) 2>/dev/null
23511     lt_status=$?
23512     case x$lt_status in
23513       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23514       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23515       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23516     esac
23517   else :
23518     # compilation failed
23519     lt_cv_dlopen_self=no
23520   fi
23521 fi
23522 rm -fr conftest*
23523
23524
23525 fi
23526 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23527 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23528
23529     if test "x$lt_cv_dlopen_self" = xyes; then
23530       LDFLAGS="$LDFLAGS $link_static_flag"
23531       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23532 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23533 if test "${lt_cv_dlopen_self_static+set}" = set; then
23534   echo $ECHO_N "(cached) $ECHO_C" >&6
23535 else
23536           if test "$cross_compiling" = yes; then :
23537   lt_cv_dlopen_self_static=cross
23538 else
23539   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23540   lt_status=$lt_dlunknown
23541   cat > conftest.$ac_ext <<EOF
23542 #line 23542 "configure"
23543 #include "confdefs.h"
23544
23545 #if HAVE_DLFCN_H
23546 #include <dlfcn.h>
23547 #endif
23548
23549 #include <stdio.h>
23550
23551 #ifdef RTLD_GLOBAL
23552 #  define LT_DLGLOBAL           RTLD_GLOBAL
23553 #else
23554 #  ifdef DL_GLOBAL
23555 #    define LT_DLGLOBAL         DL_GLOBAL
23556 #  else
23557 #    define LT_DLGLOBAL         0
23558 #  endif
23559 #endif
23560
23561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23562    find out it does not work in some platform. */
23563 #ifndef LT_DLLAZY_OR_NOW
23564 #  ifdef RTLD_LAZY
23565 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23566 #  else
23567 #    ifdef DL_LAZY
23568 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23569 #    else
23570 #      ifdef RTLD_NOW
23571 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23572 #      else
23573 #        ifdef DL_NOW
23574 #          define LT_DLLAZY_OR_NOW      DL_NOW
23575 #        else
23576 #          define LT_DLLAZY_OR_NOW      0
23577 #        endif
23578 #      endif
23579 #    endif
23580 #  endif
23581 #endif
23582
23583 #ifdef __cplusplus
23584 extern "C" void exit (int);
23585 #endif
23586
23587 void fnord() { int i=42;}
23588 int main ()
23589 {
23590   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23591   int status = $lt_dlunknown;
23592
23593   if (self)
23594     {
23595       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23596       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23597       /* dlclose (self); */
23598     }
23599
23600     exit (status);
23601 }
23602 EOF
23603   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604   (eval $ac_link) 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23608     (./conftest; exit; ) 2>/dev/null
23609     lt_status=$?
23610     case x$lt_status in
23611       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23612       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23613       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23614     esac
23615   else :
23616     # compilation failed
23617     lt_cv_dlopen_self_static=no
23618   fi
23619 fi
23620 rm -fr conftest*
23621
23622
23623 fi
23624 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23625 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23626     fi
23627
23628     CPPFLAGS="$save_CPPFLAGS"
23629     LDFLAGS="$save_LDFLAGS"
23630     LIBS="$save_LIBS"
23631     ;;
23632   esac
23633
23634   case $lt_cv_dlopen_self in
23635   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23636   *) enable_dlopen_self=unknown ;;
23637   esac
23638
23639   case $lt_cv_dlopen_self_static in
23640   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23641   *) enable_dlopen_self_static=unknown ;;
23642   esac
23643 fi
23644
23645
23646 # The else clause should only fire when bootstrapping the
23647 # libtool distribution, otherwise you forgot to ship ltmain.sh
23648 # with your package, and you will get complaints that there are
23649 # no rules to generate ltmain.sh.
23650 if test -f "$ltmain"; then
23651   # See if we are running on zsh, and set the options which allow our commands through
23652   # without removal of \ escapes.
23653   if test -n "${ZSH_VERSION+set}" ; then
23654     setopt NO_GLOB_SUBST
23655   fi
23656   # Now quote all the things that may contain metacharacters while being
23657   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23658   # variables and quote the copies for generation of the libtool script.
23659   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23660     SED SHELL STRIP \
23661     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23662     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23663     deplibs_check_method reload_flag reload_cmds need_locks \
23664     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23665     lt_cv_sys_global_symbol_to_c_name_address \
23666     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23667     old_postinstall_cmds old_postuninstall_cmds \
23668     compiler_GCJ \
23669     CC_GCJ \
23670     LD_GCJ \
23671     lt_prog_compiler_wl_GCJ \
23672     lt_prog_compiler_pic_GCJ \
23673     lt_prog_compiler_static_GCJ \
23674     lt_prog_compiler_no_builtin_flag_GCJ \
23675     export_dynamic_flag_spec_GCJ \
23676     thread_safe_flag_spec_GCJ \
23677     whole_archive_flag_spec_GCJ \
23678     enable_shared_with_static_runtimes_GCJ \
23679     old_archive_cmds_GCJ \
23680     old_archive_from_new_cmds_GCJ \
23681     predep_objects_GCJ \
23682     postdep_objects_GCJ \
23683     predeps_GCJ \
23684     postdeps_GCJ \
23685     compiler_lib_search_path_GCJ \
23686     archive_cmds_GCJ \
23687     archive_expsym_cmds_GCJ \
23688     postinstall_cmds_GCJ \
23689     postuninstall_cmds_GCJ \
23690     old_archive_from_expsyms_cmds_GCJ \
23691     allow_undefined_flag_GCJ \
23692     no_undefined_flag_GCJ \
23693     export_symbols_cmds_GCJ \
23694     hardcode_libdir_flag_spec_GCJ \
23695     hardcode_libdir_flag_spec_ld_GCJ \
23696     hardcode_libdir_separator_GCJ \
23697     hardcode_automatic_GCJ \
23698     module_cmds_GCJ \
23699     module_expsym_cmds_GCJ \
23700     lt_cv_prog_compiler_c_o_GCJ \
23701     exclude_expsyms_GCJ \
23702     include_expsyms_GCJ; do
23703
23704     case $var in
23705     old_archive_cmds_GCJ | \
23706     old_archive_from_new_cmds_GCJ | \
23707     archive_cmds_GCJ | \
23708     archive_expsym_cmds_GCJ | \
23709     module_cmds_GCJ | \
23710     module_expsym_cmds_GCJ | \
23711     old_archive_from_expsyms_cmds_GCJ | \
23712     export_symbols_cmds_GCJ | \
23713     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23714     postinstall_cmds | postuninstall_cmds | \
23715     old_postinstall_cmds | old_postuninstall_cmds | \
23716     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23717       # Double-quote double-evaled strings.
23718       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23719       ;;
23720     *)
23721       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23722       ;;
23723     esac
23724   done
23725
23726   case $lt_echo in
23727   *'\$0 --fallback-echo"')
23728     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23729     ;;
23730   esac
23731
23732 cfgfile="$ofile"
23733
23734   cat <<__EOF__ >> "$cfgfile"
23735 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23736
23737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23738
23739 # Shell to use when invoking shell scripts.
23740 SHELL=$lt_SHELL
23741
23742 # Whether or not to build shared libraries.
23743 build_libtool_libs=$enable_shared
23744
23745 # Whether or not to build static libraries.
23746 build_old_libs=$enable_static
23747
23748 # Whether or not to add -lc for building shared libraries.
23749 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23750
23751 # Whether or not to disallow shared libs when runtime libs are static
23752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23753
23754 # Whether or not to optimize for fast installation.
23755 fast_install=$enable_fast_install
23756
23757 # The host system.
23758 host_alias=$host_alias
23759 host=$host
23760
23761 # An echo program that does not interpret backslashes.
23762 echo=$lt_echo
23763
23764 # The archiver.
23765 AR=$lt_AR
23766 AR_FLAGS=$lt_AR_FLAGS
23767
23768 # A C compiler.
23769 LTCC=$lt_LTCC
23770
23771 # A language-specific compiler.
23772 CC=$lt_compiler_GCJ
23773
23774 # Is the compiler the GNU C compiler?
23775 with_gcc=$GCC_GCJ
23776
23777 # An ERE matcher.
23778 EGREP=$lt_EGREP
23779
23780 # The linker used to build libraries.
23781 LD=$lt_LD_GCJ
23782
23783 # Whether we need hard or soft links.
23784 LN_S=$lt_LN_S
23785
23786 # A BSD-compatible nm program.
23787 NM=$lt_NM
23788
23789 # A symbol stripping program
23790 STRIP=$lt_STRIP
23791
23792 # Used to examine libraries when file_magic_cmd begins "file"
23793 MAGIC_CMD=$MAGIC_CMD
23794
23795 # Used on cygwin: DLL creation program.
23796 DLLTOOL="$DLLTOOL"
23797
23798 # Used on cygwin: object dumper.
23799 OBJDUMP="$OBJDUMP"
23800
23801 # Used on cygwin: assembler.
23802 AS="$AS"
23803
23804 # The name of the directory that contains temporary libtool files.
23805 objdir=$objdir
23806
23807 # How to create reloadable object files.
23808 reload_flag=$lt_reload_flag
23809 reload_cmds=$lt_reload_cmds
23810
23811 # How to pass a linker flag through the compiler.
23812 wl=$lt_lt_prog_compiler_wl_GCJ
23813
23814 # Object file suffix (normally "o").
23815 objext="$ac_objext"
23816
23817 # Old archive suffix (normally "a").
23818 libext="$libext"
23819
23820 # Shared library suffix (normally ".so").
23821 shrext_cmds='$shrext_cmds'
23822
23823 # Executable file suffix (normally "").
23824 exeext="$exeext"
23825
23826 # Additional compiler flags for building library objects.
23827 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23828 pic_mode=$pic_mode
23829
23830 # What is the maximum length of a command?
23831 max_cmd_len=$lt_cv_sys_max_cmd_len
23832
23833 # Does compiler simultaneously support -c and -o options?
23834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23835
23836 # Must we lock files when doing compilation ?
23837 need_locks=$lt_need_locks
23838
23839 # Do we need the lib prefix for modules?
23840 need_lib_prefix=$need_lib_prefix
23841
23842 # Do we need a version for libraries?
23843 need_version=$need_version
23844
23845 # Whether dlopen is supported.
23846 dlopen_support=$enable_dlopen
23847
23848 # Whether dlopen of programs is supported.
23849 dlopen_self=$enable_dlopen_self
23850
23851 # Whether dlopen of statically linked programs is supported.
23852 dlopen_self_static=$enable_dlopen_self_static
23853
23854 # Compiler flag to prevent dynamic linking.
23855 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23856
23857 # Compiler flag to turn off builtin functions.
23858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23859
23860 # Compiler flag to allow reflexive dlopens.
23861 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23862
23863 # Compiler flag to generate shared objects directly from archives.
23864 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23865
23866 # Compiler flag to generate thread-safe objects.
23867 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23868
23869 # Library versioning type.
23870 version_type=$version_type
23871
23872 # Format of library name prefix.
23873 libname_spec=$lt_libname_spec
23874
23875 # List of archive names.  First name is the real one, the rest are links.
23876 # The last name is the one that the linker finds with -lNAME.
23877 library_names_spec=$lt_library_names_spec
23878
23879 # The coded name of the library, if different from the real name.
23880 soname_spec=$lt_soname_spec
23881
23882 # Commands used to build and install an old-style archive.
23883 RANLIB=$lt_RANLIB
23884 old_archive_cmds=$lt_old_archive_cmds_GCJ
23885 old_postinstall_cmds=$lt_old_postinstall_cmds
23886 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23887
23888 # Create an old-style archive from a shared archive.
23889 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23890
23891 # Create a temporary old-style archive to link instead of a shared archive.
23892 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23893
23894 # Commands used to build and install a shared archive.
23895 archive_cmds=$lt_archive_cmds_GCJ
23896 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23897 postinstall_cmds=$lt_postinstall_cmds
23898 postuninstall_cmds=$lt_postuninstall_cmds
23899
23900 # Commands used to build a loadable module (assumed same as above if empty)
23901 module_cmds=$lt_module_cmds_GCJ
23902 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23903
23904 # Commands to strip libraries.
23905 old_striplib=$lt_old_striplib
23906 striplib=$lt_striplib
23907
23908 # Dependencies to place before the objects being linked to create a
23909 # shared library.
23910 predep_objects=$lt_predep_objects_GCJ
23911
23912 # Dependencies to place after the objects being linked to create a
23913 # shared library.
23914 postdep_objects=$lt_postdep_objects_GCJ
23915
23916 # Dependencies to place before the objects being linked to create a
23917 # shared library.
23918 predeps=$lt_predeps_GCJ
23919
23920 # Dependencies to place after the objects being linked to create a
23921 # shared library.
23922 postdeps=$lt_postdeps_GCJ
23923
23924 # The library search path used internally by the compiler when linking
23925 # a shared library.
23926 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23927
23928 # Method to check whether dependent libraries are shared objects.
23929 deplibs_check_method=$lt_deplibs_check_method
23930
23931 # Command to use when deplibs_check_method == file_magic.
23932 file_magic_cmd=$lt_file_magic_cmd
23933
23934 # Flag that allows shared libraries with undefined symbols to be built.
23935 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23936
23937 # Flag that forces no undefined symbols.
23938 no_undefined_flag=$lt_no_undefined_flag_GCJ
23939
23940 # Commands used to finish a libtool library installation in a directory.
23941 finish_cmds=$lt_finish_cmds
23942
23943 # Same as above, but a single script fragment to be evaled but not shown.
23944 finish_eval=$lt_finish_eval
23945
23946 # Take the output of nm and produce a listing of raw symbols and C names.
23947 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23948
23949 # Transform the output of nm in a proper C declaration
23950 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23951
23952 # Transform the output of nm in a C name address pair
23953 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23954
23955 # This is the shared library runtime path variable.
23956 runpath_var=$runpath_var
23957
23958 # This is the shared library path variable.
23959 shlibpath_var=$shlibpath_var
23960
23961 # Is shlibpath searched before the hard-coded library search path?
23962 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23963
23964 # How to hardcode a shared library path into an executable.
23965 hardcode_action=$hardcode_action_GCJ
23966
23967 # Whether we should hardcode library paths into libraries.
23968 hardcode_into_libs=$hardcode_into_libs
23969
23970 # Flag to hardcode \$libdir into a binary during linking.
23971 # This must work even if \$libdir does not exist.
23972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23973
23974 # If ld is used when linking, flag to hardcode \$libdir into
23975 # a binary during linking. This must work even if \$libdir does
23976 # not exist.
23977 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23978
23979 # Whether we need a single -rpath flag with a separated argument.
23980 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23981
23982 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23983 # resulting binary.
23984 hardcode_direct=$hardcode_direct_GCJ
23985
23986 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23987 # resulting binary.
23988 hardcode_minus_L=$hardcode_minus_L_GCJ
23989
23990 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23991 # the resulting binary.
23992 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23993
23994 # Set to yes if building a shared library automatically hardcodes DIR into the library
23995 # and all subsequent libraries and executables linked against it.
23996 hardcode_automatic=$hardcode_automatic_GCJ
23997
23998 # Variables whose values should be saved in libtool wrapper scripts and
23999 # restored at relink time.
24000 variables_saved_for_relink="$variables_saved_for_relink"
24001
24002 # Whether libtool must link a program against all its dependency libraries.
24003 link_all_deplibs=$link_all_deplibs_GCJ
24004
24005 # Compile-time system search path for libraries
24006 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24007
24008 # Run-time system search path for libraries
24009 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24010
24011 # Fix the shell variable \$srcfile for the compiler.
24012 fix_srcfile_path="$fix_srcfile_path_GCJ"
24013
24014 # Set to yes if exported symbols are required.
24015 always_export_symbols=$always_export_symbols_GCJ
24016
24017 # The commands to list exported symbols.
24018 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24019
24020 # The commands to extract the exported symbol list from a shared archive.
24021 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24022
24023 # Symbols that should not be listed in the preloaded symbols.
24024 exclude_expsyms=$lt_exclude_expsyms_GCJ
24025
24026 # Symbols that must always be exported.
24027 include_expsyms=$lt_include_expsyms_GCJ
24028
24029 # ### END LIBTOOL TAG CONFIG: $tagname
24030
24031 __EOF__
24032
24033
24034 else
24035   # If there is no Makefile yet, we rely on a make rule to execute
24036   # `config.status --recheck' to rerun these tests and create the
24037   # libtool script then.
24038   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24039   if test -f "$ltmain_in"; then
24040     test -f Makefile && make "$ltmain"
24041   fi
24042 fi
24043
24044
24045 ac_ext=c
24046 ac_cpp='$CPP $CPPFLAGS'
24047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24050
24051 CC="$lt_save_CC"
24052
24053         else
24054           tagname=""
24055         fi
24056         ;;
24057
24058       RC)
24059         ac_ext=c
24060 ac_cpp='$CPP $CPPFLAGS'
24061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24064
24065
24066 # Source file extension for RC test sources.
24067 ac_ext=rc
24068
24069 # Object file extension for compiled RC test sources.
24070 objext=o
24071 objext_RC=$objext
24072
24073 # Code to be used in simple compile tests
24074 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24075
24076 # Code to be used in simple link tests
24077 lt_simple_link_test_code="$lt_simple_compile_test_code"
24078
24079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24080
24081 # If no C compiler was specified, use CC.
24082 LTCC=${LTCC-"$CC"}
24083
24084 # Allow CC to be a program name with arguments.
24085 compiler=$CC
24086
24087
24088 # Allow CC to be a program name with arguments.
24089 lt_save_CC="$CC"
24090 CC=${RC-"windres"}
24091 compiler=$CC
24092 compiler_RC=$CC
24093 lt_cv_prog_compiler_c_o_RC=yes
24094
24095 # The else clause should only fire when bootstrapping the
24096 # libtool distribution, otherwise you forgot to ship ltmain.sh
24097 # with your package, and you will get complaints that there are
24098 # no rules to generate ltmain.sh.
24099 if test -f "$ltmain"; then
24100   # See if we are running on zsh, and set the options which allow our commands through
24101   # without removal of \ escapes.
24102   if test -n "${ZSH_VERSION+set}" ; then
24103     setopt NO_GLOB_SUBST
24104   fi
24105   # Now quote all the things that may contain metacharacters while being
24106   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24107   # variables and quote the copies for generation of the libtool script.
24108   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24109     SED SHELL STRIP \
24110     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24111     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24112     deplibs_check_method reload_flag reload_cmds need_locks \
24113     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24114     lt_cv_sys_global_symbol_to_c_name_address \
24115     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24116     old_postinstall_cmds old_postuninstall_cmds \
24117     compiler_RC \
24118     CC_RC \
24119     LD_RC \
24120     lt_prog_compiler_wl_RC \
24121     lt_prog_compiler_pic_RC \
24122     lt_prog_compiler_static_RC \
24123     lt_prog_compiler_no_builtin_flag_RC \
24124     export_dynamic_flag_spec_RC \
24125     thread_safe_flag_spec_RC \
24126     whole_archive_flag_spec_RC \
24127     enable_shared_with_static_runtimes_RC \
24128     old_archive_cmds_RC \
24129     old_archive_from_new_cmds_RC \
24130     predep_objects_RC \
24131     postdep_objects_RC \
24132     predeps_RC \
24133     postdeps_RC \
24134     compiler_lib_search_path_RC \
24135     archive_cmds_RC \
24136     archive_expsym_cmds_RC \
24137     postinstall_cmds_RC \
24138     postuninstall_cmds_RC \
24139     old_archive_from_expsyms_cmds_RC \
24140     allow_undefined_flag_RC \
24141     no_undefined_flag_RC \
24142     export_symbols_cmds_RC \
24143     hardcode_libdir_flag_spec_RC \
24144     hardcode_libdir_flag_spec_ld_RC \
24145     hardcode_libdir_separator_RC \
24146     hardcode_automatic_RC \
24147     module_cmds_RC \
24148     module_expsym_cmds_RC \
24149     lt_cv_prog_compiler_c_o_RC \
24150     exclude_expsyms_RC \
24151     include_expsyms_RC; do
24152
24153     case $var in
24154     old_archive_cmds_RC | \
24155     old_archive_from_new_cmds_RC | \
24156     archive_cmds_RC | \
24157     archive_expsym_cmds_RC | \
24158     module_cmds_RC | \
24159     module_expsym_cmds_RC | \
24160     old_archive_from_expsyms_cmds_RC | \
24161     export_symbols_cmds_RC | \
24162     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24163     postinstall_cmds | postuninstall_cmds | \
24164     old_postinstall_cmds | old_postuninstall_cmds | \
24165     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24166       # Double-quote double-evaled strings.
24167       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24168       ;;
24169     *)
24170       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24171       ;;
24172     esac
24173   done
24174
24175   case $lt_echo in
24176   *'\$0 --fallback-echo"')
24177     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24178     ;;
24179   esac
24180
24181 cfgfile="$ofile"
24182
24183   cat <<__EOF__ >> "$cfgfile"
24184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24185
24186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24187
24188 # Shell to use when invoking shell scripts.
24189 SHELL=$lt_SHELL
24190
24191 # Whether or not to build shared libraries.
24192 build_libtool_libs=$enable_shared
24193
24194 # Whether or not to build static libraries.
24195 build_old_libs=$enable_static
24196
24197 # Whether or not to add -lc for building shared libraries.
24198 build_libtool_need_lc=$archive_cmds_need_lc_RC
24199
24200 # Whether or not to disallow shared libs when runtime libs are static
24201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24202
24203 # Whether or not to optimize for fast installation.
24204 fast_install=$enable_fast_install
24205
24206 # The host system.
24207 host_alias=$host_alias
24208 host=$host
24209
24210 # An echo program that does not interpret backslashes.
24211 echo=$lt_echo
24212
24213 # The archiver.
24214 AR=$lt_AR
24215 AR_FLAGS=$lt_AR_FLAGS
24216
24217 # A C compiler.
24218 LTCC=$lt_LTCC
24219
24220 # A language-specific compiler.
24221 CC=$lt_compiler_RC
24222
24223 # Is the compiler the GNU C compiler?
24224 with_gcc=$GCC_RC
24225
24226 # An ERE matcher.
24227 EGREP=$lt_EGREP
24228
24229 # The linker used to build libraries.
24230 LD=$lt_LD_RC
24231
24232 # Whether we need hard or soft links.
24233 LN_S=$lt_LN_S
24234
24235 # A BSD-compatible nm program.
24236 NM=$lt_NM
24237
24238 # A symbol stripping program
24239 STRIP=$lt_STRIP
24240
24241 # Used to examine libraries when file_magic_cmd begins "file"
24242 MAGIC_CMD=$MAGIC_CMD
24243
24244 # Used on cygwin: DLL creation program.
24245 DLLTOOL="$DLLTOOL"
24246
24247 # Used on cygwin: object dumper.
24248 OBJDUMP="$OBJDUMP"
24249
24250 # Used on cygwin: assembler.
24251 AS="$AS"
24252
24253 # The name of the directory that contains temporary libtool files.
24254 objdir=$objdir
24255
24256 # How to create reloadable object files.
24257 reload_flag=$lt_reload_flag
24258 reload_cmds=$lt_reload_cmds
24259
24260 # How to pass a linker flag through the compiler.
24261 wl=$lt_lt_prog_compiler_wl_RC
24262
24263 # Object file suffix (normally "o").
24264 objext="$ac_objext"
24265
24266 # Old archive suffix (normally "a").
24267 libext="$libext"
24268
24269 # Shared library suffix (normally ".so").
24270 shrext_cmds='$shrext_cmds'
24271
24272 # Executable file suffix (normally "").
24273 exeext="$exeext"
24274
24275 # Additional compiler flags for building library objects.
24276 pic_flag=$lt_lt_prog_compiler_pic_RC
24277 pic_mode=$pic_mode
24278
24279 # What is the maximum length of a command?
24280 max_cmd_len=$lt_cv_sys_max_cmd_len
24281
24282 # Does compiler simultaneously support -c and -o options?
24283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24284
24285 # Must we lock files when doing compilation ?
24286 need_locks=$lt_need_locks
24287
24288 # Do we need the lib prefix for modules?
24289 need_lib_prefix=$need_lib_prefix
24290
24291 # Do we need a version for libraries?
24292 need_version=$need_version
24293
24294 # Whether dlopen is supported.
24295 dlopen_support=$enable_dlopen
24296
24297 # Whether dlopen of programs is supported.
24298 dlopen_self=$enable_dlopen_self
24299
24300 # Whether dlopen of statically linked programs is supported.
24301 dlopen_self_static=$enable_dlopen_self_static
24302
24303 # Compiler flag to prevent dynamic linking.
24304 link_static_flag=$lt_lt_prog_compiler_static_RC
24305
24306 # Compiler flag to turn off builtin functions.
24307 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24308
24309 # Compiler flag to allow reflexive dlopens.
24310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24311
24312 # Compiler flag to generate shared objects directly from archives.
24313 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24314
24315 # Compiler flag to generate thread-safe objects.
24316 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24317
24318 # Library versioning type.
24319 version_type=$version_type
24320
24321 # Format of library name prefix.
24322 libname_spec=$lt_libname_spec
24323
24324 # List of archive names.  First name is the real one, the rest are links.
24325 # The last name is the one that the linker finds with -lNAME.
24326 library_names_spec=$lt_library_names_spec
24327
24328 # The coded name of the library, if different from the real name.
24329 soname_spec=$lt_soname_spec
24330
24331 # Commands used to build and install an old-style archive.
24332 RANLIB=$lt_RANLIB
24333 old_archive_cmds=$lt_old_archive_cmds_RC
24334 old_postinstall_cmds=$lt_old_postinstall_cmds
24335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24336
24337 # Create an old-style archive from a shared archive.
24338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24339
24340 # Create a temporary old-style archive to link instead of a shared archive.
24341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24342
24343 # Commands used to build and install a shared archive.
24344 archive_cmds=$lt_archive_cmds_RC
24345 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24346 postinstall_cmds=$lt_postinstall_cmds
24347 postuninstall_cmds=$lt_postuninstall_cmds
24348
24349 # Commands used to build a loadable module (assumed same as above if empty)
24350 module_cmds=$lt_module_cmds_RC
24351 module_expsym_cmds=$lt_module_expsym_cmds_RC
24352
24353 # Commands to strip libraries.
24354 old_striplib=$lt_old_striplib
24355 striplib=$lt_striplib
24356
24357 # Dependencies to place before the objects being linked to create a
24358 # shared library.
24359 predep_objects=$lt_predep_objects_RC
24360
24361 # Dependencies to place after the objects being linked to create a
24362 # shared library.
24363 postdep_objects=$lt_postdep_objects_RC
24364
24365 # Dependencies to place before the objects being linked to create a
24366 # shared library.
24367 predeps=$lt_predeps_RC
24368
24369 # Dependencies to place after the objects being linked to create a
24370 # shared library.
24371 postdeps=$lt_postdeps_RC
24372
24373 # The library search path used internally by the compiler when linking
24374 # a shared library.
24375 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24376
24377 # Method to check whether dependent libraries are shared objects.
24378 deplibs_check_method=$lt_deplibs_check_method
24379
24380 # Command to use when deplibs_check_method == file_magic.
24381 file_magic_cmd=$lt_file_magic_cmd
24382
24383 # Flag that allows shared libraries with undefined symbols to be built.
24384 allow_undefined_flag=$lt_allow_undefined_flag_RC
24385
24386 # Flag that forces no undefined symbols.
24387 no_undefined_flag=$lt_no_undefined_flag_RC
24388
24389 # Commands used to finish a libtool library installation in a directory.
24390 finish_cmds=$lt_finish_cmds
24391
24392 # Same as above, but a single script fragment to be evaled but not shown.
24393 finish_eval=$lt_finish_eval
24394
24395 # Take the output of nm and produce a listing of raw symbols and C names.
24396 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24397
24398 # Transform the output of nm in a proper C declaration
24399 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24400
24401 # Transform the output of nm in a C name address pair
24402 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24403
24404 # This is the shared library runtime path variable.
24405 runpath_var=$runpath_var
24406
24407 # This is the shared library path variable.
24408 shlibpath_var=$shlibpath_var
24409
24410 # Is shlibpath searched before the hard-coded library search path?
24411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24412
24413 # How to hardcode a shared library path into an executable.
24414 hardcode_action=$hardcode_action_RC
24415
24416 # Whether we should hardcode library paths into libraries.
24417 hardcode_into_libs=$hardcode_into_libs
24418
24419 # Flag to hardcode \$libdir into a binary during linking.
24420 # This must work even if \$libdir does not exist.
24421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24422
24423 # If ld is used when linking, flag to hardcode \$libdir into
24424 # a binary during linking. This must work even if \$libdir does
24425 # not exist.
24426 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24427
24428 # Whether we need a single -rpath flag with a separated argument.
24429 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24430
24431 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24432 # resulting binary.
24433 hardcode_direct=$hardcode_direct_RC
24434
24435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24436 # resulting binary.
24437 hardcode_minus_L=$hardcode_minus_L_RC
24438
24439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24440 # the resulting binary.
24441 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24442
24443 # Set to yes if building a shared library automatically hardcodes DIR into the library
24444 # and all subsequent libraries and executables linked against it.
24445 hardcode_automatic=$hardcode_automatic_RC
24446
24447 # Variables whose values should be saved in libtool wrapper scripts and
24448 # restored at relink time.
24449 variables_saved_for_relink="$variables_saved_for_relink"
24450
24451 # Whether libtool must link a program against all its dependency libraries.
24452 link_all_deplibs=$link_all_deplibs_RC
24453
24454 # Compile-time system search path for libraries
24455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24456
24457 # Run-time system search path for libraries
24458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24459
24460 # Fix the shell variable \$srcfile for the compiler.
24461 fix_srcfile_path="$fix_srcfile_path_RC"
24462
24463 # Set to yes if exported symbols are required.
24464 always_export_symbols=$always_export_symbols_RC
24465
24466 # The commands to list exported symbols.
24467 export_symbols_cmds=$lt_export_symbols_cmds_RC
24468
24469 # The commands to extract the exported symbol list from a shared archive.
24470 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24471
24472 # Symbols that should not be listed in the preloaded symbols.
24473 exclude_expsyms=$lt_exclude_expsyms_RC
24474
24475 # Symbols that must always be exported.
24476 include_expsyms=$lt_include_expsyms_RC
24477
24478 # ### END LIBTOOL TAG CONFIG: $tagname
24479
24480 __EOF__
24481
24482
24483 else
24484   # If there is no Makefile yet, we rely on a make rule to execute
24485   # `config.status --recheck' to rerun these tests and create the
24486   # libtool script then.
24487   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24488   if test -f "$ltmain_in"; then
24489     test -f Makefile && make "$ltmain"
24490   fi
24491 fi
24492
24493
24494 ac_ext=c
24495 ac_cpp='$CPP $CPPFLAGS'
24496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24499
24500 CC="$lt_save_CC"
24501
24502         ;;
24503
24504       *)
24505         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24506 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24507    { (exit 1); exit 1; }; }
24508         ;;
24509       esac
24510
24511       # Append the new tag name to the list of available tags.
24512       if test -n "$tagname" ; then
24513       available_tags="$available_tags $tagname"
24514     fi
24515     fi
24516   done
24517   IFS="$lt_save_ifs"
24518
24519   # Now substitute the updated list of available tags.
24520   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24521     mv "${ofile}T" "$ofile"
24522     chmod +x "$ofile"
24523   else
24524     rm -f "${ofile}T"
24525     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24526 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24527    { (exit 1); exit 1; }; }
24528   fi
24529 fi
24530
24531
24532
24533 # This can be used to rebuild libtool when needed
24534 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24535
24536 # Always use our own libtool.
24537 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24538
24539 # Prevent multiple expansion
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561 if test "$lt_cv_dlopen_self" = "yes" ; then
24562
24563 cat >>confdefs.h <<\_ACEOF
24564 #define CAN_DLOPEN_SELF 1
24565 _ACEOF
24566
24567 fi
24568
24569 etags_version=`$ETAGS --version 2>&1`
24570 case "$etags_version" in
24571         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24572         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24573         *) ETAGSFLAGS="" ;;
24574 esac
24575 ETAGSFLAGS=$ETAGSFLAGS
24576
24577
24578 if test "$WITH_LLVMGCCDIR" = "default" ; then
24579   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24580 set dummy llvm-gcc; ac_word=$2
24581 echo "$as_me:$LINENO: checking for $ac_word" >&5
24582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24583 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24584   echo $ECHO_N "(cached) $ECHO_C" >&6
24585 else
24586   case $LLVMGCC in
24587   [\\/]* | ?:[\\/]*)
24588   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24589   ;;
24590   *)
24591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24592 for as_dir in $PATH
24593 do
24594   IFS=$as_save_IFS
24595   test -z "$as_dir" && as_dir=.
24596   for ac_exec_ext in '' $ac_executable_extensions; do
24597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24598     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24600     break 2
24601   fi
24602 done
24603 done
24604
24605   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24606   ;;
24607 esac
24608 fi
24609 LLVMGCC=$ac_cv_path_LLVMGCC
24610
24611 if test -n "$LLVMGCC"; then
24612   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24613 echo "${ECHO_T}$LLVMGCC" >&6
24614 else
24615   echo "$as_me:$LINENO: result: no" >&5
24616 echo "${ECHO_T}no" >&6
24617 fi
24618
24619   # Extract the first word of "llvm-g++", so it can be a program name with args.
24620 set dummy llvm-g++; ac_word=$2
24621 echo "$as_me:$LINENO: checking for $ac_word" >&5
24622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24623 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24624   echo $ECHO_N "(cached) $ECHO_C" >&6
24625 else
24626   case $LLVMGXX in
24627   [\\/]* | ?:[\\/]*)
24628   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24629   ;;
24630   *)
24631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24632 for as_dir in $PATH
24633 do
24634   IFS=$as_save_IFS
24635   test -z "$as_dir" && as_dir=.
24636   for ac_exec_ext in '' $ac_executable_extensions; do
24637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24640     break 2
24641   fi
24642 done
24643 done
24644
24645   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24646   ;;
24647 esac
24648 fi
24649 LLVMGXX=$ac_cv_path_LLVMGXX
24650
24651 if test -n "$LLVMGXX"; then
24652   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24653 echo "${ECHO_T}$LLVMGXX" >&6
24654 else
24655   echo "$as_me:$LINENO: result: no" >&5
24656 echo "${ECHO_T}no" >&6
24657 fi
24658
24659 else
24660   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24661   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24662   LLVMGCC=$LLVMGCC
24663
24664   LLVMGXX=$LLVMGXX
24665
24666 fi
24667
24668 echo "$as_me:$LINENO: checking tool compatibility" >&5
24669 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24670
24671 ICC=no
24672 IXX=no
24673 case $CC in
24674   icc*|icpc*)
24675     ICC=yes
24676     IXX=yes
24677     ;;
24678    *)
24679     ;;
24680 esac
24681
24682 if test "$GCC" != "yes" && test "$ICC" != "yes"
24683 then
24684   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24685 echo "$as_me: error: gcc|icc required but not found" >&2;}
24686    { (exit 1); exit 1; }; }
24687 fi
24688
24689 if test "$GXX" != "yes" && test "$IXX" != "yes"
24690 then
24691   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24692 echo "$as_me: error: g++|icc required but not found" >&2;}
24693    { (exit 1); exit 1; }; }
24694 fi
24695
24696 if test "$GCC" = "yes"
24697 then
24698   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24699   if test "$gccmajor" -lt "3"
24700   then
24701     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24702 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24703    { (exit 1); exit 1; }; }
24704   fi
24705 fi
24706
24707 if test -z "$llvm_cv_gnu_make_command"
24708 then
24709   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24710 echo "$as_me: error: GNU Make required but not found" >&2;}
24711    { (exit 1); exit 1; }; }
24712 fi
24713
24714 echo "$as_me:$LINENO: result: ok" >&5
24715 echo "${ECHO_T}ok" >&6
24716
24717
24718
24719 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24720 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24721 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24722   echo $ECHO_N "(cached) $ECHO_C" >&6
24723 else
24724   ac_check_lib_save_LIBS=$LIBS
24725 LIBS="-lelf  $LIBS"
24726 cat >conftest.$ac_ext <<_ACEOF
24727 /* confdefs.h.  */
24728 _ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h.  */
24732
24733 /* Override any gcc2 internal prototype to avoid an error.  */
24734 #ifdef __cplusplus
24735 extern "C"
24736 #endif
24737 /* We use char because int might match the return type of a gcc2
24738    builtin and then its argument prototype would still apply.  */
24739 char elf_begin ();
24740 int
24741 main ()
24742 {
24743 elf_begin ();
24744   ;
24745   return 0;
24746 }
24747 _ACEOF
24748 rm -f conftest.$ac_objext conftest$ac_exeext
24749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24750   (eval $ac_link) 2>conftest.er1
24751   ac_status=$?
24752   grep -v '^ *+' conftest.er1 >conftest.err
24753   rm -f conftest.er1
24754   cat conftest.err >&5
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); } &&
24757          { ac_try='test -z "$ac_c_werror_flag"
24758                          || test ! -s conftest.err'
24759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24760   (eval $ac_try) 2>&5
24761   ac_status=$?
24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763   (exit $ac_status); }; } &&
24764          { ac_try='test -s conftest$ac_exeext'
24765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766   (eval $ac_try) 2>&5
24767   ac_status=$?
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); }; }; then
24770   ac_cv_lib_elf_elf_begin=yes
24771 else
24772   echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24774
24775 ac_cv_lib_elf_elf_begin=no
24776 fi
24777 rm -f conftest.err conftest.$ac_objext \
24778       conftest$ac_exeext conftest.$ac_ext
24779 LIBS=$ac_check_lib_save_LIBS
24780 fi
24781 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24782 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24783 if test $ac_cv_lib_elf_elf_begin = yes; then
24784   cat >>confdefs.h <<_ACEOF
24785 #define HAVE_LIBELF 1
24786 _ACEOF
24787
24788   LIBS="-lelf $LIBS"
24789
24790 fi
24791
24792
24793 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24794 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24795 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24796   echo $ECHO_N "(cached) $ECHO_C" >&6
24797 else
24798   ac_func_search_save_LIBS=$LIBS
24799 ac_cv_search_lt_dlopen=no
24800 cat >conftest.$ac_ext <<_ACEOF
24801 /* confdefs.h.  */
24802 _ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h.  */
24806
24807 /* Override any gcc2 internal prototype to avoid an error.  */
24808 #ifdef __cplusplus
24809 extern "C"
24810 #endif
24811 /* We use char because int might match the return type of a gcc2
24812    builtin and then its argument prototype would still apply.  */
24813 char lt_dlopen ();
24814 int
24815 main ()
24816 {
24817 lt_dlopen ();
24818   ;
24819   return 0;
24820 }
24821 _ACEOF
24822 rm -f conftest.$ac_objext conftest$ac_exeext
24823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24824   (eval $ac_link) 2>conftest.er1
24825   ac_status=$?
24826   grep -v '^ *+' conftest.er1 >conftest.err
24827   rm -f conftest.er1
24828   cat conftest.err >&5
24829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830   (exit $ac_status); } &&
24831          { ac_try='test -z "$ac_c_werror_flag"
24832                          || test ! -s conftest.err'
24833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834   (eval $ac_try) 2>&5
24835   ac_status=$?
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); }; } &&
24838          { ac_try='test -s conftest$ac_exeext'
24839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840   (eval $ac_try) 2>&5
24841   ac_status=$?
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); }; }; then
24844   ac_cv_search_lt_dlopen="none required"
24845 else
24846   echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24848
24849 fi
24850 rm -f conftest.err conftest.$ac_objext \
24851       conftest$ac_exeext conftest.$ac_ext
24852 if test "$ac_cv_search_lt_dlopen" = no; then
24853   for ac_lib in ltdl; do
24854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24855     cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h.  */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h.  */
24861
24862 /* Override any gcc2 internal prototype to avoid an error.  */
24863 #ifdef __cplusplus
24864 extern "C"
24865 #endif
24866 /* We use char because int might match the return type of a gcc2
24867    builtin and then its argument prototype would still apply.  */
24868 char lt_dlopen ();
24869 int
24870 main ()
24871 {
24872 lt_dlopen ();
24873   ;
24874   return 0;
24875 }
24876 _ACEOF
24877 rm -f conftest.$ac_objext conftest$ac_exeext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24879   (eval $ac_link) 2>conftest.er1
24880   ac_status=$?
24881   grep -v '^ *+' conftest.er1 >conftest.err
24882   rm -f conftest.er1
24883   cat conftest.err >&5
24884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); } &&
24886          { ac_try='test -z "$ac_c_werror_flag"
24887                          || test ! -s conftest.err'
24888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889   (eval $ac_try) 2>&5
24890   ac_status=$?
24891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); }; } &&
24893          { ac_try='test -s conftest$ac_exeext'
24894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895   (eval $ac_try) 2>&5
24896   ac_status=$?
24897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898   (exit $ac_status); }; }; then
24899   ac_cv_search_lt_dlopen="-l$ac_lib"
24900 break
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905 fi
24906 rm -f conftest.err conftest.$ac_objext \
24907       conftest$ac_exeext conftest.$ac_ext
24908   done
24909 fi
24910 LIBS=$ac_func_search_save_LIBS
24911 fi
24912 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24913 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24914 if test "$ac_cv_search_lt_dlopen" != no; then
24915   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24916
24917 cat >>confdefs.h <<\_ACEOF
24918 #define HAVE_LT_DLOPEN 1
24919 _ACEOF
24920
24921 else
24922   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24923                            not be available" >&5
24924 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24925                            not be available" >&2;}
24926 fi
24927
24928
24929 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24930 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24931 if test "${ac_cv_search_dlopen+set}" = set; then
24932   echo $ECHO_N "(cached) $ECHO_C" >&6
24933 else
24934   ac_func_search_save_LIBS=$LIBS
24935 ac_cv_search_dlopen=no
24936 cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h.  */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h.  */
24942
24943 /* Override any gcc2 internal prototype to avoid an error.  */
24944 #ifdef __cplusplus
24945 extern "C"
24946 #endif
24947 /* We use char because int might match the return type of a gcc2
24948    builtin and then its argument prototype would still apply.  */
24949 char dlopen ();
24950 int
24951 main ()
24952 {
24953 dlopen ();
24954   ;
24955   return 0;
24956 }
24957 _ACEOF
24958 rm -f conftest.$ac_objext conftest$ac_exeext
24959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24960   (eval $ac_link) 2>conftest.er1
24961   ac_status=$?
24962   grep -v '^ *+' conftest.er1 >conftest.err
24963   rm -f conftest.er1
24964   cat conftest.err >&5
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); } &&
24967          { ac_try='test -z "$ac_c_werror_flag"
24968                          || test ! -s conftest.err'
24969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970   (eval $ac_try) 2>&5
24971   ac_status=$?
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); }; } &&
24974          { ac_try='test -s conftest$ac_exeext'
24975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976   (eval $ac_try) 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); }; }; then
24980   ac_cv_search_dlopen="none required"
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985 fi
24986 rm -f conftest.err conftest.$ac_objext \
24987       conftest$ac_exeext conftest.$ac_ext
24988 if test "$ac_cv_search_dlopen" = no; then
24989   for ac_lib in dl; do
24990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24991     cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997
24998 /* Override any gcc2 internal prototype to avoid an error.  */
24999 #ifdef __cplusplus
25000 extern "C"
25001 #endif
25002 /* We use char because int might match the return type of a gcc2
25003    builtin and then its argument prototype would still apply.  */
25004 char dlopen ();
25005 int
25006 main ()
25007 {
25008 dlopen ();
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015   (eval $ac_link) 2>conftest.er1
25016   ac_status=$?
25017   grep -v '^ *+' conftest.er1 >conftest.err
25018   rm -f conftest.er1
25019   cat conftest.err >&5
25020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); } &&
25022          { ac_try='test -z "$ac_c_werror_flag"
25023                          || test ! -s conftest.err'
25024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025   (eval $ac_try) 2>&5
25026   ac_status=$?
25027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); }; } &&
25029          { ac_try='test -s conftest$ac_exeext'
25030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031   (eval $ac_try) 2>&5
25032   ac_status=$?
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); }; }; then
25035   ac_cv_search_dlopen="-l$ac_lib"
25036 break
25037 else
25038   echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25040
25041 fi
25042 rm -f conftest.err conftest.$ac_objext \
25043       conftest$ac_exeext conftest.$ac_ext
25044   done
25045 fi
25046 LIBS=$ac_func_search_save_LIBS
25047 fi
25048 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25049 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25050 if test "$ac_cv_search_dlopen" != no; then
25051   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25052
25053 cat >>confdefs.h <<\_ACEOF
25054 #define HAVE_DLOPEN 1
25055 _ACEOF
25056
25057 else
25058   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25059 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25060 fi
25061
25062
25063 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25064 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25065 if test "${ac_cv_search_mallinfo+set}" = set; then
25066   echo $ECHO_N "(cached) $ECHO_C" >&6
25067 else
25068   ac_func_search_save_LIBS=$LIBS
25069 ac_cv_search_mallinfo=no
25070 cat >conftest.$ac_ext <<_ACEOF
25071 /* confdefs.h.  */
25072 _ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h.  */
25076
25077 /* Override any gcc2 internal prototype to avoid an error.  */
25078 #ifdef __cplusplus
25079 extern "C"
25080 #endif
25081 /* We use char because int might match the return type of a gcc2
25082    builtin and then its argument prototype would still apply.  */
25083 char mallinfo ();
25084 int
25085 main ()
25086 {
25087 mallinfo ();
25088   ;
25089   return 0;
25090 }
25091 _ACEOF
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25094   (eval $ac_link) 2>conftest.er1
25095   ac_status=$?
25096   grep -v '^ *+' conftest.er1 >conftest.err
25097   rm -f conftest.er1
25098   cat conftest.err >&5
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } &&
25101          { ac_try='test -z "$ac_c_werror_flag"
25102                          || test ! -s conftest.err'
25103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104   (eval $ac_try) 2>&5
25105   ac_status=$?
25106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107   (exit $ac_status); }; } &&
25108          { ac_try='test -s conftest$ac_exeext'
25109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110   (eval $ac_try) 2>&5
25111   ac_status=$?
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); }; }; then
25114   ac_cv_search_mallinfo="none required"
25115 else
25116   echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25118
25119 fi
25120 rm -f conftest.err conftest.$ac_objext \
25121       conftest$ac_exeext conftest.$ac_ext
25122 if test "$ac_cv_search_mallinfo" = no; then
25123   for ac_lib in malloc; do
25124     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25125     cat >conftest.$ac_ext <<_ACEOF
25126 /* confdefs.h.  */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h.  */
25131
25132 /* Override any gcc2 internal prototype to avoid an error.  */
25133 #ifdef __cplusplus
25134 extern "C"
25135 #endif
25136 /* We use char because int might match the return type of a gcc2
25137    builtin and then its argument prototype would still apply.  */
25138 char mallinfo ();
25139 int
25140 main ()
25141 {
25142 mallinfo ();
25143   ;
25144   return 0;
25145 }
25146 _ACEOF
25147 rm -f conftest.$ac_objext conftest$ac_exeext
25148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25149   (eval $ac_link) 2>conftest.er1
25150   ac_status=$?
25151   grep -v '^ *+' conftest.er1 >conftest.err
25152   rm -f conftest.er1
25153   cat conftest.err >&5
25154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155   (exit $ac_status); } &&
25156          { ac_try='test -z "$ac_c_werror_flag"
25157                          || test ! -s conftest.err'
25158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159   (eval $ac_try) 2>&5
25160   ac_status=$?
25161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162   (exit $ac_status); }; } &&
25163          { ac_try='test -s conftest$ac_exeext'
25164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165   (eval $ac_try) 2>&5
25166   ac_status=$?
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); }; }; then
25169   ac_cv_search_mallinfo="-l$ac_lib"
25170 break
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175 fi
25176 rm -f conftest.err conftest.$ac_objext \
25177       conftest$ac_exeext conftest.$ac_ext
25178   done
25179 fi
25180 LIBS=$ac_func_search_save_LIBS
25181 fi
25182 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25183 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25184 if test "$ac_cv_search_mallinfo" != no; then
25185   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25186
25187 cat >>confdefs.h <<\_ACEOF
25188 #define HAVE_MALLINFO 1
25189 _ACEOF
25190
25191 fi
25192
25193
25194 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25195 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25196 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25197   echo $ECHO_N "(cached) $ECHO_C" >&6
25198 else
25199   ac_func_search_save_LIBS=$LIBS
25200 ac_cv_search_pthread_mutex_lock=no
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207
25208 /* Override any gcc2 internal prototype to avoid an error.  */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 /* We use char because int might match the return type of a gcc2
25213    builtin and then its argument prototype would still apply.  */
25214 char pthread_mutex_lock ();
25215 int
25216 main ()
25217 {
25218 pthread_mutex_lock ();
25219   ;
25220   return 0;
25221 }
25222 _ACEOF
25223 rm -f conftest.$ac_objext conftest$ac_exeext
25224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25225   (eval $ac_link) 2>conftest.er1
25226   ac_status=$?
25227   grep -v '^ *+' conftest.er1 >conftest.err
25228   rm -f conftest.er1
25229   cat conftest.err >&5
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); } &&
25232          { ac_try='test -z "$ac_c_werror_flag"
25233                          || test ! -s conftest.err'
25234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235   (eval $ac_try) 2>&5
25236   ac_status=$?
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); }; } &&
25239          { ac_try='test -s conftest$ac_exeext'
25240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241   (eval $ac_try) 2>&5
25242   ac_status=$?
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); }; }; then
25245   ac_cv_search_pthread_mutex_lock="none required"
25246 else
25247   echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 fi
25251 rm -f conftest.err conftest.$ac_objext \
25252       conftest$ac_exeext conftest.$ac_ext
25253 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25254   for ac_lib in pthread; do
25255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25256     cat >conftest.$ac_ext <<_ACEOF
25257 /* confdefs.h.  */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h.  */
25262
25263 /* Override any gcc2 internal prototype to avoid an error.  */
25264 #ifdef __cplusplus
25265 extern "C"
25266 #endif
25267 /* We use char because int might match the return type of a gcc2
25268    builtin and then its argument prototype would still apply.  */
25269 char pthread_mutex_lock ();
25270 int
25271 main ()
25272 {
25273 pthread_mutex_lock ();
25274   ;
25275   return 0;
25276 }
25277 _ACEOF
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25280   (eval $ac_link) 2>conftest.er1
25281   ac_status=$?
25282   grep -v '^ *+' conftest.er1 >conftest.err
25283   rm -f conftest.er1
25284   cat conftest.err >&5
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); } &&
25287          { ac_try='test -z "$ac_c_werror_flag"
25288                          || test ! -s conftest.err'
25289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290   (eval $ac_try) 2>&5
25291   ac_status=$?
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); }; } &&
25294          { ac_try='test -s conftest$ac_exeext'
25295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296   (eval $ac_try) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); }; }; then
25300   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25301 break
25302 else
25303   echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306 fi
25307 rm -f conftest.err conftest.$ac_objext \
25308       conftest$ac_exeext conftest.$ac_ext
25309   done
25310 fi
25311 LIBS=$ac_func_search_save_LIBS
25312 fi
25313 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25314 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25315 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25316   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25317
25318 cat >>confdefs.h <<\_ACEOF
25319 #define HAVE_PTHREAD_MUTEX_LOCK 1
25320 _ACEOF
25321
25322 fi
25323
25324
25325
25326
25327
25328
25329
25330
25331 ac_header_dirent=no
25332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25333   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25334 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25335 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25337   echo $ECHO_N "(cached) $ECHO_C" >&6
25338 else
25339   cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 #include <sys/types.h>
25346 #include <$ac_hdr>
25347
25348 int
25349 main ()
25350 {
25351 if ((DIR *) 0)
25352 return 0;
25353   ;
25354   return 0;
25355 }
25356 _ACEOF
25357 rm -f conftest.$ac_objext
25358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25359   (eval $ac_compile) 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } &&
25366          { ac_try='test -z "$ac_c_werror_flag"
25367                          || test ! -s conftest.err'
25368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369   (eval $ac_try) 2>&5
25370   ac_status=$?
25371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372   (exit $ac_status); }; } &&
25373          { ac_try='test -s conftest.$ac_objext'
25374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375   (eval $ac_try) 2>&5
25376   ac_status=$?
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); }; }; then
25379   eval "$as_ac_Header=yes"
25380 else
25381   echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25383
25384 eval "$as_ac_Header=no"
25385 fi
25386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25387 fi
25388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25391   cat >>confdefs.h <<_ACEOF
25392 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25393 _ACEOF
25394
25395 ac_header_dirent=$ac_hdr; break
25396 fi
25397
25398 done
25399 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25400 if test $ac_header_dirent = dirent.h; then
25401   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25402 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25403 if test "${ac_cv_search_opendir+set}" = set; then
25404   echo $ECHO_N "(cached) $ECHO_C" >&6
25405 else
25406   ac_func_search_save_LIBS=$LIBS
25407 ac_cv_search_opendir=no
25408 cat >conftest.$ac_ext <<_ACEOF
25409 /* confdefs.h.  */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h.  */
25414
25415 /* Override any gcc2 internal prototype to avoid an error.  */
25416 #ifdef __cplusplus
25417 extern "C"
25418 #endif
25419 /* We use char because int might match the return type of a gcc2
25420    builtin and then its argument prototype would still apply.  */
25421 char opendir ();
25422 int
25423 main ()
25424 {
25425 opendir ();
25426   ;
25427   return 0;
25428 }
25429 _ACEOF
25430 rm -f conftest.$ac_objext conftest$ac_exeext
25431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25432   (eval $ac_link) 2>conftest.er1
25433   ac_status=$?
25434   grep -v '^ *+' conftest.er1 >conftest.err
25435   rm -f conftest.er1
25436   cat conftest.err >&5
25437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438   (exit $ac_status); } &&
25439          { ac_try='test -z "$ac_c_werror_flag"
25440                          || test ! -s conftest.err'
25441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442   (eval $ac_try) 2>&5
25443   ac_status=$?
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); }; } &&
25446          { ac_try='test -s conftest$ac_exeext'
25447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448   (eval $ac_try) 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; }; then
25452   ac_cv_search_opendir="none required"
25453 else
25454   echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25456
25457 fi
25458 rm -f conftest.err conftest.$ac_objext \
25459       conftest$ac_exeext conftest.$ac_ext
25460 if test "$ac_cv_search_opendir" = no; then
25461   for ac_lib in dir; do
25462     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25463     cat >conftest.$ac_ext <<_ACEOF
25464 /* confdefs.h.  */
25465 _ACEOF
25466 cat confdefs.h >>conftest.$ac_ext
25467 cat >>conftest.$ac_ext <<_ACEOF
25468 /* end confdefs.h.  */
25469
25470 /* Override any gcc2 internal prototype to avoid an error.  */
25471 #ifdef __cplusplus
25472 extern "C"
25473 #endif
25474 /* We use char because int might match the return type of a gcc2
25475    builtin and then its argument prototype would still apply.  */
25476 char opendir ();
25477 int
25478 main ()
25479 {
25480 opendir ();
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest.$ac_objext conftest$ac_exeext
25486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25487   (eval $ac_link) 2>conftest.er1
25488   ac_status=$?
25489   grep -v '^ *+' conftest.er1 >conftest.err
25490   rm -f conftest.er1
25491   cat conftest.err >&5
25492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); } &&
25494          { ac_try='test -z "$ac_c_werror_flag"
25495                          || test ! -s conftest.err'
25496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25497   (eval $ac_try) 2>&5
25498   ac_status=$?
25499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500   (exit $ac_status); }; } &&
25501          { ac_try='test -s conftest$ac_exeext'
25502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503   (eval $ac_try) 2>&5
25504   ac_status=$?
25505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506   (exit $ac_status); }; }; then
25507   ac_cv_search_opendir="-l$ac_lib"
25508 break
25509 else
25510   echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25512
25513 fi
25514 rm -f conftest.err conftest.$ac_objext \
25515       conftest$ac_exeext conftest.$ac_ext
25516   done
25517 fi
25518 LIBS=$ac_func_search_save_LIBS
25519 fi
25520 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25521 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25522 if test "$ac_cv_search_opendir" != no; then
25523   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25524
25525 fi
25526
25527 else
25528   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25529 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25530 if test "${ac_cv_search_opendir+set}" = set; then
25531   echo $ECHO_N "(cached) $ECHO_C" >&6
25532 else
25533   ac_func_search_save_LIBS=$LIBS
25534 ac_cv_search_opendir=no
25535 cat >conftest.$ac_ext <<_ACEOF
25536 /* confdefs.h.  */
25537 _ACEOF
25538 cat confdefs.h >>conftest.$ac_ext
25539 cat >>conftest.$ac_ext <<_ACEOF
25540 /* end confdefs.h.  */
25541
25542 /* Override any gcc2 internal prototype to avoid an error.  */
25543 #ifdef __cplusplus
25544 extern "C"
25545 #endif
25546 /* We use char because int might match the return type of a gcc2
25547    builtin and then its argument prototype would still apply.  */
25548 char opendir ();
25549 int
25550 main ()
25551 {
25552 opendir ();
25553   ;
25554   return 0;
25555 }
25556 _ACEOF
25557 rm -f conftest.$ac_objext conftest$ac_exeext
25558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25559   (eval $ac_link) 2>conftest.er1
25560   ac_status=$?
25561   grep -v '^ *+' conftest.er1 >conftest.err
25562   rm -f conftest.er1
25563   cat conftest.err >&5
25564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565   (exit $ac_status); } &&
25566          { ac_try='test -z "$ac_c_werror_flag"
25567                          || test ! -s conftest.err'
25568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569   (eval $ac_try) 2>&5
25570   ac_status=$?
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); }; } &&
25573          { ac_try='test -s conftest$ac_exeext'
25574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); }; }; then
25579   ac_cv_search_opendir="none required"
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584 fi
25585 rm -f conftest.err conftest.$ac_objext \
25586       conftest$ac_exeext conftest.$ac_ext
25587 if test "$ac_cv_search_opendir" = no; then
25588   for ac_lib in x; do
25589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25590     cat >conftest.$ac_ext <<_ACEOF
25591 /* confdefs.h.  */
25592 _ACEOF
25593 cat confdefs.h >>conftest.$ac_ext
25594 cat >>conftest.$ac_ext <<_ACEOF
25595 /* end confdefs.h.  */
25596
25597 /* Override any gcc2 internal prototype to avoid an error.  */
25598 #ifdef __cplusplus
25599 extern "C"
25600 #endif
25601 /* We use char because int might match the return type of a gcc2
25602    builtin and then its argument prototype would still apply.  */
25603 char opendir ();
25604 int
25605 main ()
25606 {
25607 opendir ();
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest.$ac_objext conftest$ac_exeext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25614   (eval $ac_link) 2>conftest.er1
25615   ac_status=$?
25616   grep -v '^ *+' conftest.er1 >conftest.err
25617   rm -f conftest.er1
25618   cat conftest.err >&5
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); } &&
25621          { ac_try='test -z "$ac_c_werror_flag"
25622                          || test ! -s conftest.err'
25623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624   (eval $ac_try) 2>&5
25625   ac_status=$?
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); }; } &&
25628          { ac_try='test -s conftest$ac_exeext'
25629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630   (eval $ac_try) 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; }; then
25634   ac_cv_search_opendir="-l$ac_lib"
25635 break
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 fi
25641 rm -f conftest.err conftest.$ac_objext \
25642       conftest$ac_exeext conftest.$ac_ext
25643   done
25644 fi
25645 LIBS=$ac_func_search_save_LIBS
25646 fi
25647 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25648 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25649 if test "$ac_cv_search_opendir" != no; then
25650   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25651
25652 fi
25653
25654 fi
25655
25656 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25657 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25658 if test "${ac_cv_header_mmap_anon+set}" = set; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661    ac_ext=c
25662 ac_cpp='$CPP $CPPFLAGS'
25663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25666
25667   cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673 #include <sys/mman.h>
25674 #include <unistd.h>
25675 #include <fcntl.h>
25676 int
25677 main ()
25678 {
25679 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25680   ;
25681   return 0;
25682 }
25683 _ACEOF
25684 rm -f conftest.$ac_objext
25685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25686   (eval $ac_compile) 2>conftest.er1
25687   ac_status=$?
25688   grep -v '^ *+' conftest.er1 >conftest.err
25689   rm -f conftest.er1
25690   cat conftest.err >&5
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); } &&
25693          { ac_try='test -z "$ac_c_werror_flag"
25694                          || test ! -s conftest.err'
25695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696   (eval $ac_try) 2>&5
25697   ac_status=$?
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); }; } &&
25700          { ac_try='test -s conftest.$ac_objext'
25701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702   (eval $ac_try) 2>&5
25703   ac_status=$?
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); }; }; then
25706   ac_cv_header_mmap_anon=yes
25707 else
25708   echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25710
25711 ac_cv_header_mmap_anon=no
25712 fi
25713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25714   ac_ext=c
25715 ac_cpp='$CPP $CPPFLAGS'
25716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25719
25720
25721 fi
25722 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25723 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25724 if test "$ac_cv_header_mmap_anon" = yes; then
25725
25726 cat >>confdefs.h <<\_ACEOF
25727 #define HAVE_MMAP_ANONYMOUS 1
25728 _ACEOF
25729
25730 fi
25731
25732 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25733 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25734 if test "${ac_cv_header_stat_broken+set}" = set; then
25735   echo $ECHO_N "(cached) $ECHO_C" >&6
25736 else
25737   cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h.  */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h.  */
25743 #include <sys/types.h>
25744 #include <sys/stat.h>
25745
25746 #if defined(S_ISBLK) && defined(S_IFDIR)
25747 # if S_ISBLK (S_IFDIR)
25748 You lose.
25749 # endif
25750 #endif
25751
25752 #if defined(S_ISBLK) && defined(S_IFCHR)
25753 # if S_ISBLK (S_IFCHR)
25754 You lose.
25755 # endif
25756 #endif
25757
25758 #if defined(S_ISLNK) && defined(S_IFREG)
25759 # if S_ISLNK (S_IFREG)
25760 You lose.
25761 # endif
25762 #endif
25763
25764 #if defined(S_ISSOCK) && defined(S_IFREG)
25765 # if S_ISSOCK (S_IFREG)
25766 You lose.
25767 # endif
25768 #endif
25769
25770 _ACEOF
25771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25772   $EGREP "You lose" >/dev/null 2>&1; then
25773   ac_cv_header_stat_broken=yes
25774 else
25775   ac_cv_header_stat_broken=no
25776 fi
25777 rm -f conftest*
25778
25779 fi
25780 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25781 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25782 if test $ac_cv_header_stat_broken = yes; then
25783
25784 cat >>confdefs.h <<\_ACEOF
25785 #define STAT_MACROS_BROKEN 1
25786 _ACEOF
25787
25788 fi
25789
25790 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25792 if test "${ac_cv_header_stdc+set}" = set; then
25793   echo $ECHO_N "(cached) $ECHO_C" >&6
25794 else
25795   cat >conftest.$ac_ext <<_ACEOF
25796 /* confdefs.h.  */
25797 _ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h.  */
25801 #include <stdlib.h>
25802 #include <stdarg.h>
25803 #include <string.h>
25804 #include <float.h>
25805
25806 int
25807 main ()
25808 {
25809
25810   ;
25811   return 0;
25812 }
25813 _ACEOF
25814 rm -f conftest.$ac_objext
25815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25816   (eval $ac_compile) 2>conftest.er1
25817   ac_status=$?
25818   grep -v '^ *+' conftest.er1 >conftest.err
25819   rm -f conftest.er1
25820   cat conftest.err >&5
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); } &&
25823          { ac_try='test -z "$ac_c_werror_flag"
25824                          || test ! -s conftest.err'
25825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826   (eval $ac_try) 2>&5
25827   ac_status=$?
25828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); }; } &&
25830          { ac_try='test -s conftest.$ac_objext'
25831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832   (eval $ac_try) 2>&5
25833   ac_status=$?
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); }; }; then
25836   ac_cv_header_stdc=yes
25837 else
25838   echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25840
25841 ac_cv_header_stdc=no
25842 fi
25843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25844
25845 if test $ac_cv_header_stdc = yes; then
25846   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25847   cat >conftest.$ac_ext <<_ACEOF
25848 /* confdefs.h.  */
25849 _ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h.  */
25853 #include <string.h>
25854
25855 _ACEOF
25856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25857   $EGREP "memchr" >/dev/null 2>&1; then
25858   :
25859 else
25860   ac_cv_header_stdc=no
25861 fi
25862 rm -f conftest*
25863
25864 fi
25865
25866 if test $ac_cv_header_stdc = yes; then
25867   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25868   cat >conftest.$ac_ext <<_ACEOF
25869 /* confdefs.h.  */
25870 _ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h.  */
25874 #include <stdlib.h>
25875
25876 _ACEOF
25877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25878   $EGREP "free" >/dev/null 2>&1; then
25879   :
25880 else
25881   ac_cv_header_stdc=no
25882 fi
25883 rm -f conftest*
25884
25885 fi
25886
25887 if test $ac_cv_header_stdc = yes; then
25888   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25889   if test "$cross_compiling" = yes; then
25890   :
25891 else
25892   cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h.  */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h.  */
25898 #include <ctype.h>
25899 #if ((' ' & 0x0FF) == 0x020)
25900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25902 #else
25903 # define ISLOWER(c) \
25904                    (('a' <= (c) && (c) <= 'i') \
25905                      || ('j' <= (c) && (c) <= 'r') \
25906                      || ('s' <= (c) && (c) <= 'z'))
25907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25908 #endif
25909
25910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25911 int
25912 main ()
25913 {
25914   int i;
25915   for (i = 0; i < 256; i++)
25916     if (XOR (islower (i), ISLOWER (i))
25917         || toupper (i) != TOUPPER (i))
25918       exit(2);
25919   exit (0);
25920 }
25921 _ACEOF
25922 rm -f conftest$ac_exeext
25923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924   (eval $ac_link) 2>&5
25925   ac_status=$?
25926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929   (eval $ac_try) 2>&5
25930   ac_status=$?
25931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932   (exit $ac_status); }; }; then
25933   :
25934 else
25935   echo "$as_me: program exited with status $ac_status" >&5
25936 echo "$as_me: failed program was:" >&5
25937 sed 's/^/| /' conftest.$ac_ext >&5
25938
25939 ( exit $ac_status )
25940 ac_cv_header_stdc=no
25941 fi
25942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25943 fi
25944 fi
25945 fi
25946 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25947 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25948 if test $ac_cv_header_stdc = yes; then
25949
25950 cat >>confdefs.h <<\_ACEOF
25951 #define STDC_HEADERS 1
25952 _ACEOF
25953
25954 fi
25955
25956 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25957 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25958 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25959   echo $ECHO_N "(cached) $ECHO_C" >&6
25960 else
25961   cat >conftest.$ac_ext <<_ACEOF
25962 /* confdefs.h.  */
25963 _ACEOF
25964 cat confdefs.h >>conftest.$ac_ext
25965 cat >>conftest.$ac_ext <<_ACEOF
25966 /* end confdefs.h.  */
25967 #include <sys/types.h>
25968 #include <sys/wait.h>
25969 #ifndef WEXITSTATUS
25970 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25971 #endif
25972 #ifndef WIFEXITED
25973 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25974 #endif
25975
25976 int
25977 main ()
25978 {
25979   int s;
25980   wait (&s);
25981   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25988   (eval $ac_compile) 2>conftest.er1
25989   ac_status=$?
25990   grep -v '^ *+' conftest.er1 >conftest.err
25991   rm -f conftest.er1
25992   cat conftest.err >&5
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); } &&
25995          { ac_try='test -z "$ac_c_werror_flag"
25996                          || test ! -s conftest.err'
25997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998   (eval $ac_try) 2>&5
25999   ac_status=$?
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); }; } &&
26002          { ac_try='test -s conftest.$ac_objext'
26003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004   (eval $ac_try) 2>&5
26005   ac_status=$?
26006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); }; }; then
26008   ac_cv_header_sys_wait_h=yes
26009 else
26010   echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26012
26013 ac_cv_header_sys_wait_h=no
26014 fi
26015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26016 fi
26017 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26018 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26019 if test $ac_cv_header_sys_wait_h = yes; then
26020
26021 cat >>confdefs.h <<\_ACEOF
26022 #define HAVE_SYS_WAIT_H 1
26023 _ACEOF
26024
26025 fi
26026
26027 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26028 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26029 if test "${ac_cv_header_time+set}" = set; then
26030   echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
26032   cat >conftest.$ac_ext <<_ACEOF
26033 /* confdefs.h.  */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h.  */
26038 #include <sys/types.h>
26039 #include <sys/time.h>
26040 #include <time.h>
26041
26042 int
26043 main ()
26044 {
26045 if ((struct tm *) 0)
26046 return 0;
26047   ;
26048   return 0;
26049 }
26050 _ACEOF
26051 rm -f conftest.$ac_objext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053   (eval $ac_compile) 2>conftest.er1
26054   ac_status=$?
26055   grep -v '^ *+' conftest.er1 >conftest.err
26056   rm -f conftest.er1
26057   cat conftest.err >&5
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } &&
26060          { ac_try='test -z "$ac_c_werror_flag"
26061                          || test ! -s conftest.err'
26062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063   (eval $ac_try) 2>&5
26064   ac_status=$?
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); }; } &&
26067          { ac_try='test -s conftest.$ac_objext'
26068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069   (eval $ac_try) 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; }; then
26073   ac_cv_header_time=yes
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078 ac_cv_header_time=no
26079 fi
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081 fi
26082 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26083 echo "${ECHO_T}$ac_cv_header_time" >&6
26084 if test $ac_cv_header_time = yes; then
26085
26086 cat >>confdefs.h <<\_ACEOF
26087 #define TIME_WITH_SYS_TIME 1
26088 _ACEOF
26089
26090 fi
26091
26092
26093
26094
26095
26096
26097
26098
26099 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26100 do
26101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26103   echo "$as_me:$LINENO: checking for $ac_header" >&5
26104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26106   echo $ECHO_N "(cached) $ECHO_C" >&6
26107 fi
26108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26110 else
26111   # Is the header compilable?
26112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26114 cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120 $ac_includes_default
26121 #include <$ac_header>
26122 _ACEOF
26123 rm -f conftest.$ac_objext
26124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26125   (eval $ac_compile) 2>conftest.er1
26126   ac_status=$?
26127   grep -v '^ *+' conftest.er1 >conftest.err
26128   rm -f conftest.er1
26129   cat conftest.err >&5
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); } &&
26132          { ac_try='test -z "$ac_c_werror_flag"
26133                          || test ! -s conftest.err'
26134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135   (eval $ac_try) 2>&5
26136   ac_status=$?
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); }; } &&
26139          { ac_try='test -s conftest.$ac_objext'
26140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141   (eval $ac_try) 2>&5
26142   ac_status=$?
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); }; }; then
26145   ac_header_compiler=yes
26146 else
26147   echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26149
26150 ac_header_compiler=no
26151 fi
26152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154 echo "${ECHO_T}$ac_header_compiler" >&6
26155
26156 # Is the header present?
26157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26159 cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 #include <$ac_header>
26166 _ACEOF
26167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26169   ac_status=$?
26170   grep -v '^ *+' conftest.er1 >conftest.err
26171   rm -f conftest.er1
26172   cat conftest.err >&5
26173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174   (exit $ac_status); } >/dev/null; then
26175   if test -s conftest.err; then
26176     ac_cpp_err=$ac_c_preproc_warn_flag
26177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26178   else
26179     ac_cpp_err=
26180   fi
26181 else
26182   ac_cpp_err=yes
26183 fi
26184 if test -z "$ac_cpp_err"; then
26185   ac_header_preproc=yes
26186 else
26187   echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190   ac_header_preproc=no
26191 fi
26192 rm -f conftest.err conftest.$ac_ext
26193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26194 echo "${ECHO_T}$ac_header_preproc" >&6
26195
26196 # So?  What about this header?
26197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26198   yes:no: )
26199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26203     ac_header_preproc=yes
26204     ;;
26205   no:yes:* )
26206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26218     (
26219       cat <<\_ASBOX
26220 ## ----------------------------------- ##
26221 ## Report this to llvmbugs@cs.uiuc.edu ##
26222 ## ----------------------------------- ##
26223 _ASBOX
26224     ) |
26225       sed "s/^/$as_me: WARNING:     /" >&2
26226     ;;
26227 esac
26228 echo "$as_me:$LINENO: checking for $ac_header" >&5
26229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26231   echo $ECHO_N "(cached) $ECHO_C" >&6
26232 else
26233   eval "$as_ac_Header=\$ac_header_preproc"
26234 fi
26235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26237
26238 fi
26239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26240   cat >>confdefs.h <<_ACEOF
26241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26242 _ACEOF
26243
26244 fi
26245
26246 done
26247
26248
26249
26250
26251
26252
26253
26254 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26255 do
26256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26258   echo "$as_me:$LINENO: checking for $ac_header" >&5
26259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26261   echo $ECHO_N "(cached) $ECHO_C" >&6
26262 fi
26263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26265 else
26266   # Is the header compilable?
26267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26269 cat >conftest.$ac_ext <<_ACEOF
26270 /* confdefs.h.  */
26271 _ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h.  */
26275 $ac_includes_default
26276 #include <$ac_header>
26277 _ACEOF
26278 rm -f conftest.$ac_objext
26279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26280   (eval $ac_compile) 2>conftest.er1
26281   ac_status=$?
26282   grep -v '^ *+' conftest.er1 >conftest.err
26283   rm -f conftest.er1
26284   cat conftest.err >&5
26285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286   (exit $ac_status); } &&
26287          { ac_try='test -z "$ac_c_werror_flag"
26288                          || test ! -s conftest.err'
26289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290   (eval $ac_try) 2>&5
26291   ac_status=$?
26292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293   (exit $ac_status); }; } &&
26294          { ac_try='test -s conftest.$ac_objext'
26295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296   (eval $ac_try) 2>&5
26297   ac_status=$?
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); }; }; then
26300   ac_header_compiler=yes
26301 else
26302   echo "$as_me: failed program was:" >&5
26303 sed 's/^/| /' conftest.$ac_ext >&5
26304
26305 ac_header_compiler=no
26306 fi
26307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26309 echo "${ECHO_T}$ac_header_compiler" >&6
26310
26311 # Is the header present?
26312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26314 cat >conftest.$ac_ext <<_ACEOF
26315 /* confdefs.h.  */
26316 _ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h.  */
26320 #include <$ac_header>
26321 _ACEOF
26322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26324   ac_status=$?
26325   grep -v '^ *+' conftest.er1 >conftest.err
26326   rm -f conftest.er1
26327   cat conftest.err >&5
26328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329   (exit $ac_status); } >/dev/null; then
26330   if test -s conftest.err; then
26331     ac_cpp_err=$ac_c_preproc_warn_flag
26332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26333   else
26334     ac_cpp_err=
26335   fi
26336 else
26337   ac_cpp_err=yes
26338 fi
26339 if test -z "$ac_cpp_err"; then
26340   ac_header_preproc=yes
26341 else
26342   echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26344
26345   ac_header_preproc=no
26346 fi
26347 rm -f conftest.err conftest.$ac_ext
26348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26349 echo "${ECHO_T}$ac_header_preproc" >&6
26350
26351 # So?  What about this header?
26352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26353   yes:no: )
26354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26358     ac_header_preproc=yes
26359     ;;
26360   no:yes:* )
26361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26373     (
26374       cat <<\_ASBOX
26375 ## ----------------------------------- ##
26376 ## Report this to llvmbugs@cs.uiuc.edu ##
26377 ## ----------------------------------- ##
26378 _ASBOX
26379     ) |
26380       sed "s/^/$as_me: WARNING:     /" >&2
26381     ;;
26382 esac
26383 echo "$as_me:$LINENO: checking for $ac_header" >&5
26384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26386   echo $ECHO_N "(cached) $ECHO_C" >&6
26387 else
26388   eval "$as_ac_Header=\$ac_header_preproc"
26389 fi
26390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26392
26393 fi
26394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26395   cat >>confdefs.h <<_ACEOF
26396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26397 _ACEOF
26398
26399 fi
26400
26401 done
26402
26403
26404
26405
26406
26407
26408 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26409 do
26410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412   echo "$as_me:$LINENO: checking for $ac_header" >&5
26413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 fi
26417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26419 else
26420   # Is the header compilable?
26421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26423 cat >conftest.$ac_ext <<_ACEOF
26424 /* confdefs.h.  */
26425 _ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h.  */
26429 $ac_includes_default
26430 #include <$ac_header>
26431 _ACEOF
26432 rm -f conftest.$ac_objext
26433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26434   (eval $ac_compile) 2>conftest.er1
26435   ac_status=$?
26436   grep -v '^ *+' conftest.er1 >conftest.err
26437   rm -f conftest.er1
26438   cat conftest.err >&5
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } &&
26441          { ac_try='test -z "$ac_c_werror_flag"
26442                          || test ! -s conftest.err'
26443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444   (eval $ac_try) 2>&5
26445   ac_status=$?
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); }; } &&
26448          { ac_try='test -s conftest.$ac_objext'
26449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450   (eval $ac_try) 2>&5
26451   ac_status=$?
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); }; }; then
26454   ac_header_compiler=yes
26455 else
26456   echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459 ac_header_compiler=no
26460 fi
26461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26463 echo "${ECHO_T}$ac_header_compiler" >&6
26464
26465 # Is the header present?
26466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26468 cat >conftest.$ac_ext <<_ACEOF
26469 /* confdefs.h.  */
26470 _ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h.  */
26474 #include <$ac_header>
26475 _ACEOF
26476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } >/dev/null; then
26484   if test -s conftest.err; then
26485     ac_cpp_err=$ac_c_preproc_warn_flag
26486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26487   else
26488     ac_cpp_err=
26489   fi
26490 else
26491   ac_cpp_err=yes
26492 fi
26493 if test -z "$ac_cpp_err"; then
26494   ac_header_preproc=yes
26495 else
26496   echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26498
26499   ac_header_preproc=no
26500 fi
26501 rm -f conftest.err conftest.$ac_ext
26502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26503 echo "${ECHO_T}$ac_header_preproc" >&6
26504
26505 # So?  What about this header?
26506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26507   yes:no: )
26508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26512     ac_header_preproc=yes
26513     ;;
26514   no:yes:* )
26515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26527     (
26528       cat <<\_ASBOX
26529 ## ----------------------------------- ##
26530 ## Report this to llvmbugs@cs.uiuc.edu ##
26531 ## ----------------------------------- ##
26532 _ASBOX
26533     ) |
26534       sed "s/^/$as_me: WARNING:     /" >&2
26535     ;;
26536 esac
26537 echo "$as_me:$LINENO: checking for $ac_header" >&5
26538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26540   echo $ECHO_N "(cached) $ECHO_C" >&6
26541 else
26542   eval "$as_ac_Header=\$ac_header_preproc"
26543 fi
26544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26546
26547 fi
26548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26549   cat >>confdefs.h <<_ACEOF
26550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26551 _ACEOF
26552
26553 fi
26554
26555 done
26556
26557
26558
26559 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26560 do
26561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26563   echo "$as_me:$LINENO: checking for $ac_header" >&5
26564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26566   echo $ECHO_N "(cached) $ECHO_C" >&6
26567 fi
26568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26570 else
26571   # Is the header compilable?
26572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26574 cat >conftest.$ac_ext <<_ACEOF
26575 /* confdefs.h.  */
26576 _ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h.  */
26580 $ac_includes_default
26581 #include <$ac_header>
26582 _ACEOF
26583 rm -f conftest.$ac_objext
26584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26585   (eval $ac_compile) 2>conftest.er1
26586   ac_status=$?
26587   grep -v '^ *+' conftest.er1 >conftest.err
26588   rm -f conftest.er1
26589   cat conftest.err >&5
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); } &&
26592          { ac_try='test -z "$ac_c_werror_flag"
26593                          || test ! -s conftest.err'
26594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595   (eval $ac_try) 2>&5
26596   ac_status=$?
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); }; } &&
26599          { ac_try='test -s conftest.$ac_objext'
26600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601   (eval $ac_try) 2>&5
26602   ac_status=$?
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); }; }; then
26605   ac_header_compiler=yes
26606 else
26607   echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26609
26610 ac_header_compiler=no
26611 fi
26612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26614 echo "${ECHO_T}$ac_header_compiler" >&6
26615
26616 # Is the header present?
26617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26619 cat >conftest.$ac_ext <<_ACEOF
26620 /* confdefs.h.  */
26621 _ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h.  */
26625 #include <$ac_header>
26626 _ACEOF
26627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26629   ac_status=$?
26630   grep -v '^ *+' conftest.er1 >conftest.err
26631   rm -f conftest.er1
26632   cat conftest.err >&5
26633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634   (exit $ac_status); } >/dev/null; then
26635   if test -s conftest.err; then
26636     ac_cpp_err=$ac_c_preproc_warn_flag
26637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26638   else
26639     ac_cpp_err=
26640   fi
26641 else
26642   ac_cpp_err=yes
26643 fi
26644 if test -z "$ac_cpp_err"; then
26645   ac_header_preproc=yes
26646 else
26647   echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26649
26650   ac_header_preproc=no
26651 fi
26652 rm -f conftest.err conftest.$ac_ext
26653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26654 echo "${ECHO_T}$ac_header_preproc" >&6
26655
26656 # So?  What about this header?
26657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26658   yes:no: )
26659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26663     ac_header_preproc=yes
26664     ;;
26665   no:yes:* )
26666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26668     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26669 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26670     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26672     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26673 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26676     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26678     (
26679       cat <<\_ASBOX
26680 ## ----------------------------------- ##
26681 ## Report this to llvmbugs@cs.uiuc.edu ##
26682 ## ----------------------------------- ##
26683 _ASBOX
26684     ) |
26685       sed "s/^/$as_me: WARNING:     /" >&2
26686     ;;
26687 esac
26688 echo "$as_me:$LINENO: checking for $ac_header" >&5
26689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26691   echo $ECHO_N "(cached) $ECHO_C" >&6
26692 else
26693   eval "$as_ac_Header=\$ac_header_preproc"
26694 fi
26695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26697
26698 fi
26699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26700   cat >>confdefs.h <<_ACEOF
26701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26702 _ACEOF
26703
26704 fi
26705
26706 done
26707
26708
26709
26710 echo "$as_me:$LINENO: checking for pid_t" >&5
26711 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26712 if test "${ac_cv_type_pid_t+set}" = set; then
26713   echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715   cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721 $ac_includes_default
26722 int
26723 main ()
26724 {
26725 if ((pid_t *) 0)
26726   return 0;
26727 if (sizeof (pid_t))
26728   return 0;
26729   ;
26730   return 0;
26731 }
26732 _ACEOF
26733 rm -f conftest.$ac_objext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26735   (eval $ac_compile) 2>conftest.er1
26736   ac_status=$?
26737   grep -v '^ *+' conftest.er1 >conftest.err
26738   rm -f conftest.er1
26739   cat conftest.err >&5
26740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741   (exit $ac_status); } &&
26742          { ac_try='test -z "$ac_c_werror_flag"
26743                          || test ! -s conftest.err'
26744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745   (eval $ac_try) 2>&5
26746   ac_status=$?
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); }; } &&
26749          { ac_try='test -s conftest.$ac_objext'
26750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751   (eval $ac_try) 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); }; }; then
26755   ac_cv_type_pid_t=yes
26756 else
26757   echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26759
26760 ac_cv_type_pid_t=no
26761 fi
26762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26763 fi
26764 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26765 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26766 if test $ac_cv_type_pid_t = yes; then
26767   :
26768 else
26769
26770 cat >>confdefs.h <<_ACEOF
26771 #define pid_t int
26772 _ACEOF
26773
26774 fi
26775
26776 echo "$as_me:$LINENO: checking for size_t" >&5
26777 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26778 if test "${ac_cv_type_size_t+set}" = set; then
26779   echo $ECHO_N "(cached) $ECHO_C" >&6
26780 else
26781   cat >conftest.$ac_ext <<_ACEOF
26782 /* confdefs.h.  */
26783 _ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h.  */
26787 $ac_includes_default
26788 int
26789 main ()
26790 {
26791 if ((size_t *) 0)
26792   return 0;
26793 if (sizeof (size_t))
26794   return 0;
26795   ;
26796   return 0;
26797 }
26798 _ACEOF
26799 rm -f conftest.$ac_objext
26800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26801   (eval $ac_compile) 2>conftest.er1
26802   ac_status=$?
26803   grep -v '^ *+' conftest.er1 >conftest.err
26804   rm -f conftest.er1
26805   cat conftest.err >&5
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); } &&
26808          { ac_try='test -z "$ac_c_werror_flag"
26809                          || test ! -s conftest.err'
26810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811   (eval $ac_try) 2>&5
26812   ac_status=$?
26813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); }; } &&
26815          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26821   ac_cv_type_size_t=yes
26822 else
26823   echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826 ac_cv_type_size_t=no
26827 fi
26828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26829 fi
26830 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26831 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26832 if test $ac_cv_type_size_t = yes; then
26833   :
26834 else
26835
26836 cat >>confdefs.h <<_ACEOF
26837 #define size_t unsigned
26838 _ACEOF
26839
26840 fi
26841
26842 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26843 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26844 if test "${ac_cv_type_signal+set}" = set; then
26845   echo $ECHO_N "(cached) $ECHO_C" >&6
26846 else
26847   cat >conftest.$ac_ext <<_ACEOF
26848 /* confdefs.h.  */
26849 _ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h.  */
26853 #include <sys/types.h>
26854 #include <signal.h>
26855 #ifdef signal
26856 # undef signal
26857 #endif
26858 #ifdef __cplusplus
26859 extern "C" void (*signal (int, void (*)(int)))(int);
26860 #else
26861 void (*signal ()) ();
26862 #endif
26863
26864 int
26865 main ()
26866 {
26867 int i;
26868   ;
26869   return 0;
26870 }
26871 _ACEOF
26872 rm -f conftest.$ac_objext
26873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26874   (eval $ac_compile) 2>conftest.er1
26875   ac_status=$?
26876   grep -v '^ *+' conftest.er1 >conftest.err
26877   rm -f conftest.er1
26878   cat conftest.err >&5
26879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880   (exit $ac_status); } &&
26881          { ac_try='test -z "$ac_c_werror_flag"
26882                          || test ! -s conftest.err'
26883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884   (eval $ac_try) 2>&5
26885   ac_status=$?
26886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); }; } &&
26888          { ac_try='test -s conftest.$ac_objext'
26889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890   (eval $ac_try) 2>&5
26891   ac_status=$?
26892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893   (exit $ac_status); }; }; then
26894   ac_cv_type_signal=void
26895 else
26896   echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26898
26899 ac_cv_type_signal=int
26900 fi
26901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26902 fi
26903 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26904 echo "${ECHO_T}$ac_cv_type_signal" >&6
26905
26906 cat >>confdefs.h <<_ACEOF
26907 #define RETSIGTYPE $ac_cv_type_signal
26908 _ACEOF
26909
26910
26911 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26912 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26913 if test "${ac_cv_struct_tm+set}" = set; then
26914   echo $ECHO_N "(cached) $ECHO_C" >&6
26915 else
26916   cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h.  */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h.  */
26922 #include <sys/types.h>
26923 #include <time.h>
26924
26925 int
26926 main ()
26927 {
26928 struct tm *tp; tp->tm_sec;
26929   ;
26930   return 0;
26931 }
26932 _ACEOF
26933 rm -f conftest.$ac_objext
26934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26935   (eval $ac_compile) 2>conftest.er1
26936   ac_status=$?
26937   grep -v '^ *+' conftest.er1 >conftest.err
26938   rm -f conftest.er1
26939   cat conftest.err >&5
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); } &&
26942          { ac_try='test -z "$ac_c_werror_flag"
26943                          || test ! -s conftest.err'
26944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26945   (eval $ac_try) 2>&5
26946   ac_status=$?
26947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948   (exit $ac_status); }; } &&
26949          { ac_try='test -s conftest.$ac_objext'
26950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951   (eval $ac_try) 2>&5
26952   ac_status=$?
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); }; }; then
26955   ac_cv_struct_tm=time.h
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960 ac_cv_struct_tm=sys/time.h
26961 fi
26962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26963 fi
26964 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26965 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26966 if test $ac_cv_struct_tm = sys/time.h; then
26967
26968 cat >>confdefs.h <<\_ACEOF
26969 #define TM_IN_SYS_TIME 1
26970 _ACEOF
26971
26972 fi
26973
26974 echo "$as_me:$LINENO: checking for int64_t" >&5
26975 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26976 if test "${ac_cv_type_int64_t+set}" = set; then
26977   echo $ECHO_N "(cached) $ECHO_C" >&6
26978 else
26979   cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h.  */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h.  */
26985 $ac_includes_default
26986 int
26987 main ()
26988 {
26989 if ((int64_t *) 0)
26990   return 0;
26991 if (sizeof (int64_t))
26992   return 0;
26993   ;
26994   return 0;
26995 }
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26999   (eval $ac_compile) 2>conftest.er1
27000   ac_status=$?
27001   grep -v '^ *+' conftest.er1 >conftest.err
27002   rm -f conftest.er1
27003   cat conftest.err >&5
27004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005   (exit $ac_status); } &&
27006          { ac_try='test -z "$ac_c_werror_flag"
27007                          || test ! -s conftest.err'
27008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009   (eval $ac_try) 2>&5
27010   ac_status=$?
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); }; } &&
27013          { ac_try='test -s conftest.$ac_objext'
27014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015   (eval $ac_try) 2>&5
27016   ac_status=$?
27017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018   (exit $ac_status); }; }; then
27019   ac_cv_type_int64_t=yes
27020 else
27021   echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27023
27024 ac_cv_type_int64_t=no
27025 fi
27026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27027 fi
27028 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27029 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27030 if test $ac_cv_type_int64_t = yes; then
27031
27032 cat >>confdefs.h <<_ACEOF
27033 #define HAVE_INT64_T 1
27034 _ACEOF
27035
27036
27037 else
27038   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27039 echo "$as_me: error: Type int64_t required but not found" >&2;}
27040    { (exit 1); exit 1; }; }
27041 fi
27042
27043 echo "$as_me:$LINENO: checking for uint64_t" >&5
27044 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27045 if test "${ac_cv_type_uint64_t+set}" = set; then
27046   echo $ECHO_N "(cached) $ECHO_C" >&6
27047 else
27048   cat >conftest.$ac_ext <<_ACEOF
27049 /* confdefs.h.  */
27050 _ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h.  */
27054 $ac_includes_default
27055 int
27056 main ()
27057 {
27058 if ((uint64_t *) 0)
27059   return 0;
27060 if (sizeof (uint64_t))
27061   return 0;
27062   ;
27063   return 0;
27064 }
27065 _ACEOF
27066 rm -f conftest.$ac_objext
27067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27068   (eval $ac_compile) 2>conftest.er1
27069   ac_status=$?
27070   grep -v '^ *+' conftest.er1 >conftest.err
27071   rm -f conftest.er1
27072   cat conftest.err >&5
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); } &&
27075          { ac_try='test -z "$ac_c_werror_flag"
27076                          || test ! -s conftest.err'
27077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078   (eval $ac_try) 2>&5
27079   ac_status=$?
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); }; } &&
27082          { ac_try='test -s conftest.$ac_objext'
27083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084   (eval $ac_try) 2>&5
27085   ac_status=$?
27086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087   (exit $ac_status); }; }; then
27088   ac_cv_type_uint64_t=yes
27089 else
27090   echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27092
27093 ac_cv_type_uint64_t=no
27094 fi
27095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27096 fi
27097 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27098 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27099 if test $ac_cv_type_uint64_t = yes; then
27100
27101 cat >>confdefs.h <<_ACEOF
27102 #define HAVE_UINT64_T 1
27103 _ACEOF
27104
27105
27106 else
27107   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27108 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27109 if test "${ac_cv_type_u_int64_t+set}" = set; then
27110   echo $ECHO_N "(cached) $ECHO_C" >&6
27111 else
27112   cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h.  */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h.  */
27118 $ac_includes_default
27119 int
27120 main ()
27121 {
27122 if ((u_int64_t *) 0)
27123   return 0;
27124 if (sizeof (u_int64_t))
27125   return 0;
27126   ;
27127   return 0;
27128 }
27129 _ACEOF
27130 rm -f conftest.$ac_objext
27131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27132   (eval $ac_compile) 2>conftest.er1
27133   ac_status=$?
27134   grep -v '^ *+' conftest.er1 >conftest.err
27135   rm -f conftest.er1
27136   cat conftest.err >&5
27137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138   (exit $ac_status); } &&
27139          { ac_try='test -z "$ac_c_werror_flag"
27140                          || test ! -s conftest.err'
27141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142   (eval $ac_try) 2>&5
27143   ac_status=$?
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); }; } &&
27146          { ac_try='test -s conftest.$ac_objext'
27147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148   (eval $ac_try) 2>&5
27149   ac_status=$?
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); }; }; then
27152   ac_cv_type_u_int64_t=yes
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157 ac_cv_type_u_int64_t=no
27158 fi
27159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27160 fi
27161 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27162 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27163 if test $ac_cv_type_u_int64_t = yes; then
27164
27165 cat >>confdefs.h <<_ACEOF
27166 #define HAVE_U_INT64_T 1
27167 _ACEOF
27168
27169
27170 else
27171   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27172 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27173    { (exit 1); exit 1; }; }
27174 fi
27175
27176 fi
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27187 do
27188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27189 echo "$as_me:$LINENO: checking for $ac_func" >&5
27190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27191 if eval "test \"\${$as_ac_var+set}\" = set"; then
27192   echo $ECHO_N "(cached) $ECHO_C" >&6
27193 else
27194   cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h.  */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h.  */
27200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27202 #define $ac_func innocuous_$ac_func
27203
27204 /* System header to define __stub macros and hopefully few prototypes,
27205     which can conflict with char $ac_func (); below.
27206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27207     <limits.h> exists even on freestanding compilers.  */
27208
27209 #ifdef __STDC__
27210 # include <limits.h>
27211 #else
27212 # include <assert.h>
27213 #endif
27214
27215 #undef $ac_func
27216
27217 /* Override any gcc2 internal prototype to avoid an error.  */
27218 #ifdef __cplusplus
27219 extern "C"
27220 {
27221 #endif
27222 /* We use char because int might match the return type of a gcc2
27223    builtin and then its argument prototype would still apply.  */
27224 char $ac_func ();
27225 /* The GNU C library defines this for functions which it implements
27226     to always fail with ENOSYS.  Some functions are actually named
27227     something starting with __ and the normal name is an alias.  */
27228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27229 choke me
27230 #else
27231 char (*f) () = $ac_func;
27232 #endif
27233 #ifdef __cplusplus
27234 }
27235 #endif
27236
27237 int
27238 main ()
27239 {
27240 return f != $ac_func;
27241   ;
27242   return 0;
27243 }
27244 _ACEOF
27245 rm -f conftest.$ac_objext conftest$ac_exeext
27246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27247   (eval $ac_link) 2>conftest.er1
27248   ac_status=$?
27249   grep -v '^ *+' conftest.er1 >conftest.err
27250   rm -f conftest.er1
27251   cat conftest.err >&5
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); } &&
27254          { ac_try='test -z "$ac_c_werror_flag"
27255                          || test ! -s conftest.err'
27256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257   (eval $ac_try) 2>&5
27258   ac_status=$?
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); }; } &&
27261          { ac_try='test -s conftest$ac_exeext'
27262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263   (eval $ac_try) 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; }; then
27267   eval "$as_ac_var=yes"
27268 else
27269   echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27271
27272 eval "$as_ac_var=no"
27273 fi
27274 rm -f conftest.err conftest.$ac_objext \
27275       conftest$ac_exeext conftest.$ac_ext
27276 fi
27277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27279 if test `eval echo '${'$as_ac_var'}'` = yes; then
27280   cat >>confdefs.h <<_ACEOF
27281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27282 _ACEOF
27283
27284 fi
27285 done
27286
27287
27288
27289
27290 for ac_func in mkdtemp mkstemp mktemp
27291 do
27292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27293 echo "$as_me:$LINENO: checking for $ac_func" >&5
27294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27295 if eval "test \"\${$as_ac_var+set}\" = set"; then
27296   echo $ECHO_N "(cached) $ECHO_C" >&6
27297 else
27298   cat >conftest.$ac_ext <<_ACEOF
27299 /* confdefs.h.  */
27300 _ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h.  */
27304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27306 #define $ac_func innocuous_$ac_func
27307
27308 /* System header to define __stub macros and hopefully few prototypes,
27309     which can conflict with char $ac_func (); below.
27310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27311     <limits.h> exists even on freestanding compilers.  */
27312
27313 #ifdef __STDC__
27314 # include <limits.h>
27315 #else
27316 # include <assert.h>
27317 #endif
27318
27319 #undef $ac_func
27320
27321 /* Override any gcc2 internal prototype to avoid an error.  */
27322 #ifdef __cplusplus
27323 extern "C"
27324 {
27325 #endif
27326 /* We use char because int might match the return type of a gcc2
27327    builtin and then its argument prototype would still apply.  */
27328 char $ac_func ();
27329 /* The GNU C library defines this for functions which it implements
27330     to always fail with ENOSYS.  Some functions are actually named
27331     something starting with __ and the normal name is an alias.  */
27332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27333 choke me
27334 #else
27335 char (*f) () = $ac_func;
27336 #endif
27337 #ifdef __cplusplus
27338 }
27339 #endif
27340
27341 int
27342 main ()
27343 {
27344 return f != $ac_func;
27345   ;
27346   return 0;
27347 }
27348 _ACEOF
27349 rm -f conftest.$ac_objext conftest$ac_exeext
27350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27351   (eval $ac_link) 2>conftest.er1
27352   ac_status=$?
27353   grep -v '^ *+' conftest.er1 >conftest.err
27354   rm -f conftest.er1
27355   cat conftest.err >&5
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); } &&
27358          { ac_try='test -z "$ac_c_werror_flag"
27359                          || test ! -s conftest.err'
27360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361   (eval $ac_try) 2>&5
27362   ac_status=$?
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); }; } &&
27365          { ac_try='test -s conftest$ac_exeext'
27366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367   (eval $ac_try) 2>&5
27368   ac_status=$?
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); }; }; then
27371   eval "$as_ac_var=yes"
27372 else
27373   echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376 eval "$as_ac_var=no"
27377 fi
27378 rm -f conftest.err conftest.$ac_objext \
27379       conftest$ac_exeext conftest.$ac_ext
27380 fi
27381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27383 if test `eval echo '${'$as_ac_var'}'` = yes; then
27384   cat >>confdefs.h <<_ACEOF
27385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27386 _ACEOF
27387
27388 fi
27389 done
27390
27391
27392
27393
27394
27395
27396
27397 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27398 do
27399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27400 echo "$as_me:$LINENO: checking for $ac_func" >&5
27401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27402 if eval "test \"\${$as_ac_var+set}\" = set"; then
27403   echo $ECHO_N "(cached) $ECHO_C" >&6
27404 else
27405   cat >conftest.$ac_ext <<_ACEOF
27406 /* confdefs.h.  */
27407 _ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h.  */
27411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27413 #define $ac_func innocuous_$ac_func
27414
27415 /* System header to define __stub macros and hopefully few prototypes,
27416     which can conflict with char $ac_func (); below.
27417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27418     <limits.h> exists even on freestanding compilers.  */
27419
27420 #ifdef __STDC__
27421 # include <limits.h>
27422 #else
27423 # include <assert.h>
27424 #endif
27425
27426 #undef $ac_func
27427
27428 /* Override any gcc2 internal prototype to avoid an error.  */
27429 #ifdef __cplusplus
27430 extern "C"
27431 {
27432 #endif
27433 /* We use char because int might match the return type of a gcc2
27434    builtin and then its argument prototype would still apply.  */
27435 char $ac_func ();
27436 /* The GNU C library defines this for functions which it implements
27437     to always fail with ENOSYS.  Some functions are actually named
27438     something starting with __ and the normal name is an alias.  */
27439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27440 choke me
27441 #else
27442 char (*f) () = $ac_func;
27443 #endif
27444 #ifdef __cplusplus
27445 }
27446 #endif
27447
27448 int
27449 main ()
27450 {
27451 return f != $ac_func;
27452   ;
27453   return 0;
27454 }
27455 _ACEOF
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27458   (eval $ac_link) 2>conftest.er1
27459   ac_status=$?
27460   grep -v '^ *+' conftest.er1 >conftest.err
27461   rm -f conftest.er1
27462   cat conftest.err >&5
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); } &&
27465          { ac_try='test -z "$ac_c_werror_flag"
27466                          || test ! -s conftest.err'
27467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468   (eval $ac_try) 2>&5
27469   ac_status=$?
27470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); }; } &&
27472          { ac_try='test -s conftest$ac_exeext'
27473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474   (eval $ac_try) 2>&5
27475   ac_status=$?
27476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); }; }; then
27478   eval "$as_ac_var=yes"
27479 else
27480   echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27482
27483 eval "$as_ac_var=no"
27484 fi
27485 rm -f conftest.err conftest.$ac_objext \
27486       conftest$ac_exeext conftest.$ac_ext
27487 fi
27488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27490 if test `eval echo '${'$as_ac_var'}'` = yes; then
27491   cat >>confdefs.h <<_ACEOF
27492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27493 _ACEOF
27494
27495 fi
27496 done
27497
27498
27499
27500
27501 for ac_func in strtoll strtoq sysconf
27502 do
27503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27504 echo "$as_me:$LINENO: checking for $ac_func" >&5
27505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27506 if eval "test \"\${$as_ac_var+set}\" = set"; then
27507   echo $ECHO_N "(cached) $ECHO_C" >&6
27508 else
27509   cat >conftest.$ac_ext <<_ACEOF
27510 /* confdefs.h.  */
27511 _ACEOF
27512 cat confdefs.h >>conftest.$ac_ext
27513 cat >>conftest.$ac_ext <<_ACEOF
27514 /* end confdefs.h.  */
27515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27517 #define $ac_func innocuous_$ac_func
27518
27519 /* System header to define __stub macros and hopefully few prototypes,
27520     which can conflict with char $ac_func (); below.
27521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27522     <limits.h> exists even on freestanding compilers.  */
27523
27524 #ifdef __STDC__
27525 # include <limits.h>
27526 #else
27527 # include <assert.h>
27528 #endif
27529
27530 #undef $ac_func
27531
27532 /* Override any gcc2 internal prototype to avoid an error.  */
27533 #ifdef __cplusplus
27534 extern "C"
27535 {
27536 #endif
27537 /* We use char because int might match the return type of a gcc2
27538    builtin and then its argument prototype would still apply.  */
27539 char $ac_func ();
27540 /* The GNU C library defines this for functions which it implements
27541     to always fail with ENOSYS.  Some functions are actually named
27542     something starting with __ and the normal name is an alias.  */
27543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27544 choke me
27545 #else
27546 char (*f) () = $ac_func;
27547 #endif
27548 #ifdef __cplusplus
27549 }
27550 #endif
27551
27552 int
27553 main ()
27554 {
27555 return f != $ac_func;
27556   ;
27557   return 0;
27558 }
27559 _ACEOF
27560 rm -f conftest.$ac_objext conftest$ac_exeext
27561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27562   (eval $ac_link) 2>conftest.er1
27563   ac_status=$?
27564   grep -v '^ *+' conftest.er1 >conftest.err
27565   rm -f conftest.er1
27566   cat conftest.err >&5
27567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568   (exit $ac_status); } &&
27569          { ac_try='test -z "$ac_c_werror_flag"
27570                          || test ! -s conftest.err'
27571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572   (eval $ac_try) 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; } &&
27576          { ac_try='test -s conftest$ac_exeext'
27577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578   (eval $ac_try) 2>&5
27579   ac_status=$?
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); }; }; then
27582   eval "$as_ac_var=yes"
27583 else
27584   echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27586
27587 eval "$as_ac_var=no"
27588 fi
27589 rm -f conftest.err conftest.$ac_objext \
27590       conftest$ac_exeext conftest.$ac_ext
27591 fi
27592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27594 if test `eval echo '${'$as_ac_var'}'` = yes; then
27595   cat >>confdefs.h <<_ACEOF
27596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27597 _ACEOF
27598
27599 fi
27600 done
27601
27602 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27603 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27604 if test "${llvm_cv_c_printf_a+set}" = set; then
27605   echo $ECHO_N "(cached) $ECHO_C" >&6
27606 else
27607   ac_ext=c
27608 ac_cpp='$CPP $CPPFLAGS'
27609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27612
27613  if test "$cross_compiling" = yes; then
27614   llvmac_cv_c_printf_a=no
27615 else
27616   cat >conftest.$ac_ext <<_ACEOF
27617
27618   /* confdefs.h.  */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h.  */
27623
27624 #include <stdio.h>
27625 #include <stdlib.h>
27626
27627 int
27628 main ()
27629 {
27630
27631 volatile double A, B;
27632 char Buffer[100];
27633 A = 1;
27634 A /= 10.0;
27635 sprintf(Buffer, "%a", A);
27636 B = atof(Buffer);
27637 if (A != B)
27638   return (1);
27639 if (A != 0x1.999999999999ap-4)
27640   return (1);
27641 return (0);
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest$ac_exeext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27648   (eval $ac_link) 2>&5
27649   ac_status=$?
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653   (eval $ac_try) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); }; }; then
27657   llvm_cv_c_printf_a=yes
27658 else
27659   echo "$as_me: program exited with status $ac_status" >&5
27660 echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27662
27663 ( exit $ac_status )
27664 llvmac_cv_c_printf_a=no
27665 fi
27666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27667 fi
27668  ac_ext=c
27669 ac_cpp='$CPP $CPPFLAGS'
27670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27673
27674 fi
27675 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27676 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27677  if test "$llvm_cv_c_printf_a" = "yes"; then
27678
27679 cat >>confdefs.h <<\_ACEOF
27680 #define HAVE_PRINTF_A 1
27681 _ACEOF
27682
27683  fi
27684
27685 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27686 # for constant arguments.  Useless!
27687 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27688 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27689 if test "${ac_cv_working_alloca_h+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698 #include <alloca.h>
27699 int
27700 main ()
27701 {
27702 char *p = (char *) alloca (2 * sizeof (int));
27703   ;
27704   return 0;
27705 }
27706 _ACEOF
27707 rm -f conftest.$ac_objext conftest$ac_exeext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709   (eval $ac_link) 2>conftest.er1
27710   ac_status=$?
27711   grep -v '^ *+' conftest.er1 >conftest.err
27712   rm -f conftest.er1
27713   cat conftest.err >&5
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); } &&
27716          { ac_try='test -z "$ac_c_werror_flag"
27717                          || test ! -s conftest.err'
27718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719   (eval $ac_try) 2>&5
27720   ac_status=$?
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); }; } &&
27723          { ac_try='test -s conftest$ac_exeext'
27724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725   (eval $ac_try) 2>&5
27726   ac_status=$?
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); }; }; then
27729   ac_cv_working_alloca_h=yes
27730 else
27731   echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27733
27734 ac_cv_working_alloca_h=no
27735 fi
27736 rm -f conftest.err conftest.$ac_objext \
27737       conftest$ac_exeext conftest.$ac_ext
27738 fi
27739 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27740 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27741 if test $ac_cv_working_alloca_h = yes; then
27742
27743 cat >>confdefs.h <<\_ACEOF
27744 #define HAVE_ALLOCA_H 1
27745 _ACEOF
27746
27747 fi
27748
27749 echo "$as_me:$LINENO: checking for alloca" >&5
27750 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27751 if test "${ac_cv_func_alloca_works+set}" = set; then
27752   echo $ECHO_N "(cached) $ECHO_C" >&6
27753 else
27754   cat >conftest.$ac_ext <<_ACEOF
27755 /* confdefs.h.  */
27756 _ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h.  */
27760 #ifdef __GNUC__
27761 # define alloca __builtin_alloca
27762 #else
27763 # ifdef _MSC_VER
27764 #  include <malloc.h>
27765 #  define alloca _alloca
27766 # else
27767 #  if HAVE_ALLOCA_H
27768 #   include <alloca.h>
27769 #  else
27770 #   ifdef _AIX
27771  #pragma alloca
27772 #   else
27773 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27774 char *alloca ();
27775 #    endif
27776 #   endif
27777 #  endif
27778 # endif
27779 #endif
27780
27781 int
27782 main ()
27783 {
27784 char *p = (char *) alloca (1);
27785   ;
27786   return 0;
27787 }
27788 _ACEOF
27789 rm -f conftest.$ac_objext conftest$ac_exeext
27790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27791   (eval $ac_link) 2>conftest.er1
27792   ac_status=$?
27793   grep -v '^ *+' conftest.er1 >conftest.err
27794   rm -f conftest.er1
27795   cat conftest.err >&5
27796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797   (exit $ac_status); } &&
27798          { ac_try='test -z "$ac_c_werror_flag"
27799                          || test ! -s conftest.err'
27800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801   (eval $ac_try) 2>&5
27802   ac_status=$?
27803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804   (exit $ac_status); }; } &&
27805          { ac_try='test -s conftest$ac_exeext'
27806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807   (eval $ac_try) 2>&5
27808   ac_status=$?
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); }; }; then
27811   ac_cv_func_alloca_works=yes
27812 else
27813   echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27815
27816 ac_cv_func_alloca_works=no
27817 fi
27818 rm -f conftest.err conftest.$ac_objext \
27819       conftest$ac_exeext conftest.$ac_ext
27820 fi
27821 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27822 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27823
27824 if test $ac_cv_func_alloca_works = yes; then
27825
27826 cat >>confdefs.h <<\_ACEOF
27827 #define HAVE_ALLOCA 1
27828 _ACEOF
27829
27830 else
27831   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27832 # that cause trouble.  Some versions do not even contain alloca or
27833 # contain a buggy version.  If you still want to use their alloca,
27834 # use ar to extract alloca.o from them instead of compiling alloca.c.
27835
27836 ALLOCA=alloca.$ac_objext
27837
27838 cat >>confdefs.h <<\_ACEOF
27839 #define C_ALLOCA 1
27840 _ACEOF
27841
27842
27843 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27844 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27845 if test "${ac_cv_os_cray+set}" = set; then
27846   echo $ECHO_N "(cached) $ECHO_C" >&6
27847 else
27848   cat >conftest.$ac_ext <<_ACEOF
27849 /* confdefs.h.  */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h.  */
27854 #if defined(CRAY) && ! defined(CRAY2)
27855 webecray
27856 #else
27857 wenotbecray
27858 #endif
27859
27860 _ACEOF
27861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27862   $EGREP "webecray" >/dev/null 2>&1; then
27863   ac_cv_os_cray=yes
27864 else
27865   ac_cv_os_cray=no
27866 fi
27867 rm -f conftest*
27868
27869 fi
27870 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27871 echo "${ECHO_T}$ac_cv_os_cray" >&6
27872 if test $ac_cv_os_cray = yes; then
27873   for ac_func in _getb67 GETB67 getb67; do
27874     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27875 echo "$as_me:$LINENO: checking for $ac_func" >&5
27876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27877 if eval "test \"\${$as_ac_var+set}\" = set"; then
27878   echo $ECHO_N "(cached) $ECHO_C" >&6
27879 else
27880   cat >conftest.$ac_ext <<_ACEOF
27881 /* confdefs.h.  */
27882 _ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h.  */
27886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27888 #define $ac_func innocuous_$ac_func
27889
27890 /* System header to define __stub macros and hopefully few prototypes,
27891     which can conflict with char $ac_func (); below.
27892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27893     <limits.h> exists even on freestanding compilers.  */
27894
27895 #ifdef __STDC__
27896 # include <limits.h>
27897 #else
27898 # include <assert.h>
27899 #endif
27900
27901 #undef $ac_func
27902
27903 /* Override any gcc2 internal prototype to avoid an error.  */
27904 #ifdef __cplusplus
27905 extern "C"
27906 {
27907 #endif
27908 /* We use char because int might match the return type of a gcc2
27909    builtin and then its argument prototype would still apply.  */
27910 char $ac_func ();
27911 /* The GNU C library defines this for functions which it implements
27912     to always fail with ENOSYS.  Some functions are actually named
27913     something starting with __ and the normal name is an alias.  */
27914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27915 choke me
27916 #else
27917 char (*f) () = $ac_func;
27918 #endif
27919 #ifdef __cplusplus
27920 }
27921 #endif
27922
27923 int
27924 main ()
27925 {
27926 return f != $ac_func;
27927   ;
27928   return 0;
27929 }
27930 _ACEOF
27931 rm -f conftest.$ac_objext conftest$ac_exeext
27932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27933   (eval $ac_link) 2>conftest.er1
27934   ac_status=$?
27935   grep -v '^ *+' conftest.er1 >conftest.err
27936   rm -f conftest.er1
27937   cat conftest.err >&5
27938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); } &&
27940          { ac_try='test -z "$ac_c_werror_flag"
27941                          || test ! -s conftest.err'
27942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943   (eval $ac_try) 2>&5
27944   ac_status=$?
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); }; } &&
27947          { ac_try='test -s conftest$ac_exeext'
27948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949   (eval $ac_try) 2>&5
27950   ac_status=$?
27951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952   (exit $ac_status); }; }; then
27953   eval "$as_ac_var=yes"
27954 else
27955   echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27957
27958 eval "$as_ac_var=no"
27959 fi
27960 rm -f conftest.err conftest.$ac_objext \
27961       conftest$ac_exeext conftest.$ac_ext
27962 fi
27963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27965 if test `eval echo '${'$as_ac_var'}'` = yes; then
27966
27967 cat >>confdefs.h <<_ACEOF
27968 #define CRAY_STACKSEG_END $ac_func
27969 _ACEOF
27970
27971     break
27972 fi
27973
27974   done
27975 fi
27976
27977 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27978 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27979 if test "${ac_cv_c_stack_direction+set}" = set; then
27980   echo $ECHO_N "(cached) $ECHO_C" >&6
27981 else
27982   if test "$cross_compiling" = yes; then
27983   ac_cv_c_stack_direction=0
27984 else
27985   cat >conftest.$ac_ext <<_ACEOF
27986 /* confdefs.h.  */
27987 _ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h.  */
27991 int
27992 find_stack_direction ()
27993 {
27994   static char *addr = 0;
27995   auto char dummy;
27996   if (addr == 0)
27997     {
27998       addr = &dummy;
27999       return find_stack_direction ();
28000     }
28001   else
28002     return (&dummy > addr) ? 1 : -1;
28003 }
28004
28005 int
28006 main ()
28007 {
28008   exit (find_stack_direction () < 0);
28009 }
28010 _ACEOF
28011 rm -f conftest$ac_exeext
28012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28013   (eval $ac_link) 2>&5
28014   ac_status=$?
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018   (eval $ac_try) 2>&5
28019   ac_status=$?
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); }; }; then
28022   ac_cv_c_stack_direction=1
28023 else
28024   echo "$as_me: program exited with status $ac_status" >&5
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28027
28028 ( exit $ac_status )
28029 ac_cv_c_stack_direction=-1
28030 fi
28031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28032 fi
28033 fi
28034 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28035 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28036
28037 cat >>confdefs.h <<_ACEOF
28038 #define STACK_DIRECTION $ac_cv_c_stack_direction
28039 _ACEOF
28040
28041
28042 fi
28043
28044
28045 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28046 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28047 if test "${ac_cv_func_rand48+set}" = set; then
28048   echo $ECHO_N "(cached) $ECHO_C" >&6
28049 else
28050   ac_ext=cc
28051 ac_cpp='$CXXCPP $CPPFLAGS'
28052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28055
28056    cat >conftest.$ac_ext <<_ACEOF
28057 /* confdefs.h.  */
28058 _ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h.  */
28062 #include <stdlib.h>
28063 int
28064 main ()
28065 {
28066 srand48(0);lrand48();drand48();
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 rm -f conftest.$ac_objext
28072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28073   (eval $ac_compile) 2>conftest.er1
28074   ac_status=$?
28075   grep -v '^ *+' conftest.er1 >conftest.err
28076   rm -f conftest.er1
28077   cat conftest.err >&5
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); } &&
28080          { ac_try='test -z "$ac_cxx_werror_flag"
28081                          || test ! -s conftest.err'
28082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083   (eval $ac_try) 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; } &&
28087          { ac_try='test -s conftest.$ac_objext'
28088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089   (eval $ac_try) 2>&5
28090   ac_status=$?
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); }; }; then
28093   ac_cv_func_rand48=yes
28094 else
28095   echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28097
28098 ac_cv_func_rand48=no
28099 fi
28100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28101   ac_ext=c
28102 ac_cpp='$CPP $CPPFLAGS'
28103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28106
28107 fi
28108 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28109 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28110
28111 if test "$ac_cv_func_rand48" = "yes" ; then
28112
28113 cat >>confdefs.h <<\_ACEOF
28114 #define HAVE_RAND48 1
28115 _ACEOF
28116
28117 fi
28118
28119
28120 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28121 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28122 if test "${ac_cv_cxx_namespaces+set}" = set; then
28123   echo $ECHO_N "(cached) $ECHO_C" >&6
28124 else
28125   ac_ext=cc
28126 ac_cpp='$CXXCPP $CPPFLAGS'
28127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28130
28131  cat >conftest.$ac_ext <<_ACEOF
28132 /* confdefs.h.  */
28133 _ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h.  */
28137 namespace Outer { namespace Inner { int i = 0; }}
28138 int
28139 main ()
28140 {
28141 using namespace Outer::Inner; return i;
28142   ;
28143   return 0;
28144 }
28145 _ACEOF
28146 rm -f conftest.$ac_objext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28148   (eval $ac_compile) 2>conftest.er1
28149   ac_status=$?
28150   grep -v '^ *+' conftest.er1 >conftest.err
28151   rm -f conftest.er1
28152   cat conftest.err >&5
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); } &&
28155          { ac_try='test -z "$ac_cxx_werror_flag"
28156                          || test ! -s conftest.err'
28157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158   (eval $ac_try) 2>&5
28159   ac_status=$?
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); }; } &&
28162          { ac_try='test -s conftest.$ac_objext'
28163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164   (eval $ac_try) 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; }; then
28168   ac_cv_cxx_namespaces=yes
28169 else
28170   echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28172
28173 ac_cv_cxx_namespaces=no
28174 fi
28175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28176  ac_ext=c
28177 ac_cpp='$CPP $CPPFLAGS'
28178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28181
28182
28183 fi
28184 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28185 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28186 if test "$ac_cv_cxx_namespaces" = yes; then
28187
28188 cat >>confdefs.h <<\_ACEOF
28189 #define HAVE_NAMESPACES
28190 _ACEOF
28191
28192 fi
28193
28194 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28195 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28196 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28197   echo $ECHO_N "(cached) $ECHO_C" >&6
28198 else
28199
28200   ac_ext=cc
28201 ac_cpp='$CXXCPP $CPPFLAGS'
28202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28205
28206   cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h.  */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h.  */
28212 #include <ext/hash_map>
28213 #ifdef HAVE_NAMESPACES
28214 using namespace std;
28215 #endif
28216 int
28217 main ()
28218 {
28219 hash_map<int, int> t;
28220   ;
28221   return 0;
28222 }
28223 _ACEOF
28224 rm -f conftest.$ac_objext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28226   (eval $ac_compile) 2>conftest.er1
28227   ac_status=$?
28228   grep -v '^ *+' conftest.er1 >conftest.err
28229   rm -f conftest.er1
28230   cat conftest.err >&5
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); } &&
28233          { ac_try='test -z "$ac_cxx_werror_flag"
28234                          || test ! -s conftest.err'
28235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236   (eval $ac_try) 2>&5
28237   ac_status=$?
28238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); }; } &&
28240          { ac_try='test -s conftest.$ac_objext'
28241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242   (eval $ac_try) 2>&5
28243   ac_status=$?
28244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); }; }; then
28246   ac_cv_cxx_have_std_ext_hash_map=yes
28247 else
28248   echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28250
28251 ac_cv_cxx_have_std_ext_hash_map=no
28252 fi
28253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28254   ac_ext=c
28255 ac_cpp='$CPP $CPPFLAGS'
28256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28259
28260 fi
28261 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28262 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28263  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28264  then
28265
28266 cat >>confdefs.h <<\_ACEOF
28267 #define HAVE_STD_EXT_HASH_MAP 1
28268 _ACEOF
28269
28270  else
28271
28272 cat >>confdefs.h <<\_ACEOF
28273 #define HAVE_STD_EXT_HASH_MAP 0
28274 _ACEOF
28275
28276  fi
28277
28278  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28279 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28280 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28281   echo $ECHO_N "(cached) $ECHO_C" >&6
28282 else
28283
28284   ac_ext=cc
28285 ac_cpp='$CXXCPP $CPPFLAGS'
28286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28289
28290   cat >conftest.$ac_ext <<_ACEOF
28291 /* confdefs.h.  */
28292 _ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h.  */
28296 #include <ext/hash_map>
28297 #ifdef HAVE_NAMESPACES
28298 using namespace __gnu_cxx;
28299 #endif
28300 int
28301 main ()
28302 {
28303 hash_map<int,int> t;
28304   ;
28305   return 0;
28306 }
28307 _ACEOF
28308 rm -f conftest.$ac_objext
28309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28310   (eval $ac_compile) 2>conftest.er1
28311   ac_status=$?
28312   grep -v '^ *+' conftest.er1 >conftest.err
28313   rm -f conftest.er1
28314   cat conftest.err >&5
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); } &&
28317          { ac_try='test -z "$ac_cxx_werror_flag"
28318                          || test ! -s conftest.err'
28319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320   (eval $ac_try) 2>&5
28321   ac_status=$?
28322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323   (exit $ac_status); }; } &&
28324          { ac_try='test -s conftest.$ac_objext'
28325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326   (eval $ac_try) 2>&5
28327   ac_status=$?
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); }; }; then
28330   ac_cv_cxx_have_gnu_ext_hash_map=yes
28331 else
28332   echo "$as_me: failed program was:" >&5
28333 sed 's/^/| /' conftest.$ac_ext >&5
28334
28335 ac_cv_cxx_have_gnu_ext_hash_map=no
28336 fi
28337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28338   ac_ext=c
28339 ac_cpp='$CPP $CPPFLAGS'
28340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28343
28344 fi
28345 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28346 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28347  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28348  then
28349
28350 cat >>confdefs.h <<\_ACEOF
28351 #define HAVE_GNU_EXT_HASH_MAP 1
28352 _ACEOF
28353
28354  else
28355
28356 cat >>confdefs.h <<\_ACEOF
28357 #define HAVE_GNU_EXT_HASH_MAP 0
28358 _ACEOF
28359
28360  fi
28361
28362  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28363 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28364 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28365   echo $ECHO_N "(cached) $ECHO_C" >&6
28366 else
28367
28368   ac_ext=cc
28369 ac_cpp='$CXXCPP $CPPFLAGS'
28370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28373
28374   cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380 #include <hash_map>
28381 int
28382 main ()
28383 {
28384 hash_map<int,int> t;
28385   ;
28386   return 0;
28387 }
28388 _ACEOF
28389 rm -f conftest.$ac_objext
28390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28391   (eval $ac_compile) 2>conftest.er1
28392   ac_status=$?
28393   grep -v '^ *+' conftest.er1 >conftest.err
28394   rm -f conftest.er1
28395   cat conftest.err >&5
28396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397   (exit $ac_status); } &&
28398          { ac_try='test -z "$ac_cxx_werror_flag"
28399                          || test ! -s conftest.err'
28400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401   (eval $ac_try) 2>&5
28402   ac_status=$?
28403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); }; } &&
28405          { ac_try='test -s conftest.$ac_objext'
28406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28407   (eval $ac_try) 2>&5
28408   ac_status=$?
28409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); }; }; then
28411   ac_cv_cxx_have_global_hash_map=yes
28412 else
28413   echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28415
28416 ac_cv_cxx_have_global_hash_map=no
28417 fi
28418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28419   ac_ext=c
28420 ac_cpp='$CPP $CPPFLAGS'
28421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28424
28425 fi
28426 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28427 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28428  if test "$ac_cv_cxx_have_global_hash_map" = yes
28429  then
28430
28431 cat >>confdefs.h <<\_ACEOF
28432 #define HAVE_GLOBAL_HASH_MAP 1
28433 _ACEOF
28434
28435  else
28436
28437 cat >>confdefs.h <<\_ACEOF
28438 #define HAVE_GLOBAL_HASH_MAP 0
28439 _ACEOF
28440
28441  fi
28442
28443 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28444 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28445 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28446   echo $ECHO_N "(cached) $ECHO_C" >&6
28447 else
28448
28449   ac_ext=cc
28450 ac_cpp='$CXXCPP $CPPFLAGS'
28451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28454
28455   cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h.  */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h.  */
28461 #include <ext/hash_set>
28462 #ifdef HAVE_NAMESPACES
28463 using namespace std;
28464 #endif
28465 int
28466 main ()
28467 {
28468 hash_set<int> t;
28469   ;
28470   return 0;
28471 }
28472 _ACEOF
28473 rm -f conftest.$ac_objext
28474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28475   (eval $ac_compile) 2>conftest.er1
28476   ac_status=$?
28477   grep -v '^ *+' conftest.er1 >conftest.err
28478   rm -f conftest.er1
28479   cat conftest.err >&5
28480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481   (exit $ac_status); } &&
28482          { ac_try='test -z "$ac_cxx_werror_flag"
28483                          || test ! -s conftest.err'
28484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485   (eval $ac_try) 2>&5
28486   ac_status=$?
28487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488   (exit $ac_status); }; } &&
28489          { ac_try='test -s conftest.$ac_objext'
28490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491   (eval $ac_try) 2>&5
28492   ac_status=$?
28493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494   (exit $ac_status); }; }; then
28495   ac_cv_cxx_have_std_ext_hash_set=yes
28496 else
28497   echo "$as_me: failed program was:" >&5
28498 sed 's/^/| /' conftest.$ac_ext >&5
28499
28500 ac_cv_cxx_have_std_ext_hash_set=no
28501 fi
28502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28503   ac_ext=c
28504 ac_cpp='$CPP $CPPFLAGS'
28505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28508
28509 fi
28510 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28511 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28512  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28513  then
28514
28515 cat >>confdefs.h <<\_ACEOF
28516 #define HAVE_STD_EXT_HASH_SET 1
28517 _ACEOF
28518
28519  else
28520
28521 cat >>confdefs.h <<\_ACEOF
28522 #define HAVE_STD_EXT_HASH_SET 0
28523 _ACEOF
28524
28525  fi
28526
28527  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28528 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28529 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28530   echo $ECHO_N "(cached) $ECHO_C" >&6
28531 else
28532
28533   ac_ext=cc
28534 ac_cpp='$CXXCPP $CPPFLAGS'
28535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28538
28539   cat >conftest.$ac_ext <<_ACEOF
28540 /* confdefs.h.  */
28541 _ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h.  */
28545 #include <ext/hash_set>
28546 #ifdef HAVE_NAMESPACES
28547 using namespace __gnu_cxx;
28548 #endif
28549 int
28550 main ()
28551 {
28552 hash_set<int> t;
28553   ;
28554   return 0;
28555 }
28556 _ACEOF
28557 rm -f conftest.$ac_objext
28558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28559   (eval $ac_compile) 2>conftest.er1
28560   ac_status=$?
28561   grep -v '^ *+' conftest.er1 >conftest.err
28562   rm -f conftest.er1
28563   cat conftest.err >&5
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } &&
28566          { ac_try='test -z "$ac_cxx_werror_flag"
28567                          || test ! -s conftest.err'
28568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569   (eval $ac_try) 2>&5
28570   ac_status=$?
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); }; } &&
28573          { ac_try='test -s conftest.$ac_objext'
28574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575   (eval $ac_try) 2>&5
28576   ac_status=$?
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); }; }; then
28579   ac_cv_cxx_have_gnu_ext_hash_set=yes
28580 else
28581   echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28583
28584 ac_cv_cxx_have_gnu_ext_hash_set=no
28585 fi
28586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28587   ac_ext=c
28588 ac_cpp='$CPP $CPPFLAGS'
28589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28592
28593 fi
28594 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28595 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28596  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28597  then
28598
28599 cat >>confdefs.h <<\_ACEOF
28600 #define HAVE_GNU_EXT_HASH_SET 1
28601 _ACEOF
28602
28603  else
28604
28605 cat >>confdefs.h <<\_ACEOF
28606 #define HAVE_GNU_EXT_HASH_SET 0
28607 _ACEOF
28608
28609  fi
28610
28611  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28612 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28613 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28614   echo $ECHO_N "(cached) $ECHO_C" >&6
28615 else
28616
28617   ac_ext=cc
28618 ac_cpp='$CXXCPP $CPPFLAGS'
28619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28622
28623   cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h.  */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h.  */
28629 #include <hash_set>
28630 int
28631 main ()
28632 {
28633 hash_set<int> t; return 0;
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest.$ac_objext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28640   (eval $ac_compile) 2>conftest.er1
28641   ac_status=$?
28642   grep -v '^ *+' conftest.er1 >conftest.err
28643   rm -f conftest.er1
28644   cat conftest.err >&5
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); } &&
28647          { ac_try='test -z "$ac_cxx_werror_flag"
28648                          || test ! -s conftest.err'
28649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650   (eval $ac_try) 2>&5
28651   ac_status=$?
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); }; } &&
28654          { ac_try='test -s conftest.$ac_objext'
28655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656   (eval $ac_try) 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; }; then
28660   ac_cv_cxx_have_global_hash_set=yes
28661 else
28662   echo "$as_me: failed program was:" >&5
28663 sed 's/^/| /' conftest.$ac_ext >&5
28664
28665 ac_cv_cxx_have_global_hash_set=no
28666 fi
28667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28668   ac_ext=c
28669 ac_cpp='$CPP $CPPFLAGS'
28670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28673
28674 fi
28675 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28676 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28677  if test "$ac_cv_cxx_have_global_hash_set" = yes
28678  then
28679
28680 cat >>confdefs.h <<\_ACEOF
28681 #define HAVE_GLOBAL_HASH_SET 1
28682 _ACEOF
28683
28684  else
28685
28686 cat >>confdefs.h <<\_ACEOF
28687 #define HAVE_GLOBAL_HASH_SET 0
28688 _ACEOF
28689
28690  fi
28691
28692 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28693 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28694 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28695   echo $ECHO_N "(cached) $ECHO_C" >&6
28696 else
28697
28698   ac_ext=cc
28699 ac_cpp='$CXXCPP $CPPFLAGS'
28700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28703
28704   cat >conftest.$ac_ext <<_ACEOF
28705 /* confdefs.h.  */
28706 _ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h.  */
28710 #include <iterator>
28711 #ifdef HAVE_NAMESPACES
28712 using namespace std;
28713 #endif
28714 int
28715 main ()
28716 {
28717 iterator<int,int,int> t; return 0;
28718   ;
28719   return 0;
28720 }
28721 _ACEOF
28722 rm -f conftest.$ac_objext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28724   (eval $ac_compile) 2>conftest.er1
28725   ac_status=$?
28726   grep -v '^ *+' conftest.er1 >conftest.err
28727   rm -f conftest.er1
28728   cat conftest.err >&5
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); } &&
28731          { ac_try='test -z "$ac_cxx_werror_flag"
28732                          || test ! -s conftest.err'
28733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734   (eval $ac_try) 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; } &&
28738          { ac_try='test -s conftest.$ac_objext'
28739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740   (eval $ac_try) 2>&5
28741   ac_status=$?
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); }; }; then
28744   ac_cv_cxx_have_std_iterator=yes
28745 else
28746   echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28748
28749 ac_cv_cxx_have_std_iterator=no
28750 fi
28751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28752   ac_ext=c
28753 ac_cpp='$CPP $CPPFLAGS'
28754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28757
28758
28759 fi
28760 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28761 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28762 if test "$ac_cv_cxx_have_std_iterator" = yes
28763 then
28764
28765 cat >>confdefs.h <<\_ACEOF
28766 #define HAVE_STD_ITERATOR 1
28767 _ACEOF
28768
28769 else
28770
28771 cat >>confdefs.h <<\_ACEOF
28772 #define HAVE_STD_ITERATOR 0
28773 _ACEOF
28774
28775 fi
28776
28777 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28778 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28779 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 else
28782
28783   ac_ext=cc
28784 ac_cpp='$CXXCPP $CPPFLAGS'
28785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28788
28789   cat >conftest.$ac_ext <<_ACEOF
28790 /* confdefs.h.  */
28791 _ACEOF
28792 cat confdefs.h >>conftest.$ac_ext
28793 cat >>conftest.$ac_ext <<_ACEOF
28794 /* end confdefs.h.  */
28795 #include <iterator>
28796 #ifdef HAVE_NAMESPACES
28797 using namespace std;
28798 #endif
28799 int
28800 main ()
28801 {
28802 bidirectional_iterator<int,int> t; return 0;
28803   ;
28804   return 0;
28805 }
28806 _ACEOF
28807 rm -f conftest.$ac_objext
28808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28809   (eval $ac_compile) 2>conftest.er1
28810   ac_status=$?
28811   grep -v '^ *+' conftest.er1 >conftest.err
28812   rm -f conftest.er1
28813   cat conftest.err >&5
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); } &&
28816          { ac_try='test -z "$ac_cxx_werror_flag"
28817                          || test ! -s conftest.err'
28818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28819   (eval $ac_try) 2>&5
28820   ac_status=$?
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); }; } &&
28823          { ac_try='test -s conftest.$ac_objext'
28824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825   (eval $ac_try) 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); }; }; then
28829   ac_cv_cxx_have_bi_iterator=yes
28830 else
28831   echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28833
28834 ac_cv_cxx_have_bi_iterator=no
28835 fi
28836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28837   ac_ext=c
28838 ac_cpp='$CPP $CPPFLAGS'
28839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28842
28843
28844 fi
28845 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28846 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28847 if test "$ac_cv_cxx_have_bi_iterator" = yes
28848 then
28849
28850 cat >>confdefs.h <<\_ACEOF
28851 #define HAVE_BI_ITERATOR 1
28852 _ACEOF
28853
28854 else
28855
28856 cat >>confdefs.h <<\_ACEOF
28857 #define HAVE_BI_ITERATOR 0
28858 _ACEOF
28859
28860 fi
28861
28862 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28863 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28864 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28865   echo $ECHO_N "(cached) $ECHO_C" >&6
28866 else
28867
28868   ac_ext=cc
28869 ac_cpp='$CXXCPP $CPPFLAGS'
28870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28873
28874   cat >conftest.$ac_ext <<_ACEOF
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880 #include <iterator>
28881 #ifdef HAVE_NAMESPACES
28882 using namespace std;
28883 #endif
28884 int
28885 main ()
28886 {
28887 forward_iterator<int,int> t; return 0;
28888   ;
28889   return 0;
28890 }
28891 _ACEOF
28892 rm -f conftest.$ac_objext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28894   (eval $ac_compile) 2>conftest.er1
28895   ac_status=$?
28896   grep -v '^ *+' conftest.er1 >conftest.err
28897   rm -f conftest.er1
28898   cat conftest.err >&5
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); } &&
28901          { ac_try='test -z "$ac_cxx_werror_flag"
28902                          || test ! -s conftest.err'
28903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904   (eval $ac_try) 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); }; } &&
28908          { ac_try='test -s conftest.$ac_objext'
28909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910   (eval $ac_try) 2>&5
28911   ac_status=$?
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); }; }; then
28914   ac_cv_cxx_have_fwd_iterator=yes
28915 else
28916   echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 ac_cv_cxx_have_fwd_iterator=no
28920 fi
28921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28922   ac_ext=c
28923 ac_cpp='$CPP $CPPFLAGS'
28924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28927
28928
28929 fi
28930 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28931 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28932 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28933 then
28934
28935 cat >>confdefs.h <<\_ACEOF
28936 #define HAVE_FWD_ITERATOR 1
28937 _ACEOF
28938
28939 else
28940
28941 cat >>confdefs.h <<\_ACEOF
28942 #define HAVE_FWD_ITERATOR 0
28943 _ACEOF
28944
28945 fi
28946
28947
28948 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28949 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28950 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28951   echo $ECHO_N "(cached) $ECHO_C" >&6
28952 else
28953   ac_ext=cc
28954 ac_cpp='$CXXCPP $CPPFLAGS'
28955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28958
28959    cat >conftest.$ac_ext <<_ACEOF
28960 /* confdefs.h.  */
28961 _ACEOF
28962 cat confdefs.h >>conftest.$ac_ext
28963 cat >>conftest.$ac_ext <<_ACEOF
28964 /* end confdefs.h.  */
28965 #include <math.h>
28966 int
28967 main ()
28968 {
28969 float f; isnan(f);
28970   ;
28971   return 0;
28972 }
28973 _ACEOF
28974 rm -f conftest.$ac_objext
28975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28976   (eval $ac_compile) 2>conftest.er1
28977   ac_status=$?
28978   grep -v '^ *+' conftest.er1 >conftest.err
28979   rm -f conftest.er1
28980   cat conftest.err >&5
28981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982   (exit $ac_status); } &&
28983          { ac_try='test -z "$ac_cxx_werror_flag"
28984                          || test ! -s conftest.err'
28985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28986   (eval $ac_try) 2>&5
28987   ac_status=$?
28988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989   (exit $ac_status); }; } &&
28990          { ac_try='test -s conftest.$ac_objext'
28991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28992   (eval $ac_try) 2>&5
28993   ac_status=$?
28994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995   (exit $ac_status); }; }; then
28996   ac_cv_func_isnan_in_math_h=yes
28997 else
28998   echo "$as_me: failed program was:" >&5
28999 sed 's/^/| /' conftest.$ac_ext >&5
29000
29001 ac_cv_func_isnan_in_math_h=no
29002 fi
29003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29004   ac_ext=c
29005 ac_cpp='$CPP $CPPFLAGS'
29006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29009
29010 fi
29011 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29012 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29013
29014
29015 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29016
29017 cat >>confdefs.h <<\_ACEOF
29018 #define HAVE_ISNAN_IN_MATH_H 1
29019 _ACEOF
29020
29021 fi
29022
29023 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29024 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29025 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29026   echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028   ac_ext=cc
29029 ac_cpp='$CXXCPP $CPPFLAGS'
29030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29033
29034    cat >conftest.$ac_ext <<_ACEOF
29035 /* confdefs.h.  */
29036 _ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h.  */
29040 #include <cmath>
29041 int
29042 main ()
29043 {
29044 float f; isnan(f);
29045   ;
29046   return 0;
29047 }
29048 _ACEOF
29049 rm -f conftest.$ac_objext
29050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29051   (eval $ac_compile) 2>conftest.er1
29052   ac_status=$?
29053   grep -v '^ *+' conftest.er1 >conftest.err
29054   rm -f conftest.er1
29055   cat conftest.err >&5
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); } &&
29058          { ac_try='test -z "$ac_cxx_werror_flag"
29059                          || test ! -s conftest.err'
29060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061   (eval $ac_try) 2>&5
29062   ac_status=$?
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); }; } &&
29065          { ac_try='test -s conftest.$ac_objext'
29066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067   (eval $ac_try) 2>&5
29068   ac_status=$?
29069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070   (exit $ac_status); }; }; then
29071   ac_cv_func_isnan_in_cmath=yes
29072 else
29073   echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076 ac_cv_func_isnan_in_cmath=no
29077 fi
29078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29079   ac_ext=c
29080 ac_cpp='$CPP $CPPFLAGS'
29081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29084
29085 fi
29086 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29087 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29088
29089 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29090
29091 cat >>confdefs.h <<\_ACEOF
29092 #define HAVE_ISNAN_IN_CMATH 1
29093 _ACEOF
29094
29095 fi
29096
29097 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29098 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29099 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29100   echo $ECHO_N "(cached) $ECHO_C" >&6
29101 else
29102   ac_ext=cc
29103 ac_cpp='$CXXCPP $CPPFLAGS'
29104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29107
29108    cat >conftest.$ac_ext <<_ACEOF
29109 /* confdefs.h.  */
29110 _ACEOF
29111 cat confdefs.h >>conftest.$ac_ext
29112 cat >>conftest.$ac_ext <<_ACEOF
29113 /* end confdefs.h.  */
29114 #include <cmath>
29115 int
29116 main ()
29117 {
29118 float f; std::isnan(f);
29119   ;
29120   return 0;
29121 }
29122 _ACEOF
29123 rm -f conftest.$ac_objext
29124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29125   (eval $ac_compile) 2>conftest.er1
29126   ac_status=$?
29127   grep -v '^ *+' conftest.er1 >conftest.err
29128   rm -f conftest.er1
29129   cat conftest.err >&5
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); } &&
29132          { ac_try='test -z "$ac_cxx_werror_flag"
29133                          || test ! -s conftest.err'
29134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135   (eval $ac_try) 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; } &&
29139          { ac_try='test -s conftest.$ac_objext'
29140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141   (eval $ac_try) 2>&5
29142   ac_status=$?
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); }; }; then
29145   ac_cv_func_std_isnan_in_cmath=yes
29146 else
29147   echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29149
29150 ac_cv_func_std_isnan_in_cmath=no
29151 fi
29152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29153   ac_ext=c
29154 ac_cpp='$CPP $CPPFLAGS'
29155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29158
29159 fi
29160 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29161 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29162
29163 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29164
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_STD_ISNAN_IN_CMATH 1
29167 _ACEOF
29168
29169 fi
29170
29171
29172 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29173 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29174 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29175   echo $ECHO_N "(cached) $ECHO_C" >&6
29176 else
29177   ac_ext=cc
29178 ac_cpp='$CXXCPP $CPPFLAGS'
29179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29182
29183    cat >conftest.$ac_ext <<_ACEOF
29184 /* confdefs.h.  */
29185 _ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h.  */
29189 #include <math.h>
29190 int
29191 main ()
29192 {
29193 float f; isinf(f);
29194   ;
29195   return 0;
29196 }
29197 _ACEOF
29198 rm -f conftest.$ac_objext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29200   (eval $ac_compile) 2>conftest.er1
29201   ac_status=$?
29202   grep -v '^ *+' conftest.er1 >conftest.err
29203   rm -f conftest.er1
29204   cat conftest.err >&5
29205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206   (exit $ac_status); } &&
29207          { ac_try='test -z "$ac_cxx_werror_flag"
29208                          || test ! -s conftest.err'
29209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210   (eval $ac_try) 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); }; } &&
29214          { ac_try='test -s conftest.$ac_objext'
29215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216   (eval $ac_try) 2>&5
29217   ac_status=$?
29218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); }; }; then
29220   ac_cv_func_isinf_in_math_h=yes
29221 else
29222   echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29224
29225 ac_cv_func_isinf_in_math_h=no
29226 fi
29227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29228   ac_ext=c
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29233
29234 fi
29235 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29236 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29237
29238 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29239
29240 cat >>confdefs.h <<\_ACEOF
29241 #define HAVE_ISINF_IN_MATH_H 1
29242 _ACEOF
29243
29244 fi
29245
29246 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29247 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29248 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29249   echo $ECHO_N "(cached) $ECHO_C" >&6
29250 else
29251   ac_ext=cc
29252 ac_cpp='$CXXCPP $CPPFLAGS'
29253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29256
29257    cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h.  */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h.  */
29263 #include <cmath>
29264 int
29265 main ()
29266 {
29267 float f; isinf(f);
29268   ;
29269   return 0;
29270 }
29271 _ACEOF
29272 rm -f conftest.$ac_objext
29273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29274   (eval $ac_compile) 2>conftest.er1
29275   ac_status=$?
29276   grep -v '^ *+' conftest.er1 >conftest.err
29277   rm -f conftest.er1
29278   cat conftest.err >&5
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); } &&
29281          { ac_try='test -z "$ac_cxx_werror_flag"
29282                          || test ! -s conftest.err'
29283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284   (eval $ac_try) 2>&5
29285   ac_status=$?
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); }; } &&
29288          { ac_try='test -s conftest.$ac_objext'
29289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290   (eval $ac_try) 2>&5
29291   ac_status=$?
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); }; }; then
29294   ac_cv_func_isinf_in_cmath=yes
29295 else
29296   echo "$as_me: failed program was:" >&5
29297 sed 's/^/| /' conftest.$ac_ext >&5
29298
29299 ac_cv_func_isinf_in_cmath=no
29300 fi
29301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29302   ac_ext=c
29303 ac_cpp='$CPP $CPPFLAGS'
29304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29307
29308 fi
29309 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29310 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29311
29312 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29313
29314 cat >>confdefs.h <<\_ACEOF
29315 #define HAVE_ISINF_IN_CMATH 1
29316 _ACEOF
29317
29318 fi
29319
29320 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29321 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29322 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29323   echo $ECHO_N "(cached) $ECHO_C" >&6
29324 else
29325   ac_ext=cc
29326 ac_cpp='$CXXCPP $CPPFLAGS'
29327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29330
29331    cat >conftest.$ac_ext <<_ACEOF
29332 /* confdefs.h.  */
29333 _ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h.  */
29337 #include <cmath>
29338 int
29339 main ()
29340 {
29341 float f; std::isinf(f)}
29342   ;
29343   return 0;
29344 }
29345 _ACEOF
29346 rm -f conftest.$ac_objext
29347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29348   (eval $ac_compile) 2>conftest.er1
29349   ac_status=$?
29350   grep -v '^ *+' conftest.er1 >conftest.err
29351   rm -f conftest.er1
29352   cat conftest.err >&5
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); } &&
29355          { ac_try='test -z "$ac_cxx_werror_flag"
29356                          || test ! -s conftest.err'
29357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358   (eval $ac_try) 2>&5
29359   ac_status=$?
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); }; } &&
29362          { ac_try='test -s conftest.$ac_objext'
29363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364   (eval $ac_try) 2>&5
29365   ac_status=$?
29366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367   (exit $ac_status); }; }; then
29368   ac_cv_func_std_isinf_in_cmath=yes
29369 else
29370   echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29372
29373 ac_cv_func_std_isinf_in_cmath=no
29374 fi
29375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29376   ac_ext=c
29377 ac_cpp='$CPP $CPPFLAGS'
29378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29381
29382 fi
29383 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29384 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29385
29386 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29387
29388 cat >>confdefs.h <<\_ACEOF
29389 #define HAVE_STD_ISINF_IN_CMATH 1
29390 _ACEOF
29391
29392 fi
29393
29394 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29395 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29396 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29397   echo $ECHO_N "(cached) $ECHO_C" >&6
29398 else
29399   ac_ext=cc
29400 ac_cpp='$CXXCPP $CPPFLAGS'
29401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29404
29405    cat >conftest.$ac_ext <<_ACEOF
29406 /* confdefs.h.  */
29407 _ACEOF
29408 cat confdefs.h >>conftest.$ac_ext
29409 cat >>conftest.$ac_ext <<_ACEOF
29410 /* end confdefs.h.  */
29411 #include <ieeefp.h>
29412 int
29413 main ()
29414 {
29415 float f; finite(f);
29416   ;
29417   return 0;
29418 }
29419 _ACEOF
29420 rm -f conftest.$ac_objext
29421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29422   (eval $ac_compile) 2>conftest.er1
29423   ac_status=$?
29424   grep -v '^ *+' conftest.er1 >conftest.err
29425   rm -f conftest.er1
29426   cat conftest.err >&5
29427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428   (exit $ac_status); } &&
29429          { ac_try='test -z "$ac_cxx_werror_flag"
29430                          || test ! -s conftest.err'
29431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432   (eval $ac_try) 2>&5
29433   ac_status=$?
29434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435   (exit $ac_status); }; } &&
29436          { ac_try='test -s conftest.$ac_objext'
29437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438   (eval $ac_try) 2>&5
29439   ac_status=$?
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); }; }; then
29442   ac_cv_func_finite_in_ieeefp_h=yes
29443 else
29444   echo "$as_me: failed program was:" >&5
29445 sed 's/^/| /' conftest.$ac_ext >&5
29446
29447 ac_cv_func_finite_in_ieeefp_h=no
29448 fi
29449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29450   ac_ext=c
29451 ac_cpp='$CPP $CPPFLAGS'
29452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29455
29456 fi
29457 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29458 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29459
29460 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29461
29462 cat >>confdefs.h <<\_ACEOF
29463 #define HAVE_FINITE_IN_IEEEFP_H 1
29464 _ACEOF
29465
29466 fi
29467
29468
29469
29470
29471
29472 for ac_header in stdlib.h unistd.h
29473 do
29474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29476   echo "$as_me:$LINENO: checking for $ac_header" >&5
29477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29479   echo $ECHO_N "(cached) $ECHO_C" >&6
29480 fi
29481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29483 else
29484   # Is the header compilable?
29485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29487 cat >conftest.$ac_ext <<_ACEOF
29488 /* confdefs.h.  */
29489 _ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h.  */
29493 $ac_includes_default
29494 #include <$ac_header>
29495 _ACEOF
29496 rm -f conftest.$ac_objext
29497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29498   (eval $ac_compile) 2>conftest.er1
29499   ac_status=$?
29500   grep -v '^ *+' conftest.er1 >conftest.err
29501   rm -f conftest.er1
29502   cat conftest.err >&5
29503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504   (exit $ac_status); } &&
29505          { ac_try='test -z "$ac_c_werror_flag"
29506                          || test ! -s conftest.err'
29507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508   (eval $ac_try) 2>&5
29509   ac_status=$?
29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); }; } &&
29512          { ac_try='test -s conftest.$ac_objext'
29513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514   (eval $ac_try) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; }; then
29518   ac_header_compiler=yes
29519 else
29520   echo "$as_me: failed program was:" >&5
29521 sed 's/^/| /' conftest.$ac_ext >&5
29522
29523 ac_header_compiler=no
29524 fi
29525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29527 echo "${ECHO_T}$ac_header_compiler" >&6
29528
29529 # Is the header present?
29530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29532 cat >conftest.$ac_ext <<_ACEOF
29533 /* confdefs.h.  */
29534 _ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h.  */
29538 #include <$ac_header>
29539 _ACEOF
29540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29542   ac_status=$?
29543   grep -v '^ *+' conftest.er1 >conftest.err
29544   rm -f conftest.er1
29545   cat conftest.err >&5
29546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547   (exit $ac_status); } >/dev/null; then
29548   if test -s conftest.err; then
29549     ac_cpp_err=$ac_c_preproc_warn_flag
29550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29551   else
29552     ac_cpp_err=
29553   fi
29554 else
29555   ac_cpp_err=yes
29556 fi
29557 if test -z "$ac_cpp_err"; then
29558   ac_header_preproc=yes
29559 else
29560   echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29562
29563   ac_header_preproc=no
29564 fi
29565 rm -f conftest.err conftest.$ac_ext
29566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29567 echo "${ECHO_T}$ac_header_preproc" >&6
29568
29569 # So?  What about this header?
29570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29571   yes:no: )
29572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29576     ac_header_preproc=yes
29577     ;;
29578   no:yes:* )
29579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29591     (
29592       cat <<\_ASBOX
29593 ## ----------------------------------- ##
29594 ## Report this to llvmbugs@cs.uiuc.edu ##
29595 ## ----------------------------------- ##
29596 _ASBOX
29597     ) |
29598       sed "s/^/$as_me: WARNING:     /" >&2
29599     ;;
29600 esac
29601 echo "$as_me:$LINENO: checking for $ac_header" >&5
29602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29604   echo $ECHO_N "(cached) $ECHO_C" >&6
29605 else
29606   eval "$as_ac_Header=\$ac_header_preproc"
29607 fi
29608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29610
29611 fi
29612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29613   cat >>confdefs.h <<_ACEOF
29614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29615 _ACEOF
29616
29617 fi
29618
29619 done
29620
29621
29622 for ac_func in getpagesize
29623 do
29624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29625 echo "$as_me:$LINENO: checking for $ac_func" >&5
29626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29627 if eval "test \"\${$as_ac_var+set}\" = set"; then
29628   echo $ECHO_N "(cached) $ECHO_C" >&6
29629 else
29630   cat >conftest.$ac_ext <<_ACEOF
29631 /* confdefs.h.  */
29632 _ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h.  */
29636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29638 #define $ac_func innocuous_$ac_func
29639
29640 /* System header to define __stub macros and hopefully few prototypes,
29641     which can conflict with char $ac_func (); below.
29642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29643     <limits.h> exists even on freestanding compilers.  */
29644
29645 #ifdef __STDC__
29646 # include <limits.h>
29647 #else
29648 # include <assert.h>
29649 #endif
29650
29651 #undef $ac_func
29652
29653 /* Override any gcc2 internal prototype to avoid an error.  */
29654 #ifdef __cplusplus
29655 extern "C"
29656 {
29657 #endif
29658 /* We use char because int might match the return type of a gcc2
29659    builtin and then its argument prototype would still apply.  */
29660 char $ac_func ();
29661 /* The GNU C library defines this for functions which it implements
29662     to always fail with ENOSYS.  Some functions are actually named
29663     something starting with __ and the normal name is an alias.  */
29664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29665 choke me
29666 #else
29667 char (*f) () = $ac_func;
29668 #endif
29669 #ifdef __cplusplus
29670 }
29671 #endif
29672
29673 int
29674 main ()
29675 {
29676 return f != $ac_func;
29677   ;
29678   return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29683   (eval $ac_link) 2>conftest.er1
29684   ac_status=$?
29685   grep -v '^ *+' conftest.er1 >conftest.err
29686   rm -f conftest.er1
29687   cat conftest.err >&5
29688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689   (exit $ac_status); } &&
29690          { ac_try='test -z "$ac_c_werror_flag"
29691                          || test ! -s conftest.err'
29692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693   (eval $ac_try) 2>&5
29694   ac_status=$?
29695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); }; } &&
29697          { ac_try='test -s conftest$ac_exeext'
29698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29699   (eval $ac_try) 2>&5
29700   ac_status=$?
29701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702   (exit $ac_status); }; }; then
29703   eval "$as_ac_var=yes"
29704 else
29705   echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29707
29708 eval "$as_ac_var=no"
29709 fi
29710 rm -f conftest.err conftest.$ac_objext \
29711       conftest$ac_exeext conftest.$ac_ext
29712 fi
29713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29715 if test `eval echo '${'$as_ac_var'}'` = yes; then
29716   cat >>confdefs.h <<_ACEOF
29717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29718 _ACEOF
29719
29720 fi
29721 done
29722
29723 echo "$as_me:$LINENO: checking for working mmap" >&5
29724 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29725 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29726   echo $ECHO_N "(cached) $ECHO_C" >&6
29727 else
29728   if test "$cross_compiling" = yes; then
29729   ac_cv_func_mmap_fixed_mapped=no
29730 else
29731   cat >conftest.$ac_ext <<_ACEOF
29732 /* confdefs.h.  */
29733 _ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h.  */
29737 $ac_includes_default
29738 /* malloc might have been renamed as rpl_malloc. */
29739 #undef malloc
29740
29741 /* Thanks to Mike Haertel and Jim Avera for this test.
29742    Here is a matrix of mmap possibilities:
29743         mmap private not fixed
29744         mmap private fixed at somewhere currently unmapped
29745         mmap private fixed at somewhere already mapped
29746         mmap shared not fixed
29747         mmap shared fixed at somewhere currently unmapped
29748         mmap shared fixed at somewhere already mapped
29749    For private mappings, we should verify that changes cannot be read()
29750    back from the file, nor mmap's back from the file at a different
29751    address.  (There have been systems where private was not correctly
29752    implemented like the infamous i386 svr4.0, and systems where the
29753    VM page cache was not coherent with the file system buffer cache
29754    like early versions of FreeBSD and possibly contemporary NetBSD.)
29755    For shared mappings, we should conversely verify that changes get
29756    propagated back to all the places they're supposed to be.
29757
29758    Grep wants private fixed already mapped.
29759    The main things grep needs to know about mmap are:
29760    * does it exist and is it safe to write into the mmap'd area
29761    * how to use it (BSD variants)  */
29762
29763 #include <fcntl.h>
29764 #include <sys/mman.h>
29765
29766 #if !STDC_HEADERS && !HAVE_STDLIB_H
29767 char *malloc ();
29768 #endif
29769
29770 /* This mess was copied from the GNU getpagesize.h.  */
29771 #if !HAVE_GETPAGESIZE
29772 /* Assume that all systems that can run configure have sys/param.h.  */
29773 # if !HAVE_SYS_PARAM_H
29774 #  define HAVE_SYS_PARAM_H 1
29775 # endif
29776
29777 # ifdef _SC_PAGESIZE
29778 #  define getpagesize() sysconf(_SC_PAGESIZE)
29779 # else /* no _SC_PAGESIZE */
29780 #  if HAVE_SYS_PARAM_H
29781 #   include <sys/param.h>
29782 #   ifdef EXEC_PAGESIZE
29783 #    define getpagesize() EXEC_PAGESIZE
29784 #   else /* no EXEC_PAGESIZE */
29785 #    ifdef NBPG
29786 #     define getpagesize() NBPG * CLSIZE
29787 #     ifndef CLSIZE
29788 #      define CLSIZE 1
29789 #     endif /* no CLSIZE */
29790 #    else /* no NBPG */
29791 #     ifdef NBPC
29792 #      define getpagesize() NBPC
29793 #     else /* no NBPC */
29794 #      ifdef PAGESIZE
29795 #       define getpagesize() PAGESIZE
29796 #      endif /* PAGESIZE */
29797 #     endif /* no NBPC */
29798 #    endif /* no NBPG */
29799 #   endif /* no EXEC_PAGESIZE */
29800 #  else /* no HAVE_SYS_PARAM_H */
29801 #   define getpagesize() 8192   /* punt totally */
29802 #  endif /* no HAVE_SYS_PARAM_H */
29803 # endif /* no _SC_PAGESIZE */
29804
29805 #endif /* no HAVE_GETPAGESIZE */
29806
29807 int
29808 main ()
29809 {
29810   char *data, *data2, *data3;
29811   int i, pagesize;
29812   int fd;
29813
29814   pagesize = getpagesize ();
29815
29816   /* First, make a file with some known garbage in it. */
29817   data = (char *) malloc (pagesize);
29818   if (!data)
29819     exit (1);
29820   for (i = 0; i < pagesize; ++i)
29821     *(data + i) = rand ();
29822   umask (0);
29823   fd = creat ("conftest.mmap", 0600);
29824   if (fd < 0)
29825     exit (1);
29826   if (write (fd, data, pagesize) != pagesize)
29827     exit (1);
29828   close (fd);
29829
29830   /* Next, try to mmap the file at a fixed address which already has
29831      something else allocated at it.  If we can, also make sure that
29832      we see the same garbage.  */
29833   fd = open ("conftest.mmap", O_RDWR);
29834   if (fd < 0)
29835     exit (1);
29836   data2 = (char *) malloc (2 * pagesize);
29837   if (!data2)
29838     exit (1);
29839   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29840   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29841                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29842     exit (1);
29843   for (i = 0; i < pagesize; ++i)
29844     if (*(data + i) != *(data2 + i))
29845       exit (1);
29846
29847   /* Finally, make sure that changes to the mapped area do not
29848      percolate back to the file as seen by read().  (This is a bug on
29849      some variants of i386 svr4.0.)  */
29850   for (i = 0; i < pagesize; ++i)
29851     *(data2 + i) = *(data2 + i) + 1;
29852   data3 = (char *) malloc (pagesize);
29853   if (!data3)
29854     exit (1);
29855   if (read (fd, data3, pagesize) != pagesize)
29856     exit (1);
29857   for (i = 0; i < pagesize; ++i)
29858     if (*(data + i) != *(data3 + i))
29859       exit (1);
29860   close (fd);
29861   exit (0);
29862 }
29863 _ACEOF
29864 rm -f conftest$ac_exeext
29865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29866   (eval $ac_link) 2>&5
29867   ac_status=$?
29868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871   (eval $ac_try) 2>&5
29872   ac_status=$?
29873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); }; }; then
29875   ac_cv_func_mmap_fixed_mapped=yes
29876 else
29877   echo "$as_me: program exited with status $ac_status" >&5
29878 echo "$as_me: failed program was:" >&5
29879 sed 's/^/| /' conftest.$ac_ext >&5
29880
29881 ( exit $ac_status )
29882 ac_cv_func_mmap_fixed_mapped=no
29883 fi
29884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29885 fi
29886 fi
29887 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29888 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29890
29891 cat >>confdefs.h <<\_ACEOF
29892 #define HAVE_MMAP 1
29893 _ACEOF
29894
29895 fi
29896 rm -f conftest.mmap
29897
29898 echo "$as_me:$LINENO: checking for mmap of files" >&5
29899 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29900 if test "${ac_cv_func_mmap_file+set}" = set; then
29901   echo $ECHO_N "(cached) $ECHO_C" >&6
29902 else
29903    ac_ext=c
29904 ac_cpp='$CPP $CPPFLAGS'
29905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29908
29909   if test "$cross_compiling" = yes; then
29910   ac_cv_func_mmap_file=no
29911 else
29912   cat >conftest.$ac_ext <<_ACEOF
29913
29914     /* confdefs.h.  */
29915 _ACEOF
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h.  */
29919
29920 #include <sys/types.h>
29921 #include <sys/mman.h>
29922 #include <fcntl.h>
29923
29924 int
29925 main ()
29926 {
29927
29928   int fd;
29929   fd = creat ("foo",0777);
29930   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29931   unlink ("foo");
29932   return (fd != (int) MAP_FAILED);
29933   ;
29934   return 0;
29935 }
29936 _ACEOF
29937 rm -f conftest$ac_exeext
29938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29939   (eval $ac_link) 2>&5
29940   ac_status=$?
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944   (eval $ac_try) 2>&5
29945   ac_status=$?
29946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947   (exit $ac_status); }; }; then
29948   ac_cv_func_mmap_file=yes
29949 else
29950   echo "$as_me: program exited with status $ac_status" >&5
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29953
29954 ( exit $ac_status )
29955 ac_cv_func_mmap_file=no
29956 fi
29957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29958 fi
29959   ac_ext=c
29960 ac_cpp='$CPP $CPPFLAGS'
29961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29964
29965
29966 fi
29967 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29968 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29969 if test "$ac_cv_func_mmap_file" = yes; then
29970
29971 cat >>confdefs.h <<\_ACEOF
29972 #define HAVE_MMAP_FILE
29973 _ACEOF
29974
29975    MMAP_FILE=yes
29976
29977 fi
29978
29979 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29980 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29981 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29982   echo $ECHO_N "(cached) $ECHO_C" >&6
29983 else
29984   if test "$llvm_cv_os_type" = "Interix" ; then
29985    ac_cv_need_dev_zero_for_mmap=yes
29986  else
29987    ac_cv_need_dev_zero_for_mmap=no
29988  fi
29989
29990 fi
29991 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29992 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29993 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29994
29995 cat >>confdefs.h <<\_ACEOF
29996 #define NEED_DEV_ZERO_FOR_MMAP 1
29997 _ACEOF
29998
29999 fi
30000 echo "$as_me:$LINENO: checking for mprotect" >&5
30001 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30002 if test "${ac_cv_func_mprotect+set}" = set; then
30003   echo $ECHO_N "(cached) $ECHO_C" >&6
30004 else
30005   cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h.  */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h.  */
30011 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30013 #define mprotect innocuous_mprotect
30014
30015 /* System header to define __stub macros and hopefully few prototypes,
30016     which can conflict with char mprotect (); below.
30017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30018     <limits.h> exists even on freestanding compilers.  */
30019
30020 #ifdef __STDC__
30021 # include <limits.h>
30022 #else
30023 # include <assert.h>
30024 #endif
30025
30026 #undef mprotect
30027
30028 /* Override any gcc2 internal prototype to avoid an error.  */
30029 #ifdef __cplusplus
30030 extern "C"
30031 {
30032 #endif
30033 /* We use char because int might match the return type of a gcc2
30034    builtin and then its argument prototype would still apply.  */
30035 char mprotect ();
30036 /* The GNU C library defines this for functions which it implements
30037     to always fail with ENOSYS.  Some functions are actually named
30038     something starting with __ and the normal name is an alias.  */
30039 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30040 choke me
30041 #else
30042 char (*f) () = mprotect;
30043 #endif
30044 #ifdef __cplusplus
30045 }
30046 #endif
30047
30048 int
30049 main ()
30050 {
30051 return f != mprotect;
30052   ;
30053   return 0;
30054 }
30055 _ACEOF
30056 rm -f conftest.$ac_objext conftest$ac_exeext
30057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30058   (eval $ac_link) 2>conftest.er1
30059   ac_status=$?
30060   grep -v '^ *+' conftest.er1 >conftest.err
30061   rm -f conftest.er1
30062   cat conftest.err >&5
30063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064   (exit $ac_status); } &&
30065          { ac_try='test -z "$ac_c_werror_flag"
30066                          || test ! -s conftest.err'
30067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068   (eval $ac_try) 2>&5
30069   ac_status=$?
30070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071   (exit $ac_status); }; } &&
30072          { ac_try='test -s conftest$ac_exeext'
30073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074   (eval $ac_try) 2>&5
30075   ac_status=$?
30076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077   (exit $ac_status); }; }; then
30078   ac_cv_func_mprotect=yes
30079 else
30080   echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30082
30083 ac_cv_func_mprotect=no
30084 fi
30085 rm -f conftest.err conftest.$ac_objext \
30086       conftest$ac_exeext conftest.$ac_ext
30087 fi
30088 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30089 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30090 if test $ac_cv_func_mprotect = yes; then
30091   :
30092 else
30093   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30094 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30095    { (exit 1); exit 1; }; }
30096 fi
30097
30098
30099 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30100 then
30101   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30102 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30103 fi
30104 if test "$ac_cv_func_mmap_file" = "no"
30105 then
30106   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30107 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30108 fi
30109
30110
30111 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30112 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30113 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30114   echo $ECHO_N "(cached) $ECHO_C" >&6
30115 else
30116   llvm_cv_llvmgcc_sanity="no"
30117 if test -x "$LLVMGCC" ; then
30118   cp /dev/null conftest.c
30119   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30120   if test $? -eq 0 ; then
30121     llvm_cv_llvmgcc_sanity="yes"
30122   fi
30123   rm conftest.c
30124 fi
30125 fi
30126 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30127 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30128
30129 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30130   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30131   LLVMCC1=$llvmcc1path
30132
30133   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30134   LLVMCC1PLUS=$llvmcc1pluspath
30135
30136   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30137   LLVMGCCDIR=$llvmgccdir
30138
30139 fi
30140
30141 SHLIBEXT=$libltdl_cv_shlibext
30142
30143
30144 # Translate the various configuration directories and other basic
30145 # information into substitutions that will end up in Makefile.config.in
30146 # that these configured values can be used by the makefiles
30147 eval LLVM_PREFIX="${prefix}";
30148 eval LLVM_BINDIR="${prefix}/bin";
30149 eval LLVM_LIBDIR="${prefix}/lib";
30150 eval LLVM_DATADIR="${prefix}/share/llvm";
30151 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30152 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30153 eval LLVM_INCLUDEDIR="${prefix}/include";
30154 eval LLVM_INFODIR="${prefix}/info";
30155 eval LLVM_MANDIR="${prefix}/man";
30156 LLVM_CONFIGTIME=`date`
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168 # Place the various directores into the config.h file as #defines so that we
30169 # can know about the installation paths within LLVM.
30170
30171 cat >>confdefs.h <<_ACEOF
30172 #define LLVM_PREFIX "$LLVM_PREFIX"
30173 _ACEOF
30174
30175
30176 cat >>confdefs.h <<_ACEOF
30177 #define LLVM_BINDIR "$LLVM_BINDIR"
30178 _ACEOF
30179
30180
30181 cat >>confdefs.h <<_ACEOF
30182 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30183 _ACEOF
30184
30185
30186 cat >>confdefs.h <<_ACEOF
30187 #define LLVM_DATADIR "$LLVM_DATADIR"
30188 _ACEOF
30189
30190
30191 cat >>confdefs.h <<_ACEOF
30192 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30193 _ACEOF
30194
30195
30196 cat >>confdefs.h <<_ACEOF
30197 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30198 _ACEOF
30199
30200
30201 cat >>confdefs.h <<_ACEOF
30202 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30203 _ACEOF
30204
30205
30206 cat >>confdefs.h <<_ACEOF
30207 #define LLVM_INFODIR "$LLVM_INFODIR"
30208 _ACEOF
30209
30210
30211 cat >>confdefs.h <<_ACEOF
30212 #define LLVM_MANDIR "$LLVM_MANDIR"
30213 _ACEOF
30214
30215
30216 cat >>confdefs.h <<_ACEOF
30217 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30218 _ACEOF
30219
30220
30221
30222           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30223
30224
30225           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30226
30227           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30228
30229           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30230
30231           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30232
30233           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30234
30235
30236           ac_config_files="$ac_config_files Makefile.config"
30237
30238
30239                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30240
30241
30242           ac_config_files="$ac_config_files docs/doxygen.cfg"
30243
30244
30245           ac_config_commands="$ac_config_commands setup"
30246
30247           ac_config_commands="$ac_config_commands Makefile"
30248
30249
30250           ac_config_commands="$ac_config_commands Makefile.common"
30251
30252
30253           ac_config_commands="$ac_config_commands examples/Makefile"
30254
30255
30256           ac_config_commands="$ac_config_commands lib/Makefile"
30257
30258
30259           ac_config_commands="$ac_config_commands runtime/Makefile"
30260
30261
30262           ac_config_commands="$ac_config_commands test/Makefile"
30263
30264
30265           ac_config_commands="$ac_config_commands test/Makefile.tests"
30266
30267
30268           ac_config_commands="$ac_config_commands tools/Makefile"
30269
30270
30271           ac_config_commands="$ac_config_commands utils/Makefile"
30272
30273
30274           ac_config_commands="$ac_config_commands projects/Makefile"
30275
30276
30277
30278 cat >confcache <<\_ACEOF
30279 # This file is a shell script that caches the results of configure
30280 # tests run on this system so they can be shared between configure
30281 # scripts and configure runs, see configure's option --config-cache.
30282 # It is not useful on other systems.  If it contains results you don't
30283 # want to keep, you may remove or edit it.
30284 #
30285 # config.status only pays attention to the cache file if you give it
30286 # the --recheck option to rerun configure.
30287 #
30288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30290 # following values.
30291
30292 _ACEOF
30293
30294 # The following way of writing the cache mishandles newlines in values,
30295 # but we know of no workaround that is simple, portable, and efficient.
30296 # So, don't put newlines in cache variables' values.
30297 # Ultrix sh set writes to stderr and can't be redirected directly,
30298 # and sets the high bit in the cache file unless we assign to the vars.
30299 {
30300   (set) 2>&1 |
30301     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30302     *ac_space=\ *)
30303       # `set' does not quote correctly, so add quotes (double-quote
30304       # substitution turns \\\\ into \\, and sed turns \\ into \).
30305       sed -n \
30306         "s/'/'\\\\''/g;
30307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30308       ;;
30309     *)
30310       # `set' quotes correctly as required by POSIX, so do not add quotes.
30311       sed -n \
30312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30313       ;;
30314     esac;
30315 } |
30316   sed '
30317      t clear
30318      : clear
30319      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30320      t end
30321      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30322      : end' >>confcache
30323 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30324   if test -w $cache_file; then
30325     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30326     cat confcache >$cache_file
30327   else
30328     echo "not updating unwritable cache $cache_file"
30329   fi
30330 fi
30331 rm -f confcache
30332
30333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30334 # Let make expand exec_prefix.
30335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30336
30337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30339 # trailing colons and then remove the whole line if VPATH becomes empty
30340 # (actually we leave an empty line to preserve line numbers).
30341 if test "x$srcdir" = x.; then
30342   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30343 s/:*\$(srcdir):*/:/;
30344 s/:*\${srcdir}:*/:/;
30345 s/:*@srcdir@:*/:/;
30346 s/^\([^=]*=[     ]*\):*/\1/;
30347 s/:*$//;
30348 s/^[^=]*=[       ]*$//;
30349 }'
30350 fi
30351
30352 DEFS=-DHAVE_CONFIG_H
30353
30354 ac_libobjs=
30355 ac_ltlibobjs=
30356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30357   # 1. Remove the extension, and $U if already installed.
30358   ac_i=`echo "$ac_i" |
30359          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30360   # 2. Add them.
30361   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30362   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30363 done
30364 LIBOBJS=$ac_libobjs
30365
30366 LTLIBOBJS=$ac_ltlibobjs
30367
30368
30369 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30370   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30371 Usually this means the macro was only invoked conditionally." >&5
30372 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30373 Usually this means the macro was only invoked conditionally." >&2;}
30374    { (exit 1); exit 1; }; }
30375 fi
30376 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30377   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30378 Usually this means the macro was only invoked conditionally." >&5
30379 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30380 Usually this means the macro was only invoked conditionally." >&2;}
30381    { (exit 1); exit 1; }; }
30382 fi
30383
30384 : ${CONFIG_STATUS=./config.status}
30385 ac_clean_files_save=$ac_clean_files
30386 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30387 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30388 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30389 cat >$CONFIG_STATUS <<_ACEOF
30390 #! $SHELL
30391 # Generated by $as_me.
30392 # Run this file to recreate the current configuration.
30393 # Compiler output produced by configure, useful for debugging
30394 # configure, is in config.log if it exists.
30395
30396 debug=false
30397 ac_cs_recheck=false
30398 ac_cs_silent=false
30399 SHELL=\${CONFIG_SHELL-$SHELL}
30400 _ACEOF
30401
30402 cat >>$CONFIG_STATUS <<\_ACEOF
30403 ## --------------------- ##
30404 ## M4sh Initialization.  ##
30405 ## --------------------- ##
30406
30407 # Be Bourne compatible
30408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30409   emulate sh
30410   NULLCMD=:
30411   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30412   # is contrary to our usage.  Disable this feature.
30413   alias -g '${1+"$@"}'='"$@"'
30414 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30415   set -o posix
30416 fi
30417 DUALCASE=1; export DUALCASE # for MKS sh
30418
30419 # Support unset when possible.
30420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30421   as_unset=unset
30422 else
30423   as_unset=false
30424 fi
30425
30426
30427 # Work around bugs in pre-3.0 UWIN ksh.
30428 $as_unset ENV MAIL MAILPATH
30429 PS1='$ '
30430 PS2='> '
30431 PS4='+ '
30432
30433 # NLS nuisances.
30434 for as_var in \
30435   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30436   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30437   LC_TELEPHONE LC_TIME
30438 do
30439   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30440     eval $as_var=C; export $as_var
30441   else
30442     $as_unset $as_var
30443   fi
30444 done
30445
30446 # Required to use basename.
30447 if expr a : '\(a\)' >/dev/null 2>&1; then
30448   as_expr=expr
30449 else
30450   as_expr=false
30451 fi
30452
30453 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30454   as_basename=basename
30455 else
30456   as_basename=false
30457 fi
30458
30459
30460 # Name of the executable.
30461 as_me=`$as_basename "$0" ||
30462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30463          X"$0" : 'X\(//\)$' \| \
30464          X"$0" : 'X\(/\)$' \| \
30465          .     : '\(.\)' 2>/dev/null ||
30466 echo X/"$0" |
30467     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30468           /^X\/\(\/\/\)$/{ s//\1/; q; }
30469           /^X\/\(\/\).*/{ s//\1/; q; }
30470           s/.*/./; q'`
30471
30472
30473 # PATH needs CR, and LINENO needs CR and PATH.
30474 # Avoid depending upon Character Ranges.
30475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30478 as_cr_digits='0123456789'
30479 as_cr_alnum=$as_cr_Letters$as_cr_digits
30480
30481 # The user is always right.
30482 if test "${PATH_SEPARATOR+set}" != set; then
30483   echo "#! /bin/sh" >conf$$.sh
30484   echo  "exit 0"   >>conf$$.sh
30485   chmod +x conf$$.sh
30486   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30487     PATH_SEPARATOR=';'
30488   else
30489     PATH_SEPARATOR=:
30490   fi
30491   rm -f conf$$.sh
30492 fi
30493
30494
30495   as_lineno_1=$LINENO
30496   as_lineno_2=$LINENO
30497   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30498   test "x$as_lineno_1" != "x$as_lineno_2" &&
30499   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30500   # Find who we are.  Look in the path if we contain no path at all
30501   # relative or not.
30502   case $0 in
30503     *[\\/]* ) as_myself=$0 ;;
30504     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30505 for as_dir in $PATH
30506 do
30507   IFS=$as_save_IFS
30508   test -z "$as_dir" && as_dir=.
30509   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30510 done
30511
30512        ;;
30513   esac
30514   # We did not find ourselves, most probably we were run as `sh COMMAND'
30515   # in which case we are not to be found in the path.
30516   if test "x$as_myself" = x; then
30517     as_myself=$0
30518   fi
30519   if test ! -f "$as_myself"; then
30520     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30521 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30522    { (exit 1); exit 1; }; }
30523   fi
30524   case $CONFIG_SHELL in
30525   '')
30526     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30527 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30528 do
30529   IFS=$as_save_IFS
30530   test -z "$as_dir" && as_dir=.
30531   for as_base in sh bash ksh sh5; do
30532          case $as_dir in
30533          /*)
30534            if ("$as_dir/$as_base" -c '
30535   as_lineno_1=$LINENO
30536   as_lineno_2=$LINENO
30537   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30538   test "x$as_lineno_1" != "x$as_lineno_2" &&
30539   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30540              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30541              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30542              CONFIG_SHELL=$as_dir/$as_base
30543              export CONFIG_SHELL
30544              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30545            fi;;
30546          esac
30547        done
30548 done
30549 ;;
30550   esac
30551
30552   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30553   # uniformly replaced by the line number.  The first 'sed' inserts a
30554   # line-number line before each line; the second 'sed' does the real
30555   # work.  The second script uses 'N' to pair each line-number line
30556   # with the numbered line, and appends trailing '-' during
30557   # substitution so that $LINENO is not a special case at line end.
30558   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30559   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30560   sed '=' <$as_myself |
30561     sed '
30562       N
30563       s,$,-,
30564       : loop
30565       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30566       t loop
30567       s,-$,,
30568       s,^['$as_cr_digits']*\n,,
30569     ' >$as_me.lineno &&
30570   chmod +x $as_me.lineno ||
30571     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30572 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30573    { (exit 1); exit 1; }; }
30574
30575   # Don't try to exec as it changes $[0], causing all sort of problems
30576   # (the dirname of $[0] is not the place where we might find the
30577   # original and so on.  Autoconf is especially sensible to this).
30578   . ./$as_me.lineno
30579   # Exit status is that of the last command.
30580   exit
30581 }
30582
30583
30584 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30585   *c*,-n*) ECHO_N= ECHO_C='
30586 ' ECHO_T='      ' ;;
30587   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30588   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30589 esac
30590
30591 if expr a : '\(a\)' >/dev/null 2>&1; then
30592   as_expr=expr
30593 else
30594   as_expr=false
30595 fi
30596
30597 rm -f conf$$ conf$$.exe conf$$.file
30598 echo >conf$$.file
30599 if ln -s conf$$.file conf$$ 2>/dev/null; then
30600   # We could just check for DJGPP; but this test a) works b) is more generic
30601   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30602   if test -f conf$$.exe; then
30603     # Don't use ln at all; we don't have any links
30604     as_ln_s='cp -p'
30605   else
30606     as_ln_s='ln -s'
30607   fi
30608 elif ln conf$$.file conf$$ 2>/dev/null; then
30609   as_ln_s=ln
30610 else
30611   as_ln_s='cp -p'
30612 fi
30613 rm -f conf$$ conf$$.exe conf$$.file
30614
30615 if mkdir -p . 2>/dev/null; then
30616   as_mkdir_p=:
30617 else
30618   test -d ./-p && rmdir ./-p
30619   as_mkdir_p=false
30620 fi
30621
30622 as_executable_p="test -f"
30623
30624 # Sed expression to map a string onto a valid CPP name.
30625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30626
30627 # Sed expression to map a string onto a valid variable name.
30628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30629
30630
30631 # IFS
30632 # We need space, tab and new line, in precisely that order.
30633 as_nl='
30634 '
30635 IFS="   $as_nl"
30636
30637 # CDPATH.
30638 $as_unset CDPATH
30639
30640 exec 6>&1
30641
30642 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30643 # report actual input values of CONFIG_FILES etc. instead of their
30644 # values after options handling.  Logging --version etc. is OK.
30645 exec 5>>config.log
30646 {
30647   echo
30648   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30649 ## Running $as_me. ##
30650 _ASBOX
30651 } >&5
30652 cat >&5 <<_CSEOF
30653
30654 This file was extended by llvm $as_me 1.5cvs, which was
30655 generated by GNU Autoconf 2.59.  Invocation command line was
30656
30657   CONFIG_FILES    = $CONFIG_FILES
30658   CONFIG_HEADERS  = $CONFIG_HEADERS
30659   CONFIG_LINKS    = $CONFIG_LINKS
30660   CONFIG_COMMANDS = $CONFIG_COMMANDS
30661   $ $0 $@
30662
30663 _CSEOF
30664 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30665 echo >&5
30666 _ACEOF
30667
30668 # Files that config.status was made for.
30669 if test -n "$ac_config_files"; then
30670   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30671 fi
30672
30673 if test -n "$ac_config_headers"; then
30674   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30675 fi
30676
30677 if test -n "$ac_config_links"; then
30678   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30679 fi
30680
30681 if test -n "$ac_config_commands"; then
30682   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30683 fi
30684
30685 cat >>$CONFIG_STATUS <<\_ACEOF
30686
30687 ac_cs_usage="\
30688 \`$as_me' instantiates files from templates according to the
30689 current configuration.
30690
30691 Usage: $0 [OPTIONS] [FILE]...
30692
30693   -h, --help       print this help, then exit
30694   -V, --version    print version number, then exit
30695   -q, --quiet      do not print progress messages
30696   -d, --debug      don't remove temporary files
30697       --recheck    update $as_me by reconfiguring in the same conditions
30698   --file=FILE[:TEMPLATE]
30699                    instantiate the configuration file FILE
30700   --header=FILE[:TEMPLATE]
30701                    instantiate the configuration header FILE
30702
30703 Configuration files:
30704 $config_files
30705
30706 Configuration headers:
30707 $config_headers
30708
30709 Configuration commands:
30710 $config_commands
30711
30712 Report bugs to <bug-autoconf@gnu.org>."
30713 _ACEOF
30714
30715 cat >>$CONFIG_STATUS <<_ACEOF
30716 ac_cs_version="\\
30717 llvm config.status 1.5cvs
30718 configured by $0, generated by GNU Autoconf 2.59,
30719   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30720
30721 Copyright (C) 2003 Free Software Foundation, Inc.
30722 This config.status script is free software; the Free Software Foundation
30723 gives unlimited permission to copy, distribute and modify it."
30724 srcdir=$srcdir
30725 INSTALL="$INSTALL"
30726 _ACEOF
30727
30728 cat >>$CONFIG_STATUS <<\_ACEOF
30729 # If no file are specified by the user, then we need to provide default
30730 # value.  By we need to know if files were specified by the user.
30731 ac_need_defaults=:
30732 while test $# != 0
30733 do
30734   case $1 in
30735   --*=*)
30736     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30737     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30738     ac_shift=:
30739     ;;
30740   -*)
30741     ac_option=$1
30742     ac_optarg=$2
30743     ac_shift=shift
30744     ;;
30745   *) # This is not an option, so the user has probably given explicit
30746      # arguments.
30747      ac_option=$1
30748      ac_need_defaults=false;;
30749   esac
30750
30751   case $ac_option in
30752   # Handling of the options.
30753 _ACEOF
30754 cat >>$CONFIG_STATUS <<\_ACEOF
30755   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30756     ac_cs_recheck=: ;;
30757   --version | --vers* | -V )
30758     echo "$ac_cs_version"; exit 0 ;;
30759   --he | --h)
30760     # Conflict between --help and --header
30761     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30762 Try \`$0 --help' for more information." >&5
30763 echo "$as_me: error: ambiguous option: $1
30764 Try \`$0 --help' for more information." >&2;}
30765    { (exit 1); exit 1; }; };;
30766   --help | --hel | -h )
30767     echo "$ac_cs_usage"; exit 0 ;;
30768   --debug | --d* | -d )
30769     debug=: ;;
30770   --file | --fil | --fi | --f )
30771     $ac_shift
30772     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30773     ac_need_defaults=false;;
30774   --header | --heade | --head | --hea )
30775     $ac_shift
30776     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30777     ac_need_defaults=false;;
30778   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30779   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30780     ac_cs_silent=: ;;
30781
30782   # This is an error.
30783   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30784 Try \`$0 --help' for more information." >&5
30785 echo "$as_me: error: unrecognized option: $1
30786 Try \`$0 --help' for more information." >&2;}
30787    { (exit 1); exit 1; }; } ;;
30788
30789   *) ac_config_targets="$ac_config_targets $1" ;;
30790
30791   esac
30792   shift
30793 done
30794
30795 ac_configure_extra_args=
30796
30797 if $ac_cs_silent; then
30798   exec 6>/dev/null
30799   ac_configure_extra_args="$ac_configure_extra_args --silent"
30800 fi
30801
30802 _ACEOF
30803 cat >>$CONFIG_STATUS <<_ACEOF
30804 if \$ac_cs_recheck; then
30805   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30806   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30807 fi
30808
30809 _ACEOF
30810
30811 cat >>$CONFIG_STATUS <<_ACEOF
30812 #
30813 # INIT-COMMANDS section.
30814 #
30815
30816 llvm_src="${srcdir}"
30817
30818 _ACEOF
30819
30820
30821
30822 cat >>$CONFIG_STATUS <<\_ACEOF
30823 for ac_config_target in $ac_config_targets
30824 do
30825   case "$ac_config_target" in
30826   # Handling of arguments.
30827   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30828   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30829   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30830   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30831   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30832   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30833   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30834   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30835   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30836   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30837   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30838   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30839   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30840   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30841   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30842   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30843   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30844   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30845   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30846   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30847   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30848   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30849   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30850   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30852    { (exit 1); exit 1; }; };;
30853   esac
30854 done
30855
30856 # If the user did not use the arguments to specify the items to instantiate,
30857 # then the envvar interface is used.  Set only those that are not.
30858 # We use the long form for the default assignment because of an extremely
30859 # bizarre bug on SunOS 4.1.3.
30860 if $ac_need_defaults; then
30861   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30862   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30863   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30864 fi
30865
30866 # Have a temporary directory for convenience.  Make it in the build tree
30867 # simply because there is no reason to put it here, and in addition,
30868 # creating and moving files from /tmp can sometimes cause problems.
30869 # Create a temporary directory, and hook for its removal unless debugging.
30870 $debug ||
30871 {
30872   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30873   trap '{ (exit 1); exit 1; }' 1 2 13 15
30874 }
30875
30876 # Create a (secure) tmp directory for tmp files.
30877
30878 {
30879   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30880   test -n "$tmp" && test -d "$tmp"
30881 }  ||
30882 {
30883   tmp=./confstat$$-$RANDOM
30884   (umask 077 && mkdir $tmp)
30885 } ||
30886 {
30887    echo "$me: cannot create a temporary directory in ." >&2
30888    { (exit 1); exit 1; }
30889 }
30890
30891 _ACEOF
30892
30893 cat >>$CONFIG_STATUS <<_ACEOF
30894
30895 #
30896 # CONFIG_FILES section.
30897 #
30898
30899 # No need to generate the scripts if there are no CONFIG_FILES.
30900 # This happens for instance when ./config.status config.h
30901 if test -n "\$CONFIG_FILES"; then
30902   # Protect against being on the right side of a sed subst in config.status.
30903   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30904    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30905 s,@SHELL@,$SHELL,;t t
30906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30912 s,@exec_prefix@,$exec_prefix,;t t
30913 s,@prefix@,$prefix,;t t
30914 s,@program_transform_name@,$program_transform_name,;t t
30915 s,@bindir@,$bindir,;t t
30916 s,@sbindir@,$sbindir,;t t
30917 s,@libexecdir@,$libexecdir,;t t
30918 s,@datadir@,$datadir,;t t
30919 s,@sysconfdir@,$sysconfdir,;t t
30920 s,@sharedstatedir@,$sharedstatedir,;t t
30921 s,@localstatedir@,$localstatedir,;t t
30922 s,@libdir@,$libdir,;t t
30923 s,@includedir@,$includedir,;t t
30924 s,@oldincludedir@,$oldincludedir,;t t
30925 s,@infodir@,$infodir,;t t
30926 s,@mandir@,$mandir,;t t
30927 s,@build_alias@,$build_alias,;t t
30928 s,@host_alias@,$host_alias,;t t
30929 s,@target_alias@,$target_alias,;t t
30930 s,@DEFS@,$DEFS,;t t
30931 s,@ECHO_C@,$ECHO_C,;t t
30932 s,@ECHO_N@,$ECHO_N,;t t
30933 s,@ECHO_T@,$ECHO_T,;t t
30934 s,@LIBS@,$LIBS,;t t
30935 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30936 s,@subdirs@,$subdirs,;t t
30937 s,@build@,$build,;t t
30938 s,@build_cpu@,$build_cpu,;t t
30939 s,@build_vendor@,$build_vendor,;t t
30940 s,@build_os@,$build_os,;t t
30941 s,@host@,$host,;t t
30942 s,@host_cpu@,$host_cpu,;t t
30943 s,@host_vendor@,$host_vendor,;t t
30944 s,@host_os@,$host_os,;t t
30945 s,@target@,$target,;t t
30946 s,@target_cpu@,$target_cpu,;t t
30947 s,@target_vendor@,$target_vendor,;t t
30948 s,@target_os@,$target_os,;t t
30949 s,@OS@,$OS,;t t
30950 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30951 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30952 s,@ARCH@,$ARCH,;t t
30953 s,@ENDIAN@,$ENDIAN,;t t
30954 s,@CC@,$CC,;t t
30955 s,@CFLAGS@,$CFLAGS,;t t
30956 s,@LDFLAGS@,$LDFLAGS,;t t
30957 s,@CPPFLAGS@,$CPPFLAGS,;t t
30958 s,@ac_ct_CC@,$ac_ct_CC,;t t
30959 s,@EXEEXT@,$EXEEXT,;t t
30960 s,@OBJEXT@,$OBJEXT,;t t
30961 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30962 s,@JIT@,$JIT,;t t
30963 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30964 s,@CPP@,$CPP,;t t
30965 s,@CXX@,$CXX,;t t
30966 s,@CXXFLAGS@,$CXXFLAGS,;t t
30967 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30968 s,@LEX@,$LEX,;t t
30969 s,@LEXLIB@,$LEXLIB,;t t
30970 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30971 s,@FLEX@,$FLEX,;t t
30972 s,@YACC@,$YACC,;t t
30973 s,@BISON@,$BISON,;t t
30974 s,@ifGNUmake@,$ifGNUmake,;t t
30975 s,@LN_S@,$LN_S,;t t
30976 s,@CMP@,$CMP,;t t
30977 s,@CP@,$CP,;t t
30978 s,@DATE@,$DATE,;t t
30979 s,@FIND@,$FIND,;t t
30980 s,@GREP@,$GREP,;t t
30981 s,@MKDIR@,$MKDIR,;t t
30982 s,@MV@,$MV,;t t
30983 s,@RANLIB@,$RANLIB,;t t
30984 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30985 s,@RM@,$RM,;t t
30986 s,@SED@,$SED,;t t
30987 s,@TAR@,$TAR,;t t
30988 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30989 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30990 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30991 s,@BZIP2@,$BZIP2,;t t
30992 s,@DOT@,$DOT,;t t
30993 s,@DOXYGEN@,$DOXYGEN,;t t
30994 s,@ETAGS@,$ETAGS,;t t
30995 s,@GROFF@,$GROFF,;t t
30996 s,@GZIP@,$GZIP,;t t
30997 s,@POD2HTML@,$POD2HTML,;t t
30998 s,@POD2MAN@,$POD2MAN,;t t
30999 s,@RUNTEST@,$RUNTEST,;t t
31000 s,@TCLSH@,$TCLSH,;t t
31001 s,@ZIP@,$ZIP,;t t
31002 s,@EGREP@,$EGREP,;t t
31003 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31004 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31005 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31006 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31007 s,@LIBADD_DL@,$LIBADD_DL,;t t
31008 s,@ECHO@,$ECHO,;t t
31009 s,@AR@,$AR,;t t
31010 s,@ac_ct_AR@,$ac_ct_AR,;t t
31011 s,@STRIP@,$STRIP,;t t
31012 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31013 s,@CXXCPP@,$CXXCPP,;t t
31014 s,@F77@,$F77,;t t
31015 s,@FFLAGS@,$FFLAGS,;t t
31016 s,@ac_ct_F77@,$ac_ct_F77,;t t
31017 s,@LIBTOOL@,$LIBTOOL,;t t
31018 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31019 s,@LLVMGCC@,$LLVMGCC,;t t
31020 s,@LLVMGXX@,$LLVMGXX,;t t
31021 s,@ALLOCA@,$ALLOCA,;t t
31022 s,@MMAP_FILE@,$MMAP_FILE,;t t
31023 s,@LLVMCC1@,$LLVMCC1,;t t
31024 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31025 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31026 s,@SHLIBEXT@,$SHLIBEXT,;t t
31027 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31028 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31029 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31030 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31031 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31032 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31033 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31034 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31035 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31036 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31037 s,@LIBOBJS@,$LIBOBJS,;t t
31038 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31039 CEOF
31040
31041 _ACEOF
31042
31043   cat >>$CONFIG_STATUS <<\_ACEOF
31044   # Split the substitutions into bite-sized pieces for seds with
31045   # small command number limits, like on Digital OSF/1 and HP-UX.
31046   ac_max_sed_lines=48
31047   ac_sed_frag=1 # Number of current file.
31048   ac_beg=1 # First line for current file.
31049   ac_end=$ac_max_sed_lines # Line after last line for current file.
31050   ac_more_lines=:
31051   ac_sed_cmds=
31052   while $ac_more_lines; do
31053     if test $ac_beg -gt 1; then
31054       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31055     else
31056       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31057     fi
31058     if test ! -s $tmp/subs.frag; then
31059       ac_more_lines=false
31060     else
31061       # The purpose of the label and of the branching condition is to
31062       # speed up the sed processing (if there are no `@' at all, there
31063       # is no need to browse any of the substitutions).
31064       # These are the two extra sed commands mentioned above.
31065       (echo ':t
31066   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31067       if test -z "$ac_sed_cmds"; then
31068         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31069       else
31070         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31071       fi
31072       ac_sed_frag=`expr $ac_sed_frag + 1`
31073       ac_beg=$ac_end
31074       ac_end=`expr $ac_end + $ac_max_sed_lines`
31075     fi
31076   done
31077   if test -z "$ac_sed_cmds"; then
31078     ac_sed_cmds=cat
31079   fi
31080 fi # test -n "$CONFIG_FILES"
31081
31082 _ACEOF
31083 cat >>$CONFIG_STATUS <<\_ACEOF
31084 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31085   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31086   case $ac_file in
31087   - | *:- | *:-:* ) # input from stdin
31088         cat >$tmp/stdin
31089         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31090         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31091   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31092         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31093   * )   ac_file_in=$ac_file.in ;;
31094   esac
31095
31096   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31097   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31099          X"$ac_file" : 'X\(//\)[^/]' \| \
31100          X"$ac_file" : 'X\(//\)$' \| \
31101          X"$ac_file" : 'X\(/\)' \| \
31102          .     : '\(.\)' 2>/dev/null ||
31103 echo X"$ac_file" |
31104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31106           /^X\(\/\/\)$/{ s//\1/; q; }
31107           /^X\(\/\).*/{ s//\1/; q; }
31108           s/.*/./; q'`
31109   { if $as_mkdir_p; then
31110     mkdir -p "$ac_dir"
31111   else
31112     as_dir="$ac_dir"
31113     as_dirs=
31114     while test ! -d "$as_dir"; do
31115       as_dirs="$as_dir $as_dirs"
31116       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31118          X"$as_dir" : 'X\(//\)[^/]' \| \
31119          X"$as_dir" : 'X\(//\)$' \| \
31120          X"$as_dir" : 'X\(/\)' \| \
31121          .     : '\(.\)' 2>/dev/null ||
31122 echo X"$as_dir" |
31123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31125           /^X\(\/\/\)$/{ s//\1/; q; }
31126           /^X\(\/\).*/{ s//\1/; q; }
31127           s/.*/./; q'`
31128     done
31129     test ! -n "$as_dirs" || mkdir $as_dirs
31130   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31132    { (exit 1); exit 1; }; }; }
31133
31134   ac_builddir=.
31135
31136 if test "$ac_dir" != .; then
31137   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31138   # A "../" for each directory in $ac_dir_suffix.
31139   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31140 else
31141   ac_dir_suffix= ac_top_builddir=
31142 fi
31143
31144 case $srcdir in
31145   .)  # No --srcdir option.  We are building in place.
31146     ac_srcdir=.
31147     if test -z "$ac_top_builddir"; then
31148        ac_top_srcdir=.
31149     else
31150        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31151     fi ;;
31152   [\\/]* | ?:[\\/]* )  # Absolute path.
31153     ac_srcdir=$srcdir$ac_dir_suffix;
31154     ac_top_srcdir=$srcdir ;;
31155   *) # Relative path.
31156     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31157     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31158 esac
31159
31160 # Do not use `cd foo && pwd` to compute absolute paths, because
31161 # the directories may not exist.
31162 case `pwd` in
31163 .) ac_abs_builddir="$ac_dir";;
31164 *)
31165   case "$ac_dir" in
31166   .) ac_abs_builddir=`pwd`;;
31167   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31168   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31169   esac;;
31170 esac
31171 case $ac_abs_builddir in
31172 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31173 *)
31174   case ${ac_top_builddir}. in
31175   .) ac_abs_top_builddir=$ac_abs_builddir;;
31176   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31177   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31178   esac;;
31179 esac
31180 case $ac_abs_builddir in
31181 .) ac_abs_srcdir=$ac_srcdir;;
31182 *)
31183   case $ac_srcdir in
31184   .) ac_abs_srcdir=$ac_abs_builddir;;
31185   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31186   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31187   esac;;
31188 esac
31189 case $ac_abs_builddir in
31190 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31191 *)
31192   case $ac_top_srcdir in
31193   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31194   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31195   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31196   esac;;
31197 esac
31198
31199
31200   case $INSTALL in
31201   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31202   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31203   esac
31204
31205   if test x"$ac_file" != x-; then
31206     { echo "$as_me:$LINENO: creating $ac_file" >&5
31207 echo "$as_me: creating $ac_file" >&6;}
31208     rm -f "$ac_file"
31209   fi
31210   # Let's still pretend it is `configure' which instantiates (i.e., don't
31211   # use $as_me), people would be surprised to read:
31212   #    /* config.h.  Generated by config.status.  */
31213   if test x"$ac_file" = x-; then
31214     configure_input=
31215   else
31216     configure_input="$ac_file.  "
31217   fi
31218   configure_input=$configure_input"Generated from `echo $ac_file_in |
31219                                      sed 's,.*/,,'` by configure."
31220
31221   # First look for the input files in the build tree, otherwise in the
31222   # src tree.
31223   ac_file_inputs=`IFS=:
31224     for f in $ac_file_in; do
31225       case $f in
31226       -) echo $tmp/stdin ;;
31227       [\\/$]*)
31228          # Absolute (can't be DOS-style, as IFS=:)
31229          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31230 echo "$as_me: error: cannot find input file: $f" >&2;}
31231    { (exit 1); exit 1; }; }
31232          echo "$f";;
31233       *) # Relative
31234          if test -f "$f"; then
31235            # Build tree
31236            echo "$f"
31237          elif test -f "$srcdir/$f"; then
31238            # Source tree
31239            echo "$srcdir/$f"
31240          else
31241            # /dev/null tree
31242            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31243 echo "$as_me: error: cannot find input file: $f" >&2;}
31244    { (exit 1); exit 1; }; }
31245          fi;;
31246       esac
31247     done` || { (exit 1); exit 1; }
31248 _ACEOF
31249 cat >>$CONFIG_STATUS <<_ACEOF
31250   sed "$ac_vpsub
31251 $extrasub
31252 _ACEOF
31253 cat >>$CONFIG_STATUS <<\_ACEOF
31254 :t
31255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31256 s,@configure_input@,$configure_input,;t t
31257 s,@srcdir@,$ac_srcdir,;t t
31258 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31259 s,@top_srcdir@,$ac_top_srcdir,;t t
31260 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31261 s,@builddir@,$ac_builddir,;t t
31262 s,@abs_builddir@,$ac_abs_builddir,;t t
31263 s,@top_builddir@,$ac_top_builddir,;t t
31264 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31265 s,@INSTALL@,$ac_INSTALL,;t t
31266 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31267   rm -f $tmp/stdin
31268   if test x"$ac_file" != x-; then
31269     mv $tmp/out $ac_file
31270   else
31271     cat $tmp/out
31272     rm -f $tmp/out
31273   fi
31274
31275 done
31276 _ACEOF
31277 cat >>$CONFIG_STATUS <<\_ACEOF
31278
31279 #
31280 # CONFIG_HEADER section.
31281 #
31282
31283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31285 #
31286 # ac_d sets the value in "#define NAME VALUE" lines.
31287 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31288 ac_dB='[         ].*$,\1#\2'
31289 ac_dC=' '
31290 ac_dD=',;t'
31291 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31292 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31293 ac_uB='$,\1#\2define\3'
31294 ac_uC=' '
31295 ac_uD=',;t'
31296
31297 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31298   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31299   case $ac_file in
31300   - | *:- | *:-:* ) # input from stdin
31301         cat >$tmp/stdin
31302         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31304   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31305         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31306   * )   ac_file_in=$ac_file.in ;;
31307   esac
31308
31309   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31310 echo "$as_me: creating $ac_file" >&6;}
31311
31312   # First look for the input files in the build tree, otherwise in the
31313   # src tree.
31314   ac_file_inputs=`IFS=:
31315     for f in $ac_file_in; do
31316       case $f in
31317       -) echo $tmp/stdin ;;
31318       [\\/$]*)
31319          # Absolute (can't be DOS-style, as IFS=:)
31320          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31321 echo "$as_me: error: cannot find input file: $f" >&2;}
31322    { (exit 1); exit 1; }; }
31323          # Do quote $f, to prevent DOS paths from being IFS'd.
31324          echo "$f";;
31325       *) # Relative
31326          if test -f "$f"; then
31327            # Build tree
31328            echo "$f"
31329          elif test -f "$srcdir/$f"; then
31330            # Source tree
31331            echo "$srcdir/$f"
31332          else
31333            # /dev/null tree
31334            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31335 echo "$as_me: error: cannot find input file: $f" >&2;}
31336    { (exit 1); exit 1; }; }
31337          fi;;
31338       esac
31339     done` || { (exit 1); exit 1; }
31340   # Remove the trailing spaces.
31341   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31342
31343 _ACEOF
31344
31345 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31346 # `conftest.undefs', that substitutes the proper values into
31347 # config.h.in to produce config.h.  The first handles `#define'
31348 # templates, and the second `#undef' templates.
31349 # And first: Protect against being on the right side of a sed subst in
31350 # config.status.  Protect against being in an unquoted here document
31351 # in config.status.
31352 rm -f conftest.defines conftest.undefs
31353 # Using a here document instead of a string reduces the quoting nightmare.
31354 # Putting comments in sed scripts is not portable.
31355 #
31356 # `end' is used to avoid that the second main sed command (meant for
31357 # 0-ary CPP macros) applies to n-ary macro definitions.
31358 # See the Autoconf documentation for `clear'.
31359 cat >confdef2sed.sed <<\_ACEOF
31360 s/[\\&,]/\\&/g
31361 s,[\\$`],\\&,g
31362 t clear
31363 : clear
31364 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31365 t end
31366 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31367 : end
31368 _ACEOF
31369 # If some macros were called several times there might be several times
31370 # the same #defines, which is useless.  Nevertheless, we may not want to
31371 # sort them, since we want the *last* AC-DEFINE to be honored.
31372 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31373 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31374 rm -f confdef2sed.sed
31375
31376 # This sed command replaces #undef with comments.  This is necessary, for
31377 # example, in the case of _POSIX_SOURCE, which is predefined and required
31378 # on some systems where configure will not decide to define it.
31379 cat >>conftest.undefs <<\_ACEOF
31380 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31381 _ACEOF
31382
31383 # Break up conftest.defines because some shells have a limit on the size
31384 # of here documents, and old seds have small limits too (100 cmds).
31385 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31386 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31387 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31388 echo '  :' >>$CONFIG_STATUS
31389 rm -f conftest.tail
31390 while grep . conftest.defines >/dev/null
31391 do
31392   # Write a limited-size here document to $tmp/defines.sed.
31393   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31394   # Speed up: don't consider the non `#define' lines.
31395   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31396   # Work around the forget-to-reset-the-flag bug.
31397   echo 't clr' >>$CONFIG_STATUS
31398   echo ': clr' >>$CONFIG_STATUS
31399   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31400   echo 'CEOF
31401   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31402   rm -f $tmp/in
31403   mv $tmp/out $tmp/in
31404 ' >>$CONFIG_STATUS
31405   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31406   rm -f conftest.defines
31407   mv conftest.tail conftest.defines
31408 done
31409 rm -f conftest.defines
31410 echo '  fi # grep' >>$CONFIG_STATUS
31411 echo >>$CONFIG_STATUS
31412
31413 # Break up conftest.undefs because some shells have a limit on the size
31414 # of here documents, and old seds have small limits too (100 cmds).
31415 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31416 rm -f conftest.tail
31417 while grep . conftest.undefs >/dev/null
31418 do
31419   # Write a limited-size here document to $tmp/undefs.sed.
31420   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31421   # Speed up: don't consider the non `#undef'
31422   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31423   # Work around the forget-to-reset-the-flag bug.
31424   echo 't clr' >>$CONFIG_STATUS
31425   echo ': clr' >>$CONFIG_STATUS
31426   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31427   echo 'CEOF
31428   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31429   rm -f $tmp/in
31430   mv $tmp/out $tmp/in
31431 ' >>$CONFIG_STATUS
31432   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31433   rm -f conftest.undefs
31434   mv conftest.tail conftest.undefs
31435 done
31436 rm -f conftest.undefs
31437
31438 cat >>$CONFIG_STATUS <<\_ACEOF
31439   # Let's still pretend it is `configure' which instantiates (i.e., don't
31440   # use $as_me), people would be surprised to read:
31441   #    /* config.h.  Generated by config.status.  */
31442   if test x"$ac_file" = x-; then
31443     echo "/* Generated by configure.  */" >$tmp/config.h
31444   else
31445     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31446   fi
31447   cat $tmp/in >>$tmp/config.h
31448   rm -f $tmp/in
31449   if test x"$ac_file" != x-; then
31450     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31451       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31452 echo "$as_me: $ac_file is unchanged" >&6;}
31453     else
31454       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31456          X"$ac_file" : 'X\(//\)[^/]' \| \
31457          X"$ac_file" : 'X\(//\)$' \| \
31458          X"$ac_file" : 'X\(/\)' \| \
31459          .     : '\(.\)' 2>/dev/null ||
31460 echo X"$ac_file" |
31461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31463           /^X\(\/\/\)$/{ s//\1/; q; }
31464           /^X\(\/\).*/{ s//\1/; q; }
31465           s/.*/./; q'`
31466       { if $as_mkdir_p; then
31467     mkdir -p "$ac_dir"
31468   else
31469     as_dir="$ac_dir"
31470     as_dirs=
31471     while test ! -d "$as_dir"; do
31472       as_dirs="$as_dir $as_dirs"
31473       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31475          X"$as_dir" : 'X\(//\)[^/]' \| \
31476          X"$as_dir" : 'X\(//\)$' \| \
31477          X"$as_dir" : 'X\(/\)' \| \
31478          .     : '\(.\)' 2>/dev/null ||
31479 echo X"$as_dir" |
31480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31481           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31482           /^X\(\/\/\)$/{ s//\1/; q; }
31483           /^X\(\/\).*/{ s//\1/; q; }
31484           s/.*/./; q'`
31485     done
31486     test ! -n "$as_dirs" || mkdir $as_dirs
31487   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31489    { (exit 1); exit 1; }; }; }
31490
31491       rm -f $ac_file
31492       mv $tmp/config.h $ac_file
31493     fi
31494   else
31495     cat $tmp/config.h
31496     rm -f $tmp/config.h
31497   fi
31498 done
31499 _ACEOF
31500 cat >>$CONFIG_STATUS <<\_ACEOF
31501
31502 #
31503 # CONFIG_COMMANDS section.
31504 #
31505 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31506   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31507   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31508   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31509 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31510          X"$ac_dest" : 'X\(//\)[^/]' \| \
31511          X"$ac_dest" : 'X\(//\)$' \| \
31512          X"$ac_dest" : 'X\(/\)' \| \
31513          .     : '\(.\)' 2>/dev/null ||
31514 echo X"$ac_dest" |
31515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31517           /^X\(\/\/\)$/{ s//\1/; q; }
31518           /^X\(\/\).*/{ s//\1/; q; }
31519           s/.*/./; q'`
31520   { if $as_mkdir_p; then
31521     mkdir -p "$ac_dir"
31522   else
31523     as_dir="$ac_dir"
31524     as_dirs=
31525     while test ! -d "$as_dir"; do
31526       as_dirs="$as_dir $as_dirs"
31527       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31529          X"$as_dir" : 'X\(//\)[^/]' \| \
31530          X"$as_dir" : 'X\(//\)$' \| \
31531          X"$as_dir" : 'X\(/\)' \| \
31532          .     : '\(.\)' 2>/dev/null ||
31533 echo X"$as_dir" |
31534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31535           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31536           /^X\(\/\/\)$/{ s//\1/; q; }
31537           /^X\(\/\).*/{ s//\1/; q; }
31538           s/.*/./; q'`
31539     done
31540     test ! -n "$as_dirs" || mkdir $as_dirs
31541   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31543    { (exit 1); exit 1; }; }; }
31544
31545   ac_builddir=.
31546
31547 if test "$ac_dir" != .; then
31548   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31549   # A "../" for each directory in $ac_dir_suffix.
31550   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31551 else
31552   ac_dir_suffix= ac_top_builddir=
31553 fi
31554
31555 case $srcdir in
31556   .)  # No --srcdir option.  We are building in place.
31557     ac_srcdir=.
31558     if test -z "$ac_top_builddir"; then
31559        ac_top_srcdir=.
31560     else
31561        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31562     fi ;;
31563   [\\/]* | ?:[\\/]* )  # Absolute path.
31564     ac_srcdir=$srcdir$ac_dir_suffix;
31565     ac_top_srcdir=$srcdir ;;
31566   *) # Relative path.
31567     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31568     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31569 esac
31570
31571 # Do not use `cd foo && pwd` to compute absolute paths, because
31572 # the directories may not exist.
31573 case `pwd` in
31574 .) ac_abs_builddir="$ac_dir";;
31575 *)
31576   case "$ac_dir" in
31577   .) ac_abs_builddir=`pwd`;;
31578   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31579   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31580   esac;;
31581 esac
31582 case $ac_abs_builddir in
31583 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31584 *)
31585   case ${ac_top_builddir}. in
31586   .) ac_abs_top_builddir=$ac_abs_builddir;;
31587   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31588   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31589   esac;;
31590 esac
31591 case $ac_abs_builddir in
31592 .) ac_abs_srcdir=$ac_srcdir;;
31593 *)
31594   case $ac_srcdir in
31595   .) ac_abs_srcdir=$ac_abs_builddir;;
31596   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31597   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31598   esac;;
31599 esac
31600 case $ac_abs_builddir in
31601 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31602 *)
31603   case $ac_top_srcdir in
31604   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31605   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31606   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31607   esac;;
31608 esac
31609
31610
31611   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31612 echo "$as_me: executing $ac_dest commands" >&6;}
31613   case $ac_dest in
31614     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31615    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31616     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31617    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31618     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31619    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31620     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31621    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31622     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31623    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31624     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31625    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31626     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31627    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31628     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31629    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31630     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31631    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31632     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31633    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31634   esac
31635 done
31636 _ACEOF
31637
31638 cat >>$CONFIG_STATUS <<\_ACEOF
31639
31640 { (exit 0); exit 0; }
31641 _ACEOF
31642 chmod +x $CONFIG_STATUS
31643 ac_clean_files=$ac_clean_files_save
31644
31645
31646 # configure is writing to config.log, and then calls config.status.
31647 # config.status does its own redirection, appending to config.log.
31648 # Unfortunately, on DOS this fails, as config.log is still kept open
31649 # by configure, so config.status won't be able to write to it; its
31650 # output is simply discarded.  So we exec the FD to /dev/null,
31651 # effectively closing config.log, so it can be properly (re)opened and
31652 # appended to by config.status.  When coming back to configure, we
31653 # need to make the FD available again.
31654 if test "$no_create" != yes; then
31655   ac_cs_success=:
31656   ac_config_status_args=
31657   test "$silent" = yes &&
31658     ac_config_status_args="$ac_config_status_args --quiet"
31659   exec 5>/dev/null
31660   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31661   exec 5>>config.log
31662   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31663   # would make configure fail if this is the last instruction.
31664   $ac_cs_success || { (exit 1); exit 1; }
31665 fi
31666
31667 #
31668 # CONFIG_SUBDIRS section.
31669 #
31670 if test "$no_recursion" != yes; then
31671
31672   # Remove --cache-file and --srcdir arguments so they do not pile up.
31673   ac_sub_configure_args=
31674   ac_prev=
31675   for ac_arg in $ac_configure_args; do
31676     if test -n "$ac_prev"; then
31677       ac_prev=
31678       continue
31679     fi
31680     case $ac_arg in
31681     -cache-file | --cache-file | --cache-fil | --cache-fi \
31682     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31683       ac_prev=cache_file ;;
31684     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31685     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31686     | --c=*)
31687       ;;
31688     --config-cache | -C)
31689       ;;
31690     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31691       ac_prev=srcdir ;;
31692     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31693       ;;
31694     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31695       ac_prev=prefix ;;
31696     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31697       ;;
31698     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31699     esac
31700   done
31701
31702   # Always prepend --prefix to ensure using the same prefix
31703   # in subdir configurations.
31704   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31705
31706   ac_popdir=`pwd`
31707   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31708
31709     # Do not complain, so a configure script can configure whichever
31710     # parts of a large source tree are present.
31711     test -d $srcdir/$ac_dir || continue
31712
31713     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31714 echo "$as_me: configuring in $ac_dir" >&6;}
31715     { if $as_mkdir_p; then
31716     mkdir -p "$ac_dir"
31717   else
31718     as_dir="$ac_dir"
31719     as_dirs=
31720     while test ! -d "$as_dir"; do
31721       as_dirs="$as_dir $as_dirs"
31722       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31724          X"$as_dir" : 'X\(//\)[^/]' \| \
31725          X"$as_dir" : 'X\(//\)$' \| \
31726          X"$as_dir" : 'X\(/\)' \| \
31727          .     : '\(.\)' 2>/dev/null ||
31728 echo X"$as_dir" |
31729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31730           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31731           /^X\(\/\/\)$/{ s//\1/; q; }
31732           /^X\(\/\).*/{ s//\1/; q; }
31733           s/.*/./; q'`
31734     done
31735     test ! -n "$as_dirs" || mkdir $as_dirs
31736   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31738    { (exit 1); exit 1; }; }; }
31739
31740     ac_builddir=.
31741
31742 if test "$ac_dir" != .; then
31743   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31744   # A "../" for each directory in $ac_dir_suffix.
31745   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31746 else
31747   ac_dir_suffix= ac_top_builddir=
31748 fi
31749
31750 case $srcdir in
31751   .)  # No --srcdir option.  We are building in place.
31752     ac_srcdir=.
31753     if test -z "$ac_top_builddir"; then
31754        ac_top_srcdir=.
31755     else
31756        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31757     fi ;;
31758   [\\/]* | ?:[\\/]* )  # Absolute path.
31759     ac_srcdir=$srcdir$ac_dir_suffix;
31760     ac_top_srcdir=$srcdir ;;
31761   *) # Relative path.
31762     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31763     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31764 esac
31765
31766 # Do not use `cd foo && pwd` to compute absolute paths, because
31767 # the directories may not exist.
31768 case `pwd` in
31769 .) ac_abs_builddir="$ac_dir";;
31770 *)
31771   case "$ac_dir" in
31772   .) ac_abs_builddir=`pwd`;;
31773   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31774   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31775   esac;;
31776 esac
31777 case $ac_abs_builddir in
31778 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31779 *)
31780   case ${ac_top_builddir}. in
31781   .) ac_abs_top_builddir=$ac_abs_builddir;;
31782   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31783   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31784   esac;;
31785 esac
31786 case $ac_abs_builddir in
31787 .) ac_abs_srcdir=$ac_srcdir;;
31788 *)
31789   case $ac_srcdir in
31790   .) ac_abs_srcdir=$ac_abs_builddir;;
31791   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31792   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31793   esac;;
31794 esac
31795 case $ac_abs_builddir in
31796 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31797 *)
31798   case $ac_top_srcdir in
31799   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31800   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31801   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31802   esac;;
31803 esac
31804
31805
31806     cd $ac_dir
31807
31808     # Check for guested configure; otherwise get Cygnus style configure.
31809     if test -f $ac_srcdir/configure.gnu; then
31810       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31811     elif test -f $ac_srcdir/configure; then
31812       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31813     elif test -f $ac_srcdir/configure.in; then
31814       ac_sub_configure=$ac_configure
31815     else
31816       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31817 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31818       ac_sub_configure=
31819     fi
31820
31821     # The recursion is here.
31822     if test -n "$ac_sub_configure"; then
31823       # Make the cache file name correct relative to the subdirectory.
31824       case $cache_file in
31825       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31826       *) # Relative path.
31827         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31828       esac
31829
31830       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31831 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31832       # The eval makes quoting arguments work.
31833       eval $ac_sub_configure $ac_sub_configure_args \
31834            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31835         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31836 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31837    { (exit 1); exit 1; }; }
31838     fi
31839
31840     cd $ac_popdir
31841   done
31842 fi
31843
31844
31845 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31846  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31847 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31848  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31849 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31850  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31851 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31852  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31853 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31854  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31855 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31856 fi