Remove LLVMGCCDIR from the set of defines.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # $LLVM_COPYRIGHT
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.4:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039   --enable-doxygen        Build doxygen documentation (default is NO)
1040   --enable-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       Location of LLVM GCC front-end
1053   --with-tclinclude       directory where tcl headers are
1054   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055   --with-pic              try to use only PIC/non-PIC objects [default=use
1056                           both]
1057   --with-tags[=TAGS]
1058                           include additional configurations [automatic]
1059
1060 Some influential environment variables:
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064               nonstandard directory <lib dir>
1065   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066               headers in a nonstandard directory <include dir>
1067   CPP         C preprocessor
1068   CXX         C++ compiler command
1069   CXXFLAGS    C++ compiler flags
1070   CXXCPP      C++ preprocessor
1071   F77         Fortran 77 compiler command
1072   FFLAGS      Fortran 77 compiler flags
1073
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1076
1077 Report bugs to <llvmbugs@cs.uiuc.edu>.
1078 _ACEOF
1079 fi
1080
1081 if test "$ac_init_help" = "recursive"; then
1082   # If there are subdirs, report their specific --help.
1083   ac_popdir=`pwd`
1084   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085     test -d $ac_dir || continue
1086     ac_builddir=.
1087
1088 if test "$ac_dir" != .; then
1089   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090   # A "../" for each directory in $ac_dir_suffix.
1091   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 else
1093   ac_dir_suffix= ac_top_builddir=
1094 fi
1095
1096 case $srcdir in
1097   .)  # No --srcdir option.  We are building in place.
1098     ac_srcdir=.
1099     if test -z "$ac_top_builddir"; then
1100        ac_top_srcdir=.
1101     else
1102        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103     fi ;;
1104   [\\/]* | ?:[\\/]* )  # Absolute path.
1105     ac_srcdir=$srcdir$ac_dir_suffix;
1106     ac_top_srcdir=$srcdir ;;
1107   *) # Relative path.
1108     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 esac
1111
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1114 case `pwd` in
1115 .) ac_abs_builddir="$ac_dir";;
1116 *)
1117   case "$ac_dir" in
1118   .) ac_abs_builddir=`pwd`;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126   case ${ac_top_builddir}. in
1127   .) ac_abs_top_builddir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135   case $ac_srcdir in
1136   .) ac_abs_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139   esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144   case $ac_top_srcdir in
1145   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148   esac;;
1149 esac
1150
1151     cd $ac_dir
1152     # Check for guested configure; otherwise get Cygnus style configure.
1153     if test -f $ac_srcdir/configure.gnu; then
1154       echo
1155       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156     elif test -f $ac_srcdir/configure; then
1157       echo
1158       $SHELL $ac_srcdir/configure  --help=recursive
1159     elif test -f $ac_srcdir/configure.ac ||
1160            test -f $ac_srcdir/configure.in; then
1161       echo
1162       $ac_configure --help
1163     else
1164       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165     fi
1166     cd $ac_popdir
1167   done
1168 fi
1169
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172   cat <<\_ACEOF
1173 llvm configure 1.4
1174 generated by GNU Autoconf 2.59
1175
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1179
1180 $LLVM_COPYRIGHT
1181 _ACEOF
1182   exit 0
1183 fi
1184 exec 5>config.log
1185 cat >&5 <<_ACEOF
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1188
1189 It was created by llvm $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59.  Invocation command line was
1191
1192   $ $0 $@
1193
1194 _ACEOF
1195 {
1196 cat <<_ASUNAME
1197 ## --------- ##
1198 ## Platform. ##
1199 ## --------- ##
1200
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1209
1210 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1211 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1214 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1215 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1216 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1217
1218 _ASUNAME
1219
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 for as_dir in $PATH
1222 do
1223   IFS=$as_save_IFS
1224   test -z "$as_dir" && as_dir=.
1225   echo "PATH: $as_dir"
1226 done
1227
1228 } >&5
1229
1230 cat >&5 <<_ACEOF
1231
1232
1233 ## ----------- ##
1234 ## Core tests. ##
1235 ## ----------- ##
1236
1237 _ACEOF
1238
1239
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1245 ac_configure_args=
1246 ac_configure_args0=
1247 ac_configure_args1=
1248 ac_sep=
1249 ac_must_keep_next=false
1250 for ac_pass in 1 2
1251 do
1252   for ac_arg
1253   do
1254     case $ac_arg in
1255     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257     | -silent | --silent | --silen | --sile | --sil)
1258       continue ;;
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     esac
1262     case $ac_pass in
1263     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264     2)
1265       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266       if test $ac_must_keep_next = true; then
1267         ac_must_keep_next=false # Got value, back to normal.
1268       else
1269         case $ac_arg in
1270           *=* | --config-cache | -C | -disable-* | --disable-* \
1271           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273           | -with-* | --with-* | -without-* | --without-* | --x)
1274             case "$ac_configure_args0 " in
1275               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276             esac
1277             ;;
1278           -* ) ac_must_keep_next=true ;;
1279         esac
1280       fi
1281       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282       # Get rid of the leading space.
1283       ac_sep=" "
1284       ;;
1285     esac
1286   done
1287 done
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log.  We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297   # Save into config.log some information that might help in debugging.
1298   {
1299     echo
1300
1301     cat <<\_ASBOX
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1305 _ASBOX
1306     echo
1307     # The following way of writing the cache mishandles newlines in values,
1308 {
1309   (set) 2>&1 |
1310     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311     *ac_space=\ *)
1312       sed -n \
1313         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315       ;;
1316     *)
1317       sed -n \
1318         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319       ;;
1320     esac;
1321 }
1322     echo
1323
1324     cat <<\_ASBOX
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1328 _ASBOX
1329     echo
1330     for ac_var in $ac_subst_vars
1331     do
1332       eval ac_val=$`echo $ac_var`
1333       echo "$ac_var='"'"'$ac_val'"'"'"
1334     done | sort
1335     echo
1336
1337     if test -n "$ac_subst_files"; then
1338       cat <<\_ASBOX
1339 ## ------------- ##
1340 ## Output files. ##
1341 ## ------------- ##
1342 _ASBOX
1343       echo
1344       for ac_var in $ac_subst_files
1345       do
1346         eval ac_val=$`echo $ac_var`
1347         echo "$ac_var='"'"'$ac_val'"'"'"
1348       done | sort
1349       echo
1350     fi
1351
1352     if test -s confdefs.h; then
1353       cat <<\_ASBOX
1354 ## ----------- ##
1355 ## confdefs.h. ##
1356 ## ----------- ##
1357 _ASBOX
1358       echo
1359       sed "/^$/d" confdefs.h | sort
1360       echo
1361     fi
1362     test "$ac_signal" != 0 &&
1363       echo "$as_me: caught signal $ac_signal"
1364     echo "$as_me: exit $exit_status"
1365   } >&5
1366   rm -f core *.core &&
1367   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368     exit $exit_status
1369      ' 0
1370 for ac_signal in 1 2 13 15; do
1371   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 done
1373 ac_signal=0
1374
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378 echo >confdefs.h
1379
1380 # Predefined preprocessor variables.
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 _ACEOF
1405
1406
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410   if test "x$prefix" != xNONE; then
1411     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412   else
1413     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414   fi
1415 fi
1416 for ac_site_file in $CONFIG_SITE; do
1417   if test -r "$ac_site_file"; then
1418     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420     sed 's/^/| /' "$ac_site_file" >&5
1421     . "$ac_site_file"
1422   fi
1423 done
1424
1425 if test -r "$cache_file"; then
1426   # Some versions of bash will fail to source /dev/null (special
1427   # files actually), so we avoid doing that.
1428   if test -f "$cache_file"; then
1429     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1431     case $cache_file in
1432       [\\/]* | ?:[\\/]* ) . $cache_file;;
1433       *)                      . ./$cache_file;;
1434     esac
1435   fi
1436 else
1437   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1439   >$cache_file
1440 fi
1441
1442 # Check that the precious variables saved in the cache have kept the same
1443 # value.
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448   eval ac_new_set=\$ac_env_${ac_var}_set
1449   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450   eval ac_new_val="\$ac_env_${ac_var}_value"
1451   case $ac_old_set,$ac_new_set in
1452     set,)
1453       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455       ac_cache_corrupted=: ;;
1456     ,set)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,);;
1461     *)
1462       if test "x$ac_old_val" != "x$ac_new_val"; then
1463         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1466 echo "$as_me:   former value:  $ac_old_val" >&2;}
1467         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1468 echo "$as_me:   current value: $ac_new_val" >&2;}
1469         ac_cache_corrupted=:
1470       fi;;
1471   esac
1472   # Pass precious variables to config.status.
1473   if test "$ac_new_set" = set; then
1474     case $ac_new_val in
1475     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477     *) ac_arg=$ac_var=$ac_new_val ;;
1478     esac
1479     case " $ac_configure_args " in
1480       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1481       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482     esac
1483   fi
1484 done
1485 if $ac_cache_corrupted; then
1486   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 ac_ext=c
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
1534 ac_aux_dir=
1535 for ac_dir in autoconf $srcdir/autoconf; do
1536   if test -f $ac_dir/install-sh; then
1537     ac_aux_dir=$ac_dir
1538     ac_install_sh="$ac_aux_dir/install-sh -c"
1539     break
1540   elif test -f $ac_dir/install.sh; then
1541     ac_aux_dir=$ac_dir
1542     ac_install_sh="$ac_aux_dir/install.sh -c"
1543     break
1544   elif test -f $ac_dir/shtool; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/shtool install -c"
1547     break
1548   fi
1549 done
1550 if test -z "$ac_aux_dir"; then
1551   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1553    { (exit 1); exit 1; }; }
1554 fi
1555 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
1559
1560 if test ${srcdir} != "." ; then
1561   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1563 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564    { (exit 1); exit 1; }; }
1565   fi
1566 fi
1567
1568 for i in `ls ${srcdir}/projects`
1569 do
1570   if test -d ${srcdir}/projects/${i} ; then
1571     case ${i} in
1572       "CVS") ;;
1573       "sample")
1574
1575 subdirs="$subdirs projects/sample"
1576     ;;
1577       "Stacker")
1578
1579 subdirs="$subdirs projects/Stacker"
1580    ;;
1581       "llvm-test")
1582
1583 subdirs="$subdirs projects/llvm-test"
1584  ;;
1585       "llvm-reopt")
1586
1587 subdirs="$subdirs projects/llvm-reopt"
1588 ;;
1589       "llvm-gcc")
1590
1591 subdirs="$subdirs projects/llvm-gcc"
1592   ;;
1593       "Java")
1594
1595 subdirs="$subdirs projects/Java"
1596       ;;
1597       "llvm-tv")
1598
1599 subdirs="$subdirs projects/llvm-tv"
1600    ;;
1601       "llvm-fefw")
1602
1603 subdirs="$subdirs projects/llvm-fefw"
1604  ;;
1605       "poolalloc")
1606
1607 subdirs="$subdirs projects/poolalloc"
1608  ;;
1609       *)
1610         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1612         ;;
1613     esac
1614   fi
1615 done
1616
1617
1618 # Make sure we can run config.sub.
1619 $ac_config_sub sun4 >/dev/null 2>&1 ||
1620   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 echo "$as_me:$LINENO: checking build system type" >&5
1625 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626 if test "${ac_cv_build+set}" = set; then
1627   echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629   ac_cv_build_alias=$build_alias
1630 test -z "$ac_cv_build_alias" &&
1631   ac_cv_build_alias=`$ac_config_guess`
1632 test -z "$ac_cv_build_alias" &&
1633   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635    { (exit 1); exit 1; }; }
1636 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639    { (exit 1); exit 1; }; }
1640
1641 fi
1642 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643 echo "${ECHO_T}$ac_cv_build" >&6
1644 build=$ac_cv_build
1645 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650 echo "$as_me:$LINENO: checking host system type" >&5
1651 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652 if test "${ac_cv_host+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   ac_cv_host_alias=$host_alias
1656 test -z "$ac_cv_host_alias" &&
1657   ac_cv_host_alias=$ac_cv_build_alias
1658 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661    { (exit 1); exit 1; }; }
1662
1663 fi
1664 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665 echo "${ECHO_T}$ac_cv_host" >&6
1666 host=$ac_cv_host
1667 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672 echo "$as_me:$LINENO: checking target system type" >&5
1673 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674 if test "${ac_cv_target+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   ac_cv_target_alias=$target_alias
1678 test "x$ac_cv_target_alias" = "x" &&
1679   ac_cv_target_alias=$ac_cv_host_alias
1680 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683    { (exit 1); exit 1; }; }
1684
1685 fi
1686 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687 echo "${ECHO_T}$ac_cv_target" >&6
1688 target=$ac_cv_target
1689 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694 # The aliases save the names the user supplied, while $host etc.
1695 # will get canonicalized.
1696 test -n "$target_alias" &&
1697   test "$program_prefix$program_suffix$program_transform_name" = \
1698     NONENONEs,x,x, &&
1699   program_prefix=${target_alias}-
1700
1701 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1703 if test "${llvm_cv_platform_type+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   case $build in
1707   *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708   *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709   *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710   *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711   *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712   *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713   *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714   *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715   *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716   *) llvm_cv_platform_type="Unknown" ;;
1717 esac
1718 fi
1719 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1721
1722 if test "$llvm_cv_platform_type" = "Unknown" ; then
1723   { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1725    { (exit 1); exit 1; }; }
1726 fi
1727
1728 OS=$llvm_cv_platform_type
1729
1730
1731           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1732
1733
1734 case $target in
1735   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1736
1737   ;;
1738 esac
1739
1740 echo "$as_me:$LINENO: checking target architecture" >&5
1741 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1742 if test "${llvm_cv_target_arch+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   case $target in
1746   i*86-*)      llvm_cv_target_arch="x86" ;;
1747   sparc*-*)    llvm_cv_target_arch="Sparc" ;;
1748   powerpc*-*)  llvm_cv_target_arch="PowerPC" ;;
1749   *)           llvm_cv_target_arch="Unknown" ;;
1750 esac
1751 fi
1752 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1754
1755 if test "$llvm_cv_target_arch" = "Unknown" ; then
1756   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758 fi
1759
1760 ARCH=$llvm_cv_target_arch
1761
1762
1763 ac_ext=c
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$CC"; then
1777   ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   for ac_exec_ext in '' $ac_executable_extensions; do
1785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 fi
1794 fi
1795 CC=$ac_cv_prog_CC
1796 if test -n "$CC"; then
1797   echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804 fi
1805 if test -z "$ac_cv_prog_CC"; then
1806   ac_ct_CC=$CC
1807   # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$ac_ct_CC"; then
1815   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_ac_ct_CC="gcc"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842   CC=$ac_ct_CC
1843 else
1844   CC="$ac_cv_prog_CC"
1845 fi
1846
1847 if test -z "$CC"; then
1848   if test -n "$ac_tool_prefix"; then
1849   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854   echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856   if test -n "$CC"; then
1857   ac_cv_prog_CC="$CC" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864   for ac_exec_ext in '' $ac_executable_extensions; do
1865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866     ac_cv_prog_CC="${ac_tool_prefix}cc"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873 fi
1874 fi
1875 CC=$ac_cv_prog_CC
1876 if test -n "$CC"; then
1877   echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1879 else
1880   echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882 fi
1883
1884 fi
1885 if test -z "$ac_cv_prog_CC"; then
1886   ac_ct_CC=$CC
1887   # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   if test -n "$ac_ct_CC"; then
1895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900   IFS=$as_save_IFS
1901   test -z "$as_dir" && as_dir=.
1902   for ac_exec_ext in '' $ac_executable_extensions; do
1903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904     ac_cv_prog_ac_ct_CC="cc"
1905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906     break 2
1907   fi
1908 done
1909 done
1910
1911 fi
1912 fi
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1917 else
1918   echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922   CC=$ac_ct_CC
1923 else
1924   CC="$ac_cv_prog_CC"
1925 fi
1926
1927 fi
1928 if test -z "$CC"; then
1929   # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$CC"; then
1937   ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939   ac_prog_rejected=no
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945   for ac_exec_ext in '' $ac_executable_extensions; do
1946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948        ac_prog_rejected=yes
1949        continue
1950      fi
1951     ac_cv_prog_CC="cc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 if test $ac_prog_rejected = yes; then
1959   # We found a bogon in the path, so make sure we never use it.
1960   set dummy $ac_cv_prog_CC
1961   shift
1962   if test $# != 0; then
1963     # We chose a different compiler from the bogus one.
1964     # However, it has the same basename, so the bogon will be chosen
1965     # first if we set CC to just the basename; use the full file name.
1966     shift
1967     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968   fi
1969 fi
1970 fi
1971 fi
1972 CC=$ac_cv_prog_CC
1973 if test -n "$CC"; then
1974   echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1976 else
1977   echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981 fi
1982 if test -z "$CC"; then
1983   if test -n "$ac_tool_prefix"; then
1984   for ac_prog in cl
1985   do
1986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006   fi
2007 done
2008 done
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014   echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017   echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2019 fi
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in cl
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063   test -n "$ac_ct_CC" && break
2064 done
2065
2066   CC=$ac_ct_CC
2067 fi
2068
2069 fi
2070
2071
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080      "checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083   (eval $ac_compiler --version </dev/null >&5) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088   (eval $ac_compiler -v </dev/null >&5) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093   (eval $ac_compiler -V </dev/null >&5) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h.  */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h.  */
2104
2105 int
2106 main ()
2107 {
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2117 # of exeext.
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122   (eval $ac_link_default) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }; then
2126   # Find the output, starting from the most likely.  This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128 # resort.
2129
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 ac_cv_exeext=
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135 do
2136   test -f "$ac_file" || continue
2137   case $ac_file in
2138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139         ;;
2140     conftest.$ac_ext )
2141         # This is the source file.
2142         ;;
2143     [ab].out )
2144         # We found the default executable, but exeext='' is most
2145         # certainly right.
2146         break;;
2147     *.* )
2148         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149         # FIXME: I believe we export ac_cv_exeext for Libtool,
2150         # but it would be cool to find out if it's true.  Does anybody
2151         # maintain Libtool? --akim.
2152         export ac_cv_exeext
2153         break;;
2154     * )
2155         break;;
2156   esac
2157 done
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166    { (exit 77); exit 77; }; }
2167 fi
2168
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2172
2173 # Check the compiler produces executables we can run.  If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180   if { ac_try='./$ac_file'
2181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182   (eval $ac_try) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; }; then
2186     cross_compiling=no
2187   else
2188     if test "$cross_compiling" = maybe; then
2189         cross_compiling=yes
2190     else
2191         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197    { (exit 1); exit 1; }; }
2198     fi
2199   fi
2200 fi
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2203
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run.  If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2212
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216   (eval $ac_link) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; then
2220   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 # `rm'.
2224 for ac_file in conftest.exe conftest conftest.*; do
2225   test -f "$ac_file" || continue
2226   case $ac_file in
2227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229           export ac_cv_exeext
2230           break;;
2231     * ) break;;
2232   esac
2233 done
2234 else
2235   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2248 ac_exeext=$EXEEXT
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h.  */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h.  */
2260
2261 int
2262 main ()
2263 {
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276   case $ac_file in
2277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279        break;;
2280   esac
2281 done
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 fi
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2298 ac_objext=$OBJEXT
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310
2311 int
2312 main ()
2313 {
2314 #ifndef __GNUC__
2315        choke me
2316 #endif
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>conftest.er1
2325   ac_status=$?
2326   grep -v '^ *+' conftest.er1 >conftest.err
2327   rm -f conftest.er1
2328   cat conftest.err >&5
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); } &&
2331          { ac_try='test -z "$ac_c_werror_flag"
2332                          || test ! -s conftest.err'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; } &&
2338          { ac_try='test -s conftest.$ac_objext'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; }; then
2344   ac_compiler_gnu=yes
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_compiler_gnu=no
2350 fi
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353
2354 fi
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2360 CFLAGS="-g"
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>conftest.er1
2384   ac_status=$?
2385   grep -v '^ *+' conftest.er1 >conftest.err
2386   rm -f conftest.er1
2387   cat conftest.err >&5
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); } &&
2390          { ac_try='test -z "$ac_c_werror_flag"
2391                          || test ! -s conftest.err'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; } &&
2397          { ac_try='test -s conftest.$ac_objext'
2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399   (eval $ac_try) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; }; then
2403   ac_cv_prog_cc_g=yes
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_cv_prog_cc_g=no
2409 fi
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415   CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417   if test "$GCC" = yes; then
2418     CFLAGS="-g -O2"
2419   else
2420     CFLAGS="-g"
2421   fi
2422 else
2423   if test "$GCC" = yes; then
2424     CFLAGS="-O2"
2425   else
2426     CFLAGS=
2427   fi
2428 fi
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   ac_cv_prog_cc_stdc=no
2435 ac_save_CC=$CC
2436 cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442 #include <stdarg.h>
2443 #include <stdio.h>
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2450      char **p;
2451      int i;
2452 {
2453   return p[i];
2454 }
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2456 {
2457   char *s;
2458   va_list v;
2459   va_start (v,p);
2460   s = g (p, va_arg (v,int));
2461   va_end (v);
2462   return s;
2463 }
2464
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2466    function prototypes and stuff, but not '\xHH' hex character constants.
2467    These don't provoke an error unfortunately, instead are silently treated
2468    as 'x'.  The following induces an error, until -std1 is added to get
2469    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2470    array size at least.  It's necessary to write '\x00'==0 to get something
2471    that's true only with -std1.  */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478 int argc;
2479 char **argv;
2480 int
2481 main ()
2482 {
2483 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX                   -qlanglvl=ansi
2491 # Ultrix and OSF/1      -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2494 # SVR4                  -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496 do
2497   CC="$ac_save_CC $ac_arg"
2498   rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500   (eval $ac_compile) 2>conftest.er1
2501   ac_status=$?
2502   grep -v '^ *+' conftest.er1 >conftest.err
2503   rm -f conftest.er1
2504   cat conftest.err >&5
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -z "$ac_c_werror_flag"
2508                          || test ! -s conftest.err'
2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510   (eval $ac_try) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; } &&
2514          { ac_try='test -s conftest.$ac_objext'
2515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516   (eval $ac_try) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; }; then
2520   ac_cv_prog_cc_stdc=$ac_arg
2521 break
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 fi
2527 rm -f conftest.err conftest.$ac_objext
2528 done
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2530 CC=$ac_save_CC
2531
2532 fi
2533
2534 case "x$ac_cv_prog_cc_stdc" in
2535   x|xno)
2536     echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2538   *)
2539     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541     CC="$CC $ac_cv_prog_cc_stdc" ;;
2542 esac
2543
2544 # Some people use a C++ compiler to compile C.  Since we use `exit',
2545 # in C++ we need to declare it.  In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2549 #ifndef __cplusplus
2550   choke me
2551 #endif
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555   (eval $ac_compile) 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag"
2563                          || test ! -s conftest.err'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   for ac_declaration in \
2576    '' \
2577    'extern "C" void std::exit (int) throw (); using std::exit;' \
2578    'extern "C" void std::exit (int); using std::exit;' \
2579    'extern "C" void exit (int) throw ();' \
2580    'extern "C" void exit (int);' \
2581    'void exit (int);'
2582 do
2583   cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589 $ac_declaration
2590 #include <stdlib.h>
2591 int
2592 main ()
2593 {
2594 exit (42);
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_c_werror_flag"
2609                          || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   :
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 continue
2627 fi
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635 $ac_declaration
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   break
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 fi
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 done
2674 rm -f conftest*
2675 if test -n "$ac_declaration"; then
2676   echo '#ifdef __cplusplus' >>confdefs.h
2677   echo $ac_declaration      >>confdefs.h
2678   echo '#endif'             >>confdefs.h
2679 fi
2680
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696 if test "${ac_cv_c_bigendian+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   # See if sys/param.h defines the BYTE_ORDER macro.
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 #include <sys/types.h>
2707 #include <sys/param.h>
2708
2709 int
2710 main ()
2711 {
2712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713  bogus endian macros
2714 #endif
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   # It does; now see whether it defined to BIG_ENDIAN or not.
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2751
2752 int
2753 main ()
2754 {
2755 #if BYTE_ORDER != BIG_ENDIAN
2756  not big endian
2757 #endif
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_c_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   ac_cv_c_bigendian=yes
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 ac_cv_c_bigendian=no
2791 fi
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 # It does not; compile a test program.
2798 if test "$cross_compiling" = yes; then
2799   # try to guess the endianness by grepping values into an object file
2800   ac_cv_c_bigendian=unknown
2801   cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813 int
2814 main ()
2815 {
2816  _ascii (); _ebcdic ();
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823   (eval $ac_compile) 2>conftest.er1
2824   ac_status=$?
2825   grep -v '^ *+' conftest.er1 >conftest.err
2826   rm -f conftest.er1
2827   cat conftest.err >&5
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); } &&
2830          { ac_try='test -z "$ac_c_werror_flag"
2831                          || test ! -s conftest.err'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; } &&
2837          { ac_try='test -s conftest.$ac_objext'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; }; then
2843   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844   ac_cv_c_bigendian=yes
2845 fi
2846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847   if test "$ac_cv_c_bigendian" = unknown; then
2848     ac_cv_c_bigendian=no
2849   else
2850     # finding both strings is unlikely to happen, but who knows?
2851     ac_cv_c_bigendian=unknown
2852   fi
2853 fi
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 fi
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 else
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 int
2868 main ()
2869 {
2870   /* Are we little or big endian?  From Harbison&Steele.  */
2871   union
2872   {
2873     long l;
2874     char c[sizeof (long)];
2875   } u;
2876   u.l = 1;
2877   exit (u.c[sizeof (long) - 1] == 1);
2878 }
2879 _ACEOF
2880 rm -f conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882   (eval $ac_link) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_c_bigendian=no
2892 else
2893   echo "$as_me: program exited with status $ac_status" >&5
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ( exit $ac_status )
2898 ac_cv_c_bigendian=yes
2899 fi
2900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901 fi
2902 fi
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 fi
2905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907 case $ac_cv_c_bigendian in
2908   yes)
2909     ENDIAN=big
2910  ;;
2911   no)
2912     ENDIAN=little
2913  ;;
2914   *)
2915     { { echo "$as_me:$LINENO: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917 echo "$as_me: error: unknown endianness
2918 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919    { (exit 1); exit 1; }; } ;;
2920 esac
2921
2922
2923
2924 # Check whether --enable-optimized or --disable-optimized was given.
2925 if test "${enable_optimized+set}" = set; then
2926   enableval="$enable_optimized"
2927
2928 else
2929   enableval=no
2930 fi;
2931 if test ${enableval} = "no" ; then
2932   ENABLE_OPTIMIZED=
2933
2934 else
2935   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937 fi
2938
2939 # Check whether --enable-jit or --disable-jit was given.
2940 if test "${enable_jit+set}" = set; then
2941   enableval="$enable_jit"
2942
2943 else
2944   enableval=default
2945 fi;
2946 if test ${enableval} = "no"
2947 then
2948   JIT=
2949
2950 else
2951   case "$llvm_cv_target_arch" in
2952     x86)     JIT=TARGET_HAS_JIT=1
2953  ;;
2954     Sparc)   JIT=TARGET_HAS_JIT=1
2955  ;;
2956     PowerPC) JIT=TARGET_HAS_JIT=1
2957  ;;
2958     *)       JIT=
2959  ;;
2960   esac
2961 fi
2962
2963 # Check whether --enable-doxygen or --disable-doxygen was given.
2964 if test "${enable_doxygen+set}" = set; then
2965   enableval="$enable_doxygen"
2966
2967 else
2968   enableval=default
2969 fi;
2970 case "$enableval" in
2971   yes) ENABLE_DOXYGEN=1
2972  ;;
2973   no)  ENABLE_DOXYGEN=0
2974  ;;
2975   default) ENABLE_DOXYGEN=0
2976  ;;
2977   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979    { (exit 1); exit 1; }; } ;;
2980 esac
2981
2982
2983 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984 if test "${with_llvmgccdir+set}" = set; then
2985   withval="$with_llvmgccdir"
2986   LLVMGCCDIR=$withval
2987
2988 fi;
2989
2990 if test "x$LLVMGCCDIR" = x ; then
2991   case "$llvm_cv_platform_type" in
2992     Linux)
2993       if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996       fi
2997       ;;
2998     SunOS)
2999       if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002       fi
3003       ;;
3004   esac
3005 fi
3006
3007
3008
3009 ac_ext=c
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3016 # On Suns, sometimes $CPP names a directory.
3017 if test -n "$CPP" && test -d "$CPP"; then
3018   CPP=
3019 fi
3020 if test -z "$CPP"; then
3021   if test "${ac_cv_prog_CPP+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024       # Double quotes because CPP needs to be expanded
3025     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026     do
3027       ac_preproc_ok=false
3028 for ac_c_preproc_warn_flag in '' yes
3029 do
3030   # Use a header file that comes with gcc, so configuring glibc
3031   # with a fresh cross-compiler works.
3032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3033   # <limits.h> exists even on freestanding compilers.
3034   # On the NeXT, cc -E runs the code through the compiler's parser,
3035   # not just through cpp. "Syntax error" is here to catch this case.
3036   cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042 #ifdef __STDC__
3043 # include <limits.h>
3044 #else
3045 # include <assert.h>
3046 #endif
3047                      Syntax error
3048 _ACEOF
3049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } >/dev/null; then
3057   if test -s conftest.err; then
3058     ac_cpp_err=$ac_c_preproc_warn_flag
3059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3060   else
3061     ac_cpp_err=
3062   fi
3063 else
3064   ac_cpp_err=yes
3065 fi
3066 if test -z "$ac_cpp_err"; then
3067   :
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072   # Broken: fails on valid input.
3073 continue
3074 fi
3075 rm -f conftest.err conftest.$ac_ext
3076
3077   # OK, works on sane cases.  Now check whether non-existent headers
3078   # can be detected and how.
3079   cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085 #include <ac_nonexistent.h>
3086 _ACEOF
3087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } >/dev/null; then
3095   if test -s conftest.err; then
3096     ac_cpp_err=$ac_c_preproc_warn_flag
3097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098   else
3099     ac_cpp_err=
3100   fi
3101 else
3102   ac_cpp_err=yes
3103 fi
3104 if test -z "$ac_cpp_err"; then
3105   # Broken: success on invalid input.
3106 continue
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111   # Passes both tests.
3112 ac_preproc_ok=:
3113 break
3114 fi
3115 rm -f conftest.err conftest.$ac_ext
3116
3117 done
3118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119 rm -f conftest.err conftest.$ac_ext
3120 if $ac_preproc_ok; then
3121   break
3122 fi
3123
3124     done
3125     ac_cv_prog_CPP=$CPP
3126
3127 fi
3128   CPP=$ac_cv_prog_CPP
3129 else
3130   ac_cv_prog_CPP=$CPP
3131 fi
3132 echo "$as_me:$LINENO: result: $CPP" >&5
3133 echo "${ECHO_T}$CPP" >&6
3134 ac_preproc_ok=false
3135 for ac_c_preproc_warn_flag in '' yes
3136 do
3137   # Use a header file that comes with gcc, so configuring glibc
3138   # with a fresh cross-compiler works.
3139   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140   # <limits.h> exists even on freestanding compilers.
3141   # On the NeXT, cc -E runs the code through the compiler's parser,
3142   # not just through cpp. "Syntax error" is here to catch this case.
3143   cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149 #ifdef __STDC__
3150 # include <limits.h>
3151 #else
3152 # include <assert.h>
3153 #endif
3154                      Syntax error
3155 _ACEOF
3156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } >/dev/null; then
3164   if test -s conftest.err; then
3165     ac_cpp_err=$ac_c_preproc_warn_flag
3166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3167   else
3168     ac_cpp_err=
3169   fi
3170 else
3171   ac_cpp_err=yes
3172 fi
3173 if test -z "$ac_cpp_err"; then
3174   :
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179   # Broken: fails on valid input.
3180 continue
3181 fi
3182 rm -f conftest.err conftest.$ac_ext
3183
3184   # OK, works on sane cases.  Now check whether non-existent headers
3185   # can be detected and how.
3186   cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192 #include <ac_nonexistent.h>
3193 _ACEOF
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196   ac_status=$?
3197   grep -v '^ *+' conftest.er1 >conftest.err
3198   rm -f conftest.er1
3199   cat conftest.err >&5
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } >/dev/null; then
3202   if test -s conftest.err; then
3203     ac_cpp_err=$ac_c_preproc_warn_flag
3204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205   else
3206     ac_cpp_err=
3207   fi
3208 else
3209   ac_cpp_err=yes
3210 fi
3211 if test -z "$ac_cpp_err"; then
3212   # Broken: success on invalid input.
3213 continue
3214 else
3215   echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218   # Passes both tests.
3219 ac_preproc_ok=:
3220 break
3221 fi
3222 rm -f conftest.err conftest.$ac_ext
3223
3224 done
3225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226 rm -f conftest.err conftest.$ac_ext
3227 if $ac_preproc_ok; then
3228   :
3229 else
3230   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3231 See \`config.log' for more details." >&5
3232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3233 See \`config.log' for more details." >&2;}
3234    { (exit 1); exit 1; }; }
3235 fi
3236
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 if test -n "$ac_tool_prefix"; then
3249   for ac_prog in gcc
3250   do
3251     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_CC+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   if test -n "$CC"; then
3259   ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279   echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6
3281 else
3282   echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286     test -n "$CC" && break
3287   done
3288 fi
3289 if test -z "$CC"; then
3290   ac_ct_CC=$CC
3291   for ac_prog in gcc
3292 do
3293   # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   if test -n "$ac_ct_CC"; then
3301   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308   for ac_exec_ext in '' $ac_executable_extensions; do
3309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310     ac_cv_prog_ac_ct_CC="$ac_prog"
3311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315 done
3316
3317 fi
3318 fi
3319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320 if test -n "$ac_ct_CC"; then
3321   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322 echo "${ECHO_T}$ac_ct_CC" >&6
3323 else
3324   echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3326 fi
3327
3328   test -n "$ac_ct_CC" && break
3329 done
3330
3331   CC=$ac_ct_CC
3332 fi
3333
3334
3335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&5
3337 echo "$as_me: error: no acceptable C compiler found in \$PATH
3338 See \`config.log' for more details." >&2;}
3339    { (exit 1); exit 1; }; }
3340
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343      "checking for C compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346   (eval $ac_compiler --version </dev/null >&5) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351   (eval $ac_compiler -v </dev/null >&5) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356   (eval $ac_compiler -V </dev/null >&5) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }
3360
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364   echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376 #ifndef __GNUC__
3377        choke me
3378 #endif
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386   (eval $ac_compile) 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } &&
3393          { ac_try='test -z "$ac_c_werror_flag"
3394                          || test ! -s conftest.err'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; } &&
3400          { ac_try='test -s conftest.$ac_objext'
3401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402   (eval $ac_try) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }; }; then
3406   ac_compiler_gnu=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 ac_compiler_gnu=no
3412 fi
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3415
3416 fi
3417 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3419 GCC=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3422 CFLAGS="-g"
3423 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cc_g+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445   (eval $ac_compile) 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_c_werror_flag"
3453                          || test ! -s conftest.err'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; } &&
3459          { ac_try='test -s conftest.$ac_objext'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; }; then
3465   ac_cv_prog_cc_g=yes
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ac_cv_prog_cc_g=no
3471 fi
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3476 if test "$ac_test_CFLAGS" = set; then
3477   CFLAGS=$ac_save_CFLAGS
3478 elif test $ac_cv_prog_cc_g = yes; then
3479   if test "$GCC" = yes; then
3480     CFLAGS="-g -O2"
3481   else
3482     CFLAGS="-g"
3483   fi
3484 else
3485   if test "$GCC" = yes; then
3486     CFLAGS="-O2"
3487   else
3488     CFLAGS=
3489   fi
3490 fi
3491 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3492 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3493 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   ac_cv_prog_cc_stdc=no
3497 ac_save_CC=$CC
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <stdarg.h>
3505 #include <stdio.h>
3506 #include <sys/types.h>
3507 #include <sys/stat.h>
3508 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3509 struct buf { int x; };
3510 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3511 static char *e (p, i)
3512      char **p;
3513      int i;
3514 {
3515   return p[i];
3516 }
3517 static char *f (char * (*g) (char **, int), char **p, ...)
3518 {
3519   char *s;
3520   va_list v;
3521   va_start (v,p);
3522   s = g (p, va_arg (v,int));
3523   va_end (v);
3524   return s;
3525 }
3526
3527 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3528    function prototypes and stuff, but not '\xHH' hex character constants.
3529    These don't provoke an error unfortunately, instead are silently treated
3530    as 'x'.  The following induces an error, until -std1 is added to get
3531    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3532    array size at least.  It's necessary to write '\x00'==0 to get something
3533    that's true only with -std1.  */
3534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540 int argc;
3541 char **argv;
3542 int
3543 main ()
3544 {
3545 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 # Don't try gcc -ansi; that turns off useful extensions and
3551 # breaks some systems' header files.
3552 # AIX                   -qlanglvl=ansi
3553 # Ultrix and OSF/1      -std1
3554 # HP-UX 10.20 and later -Ae
3555 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3556 # SVR4                  -Xc -D__EXTENSIONS__
3557 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558 do
3559   CC="$ac_save_CC $ac_arg"
3560   rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562   (eval $ac_compile) 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } &&
3569          { ac_try='test -z "$ac_c_werror_flag"
3570                          || test ! -s conftest.err'
3571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572   (eval $ac_try) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; } &&
3576          { ac_try='test -s conftest.$ac_objext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   ac_cv_prog_cc_stdc=$ac_arg
3583 break
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 fi
3589 rm -f conftest.err conftest.$ac_objext
3590 done
3591 rm -f conftest.$ac_ext conftest.$ac_objext
3592 CC=$ac_save_CC
3593
3594 fi
3595
3596 case "x$ac_cv_prog_cc_stdc" in
3597   x|xno)
3598     echo "$as_me:$LINENO: result: none needed" >&5
3599 echo "${ECHO_T}none needed" >&6 ;;
3600   *)
3601     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3602 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3603     CC="$CC $ac_cv_prog_cc_stdc" ;;
3604 esac
3605
3606 # Some people use a C++ compiler to compile C.  Since we use `exit',
3607 # in C++ we need to declare it.  In case someone uses the same compiler
3608 # for both compiling C and C++ we need to have the C++ compiler decide
3609 # the declaration of exit, since it's the most demanding environment.
3610 cat >conftest.$ac_ext <<_ACEOF
3611 #ifndef __cplusplus
3612   choke me
3613 #endif
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617   (eval $ac_compile) 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_c_werror_flag"
3625                          || test ! -s conftest.err'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   for ac_declaration in \
3638    '' \
3639    'extern "C" void std::exit (int) throw (); using std::exit;' \
3640    'extern "C" void std::exit (int); using std::exit;' \
3641    'extern "C" void exit (int) throw ();' \
3642    'extern "C" void exit (int);' \
3643    'void exit (int);'
3644 do
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651 $ac_declaration
3652 #include <stdlib.h>
3653 int
3654 main ()
3655 {
3656 exit (42);
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663   (eval $ac_compile) 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -z "$ac_c_werror_flag"
3671                          || test ! -s conftest.err'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; } &&
3677          { ac_try='test -s conftest.$ac_objext'
3678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679   (eval $ac_try) 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; }; then
3683   :
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 continue
3689 fi
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691   cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 $ac_declaration
3698 int
3699 main ()
3700 {
3701 exit (42);
3702   ;
3703   return 0;
3704 }
3705 _ACEOF
3706 rm -f conftest.$ac_objext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708   (eval $ac_compile) 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } &&
3715          { ac_try='test -z "$ac_c_werror_flag"
3716                          || test ! -s conftest.err'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; } &&
3722          { ac_try='test -s conftest.$ac_objext'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728   break
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 fi
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 done
3736 rm -f conftest*
3737 if test -n "$ac_declaration"; then
3738   echo '#ifdef __cplusplus' >>confdefs.h
3739   echo $ac_declaration      >>confdefs.h
3740   echo '#endif'             >>confdefs.h
3741 fi
3742
3743 else
3744   echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 fi
3748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755 ac_ext=cc
3756 ac_cpp='$CXXCPP $CPPFLAGS'
3757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3760 if test -n "$ac_tool_prefix"; then
3761   for ac_prog in $CCC g++
3762   do
3763     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_prog_CXX+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   if test -n "$CXX"; then
3771   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785 done
3786
3787 fi
3788 fi
3789 CXX=$ac_cv_prog_CXX
3790 if test -n "$CXX"; then
3791   echo "$as_me:$LINENO: result: $CXX" >&5
3792 echo "${ECHO_T}$CXX" >&6
3793 else
3794   echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6
3796 fi
3797
3798     test -n "$CXX" && break
3799   done
3800 fi
3801 if test -z "$CXX"; then
3802   ac_ct_CXX=$CXX
3803   for ac_prog in $CCC g++
3804 do
3805   # Extract the first word of "$ac_prog", so it can be a program name with args.
3806 set dummy $ac_prog; ac_word=$2
3807 echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   if test -n "$ac_ct_CXX"; then
3813   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820   for ac_exec_ext in '' $ac_executable_extensions; do
3821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822     ac_cv_prog_ac_ct_CXX="$ac_prog"
3823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827 done
3828
3829 fi
3830 fi
3831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3832 if test -n "$ac_ct_CXX"; then
3833   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3834 echo "${ECHO_T}$ac_ct_CXX" >&6
3835 else
3836   echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3838 fi
3839
3840   test -n "$ac_ct_CXX" && break
3841 done
3842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3843
3844   CXX=$ac_ct_CXX
3845 fi
3846
3847
3848 # Provide some information about the compiler.
3849 echo "$as_me:$LINENO:" \
3850      "checking for C++ compiler version" >&5
3851 ac_compiler=`set X $ac_compile; echo $2`
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853   (eval $ac_compiler --version </dev/null >&5) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858   (eval $ac_compiler -v </dev/null >&5) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }
3862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863   (eval $ac_compiler -V </dev/null >&5) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }
3867
3868 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3869 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3870 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883 #ifndef __GNUC__
3884        choke me
3885 #endif
3886
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 rm -f conftest.$ac_objext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893   (eval $ac_compile) 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } &&
3900          { ac_try='test -z "$ac_cxx_werror_flag"
3901                          || test ! -s conftest.err'
3902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903   (eval $ac_try) 2>&5
3904   ac_status=$?
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); }; } &&
3907          { ac_try='test -s conftest.$ac_objext'
3908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909   (eval $ac_try) 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); }; }; then
3913   ac_compiler_gnu=yes
3914 else
3915   echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 ac_compiler_gnu=no
3919 fi
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3922
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3925 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3926 GXX=`test $ac_compiler_gnu = yes && echo yes`
3927 ac_test_CXXFLAGS=${CXXFLAGS+set}
3928 ac_save_CXXFLAGS=$CXXFLAGS
3929 CXXFLAGS="-g"
3930 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3931 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3932 if test "${ac_cv_prog_cxx_g+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941
3942 int
3943 main ()
3944 {
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>conftest.er1
3953   ac_status=$?
3954   grep -v '^ *+' conftest.er1 >conftest.err
3955   rm -f conftest.er1
3956   cat conftest.err >&5
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } &&
3959          { ac_try='test -z "$ac_cxx_werror_flag"
3960                          || test ! -s conftest.err'
3961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962   (eval $ac_try) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; } &&
3966          { ac_try='test -s conftest.$ac_objext'
3967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968   (eval $ac_try) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); }; }; then
3972   ac_cv_prog_cxx_g=yes
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 ac_cv_prog_cxx_g=no
3978 fi
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980 fi
3981 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3982 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3983 if test "$ac_test_CXXFLAGS" = set; then
3984   CXXFLAGS=$ac_save_CXXFLAGS
3985 elif test $ac_cv_prog_cxx_g = yes; then
3986   if test "$GXX" = yes; then
3987     CXXFLAGS="-g -O2"
3988   else
3989     CXXFLAGS="-g"
3990   fi
3991 else
3992   if test "$GXX" = yes; then
3993     CXXFLAGS="-O2"
3994   else
3995     CXXFLAGS=
3996   fi
3997 fi
3998 for ac_declaration in \
3999    '' \
4000    'extern "C" void std::exit (int) throw (); using std::exit;' \
4001    'extern "C" void std::exit (int); using std::exit;' \
4002    'extern "C" void exit (int) throw ();' \
4003    'extern "C" void exit (int);' \
4004    'void exit (int);'
4005 do
4006   cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012 $ac_declaration
4013 #include <stdlib.h>
4014 int
4015 main ()
4016 {
4017 exit (42);
4018   ;
4019   return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024   (eval $ac_compile) 2>conftest.er1
4025   ac_status=$?
4026   grep -v '^ *+' conftest.er1 >conftest.err
4027   rm -f conftest.er1
4028   cat conftest.err >&5
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); } &&
4031          { ac_try='test -z "$ac_cxx_werror_flag"
4032                          || test ! -s conftest.err'
4033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034   (eval $ac_try) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; } &&
4038          { ac_try='test -s conftest.$ac_objext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   :
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 continue
4050 fi
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 $ac_declaration
4059 int
4060 main ()
4061 {
4062 exit (42);
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069   (eval $ac_compile) 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_cxx_werror_flag"
4077                          || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest.$ac_objext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   break
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 fi
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 done
4097 rm -f conftest*
4098 if test -n "$ac_declaration"; then
4099   echo '#ifdef __cplusplus' >>confdefs.h
4100   echo $ac_declaration      >>confdefs.h
4101   echo '#endif'             >>confdefs.h
4102 fi
4103
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110 echo "$as_me:$LINENO: checking " >&5
4111 echo $ECHO_N "checking ... $ECHO_C" >&6
4112 if test "${ac_cv_has_flex+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   for ac_prog in flex lex
4116 do
4117   # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy $ac_prog; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_LEX+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$LEX"; then
4125   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_LEX="$ac_prog"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141 fi
4142 fi
4143 LEX=$ac_cv_prog_LEX
4144 if test -n "$LEX"; then
4145   echo "$as_me:$LINENO: result: $LEX" >&5
4146 echo "${ECHO_T}$LEX" >&6
4147 else
4148   echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 fi
4151
4152   test -n "$LEX" && break
4153 done
4154 test -n "$LEX" || LEX=":"
4155
4156 if test -z "$LEXLIB"
4157 then
4158   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4159 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4160 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   ac_check_lib_save_LIBS=$LIBS
4164 LIBS="-lfl  $LIBS"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171
4172 /* Override any gcc2 internal prototype to avoid an error.  */
4173 #ifdef __cplusplus
4174 extern "C"
4175 #endif
4176 /* We use char because int might match the return type of a gcc2
4177    builtin and then its argument prototype would still apply.  */
4178 char yywrap ();
4179 int
4180 main ()
4181 {
4182 yywrap ();
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189   (eval $ac_link) 2>conftest.er1
4190   ac_status=$?
4191   grep -v '^ *+' conftest.er1 >conftest.err
4192   rm -f conftest.er1
4193   cat conftest.err >&5
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } &&
4196          { ac_try='test -z "$ac_c_werror_flag"
4197                          || test ! -s conftest.err'
4198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199   (eval $ac_try) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; } &&
4203          { ac_try='test -s conftest$ac_exeext'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; }; then
4209   ac_cv_lib_fl_yywrap=yes
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ac_cv_lib_fl_yywrap=no
4215 fi
4216 rm -f conftest.err conftest.$ac_objext \
4217       conftest$ac_exeext conftest.$ac_ext
4218 LIBS=$ac_check_lib_save_LIBS
4219 fi
4220 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4221 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4222 if test $ac_cv_lib_fl_yywrap = yes; then
4223   LEXLIB="-lfl"
4224 else
4225   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4226 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4227 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   ac_check_lib_save_LIBS=$LIBS
4231 LIBS="-ll  $LIBS"
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238
4239 /* Override any gcc2 internal prototype to avoid an error.  */
4240 #ifdef __cplusplus
4241 extern "C"
4242 #endif
4243 /* We use char because int might match the return type of a gcc2
4244    builtin and then its argument prototype would still apply.  */
4245 char yywrap ();
4246 int
4247 main ()
4248 {
4249 yywrap ();
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256   (eval $ac_link) 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag"
4264                          || test ! -s conftest.err'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; } &&
4270          { ac_try='test -s conftest$ac_exeext'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   ac_cv_lib_l_yywrap=yes
4277 else
4278   echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ac_cv_lib_l_yywrap=no
4282 fi
4283 rm -f conftest.err conftest.$ac_objext \
4284       conftest$ac_exeext conftest.$ac_ext
4285 LIBS=$ac_check_lib_save_LIBS
4286 fi
4287 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4289 if test $ac_cv_lib_l_yywrap = yes; then
4290   LEXLIB="-ll"
4291 fi
4292
4293 fi
4294
4295 fi
4296
4297 if test "x$LEX" != "x:"; then
4298   echo "$as_me:$LINENO: checking lex output file root" >&5
4299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4300 if test "${ac_cv_prog_lex_root+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   # The minimal lex program is just a single line: %%.  But some broken lexes
4304 # (Solaris, I think it was) want two %% lines, so accommodate them.
4305 cat >conftest.l <<_ACEOF
4306 %%
4307 %%
4308 _ACEOF
4309 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4310   (eval $LEX conftest.l) 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }
4314 if test -f lex.yy.c; then
4315   ac_cv_prog_lex_root=lex.yy
4316 elif test -f lexyy.c; then
4317   ac_cv_prog_lex_root=lexyy
4318 else
4319   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4320 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4321    { (exit 1); exit 1; }; }
4322 fi
4323 fi
4324 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4325 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4326 rm -f conftest.l
4327 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4328
4329 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4330 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4331 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   # POSIX says lex can declare yytext either as a pointer or an array; the
4335 # default is implementation-dependent. Figure out which it is, since
4336 # not all implementations provide the %pointer and %array declarations.
4337 ac_cv_prog_lex_yytext_pointer=no
4338 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4339 ac_save_LIBS=$LIBS
4340 LIBS="$LIBS $LEXLIB"
4341 cat >conftest.$ac_ext <<_ACEOF
4342 `cat $LEX_OUTPUT_ROOT.c`
4343 _ACEOF
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346   (eval $ac_link) 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag"
4354                          || test ! -s conftest.err'
4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356   (eval $ac_try) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; } &&
4360          { ac_try='test -s conftest$ac_exeext'
4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362   (eval $ac_try) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   ac_cv_prog_lex_yytext_pointer=yes
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 fi
4372 rm -f conftest.err conftest.$ac_objext \
4373       conftest$ac_exeext conftest.$ac_ext
4374 LIBS=$ac_save_LIBS
4375 rm -f "${LEX_OUTPUT_ROOT}.c"
4376
4377 fi
4378 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4379 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4380 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4381
4382 cat >>confdefs.h <<\_ACEOF
4383 #define YYTEXT_POINTER 1
4384 _ACEOF
4385
4386 fi
4387
4388 fi
4389
4390 fi
4391 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4392 echo "${ECHO_T}$ac_cv_has_flex" >&6
4393 if test "$LEX" != "flex"; then
4394   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4395 echo "$as_me: error: flex not found but required" >&2;}
4396    { (exit 1); exit 1; }; }
4397 else
4398   FLEX=flex
4399
4400 fi
4401
4402 echo "$as_me:$LINENO: checking " >&5
4403 echo $ECHO_N "checking ... $ECHO_C" >&6
4404 if test "${llvm_cv_has_bison+set}" = set; then
4405   echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407   for ac_prog in 'bison -y' byacc
4408 do
4409   # Extract the first word of "$ac_prog", so it can be a program name with args.
4410 set dummy $ac_prog; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_YACC+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   if test -n "$YACC"; then
4417   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424   for ac_exec_ext in '' $ac_executable_extensions; do
4425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426     ac_cv_prog_YACC="$ac_prog"
4427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428     break 2
4429   fi
4430 done
4431 done
4432
4433 fi
4434 fi
4435 YACC=$ac_cv_prog_YACC
4436 if test -n "$YACC"; then
4437   echo "$as_me:$LINENO: result: $YACC" >&5
4438 echo "${ECHO_T}$YACC" >&6
4439 else
4440   echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4442 fi
4443
4444   test -n "$YACC" && break
4445 done
4446 test -n "$YACC" || YACC="yacc"
4447
4448 fi
4449 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4451 if test "$YACC" != "bison -y"; then
4452   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453 echo "$as_me: error: bison not found but required" >&2;}
4454    { (exit 1); exit 1; }; }
4455 else
4456   BISON=bison
4457
4458 fi
4459
4460 echo "$as_me:$LINENO: checking for GNU make" >&5
4461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462 if test "${llvm_cv_gnu_make_command+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   llvm_cv_gnu_make_command=''
4466  for a in "$MAKE" make gmake gnumake ; do
4467   if test -z "$a" ; then continue ; fi ;
4468   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4469   then
4470    llvm_cv_gnu_make_command=$a ;
4471    break;
4472   fi
4473  done
4474 fi
4475 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4478    ifGNUmake='' ;
4479  else
4480    ifGNUmake='#' ;
4481    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482 echo "${ECHO_T}\"Not found\"" >&6;
4483  fi
4484
4485
4486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4488 LN_S=$as_ln_s
4489 if test "$LN_S" = "ln -s"; then
4490   echo "$as_me:$LINENO: result: yes" >&5
4491 echo "${ECHO_T}yes" >&6
4492 else
4493   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494 echo "${ECHO_T}no, using $LN_S" >&6
4495 fi
4496
4497 # Extract the first word of "date", so it can be a program name with args.
4498 set dummy date; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_DATE+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   case $DATE in
4505   [\\/]* | ?:[\\/]*)
4506   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4507   ;;
4508   *)
4509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514   for ac_exec_ext in '' $ac_executable_extensions; do
4515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521 done
4522
4523   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4524   ;;
4525 esac
4526 fi
4527 DATE=$ac_cv_path_DATE
4528
4529 if test -n "$DATE"; then
4530   echo "$as_me:$LINENO: result: $DATE" >&5
4531 echo "${ECHO_T}$DATE" >&6
4532 else
4533   echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4535 fi
4536
4537 # Extract the first word of "find", so it can be a program name with args.
4538 set dummy find; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_path_FIND+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   case $FIND in
4545   [\\/]* | ?:[\\/]*)
4546   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4547   ;;
4548   *)
4549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562
4563   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4564   ;;
4565 esac
4566 fi
4567 FIND=$ac_cv_path_FIND
4568
4569 if test -n "$FIND"; then
4570   echo "$as_me:$LINENO: result: $FIND" >&5
4571 echo "${ECHO_T}$FIND" >&6
4572 else
4573   echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4575 fi
4576
4577 # Extract the first word of "grep", so it can be a program name with args.
4578 set dummy grep; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_GREP+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   case $GREP in
4585   [\\/]* | ?:[\\/]*)
4586   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4587   ;;
4588   *)
4589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_exec_ext in '' $ac_executable_extensions; do
4595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601 done
4602
4603   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4604   ;;
4605 esac
4606 fi
4607 GREP=$ac_cv_path_GREP
4608
4609 if test -n "$GREP"; then
4610   echo "$as_me:$LINENO: result: $GREP" >&5
4611 echo "${ECHO_T}$GREP" >&6
4612 else
4613   echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4615 fi
4616
4617 # Extract the first word of "mkdir", so it can be a program name with args.
4618 set dummy mkdir; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_MKDIR+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   case $MKDIR in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642
4643   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4644   ;;
4645 esac
4646 fi
4647 MKDIR=$ac_cv_path_MKDIR
4648
4649 if test -n "$MKDIR"; then
4650   echo "$as_me:$LINENO: result: $MKDIR" >&5
4651 echo "${ECHO_T}$MKDIR" >&6
4652 else
4653   echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655 fi
4656
4657 # Extract the first word of "mv", so it can be a program name with args.
4658 set dummy mv; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_MV+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   case $MV in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4684   ;;
4685 esac
4686 fi
4687 MV=$ac_cv_path_MV
4688
4689 if test -n "$MV"; then
4690   echo "$as_me:$LINENO: result: $MV" >&5
4691 echo "${ECHO_T}$MV" >&6
4692 else
4693   echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4695 fi
4696
4697 # Extract the first word of "pax", so it can be a program name with args.
4698 set dummy pax; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_PAX+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $PAX in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722
4723   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4724   ;;
4725 esac
4726 fi
4727 PAX=$ac_cv_path_PAX
4728
4729 if test -n "$PAX"; then
4730   echo "$as_me:$LINENO: result: $PAX" >&5
4731 echo "${ECHO_T}$PAX" >&6
4732 else
4733   echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4735 fi
4736
4737 if test -n "$ac_tool_prefix"; then
4738   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4740 echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742 if test "${ac_cv_prog_RANLIB+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   if test -n "$RANLIB"; then
4746   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760 done
4761
4762 fi
4763 fi
4764 RANLIB=$ac_cv_prog_RANLIB
4765 if test -n "$RANLIB"; then
4766   echo "$as_me:$LINENO: result: $RANLIB" >&5
4767 echo "${ECHO_T}$RANLIB" >&6
4768 else
4769   echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4771 fi
4772
4773 fi
4774 if test -z "$ac_cv_prog_RANLIB"; then
4775   ac_ct_RANLIB=$RANLIB
4776   # Extract the first word of "ranlib", so it can be a program name with args.
4777 set dummy ranlib; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   if test -n "$ac_ct_RANLIB"; then
4784   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4785 else
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_prog_ac_ct_RANLIB="ranlib"
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_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4801 fi
4802 fi
4803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804 if test -n "$ac_ct_RANLIB"; then
4805   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4807 else
4808   echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4810 fi
4811
4812   RANLIB=$ac_ct_RANLIB
4813 else
4814   RANLIB="$ac_cv_prog_RANLIB"
4815 fi
4816
4817 # Extract the first word of "rm", so it can be a program name with args.
4818 set dummy rm; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_RM+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   case $RM in
4825   [\\/]* | ?:[\\/]*)
4826   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4827   ;;
4828   *)
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834   for ac_exec_ext in '' $ac_executable_extensions; do
4835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841 done
4842
4843   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4844   ;;
4845 esac
4846 fi
4847 RM=$ac_cv_path_RM
4848
4849 if test -n "$RM"; then
4850   echo "$as_me:$LINENO: result: $RM" >&5
4851 echo "${ECHO_T}$RM" >&6
4852 else
4853   echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4855 fi
4856
4857 # Extract the first word of "sed", so it can be a program name with args.
4858 set dummy sed; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_path_SED+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $SED in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882
4883   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4884   ;;
4885 esac
4886 fi
4887 SED=$ac_cv_path_SED
4888
4889 if test -n "$SED"; then
4890   echo "$as_me:$LINENO: result: $SED" >&5
4891 echo "${ECHO_T}$SED" >&6
4892 else
4893   echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6
4895 fi
4896
4897 # Extract the first word of "tar", so it can be a program name with args.
4898 set dummy tar; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_TAR+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   case $TAR in
4905   [\\/]* | ?:[\\/]*)
4906   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4907   ;;
4908   *)
4909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921 done
4922
4923   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4924   ;;
4925 esac
4926 fi
4927 TAR=$ac_cv_path_TAR
4928
4929 if test -n "$TAR"; then
4930   echo "$as_me:$LINENO: result: $TAR" >&5
4931 echo "${ECHO_T}$TAR" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937
4938 # Find a good install program.  We prefer a C program (faster),
4939 # so one script is as good as another.  But avoid the broken or
4940 # incompatible versions:
4941 # SysV /etc/install, /usr/sbin/install
4942 # SunOS /usr/etc/install
4943 # IRIX /sbin/install
4944 # AIX /bin/install
4945 # AmigaOS /C/install, which installs bootblocks on floppy discs
4946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4949 # OS/2's system install, which has a completely different semantic
4950 # ./install, which can be erroneously created by make from ./install.sh.
4951 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4952 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4953 if test -z "$INSTALL"; then
4954 if test "${ac_cv_path_install+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962   # Account for people who put trailing slashes in PATH elements.
4963 case $as_dir/ in
4964   ./ | .// | /cC/* | \
4965   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4966   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4967   /usr/ucb/* ) ;;
4968   *)
4969     # OSF1 and SCO ODT 3.0 have their own names for install.
4970     # Don't use installbsd from OSF since it installs stuff as root
4971     # by default.
4972     for ac_prog in ginstall scoinst install; do
4973       for ac_exec_ext in '' $ac_executable_extensions; do
4974         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4975           if test $ac_prog = install &&
4976             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4977             # AIX install.  It has an incompatible calling convention.
4978             :
4979           elif test $ac_prog = install &&
4980             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4981             # program-specific install script used by HP pwplus--don't use.
4982             :
4983           else
4984             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4985             break 3
4986           fi
4987         fi
4988       done
4989     done
4990     ;;
4991 esac
4992 done
4993
4994
4995 fi
4996   if test "${ac_cv_path_install+set}" = set; then
4997     INSTALL=$ac_cv_path_install
4998   else
4999     # As a last resort, use the slow shell script.  We don't cache a
5000     # path for INSTALL within a source directory, because that will
5001     # break other packages using the cache if that directory is
5002     # removed, or if the path is relative.
5003     INSTALL=$ac_install_sh
5004   fi
5005 fi
5006 echo "$as_me:$LINENO: result: $INSTALL" >&5
5007 echo "${ECHO_T}$INSTALL" >&6
5008
5009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010 # It thinks the first close brace ends the variable substitution.
5011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5012
5013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5014
5015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5016
5017
5018 # Extract the first word of "bzip2", so it can be a program name with args.
5019 set dummy bzip2; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_path_BZIP2+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   case $BZIP2 in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043
5044   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5045   ;;
5046 esac
5047 fi
5048 BZIP2=$ac_cv_path_BZIP2
5049
5050 if test -n "$BZIP2"; then
5051   echo "$as_me:$LINENO: result: $BZIP2" >&5
5052 echo "${ECHO_T}$BZIP2" >&6
5053 else
5054   echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5056 fi
5057
5058 # Extract the first word of "dot", so it can be a program name with args.
5059 set dummy dot; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_path_DOT+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   case $DOT in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083
5084   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5085   ;;
5086 esac
5087 fi
5088 DOT=$ac_cv_path_DOT
5089
5090 if test -n "$DOT"; then
5091   echo "$as_me:$LINENO: result: $DOT" >&5
5092 echo "${ECHO_T}$DOT" >&6
5093 else
5094   echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6
5096 fi
5097
5098 # Extract the first word of "doxygen", so it can be a program name with args.
5099 set dummy doxygen; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   case $DOXYGEN in
5106   [\\/]* | ?:[\\/]*)
5107   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5108   ;;
5109   *)
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115   for ac_exec_ext in '' $ac_executable_extensions; do
5116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122 done
5123
5124   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5125   ;;
5126 esac
5127 fi
5128 DOXYGEN=$ac_cv_path_DOXYGEN
5129
5130 if test -n "$DOXYGEN"; then
5131   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5132 echo "${ECHO_T}$DOXYGEN" >&6
5133 else
5134   echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5136 fi
5137
5138 # Extract the first word of "etags", so it can be a program name with args.
5139 set dummy etags; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_ETAGS+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   case $ETAGS in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163
5164   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5165   ;;
5166 esac
5167 fi
5168 ETAGS=$ac_cv_path_ETAGS
5169
5170 if test -n "$ETAGS"; then
5171   echo "$as_me:$LINENO: result: $ETAGS" >&5
5172 echo "${ECHO_T}$ETAGS" >&6
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178 # Extract the first word of "groff", so it can be a program name with args.
5179 set dummy groff; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_GROFF+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $GROFF in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5205   ;;
5206 esac
5207 fi
5208 GROFF=$ac_cv_path_GROFF
5209
5210 if test -n "$GROFF"; then
5211   echo "$as_me:$LINENO: result: $GROFF" >&5
5212 echo "${ECHO_T}$GROFF" >&6
5213 else
5214   echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5216 fi
5217
5218 # Extract the first word of "gzip", so it can be a program name with args.
5219 set dummy gzip; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_GZIP+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   case $GZIP in
5226   [\\/]* | ?:[\\/]*)
5227   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5228   ;;
5229   *)
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243
5244   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5245   ;;
5246 esac
5247 fi
5248 GZIP=$ac_cv_path_GZIP
5249
5250 if test -n "$GZIP"; then
5251   echo "$as_me:$LINENO: result: $GZIP" >&5
5252 echo "${ECHO_T}$GZIP" >&6
5253 else
5254   echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258 # Extract the first word of "pod2html", so it can be a program name with args.
5259 set dummy pod2html; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_POD2HTML+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   case $POD2HTML in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275   for ac_exec_ext in '' $ac_executable_extensions; do
5276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282 done
5283
5284   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5285   ;;
5286 esac
5287 fi
5288 POD2HTML=$ac_cv_path_POD2HTML
5289
5290 if test -n "$POD2HTML"; then
5291   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5292 echo "${ECHO_T}$POD2HTML" >&6
5293 else
5294   echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5296 fi
5297
5298 # Extract the first word of "pod2man", so it can be a program name with args.
5299 set dummy pod2man; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_POD2MAN+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   case $POD2MAN in
5306   [\\/]* | ?:[\\/]*)
5307   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5308   ;;
5309   *)
5310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323
5324   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5325   ;;
5326 esac
5327 fi
5328 POD2MAN=$ac_cv_path_POD2MAN
5329
5330 if test -n "$POD2MAN"; then
5331   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5332 echo "${ECHO_T}$POD2MAN" >&6
5333 else
5334   echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5336 fi
5337
5338 # Extract the first word of "runtest", so it can be a program name with args.
5339 set dummy runtest; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_RUNTEST+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   case $RUNTEST in
5346   [\\/]* | ?:[\\/]*)
5347   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5348   ;;
5349   *)
5350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355   for ac_exec_ext in '' $ac_executable_extensions; do
5356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362 done
5363
5364   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5365   ;;
5366 esac
5367 fi
5368 RUNTEST=$ac_cv_path_RUNTEST
5369
5370 if test -n "$RUNTEST"; then
5371   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5372 echo "${ECHO_T}$RUNTEST" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378
5379 no_itcl=true
5380 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5381 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5382
5383 # Check whether --with-tclinclude or --without-tclinclude was given.
5384 if test "${with_tclinclude+set}" = set; then
5385   withval="$with_tclinclude"
5386   with_tclinclude=${withval}
5387 else
5388   with_tclinclude=''
5389 fi;
5390 if test "${ac_cv_path_tclsh+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393
5394 if test x"${with_tclinclude}" != x ; then
5395   if test -f ${with_tclinclude}/tclsh ; then
5396     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5397   elif test -f ${with_tclinclude}/src/tclsh ; then
5398     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5399   else
5400     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5401 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5402    { (exit 1); exit 1; }; }
5403   fi
5404 fi
5405
5406 if test x"${ac_cv_path_tclsh}" = x ; then
5407   echo "$as_me:$LINENO: result: none" >&5
5408 echo "${ECHO_T}none" >&6
5409   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
5410 do
5411   # Extract the first word of "$ac_prog", so it can be a program name with args.
5412 set dummy $ac_prog; ac_word=$2
5413 echo "$as_me:$LINENO: checking for $ac_word" >&5
5414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5415 if test "${ac_cv_path_TCLSH+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   case $TCLSH in
5419   [\\/]* | ?:[\\/]*)
5420   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5421   ;;
5422   *)
5423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428   for ac_exec_ext in '' $ac_executable_extensions; do
5429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435 done
5436
5437   ;;
5438 esac
5439 fi
5440 TCLSH=$ac_cv_path_TCLSH
5441
5442 if test -n "$TCLSH"; then
5443   echo "$as_me:$LINENO: result: $TCLSH" >&5
5444 echo "${ECHO_T}$TCLSH" >&6
5445 else
5446   echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5448 fi
5449
5450   test -n "$TCLSH" && break
5451 done
5452
5453   if test x"${TCLSH}" = x ; then
5454     ac_cv_path_tclsh='';
5455   else
5456     ac_cv_path_tclsh="${TCLSH}";
5457   fi
5458 else
5459   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5460 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5461   TCLSH="${ac_cv_path_tclsh}"
5462
5463 fi
5464
5465 fi
5466
5467 # Extract the first word of "zip", so it can be a program name with args.
5468 set dummy zip; ac_word=$2
5469 echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471 if test "${ac_cv_path_ZIP+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   case $ZIP in
5475   [\\/]* | ?:[\\/]*)
5476   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5477   ;;
5478   *)
5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484   for ac_exec_ext in '' $ac_executable_extensions; do
5485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491 done
5492
5493   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5494   ;;
5495 esac
5496 fi
5497 ZIP=$ac_cv_path_ZIP
5498
5499 if test -n "$ZIP"; then
5500   echo "$as_me:$LINENO: result: $ZIP" >&5
5501 echo "${ECHO_T}$ZIP" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506
5507
5508 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5509 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5510 if test "${llvm_cv_link_use_r+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513    ac_ext=c
5514 ac_cpp='$CPP $CPPFLAGS'
5515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518
5519   oldcflags="$CFLAGS"
5520   CFLAGS="$CFLAGS -Wl,-R."
5521   cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h.  */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h.  */
5527
5528 int
5529 main ()
5530 {
5531 int main() { return 0; }
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538   (eval $ac_link) 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } &&
5545          { ac_try='test -z "$ac_c_werror_flag"
5546                          || test ! -s conftest.err'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; } &&
5552          { ac_try='test -s conftest$ac_exeext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   llvm_cv_link_use_r=yes
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 llvm_cv_link_use_r=no
5564 fi
5565 rm -f conftest.err conftest.$ac_objext \
5566       conftest$ac_exeext conftest.$ac_ext
5567   CFLAGS="$oldcflags"
5568   ac_ext=c
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573
5574
5575 fi
5576 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5577 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5578 if test "$llvm_cv_link_use_r" = yes ; then
5579
5580 cat >>confdefs.h <<\_ACEOF
5581 #define HAVE_LINK_R 1
5582 _ACEOF
5583
5584   fi
5585
5586
5587
5588
5589 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5590 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5591 if test "${ac_cv_c_const+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600
5601 int
5602 main ()
5603 {
5604 /* FIXME: Include the comments suggested by Paul. */
5605 #ifndef __cplusplus
5606   /* Ultrix mips cc rejects this.  */
5607   typedef int charset[2];
5608   const charset x;
5609   /* SunOS 4.1.1 cc rejects this.  */
5610   char const *const *ccp;
5611   char **p;
5612   /* NEC SVR4.0.2 mips cc rejects this.  */
5613   struct point {int x, y;};
5614   static struct point const zero = {0,0};
5615   /* AIX XL C 1.02.0.0 rejects this.
5616      It does not let you subtract one const X* pointer from another in
5617      an arm of an if-expression whose if-part is not a constant
5618      expression */
5619   const char *g = "string";
5620   ccp = &g + (g ? g-g : 0);
5621   /* HPUX 7.0 cc rejects these. */
5622   ++ccp;
5623   p = (char**) ccp;
5624   ccp = (char const *const *) p;
5625   { /* SCO 3.2v4 cc rejects this.  */
5626     char *t;
5627     char const *s = 0 ? (char *) 0 : (char const *) 0;
5628
5629     *t++ = 0;
5630   }
5631   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5632     int x[] = {25, 17};
5633     const int *foo = &x[0];
5634     ++foo;
5635   }
5636   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5637     typedef const int *iptr;
5638     iptr p = 0;
5639     ++p;
5640   }
5641   { /* AIX XL C 1.02.0.0 rejects this saying
5642        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5643     struct s { int j; const int *ap[3]; };
5644     struct s *b; b->j = 5;
5645   }
5646   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5647     const int foo = 10;
5648   }
5649 #endif
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657   (eval $ac_compile) 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
5661   cat conftest.err >&5
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } &&
5664          { ac_try='test -z "$ac_c_werror_flag"
5665                          || test ! -s conftest.err'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; } &&
5671          { ac_try='test -s conftest.$ac_objext'
5672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673   (eval $ac_try) 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; }; then
5677   ac_cv_c_const=yes
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_cv_c_const=no
5683 fi
5684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5687 echo "${ECHO_T}$ac_cv_c_const" >&6
5688 if test $ac_cv_c_const = no; then
5689
5690 cat >>confdefs.h <<\_ACEOF
5691 #define const
5692 _ACEOF
5693
5694 fi
5695
5696
5697 echo "$as_me:$LINENO: checking for egrep" >&5
5698 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5699 if test "${ac_cv_prog_egrep+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5703     then ac_cv_prog_egrep='grep -E'
5704     else ac_cv_prog_egrep='egrep'
5705     fi
5706 fi
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5708 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5709  EGREP=$ac_cv_prog_egrep
5710
5711
5712 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5714 if test "${ac_cv_header_stdc+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723 #include <stdlib.h>
5724 #include <stdarg.h>
5725 #include <string.h>
5726 #include <float.h>
5727
5728 int
5729 main ()
5730 {
5731
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738   (eval $ac_compile) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } &&
5745          { ac_try='test -z "$ac_c_werror_flag"
5746                          || test ! -s conftest.err'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; } &&
5752          { ac_try='test -s conftest.$ac_objext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_cv_header_stdc=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ac_cv_header_stdc=no
5764 fi
5765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766
5767 if test $ac_cv_header_stdc = yes; then
5768   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5769   cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775 #include <string.h>
5776
5777 _ACEOF
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779   $EGREP "memchr" >/dev/null 2>&1; then
5780   :
5781 else
5782   ac_cv_header_stdc=no
5783 fi
5784 rm -f conftest*
5785
5786 fi
5787
5788 if test $ac_cv_header_stdc = yes; then
5789   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5790   cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796 #include <stdlib.h>
5797
5798 _ACEOF
5799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5800   $EGREP "free" >/dev/null 2>&1; then
5801   :
5802 else
5803   ac_cv_header_stdc=no
5804 fi
5805 rm -f conftest*
5806
5807 fi
5808
5809 if test $ac_cv_header_stdc = yes; then
5810   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5811   if test "$cross_compiling" = yes; then
5812   :
5813 else
5814   cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h.  */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h.  */
5820 #include <ctype.h>
5821 #if ((' ' & 0x0FF) == 0x020)
5822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5824 #else
5825 # define ISLOWER(c) \
5826                    (('a' <= (c) && (c) <= 'i') \
5827                      || ('j' <= (c) && (c) <= 'r') \
5828                      || ('s' <= (c) && (c) <= 'z'))
5829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5830 #endif
5831
5832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5833 int
5834 main ()
5835 {
5836   int i;
5837   for (i = 0; i < 256; i++)
5838     if (XOR (islower (i), ISLOWER (i))
5839         || toupper (i) != TOUPPER (i))
5840       exit(2);
5841   exit (0);
5842 }
5843 _ACEOF
5844 rm -f conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846   (eval $ac_link) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851   (eval $ac_try) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; }; then
5855   :
5856 else
5857   echo "$as_me: program exited with status $ac_status" >&5
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 ( exit $ac_status )
5862 ac_cv_header_stdc=no
5863 fi
5864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5865 fi
5866 fi
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5869 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5870 if test $ac_cv_header_stdc = yes; then
5871
5872 cat >>confdefs.h <<\_ACEOF
5873 #define STDC_HEADERS 1
5874 _ACEOF
5875
5876 fi
5877
5878
5879
5880
5881
5882
5883 ac_header_dirent=no
5884 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5885   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5886 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5887 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
5898 #include <$ac_hdr>
5899
5900 int
5901 main ()
5902 {
5903 if ((DIR *) 0)
5904 return 0;
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911   (eval $ac_compile) 2>conftest.er1
5912   ac_status=$?
5913   grep -v '^ *+' conftest.er1 >conftest.err
5914   rm -f conftest.er1
5915   cat conftest.err >&5
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } &&
5918          { ac_try='test -z "$ac_c_werror_flag"
5919                          || test ! -s conftest.err'
5920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921   (eval $ac_try) 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; } &&
5925          { ac_try='test -s conftest.$ac_objext'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; }; then
5931   eval "$as_ac_Header=yes"
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 eval "$as_ac_Header=no"
5937 fi
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5943   cat >>confdefs.h <<_ACEOF
5944 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5945 _ACEOF
5946
5947 ac_header_dirent=$ac_hdr; break
5948 fi
5949
5950 done
5951 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5952 if test $ac_header_dirent = dirent.h; then
5953   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5954 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5955 if test "${ac_cv_search_opendir+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   ac_func_search_save_LIBS=$LIBS
5959 ac_cv_search_opendir=no
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h.  */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h.  */
5966
5967 /* Override any gcc2 internal prototype to avoid an error.  */
5968 #ifdef __cplusplus
5969 extern "C"
5970 #endif
5971 /* We use char because int might match the return type of a gcc2
5972    builtin and then its argument prototype would still apply.  */
5973 char opendir ();
5974 int
5975 main ()
5976 {
5977 opendir ();
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984   (eval $ac_link) 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } &&
5991          { ac_try='test -z "$ac_c_werror_flag"
5992                          || test ! -s conftest.err'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; } &&
5998          { ac_try='test -s conftest$ac_exeext'
5999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000   (eval $ac_try) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   ac_cv_search_opendir="none required"
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 fi
6010 rm -f conftest.err conftest.$ac_objext \
6011       conftest$ac_exeext conftest.$ac_ext
6012 if test "$ac_cv_search_opendir" = no; then
6013   for ac_lib in dir; do
6014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6015     cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021
6022 /* Override any gcc2 internal prototype to avoid an error.  */
6023 #ifdef __cplusplus
6024 extern "C"
6025 #endif
6026 /* We use char because int might match the return type of a gcc2
6027    builtin and then its argument prototype would still apply.  */
6028 char opendir ();
6029 int
6030 main ()
6031 {
6032 opendir ();
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039   (eval $ac_link) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -z "$ac_c_werror_flag"
6047                          || test ! -s conftest.err'
6048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049   (eval $ac_try) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; } &&
6053          { ac_try='test -s conftest$ac_exeext'
6054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055   (eval $ac_try) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; }; then
6059   ac_cv_search_opendir="-l$ac_lib"
6060 break
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065 fi
6066 rm -f conftest.err conftest.$ac_objext \
6067       conftest$ac_exeext conftest.$ac_ext
6068   done
6069 fi
6070 LIBS=$ac_func_search_save_LIBS
6071 fi
6072 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6073 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6074 if test "$ac_cv_search_opendir" != no; then
6075   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6076
6077 fi
6078
6079 else
6080   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6082 if test "${ac_cv_search_opendir+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   ac_func_search_save_LIBS=$LIBS
6086 ac_cv_search_opendir=no
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093
6094 /* Override any gcc2 internal prototype to avoid an error.  */
6095 #ifdef __cplusplus
6096 extern "C"
6097 #endif
6098 /* We use char because int might match the return type of a gcc2
6099    builtin and then its argument prototype would still apply.  */
6100 char opendir ();
6101 int
6102 main ()
6103 {
6104 opendir ();
6105   ;
6106   return 0;
6107 }
6108 _ACEOF
6109 rm -f conftest.$ac_objext conftest$ac_exeext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111   (eval $ac_link) 2>conftest.er1
6112   ac_status=$?
6113   grep -v '^ *+' conftest.er1 >conftest.err
6114   rm -f conftest.er1
6115   cat conftest.err >&5
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } &&
6118          { ac_try='test -z "$ac_c_werror_flag"
6119                          || test ! -s conftest.err'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; } &&
6125          { ac_try='test -s conftest$ac_exeext'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; }; then
6131   ac_cv_search_opendir="none required"
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136 fi
6137 rm -f conftest.err conftest.$ac_objext \
6138       conftest$ac_exeext conftest.$ac_ext
6139 if test "$ac_cv_search_opendir" = no; then
6140   for ac_lib in x; do
6141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6142     cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h.  */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h.  */
6148
6149 /* Override any gcc2 internal prototype to avoid an error.  */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154    builtin and then its argument prototype would still apply.  */
6155 char opendir ();
6156 int
6157 main ()
6158 {
6159 opendir ();
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166   (eval $ac_link) 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } &&
6173          { ac_try='test -z "$ac_c_werror_flag"
6174                          || test ! -s conftest.err'
6175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176   (eval $ac_try) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; } &&
6180          { ac_try='test -s conftest$ac_exeext'
6181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182   (eval $ac_try) 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; }; then
6186   ac_cv_search_opendir="-l$ac_lib"
6187 break
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 fi
6193 rm -f conftest.err conftest.$ac_objext \
6194       conftest$ac_exeext conftest.$ac_ext
6195   done
6196 fi
6197 LIBS=$ac_func_search_save_LIBS
6198 fi
6199 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6200 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6201 if test "$ac_cv_search_opendir" != no; then
6202   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6203
6204 fi
6205
6206 fi
6207
6208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6219                   inttypes.h stdint.h unistd.h
6220 do
6221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222 echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 $ac_includes_default
6234
6235 #include <$ac_header>
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239   (eval $ac_compile) 2>conftest.er1
6240   ac_status=$?
6241   grep -v '^ *+' conftest.er1 >conftest.err
6242   rm -f conftest.er1
6243   cat conftest.err >&5
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } &&
6246          { ac_try='test -z "$ac_c_werror_flag"
6247                          || test ! -s conftest.err'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; } &&
6253          { ac_try='test -s conftest.$ac_objext'
6254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255   (eval $ac_try) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; }; then
6259   eval "$as_ac_Header=yes"
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 eval "$as_ac_Header=no"
6265 fi
6266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6267 fi
6268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271   cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273 _ACEOF
6274
6275 fi
6276
6277 done
6278
6279
6280
6281 for ac_header in dlfcn.h
6282 do
6283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285   echo "$as_me:$LINENO: checking for $ac_header" >&5
6286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 fi
6290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6292 else
6293   # Is the header compilable?
6294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6296 cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 $ac_includes_default
6303 #include <$ac_header>
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307   (eval $ac_compile) 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -z "$ac_c_werror_flag"
6315                          || test ! -s conftest.err'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; } &&
6321          { ac_try='test -s conftest.$ac_objext'
6322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323   (eval $ac_try) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   ac_header_compiler=yes
6328 else
6329   echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 ac_header_compiler=no
6333 fi
6334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336 echo "${ECHO_T}$ac_header_compiler" >&6
6337
6338 # Is the header present?
6339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h.  */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h.  */
6347 #include <$ac_header>
6348 _ACEOF
6349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6351   ac_status=$?
6352   grep -v '^ *+' conftest.er1 >conftest.err
6353   rm -f conftest.er1
6354   cat conftest.err >&5
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } >/dev/null; then
6357   if test -s conftest.err; then
6358     ac_cpp_err=$ac_c_preproc_warn_flag
6359     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6360   else
6361     ac_cpp_err=
6362   fi
6363 else
6364   ac_cpp_err=yes
6365 fi
6366 if test -z "$ac_cpp_err"; then
6367   ac_header_preproc=yes
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372   ac_header_preproc=no
6373 fi
6374 rm -f conftest.err conftest.$ac_ext
6375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 echo "${ECHO_T}$ac_header_preproc" >&6
6377
6378 # So?  What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380   yes:no: )
6381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385     ac_header_preproc=yes
6386     ;;
6387   no:yes:* )
6388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6391 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6395 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400     (
6401       cat <<\_ASBOX
6402 ## ----------------------------------- ##
6403 ## Report this to llvmbugs@cs.uiuc.edu ##
6404 ## ----------------------------------- ##
6405 _ASBOX
6406     ) |
6407       sed "s/^/$as_me: WARNING:     /" >&2
6408     ;;
6409 esac
6410 echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   eval "$as_ac_Header=\$ac_header_preproc"
6416 fi
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419
6420 fi
6421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6422   cat >>confdefs.h <<_ACEOF
6423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6424 _ACEOF
6425
6426 fi
6427
6428 done
6429
6430 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6431 if test "${enable_ltdl_install+set}" = set; then
6432   enableval="$enable_ltdl_install"
6433
6434 fi;
6435
6436
6437
6438 if test x"${enable_ltdl_install-no}" != xno; then
6439   INSTALL_LTDL_TRUE=
6440   INSTALL_LTDL_FALSE='#'
6441 else
6442   INSTALL_LTDL_TRUE='#'
6443   INSTALL_LTDL_FALSE=
6444 fi
6445
6446
6447
6448 if test x"${enable_ltdl_convenience-no}" != xno; then
6449   CONVENIENCE_LTDL_TRUE=
6450   CONVENIENCE_LTDL_FALSE='#'
6451 else
6452   CONVENIENCE_LTDL_TRUE='#'
6453   CONVENIENCE_LTDL_FALSE=
6454 fi
6455
6456
6457 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6458 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6459 library_names_spec=
6460 libname_spec='lib$name'
6461 soname_spec=
6462 shrext_cmds=".so"
6463 postinstall_cmds=
6464 postuninstall_cmds=
6465 finish_cmds=
6466 finish_eval=
6467 shlibpath_var=
6468 shlibpath_overrides_runpath=unknown
6469 version_type=none
6470 dynamic_linker="$host_os ld.so"
6471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6472 if test "$GCC" = yes; then
6473   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6474   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6475     # if the path contains ";" then we assume it to be the separator
6476     # otherwise default to the standard path separator (i.e. ":") - it is
6477     # assumed that no part of a normal pathname contains ";" but that should
6478     # okay in the real world where ";" in dirpaths is itself problematic.
6479     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6480   else
6481     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6482   fi
6483 else
6484   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6485 fi
6486 need_lib_prefix=unknown
6487 hardcode_into_libs=no
6488
6489 # when you set need_version to no, make sure it does not cause -set_version
6490 # flags to be left without arguments
6491 need_version=unknown
6492
6493 case $host_os in
6494 aix3*)
6495   version_type=linux
6496   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6497   shlibpath_var=LIBPATH
6498
6499   # AIX 3 has no versioning support, so we append a major version to the name.
6500   soname_spec='${libname}${release}${shared_ext}$major'
6501   ;;
6502
6503 aix4* | aix5*)
6504   version_type=linux
6505   need_lib_prefix=no
6506   need_version=no
6507   hardcode_into_libs=yes
6508   if test "$host_cpu" = ia64; then
6509     # AIX 5 supports IA64
6510     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6511     shlibpath_var=LD_LIBRARY_PATH
6512   else
6513     # With GCC up to 2.95.x, collect2 would create an import file
6514     # for dependence libraries.  The import file would start with
6515     # the line `#! .'.  This would cause the generated library to
6516     # depend on `.', always an invalid library.  This was fixed in
6517     # development snapshots of GCC prior to 3.0.
6518     case $host_os in
6519       aix4 | aix4.[01] | aix4.[01].*)
6520       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6521            echo ' yes '
6522            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6523         :
6524       else
6525         can_build_shared=no
6526       fi
6527       ;;
6528     esac
6529     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6530     # soname into executable. Probably we can add versioning support to
6531     # collect2, so additional links can be useful in future.
6532     if test "$aix_use_runtimelinking" = yes; then
6533       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6534       # instead of lib<name>.a to let people know that these are not
6535       # typical AIX shared libraries.
6536       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6537     else
6538       # We preserve .a as extension for shared libraries through AIX4.2
6539       # and later when we are not doing run time linking.
6540       library_names_spec='${libname}${release}.a $libname.a'
6541       soname_spec='${libname}${release}${shared_ext}$major'
6542     fi
6543     shlibpath_var=LIBPATH
6544   fi
6545   ;;
6546
6547 amigaos*)
6548   library_names_spec='$libname.ixlibrary $libname.a'
6549   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6550   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'
6551   ;;
6552
6553 beos*)
6554   library_names_spec='${libname}${shared_ext}'
6555   dynamic_linker="$host_os ld.so"
6556   shlibpath_var=LIBRARY_PATH
6557   ;;
6558
6559 bsdi[45]*)
6560   version_type=linux
6561   need_version=no
6562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6563   soname_spec='${libname}${release}${shared_ext}$major'
6564   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6565   shlibpath_var=LD_LIBRARY_PATH
6566   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6567   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6568   # the default ld.so.conf also contains /usr/contrib/lib and
6569   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6570   # libtool to hard-code these into programs
6571   ;;
6572
6573 cygwin* | mingw* | pw32*)
6574   version_type=windows
6575   shrext_cmds=".dll"
6576   need_version=no
6577   need_lib_prefix=no
6578
6579   case $GCC,$host_os in
6580   yes,cygwin* | yes,mingw* | yes,pw32*)
6581     library_names_spec='$libname.dll.a'
6582     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6583     postinstall_cmds='base_file=`basename \${file}`~
6584       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6585       dldir=$destdir/`dirname \$dlpath`~
6586       test -d \$dldir || mkdir -p \$dldir~
6587       $install_prog $dir/$dlname \$dldir/$dlname'
6588     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6589       dlpath=$dir/\$dldll~
6590        $rm \$dlpath'
6591     shlibpath_overrides_runpath=yes
6592
6593     case $host_os in
6594     cygwin*)
6595       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6596       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6597       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6598       ;;
6599     mingw*)
6600       # MinGW DLLs use traditional 'lib' prefix
6601       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6602       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6603       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6604         # It is most probably a Windows format PATH printed by
6605         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6606         # path with ; separators, and with drive letters. We can handle the
6607         # drive letters (cygwin fileutils understands them), so leave them,
6608         # especially as we might pass files found there to a mingw objdump,
6609         # which wouldn't understand a cygwinified path. Ahh.
6610         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6611       else
6612         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6613       fi
6614       ;;
6615     pw32*)
6616       # pw32 DLLs use 'pw' prefix rather than 'lib'
6617       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6618       ;;
6619     esac
6620     ;;
6621
6622   *)
6623     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6624     ;;
6625   esac
6626   dynamic_linker='Win32 ld.exe'
6627   # FIXME: first we should search . and the directory the executable is in
6628   shlibpath_var=PATH
6629   ;;
6630
6631 darwin* | rhapsody*)
6632   dynamic_linker="$host_os dyld"
6633   version_type=darwin
6634   need_lib_prefix=no
6635   need_version=no
6636   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6637   soname_spec='${libname}${release}${major}$shared_ext'
6638   shlibpath_overrides_runpath=yes
6639   shlibpath_var=DYLD_LIBRARY_PATH
6640   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6641   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6642   if test "$GCC" = yes; then
6643     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"`
6644   else
6645     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6646   fi
6647   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6648   ;;
6649
6650 dgux*)
6651   version_type=linux
6652   need_lib_prefix=no
6653   need_version=no
6654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6655   soname_spec='${libname}${release}${shared_ext}$major'
6656   shlibpath_var=LD_LIBRARY_PATH
6657   ;;
6658
6659 freebsd1*)
6660   dynamic_linker=no
6661   ;;
6662
6663 kfreebsd*-gnu)
6664   version_type=linux
6665   need_lib_prefix=no
6666   need_version=no
6667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6668   soname_spec='${libname}${release}${shared_ext}$major'
6669   shlibpath_var=LD_LIBRARY_PATH
6670   shlibpath_overrides_runpath=no
6671   hardcode_into_libs=yes
6672   dynamic_linker='GNU ld.so'
6673   ;;
6674
6675 freebsd*)
6676   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6677   version_type=freebsd-$objformat
6678   case $version_type in
6679     freebsd-elf*)
6680       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6681       need_version=no
6682       need_lib_prefix=no
6683       ;;
6684     freebsd-*)
6685       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6686       need_version=yes
6687       ;;
6688   esac
6689   shlibpath_var=LD_LIBRARY_PATH
6690   case $host_os in
6691   freebsd2*)
6692     shlibpath_overrides_runpath=yes
6693     ;;
6694   freebsd3.01* | freebsdelf3.01*)
6695     shlibpath_overrides_runpath=yes
6696     hardcode_into_libs=yes
6697     ;;
6698   *) # from 3.2 on
6699     shlibpath_overrides_runpath=no
6700     hardcode_into_libs=yes
6701     ;;
6702   esac
6703   ;;
6704
6705 gnu*)
6706   version_type=linux
6707   need_lib_prefix=no
6708   need_version=no
6709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6710   soname_spec='${libname}${release}${shared_ext}$major'
6711   shlibpath_var=LD_LIBRARY_PATH
6712   hardcode_into_libs=yes
6713   ;;
6714
6715 hpux9* | hpux10* | hpux11*)
6716   # Give a soname corresponding to the major version so that dld.sl refuses to
6717   # link against other versions.
6718   version_type=sunos
6719   need_lib_prefix=no
6720   need_version=no
6721   case "$host_cpu" in
6722   ia64*)
6723     shrext_cmds='.so'
6724     hardcode_into_libs=yes
6725     dynamic_linker="$host_os dld.so"
6726     shlibpath_var=LD_LIBRARY_PATH
6727     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6729     soname_spec='${libname}${release}${shared_ext}$major'
6730     if test "X$HPUX_IA64_MODE" = X32; then
6731       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6732     else
6733       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6734     fi
6735     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6736     ;;
6737    hppa*64*)
6738      shrext_cmds='.sl'
6739      hardcode_into_libs=yes
6740      dynamic_linker="$host_os dld.sl"
6741      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6742      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6743      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6744      soname_spec='${libname}${release}${shared_ext}$major'
6745      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6746      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6747      ;;
6748    *)
6749     shrext_cmds='.sl'
6750     dynamic_linker="$host_os dld.sl"
6751     shlibpath_var=SHLIB_PATH
6752     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6754     soname_spec='${libname}${release}${shared_ext}$major'
6755     ;;
6756   esac
6757   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6758   postinstall_cmds='chmod 555 $lib'
6759   ;;
6760
6761 irix5* | irix6* | nonstopux*)
6762   case $host_os in
6763     nonstopux*) version_type=nonstopux ;;
6764     *)
6765         if test "$lt_cv_prog_gnu_ld" = yes; then
6766                 version_type=linux
6767         else
6768                 version_type=irix
6769         fi ;;
6770   esac
6771   need_lib_prefix=no
6772   need_version=no
6773   soname_spec='${libname}${release}${shared_ext}$major'
6774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6775   case $host_os in
6776   irix5* | nonstopux*)
6777     libsuff= shlibsuff=
6778     ;;
6779   *)
6780     case $LD in # libtool.m4 will add one of these switches to LD
6781     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6782       libsuff= shlibsuff= libmagic=32-bit;;
6783     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6784       libsuff=32 shlibsuff=N32 libmagic=N32;;
6785     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6786       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6787     *) libsuff= shlibsuff= libmagic=never-match;;
6788     esac
6789     ;;
6790   esac
6791   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6792   shlibpath_overrides_runpath=no
6793   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6794   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6795   hardcode_into_libs=yes
6796   ;;
6797
6798 # No shared lib support for Linux oldld, aout, or coff.
6799 linux*oldld* | linux*aout* | linux*coff*)
6800   dynamic_linker=no
6801   ;;
6802
6803 # This must be Linux ELF.
6804 linux*)
6805   version_type=linux
6806   need_lib_prefix=no
6807   need_version=no
6808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6809   soname_spec='${libname}${release}${shared_ext}$major'
6810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6811   shlibpath_var=LD_LIBRARY_PATH
6812   shlibpath_overrides_runpath=no
6813   # This implies no fast_install, which is unacceptable.
6814   # Some rework will be needed to allow for fast_install
6815   # before this can be enabled.
6816   hardcode_into_libs=yes
6817
6818   # Append ld.so.conf contents to the search path
6819   if test -f /etc/ld.so.conf; then
6820     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6821     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6822   fi
6823
6824   # We used to test for /lib/ld.so.1 and disable shared libraries on
6825   # powerpc, because MkLinux only supported shared libraries with the
6826   # GNU dynamic linker.  Since this was broken with cross compilers,
6827   # most powerpc-linux boxes support dynamic linking these days and
6828   # people can always --disable-shared, the test was removed, and we
6829   # assume the GNU/Linux dynamic linker is in use.
6830   dynamic_linker='GNU/Linux ld.so'
6831   ;;
6832
6833 knetbsd*-gnu)
6834   version_type=linux
6835   need_lib_prefix=no
6836   need_version=no
6837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6838   soname_spec='${libname}${release}${shared_ext}$major'
6839   shlibpath_var=LD_LIBRARY_PATH
6840   shlibpath_overrides_runpath=no
6841   hardcode_into_libs=yes
6842   dynamic_linker='GNU ld.so'
6843   ;;
6844
6845 netbsd*)
6846   version_type=sunos
6847   need_lib_prefix=no
6848   need_version=no
6849   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6851     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6852     dynamic_linker='NetBSD (a.out) ld.so'
6853   else
6854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6855     soname_spec='${libname}${release}${shared_ext}$major'
6856     dynamic_linker='NetBSD ld.elf_so'
6857   fi
6858   shlibpath_var=LD_LIBRARY_PATH
6859   shlibpath_overrides_runpath=yes
6860   hardcode_into_libs=yes
6861   ;;
6862
6863 newsos6)
6864   version_type=linux
6865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6866   shlibpath_var=LD_LIBRARY_PATH
6867   shlibpath_overrides_runpath=yes
6868   ;;
6869
6870 nto-qnx*)
6871   version_type=linux
6872   need_lib_prefix=no
6873   need_version=no
6874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6875   soname_spec='${libname}${release}${shared_ext}$major'
6876   shlibpath_var=LD_LIBRARY_PATH
6877   shlibpath_overrides_runpath=yes
6878   ;;
6879
6880 openbsd*)
6881   version_type=sunos
6882   need_lib_prefix=no
6883   need_version=no
6884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6886   shlibpath_var=LD_LIBRARY_PATH
6887   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6888     case $host_os in
6889       openbsd2.[89] | openbsd2.[89].*)
6890         shlibpath_overrides_runpath=no
6891         ;;
6892       *)
6893         shlibpath_overrides_runpath=yes
6894         ;;
6895       esac
6896   else
6897     shlibpath_overrides_runpath=yes
6898   fi
6899   ;;
6900
6901 os2*)
6902   libname_spec='$name'
6903   shrext_cmds=".dll"
6904   need_lib_prefix=no
6905   library_names_spec='$libname${shared_ext} $libname.a'
6906   dynamic_linker='OS/2 ld.exe'
6907   shlibpath_var=LIBPATH
6908   ;;
6909
6910 osf3* | osf4* | osf5*)
6911   version_type=osf
6912   need_lib_prefix=no
6913   need_version=no
6914   soname_spec='${libname}${release}${shared_ext}$major'
6915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916   shlibpath_var=LD_LIBRARY_PATH
6917   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6918   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6919   ;;
6920
6921 sco3.2v5*)
6922   version_type=osf
6923   soname_spec='${libname}${release}${shared_ext}$major'
6924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6925   shlibpath_var=LD_LIBRARY_PATH
6926   ;;
6927
6928 solaris*)
6929   version_type=linux
6930   need_lib_prefix=no
6931   need_version=no
6932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6933   soname_spec='${libname}${release}${shared_ext}$major'
6934   shlibpath_var=LD_LIBRARY_PATH
6935   shlibpath_overrides_runpath=yes
6936   hardcode_into_libs=yes
6937   # ldd complains unless libraries are executable
6938   postinstall_cmds='chmod +x $lib'
6939   ;;
6940
6941 sunos4*)
6942   version_type=sunos
6943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6944   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6945   shlibpath_var=LD_LIBRARY_PATH
6946   shlibpath_overrides_runpath=yes
6947   if test "$with_gnu_ld" = yes; then
6948     need_lib_prefix=no
6949   fi
6950   need_version=yes
6951   ;;
6952
6953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6954   version_type=linux
6955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6956   soname_spec='${libname}${release}${shared_ext}$major'
6957   shlibpath_var=LD_LIBRARY_PATH
6958   case $host_vendor in
6959     sni)
6960       shlibpath_overrides_runpath=no
6961       need_lib_prefix=no
6962       export_dynamic_flag_spec='${wl}-Blargedynsym'
6963       runpath_var=LD_RUN_PATH
6964       ;;
6965     siemens)
6966       need_lib_prefix=no
6967       ;;
6968     motorola)
6969       need_lib_prefix=no
6970       need_version=no
6971       shlibpath_overrides_runpath=no
6972       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6973       ;;
6974   esac
6975   ;;
6976
6977 sysv4*MP*)
6978   if test -d /usr/nec ;then
6979     version_type=linux
6980     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6981     soname_spec='$libname${shared_ext}.$major'
6982     shlibpath_var=LD_LIBRARY_PATH
6983   fi
6984   ;;
6985
6986 uts4*)
6987   version_type=linux
6988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989   soname_spec='${libname}${release}${shared_ext}$major'
6990   shlibpath_var=LD_LIBRARY_PATH
6991   ;;
6992
6993 *)
6994   dynamic_linker=no
6995   ;;
6996 esac
6997 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6998 echo "${ECHO_T}$dynamic_linker" >&6
6999 test "$dynamic_linker" = no && can_build_shared=no
7000
7001
7002 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7003 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7004 if test "${libltdl_cv_shlibext+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007
7008 module=yes
7009 eval libltdl_cv_shlibext=$shrext_cmds
7010
7011 fi
7012 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7013 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7014 if test -n "$libltdl_cv_shlibext"; then
7015
7016 cat >>confdefs.h <<_ACEOF
7017 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7018 _ACEOF
7019
7020 fi
7021
7022
7023 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7024 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7025 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   libltdl_cv_shlibpath_var="$shlibpath_var"
7029 fi
7030 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7031 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7032 if test -n "$libltdl_cv_shlibpath_var"; then
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7036 _ACEOF
7037
7038 fi
7039
7040
7041 echo "$as_me:$LINENO: checking for the default library search path" >&5
7042 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7043 if test "${libltdl_cv_sys_search_path+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7047 fi
7048 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7049 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7050 if test -n "$libltdl_cv_sys_search_path"; then
7051   sys_search_path=
7052   for dir in $libltdl_cv_sys_search_path; do
7053     if test -z "$sys_search_path"; then
7054       sys_search_path="$dir"
7055     else
7056       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7057     fi
7058   done
7059
7060 cat >>confdefs.h <<_ACEOF
7061 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7062 _ACEOF
7063
7064 fi
7065
7066 echo "$as_me:$LINENO: checking for objdir" >&5
7067 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7068 if test "${libltdl_cv_objdir+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   libltdl_cv_objdir="$objdir"
7072   if test -n "$objdir"; then
7073     :
7074   else
7075     rm -f .libs 2>/dev/null
7076     mkdir .libs 2>/dev/null
7077     if test -d .libs; then
7078       libltdl_cv_objdir=.libs
7079     else
7080       # MS-DOS does not allow filenames that begin with a dot.
7081       libltdl_cv_objdir=_libs
7082     fi
7083   rmdir .libs 2>/dev/null
7084   fi
7085
7086 fi
7087 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7088 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7089
7090 cat >>confdefs.h <<_ACEOF
7091 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7092 _ACEOF
7093
7094
7095 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7096 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7097 if test "${lt_cv_path_NM+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   if test -n "$NM"; then
7101   # Let the user override the test.
7102   lt_cv_path_NM="$NM"
7103 else
7104   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7106     IFS="$lt_save_ifs"
7107     test -z "$ac_dir" && ac_dir=.
7108     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7109     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7110       # Check to see if the nm accepts a BSD-compat flag.
7111       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7112       #   nm: unknown option "B" ignored
7113       # Tru64's nm complains that /dev/null is an invalid object file
7114       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7115       */dev/null* | *'Invalid file or object type'*)
7116         lt_cv_path_NM="$tmp_nm -B"
7117         break
7118         ;;
7119       *)
7120         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7121         */dev/null*)
7122           lt_cv_path_NM="$tmp_nm -p"
7123           break
7124           ;;
7125         *)
7126           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7127           continue # so that we can try to find one that supports BSD flags
7128           ;;
7129         esac
7130       esac
7131     fi
7132   done
7133   IFS="$lt_save_ifs"
7134   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7135 fi
7136 fi
7137 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7138 echo "${ECHO_T}$lt_cv_path_NM" >&6
7139 NM="$lt_cv_path_NM"
7140
7141
7142
7143
7144
7145 # Check for command to grab the raw symbol name followed by C symbol from nm.
7146 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7147 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7148 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151
7152 # These are sane defaults that work on at least a few old systems.
7153 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7154
7155 # Character class describing NM global symbol codes.
7156 symcode='[BCDEGRST]'
7157
7158 # Regexp to match symbols that can be accessed directly from C.
7159 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7160
7161 # Transform the above into a raw symbol and a C symbol.
7162 symxfrm='\1 \2\3 \3'
7163
7164 # Transform an extracted symbol line into a proper C declaration
7165 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7166
7167 # Transform an extracted symbol line into symbol name and symbol address
7168 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'"
7169
7170 # Define system-specific variables.
7171 case $host_os in
7172 aix*)
7173   symcode='[BCDT]'
7174   ;;
7175 cygwin* | mingw* | pw32*)
7176   symcode='[ABCDGISTW]'
7177   ;;
7178 hpux*) # Its linker distinguishes data from code symbols
7179   if test "$host_cpu" = ia64; then
7180     symcode='[ABCDEGRST]'
7181   fi
7182   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7183   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'"
7184   ;;
7185 linux*)
7186   if test "$host_cpu" = ia64; then
7187     symcode='[ABCDGIRSTW]'
7188     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7189     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'"
7190   fi
7191   ;;
7192 irix* | nonstopux*)
7193   symcode='[BCDEGRST]'
7194   ;;
7195 osf*)
7196   symcode='[BCDEGQRST]'
7197   ;;
7198 solaris* | sysv5*)
7199   symcode='[BDRT]'
7200   ;;
7201 sysv4)
7202   symcode='[DFNSTU]'
7203   ;;
7204 esac
7205
7206 # Handle CRLF in mingw tool chain
7207 opt_cr=
7208 case $build_os in
7209 mingw*)
7210   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7211   ;;
7212 esac
7213
7214 # If we're using GNU nm, then use its standard symbol codes.
7215 case `$NM -V 2>&1` in
7216 *GNU* | *'with BFD'*)
7217   symcode='[ABCDGIRSTW]' ;;
7218 esac
7219
7220 # Try without a prefix undercore, then with it.
7221 for ac_symprfx in "" "_"; do
7222
7223   # Write the raw and C identifiers.
7224   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7225
7226   # Check to see that the pipe works correctly.
7227   pipe_works=no
7228
7229   rm -f conftest*
7230   cat > conftest.$ac_ext <<EOF
7231 #ifdef __cplusplus
7232 extern "C" {
7233 #endif
7234 char nm_test_var;
7235 void nm_test_func(){}
7236 #ifdef __cplusplus
7237 }
7238 #endif
7239 int main(){nm_test_var='a';nm_test_func();return(0);}
7240 EOF
7241
7242   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243   (eval $ac_compile) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); }; then
7247     # Now try to grab the symbols.
7248     nlist=conftest.nm
7249     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7250   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); } && test -s "$nlist"; then
7254       # Try sorting and uniquifying the output.
7255       if sort "$nlist" | uniq > "$nlist"T; then
7256         mv -f "$nlist"T "$nlist"
7257       else
7258         rm -f "$nlist"T
7259       fi
7260
7261       # Make sure that we snagged all the symbols we need.
7262       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7263         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7264           cat <<EOF > conftest.$ac_ext
7265 #ifdef __cplusplus
7266 extern "C" {
7267 #endif
7268
7269 EOF
7270           # Now generate the symbol file.
7271           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7272
7273           cat <<EOF >> conftest.$ac_ext
7274 #if defined (__STDC__) && __STDC__
7275 # define lt_ptr_t void *
7276 #else
7277 # define lt_ptr_t char *
7278 # define const
7279 #endif
7280
7281 /* The mapping between symbol names and symbols. */
7282 const struct {
7283   const char *name;
7284   lt_ptr_t address;
7285 }
7286 lt_preloaded_symbols[] =
7287 {
7288 EOF
7289           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7290           cat <<\EOF >> conftest.$ac_ext
7291   {0, (lt_ptr_t) 0}
7292 };
7293
7294 #ifdef __cplusplus
7295 }
7296 #endif
7297 EOF
7298           # Now try linking the two files.
7299           mv conftest.$ac_objext conftstm.$ac_objext
7300           lt_save_LIBS="$LIBS"
7301           lt_save_CFLAGS="$CFLAGS"
7302           LIBS="conftstm.$ac_objext"
7303           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7304           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305   (eval $ac_link) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7309             pipe_works=yes
7310           fi
7311           LIBS="$lt_save_LIBS"
7312           CFLAGS="$lt_save_CFLAGS"
7313         else
7314           echo "cannot find nm_test_func in $nlist" >&5
7315         fi
7316       else
7317         echo "cannot find nm_test_var in $nlist" >&5
7318       fi
7319     else
7320       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7321     fi
7322   else
7323     echo "$progname: failed program was:" >&5
7324     cat conftest.$ac_ext >&5
7325   fi
7326   rm -f conftest* conftst*
7327
7328   # Do not use the global_symbol_pipe unless it works.
7329   if test "$pipe_works" = yes; then
7330     break
7331   else
7332     lt_cv_sys_global_symbol_pipe=
7333   fi
7334 done
7335
7336 fi
7337
7338 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7339   lt_cv_sys_global_symbol_to_cdecl=
7340 fi
7341 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7342   echo "$as_me:$LINENO: result: failed" >&5
7343 echo "${ECHO_T}failed" >&6
7344 else
7345   echo "$as_me:$LINENO: result: ok" >&5
7346 echo "${ECHO_T}ok" >&6
7347 fi
7348
7349
7350 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7351 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7352 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7356     libltdl_cv_preloaded_symbols=yes
7357   else
7358     libltdl_cv_preloaded_symbols=no
7359   fi
7360
7361 fi
7362 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7363 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7364 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7365
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_PRELOADED_SYMBOLS 1
7368 _ACEOF
7369
7370 fi
7371
7372 LIBADD_DL=
7373
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380
7381 echo "$as_me:$LINENO: checking for shl_load" >&5
7382 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7383 if test "${ac_cv_func_shl_load+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h.  */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h.  */
7392 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7394 #define shl_load innocuous_shl_load
7395
7396 /* System header to define __stub macros and hopefully few prototypes,
7397     which can conflict with char shl_load (); below.
7398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399     <limits.h> exists even on freestanding compilers.  */
7400
7401 #ifdef __STDC__
7402 # include <limits.h>
7403 #else
7404 # include <assert.h>
7405 #endif
7406
7407 #undef shl_load
7408
7409 /* Override any gcc2 internal prototype to avoid an error.  */
7410 #ifdef __cplusplus
7411 extern "C"
7412 {
7413 #endif
7414 /* We use char because int might match the return type of a gcc2
7415    builtin and then its argument prototype would still apply.  */
7416 char shl_load ();
7417 /* The GNU C library defines this for functions which it implements
7418     to always fail with ENOSYS.  Some functions are actually named
7419     something starting with __ and the normal name is an alias.  */
7420 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7421 choke me
7422 #else
7423 char (*f) () = shl_load;
7424 #endif
7425 #ifdef __cplusplus
7426 }
7427 #endif
7428
7429 int
7430 main ()
7431 {
7432 return f != shl_load;
7433   ;
7434   return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439   (eval $ac_link) 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } &&
7446          { ac_try='test -z "$ac_c_werror_flag"
7447                          || test ! -s conftest.err'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; } &&
7453          { ac_try='test -s conftest$ac_exeext'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459   ac_cv_func_shl_load=yes
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 ac_cv_func_shl_load=no
7465 fi
7466 rm -f conftest.err conftest.$ac_objext \
7467       conftest$ac_exeext conftest.$ac_ext
7468 fi
7469 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7470 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7471 if test $ac_cv_func_shl_load = yes; then
7472
7473 cat >>confdefs.h <<\_ACEOF
7474 #define HAVE_SHL_LOAD 1
7475 _ACEOF
7476
7477 else
7478   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7479 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   ac_check_lib_save_LIBS=$LIBS
7484 LIBS="-ldld  $LIBS"
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h.  */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h.  */
7491
7492 /* Override any gcc2 internal prototype to avoid an error.  */
7493 #ifdef __cplusplus
7494 extern "C"
7495 #endif
7496 /* We use char because int might match the return type of a gcc2
7497    builtin and then its argument prototype would still apply.  */
7498 char shl_load ();
7499 int
7500 main ()
7501 {
7502 shl_load ();
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509   (eval $ac_link) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } &&
7516          { ac_try='test -z "$ac_c_werror_flag"
7517                          || test ! -s conftest.err'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; } &&
7523          { ac_try='test -s conftest$ac_exeext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_cv_lib_dld_shl_load=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_lib_dld_shl_load=no
7535 fi
7536 rm -f conftest.err conftest.$ac_objext \
7537       conftest$ac_exeext conftest.$ac_ext
7538 LIBS=$ac_check_lib_save_LIBS
7539 fi
7540 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7541 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7542 if test $ac_cv_lib_dld_shl_load = yes; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_SHL_LOAD 1
7546 _ACEOF
7547
7548         LIBADD_DL="$LIBADD_DL -ldld"
7549 else
7550   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7551 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   ac_check_lib_save_LIBS=$LIBS
7556 LIBS="-ldl  $LIBS"
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563
7564 /* Override any gcc2 internal prototype to avoid an error.  */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 /* We use char because int might match the return type of a gcc2
7569    builtin and then its argument prototype would still apply.  */
7570 char dlopen ();
7571 int
7572 main ()
7573 {
7574 dlopen ();
7575   ;
7576   return 0;
7577 }
7578 _ACEOF
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581   (eval $ac_link) 2>conftest.er1
7582   ac_status=$?
7583   grep -v '^ *+' conftest.er1 >conftest.err
7584   rm -f conftest.er1
7585   cat conftest.err >&5
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } &&
7588          { ac_try='test -z "$ac_c_werror_flag"
7589                          || test ! -s conftest.err'
7590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591   (eval $ac_try) 2>&5
7592   ac_status=$?
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }; } &&
7595          { ac_try='test -s conftest$ac_exeext'
7596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597   (eval $ac_try) 2>&5
7598   ac_status=$?
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); }; }; then
7601   ac_cv_lib_dl_dlopen=yes
7602 else
7603   echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606 ac_cv_lib_dl_dlopen=no
7607 fi
7608 rm -f conftest.err conftest.$ac_objext \
7609       conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7611 fi
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7614 if test $ac_cv_lib_dl_dlopen = yes; then
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_LIBDL 1
7618 _ACEOF
7619
7620                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7621 else
7622   cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 #if HAVE_DLFCN_H
7629 #  include <dlfcn.h>
7630 #endif
7631
7632 int
7633 main ()
7634 {
7635 dlopen(0, 0);
7636   ;
7637   return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642   (eval $ac_link) 2>conftest.er1
7643   ac_status=$?
7644   grep -v '^ *+' conftest.er1 >conftest.err
7645   rm -f conftest.er1
7646   cat conftest.err >&5
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); } &&
7649          { ac_try='test -z "$ac_c_werror_flag"
7650                          || test ! -s conftest.err'
7651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652   (eval $ac_try) 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); }; } &&
7656          { ac_try='test -s conftest$ac_exeext'
7657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658   (eval $ac_try) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); }; }; then
7662
7663 cat >>confdefs.h <<\_ACEOF
7664 #define HAVE_LIBDL 1
7665 _ACEOF
7666  libltdl_cv_func_dlopen="yes"
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7672 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7673 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   ac_check_lib_save_LIBS=$LIBS
7677 LIBS="-lsvld  $LIBS"
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h.  */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h.  */
7684
7685 /* Override any gcc2 internal prototype to avoid an error.  */
7686 #ifdef __cplusplus
7687 extern "C"
7688 #endif
7689 /* We use char because int might match the return type of a gcc2
7690    builtin and then its argument prototype would still apply.  */
7691 char dlopen ();
7692 int
7693 main ()
7694 {
7695 dlopen ();
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 rm -f conftest.$ac_objext conftest$ac_exeext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702   (eval $ac_link) 2>conftest.er1
7703   ac_status=$?
7704   grep -v '^ *+' conftest.er1 >conftest.err
7705   rm -f conftest.er1
7706   cat conftest.err >&5
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } &&
7709          { ac_try='test -z "$ac_c_werror_flag"
7710                          || test ! -s conftest.err'
7711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712   (eval $ac_try) 2>&5
7713   ac_status=$?
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); }; } &&
7716          { ac_try='test -s conftest$ac_exeext'
7717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718   (eval $ac_try) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); }; }; then
7722   ac_cv_lib_svld_dlopen=yes
7723 else
7724   echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 ac_cv_lib_svld_dlopen=no
7728 fi
7729 rm -f conftest.err conftest.$ac_objext \
7730       conftest$ac_exeext conftest.$ac_ext
7731 LIBS=$ac_check_lib_save_LIBS
7732 fi
7733 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7734 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7735 if test $ac_cv_lib_svld_dlopen = yes; then
7736
7737 cat >>confdefs.h <<\_ACEOF
7738 #define HAVE_LIBDL 1
7739 _ACEOF
7740
7741                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7742 else
7743   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7744 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-ldld  $LIBS"
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756
7757 /* Override any gcc2 internal prototype to avoid an error.  */
7758 #ifdef __cplusplus
7759 extern "C"
7760 #endif
7761 /* We use char because int might match the return type of a gcc2
7762    builtin and then its argument prototype would still apply.  */
7763 char dld_link ();
7764 int
7765 main ()
7766 {
7767 dld_link ();
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774   (eval $ac_link) 2>conftest.er1
7775   ac_status=$?
7776   grep -v '^ *+' conftest.er1 >conftest.err
7777   rm -f conftest.er1
7778   cat conftest.err >&5
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -z "$ac_c_werror_flag"
7782                          || test ! -s conftest.err'
7783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784   (eval $ac_try) 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); }; } &&
7788          { ac_try='test -s conftest$ac_exeext'
7789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790   (eval $ac_try) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; }; then
7794   ac_cv_lib_dld_dld_link=yes
7795 else
7796   echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 ac_cv_lib_dld_dld_link=no
7800 fi
7801 rm -f conftest.err conftest.$ac_objext \
7802       conftest$ac_exeext conftest.$ac_ext
7803 LIBS=$ac_check_lib_save_LIBS
7804 fi
7805 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7806 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7807 if test $ac_cv_lib_dld_dld_link = yes; then
7808
7809 cat >>confdefs.h <<\_ACEOF
7810 #define HAVE_DLD 1
7811 _ACEOF
7812
7813                 LIBADD_DL="$LIBADD_DL -ldld"
7814 else
7815   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7816 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7817 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820   cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h.  */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h.  */
7826 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7828 #define _dyld_func_lookup innocuous__dyld_func_lookup
7829
7830 /* System header to define __stub macros and hopefully few prototypes,
7831     which can conflict with char _dyld_func_lookup (); below.
7832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7833     <limits.h> exists even on freestanding compilers.  */
7834
7835 #ifdef __STDC__
7836 # include <limits.h>
7837 #else
7838 # include <assert.h>
7839 #endif
7840
7841 #undef _dyld_func_lookup
7842
7843 /* Override any gcc2 internal prototype to avoid an error.  */
7844 #ifdef __cplusplus
7845 extern "C"
7846 {
7847 #endif
7848 /* We use char because int might match the return type of a gcc2
7849    builtin and then its argument prototype would still apply.  */
7850 char _dyld_func_lookup ();
7851 /* The GNU C library defines this for functions which it implements
7852     to always fail with ENOSYS.  Some functions are actually named
7853     something starting with __ and the normal name is an alias.  */
7854 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7855 choke me
7856 #else
7857 char (*f) () = _dyld_func_lookup;
7858 #endif
7859 #ifdef __cplusplus
7860 }
7861 #endif
7862
7863 int
7864 main ()
7865 {
7866 return f != _dyld_func_lookup;
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873   (eval $ac_link) 2>conftest.er1
7874   ac_status=$?
7875   grep -v '^ *+' conftest.er1 >conftest.err
7876   rm -f conftest.er1
7877   cat conftest.err >&5
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -z "$ac_c_werror_flag"
7881                          || test ! -s conftest.err'
7882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883   (eval $ac_try) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; } &&
7887          { ac_try='test -s conftest$ac_exeext'
7888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889   (eval $ac_try) 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; }; then
7893   ac_cv_func__dyld_func_lookup=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 ac_cv_func__dyld_func_lookup=no
7899 fi
7900 rm -f conftest.err conftest.$ac_objext \
7901       conftest$ac_exeext conftest.$ac_ext
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7904 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7905 if test $ac_cv_func__dyld_func_lookup = yes; then
7906
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_DYLD 1
7909 _ACEOF
7910
7911 fi
7912
7913
7914 fi
7915
7916
7917 fi
7918
7919
7920 fi
7921 rm -f conftest.err conftest.$ac_objext \
7922       conftest$ac_exeext conftest.$ac_ext
7923
7924 fi
7925
7926
7927 fi
7928
7929
7930 fi
7931
7932
7933 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7934 then
7935   lt_save_LIBS="$LIBS"
7936   LIBS="$LIBS $LIBADD_DL"
7937
7938 for ac_func in dlerror
7939 do
7940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7941 echo "$as_me:$LINENO: checking for $ac_func" >&5
7942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7943 if eval "test \"\${$as_ac_var+set}\" = set"; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7954 #define $ac_func innocuous_$ac_func
7955
7956 /* System header to define __stub macros and hopefully few prototypes,
7957     which can conflict with char $ac_func (); below.
7958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959     <limits.h> exists even on freestanding compilers.  */
7960
7961 #ifdef __STDC__
7962 # include <limits.h>
7963 #else
7964 # include <assert.h>
7965 #endif
7966
7967 #undef $ac_func
7968
7969 /* Override any gcc2 internal prototype to avoid an error.  */
7970 #ifdef __cplusplus
7971 extern "C"
7972 {
7973 #endif
7974 /* We use char because int might match the return type of a gcc2
7975    builtin and then its argument prototype would still apply.  */
7976 char $ac_func ();
7977 /* The GNU C library defines this for functions which it implements
7978     to always fail with ENOSYS.  Some functions are actually named
7979     something starting with __ and the normal name is an alias.  */
7980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7981 choke me
7982 #else
7983 char (*f) () = $ac_func;
7984 #endif
7985 #ifdef __cplusplus
7986 }
7987 #endif
7988
7989 int
7990 main ()
7991 {
7992 return f != $ac_func;
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999   (eval $ac_link) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"
8007                          || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest$ac_exeext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   eval "$as_ac_var=yes"
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 eval "$as_ac_var=no"
8025 fi
8026 rm -f conftest.err conftest.$ac_objext \
8027       conftest$ac_exeext conftest.$ac_ext
8028 fi
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031 if test `eval echo '${'$as_ac_var'}'` = yes; then
8032   cat >>confdefs.h <<_ACEOF
8033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8034 _ACEOF
8035
8036 fi
8037 done
8038
8039   LIBS="$lt_save_LIBS"
8040 fi
8041 ac_ext=c
8042 ac_cpp='$CPP $CPPFLAGS'
8043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047
8048
8049 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8050 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8051 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   ac_cv_sys_symbol_underscore=no
8055   cat > conftest.$ac_ext <<EOF
8056 void nm_test_func(){}
8057 int main(){nm_test_func;return 0;}
8058 EOF
8059   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060   (eval $ac_compile) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; then
8064     # Now try to grab the symbols.
8065     ac_nlist=conftest.nm
8066     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8067   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); } && test -s "$ac_nlist"; then
8071       # See whether the symbols have a leading underscore.
8072       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8073         ac_cv_sys_symbol_underscore=yes
8074       else
8075         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8076           :
8077         else
8078           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8079         fi
8080       fi
8081     else
8082       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8083     fi
8084   else
8085     echo "configure: failed program was:" >&5
8086     cat conftest.c >&5
8087   fi
8088   rm -rf conftest*
8089
8090 fi
8091 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8092 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8093
8094
8095 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8096   if test x"$libltdl_cv_func_dlopen" = xyes ||
8097      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8098         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8099 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8100 if test "${libltdl_cv_need_uscore+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   libltdl_cv_need_uscore=unknown
8104           save_LIBS="$LIBS"
8105           LIBS="$LIBS $LIBADD_DL"
8106           if test "$cross_compiling" = yes; then :
8107   libltdl_cv_need_uscore=cross
8108 else
8109   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8110   lt_status=$lt_dlunknown
8111   cat > conftest.$ac_ext <<EOF
8112 #line 8112 "configure"
8113 #include "confdefs.h"
8114
8115 #if HAVE_DLFCN_H
8116 #include <dlfcn.h>
8117 #endif
8118
8119 #include <stdio.h>
8120
8121 #ifdef RTLD_GLOBAL
8122 #  define LT_DLGLOBAL           RTLD_GLOBAL
8123 #else
8124 #  ifdef DL_GLOBAL
8125 #    define LT_DLGLOBAL         DL_GLOBAL
8126 #  else
8127 #    define LT_DLGLOBAL         0
8128 #  endif
8129 #endif
8130
8131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8132    find out it does not work in some platform. */
8133 #ifndef LT_DLLAZY_OR_NOW
8134 #  ifdef RTLD_LAZY
8135 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8136 #  else
8137 #    ifdef DL_LAZY
8138 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8139 #    else
8140 #      ifdef RTLD_NOW
8141 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8142 #      else
8143 #        ifdef DL_NOW
8144 #          define LT_DLLAZY_OR_NOW      DL_NOW
8145 #        else
8146 #          define LT_DLLAZY_OR_NOW      0
8147 #        endif
8148 #      endif
8149 #    endif
8150 #  endif
8151 #endif
8152
8153 #ifdef __cplusplus
8154 extern "C" void exit (int);
8155 #endif
8156
8157 void fnord() { int i=42;}
8158 int main ()
8159 {
8160   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8161   int status = $lt_dlunknown;
8162
8163   if (self)
8164     {
8165       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8166       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8167       /* dlclose (self); */
8168     }
8169
8170     exit (status);
8171 }
8172 EOF
8173   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174   (eval $ac_link) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8178     (./conftest; exit; ) 2>/dev/null
8179     lt_status=$?
8180     case x$lt_status in
8181       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8182       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8183       x$lt_unknown|x*)  ;;
8184     esac
8185   else :
8186     # compilation failed
8187
8188   fi
8189 fi
8190 rm -fr conftest*
8191
8192           LIBS="$save_LIBS"
8193
8194 fi
8195 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8196 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8197   fi
8198 fi
8199
8200 if test x"$libltdl_cv_need_uscore" = xyes; then
8201
8202 cat >>confdefs.h <<\_ACEOF
8203 #define NEED_USCORE 1
8204 _ACEOF
8205
8206 fi
8207
8208
8209 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8210 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8211 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   # PORTME does your system automatically load deplibs for dlopen?
8215   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8216   # For now, we just catch OSes we know something about -- in the
8217   # future, we'll try test this programmatically.
8218   libltdl_cv_sys_dlopen_deplibs=unknown
8219   case "$host_os" in
8220   aix3*|aix4.1.*|aix4.2.*)
8221     # Unknown whether this is true for these versions of AIX, but
8222     # we want this `case' here to explicitly catch those versions.
8223     libltdl_cv_sys_dlopen_deplibs=unknown
8224     ;;
8225   aix[45]*)
8226     libltdl_cv_sys_dlopen_deplibs=yes
8227     ;;
8228   darwin*)
8229     # Assuming the user has installed a libdl from somewhere, this is true
8230     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8231     libltdl_cv_sys_dlopen_deplibs=yes
8232     ;;
8233   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8234     # GNU and its variants, using gnu ld.so (Glibc)
8235     libltdl_cv_sys_dlopen_deplibs=yes
8236     ;;
8237   hpux10*|hpux11*)
8238     libltdl_cv_sys_dlopen_deplibs=yes
8239     ;;
8240   irix[12345]*|irix6.[01]*)
8241     # Catch all versions of IRIX before 6.2, and indicate that we don't
8242     # know how it worked for any of those versions.
8243     libltdl_cv_sys_dlopen_deplibs=unknown
8244     ;;
8245   irix*)
8246     # The case above catches anything before 6.2, and it's known that
8247     # at 6.2 and later dlopen does load deplibs.
8248     libltdl_cv_sys_dlopen_deplibs=yes
8249     ;;
8250   netbsd*)
8251     libltdl_cv_sys_dlopen_deplibs=yes
8252     ;;
8253   openbsd*)
8254     libltdl_cv_sys_dlopen_deplibs=yes
8255     ;;
8256   osf[1234]*)
8257     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8258     # it did *not* use an RPATH in a shared library to find objects the
8259     # library depends on, so we explictly say `no'.
8260     libltdl_cv_sys_dlopen_deplibs=no
8261     ;;
8262   osf5.0|osf5.0a|osf5.1)
8263     # dlopen *does* load deplibs and with the right loader patch applied
8264     # it even uses RPATH in a shared library to search for shared objects
8265     # that the library depends on, but there's no easy way to know if that
8266     # patch is installed.  Since this is the case, all we can really
8267     # say is unknown -- it depends on the patch being installed.  If
8268     # it is, this changes to `yes'.  Without it, it would be `no'.
8269     libltdl_cv_sys_dlopen_deplibs=unknown
8270     ;;
8271   osf*)
8272     # the two cases above should catch all versions of osf <= 5.1.  Read
8273     # the comments above for what we know about them.
8274     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8275     # is used to find them so we can finally say `yes'.
8276     libltdl_cv_sys_dlopen_deplibs=yes
8277     ;;
8278   solaris*)
8279     libltdl_cv_sys_dlopen_deplibs=yes
8280     ;;
8281   esac
8282
8283 fi
8284 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8285 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8286 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8287
8288 cat >>confdefs.h <<\_ACEOF
8289 #define LTDL_DLOPEN_DEPLIBS 1
8290 _ACEOF
8291
8292 fi
8293
8294
8295 for ac_header in argz.h
8296 do
8297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299   echo "$as_me:$LINENO: checking for $ac_header" >&5
8300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 fi
8304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8306 else
8307   # Is the header compilable?
8308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 $ac_includes_default
8317 #include <$ac_header>
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321   (eval $ac_compile) 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -z "$ac_c_werror_flag"
8329                          || test ! -s conftest.err'
8330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); }; } &&
8335          { ac_try='test -s conftest.$ac_objext'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; }; then
8341   ac_header_compiler=yes
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 ac_header_compiler=no
8347 fi
8348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350 echo "${ECHO_T}$ac_header_compiler" >&6
8351
8352 # Is the header present?
8353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 #include <$ac_header>
8362 _ACEOF
8363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8365   ac_status=$?
8366   grep -v '^ *+' conftest.er1 >conftest.err
8367   rm -f conftest.er1
8368   cat conftest.err >&5
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } >/dev/null; then
8371   if test -s conftest.err; then
8372     ac_cpp_err=$ac_c_preproc_warn_flag
8373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8374   else
8375     ac_cpp_err=
8376   fi
8377 else
8378   ac_cpp_err=yes
8379 fi
8380 if test -z "$ac_cpp_err"; then
8381   ac_header_preproc=yes
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386   ac_header_preproc=no
8387 fi
8388 rm -f conftest.err conftest.$ac_ext
8389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8390 echo "${ECHO_T}$ac_header_preproc" >&6
8391
8392 # So?  What about this header?
8393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8394   yes:no: )
8395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8399     ac_header_preproc=yes
8400     ;;
8401   no:yes:* )
8402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8414     (
8415       cat <<\_ASBOX
8416 ## ----------------------------------- ##
8417 ## Report this to llvmbugs@cs.uiuc.edu ##
8418 ## ----------------------------------- ##
8419 _ASBOX
8420     ) |
8421       sed "s/^/$as_me: WARNING:     /" >&2
8422     ;;
8423 esac
8424 echo "$as_me:$LINENO: checking for $ac_header" >&5
8425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   eval "$as_ac_Header=\$ac_header_preproc"
8430 fi
8431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8433
8434 fi
8435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8436   cat >>confdefs.h <<_ACEOF
8437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8438 _ACEOF
8439
8440 fi
8441
8442 done
8443
8444
8445 echo "$as_me:$LINENO: checking for error_t" >&5
8446 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8447 if test "${ac_cv_type_error_t+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 #if HAVE_ARGZ_H
8457 #  include <argz.h>
8458 #endif
8459
8460 int
8461 main ()
8462 {
8463 if ((error_t *) 0)
8464   return 0;
8465 if (sizeof (error_t))
8466   return 0;
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>conftest.er1
8474   ac_status=$?
8475   grep -v '^ *+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -z "$ac_c_werror_flag"
8481                          || test ! -s conftest.err'
8482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483   (eval $ac_try) 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); }; } &&
8487          { ac_try='test -s conftest.$ac_objext'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493   ac_cv_type_error_t=yes
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_type_error_t=no
8499 fi
8500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8501 fi
8502 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8503 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8504 if test $ac_cv_type_error_t = yes; then
8505
8506 cat >>confdefs.h <<_ACEOF
8507 #define HAVE_ERROR_T 1
8508 _ACEOF
8509
8510
8511 else
8512
8513 cat >>confdefs.h <<\_ACEOF
8514 #define error_t int
8515 _ACEOF
8516
8517 fi
8518
8519
8520
8521
8522
8523
8524
8525 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8526 do
8527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8528 echo "$as_me:$LINENO: checking for $ac_func" >&5
8529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8530 if eval "test \"\${$as_ac_var+set}\" = set"; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8541 #define $ac_func innocuous_$ac_func
8542
8543 /* System header to define __stub macros and hopefully few prototypes,
8544     which can conflict with char $ac_func (); below.
8545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546     <limits.h> exists even on freestanding compilers.  */
8547
8548 #ifdef __STDC__
8549 # include <limits.h>
8550 #else
8551 # include <assert.h>
8552 #endif
8553
8554 #undef $ac_func
8555
8556 /* Override any gcc2 internal prototype to avoid an error.  */
8557 #ifdef __cplusplus
8558 extern "C"
8559 {
8560 #endif
8561 /* We use char because int might match the return type of a gcc2
8562    builtin and then its argument prototype would still apply.  */
8563 char $ac_func ();
8564 /* The GNU C library defines this for functions which it implements
8565     to always fail with ENOSYS.  Some functions are actually named
8566     something starting with __ and the normal name is an alias.  */
8567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8568 choke me
8569 #else
8570 char (*f) () = $ac_func;
8571 #endif
8572 #ifdef __cplusplus
8573 }
8574 #endif
8575
8576 int
8577 main ()
8578 {
8579 return f != $ac_func;
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586   (eval $ac_link) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag"
8594                          || test ! -s conftest.err'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; } &&
8600          { ac_try='test -s conftest$ac_exeext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   eval "$as_ac_var=yes"
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 eval "$as_ac_var=no"
8612 fi
8613 rm -f conftest.err conftest.$ac_objext \
8614       conftest$ac_exeext conftest.$ac_ext
8615 fi
8616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8618 if test `eval echo '${'$as_ac_var'}'` = yes; then
8619   cat >>confdefs.h <<_ACEOF
8620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8621 _ACEOF
8622
8623 fi
8624 done
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8654                   stdio.h unistd.h
8655 do
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658   echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 fi
8663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8665 else
8666   # Is the header compilable?
8667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675 $ac_includes_default
8676 #include <$ac_header>
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680   (eval $ac_compile) 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag"
8688                          || test ! -s conftest.err'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; } &&
8694          { ac_try='test -s conftest.$ac_objext'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; }; then
8700   ac_header_compiler=yes
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_header_compiler=no
8706 fi
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709 echo "${ECHO_T}$ac_header_compiler" >&6
8710
8711 # Is the header present?
8712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720 #include <$ac_header>
8721 _ACEOF
8722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } >/dev/null; then
8730   if test -s conftest.err; then
8731     ac_cpp_err=$ac_c_preproc_warn_flag
8732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8733   else
8734     ac_cpp_err=
8735   fi
8736 else
8737   ac_cpp_err=yes
8738 fi
8739 if test -z "$ac_cpp_err"; then
8740   ac_header_preproc=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745   ac_header_preproc=no
8746 fi
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8750
8751 # So?  What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753   yes:no: )
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758     ac_header_preproc=yes
8759     ;;
8760   no:yes:* )
8761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8773     (
8774       cat <<\_ASBOX
8775 ## ----------------------------------- ##
8776 ## Report this to llvmbugs@cs.uiuc.edu ##
8777 ## ----------------------------------- ##
8778 _ASBOX
8779     ) |
8780       sed "s/^/$as_me: WARNING:     /" >&2
8781     ;;
8782 esac
8783 echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   eval "$as_ac_Header=\$ac_header_preproc"
8789 fi
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792
8793 fi
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795   cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797 _ACEOF
8798
8799 fi
8800
8801 done
8802
8803
8804
8805
8806
8807 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8808 do
8809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8811   echo "$as_me:$LINENO: checking for $ac_header" >&5
8812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 fi
8816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8818 else
8819   # Is the header compilable?
8820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 $ac_includes_default
8829 #include <$ac_header>
8830 _ACEOF
8831 rm -f conftest.$ac_objext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833   (eval $ac_compile) 2>conftest.er1
8834   ac_status=$?
8835   grep -v '^ *+' conftest.er1 >conftest.err
8836   rm -f conftest.er1
8837   cat conftest.err >&5
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); } &&
8840          { ac_try='test -z "$ac_c_werror_flag"
8841                          || test ! -s conftest.err'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; } &&
8847          { ac_try='test -s conftest.$ac_objext'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; }; then
8853   ac_header_compiler=yes
8854 else
8855   echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_header_compiler=no
8859 fi
8860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862 echo "${ECHO_T}$ac_header_compiler" >&6
8863
8864 # Is the header present?
8865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <$ac_header>
8874 _ACEOF
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8877   ac_status=$?
8878   grep -v '^ *+' conftest.er1 >conftest.err
8879   rm -f conftest.er1
8880   cat conftest.err >&5
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); } >/dev/null; then
8883   if test -s conftest.err; then
8884     ac_cpp_err=$ac_c_preproc_warn_flag
8885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8886   else
8887     ac_cpp_err=
8888   fi
8889 else
8890   ac_cpp_err=yes
8891 fi
8892 if test -z "$ac_cpp_err"; then
8893   ac_header_preproc=yes
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898   ac_header_preproc=no
8899 fi
8900 rm -f conftest.err conftest.$ac_ext
8901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8902 echo "${ECHO_T}$ac_header_preproc" >&6
8903
8904 # So?  What about this header?
8905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8906   yes:no: )
8907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8911     ac_header_preproc=yes
8912     ;;
8913   no:yes:* )
8914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8926     (
8927       cat <<\_ASBOX
8928 ## ----------------------------------- ##
8929 ## Report this to llvmbugs@cs.uiuc.edu ##
8930 ## ----------------------------------- ##
8931 _ASBOX
8932     ) |
8933       sed "s/^/$as_me: WARNING:     /" >&2
8934     ;;
8935 esac
8936 echo "$as_me:$LINENO: checking for $ac_header" >&5
8937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   eval "$as_ac_Header=\$ac_header_preproc"
8942 fi
8943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8945
8946 fi
8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948   cat >>confdefs.h <<_ACEOF
8949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8950 _ACEOF
8951
8952 fi
8953
8954 done
8955
8956
8957
8958 for ac_header in string.h strings.h
8959 do
8960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8962   echo "$as_me:$LINENO: checking for $ac_header" >&5
8963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 fi
8967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8969 else
8970   # Is the header compilable?
8971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h.  */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h.  */
8979 $ac_includes_default
8980 #include <$ac_header>
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984   (eval $ac_compile) 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } &&
8991          { ac_try='test -z "$ac_c_werror_flag"
8992                          || test ! -s conftest.err'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; } &&
8998          { ac_try='test -s conftest.$ac_objext'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004   ac_header_compiler=yes
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ac_header_compiler=no
9010 fi
9011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013 echo "${ECHO_T}$ac_header_compiler" >&6
9014
9015 # Is the header present?
9016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9019 /* confdefs.h.  */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h.  */
9024 #include <$ac_header>
9025 _ACEOF
9026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9028   ac_status=$?
9029   grep -v '^ *+' conftest.er1 >conftest.err
9030   rm -f conftest.er1
9031   cat conftest.err >&5
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } >/dev/null; then
9034   if test -s conftest.err; then
9035     ac_cpp_err=$ac_c_preproc_warn_flag
9036     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9037   else
9038     ac_cpp_err=
9039   fi
9040 else
9041   ac_cpp_err=yes
9042 fi
9043 if test -z "$ac_cpp_err"; then
9044   ac_header_preproc=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049   ac_header_preproc=no
9050 fi
9051 rm -f conftest.err conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053 echo "${ECHO_T}$ac_header_preproc" >&6
9054
9055 # So?  What about this header?
9056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9057   yes:no: )
9058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9062     ac_header_preproc=yes
9063     ;;
9064   no:yes:* )
9065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9077     (
9078       cat <<\_ASBOX
9079 ## ----------------------------------- ##
9080 ## Report this to llvmbugs@cs.uiuc.edu ##
9081 ## ----------------------------------- ##
9082 _ASBOX
9083     ) |
9084       sed "s/^/$as_me: WARNING:     /" >&2
9085     ;;
9086 esac
9087 echo "$as_me:$LINENO: checking for $ac_header" >&5
9088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   eval "$as_ac_Header=\$ac_header_preproc"
9093 fi
9094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9096
9097 fi
9098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9099   cat >>confdefs.h <<_ACEOF
9100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9101 _ACEOF
9102  break
9103 fi
9104
9105 done
9106
9107
9108
9109
9110 for ac_func in strchr index
9111 do
9112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 echo "$as_me:$LINENO: checking for $ac_func" >&5
9114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_var+set}\" = set"; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9126 #define $ac_func innocuous_$ac_func
9127
9128 /* System header to define __stub macros and hopefully few prototypes,
9129     which can conflict with char $ac_func (); below.
9130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131     <limits.h> exists even on freestanding compilers.  */
9132
9133 #ifdef __STDC__
9134 # include <limits.h>
9135 #else
9136 # include <assert.h>
9137 #endif
9138
9139 #undef $ac_func
9140
9141 /* Override any gcc2 internal prototype to avoid an error.  */
9142 #ifdef __cplusplus
9143 extern "C"
9144 {
9145 #endif
9146 /* We use char because int might match the return type of a gcc2
9147    builtin and then its argument prototype would still apply.  */
9148 char $ac_func ();
9149 /* The GNU C library defines this for functions which it implements
9150     to always fail with ENOSYS.  Some functions are actually named
9151     something starting with __ and the normal name is an alias.  */
9152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9153 choke me
9154 #else
9155 char (*f) () = $ac_func;
9156 #endif
9157 #ifdef __cplusplus
9158 }
9159 #endif
9160
9161 int
9162 main ()
9163 {
9164 return f != $ac_func;
9165   ;
9166   return 0;
9167 }
9168 _ACEOF
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171   (eval $ac_link) 2>conftest.er1
9172   ac_status=$?
9173   grep -v '^ *+' conftest.er1 >conftest.err
9174   rm -f conftest.er1
9175   cat conftest.err >&5
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } &&
9178          { ac_try='test -z "$ac_c_werror_flag"
9179                          || test ! -s conftest.err'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; } &&
9185          { ac_try='test -s conftest$ac_exeext'
9186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187   (eval $ac_try) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); }; }; then
9191   eval "$as_ac_var=yes"
9192 else
9193   echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9195
9196 eval "$as_ac_var=no"
9197 fi
9198 rm -f conftest.err conftest.$ac_objext \
9199       conftest$ac_exeext conftest.$ac_ext
9200 fi
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9203 if test `eval echo '${'$as_ac_var'}'` = yes; then
9204   cat >>confdefs.h <<_ACEOF
9205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9206 _ACEOF
9207  break
9208 fi
9209 done
9210
9211
9212
9213 for ac_func in strrchr rindex
9214 do
9215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9216 echo "$as_me:$LINENO: checking for $ac_func" >&5
9217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9218 if eval "test \"\${$as_ac_var+set}\" = set"; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9229 #define $ac_func innocuous_$ac_func
9230
9231 /* System header to define __stub macros and hopefully few prototypes,
9232     which can conflict with char $ac_func (); below.
9233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234     <limits.h> exists even on freestanding compilers.  */
9235
9236 #ifdef __STDC__
9237 # include <limits.h>
9238 #else
9239 # include <assert.h>
9240 #endif
9241
9242 #undef $ac_func
9243
9244 /* Override any gcc2 internal prototype to avoid an error.  */
9245 #ifdef __cplusplus
9246 extern "C"
9247 {
9248 #endif
9249 /* We use char because int might match the return type of a gcc2
9250    builtin and then its argument prototype would still apply.  */
9251 char $ac_func ();
9252 /* The GNU C library defines this for functions which it implements
9253     to always fail with ENOSYS.  Some functions are actually named
9254     something starting with __ and the normal name is an alias.  */
9255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9256 choke me
9257 #else
9258 char (*f) () = $ac_func;
9259 #endif
9260 #ifdef __cplusplus
9261 }
9262 #endif
9263
9264 int
9265 main ()
9266 {
9267 return f != $ac_func;
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274   (eval $ac_link) 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -z "$ac_c_werror_flag"
9282                          || test ! -s conftest.err'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; } &&
9288          { ac_try='test -s conftest$ac_exeext'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; }; then
9294   eval "$as_ac_var=yes"
9295 else
9296   echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 eval "$as_ac_var=no"
9300 fi
9301 rm -f conftest.err conftest.$ac_objext \
9302       conftest$ac_exeext conftest.$ac_ext
9303 fi
9304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9306 if test `eval echo '${'$as_ac_var'}'` = yes; then
9307   cat >>confdefs.h <<_ACEOF
9308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9309 _ACEOF
9310  break
9311 fi
9312 done
9313
9314
9315
9316 for ac_func in memcpy bcopy
9317 do
9318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9319 echo "$as_me:$LINENO: checking for $ac_func" >&5
9320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_var+set}\" = set"; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h.  */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h.  */
9330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9332 #define $ac_func innocuous_$ac_func
9333
9334 /* System header to define __stub macros and hopefully few prototypes,
9335     which can conflict with char $ac_func (); below.
9336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9337     <limits.h> exists even on freestanding compilers.  */
9338
9339 #ifdef __STDC__
9340 # include <limits.h>
9341 #else
9342 # include <assert.h>
9343 #endif
9344
9345 #undef $ac_func
9346
9347 /* Override any gcc2 internal prototype to avoid an error.  */
9348 #ifdef __cplusplus
9349 extern "C"
9350 {
9351 #endif
9352 /* We use char because int might match the return type of a gcc2
9353    builtin and then its argument prototype would still apply.  */
9354 char $ac_func ();
9355 /* The GNU C library defines this for functions which it implements
9356     to always fail with ENOSYS.  Some functions are actually named
9357     something starting with __ and the normal name is an alias.  */
9358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9359 choke me
9360 #else
9361 char (*f) () = $ac_func;
9362 #endif
9363 #ifdef __cplusplus
9364 }
9365 #endif
9366
9367 int
9368 main ()
9369 {
9370 return f != $ac_func;
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377   (eval $ac_link) 2>conftest.er1
9378   ac_status=$?
9379   grep -v '^ *+' conftest.er1 >conftest.err
9380   rm -f conftest.er1
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } &&
9384          { ac_try='test -z "$ac_c_werror_flag"
9385                          || test ! -s conftest.err'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; } &&
9391          { ac_try='test -s conftest$ac_exeext'
9392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393   (eval $ac_try) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); }; }; then
9397   eval "$as_ac_var=yes"
9398 else
9399   echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9401
9402 eval "$as_ac_var=no"
9403 fi
9404 rm -f conftest.err conftest.$ac_objext \
9405       conftest$ac_exeext conftest.$ac_ext
9406 fi
9407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9409 if test `eval echo '${'$as_ac_var'}'` = yes; then
9410   cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9412 _ACEOF
9413  break
9414 fi
9415 done
9416
9417
9418
9419 for ac_func in memmove strcmp
9420 do
9421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9422 echo "$as_me:$LINENO: checking for $ac_func" >&5
9423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9424 if eval "test \"\${$as_ac_var+set}\" = set"; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h.  */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h.  */
9433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9435 #define $ac_func innocuous_$ac_func
9436
9437 /* System header to define __stub macros and hopefully few prototypes,
9438     which can conflict with char $ac_func (); below.
9439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9440     <limits.h> exists even on freestanding compilers.  */
9441
9442 #ifdef __STDC__
9443 # include <limits.h>
9444 #else
9445 # include <assert.h>
9446 #endif
9447
9448 #undef $ac_func
9449
9450 /* Override any gcc2 internal prototype to avoid an error.  */
9451 #ifdef __cplusplus
9452 extern "C"
9453 {
9454 #endif
9455 /* We use char because int might match the return type of a gcc2
9456    builtin and then its argument prototype would still apply.  */
9457 char $ac_func ();
9458 /* The GNU C library defines this for functions which it implements
9459     to always fail with ENOSYS.  Some functions are actually named
9460     something starting with __ and the normal name is an alias.  */
9461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9462 choke me
9463 #else
9464 char (*f) () = $ac_func;
9465 #endif
9466 #ifdef __cplusplus
9467 }
9468 #endif
9469
9470 int
9471 main ()
9472 {
9473 return f != $ac_func;
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480   (eval $ac_link) 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } &&
9487          { ac_try='test -z "$ac_c_werror_flag"
9488                          || test ! -s conftest.err'
9489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; } &&
9494          { ac_try='test -s conftest$ac_exeext'
9495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496   (eval $ac_try) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); }; }; then
9500   eval "$as_ac_var=yes"
9501 else
9502   echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9504
9505 eval "$as_ac_var=no"
9506 fi
9507 rm -f conftest.err conftest.$ac_objext \
9508       conftest$ac_exeext conftest.$ac_ext
9509 fi
9510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9512 if test `eval echo '${'$as_ac_var'}'` = yes; then
9513   cat >>confdefs.h <<_ACEOF
9514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9515 _ACEOF
9516
9517 fi
9518 done
9519
9520
9521
9522
9523 for ac_func in closedir opendir readdir
9524 do
9525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9526 echo "$as_me:$LINENO: checking for $ac_func" >&5
9527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9528 if eval "test \"\${$as_ac_var+set}\" = set"; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9539 #define $ac_func innocuous_$ac_func
9540
9541 /* System header to define __stub macros and hopefully few prototypes,
9542     which can conflict with char $ac_func (); below.
9543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544     <limits.h> exists even on freestanding compilers.  */
9545
9546 #ifdef __STDC__
9547 # include <limits.h>
9548 #else
9549 # include <assert.h>
9550 #endif
9551
9552 #undef $ac_func
9553
9554 /* Override any gcc2 internal prototype to avoid an error.  */
9555 #ifdef __cplusplus
9556 extern "C"
9557 {
9558 #endif
9559 /* We use char because int might match the return type of a gcc2
9560    builtin and then its argument prototype would still apply.  */
9561 char $ac_func ();
9562 /* The GNU C library defines this for functions which it implements
9563     to always fail with ENOSYS.  Some functions are actually named
9564     something starting with __ and the normal name is an alias.  */
9565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9566 choke me
9567 #else
9568 char (*f) () = $ac_func;
9569 #endif
9570 #ifdef __cplusplus
9571 }
9572 #endif
9573
9574 int
9575 main ()
9576 {
9577 return f != $ac_func;
9578   ;
9579   return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9584   (eval $ac_link) 2>conftest.er1
9585   ac_status=$?
9586   grep -v '^ *+' conftest.er1 >conftest.err
9587   rm -f conftest.er1
9588   cat conftest.err >&5
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } &&
9591          { ac_try='test -z "$ac_c_werror_flag"
9592                          || test ! -s conftest.err'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; } &&
9598          { ac_try='test -s conftest$ac_exeext'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; }; then
9604   eval "$as_ac_var=yes"
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 eval "$as_ac_var=no"
9610 fi
9611 rm -f conftest.err conftest.$ac_objext \
9612       conftest$ac_exeext conftest.$ac_ext
9613 fi
9614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9616 if test `eval echo '${'$as_ac_var'}'` = yes; then
9617   cat >>confdefs.h <<_ACEOF
9618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9619 _ACEOF
9620
9621 fi
9622 done
9623
9624
9625 # Check whether --enable-shared or --disable-shared was given.
9626 if test "${enable_shared+set}" = set; then
9627   enableval="$enable_shared"
9628   p=${PACKAGE-default}
9629     case $enableval in
9630     yes) enable_shared=yes ;;
9631     no) enable_shared=no ;;
9632     *)
9633       enable_shared=no
9634       # Look at the argument we got.  We use all the common list separators.
9635       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9636       for pkg in $enableval; do
9637         IFS="$lt_save_ifs"
9638         if test "X$pkg" = "X$p"; then
9639           enable_shared=yes
9640         fi
9641       done
9642       IFS="$lt_save_ifs"
9643       ;;
9644     esac
9645 else
9646   enable_shared=yes
9647 fi;
9648
9649 # Check whether --enable-static or --disable-static was given.
9650 if test "${enable_static+set}" = set; then
9651   enableval="$enable_static"
9652   p=${PACKAGE-default}
9653     case $enableval in
9654     yes) enable_static=yes ;;
9655     no) enable_static=no ;;
9656     *)
9657      enable_static=no
9658       # Look at the argument we got.  We use all the common list separators.
9659       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9660       for pkg in $enableval; do
9661         IFS="$lt_save_ifs"
9662         if test "X$pkg" = "X$p"; then
9663           enable_static=yes
9664         fi
9665       done
9666       IFS="$lt_save_ifs"
9667       ;;
9668     esac
9669 else
9670   enable_static=yes
9671 fi;
9672
9673 # Check whether --enable-fast-install or --disable-fast-install was given.
9674 if test "${enable_fast_install+set}" = set; then
9675   enableval="$enable_fast_install"
9676   p=${PACKAGE-default}
9677     case $enableval in
9678     yes) enable_fast_install=yes ;;
9679     no) enable_fast_install=no ;;
9680     *)
9681       enable_fast_install=no
9682       # Look at the argument we got.  We use all the common list separators.
9683       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9684       for pkg in $enableval; do
9685         IFS="$lt_save_ifs"
9686         if test "X$pkg" = "X$p"; then
9687           enable_fast_install=yes
9688         fi
9689       done
9690       IFS="$lt_save_ifs"
9691       ;;
9692     esac
9693 else
9694   enable_fast_install=yes
9695 fi;
9696
9697 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9698 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9699 if test "${lt_cv_path_SED+set}" = set; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   # Loop through the user's path and test for sed and gsed.
9703 # Then use that list of sed's as ones to test for truncation.
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705 for as_dir in $PATH
9706 do
9707   IFS=$as_save_IFS
9708   test -z "$as_dir" && as_dir=.
9709   for lt_ac_prog in sed gsed; do
9710     for ac_exec_ext in '' $ac_executable_extensions; do
9711       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9712         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9713       fi
9714     done
9715   done
9716 done
9717 lt_ac_max=0
9718 lt_ac_count=0
9719 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9720 # along with /bin/sed that truncates output.
9721 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9722   test ! -f $lt_ac_sed && break
9723   cat /dev/null > conftest.in
9724   lt_ac_count=0
9725   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9726   # Check for GNU sed and select it if it is found.
9727   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9728     lt_cv_path_SED=$lt_ac_sed
9729     break
9730   fi
9731   while true; do
9732     cat conftest.in conftest.in >conftest.tmp
9733     mv conftest.tmp conftest.in
9734     cp conftest.in conftest.nl
9735     echo >>conftest.nl
9736     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9737     cmp -s conftest.out conftest.nl || break
9738     # 10000 chars as input seems more than enough
9739     test $lt_ac_count -gt 10 && break
9740     lt_ac_count=`expr $lt_ac_count + 1`
9741     if test $lt_ac_count -gt $lt_ac_max; then
9742       lt_ac_max=$lt_ac_count
9743       lt_cv_path_SED=$lt_ac_sed
9744     fi
9745   done
9746 done
9747
9748 fi
9749
9750 SED=$lt_cv_path_SED
9751 echo "$as_me:$LINENO: result: $SED" >&5
9752 echo "${ECHO_T}$SED" >&6
9753
9754
9755 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9756 if test "${with_gnu_ld+set}" = set; then
9757   withval="$with_gnu_ld"
9758   test "$withval" = no || with_gnu_ld=yes
9759 else
9760   with_gnu_ld=no
9761 fi;
9762 ac_prog=ld
9763 if test "$GCC" = yes; then
9764   # Check if gcc -print-prog-name=ld gives a path.
9765   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9766 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9767   case $host in
9768   *-*-mingw*)
9769     # gcc leaves a trailing carriage return which upsets mingw
9770     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9771   *)
9772     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9773   esac
9774   case $ac_prog in
9775     # Accept absolute paths.
9776     [\\/]* | ?:[\\/]*)
9777       re_direlt='/[^/][^/]*/\.\./'
9778       # Canonicalize the pathname of ld
9779       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9780       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9781         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9782       done
9783       test -z "$LD" && LD="$ac_prog"
9784       ;;
9785   "")
9786     # If it fails, then pretend we aren't using GCC.
9787     ac_prog=ld
9788     ;;
9789   *)
9790     # If it is relative, then search for the first ld in PATH.
9791     with_gnu_ld=unknown
9792     ;;
9793   esac
9794 elif test "$with_gnu_ld" = yes; then
9795   echo "$as_me:$LINENO: checking for GNU ld" >&5
9796 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9797 else
9798   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9799 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9800 fi
9801 if test "${lt_cv_path_LD+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   if test -z "$LD"; then
9805   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9806   for ac_dir in $PATH; do
9807     IFS="$lt_save_ifs"
9808     test -z "$ac_dir" && ac_dir=.
9809     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9810       lt_cv_path_LD="$ac_dir/$ac_prog"
9811       # Check to see if the program is GNU ld.  I'd rather use --version,
9812       # but apparently some GNU ld's only accept -v.
9813       # Break only if it was the GNU/non-GNU ld that we prefer.
9814       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9815       *GNU* | *'with BFD'*)
9816         test "$with_gnu_ld" != no && break
9817         ;;
9818       *)
9819         test "$with_gnu_ld" != yes && break
9820         ;;
9821       esac
9822     fi
9823   done
9824   IFS="$lt_save_ifs"
9825 else
9826   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9827 fi
9828 fi
9829
9830 LD="$lt_cv_path_LD"
9831 if test -n "$LD"; then
9832   echo "$as_me:$LINENO: result: $LD" >&5
9833 echo "${ECHO_T}$LD" >&6
9834 else
9835   echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9837 fi
9838 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9839 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9840    { (exit 1); exit 1; }; }
9841 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9842 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9843 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9844   echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9847 case `$LD -v 2>&1 </dev/null` in
9848 *GNU* | *'with BFD'*)
9849   lt_cv_prog_gnu_ld=yes
9850   ;;
9851 *)
9852   lt_cv_prog_gnu_ld=no
9853   ;;
9854 esac
9855 fi
9856 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9857 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9858 with_gnu_ld=$lt_cv_prog_gnu_ld
9859
9860
9861 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9862 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9863 if test "${lt_cv_ld_reload_flag+set}" = set; then
9864   echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866   lt_cv_ld_reload_flag='-r'
9867 fi
9868 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9869 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9870 reload_flag=$lt_cv_ld_reload_flag
9871 case $reload_flag in
9872 "" | " "*) ;;
9873 *) reload_flag=" $reload_flag" ;;
9874 esac
9875 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9876 case $host_os in
9877   darwin*)
9878     if test "$GCC" = yes; then
9879       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9880     else
9881       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9882     fi
9883     ;;
9884 esac
9885
9886 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9887 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9888 if test "${lt_cv_deplibs_check_method+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   lt_cv_file_magic_cmd='$MAGIC_CMD'
9892 lt_cv_file_magic_test_file=
9893 lt_cv_deplibs_check_method='unknown'
9894 # Need to set the preceding variable on all platforms that support
9895 # interlibrary dependencies.
9896 # 'none' -- dependencies not supported.
9897 # `unknown' -- same as none, but documents that we really don't know.
9898 # 'pass_all' -- all dependencies passed with no checks.
9899 # 'test_compile' -- check by making test program.
9900 # 'file_magic [[regex]]' -- check by looking for files in library path
9901 # which responds to the $file_magic_cmd with a given extended regex.
9902 # If you have `file' or equivalent on your system and you're not sure
9903 # whether `pass_all' will *always* work, you probably want this one.
9904
9905 case $host_os in
9906 aix4* | aix5*)
9907   lt_cv_deplibs_check_method=pass_all
9908   ;;
9909
9910 beos*)
9911   lt_cv_deplibs_check_method=pass_all
9912   ;;
9913
9914 bsdi[45]*)
9915   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9916   lt_cv_file_magic_cmd='/usr/bin/file -L'
9917   lt_cv_file_magic_test_file=/shlib/libc.so
9918   ;;
9919
9920 cygwin*)
9921   # func_win32_libid is a shell function defined in ltmain.sh
9922   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9923   lt_cv_file_magic_cmd='func_win32_libid'
9924   ;;
9925
9926 mingw* | pw32*)
9927   # Base MSYS/MinGW do not provide the 'file' command needed by
9928   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9929   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9930   lt_cv_file_magic_cmd='$OBJDUMP -f'
9931   ;;
9932
9933 darwin* | rhapsody*)
9934   lt_cv_deplibs_check_method=pass_all
9935   ;;
9936
9937 freebsd* | kfreebsd*-gnu)
9938   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9939     case $host_cpu in
9940     i*86 )
9941       # Not sure whether the presence of OpenBSD here was a mistake.
9942       # Let's accept both of them until this is cleared up.
9943       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9944       lt_cv_file_magic_cmd=/usr/bin/file
9945       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9946       ;;
9947     esac
9948   else
9949     lt_cv_deplibs_check_method=pass_all
9950   fi
9951   ;;
9952
9953 gnu*)
9954   lt_cv_deplibs_check_method=pass_all
9955   ;;
9956
9957 hpux10.20* | hpux11*)
9958   lt_cv_file_magic_cmd=/usr/bin/file
9959   case "$host_cpu" in
9960   ia64*)
9961     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9962     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9963     ;;
9964   hppa*64*)
9965     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]'
9966     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9967     ;;
9968   *)
9969     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9970     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9971     ;;
9972   esac
9973   ;;
9974
9975 irix5* | irix6* | nonstopux*)
9976   case $LD in
9977   *-32|*"-32 ") libmagic=32-bit;;
9978   *-n32|*"-n32 ") libmagic=N32;;
9979   *-64|*"-64 ") libmagic=64-bit;;
9980   *) libmagic=never-match;;
9981   esac
9982   lt_cv_deplibs_check_method=pass_all
9983   ;;
9984
9985 # This must be Linux ELF.
9986 linux*)
9987   lt_cv_deplibs_check_method=pass_all
9988   ;;
9989
9990 netbsd*)
9991   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9992     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9993   else
9994     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9995   fi
9996   ;;
9997
9998 newos6*)
9999   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10000   lt_cv_file_magic_cmd=/usr/bin/file
10001   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10002   ;;
10003
10004 nto-qnx*)
10005   lt_cv_deplibs_check_method=unknown
10006   ;;
10007
10008 openbsd*)
10009   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10011   else
10012     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10013   fi
10014   ;;
10015
10016 osf3* | osf4* | osf5*)
10017   lt_cv_deplibs_check_method=pass_all
10018   ;;
10019
10020 sco3.2v5*)
10021   lt_cv_deplibs_check_method=pass_all
10022   ;;
10023
10024 solaris*)
10025   lt_cv_deplibs_check_method=pass_all
10026   ;;
10027
10028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10029   case $host_vendor in
10030   motorola)
10031     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]'
10032     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10033     ;;
10034   ncr)
10035     lt_cv_deplibs_check_method=pass_all
10036     ;;
10037   sequent)
10038     lt_cv_file_magic_cmd='/bin/file'
10039     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10040     ;;
10041   sni)
10042     lt_cv_file_magic_cmd='/bin/file'
10043     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10044     lt_cv_file_magic_test_file=/lib/libc.so
10045     ;;
10046   siemens)
10047     lt_cv_deplibs_check_method=pass_all
10048     ;;
10049   esac
10050   ;;
10051
10052 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10053   lt_cv_deplibs_check_method=pass_all
10054   ;;
10055 esac
10056
10057 fi
10058 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10059 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10060 file_magic_cmd=$lt_cv_file_magic_cmd
10061 deplibs_check_method=$lt_cv_deplibs_check_method
10062 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10063
10064
10065
10066 # If no C compiler was specified, use CC.
10067 LTCC=${LTCC-"$CC"}
10068
10069 # Allow CC to be a program name with arguments.
10070 compiler=$CC
10071
10072 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10073 if test "${enable_libtool_lock+set}" = set; then
10074   enableval="$enable_libtool_lock"
10075
10076 fi;
10077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10078
10079 # Some flags need to be propagated to the compiler or linker for good
10080 # libtool support.
10081 case $host in
10082 ia64-*-hpux*)
10083   # Find out which ABI we are using.
10084   echo 'int i;' > conftest.$ac_ext
10085   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086   (eval $ac_compile) 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); }; then
10090     case `/usr/bin/file conftest.$ac_objext` in
10091     *ELF-32*)
10092       HPUX_IA64_MODE="32"
10093       ;;
10094     *ELF-64*)
10095       HPUX_IA64_MODE="64"
10096       ;;
10097     esac
10098   fi
10099   rm -rf conftest*
10100   ;;
10101 *-*-irix6*)
10102   # Find out which ABI we are using.
10103   echo '#line 10103 "configure"' > conftest.$ac_ext
10104   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10105   (eval $ac_compile) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; then
10109    if test "$lt_cv_prog_gnu_ld" = yes; then
10110     case `/usr/bin/file conftest.$ac_objext` in
10111     *32-bit*)
10112       LD="${LD-ld} -melf32bsmip"
10113       ;;
10114     *N32*)
10115       LD="${LD-ld} -melf32bmipn32"
10116       ;;
10117     *64-bit*)
10118       LD="${LD-ld} -melf64bmip"
10119       ;;
10120     esac
10121    else
10122     case `/usr/bin/file conftest.$ac_objext` in
10123     *32-bit*)
10124       LD="${LD-ld} -32"
10125       ;;
10126     *N32*)
10127       LD="${LD-ld} -n32"
10128       ;;
10129     *64-bit*)
10130       LD="${LD-ld} -64"
10131       ;;
10132     esac
10133    fi
10134   fi
10135   rm -rf conftest*
10136   ;;
10137
10138 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10139   # Find out which ABI we are using.
10140   echo 'int i;' > conftest.$ac_ext
10141   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142   (eval $ac_compile) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; then
10146     case "`/usr/bin/file conftest.o`" in
10147     *32-bit*)
10148       case $host in
10149         x86_64-*linux*)
10150           LD="${LD-ld} -m elf_i386"
10151           ;;
10152         ppc64-*linux*|powerpc64-*linux*)
10153           LD="${LD-ld} -m elf32ppclinux"
10154           ;;
10155         s390x-*linux*)
10156           LD="${LD-ld} -m elf_s390"
10157           ;;
10158         sparc64-*linux*)
10159           LD="${LD-ld} -m elf32_sparc"
10160           ;;
10161       esac
10162       ;;
10163     *64-bit*)
10164       case $host in
10165         x86_64-*linux*)
10166           LD="${LD-ld} -m elf_x86_64"
10167           ;;
10168         ppc*-*linux*|powerpc*-*linux*)
10169           LD="${LD-ld} -m elf64ppc"
10170           ;;
10171         s390*-*linux*)
10172           LD="${LD-ld} -m elf64_s390"
10173           ;;
10174         sparc*-*linux*)
10175           LD="${LD-ld} -m elf64_sparc"
10176           ;;
10177       esac
10178       ;;
10179     esac
10180   fi
10181   rm -rf conftest*
10182   ;;
10183
10184 *-*-sco3.2v5*)
10185   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10186   SAVE_CFLAGS="$CFLAGS"
10187   CFLAGS="$CFLAGS -belf"
10188   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10189 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10190 if test "${lt_cv_cc_needs_belf+set}" = set; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193   ac_ext=c
10194 ac_cpp='$CPP $CPPFLAGS'
10195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10198
10199      cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h.  */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h.  */
10205
10206 _ACEOF
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209   (eval $ac_link) 2>conftest.er1
10210   ac_status=$?
10211   grep -v '^ *+' conftest.er1 >conftest.err
10212   rm -f conftest.er1
10213   cat conftest.err >&5
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } &&
10216          { ac_try='test -z "$ac_c_werror_flag"
10217                          || test ! -s conftest.err'
10218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219   (eval $ac_try) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; } &&
10223          { ac_try='test -s conftest$ac_exeext'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   lt_cv_cc_needs_belf=yes
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 lt_cv_cc_needs_belf=no
10235 fi
10236 rm -f conftest.err conftest.$ac_objext \
10237       conftest$ac_exeext conftest.$ac_ext
10238      ac_ext=c
10239 ac_cpp='$CPP $CPPFLAGS'
10240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10243
10244 fi
10245 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10246 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10247   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10248     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10249     CFLAGS="$SAVE_CFLAGS"
10250   fi
10251   ;;
10252
10253 esac
10254
10255 need_locks="$enable_libtool_lock"
10256
10257
10258
10259
10260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10261     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10262     (test "X$CXX" != "Xg++"))) ; then
10263   ac_ext=cc
10264 ac_cpp='$CXXCPP $CPPFLAGS'
10265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10268 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10270 if test -z "$CXXCPP"; then
10271   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274       # Double quotes because CXXCPP needs to be expanded
10275     for CXXCPP in "$CXX -E" "/lib/cpp"
10276     do
10277       ac_preproc_ok=false
10278 for ac_cxx_preproc_warn_flag in '' yes
10279 do
10280   # Use a header file that comes with gcc, so configuring glibc
10281   # with a fresh cross-compiler works.
10282   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10283   # <limits.h> exists even on freestanding compilers.
10284   # On the NeXT, cc -E runs the code through the compiler's parser,
10285   # not just through cpp. "Syntax error" is here to catch this case.
10286   cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 #ifdef __STDC__
10293 # include <limits.h>
10294 #else
10295 # include <assert.h>
10296 #endif
10297                      Syntax error
10298 _ACEOF
10299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10301   ac_status=$?
10302   grep -v '^ *+' conftest.er1 >conftest.err
10303   rm -f conftest.er1
10304   cat conftest.err >&5
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } >/dev/null; then
10307   if test -s conftest.err; then
10308     ac_cpp_err=$ac_cxx_preproc_warn_flag
10309     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10310   else
10311     ac_cpp_err=
10312   fi
10313 else
10314   ac_cpp_err=yes
10315 fi
10316 if test -z "$ac_cpp_err"; then
10317   :
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322   # Broken: fails on valid input.
10323 continue
10324 fi
10325 rm -f conftest.err conftest.$ac_ext
10326
10327   # OK, works on sane cases.  Now check whether non-existent headers
10328   # can be detected and how.
10329   cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 #include <ac_nonexistent.h>
10336 _ACEOF
10337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10339   ac_status=$?
10340   grep -v '^ *+' conftest.er1 >conftest.err
10341   rm -f conftest.er1
10342   cat conftest.err >&5
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } >/dev/null; then
10345   if test -s conftest.err; then
10346     ac_cpp_err=$ac_cxx_preproc_warn_flag
10347     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10348   else
10349     ac_cpp_err=
10350   fi
10351 else
10352   ac_cpp_err=yes
10353 fi
10354 if test -z "$ac_cpp_err"; then
10355   # Broken: success on invalid input.
10356 continue
10357 else
10358   echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361   # Passes both tests.
10362 ac_preproc_ok=:
10363 break
10364 fi
10365 rm -f conftest.err conftest.$ac_ext
10366
10367 done
10368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10369 rm -f conftest.err conftest.$ac_ext
10370 if $ac_preproc_ok; then
10371   break
10372 fi
10373
10374     done
10375     ac_cv_prog_CXXCPP=$CXXCPP
10376
10377 fi
10378   CXXCPP=$ac_cv_prog_CXXCPP
10379 else
10380   ac_cv_prog_CXXCPP=$CXXCPP
10381 fi
10382 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10383 echo "${ECHO_T}$CXXCPP" >&6
10384 ac_preproc_ok=false
10385 for ac_cxx_preproc_warn_flag in '' yes
10386 do
10387   # Use a header file that comes with gcc, so configuring glibc
10388   # with a fresh cross-compiler works.
10389   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390   # <limits.h> exists even on freestanding compilers.
10391   # On the NeXT, cc -E runs the code through the compiler's parser,
10392   # not just through cpp. "Syntax error" is here to catch this case.
10393   cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h.  */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h.  */
10399 #ifdef __STDC__
10400 # include <limits.h>
10401 #else
10402 # include <assert.h>
10403 #endif
10404                      Syntax error
10405 _ACEOF
10406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } >/dev/null; then
10414   if test -s conftest.err; then
10415     ac_cpp_err=$ac_cxx_preproc_warn_flag
10416     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10417   else
10418     ac_cpp_err=
10419   fi
10420 else
10421   ac_cpp_err=yes
10422 fi
10423 if test -z "$ac_cpp_err"; then
10424   :
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429   # Broken: fails on valid input.
10430 continue
10431 fi
10432 rm -f conftest.err conftest.$ac_ext
10433
10434   # OK, works on sane cases.  Now check whether non-existent headers
10435   # can be detected and how.
10436   cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442 #include <ac_nonexistent.h>
10443 _ACEOF
10444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10446   ac_status=$?
10447   grep -v '^ *+' conftest.er1 >conftest.err
10448   rm -f conftest.er1
10449   cat conftest.err >&5
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } >/dev/null; then
10452   if test -s conftest.err; then
10453     ac_cpp_err=$ac_cxx_preproc_warn_flag
10454     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10455   else
10456     ac_cpp_err=
10457   fi
10458 else
10459   ac_cpp_err=yes
10460 fi
10461 if test -z "$ac_cpp_err"; then
10462   # Broken: success on invalid input.
10463 continue
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468   # Passes both tests.
10469 ac_preproc_ok=:
10470 break
10471 fi
10472 rm -f conftest.err conftest.$ac_ext
10473
10474 done
10475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10476 rm -f conftest.err conftest.$ac_ext
10477 if $ac_preproc_ok; then
10478   :
10479 else
10480   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10481 See \`config.log' for more details." >&5
10482 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10483 See \`config.log' for more details." >&2;}
10484    { (exit 1); exit 1; }; }
10485 fi
10486
10487 ac_ext=cc
10488 ac_cpp='$CXXCPP $CPPFLAGS'
10489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10492
10493 fi
10494
10495
10496 ac_ext=f
10497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10500 if test -n "$ac_tool_prefix"; then
10501   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10502   do
10503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10505 echo "$as_me:$LINENO: checking for $ac_word" >&5
10506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10507 if test "${ac_cv_prog_F77+set}" = set; then
10508   echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510   if test -n "$F77"; then
10511   ac_cv_prog_F77="$F77" # Let the user override the test.
10512 else
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10515 do
10516   IFS=$as_save_IFS
10517   test -z "$as_dir" && as_dir=.
10518   for ac_exec_ext in '' $ac_executable_extensions; do
10519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10522     break 2
10523   fi
10524 done
10525 done
10526
10527 fi
10528 fi
10529 F77=$ac_cv_prog_F77
10530 if test -n "$F77"; then
10531   echo "$as_me:$LINENO: result: $F77" >&5
10532 echo "${ECHO_T}$F77" >&6
10533 else
10534   echo "$as_me:$LINENO: result: no" >&5
10535 echo "${ECHO_T}no" >&6
10536 fi
10537
10538     test -n "$F77" && break
10539   done
10540 fi
10541 if test -z "$F77"; then
10542   ac_ct_F77=$F77
10543   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10544 do
10545   # Extract the first word of "$ac_prog", so it can be a program name with args.
10546 set dummy $ac_prog; ac_word=$2
10547 echo "$as_me:$LINENO: checking for $ac_word" >&5
10548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   if test -n "$ac_ct_F77"; then
10553   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10554 else
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10557 do
10558   IFS=$as_save_IFS
10559   test -z "$as_dir" && as_dir=.
10560   for ac_exec_ext in '' $ac_executable_extensions; do
10561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562     ac_cv_prog_ac_ct_F77="$ac_prog"
10563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10564     break 2
10565   fi
10566 done
10567 done
10568
10569 fi
10570 fi
10571 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10572 if test -n "$ac_ct_F77"; then
10573   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10574 echo "${ECHO_T}$ac_ct_F77" >&6
10575 else
10576   echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6
10578 fi
10579
10580   test -n "$ac_ct_F77" && break
10581 done
10582
10583   F77=$ac_ct_F77
10584 fi
10585
10586
10587 # Provide some information about the compiler.
10588 echo "$as_me:10588:" \
10589      "checking for Fortran 77 compiler version" >&5
10590 ac_compiler=`set X $ac_compile; echo $2`
10591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10592   (eval $ac_compiler --version </dev/null >&5) 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }
10596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10597   (eval $ac_compiler -v </dev/null >&5) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }
10601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10602   (eval $ac_compiler -V </dev/null >&5) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); }
10606 rm -f a.out
10607
10608 # If we don't use `.F' as extension, the preprocessor is not run on the
10609 # input file.  (Note that this only needs to work for GNU compilers.)
10610 ac_save_ext=$ac_ext
10611 ac_ext=F
10612 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10613 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10614 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617   cat >conftest.$ac_ext <<_ACEOF
10618       program main
10619 #ifndef __GNUC__
10620        choke me
10621 #endif
10622
10623       end
10624 _ACEOF
10625 rm -f conftest.$ac_objext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10627   (eval $ac_compile) 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } &&
10634          { ac_try='test -z "$ac_f77_werror_flag"
10635                          || test ! -s conftest.err'
10636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637   (eval $ac_try) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); }; } &&
10641          { ac_try='test -s conftest.$ac_objext'
10642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643   (eval $ac_try) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; }; then
10647   ac_compiler_gnu=yes
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_compiler_gnu=no
10653 fi
10654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10655 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10656
10657 fi
10658 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10659 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10660 ac_ext=$ac_save_ext
10661 ac_test_FFLAGS=${FFLAGS+set}
10662 ac_save_FFLAGS=$FFLAGS
10663 FFLAGS=
10664 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10665 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10666 if test "${ac_cv_prog_f77_g+set}" = set; then
10667   echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669   FFLAGS=-g
10670 cat >conftest.$ac_ext <<_ACEOF
10671       program main
10672
10673       end
10674 _ACEOF
10675 rm -f conftest.$ac_objext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10677   (eval $ac_compile) 2>conftest.er1
10678   ac_status=$?
10679   grep -v '^ *+' conftest.er1 >conftest.err
10680   rm -f conftest.er1
10681   cat conftest.err >&5
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } &&
10684          { ac_try='test -z "$ac_f77_werror_flag"
10685                          || test ! -s conftest.err'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; } &&
10691          { ac_try='test -s conftest.$ac_objext'
10692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693   (eval $ac_try) 2>&5
10694   ac_status=$?
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); }; }; then
10697   ac_cv_prog_f77_g=yes
10698 else
10699   echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10701
10702 ac_cv_prog_f77_g=no
10703 fi
10704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10705
10706 fi
10707 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10708 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10709 if test "$ac_test_FFLAGS" = set; then
10710   FFLAGS=$ac_save_FFLAGS
10711 elif test $ac_cv_prog_f77_g = yes; then
10712   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10713     FFLAGS="-g -O2"
10714   else
10715     FFLAGS="-g"
10716   fi
10717 else
10718   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10719     FFLAGS="-O2"
10720   else
10721     FFLAGS=
10722   fi
10723 fi
10724
10725 G77=`test $ac_compiler_gnu = yes && echo yes`
10726 ac_ext=c
10727 ac_cpp='$CPP $CPPFLAGS'
10728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10731
10732
10733
10734 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10735
10736 # find the maximum length of command line arguments
10737 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10738 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10739 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10740   echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742     i=0
10743   teststring="ABCD"
10744
10745   case $build_os in
10746   msdosdjgpp*)
10747     # On DJGPP, this test can blow up pretty badly due to problems in libc
10748     # (any single argument exceeding 2000 bytes causes a buffer overrun
10749     # during glob expansion).  Even if it were fixed, the result of this
10750     # check would be larger than it should be.
10751     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10752     ;;
10753
10754   gnu*)
10755     # Under GNU Hurd, this test is not required because there is
10756     # no limit to the length of command line arguments.
10757     # Libtool will interpret -1 as no limit whatsoever
10758     lt_cv_sys_max_cmd_len=-1;
10759     ;;
10760
10761   cygwin* | mingw*)
10762     # On Win9x/ME, this test blows up -- it succeeds, but takes
10763     # about 5 minutes as the teststring grows exponentially.
10764     # Worse, since 9x/ME are not pre-emptively multitasking,
10765     # you end up with a "frozen" computer, even though with patience
10766     # the test eventually succeeds (with a max line length of 256k).
10767     # Instead, let's just punt: use the minimum linelength reported by
10768     # all of the supported platforms: 8192 (on NT/2K/XP).
10769     lt_cv_sys_max_cmd_len=8192;
10770     ;;
10771
10772   amigaos*)
10773     # On AmigaOS with pdksh, this test takes hours, literally.
10774     # So we just punt and use a minimum line length of 8192.
10775     lt_cv_sys_max_cmd_len=8192;
10776     ;;
10777
10778   netbsd* | freebsd* | openbsd* | darwin* )
10779     # This has been around since 386BSD, at least.  Likely further.
10780     if test -x /sbin/sysctl; then
10781       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10782     elif test -x /usr/sbin/sysctl; then
10783       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10784     else
10785       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10786     fi
10787     # And add a safety zone
10788     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10789     ;;
10790
10791  *)
10792     # If test is not a shell built-in, we'll probably end up computing a
10793     # maximum length that is only half of the actual maximum length, but
10794     # we can't tell.
10795     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10796     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10797                = "XX$teststring") >/dev/null 2>&1 &&
10798             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10799             lt_cv_sys_max_cmd_len=$new_result &&
10800             test $i != 17 # 1/2 MB should be enough
10801     do
10802       i=`expr $i + 1`
10803       teststring=$teststring$teststring
10804     done
10805     teststring=
10806     # Add a significant safety factor because C++ compilers can tack on massive
10807     # amounts of additional arguments before passing them to the linker.
10808     # It appears as though 1/2 is a usable value.
10809     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10810     ;;
10811   esac
10812
10813 fi
10814
10815 if test -n $lt_cv_sys_max_cmd_len ; then
10816   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10817 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10818 else
10819   echo "$as_me:$LINENO: result: none" >&5
10820 echo "${ECHO_T}none" >&6
10821 fi
10822
10823
10824
10825
10826 # Check for command to grab the raw symbol name followed by C symbol from nm.
10827 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10828 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10829 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10830   echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832
10833 # These are sane defaults that work on at least a few old systems.
10834 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10835
10836 # Character class describing NM global symbol codes.
10837 symcode='[BCDEGRST]'
10838
10839 # Regexp to match symbols that can be accessed directly from C.
10840 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10841
10842 # Transform the above into a raw symbol and a C symbol.
10843 symxfrm='\1 \2\3 \3'
10844
10845 # Transform an extracted symbol line into a proper C declaration
10846 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10847
10848 # Transform an extracted symbol line into symbol name and symbol address
10849 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'"
10850
10851 # Define system-specific variables.
10852 case $host_os in
10853 aix*)
10854   symcode='[BCDT]'
10855   ;;
10856 cygwin* | mingw* | pw32*)
10857   symcode='[ABCDGISTW]'
10858   ;;
10859 hpux*) # Its linker distinguishes data from code symbols
10860   if test "$host_cpu" = ia64; then
10861     symcode='[ABCDEGRST]'
10862   fi
10863   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10864   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'"
10865   ;;
10866 linux*)
10867   if test "$host_cpu" = ia64; then
10868     symcode='[ABCDGIRSTW]'
10869     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10870     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'"
10871   fi
10872   ;;
10873 irix* | nonstopux*)
10874   symcode='[BCDEGRST]'
10875   ;;
10876 osf*)
10877   symcode='[BCDEGQRST]'
10878   ;;
10879 solaris* | sysv5*)
10880   symcode='[BDRT]'
10881   ;;
10882 sysv4)
10883   symcode='[DFNSTU]'
10884   ;;
10885 esac
10886
10887 # Handle CRLF in mingw tool chain
10888 opt_cr=
10889 case $build_os in
10890 mingw*)
10891   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10892   ;;
10893 esac
10894
10895 # If we're using GNU nm, then use its standard symbol codes.
10896 case `$NM -V 2>&1` in
10897 *GNU* | *'with BFD'*)
10898   symcode='[ABCDGIRSTW]' ;;
10899 esac
10900
10901 # Try without a prefix undercore, then with it.
10902 for ac_symprfx in "" "_"; do
10903
10904   # Write the raw and C identifiers.
10905   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10906
10907   # Check to see that the pipe works correctly.
10908   pipe_works=no
10909
10910   rm -f conftest*
10911   cat > conftest.$ac_ext <<EOF
10912 #ifdef __cplusplus
10913 extern "C" {
10914 #endif
10915 char nm_test_var;
10916 void nm_test_func(){}
10917 #ifdef __cplusplus
10918 }
10919 #endif
10920 int main(){nm_test_var='a';nm_test_func();return(0);}
10921 EOF
10922
10923   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924   (eval $ac_compile) 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; then
10928     # Now try to grab the symbols.
10929     nlist=conftest.nm
10930     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10931   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); } && test -s "$nlist"; then
10935       # Try sorting and uniquifying the output.
10936       if sort "$nlist" | uniq > "$nlist"T; then
10937         mv -f "$nlist"T "$nlist"
10938       else
10939         rm -f "$nlist"T
10940       fi
10941
10942       # Make sure that we snagged all the symbols we need.
10943       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10944         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10945           cat <<EOF > conftest.$ac_ext
10946 #ifdef __cplusplus
10947 extern "C" {
10948 #endif
10949
10950 EOF
10951           # Now generate the symbol file.
10952           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10953
10954           cat <<EOF >> conftest.$ac_ext
10955 #if defined (__STDC__) && __STDC__
10956 # define lt_ptr_t void *
10957 #else
10958 # define lt_ptr_t char *
10959 # define const
10960 #endif
10961
10962 /* The mapping between symbol names and symbols. */
10963 const struct {
10964   const char *name;
10965   lt_ptr_t address;
10966 }
10967 lt_preloaded_symbols[] =
10968 {
10969 EOF
10970           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10971           cat <<\EOF >> conftest.$ac_ext
10972   {0, (lt_ptr_t) 0}
10973 };
10974
10975 #ifdef __cplusplus
10976 }
10977 #endif
10978 EOF
10979           # Now try linking the two files.
10980           mv conftest.$ac_objext conftstm.$ac_objext
10981           lt_save_LIBS="$LIBS"
10982           lt_save_CFLAGS="$CFLAGS"
10983           LIBS="conftstm.$ac_objext"
10984           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10985           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986   (eval $ac_link) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10990             pipe_works=yes
10991           fi
10992           LIBS="$lt_save_LIBS"
10993           CFLAGS="$lt_save_CFLAGS"
10994         else
10995           echo "cannot find nm_test_func in $nlist" >&5
10996         fi
10997       else
10998         echo "cannot find nm_test_var in $nlist" >&5
10999       fi
11000     else
11001       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11002     fi
11003   else
11004     echo "$progname: failed program was:" >&5
11005     cat conftest.$ac_ext >&5
11006   fi
11007   rm -f conftest* conftst*
11008
11009   # Do not use the global_symbol_pipe unless it works.
11010   if test "$pipe_works" = yes; then
11011     break
11012   else
11013     lt_cv_sys_global_symbol_pipe=
11014   fi
11015 done
11016
11017 fi
11018
11019 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11020   lt_cv_sys_global_symbol_to_cdecl=
11021 fi
11022 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11023   echo "$as_me:$LINENO: result: failed" >&5
11024 echo "${ECHO_T}failed" >&6
11025 else
11026   echo "$as_me:$LINENO: result: ok" >&5
11027 echo "${ECHO_T}ok" >&6
11028 fi
11029
11030 echo "$as_me:$LINENO: checking for objdir" >&5
11031 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11032 if test "${lt_cv_objdir+set}" = set; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035   rm -f .libs 2>/dev/null
11036 mkdir .libs 2>/dev/null
11037 if test -d .libs; then
11038   lt_cv_objdir=.libs
11039 else
11040   # MS-DOS does not allow filenames that begin with a dot.
11041   lt_cv_objdir=_libs
11042 fi
11043 rmdir .libs 2>/dev/null
11044 fi
11045 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11046 echo "${ECHO_T}$lt_cv_objdir" >&6
11047 objdir=$lt_cv_objdir
11048
11049
11050
11051
11052
11053 case $host_os in
11054 aix3*)
11055   # AIX sometimes has problems with the GCC collect2 program.  For some
11056   # reason, if we set the COLLECT_NAMES environment variable, the problems
11057   # vanish in a puff of smoke.
11058   if test "X${COLLECT_NAMES+set}" != Xset; then
11059     COLLECT_NAMES=
11060     export COLLECT_NAMES
11061   fi
11062   ;;
11063 esac
11064
11065 # Sed substitution that helps us do robust quoting.  It backslashifies
11066 # metacharacters that are still active within double-quoted strings.
11067 Xsed='sed -e s/^X//'
11068 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11069
11070 # Same as above, but do not quote variable references.
11071 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11072
11073 # Sed substitution to delay expansion of an escaped shell variable in a
11074 # double_quote_subst'ed string.
11075 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11076
11077 # Sed substitution to avoid accidental globbing in evaled expressions
11078 no_glob_subst='s/\*/\\\*/g'
11079
11080 # Constants:
11081 rm="rm -f"
11082
11083 # Global variables:
11084 default_ofile=mklib
11085 can_build_shared=yes
11086
11087 # All known linkers require a `.a' archive for static linking (except M$VC,
11088 # which needs '.lib').
11089 libext=a
11090 ltmain="$ac_aux_dir/ltmain.sh"
11091 ofile="$default_ofile"
11092 with_gnu_ld="$lt_cv_prog_gnu_ld"
11093
11094 if test -n "$ac_tool_prefix"; then
11095   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11096 set dummy ${ac_tool_prefix}ar; ac_word=$2
11097 echo "$as_me:$LINENO: checking for $ac_word" >&5
11098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11099 if test "${ac_cv_prog_AR+set}" = set; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102   if test -n "$AR"; then
11103   ac_cv_prog_AR="$AR" # Let the user override the test.
11104 else
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108   IFS=$as_save_IFS
11109   test -z "$as_dir" && as_dir=.
11110   for ac_exec_ext in '' $ac_executable_extensions; do
11111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112     ac_cv_prog_AR="${ac_tool_prefix}ar"
11113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114     break 2
11115   fi
11116 done
11117 done
11118
11119 fi
11120 fi
11121 AR=$ac_cv_prog_AR
11122 if test -n "$AR"; then
11123   echo "$as_me:$LINENO: result: $AR" >&5
11124 echo "${ECHO_T}$AR" >&6
11125 else
11126   echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11128 fi
11129
11130 fi
11131 if test -z "$ac_cv_prog_AR"; then
11132   ac_ct_AR=$AR
11133   # Extract the first word of "ar", so it can be a program name with args.
11134 set dummy ar; ac_word=$2
11135 echo "$as_me:$LINENO: checking for $ac_word" >&5
11136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11137 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140   if test -n "$ac_ct_AR"; then
11141   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11142 else
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11145 do
11146   IFS=$as_save_IFS
11147   test -z "$as_dir" && as_dir=.
11148   for ac_exec_ext in '' $ac_executable_extensions; do
11149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150     ac_cv_prog_ac_ct_AR="ar"
11151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11152     break 2
11153   fi
11154 done
11155 done
11156
11157   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11158 fi
11159 fi
11160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11161 if test -n "$ac_ct_AR"; then
11162   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11163 echo "${ECHO_T}$ac_ct_AR" >&6
11164 else
11165   echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6
11167 fi
11168
11169   AR=$ac_ct_AR
11170 else
11171   AR="$ac_cv_prog_AR"
11172 fi
11173
11174 if test -n "$ac_tool_prefix"; then
11175   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11177 echo "$as_me:$LINENO: checking for $ac_word" >&5
11178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11179 if test "${ac_cv_prog_RANLIB+set}" = set; then
11180   echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182   if test -n "$RANLIB"; then
11183   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11184 else
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11187 do
11188   IFS=$as_save_IFS
11189   test -z "$as_dir" && as_dir=.
11190   for ac_exec_ext in '' $ac_executable_extensions; do
11191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11194     break 2
11195   fi
11196 done
11197 done
11198
11199 fi
11200 fi
11201 RANLIB=$ac_cv_prog_RANLIB
11202 if test -n "$RANLIB"; then
11203   echo "$as_me:$LINENO: result: $RANLIB" >&5
11204 echo "${ECHO_T}$RANLIB" >&6
11205 else
11206   echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6
11208 fi
11209
11210 fi
11211 if test -z "$ac_cv_prog_RANLIB"; then
11212   ac_ct_RANLIB=$RANLIB
11213   # Extract the first word of "ranlib", so it can be a program name with args.
11214 set dummy ranlib; ac_word=$2
11215 echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   if test -n "$ac_ct_RANLIB"; then
11221   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226   IFS=$as_save_IFS
11227   test -z "$as_dir" && as_dir=.
11228   for ac_exec_ext in '' $ac_executable_extensions; do
11229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230     ac_cv_prog_ac_ct_RANLIB="ranlib"
11231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232     break 2
11233   fi
11234 done
11235 done
11236
11237   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11238 fi
11239 fi
11240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11241 if test -n "$ac_ct_RANLIB"; then
11242   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11243 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11244 else
11245   echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6
11247 fi
11248
11249   RANLIB=$ac_ct_RANLIB
11250 else
11251   RANLIB="$ac_cv_prog_RANLIB"
11252 fi
11253
11254 if test -n "$ac_tool_prefix"; then
11255   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}strip; ac_word=$2
11257 echo "$as_me:$LINENO: checking for $ac_word" >&5
11258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11259 if test "${ac_cv_prog_STRIP+set}" = set; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262   if test -n "$STRIP"; then
11263   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11267 do
11268   IFS=$as_save_IFS
11269   test -z "$as_dir" && as_dir=.
11270   for ac_exec_ext in '' $ac_executable_extensions; do
11271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11274     break 2
11275   fi
11276 done
11277 done
11278
11279 fi
11280 fi
11281 STRIP=$ac_cv_prog_STRIP
11282 if test -n "$STRIP"; then
11283   echo "$as_me:$LINENO: result: $STRIP" >&5
11284 echo "${ECHO_T}$STRIP" >&6
11285 else
11286   echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11288 fi
11289
11290 fi
11291 if test -z "$ac_cv_prog_STRIP"; then
11292   ac_ct_STRIP=$STRIP
11293   # Extract the first word of "strip", so it can be a program name with args.
11294 set dummy strip; ac_word=$2
11295 echo "$as_me:$LINENO: checking for $ac_word" >&5
11296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11298   echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300   if test -n "$ac_ct_STRIP"; then
11301   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11302 else
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11305 do
11306   IFS=$as_save_IFS
11307   test -z "$as_dir" && as_dir=.
11308   for ac_exec_ext in '' $ac_executable_extensions; do
11309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310     ac_cv_prog_ac_ct_STRIP="strip"
11311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312     break 2
11313   fi
11314 done
11315 done
11316
11317   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11318 fi
11319 fi
11320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11321 if test -n "$ac_ct_STRIP"; then
11322   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11323 echo "${ECHO_T}$ac_ct_STRIP" >&6
11324 else
11325   echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11327 fi
11328
11329   STRIP=$ac_ct_STRIP
11330 else
11331   STRIP="$ac_cv_prog_STRIP"
11332 fi
11333
11334
11335 old_CC="$CC"
11336 old_CFLAGS="$CFLAGS"
11337
11338 # Set sane defaults for various variables
11339 test -z "$AR" && AR=ar
11340 test -z "$AR_FLAGS" && AR_FLAGS=cru
11341 test -z "$AS" && AS=as
11342 test -z "$CC" && CC=cc
11343 test -z "$LTCC" && LTCC=$CC
11344 test -z "$DLLTOOL" && DLLTOOL=dlltool
11345 test -z "$LD" && LD=ld
11346 test -z "$LN_S" && LN_S="ln -s"
11347 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11348 test -z "$NM" && NM=nm
11349 test -z "$SED" && SED=sed
11350 test -z "$OBJDUMP" && OBJDUMP=objdump
11351 test -z "$RANLIB" && RANLIB=:
11352 test -z "$STRIP" && STRIP=:
11353 test -z "$ac_objext" && ac_objext=o
11354
11355 # Determine commands to create old-style static archives.
11356 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11357 old_postinstall_cmds='chmod 644 $oldlib'
11358 old_postuninstall_cmds=
11359
11360 if test -n "$RANLIB"; then
11361   case $host_os in
11362   openbsd*)
11363     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11364     ;;
11365   *)
11366     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11367     ;;
11368   esac
11369   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11370 fi
11371
11372 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11373
11374 # Only perform the check for file, if the check method requires it
11375 case $deplibs_check_method in
11376 file_magic*)
11377   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11378     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11379 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11380 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   case $MAGIC_CMD in
11384 [\\/*] |  ?:[\\/]*)
11385   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11386   ;;
11387 *)
11388   lt_save_MAGIC_CMD="$MAGIC_CMD"
11389   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11390   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11391   for ac_dir in $ac_dummy; do
11392     IFS="$lt_save_ifs"
11393     test -z "$ac_dir" && ac_dir=.
11394     if test -f $ac_dir/${ac_tool_prefix}file; then
11395       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11396       if test -n "$file_magic_test_file"; then
11397         case $deplibs_check_method in
11398         "file_magic "*)
11399           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11400           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11401           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11402             $EGREP "$file_magic_regex" > /dev/null; then
11403             :
11404           else
11405             cat <<EOF 1>&2
11406
11407 *** Warning: the command libtool uses to detect shared libraries,
11408 *** $file_magic_cmd, produces output that libtool cannot recognize.
11409 *** The result is that libtool may fail to recognize shared libraries
11410 *** as such.  This will affect the creation of libtool libraries that
11411 *** depend on shared libraries, but programs linked with such libtool
11412 *** libraries will work regardless of this problem.  Nevertheless, you
11413 *** may want to report the problem to your system manager and/or to
11414 *** bug-libtool@gnu.org
11415
11416 EOF
11417           fi ;;
11418         esac
11419       fi
11420       break
11421     fi
11422   done
11423   IFS="$lt_save_ifs"
11424   MAGIC_CMD="$lt_save_MAGIC_CMD"
11425   ;;
11426 esac
11427 fi
11428
11429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11430 if test -n "$MAGIC_CMD"; then
11431   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11432 echo "${ECHO_T}$MAGIC_CMD" >&6
11433 else
11434   echo "$as_me:$LINENO: result: no" >&5
11435 echo "${ECHO_T}no" >&6
11436 fi
11437
11438 if test -z "$lt_cv_path_MAGIC_CMD"; then
11439   if test -n "$ac_tool_prefix"; then
11440     echo "$as_me:$LINENO: checking for file" >&5
11441 echo $ECHO_N "checking for file... $ECHO_C" >&6
11442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   case $MAGIC_CMD in
11446 [\\/*] |  ?:[\\/]*)
11447   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11448   ;;
11449 *)
11450   lt_save_MAGIC_CMD="$MAGIC_CMD"
11451   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11452   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11453   for ac_dir in $ac_dummy; do
11454     IFS="$lt_save_ifs"
11455     test -z "$ac_dir" && ac_dir=.
11456     if test -f $ac_dir/file; then
11457       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11458       if test -n "$file_magic_test_file"; then
11459         case $deplibs_check_method in
11460         "file_magic "*)
11461           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11462           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11463           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11464             $EGREP "$file_magic_regex" > /dev/null; then
11465             :
11466           else
11467             cat <<EOF 1>&2
11468
11469 *** Warning: the command libtool uses to detect shared libraries,
11470 *** $file_magic_cmd, produces output that libtool cannot recognize.
11471 *** The result is that libtool may fail to recognize shared libraries
11472 *** as such.  This will affect the creation of libtool libraries that
11473 *** depend on shared libraries, but programs linked with such libtool
11474 *** libraries will work regardless of this problem.  Nevertheless, you
11475 *** may want to report the problem to your system manager and/or to
11476 *** bug-libtool@gnu.org
11477
11478 EOF
11479           fi ;;
11480         esac
11481       fi
11482       break
11483     fi
11484   done
11485   IFS="$lt_save_ifs"
11486   MAGIC_CMD="$lt_save_MAGIC_CMD"
11487   ;;
11488 esac
11489 fi
11490
11491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11492 if test -n "$MAGIC_CMD"; then
11493   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11494 echo "${ECHO_T}$MAGIC_CMD" >&6
11495 else
11496   echo "$as_me:$LINENO: result: no" >&5
11497 echo "${ECHO_T}no" >&6
11498 fi
11499
11500   else
11501     MAGIC_CMD=:
11502   fi
11503 fi
11504
11505   fi
11506   ;;
11507 esac
11508
11509 enable_dlopen=yes
11510 enable_win32_dll=no
11511
11512 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11513 if test "${enable_libtool_lock+set}" = set; then
11514   enableval="$enable_libtool_lock"
11515
11516 fi;
11517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11518
11519
11520 # Check whether --with-pic or --without-pic was given.
11521 if test "${with_pic+set}" = set; then
11522   withval="$with_pic"
11523   pic_mode="$withval"
11524 else
11525   pic_mode=default
11526 fi;
11527 test -z "$pic_mode" && pic_mode=default
11528
11529 # Use C for the default configuration in the libtool script
11530 tagname=
11531 lt_save_CC="$CC"
11532 ac_ext=c
11533 ac_cpp='$CPP $CPPFLAGS'
11534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11537
11538
11539 # Source file extension for C test sources.
11540 ac_ext=c
11541
11542 # Object file extension for compiled C test sources.
11543 objext=o
11544 objext=$objext
11545
11546 # Code to be used in simple compile tests
11547 lt_simple_compile_test_code="int some_variable = 0;\n"
11548
11549 # Code to be used in simple link tests
11550 lt_simple_link_test_code='int main(){return(0);}\n'
11551
11552
11553 # If no C compiler was specified, use CC.
11554 LTCC=${LTCC-"$CC"}
11555
11556 # Allow CC to be a program name with arguments.
11557 compiler=$CC
11558
11559
11560 #
11561 # Check for any special shared library compilation flags.
11562 #
11563 lt_prog_cc_shlib=
11564 if test "$GCC" = no; then
11565   case $host_os in
11566   sco3.2v5*)
11567     lt_prog_cc_shlib='-belf'
11568     ;;
11569   esac
11570 fi
11571 if test -n "$lt_prog_cc_shlib"; then
11572   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11573 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11574   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11575   else
11576     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11577 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11578     lt_cv_prog_cc_can_build_shared=no
11579   fi
11580 fi
11581
11582
11583 #
11584 # Check to make sure the static flag actually works.
11585 #
11586 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11587 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11588 if test "${lt_prog_compiler_static_works+set}" = set; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   lt_prog_compiler_static_works=no
11592    save_LDFLAGS="$LDFLAGS"
11593    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11594    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11595    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11596      # The compiler can only warn and ignore the option if not recognized
11597      # So say no if there are warnings
11598      if test -s conftest.err; then
11599        # Append any errors to the config.log.
11600        cat conftest.err 1>&5
11601      else
11602        lt_prog_compiler_static_works=yes
11603      fi
11604    fi
11605    $rm conftest*
11606    LDFLAGS="$save_LDFLAGS"
11607
11608 fi
11609 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11610 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11611
11612 if test x"$lt_prog_compiler_static_works" = xyes; then
11613     :
11614 else
11615     lt_prog_compiler_static=
11616 fi
11617
11618
11619
11620
11621 lt_prog_compiler_no_builtin_flag=
11622
11623 if test "$GCC" = yes; then
11624   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11625
11626
11627 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11628 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11629 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   lt_cv_prog_compiler_rtti_exceptions=no
11633   ac_outfile=conftest.$ac_objext
11634    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11635    lt_compiler_flag="-fno-rtti -fno-exceptions"
11636    # Insert the option either (1) after the last *FLAGS variable, or
11637    # (2) before a word containing "conftest.", or (3) at the end.
11638    # Note that $ac_compile itself does not contain backslashes and begins
11639    # with a dollar sign (not a hyphen), so the echo should work correctly.
11640    # The option is referenced via a variable to avoid confusing sed.
11641    lt_compile=`echo "$ac_compile" | $SED \
11642    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11643    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11644    -e 's:$: $lt_compiler_flag:'`
11645    (eval echo "\"\$as_me:11645: $lt_compile\"" >&5)
11646    (eval "$lt_compile" 2>conftest.err)
11647    ac_status=$?
11648    cat conftest.err >&5
11649    echo "$as_me:11649: \$? = $ac_status" >&5
11650    if (exit $ac_status) && test -s "$ac_outfile"; then
11651      # The compiler can only warn and ignore the option if not recognized
11652      # So say no if there are warnings
11653      if test ! -s conftest.err; then
11654        lt_cv_prog_compiler_rtti_exceptions=yes
11655      fi
11656    fi
11657    $rm conftest*
11658
11659 fi
11660 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11661 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11662
11663 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11664     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11665 else
11666     :
11667 fi
11668
11669 fi
11670
11671 lt_prog_compiler_wl=
11672 lt_prog_compiler_pic=
11673 lt_prog_compiler_static=
11674
11675 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11676 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11677
11678   if test "$GCC" = yes; then
11679     lt_prog_compiler_wl='-Wl,'
11680     lt_prog_compiler_static='-static'
11681
11682     case $host_os in
11683       aix*)
11684       # All AIX code is PIC.
11685       if test "$host_cpu" = ia64; then
11686         # AIX 5 now supports IA64 processor
11687         lt_prog_compiler_static='-Bstatic'
11688       fi
11689       ;;
11690
11691     amigaos*)
11692       # FIXME: we need at least 68020 code to build shared libraries, but
11693       # adding the `-m68020' flag to GCC prevents building anything better,
11694       # like `-m68040'.
11695       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11696       ;;
11697
11698     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11699       # PIC is the default for these OSes.
11700       ;;
11701
11702     mingw* | pw32* | os2*)
11703       # This hack is so that the source file can tell whether it is being
11704       # built for inclusion in a dll (and should export symbols for example).
11705       lt_prog_compiler_pic='-DDLL_EXPORT'
11706       ;;
11707
11708     darwin* | rhapsody*)
11709       # PIC is the default on this platform
11710       # Common symbols not allowed in MH_DYLIB files
11711       lt_prog_compiler_pic='-fno-common'
11712       ;;
11713
11714     msdosdjgpp*)
11715       # Just because we use GCC doesn't mean we suddenly get shared libraries
11716       # on systems that don't support them.
11717       lt_prog_compiler_can_build_shared=no
11718       enable_shared=no
11719       ;;
11720
11721     sysv4*MP*)
11722       if test -d /usr/nec; then
11723         lt_prog_compiler_pic=-Kconform_pic
11724       fi
11725       ;;
11726
11727     hpux*)
11728       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11729       # not for PA HP-UX.
11730       case "$host_cpu" in
11731       hppa*64*|ia64*)
11732         # +Z the default
11733         ;;
11734       *)
11735         lt_prog_compiler_pic='-fPIC'
11736         ;;
11737       esac
11738       ;;
11739
11740     *)
11741       lt_prog_compiler_pic='-fPIC'
11742       ;;
11743     esac
11744   else
11745     # PORTME Check for flag to pass linker flags through the system compiler.
11746     case $host_os in
11747     aix*)
11748       lt_prog_compiler_wl='-Wl,'
11749       if test "$host_cpu" = ia64; then
11750         # AIX 5 now supports IA64 processor
11751         lt_prog_compiler_static='-Bstatic'
11752       else
11753         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11754       fi
11755       ;;
11756       darwin*)
11757         # PIC is the default on this platform
11758         # Common symbols not allowed in MH_DYLIB files
11759        case "$cc_basename" in
11760          xlc*)
11761          lt_prog_compiler_pic='-qnocommon'
11762          lt_prog_compiler_wl='-Wl,'
11763          ;;
11764        esac
11765        ;;
11766
11767     mingw* | pw32* | os2*)
11768       # This hack is so that the source file can tell whether it is being
11769       # built for inclusion in a dll (and should export symbols for example).
11770       lt_prog_compiler_pic='-DDLL_EXPORT'
11771       ;;
11772
11773     hpux9* | hpux10* | hpux11*)
11774       lt_prog_compiler_wl='-Wl,'
11775       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11776       # not for PA HP-UX.
11777       case "$host_cpu" in
11778       hppa*64*|ia64*)
11779         # +Z the default
11780         ;;
11781       *)
11782         lt_prog_compiler_pic='+Z'
11783         ;;
11784       esac
11785       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11786       lt_prog_compiler_static='${wl}-a ${wl}archive'
11787       ;;
11788
11789     irix5* | irix6* | nonstopux*)
11790       lt_prog_compiler_wl='-Wl,'
11791       # PIC (with -KPIC) is the default.
11792       lt_prog_compiler_static='-non_shared'
11793       ;;
11794
11795     newsos6)
11796       lt_prog_compiler_pic='-KPIC'
11797       lt_prog_compiler_static='-Bstatic'
11798       ;;
11799
11800     linux*)
11801       case $CC in
11802       icc* | ecc*)
11803         lt_prog_compiler_wl='-Wl,'
11804         lt_prog_compiler_pic='-KPIC'
11805         lt_prog_compiler_static='-static'
11806         ;;
11807       ccc*)
11808         lt_prog_compiler_wl='-Wl,'
11809         # All Alpha code is PIC.
11810         lt_prog_compiler_static='-non_shared'
11811         ;;
11812       esac
11813       ;;
11814
11815     osf3* | osf4* | osf5*)
11816       lt_prog_compiler_wl='-Wl,'
11817       # All OSF/1 code is PIC.
11818       lt_prog_compiler_static='-non_shared'
11819       ;;
11820
11821     sco3.2v5*)
11822       lt_prog_compiler_pic='-Kpic'
11823       lt_prog_compiler_static='-dn'
11824       ;;
11825
11826     solaris*)
11827       lt_prog_compiler_wl='-Wl,'
11828       lt_prog_compiler_pic='-KPIC'
11829       lt_prog_compiler_static='-Bstatic'
11830       ;;
11831
11832     sunos4*)
11833       lt_prog_compiler_wl='-Qoption ld '
11834       lt_prog_compiler_pic='-PIC'
11835       lt_prog_compiler_static='-Bstatic'
11836       ;;
11837
11838     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11839       lt_prog_compiler_wl='-Wl,'
11840       lt_prog_compiler_pic='-KPIC'
11841       lt_prog_compiler_static='-Bstatic'
11842       ;;
11843
11844     sysv4*MP*)
11845       if test -d /usr/nec ;then
11846         lt_prog_compiler_pic='-Kconform_pic'
11847         lt_prog_compiler_static='-Bstatic'
11848       fi
11849       ;;
11850
11851     uts4*)
11852       lt_prog_compiler_pic='-pic'
11853       lt_prog_compiler_static='-Bstatic'
11854       ;;
11855
11856     *)
11857       lt_prog_compiler_can_build_shared=no
11858       ;;
11859     esac
11860   fi
11861
11862 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11863 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11864
11865 #
11866 # Check to make sure the PIC flag actually works.
11867 #
11868 if test -n "$lt_prog_compiler_pic"; then
11869
11870 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11871 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11872 if test "${lt_prog_compiler_pic_works+set}" = set; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   lt_prog_compiler_pic_works=no
11876   ac_outfile=conftest.$ac_objext
11877    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11878    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11879    # Insert the option either (1) after the last *FLAGS variable, or
11880    # (2) before a word containing "conftest.", or (3) at the end.
11881    # Note that $ac_compile itself does not contain backslashes and begins
11882    # with a dollar sign (not a hyphen), so the echo should work correctly.
11883    # The option is referenced via a variable to avoid confusing sed.
11884    lt_compile=`echo "$ac_compile" | $SED \
11885    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11886    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11887    -e 's:$: $lt_compiler_flag:'`
11888    (eval echo "\"\$as_me:11888: $lt_compile\"" >&5)
11889    (eval "$lt_compile" 2>conftest.err)
11890    ac_status=$?
11891    cat conftest.err >&5
11892    echo "$as_me:11892: \$? = $ac_status" >&5
11893    if (exit $ac_status) && test -s "$ac_outfile"; then
11894      # The compiler can only warn and ignore the option if not recognized
11895      # So say no if there are warnings
11896      if test ! -s conftest.err; then
11897        lt_prog_compiler_pic_works=yes
11898      fi
11899    fi
11900    $rm conftest*
11901
11902 fi
11903 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11904 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11905
11906 if test x"$lt_prog_compiler_pic_works" = xyes; then
11907     case $lt_prog_compiler_pic in
11908      "" | " "*) ;;
11909      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11910      esac
11911 else
11912     lt_prog_compiler_pic=
11913      lt_prog_compiler_can_build_shared=no
11914 fi
11915
11916 fi
11917 case "$host_os" in
11918   # For platforms which do not support PIC, -DPIC is meaningless:
11919   *djgpp*)
11920     lt_prog_compiler_pic=
11921     ;;
11922   *)
11923     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11924     ;;
11925 esac
11926
11927 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11930   echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932   lt_cv_prog_compiler_c_o=no
11933    $rm -r conftest 2>/dev/null
11934    mkdir conftest
11935    cd conftest
11936    mkdir out
11937    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11938
11939    lt_compiler_flag="-o out/conftest2.$ac_objext"
11940    # Insert the option either (1) after the last *FLAGS variable, or
11941    # (2) before a word containing "conftest.", or (3) at the end.
11942    # Note that $ac_compile itself does not contain backslashes and begins
11943    # with a dollar sign (not a hyphen), so the echo should work correctly.
11944    lt_compile=`echo "$ac_compile" | $SED \
11945    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11947    -e 's:$: $lt_compiler_flag:'`
11948    (eval echo "\"\$as_me:11948: $lt_compile\"" >&5)
11949    (eval "$lt_compile" 2>out/conftest.err)
11950    ac_status=$?
11951    cat out/conftest.err >&5
11952    echo "$as_me:11952: \$? = $ac_status" >&5
11953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11954    then
11955      # The compiler can only warn and ignore the option if not recognized
11956      # So say no if there are warnings
11957      if test ! -s out/conftest.err; then
11958        lt_cv_prog_compiler_c_o=yes
11959      fi
11960    fi
11961    chmod u+w .
11962    $rm conftest*
11963    # SGI C++ compiler will create directory out/ii_files/ for
11964    # template instantiation
11965    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11966    $rm out/* && rmdir out
11967    cd ..
11968    rmdir conftest
11969    $rm conftest*
11970
11971 fi
11972 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11973 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11974
11975
11976 hard_links="nottested"
11977 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11978   # do not overwrite the value of need_locks provided by the user
11979   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11980 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11981   hard_links=yes
11982   $rm conftest*
11983   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11984   touch conftest.a
11985   ln conftest.a conftest.b 2>&5 || hard_links=no
11986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11987   echo "$as_me:$LINENO: result: $hard_links" >&5
11988 echo "${ECHO_T}$hard_links" >&6
11989   if test "$hard_links" = no; then
11990     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11991 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11992     need_locks=warn
11993   fi
11994 else
11995   need_locks=no
11996 fi
11997
11998 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12000
12001   runpath_var=
12002   allow_undefined_flag=
12003   enable_shared_with_static_runtimes=no
12004   archive_cmds=
12005   archive_expsym_cmds=
12006   old_archive_From_new_cmds=
12007   old_archive_from_expsyms_cmds=
12008   export_dynamic_flag_spec=
12009   whole_archive_flag_spec=
12010   thread_safe_flag_spec=
12011   hardcode_libdir_flag_spec=
12012   hardcode_libdir_flag_spec_ld=
12013   hardcode_libdir_separator=
12014   hardcode_direct=no
12015   hardcode_minus_L=no
12016   hardcode_shlibpath_var=unsupported
12017   link_all_deplibs=unknown
12018   hardcode_automatic=no
12019   module_cmds=
12020   module_expsym_cmds=
12021   always_export_symbols=no
12022   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12023   # include_expsyms should be a list of space-separated symbols to be *always*
12024   # included in the symbol list
12025   include_expsyms=
12026   # exclude_expsyms can be an extended regexp of symbols to exclude
12027   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12028   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12029   # as well as any symbol that contains `d'.
12030   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12032   # platforms (ab)use it in PIC code, but their linkers get confused if
12033   # the symbol is explicitly referenced.  Since portable code cannot
12034   # rely on this symbol name, it's probably fine to never include it in
12035   # preloaded symbol tables.
12036   extract_expsyms_cmds=
12037
12038   case $host_os in
12039   cygwin* | mingw* | pw32*)
12040     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12041     # When not using gcc, we currently assume that we are using
12042     # Microsoft Visual C++.
12043     if test "$GCC" != yes; then
12044       with_gnu_ld=no
12045     fi
12046     ;;
12047   openbsd*)
12048     with_gnu_ld=no
12049     ;;
12050   esac
12051
12052   ld_shlibs=yes
12053   if test "$with_gnu_ld" = yes; then
12054     # If archive_cmds runs LD, not CC, wlarc should be empty
12055     wlarc='${wl}'
12056
12057     # See if GNU ld supports shared libraries.
12058     case $host_os in
12059     aix3* | aix4* | aix5*)
12060       # On AIX/PPC, the GNU linker is very broken
12061       if test "$host_cpu" != ia64; then
12062         ld_shlibs=no
12063         cat <<EOF 1>&2
12064
12065 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12066 *** to be unable to reliably create shared libraries on AIX.
12067 *** Therefore, libtool is disabling shared libraries support.  If you
12068 *** really care for shared libraries, you may want to modify your PATH
12069 *** so that a non-GNU linker is found, and then restart.
12070
12071 EOF
12072       fi
12073       ;;
12074
12075     amigaos*)
12076       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)'
12077       hardcode_libdir_flag_spec='-L$libdir'
12078       hardcode_minus_L=yes
12079
12080       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12081       # that the semantics of dynamic libraries on AmigaOS, at least up
12082       # to version 4, is to share data among multiple programs linked
12083       # with the same dynamic library.  Since this doesn't match the
12084       # behavior of shared libraries on other platforms, we can't use
12085       # them.
12086       ld_shlibs=no
12087       ;;
12088
12089     beos*)
12090       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12091         allow_undefined_flag=unsupported
12092         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12093         # support --undefined.  This deserves some investigation.  FIXME
12094         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095       else
12096         ld_shlibs=no
12097       fi
12098       ;;
12099
12100     cygwin* | mingw* | pw32*)
12101       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12102       # as there is no search path for DLLs.
12103       hardcode_libdir_flag_spec='-L$libdir'
12104       allow_undefined_flag=unsupported
12105       always_export_symbols=no
12106       enable_shared_with_static_runtimes=yes
12107       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12108
12109       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12110         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12111         # If the export-symbols file already is a .def file (1st line
12112         # is EXPORTS), use it as is; otherwise, prepend...
12113         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12114           cp $export_symbols $output_objdir/$soname.def;
12115         else
12116           echo EXPORTS > $output_objdir/$soname.def;
12117           cat $export_symbols >> $output_objdir/$soname.def;
12118         fi~
12119         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12120       else
12121         ld_shlibs=no
12122       fi
12123       ;;
12124
12125     netbsd*)
12126       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12127         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12128         wlarc=
12129       else
12130         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12131         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12132       fi
12133       ;;
12134
12135     solaris* | sysv5*)
12136       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12137         ld_shlibs=no
12138         cat <<EOF 1>&2
12139
12140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12141 *** create shared libraries on Solaris systems.  Therefore, libtool
12142 *** is disabling shared libraries support.  We urge you to upgrade GNU
12143 *** binutils to release 2.9.1 or newer.  Another option is to modify
12144 *** your PATH or compiler configuration so that the native linker is
12145 *** used, and then restart.
12146
12147 EOF
12148       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12149         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12150         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12151       else
12152         ld_shlibs=no
12153       fi
12154       ;;
12155
12156     sunos4*)
12157       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12158       wlarc=
12159       hardcode_direct=yes
12160       hardcode_shlibpath_var=no
12161       ;;
12162
12163   linux*)
12164     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12165         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12166         archive_cmds="$tmp_archive_cmds"
12167       supports_anon_versioning=no
12168       case `$LD -v 2>/dev/null` in
12169         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12170         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12171         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12172         *\ 2.11.*) ;; # other 2.11 versions
12173         *) supports_anon_versioning=yes ;;
12174       esac
12175       if test $supports_anon_versioning = yes; then
12176         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12178 $echo "local: *; };" >> $output_objdir/$libname.ver~
12179         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12180       else
12181         archive_expsym_cmds="$tmp_archive_cmds"
12182       fi
12183     else
12184       ld_shlibs=no
12185     fi
12186     ;;
12187
12188     *)
12189       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12190         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12191         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12192       else
12193         ld_shlibs=no
12194       fi
12195       ;;
12196     esac
12197
12198     if test "$ld_shlibs" = yes; then
12199       runpath_var=LD_RUN_PATH
12200       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12201       export_dynamic_flag_spec='${wl}--export-dynamic'
12202       # ancient GNU ld didn't support --whole-archive et. al.
12203       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12204         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12205       else
12206         whole_archive_flag_spec=
12207       fi
12208     fi
12209   else
12210     # PORTME fill in a description of your system's linker (not GNU ld)
12211     case $host_os in
12212     aix3*)
12213       allow_undefined_flag=unsupported
12214       always_export_symbols=yes
12215       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'
12216       # Note: this linker hardcodes the directories in LIBPATH if there
12217       # are no directories specified by -L.
12218       hardcode_minus_L=yes
12219       if test "$GCC" = yes && test -z "$link_static_flag"; then
12220         # Neither direct hardcoding nor static linking is supported with a
12221         # broken collect2.
12222         hardcode_direct=unsupported
12223       fi
12224       ;;
12225
12226     aix4* | aix5*)
12227       if test "$host_cpu" = ia64; then
12228         # On IA64, the linker does run time linking by default, so we don't
12229         # have to do anything special.
12230         aix_use_runtimelinking=no
12231         exp_sym_flag='-Bexport'
12232         no_entry_flag=""
12233       else
12234         # If we're using GNU nm, then we don't want the "-C" option.
12235         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12236         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12237           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'
12238         else
12239           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'
12240         fi
12241         aix_use_runtimelinking=no
12242
12243         # Test if we are trying to use run time linking or normal
12244         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12245         # need to do runtime linking.
12246         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12247           for ld_flag in $LDFLAGS; do
12248           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12249             aix_use_runtimelinking=yes
12250             break
12251           fi
12252           done
12253         esac
12254
12255         exp_sym_flag='-bexport'
12256         no_entry_flag='-bnoentry'
12257       fi
12258
12259       # When large executables or shared objects are built, AIX ld can
12260       # have problems creating the table of contents.  If linking a library
12261       # or program results in "error TOC overflow" add -mminimal-toc to
12262       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12263       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12264
12265       archive_cmds=''
12266       hardcode_direct=yes
12267       hardcode_libdir_separator=':'
12268       link_all_deplibs=yes
12269
12270       if test "$GCC" = yes; then
12271         case $host_os in aix4.012|aix4.012.*)
12272         # We only want to do this on AIX 4.2 and lower, the check
12273         # below for broken collect2 doesn't work under 4.3+
12274           collect2name=`${CC} -print-prog-name=collect2`
12275           if test -f "$collect2name" && \
12276            strings "$collect2name" | grep resolve_lib_name >/dev/null
12277           then
12278           # We have reworked collect2
12279           hardcode_direct=yes
12280           else
12281           # We have old collect2
12282           hardcode_direct=unsupported
12283           # It fails to find uninstalled libraries when the uninstalled
12284           # path is not listed in the libpath.  Setting hardcode_minus_L
12285           # to unsupported forces relinking
12286           hardcode_minus_L=yes
12287           hardcode_libdir_flag_spec='-L$libdir'
12288           hardcode_libdir_separator=
12289           fi
12290         esac
12291         shared_flag='-shared'
12292       else
12293         # not using gcc
12294         if test "$host_cpu" = ia64; then
12295         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12296         # chokes on -Wl,-G. The following line is correct:
12297           shared_flag='-G'
12298         else
12299         if test "$aix_use_runtimelinking" = yes; then
12300             shared_flag='${wl}-G'
12301           else
12302             shared_flag='${wl}-bM:SRE'
12303         fi
12304         fi
12305       fi
12306
12307       # It seems that -bexpall does not export symbols beginning with
12308       # underscore (_), so it is better to generate a list of symbols to export.
12309       always_export_symbols=yes
12310       if test "$aix_use_runtimelinking" = yes; then
12311         # Warning - without using the other runtime loading flags (-brtl),
12312         # -berok will link without error, but may produce a broken library.
12313         allow_undefined_flag='-berok'
12314        # Determine the default libpath from the value encoded in an empty executable.
12315        cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321
12322 int
12323 main ()
12324 {
12325
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332   (eval $ac_link) 2>conftest.er1
12333   ac_status=$?
12334   grep -v '^ *+' conftest.er1 >conftest.err
12335   rm -f conftest.er1
12336   cat conftest.err >&5
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } &&
12339          { ac_try='test -z "$ac_c_werror_flag"
12340                          || test ! -s conftest.err'
12341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342   (eval $ac_try) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); }; } &&
12346          { ac_try='test -s conftest$ac_exeext'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352
12353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12354 }'`
12355 # Check for a 64-bit object if we didn't find anything.
12356 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; }
12357 }'`; fi
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 fi
12363 rm -f conftest.err conftest.$ac_objext \
12364       conftest$ac_exeext conftest.$ac_ext
12365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12366
12367        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12368         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"
12369        else
12370         if test "$host_cpu" = ia64; then
12371           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12372           allow_undefined_flag="-z nodefs"
12373           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"
12374         else
12375          # Determine the default libpath from the value encoded in an empty executable.
12376          cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382
12383 int
12384 main ()
12385 {
12386
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393   (eval $ac_link) 2>conftest.er1
12394   ac_status=$?
12395   grep -v '^ *+' conftest.er1 >conftest.err
12396   rm -f conftest.er1
12397   cat conftest.err >&5
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } &&
12400          { ac_try='test -z "$ac_c_werror_flag"
12401                          || test ! -s conftest.err'
12402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; } &&
12407          { ac_try='test -s conftest$ac_exeext'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; }; then
12413
12414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12415 }'`
12416 # Check for a 64-bit object if we didn't find anything.
12417 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; }
12418 }'`; fi
12419 else
12420   echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 fi
12424 rm -f conftest.err conftest.$ac_objext \
12425       conftest$ac_exeext conftest.$ac_ext
12426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12427
12428          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12429           # Warning - without using the other run time loading flags,
12430           # -berok will link without error, but may produce a broken library.
12431           no_undefined_flag=' ${wl}-bernotok'
12432           allow_undefined_flag=' ${wl}-berok'
12433           # -bexpall does not export symbols beginning with underscore (_)
12434           always_export_symbols=yes
12435           # Exported symbols can be pulled into shared objects from archives
12436           whole_archive_flag_spec=' '
12437           archive_cmds_need_lc=yes
12438           # This is similar to how AIX traditionally builds it's shared libraries.
12439           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'
12440         fi
12441       fi
12442       ;;
12443
12444     amigaos*)
12445       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)'
12446       hardcode_libdir_flag_spec='-L$libdir'
12447       hardcode_minus_L=yes
12448       # see comment about different semantics on the GNU ld section
12449       ld_shlibs=no
12450       ;;
12451
12452     bsdi[45]*)
12453       export_dynamic_flag_spec=-rdynamic
12454       ;;
12455
12456     cygwin* | mingw* | pw32*)
12457       # When not using gcc, we currently assume that we are using
12458       # Microsoft Visual C++.
12459       # hardcode_libdir_flag_spec is actually meaningless, as there is
12460       # no search path for DLLs.
12461       hardcode_libdir_flag_spec=' '
12462       allow_undefined_flag=unsupported
12463       # Tell ltmain to make .lib files, not .a files.
12464       libext=lib
12465       # Tell ltmain to make .dll files, not .so files.
12466       shrext_cmds=".dll"
12467       # FIXME: Setting linknames here is a bad hack.
12468       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12469       # The linker will automatically build a .lib file if we build a DLL.
12470       old_archive_From_new_cmds='true'
12471       # FIXME: Should let the user specify the lib program.
12472       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12473       fix_srcfile_path='`cygpath -w "$srcfile"`'
12474       enable_shared_with_static_runtimes=yes
12475       ;;
12476
12477     darwin* | rhapsody*)
12478       case "$host_os" in
12479         rhapsody* | darwin1.[012])
12480          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12481          ;;
12482        *) # Darwin 1.3 on
12483          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12484            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12485          else
12486            case ${MACOSX_DEPLOYMENT_TARGET} in
12487              10.[012])
12488                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12489                ;;
12490              10.*)
12491                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12492                ;;
12493            esac
12494          fi
12495          ;;
12496       esac
12497       archive_cmds_need_lc=no
12498       hardcode_direct=no
12499       hardcode_automatic=yes
12500       hardcode_shlibpath_var=unsupported
12501       whole_archive_flag_spec=''
12502       link_all_deplibs=yes
12503     if test "$GCC" = yes ; then
12504         output_verbose_link_cmd='echo'
12505         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12506       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12507       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12508       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}'
12509       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}'
12510     else
12511       case "$cc_basename" in
12512         xlc*)
12513          output_verbose_link_cmd='echo'
12514          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12515          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12516           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12517          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}'
12518           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}'
12519           ;;
12520        *)
12521          ld_shlibs=no
12522           ;;
12523       esac
12524     fi
12525       ;;
12526
12527     dgux*)
12528       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12529       hardcode_libdir_flag_spec='-L$libdir'
12530       hardcode_shlibpath_var=no
12531       ;;
12532
12533     freebsd1*)
12534       ld_shlibs=no
12535       ;;
12536
12537     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12538     # support.  Future versions do this automatically, but an explicit c++rt0.o
12539     # does not break anything, and helps significantly (at the cost of a little
12540     # extra space).
12541     freebsd2.2*)
12542       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12543       hardcode_libdir_flag_spec='-R$libdir'
12544       hardcode_direct=yes
12545       hardcode_shlibpath_var=no
12546       ;;
12547
12548     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12549     freebsd2*)
12550       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12551       hardcode_direct=yes
12552       hardcode_minus_L=yes
12553       hardcode_shlibpath_var=no
12554       ;;
12555
12556     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12557     freebsd* | kfreebsd*-gnu)
12558       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12559       hardcode_libdir_flag_spec='-R$libdir'
12560       hardcode_direct=yes
12561       hardcode_shlibpath_var=no
12562       ;;
12563
12564     hpux9*)
12565       if test "$GCC" = yes; then
12566         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'
12567       else
12568         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'
12569       fi
12570       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12571       hardcode_libdir_separator=:
12572       hardcode_direct=yes
12573
12574       # hardcode_minus_L: Not really in the search PATH,
12575       # but as the default location of the library.
12576       hardcode_minus_L=yes
12577       export_dynamic_flag_spec='${wl}-E'
12578       ;;
12579
12580     hpux10* | hpux11*)
12581       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12582         case "$host_cpu" in
12583         hppa*64*|ia64*)
12584           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12585           ;;
12586         *)
12587           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12588           ;;
12589         esac
12590       else
12591         case "$host_cpu" in
12592         hppa*64*|ia64*)
12593           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12594           ;;
12595         *)
12596           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12597           ;;
12598         esac
12599       fi
12600       if test "$with_gnu_ld" = no; then
12601         case "$host_cpu" in
12602         hppa*64*)
12603           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12604           hardcode_libdir_flag_spec_ld='+b $libdir'
12605           hardcode_libdir_separator=:
12606           hardcode_direct=no
12607           hardcode_shlibpath_var=no
12608           ;;
12609         ia64*)
12610           hardcode_libdir_flag_spec='-L$libdir'
12611           hardcode_direct=no
12612           hardcode_shlibpath_var=no
12613
12614           # hardcode_minus_L: Not really in the search PATH,
12615           # but as the default location of the library.
12616           hardcode_minus_L=yes
12617           ;;
12618         *)
12619           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12620           hardcode_libdir_separator=:
12621           hardcode_direct=yes
12622           export_dynamic_flag_spec='${wl}-E'
12623
12624           # hardcode_minus_L: Not really in the search PATH,
12625           # but as the default location of the library.
12626           hardcode_minus_L=yes
12627           ;;
12628         esac
12629       fi
12630       ;;
12631
12632     irix5* | irix6* | nonstopux*)
12633       if test "$GCC" = yes; then
12634         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'
12635       else
12636         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'
12637         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12638       fi
12639       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12640       hardcode_libdir_separator=:
12641       link_all_deplibs=yes
12642       ;;
12643
12644     netbsd*)
12645       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12646         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12647       else
12648         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12649       fi
12650       hardcode_libdir_flag_spec='-R$libdir'
12651       hardcode_direct=yes
12652       hardcode_shlibpath_var=no
12653       ;;
12654
12655     newsos6)
12656       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12657       hardcode_direct=yes
12658       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12659       hardcode_libdir_separator=:
12660       hardcode_shlibpath_var=no
12661       ;;
12662
12663     openbsd*)
12664       hardcode_direct=yes
12665       hardcode_shlibpath_var=no
12666       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12667         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12668         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12669         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12670         export_dynamic_flag_spec='${wl}-E'
12671       else
12672        case $host_os in
12673          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12674            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12675            hardcode_libdir_flag_spec='-R$libdir'
12676            ;;
12677          *)
12678            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12679            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12680            ;;
12681        esac
12682       fi
12683       ;;
12684
12685     os2*)
12686       hardcode_libdir_flag_spec='-L$libdir'
12687       hardcode_minus_L=yes
12688       allow_undefined_flag=unsupported
12689       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'
12690       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12691       ;;
12692
12693     osf3*)
12694       if test "$GCC" = yes; then
12695         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12696         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'
12697       else
12698         allow_undefined_flag=' -expect_unresolved \*'
12699         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'
12700       fi
12701       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12702       hardcode_libdir_separator=:
12703       ;;
12704
12705     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12706       if test "$GCC" = yes; then
12707         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12708         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'
12709         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12710       else
12711         allow_undefined_flag=' -expect_unresolved \*'
12712         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'
12713         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12714         $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'
12715
12716         # Both c and cxx compiler support -rpath directly
12717         hardcode_libdir_flag_spec='-rpath $libdir'
12718       fi
12719       hardcode_libdir_separator=:
12720       ;;
12721
12722     sco3.2v5*)
12723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12724       hardcode_shlibpath_var=no
12725       export_dynamic_flag_spec='${wl}-Bexport'
12726       runpath_var=LD_RUN_PATH
12727       hardcode_runpath_var=yes
12728       ;;
12729
12730     solaris*)
12731       no_undefined_flag=' -z text'
12732       if test "$GCC" = yes; then
12733         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12734         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12735           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12736       else
12737         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12739         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12740       fi
12741       hardcode_libdir_flag_spec='-R$libdir'
12742       hardcode_shlibpath_var=no
12743       case $host_os in
12744       solaris2.[0-5] | solaris2.[0-5].*) ;;
12745       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12746         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12747       esac
12748       link_all_deplibs=yes
12749       ;;
12750
12751     sunos4*)
12752       if test "x$host_vendor" = xsequent; then
12753         # Use $CC to link under sequent, because it throws in some extra .o
12754         # files that make .init and .fini sections work.
12755         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12756       else
12757         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12758       fi
12759       hardcode_libdir_flag_spec='-L$libdir'
12760       hardcode_direct=yes
12761       hardcode_minus_L=yes
12762       hardcode_shlibpath_var=no
12763       ;;
12764
12765     sysv4)
12766       case $host_vendor in
12767         sni)
12768           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12769           hardcode_direct=yes # is this really true???
12770         ;;
12771         siemens)
12772           ## LD is ld it makes a PLAMLIB
12773           ## CC just makes a GrossModule.
12774           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12775           reload_cmds='$CC -r -o $output$reload_objs'
12776           hardcode_direct=no
12777         ;;
12778         motorola)
12779           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12781         ;;
12782       esac
12783       runpath_var='LD_RUN_PATH'
12784       hardcode_shlibpath_var=no
12785       ;;
12786
12787     sysv4.3*)
12788       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12789       hardcode_shlibpath_var=no
12790       export_dynamic_flag_spec='-Bexport'
12791       ;;
12792
12793     sysv4*MP*)
12794       if test -d /usr/nec; then
12795         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12796         hardcode_shlibpath_var=no
12797         runpath_var=LD_RUN_PATH
12798         hardcode_runpath_var=yes
12799         ld_shlibs=yes
12800       fi
12801       ;;
12802
12803     sysv4.2uw2*)
12804       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12805       hardcode_direct=yes
12806       hardcode_minus_L=no
12807       hardcode_shlibpath_var=no
12808       hardcode_runpath_var=yes
12809       runpath_var=LD_RUN_PATH
12810       ;;
12811
12812    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12813       no_undefined_flag='${wl}-z ${wl}text'
12814       if test "$GCC" = yes; then
12815         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12816       else
12817         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12818       fi
12819       runpath_var='LD_RUN_PATH'
12820       hardcode_shlibpath_var=no
12821       ;;
12822
12823     sysv5*)
12824       no_undefined_flag=' -z text'
12825       # $CC -shared without GNU ld will not create a library from C++
12826       # object files and a static libstdc++, better avoid it by now
12827       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12828       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12829                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12830       hardcode_libdir_flag_spec=
12831       hardcode_shlibpath_var=no
12832       runpath_var='LD_RUN_PATH'
12833       ;;
12834
12835     uts4*)
12836       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12837       hardcode_libdir_flag_spec='-L$libdir'
12838       hardcode_shlibpath_var=no
12839       ;;
12840
12841     *)
12842       ld_shlibs=no
12843       ;;
12844     esac
12845   fi
12846
12847 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12848 echo "${ECHO_T}$ld_shlibs" >&6
12849 test "$ld_shlibs" = no && can_build_shared=no
12850
12851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12852 if test "$GCC" = yes; then
12853   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12854 fi
12855
12856 #
12857 # Do we need to explicitly link libc?
12858 #
12859 case "x$archive_cmds_need_lc" in
12860 x|xyes)
12861   # Assume -lc should be added
12862   archive_cmds_need_lc=yes
12863
12864   if test "$enable_shared" = yes && test "$GCC" = yes; then
12865     case $archive_cmds in
12866     *'~'*)
12867       # FIXME: we may have to deal with multi-command sequences.
12868       ;;
12869     '$CC '*)
12870       # Test whether the compiler implicitly links with -lc since on some
12871       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12872       # to ld, don't add -lc before -lgcc.
12873       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12875       $rm conftest*
12876       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12877
12878       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879   (eval $ac_compile) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } 2>conftest.err; then
12883         soname=conftest
12884         lib=conftest
12885         libobjs=conftest.$ac_objext
12886         deplibs=
12887         wl=$lt_prog_compiler_wl
12888         compiler_flags=-v
12889         linker_flags=-v
12890         verstring=
12891         output_objdir=.
12892         libname=conftest
12893         lt_save_allow_undefined_flag=$allow_undefined_flag
12894         allow_undefined_flag=
12895         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12896   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }
12900         then
12901           archive_cmds_need_lc=no
12902         else
12903           archive_cmds_need_lc=yes
12904         fi
12905         allow_undefined_flag=$lt_save_allow_undefined_flag
12906       else
12907         cat conftest.err 1>&5
12908       fi
12909       $rm conftest*
12910       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12911 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12912       ;;
12913     esac
12914   fi
12915   ;;
12916 esac
12917
12918 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12920 library_names_spec=
12921 libname_spec='lib$name'
12922 soname_spec=
12923 shrext_cmds=".so"
12924 postinstall_cmds=
12925 postuninstall_cmds=
12926 finish_cmds=
12927 finish_eval=
12928 shlibpath_var=
12929 shlibpath_overrides_runpath=unknown
12930 version_type=none
12931 dynamic_linker="$host_os ld.so"
12932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12933 if test "$GCC" = yes; then
12934   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12935   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12936     # if the path contains ";" then we assume it to be the separator
12937     # otherwise default to the standard path separator (i.e. ":") - it is
12938     # assumed that no part of a normal pathname contains ";" but that should
12939     # okay in the real world where ";" in dirpaths is itself problematic.
12940     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12941   else
12942     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12943   fi
12944 else
12945   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12946 fi
12947 need_lib_prefix=unknown
12948 hardcode_into_libs=no
12949
12950 # when you set need_version to no, make sure it does not cause -set_version
12951 # flags to be left without arguments
12952 need_version=unknown
12953
12954 case $host_os in
12955 aix3*)
12956   version_type=linux
12957   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12958   shlibpath_var=LIBPATH
12959
12960   # AIX 3 has no versioning support, so we append a major version to the name.
12961   soname_spec='${libname}${release}${shared_ext}$major'
12962   ;;
12963
12964 aix4* | aix5*)
12965   version_type=linux
12966   need_lib_prefix=no
12967   need_version=no
12968   hardcode_into_libs=yes
12969   if test "$host_cpu" = ia64; then
12970     # AIX 5 supports IA64
12971     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12972     shlibpath_var=LD_LIBRARY_PATH
12973   else
12974     # With GCC up to 2.95.x, collect2 would create an import file
12975     # for dependence libraries.  The import file would start with
12976     # the line `#! .'.  This would cause the generated library to
12977     # depend on `.', always an invalid library.  This was fixed in
12978     # development snapshots of GCC prior to 3.0.
12979     case $host_os in
12980       aix4 | aix4.[01] | aix4.[01].*)
12981       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12982            echo ' yes '
12983            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12984         :
12985       else
12986         can_build_shared=no
12987       fi
12988       ;;
12989     esac
12990     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12991     # soname into executable. Probably we can add versioning support to
12992     # collect2, so additional links can be useful in future.
12993     if test "$aix_use_runtimelinking" = yes; then
12994       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12995       # instead of lib<name>.a to let people know that these are not
12996       # typical AIX shared libraries.
12997       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998     else
12999       # We preserve .a as extension for shared libraries through AIX4.2
13000       # and later when we are not doing run time linking.
13001       library_names_spec='${libname}${release}.a $libname.a'
13002       soname_spec='${libname}${release}${shared_ext}$major'
13003     fi
13004     shlibpath_var=LIBPATH
13005   fi
13006   ;;
13007
13008 amigaos*)
13009   library_names_spec='$libname.ixlibrary $libname.a'
13010   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13011   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'
13012   ;;
13013
13014 beos*)
13015   library_names_spec='${libname}${shared_ext}'
13016   dynamic_linker="$host_os ld.so"
13017   shlibpath_var=LIBRARY_PATH
13018   ;;
13019
13020 bsdi[45]*)
13021   version_type=linux
13022   need_version=no
13023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024   soname_spec='${libname}${release}${shared_ext}$major'
13025   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13026   shlibpath_var=LD_LIBRARY_PATH
13027   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13028   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13029   # the default ld.so.conf also contains /usr/contrib/lib and
13030   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13031   # libtool to hard-code these into programs
13032   ;;
13033
13034 cygwin* | mingw* | pw32*)
13035   version_type=windows
13036   shrext_cmds=".dll"
13037   need_version=no
13038   need_lib_prefix=no
13039
13040   case $GCC,$host_os in
13041   yes,cygwin* | yes,mingw* | yes,pw32*)
13042     library_names_spec='$libname.dll.a'
13043     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13044     postinstall_cmds='base_file=`basename \${file}`~
13045       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13046       dldir=$destdir/`dirname \$dlpath`~
13047       test -d \$dldir || mkdir -p \$dldir~
13048       $install_prog $dir/$dlname \$dldir/$dlname'
13049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13050       dlpath=$dir/\$dldll~
13051        $rm \$dlpath'
13052     shlibpath_overrides_runpath=yes
13053
13054     case $host_os in
13055     cygwin*)
13056       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13057       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13058       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13059       ;;
13060     mingw*)
13061       # MinGW DLLs use traditional 'lib' prefix
13062       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13063       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13064       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13065         # It is most probably a Windows format PATH printed by
13066         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13067         # path with ; separators, and with drive letters. We can handle the
13068         # drive letters (cygwin fileutils understands them), so leave them,
13069         # especially as we might pass files found there to a mingw objdump,
13070         # which wouldn't understand a cygwinified path. Ahh.
13071         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13072       else
13073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13074       fi
13075       ;;
13076     pw32*)
13077       # pw32 DLLs use 'pw' prefix rather than 'lib'
13078       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13079       ;;
13080     esac
13081     ;;
13082
13083   *)
13084     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13085     ;;
13086   esac
13087   dynamic_linker='Win32 ld.exe'
13088   # FIXME: first we should search . and the directory the executable is in
13089   shlibpath_var=PATH
13090   ;;
13091
13092 darwin* | rhapsody*)
13093   dynamic_linker="$host_os dyld"
13094   version_type=darwin
13095   need_lib_prefix=no
13096   need_version=no
13097   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13098   soname_spec='${libname}${release}${major}$shared_ext'
13099   shlibpath_overrides_runpath=yes
13100   shlibpath_var=DYLD_LIBRARY_PATH
13101   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13102   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13103   if test "$GCC" = yes; then
13104     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"`
13105   else
13106     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13107   fi
13108   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13109   ;;
13110
13111 dgux*)
13112   version_type=linux
13113   need_lib_prefix=no
13114   need_version=no
13115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13116   soname_spec='${libname}${release}${shared_ext}$major'
13117   shlibpath_var=LD_LIBRARY_PATH
13118   ;;
13119
13120 freebsd1*)
13121   dynamic_linker=no
13122   ;;
13123
13124 kfreebsd*-gnu)
13125   version_type=linux
13126   need_lib_prefix=no
13127   need_version=no
13128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13129   soname_spec='${libname}${release}${shared_ext}$major'
13130   shlibpath_var=LD_LIBRARY_PATH
13131   shlibpath_overrides_runpath=no
13132   hardcode_into_libs=yes
13133   dynamic_linker='GNU ld.so'
13134   ;;
13135
13136 freebsd*)
13137   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13138   version_type=freebsd-$objformat
13139   case $version_type in
13140     freebsd-elf*)
13141       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13142       need_version=no
13143       need_lib_prefix=no
13144       ;;
13145     freebsd-*)
13146       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13147       need_version=yes
13148       ;;
13149   esac
13150   shlibpath_var=LD_LIBRARY_PATH
13151   case $host_os in
13152   freebsd2*)
13153     shlibpath_overrides_runpath=yes
13154     ;;
13155   freebsd3.01* | freebsdelf3.01*)
13156     shlibpath_overrides_runpath=yes
13157     hardcode_into_libs=yes
13158     ;;
13159   *) # from 3.2 on
13160     shlibpath_overrides_runpath=no
13161     hardcode_into_libs=yes
13162     ;;
13163   esac
13164   ;;
13165
13166 gnu*)
13167   version_type=linux
13168   need_lib_prefix=no
13169   need_version=no
13170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13171   soname_spec='${libname}${release}${shared_ext}$major'
13172   shlibpath_var=LD_LIBRARY_PATH
13173   hardcode_into_libs=yes
13174   ;;
13175
13176 hpux9* | hpux10* | hpux11*)
13177   # Give a soname corresponding to the major version so that dld.sl refuses to
13178   # link against other versions.
13179   version_type=sunos
13180   need_lib_prefix=no
13181   need_version=no
13182   case "$host_cpu" in
13183   ia64*)
13184     shrext_cmds='.so'
13185     hardcode_into_libs=yes
13186     dynamic_linker="$host_os dld.so"
13187     shlibpath_var=LD_LIBRARY_PATH
13188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190     soname_spec='${libname}${release}${shared_ext}$major'
13191     if test "X$HPUX_IA64_MODE" = X32; then
13192       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13193     else
13194       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13195     fi
13196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13197     ;;
13198    hppa*64*)
13199      shrext_cmds='.sl'
13200      hardcode_into_libs=yes
13201      dynamic_linker="$host_os dld.sl"
13202      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13203      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205      soname_spec='${libname}${release}${shared_ext}$major'
13206      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13207      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13208      ;;
13209    *)
13210     shrext_cmds='.sl'
13211     dynamic_linker="$host_os dld.sl"
13212     shlibpath_var=SHLIB_PATH
13213     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13215     soname_spec='${libname}${release}${shared_ext}$major'
13216     ;;
13217   esac
13218   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13219   postinstall_cmds='chmod 555 $lib'
13220   ;;
13221
13222 irix5* | irix6* | nonstopux*)
13223   case $host_os in
13224     nonstopux*) version_type=nonstopux ;;
13225     *)
13226         if test "$lt_cv_prog_gnu_ld" = yes; then
13227                 version_type=linux
13228         else
13229                 version_type=irix
13230         fi ;;
13231   esac
13232   need_lib_prefix=no
13233   need_version=no
13234   soname_spec='${libname}${release}${shared_ext}$major'
13235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13236   case $host_os in
13237   irix5* | nonstopux*)
13238     libsuff= shlibsuff=
13239     ;;
13240   *)
13241     case $LD in # libtool.m4 will add one of these switches to LD
13242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13243       libsuff= shlibsuff= libmagic=32-bit;;
13244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13245       libsuff=32 shlibsuff=N32 libmagic=N32;;
13246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13248     *) libsuff= shlibsuff= libmagic=never-match;;
13249     esac
13250     ;;
13251   esac
13252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13253   shlibpath_overrides_runpath=no
13254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13256   hardcode_into_libs=yes
13257   ;;
13258
13259 # No shared lib support for Linux oldld, aout, or coff.
13260 linux*oldld* | linux*aout* | linux*coff*)
13261   dynamic_linker=no
13262   ;;
13263
13264 # This must be Linux ELF.
13265 linux*)
13266   version_type=linux
13267   need_lib_prefix=no
13268   need_version=no
13269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270   soname_spec='${libname}${release}${shared_ext}$major'
13271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13272   shlibpath_var=LD_LIBRARY_PATH
13273   shlibpath_overrides_runpath=no
13274   # This implies no fast_install, which is unacceptable.
13275   # Some rework will be needed to allow for fast_install
13276   # before this can be enabled.
13277   hardcode_into_libs=yes
13278
13279   # Append ld.so.conf contents to the search path
13280   if test -f /etc/ld.so.conf; then
13281     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13282     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13283   fi
13284
13285   # We used to test for /lib/ld.so.1 and disable shared libraries on
13286   # powerpc, because MkLinux only supported shared libraries with the
13287   # GNU dynamic linker.  Since this was broken with cross compilers,
13288   # most powerpc-linux boxes support dynamic linking these days and
13289   # people can always --disable-shared, the test was removed, and we
13290   # assume the GNU/Linux dynamic linker is in use.
13291   dynamic_linker='GNU/Linux ld.so'
13292   ;;
13293
13294 knetbsd*-gnu)
13295   version_type=linux
13296   need_lib_prefix=no
13297   need_version=no
13298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13299   soname_spec='${libname}${release}${shared_ext}$major'
13300   shlibpath_var=LD_LIBRARY_PATH
13301   shlibpath_overrides_runpath=no
13302   hardcode_into_libs=yes
13303   dynamic_linker='GNU ld.so'
13304   ;;
13305
13306 netbsd*)
13307   version_type=sunos
13308   need_lib_prefix=no
13309   need_version=no
13310   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13312     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13313     dynamic_linker='NetBSD (a.out) ld.so'
13314   else
13315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13316     soname_spec='${libname}${release}${shared_ext}$major'
13317     dynamic_linker='NetBSD ld.elf_so'
13318   fi
13319   shlibpath_var=LD_LIBRARY_PATH
13320   shlibpath_overrides_runpath=yes
13321   hardcode_into_libs=yes
13322   ;;
13323
13324 newsos6)
13325   version_type=linux
13326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327   shlibpath_var=LD_LIBRARY_PATH
13328   shlibpath_overrides_runpath=yes
13329   ;;
13330
13331 nto-qnx*)
13332   version_type=linux
13333   need_lib_prefix=no
13334   need_version=no
13335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336   soname_spec='${libname}${release}${shared_ext}$major'
13337   shlibpath_var=LD_LIBRARY_PATH
13338   shlibpath_overrides_runpath=yes
13339   ;;
13340
13341 openbsd*)
13342   version_type=sunos
13343   need_lib_prefix=no
13344   need_version=no
13345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13346   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13347   shlibpath_var=LD_LIBRARY_PATH
13348   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13349     case $host_os in
13350       openbsd2.[89] | openbsd2.[89].*)
13351         shlibpath_overrides_runpath=no
13352         ;;
13353       *)
13354         shlibpath_overrides_runpath=yes
13355         ;;
13356       esac
13357   else
13358     shlibpath_overrides_runpath=yes
13359   fi
13360   ;;
13361
13362 os2*)
13363   libname_spec='$name'
13364   shrext_cmds=".dll"
13365   need_lib_prefix=no
13366   library_names_spec='$libname${shared_ext} $libname.a'
13367   dynamic_linker='OS/2 ld.exe'
13368   shlibpath_var=LIBPATH
13369   ;;
13370
13371 osf3* | osf4* | osf5*)
13372   version_type=osf
13373   need_lib_prefix=no
13374   need_version=no
13375   soname_spec='${libname}${release}${shared_ext}$major'
13376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13379   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13380   ;;
13381
13382 sco3.2v5*)
13383   version_type=osf
13384   soname_spec='${libname}${release}${shared_ext}$major'
13385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386   shlibpath_var=LD_LIBRARY_PATH
13387   ;;
13388
13389 solaris*)
13390   version_type=linux
13391   need_lib_prefix=no
13392   need_version=no
13393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394   soname_spec='${libname}${release}${shared_ext}$major'
13395   shlibpath_var=LD_LIBRARY_PATH
13396   shlibpath_overrides_runpath=yes
13397   hardcode_into_libs=yes
13398   # ldd complains unless libraries are executable
13399   postinstall_cmds='chmod +x $lib'
13400   ;;
13401
13402 sunos4*)
13403   version_type=sunos
13404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13405   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13406   shlibpath_var=LD_LIBRARY_PATH
13407   shlibpath_overrides_runpath=yes
13408   if test "$with_gnu_ld" = yes; then
13409     need_lib_prefix=no
13410   fi
13411   need_version=yes
13412   ;;
13413
13414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13415   version_type=linux
13416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417   soname_spec='${libname}${release}${shared_ext}$major'
13418   shlibpath_var=LD_LIBRARY_PATH
13419   case $host_vendor in
13420     sni)
13421       shlibpath_overrides_runpath=no
13422       need_lib_prefix=no
13423       export_dynamic_flag_spec='${wl}-Blargedynsym'
13424       runpath_var=LD_RUN_PATH
13425       ;;
13426     siemens)
13427       need_lib_prefix=no
13428       ;;
13429     motorola)
13430       need_lib_prefix=no
13431       need_version=no
13432       shlibpath_overrides_runpath=no
13433       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13434       ;;
13435   esac
13436   ;;
13437
13438 sysv4*MP*)
13439   if test -d /usr/nec ;then
13440     version_type=linux
13441     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13442     soname_spec='$libname${shared_ext}.$major'
13443     shlibpath_var=LD_LIBRARY_PATH
13444   fi
13445   ;;
13446
13447 uts4*)
13448   version_type=linux
13449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450   soname_spec='${libname}${release}${shared_ext}$major'
13451   shlibpath_var=LD_LIBRARY_PATH
13452   ;;
13453
13454 *)
13455   dynamic_linker=no
13456   ;;
13457 esac
13458 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13459 echo "${ECHO_T}$dynamic_linker" >&6
13460 test "$dynamic_linker" = no && can_build_shared=no
13461
13462 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13463 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13464 hardcode_action=
13465 if test -n "$hardcode_libdir_flag_spec" || \
13466    test -n "$runpath_var" || \
13467    test "X$hardcode_automatic" = "Xyes" ; then
13468
13469   # We can hardcode non-existant directories.
13470   if test "$hardcode_direct" != no &&
13471      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13472      # have to relink, otherwise we might link with an installed library
13473      # when we should be linking with a yet-to-be-installed one
13474      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13475      test "$hardcode_minus_L" != no; then
13476     # Linking always hardcodes the temporary library directory.
13477     hardcode_action=relink
13478   else
13479     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13480     hardcode_action=immediate
13481   fi
13482 else
13483   # We cannot hardcode anything, or else we can only hardcode existing
13484   # directories.
13485   hardcode_action=unsupported
13486 fi
13487 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13488 echo "${ECHO_T}$hardcode_action" >&6
13489
13490 if test "$hardcode_action" = relink; then
13491   # Fast installation is not supported
13492   enable_fast_install=no
13493 elif test "$shlibpath_overrides_runpath" = yes ||
13494      test "$enable_shared" = no; then
13495   # Fast installation is not necessary
13496   enable_fast_install=needless
13497 fi
13498
13499 striplib=
13500 old_striplib=
13501 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13502 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13503 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13504   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13505   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13506   echo "$as_me:$LINENO: result: yes" >&5
13507 echo "${ECHO_T}yes" >&6
13508 else
13509 # FIXME - insert some real tests, host_os isn't really good enough
13510   case $host_os in
13511    darwin*)
13512        if test -n "$STRIP" ; then
13513          striplib="$STRIP -x"
13514          echo "$as_me:$LINENO: result: yes" >&5
13515 echo "${ECHO_T}yes" >&6
13516        else
13517   echo "$as_me:$LINENO: result: no" >&5
13518 echo "${ECHO_T}no" >&6
13519 fi
13520        ;;
13521    *)
13522   echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13524     ;;
13525   esac
13526 fi
13527
13528 if test "x$enable_dlopen" != xyes; then
13529   enable_dlopen=unknown
13530   enable_dlopen_self=unknown
13531   enable_dlopen_self_static=unknown
13532 else
13533   lt_cv_dlopen=no
13534   lt_cv_dlopen_libs=
13535
13536   case $host_os in
13537   beos*)
13538     lt_cv_dlopen="load_add_on"
13539     lt_cv_dlopen_libs=
13540     lt_cv_dlopen_self=yes
13541     ;;
13542
13543   mingw* | pw32*)
13544     lt_cv_dlopen="LoadLibrary"
13545     lt_cv_dlopen_libs=
13546    ;;
13547
13548   cygwin*)
13549     lt_cv_dlopen="dlopen"
13550     lt_cv_dlopen_libs=
13551    ;;
13552
13553   darwin*)
13554   # if libdl is installed we need to link against it
13555     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13558   echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560   ac_check_lib_save_LIBS=$LIBS
13561 LIBS="-ldl  $LIBS"
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568
13569 /* Override any gcc2 internal prototype to avoid an error.  */
13570 #ifdef __cplusplus
13571 extern "C"
13572 #endif
13573 /* We use char because int might match the return type of a gcc2
13574    builtin and then its argument prototype would still apply.  */
13575 char dlopen ();
13576 int
13577 main ()
13578 {
13579 dlopen ();
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13586   (eval $ac_link) 2>conftest.er1
13587   ac_status=$?
13588   grep -v '^ *+' conftest.er1 >conftest.err
13589   rm -f conftest.er1
13590   cat conftest.err >&5
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); } &&
13593          { ac_try='test -z "$ac_c_werror_flag"
13594                          || test ! -s conftest.err'
13595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596   (eval $ac_try) 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; } &&
13600          { ac_try='test -s conftest$ac_exeext'
13601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602   (eval $ac_try) 2>&5
13603   ac_status=$?
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); }; }; then
13606   ac_cv_lib_dl_dlopen=yes
13607 else
13608   echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13610
13611 ac_cv_lib_dl_dlopen=no
13612 fi
13613 rm -f conftest.err conftest.$ac_objext \
13614       conftest$ac_exeext conftest.$ac_ext
13615 LIBS=$ac_check_lib_save_LIBS
13616 fi
13617 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13619 if test $ac_cv_lib_dl_dlopen = yes; then
13620   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13621 else
13622
13623     lt_cv_dlopen="dyld"
13624     lt_cv_dlopen_libs=
13625     lt_cv_dlopen_self=yes
13626
13627 fi
13628
13629    ;;
13630
13631   *)
13632     echo "$as_me:$LINENO: checking for shl_load" >&5
13633 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13634 if test "${ac_cv_func_shl_load+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13645 #define shl_load innocuous_shl_load
13646
13647 /* System header to define __stub macros and hopefully few prototypes,
13648     which can conflict with char shl_load (); below.
13649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650     <limits.h> exists even on freestanding compilers.  */
13651
13652 #ifdef __STDC__
13653 # include <limits.h>
13654 #else
13655 # include <assert.h>
13656 #endif
13657
13658 #undef shl_load
13659
13660 /* Override any gcc2 internal prototype to avoid an error.  */
13661 #ifdef __cplusplus
13662 extern "C"
13663 {
13664 #endif
13665 /* We use char because int might match the return type of a gcc2
13666    builtin and then its argument prototype would still apply.  */
13667 char shl_load ();
13668 /* The GNU C library defines this for functions which it implements
13669     to always fail with ENOSYS.  Some functions are actually named
13670     something starting with __ and the normal name is an alias.  */
13671 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13672 choke me
13673 #else
13674 char (*f) () = shl_load;
13675 #endif
13676 #ifdef __cplusplus
13677 }
13678 #endif
13679
13680 int
13681 main ()
13682 {
13683 return f != shl_load;
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690   (eval $ac_link) 2>conftest.er1
13691   ac_status=$?
13692   grep -v '^ *+' conftest.er1 >conftest.err
13693   rm -f conftest.er1
13694   cat conftest.err >&5
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -z "$ac_c_werror_flag"
13698                          || test ! -s conftest.err'
13699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700   (eval $ac_try) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; } &&
13704          { ac_try='test -s conftest$ac_exeext'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710   ac_cv_func_shl_load=yes
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ac_cv_func_shl_load=no
13716 fi
13717 rm -f conftest.err conftest.$ac_objext \
13718       conftest$ac_exeext conftest.$ac_ext
13719 fi
13720 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13721 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13722 if test $ac_cv_func_shl_load = yes; then
13723   lt_cv_dlopen="shl_load"
13724 else
13725   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13726 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13727 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13728   echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730   ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-ldld  $LIBS"
13732 cat >conftest.$ac_ext <<_ACEOF
13733 /* confdefs.h.  */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h.  */
13738
13739 /* Override any gcc2 internal prototype to avoid an error.  */
13740 #ifdef __cplusplus
13741 extern "C"
13742 #endif
13743 /* We use char because int might match the return type of a gcc2
13744    builtin and then its argument prototype would still apply.  */
13745 char shl_load ();
13746 int
13747 main ()
13748 {
13749 shl_load ();
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756   (eval $ac_link) 2>conftest.er1
13757   ac_status=$?
13758   grep -v '^ *+' conftest.er1 >conftest.err
13759   rm -f conftest.er1
13760   cat conftest.err >&5
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); } &&
13763          { ac_try='test -z "$ac_c_werror_flag"
13764                          || test ! -s conftest.err'
13765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766   (eval $ac_try) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; } &&
13770          { ac_try='test -s conftest$ac_exeext'
13771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772   (eval $ac_try) 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; }; then
13776   ac_cv_lib_dld_shl_load=yes
13777 else
13778   echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 ac_cv_lib_dld_shl_load=no
13782 fi
13783 rm -f conftest.err conftest.$ac_objext \
13784       conftest$ac_exeext conftest.$ac_ext
13785 LIBS=$ac_check_lib_save_LIBS
13786 fi
13787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13788 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13789 if test $ac_cv_lib_dld_shl_load = yes; then
13790   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13791 else
13792   echo "$as_me:$LINENO: checking for dlopen" >&5
13793 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13794 if test "${ac_cv_func_dlopen+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13805 #define dlopen innocuous_dlopen
13806
13807 /* System header to define __stub macros and hopefully few prototypes,
13808     which can conflict with char dlopen (); below.
13809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13810     <limits.h> exists even on freestanding compilers.  */
13811
13812 #ifdef __STDC__
13813 # include <limits.h>
13814 #else
13815 # include <assert.h>
13816 #endif
13817
13818 #undef dlopen
13819
13820 /* Override any gcc2 internal prototype to avoid an error.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 {
13824 #endif
13825 /* We use char because int might match the return type of a gcc2
13826    builtin and then its argument prototype would still apply.  */
13827 char dlopen ();
13828 /* The GNU C library defines this for functions which it implements
13829     to always fail with ENOSYS.  Some functions are actually named
13830     something starting with __ and the normal name is an alias.  */
13831 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13832 choke me
13833 #else
13834 char (*f) () = dlopen;
13835 #endif
13836 #ifdef __cplusplus
13837 }
13838 #endif
13839
13840 int
13841 main ()
13842 {
13843 return f != dlopen;
13844   ;
13845   return 0;
13846 }
13847 _ACEOF
13848 rm -f conftest.$ac_objext conftest$ac_exeext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850   (eval $ac_link) 2>conftest.er1
13851   ac_status=$?
13852   grep -v '^ *+' conftest.er1 >conftest.err
13853   rm -f conftest.er1
13854   cat conftest.err >&5
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); } &&
13857          { ac_try='test -z "$ac_c_werror_flag"
13858                          || test ! -s conftest.err'
13859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860   (eval $ac_try) 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; } &&
13864          { ac_try='test -s conftest$ac_exeext'
13865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866   (eval $ac_try) 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); }; }; then
13870   ac_cv_func_dlopen=yes
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 ac_cv_func_dlopen=no
13876 fi
13877 rm -f conftest.err conftest.$ac_objext \
13878       conftest$ac_exeext conftest.$ac_ext
13879 fi
13880 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13881 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13882 if test $ac_cv_func_dlopen = yes; then
13883   lt_cv_dlopen="dlopen"
13884 else
13885   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-ldl  $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898
13899 /* Override any gcc2 internal prototype to avoid an error.  */
13900 #ifdef __cplusplus
13901 extern "C"
13902 #endif
13903 /* We use char because int might match the return type of a gcc2
13904    builtin and then its argument prototype would still apply.  */
13905 char dlopen ();
13906 int
13907 main ()
13908 {
13909 dlopen ();
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916   (eval $ac_link) 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -z "$ac_c_werror_flag"
13924                          || test ! -s conftest.err'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; } &&
13930          { ac_try='test -s conftest$ac_exeext'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }; then
13936   ac_cv_lib_dl_dlopen=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ac_cv_lib_dl_dlopen=no
13942 fi
13943 rm -f conftest.err conftest.$ac_objext \
13944       conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13946 fi
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949 if test $ac_cv_lib_dl_dlopen = yes; then
13950   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13951 else
13952   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13953 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-lsvld  $LIBS"
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h.  */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h.  */
13965
13966 /* Override any gcc2 internal prototype to avoid an error.  */
13967 #ifdef __cplusplus
13968 extern "C"
13969 #endif
13970 /* We use char because int might match the return type of a gcc2
13971    builtin and then its argument prototype would still apply.  */
13972 char dlopen ();
13973 int
13974 main ()
13975 {
13976 dlopen ();
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983   (eval $ac_link) 2>conftest.er1
13984   ac_status=$?
13985   grep -v '^ *+' conftest.er1 >conftest.err
13986   rm -f conftest.er1
13987   cat conftest.err >&5
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -z "$ac_c_werror_flag"
13991                          || test ! -s conftest.err'
13992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993   (eval $ac_try) 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); }; } &&
13997          { ac_try='test -s conftest$ac_exeext'
13998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999   (eval $ac_try) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; }; then
14003   ac_cv_lib_svld_dlopen=yes
14004 else
14005   echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 ac_cv_lib_svld_dlopen=no
14009 fi
14010 rm -f conftest.err conftest.$ac_objext \
14011       conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14013 fi
14014 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14015 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14016 if test $ac_cv_lib_svld_dlopen = yes; then
14017   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14018 else
14019   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14020 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   ac_check_lib_save_LIBS=$LIBS
14025 LIBS="-ldld  $LIBS"
14026 cat >conftest.$ac_ext <<_ACEOF
14027 /* confdefs.h.  */
14028 _ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h.  */
14032
14033 /* Override any gcc2 internal prototype to avoid an error.  */
14034 #ifdef __cplusplus
14035 extern "C"
14036 #endif
14037 /* We use char because int might match the return type of a gcc2
14038    builtin and then its argument prototype would still apply.  */
14039 char dld_link ();
14040 int
14041 main ()
14042 {
14043 dld_link ();
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050   (eval $ac_link) 2>conftest.er1
14051   ac_status=$?
14052   grep -v '^ *+' conftest.er1 >conftest.err
14053   rm -f conftest.er1
14054   cat conftest.err >&5
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); } &&
14057          { ac_try='test -z "$ac_c_werror_flag"
14058                          || test ! -s conftest.err'
14059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060   (eval $ac_try) 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; } &&
14064          { ac_try='test -s conftest$ac_exeext'
14065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066   (eval $ac_try) 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); }; }; then
14070   ac_cv_lib_dld_dld_link=yes
14071 else
14072   echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075 ac_cv_lib_dld_dld_link=no
14076 fi
14077 rm -f conftest.err conftest.$ac_objext \
14078       conftest$ac_exeext conftest.$ac_ext
14079 LIBS=$ac_check_lib_save_LIBS
14080 fi
14081 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14082 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14083 if test $ac_cv_lib_dld_dld_link = yes; then
14084   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14085 fi
14086
14087
14088 fi
14089
14090
14091 fi
14092
14093
14094 fi
14095
14096
14097 fi
14098
14099
14100 fi
14101
14102     ;;
14103   esac
14104
14105   if test "x$lt_cv_dlopen" != xno; then
14106     enable_dlopen=yes
14107   else
14108     enable_dlopen=no
14109   fi
14110
14111   case $lt_cv_dlopen in
14112   dlopen)
14113     save_CPPFLAGS="$CPPFLAGS"
14114     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14115
14116     save_LDFLAGS="$LDFLAGS"
14117     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14118
14119     save_LIBS="$LIBS"
14120     LIBS="$lt_cv_dlopen_libs $LIBS"
14121
14122     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14123 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14124 if test "${lt_cv_dlopen_self+set}" = set; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127           if test "$cross_compiling" = yes; then :
14128   lt_cv_dlopen_self=cross
14129 else
14130   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14131   lt_status=$lt_dlunknown
14132   cat > conftest.$ac_ext <<EOF
14133 #line 14133 "configure"
14134 #include "confdefs.h"
14135
14136 #if HAVE_DLFCN_H
14137 #include <dlfcn.h>
14138 #endif
14139
14140 #include <stdio.h>
14141
14142 #ifdef RTLD_GLOBAL
14143 #  define LT_DLGLOBAL           RTLD_GLOBAL
14144 #else
14145 #  ifdef DL_GLOBAL
14146 #    define LT_DLGLOBAL         DL_GLOBAL
14147 #  else
14148 #    define LT_DLGLOBAL         0
14149 #  endif
14150 #endif
14151
14152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14153    find out it does not work in some platform. */
14154 #ifndef LT_DLLAZY_OR_NOW
14155 #  ifdef RTLD_LAZY
14156 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14157 #  else
14158 #    ifdef DL_LAZY
14159 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14160 #    else
14161 #      ifdef RTLD_NOW
14162 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14163 #      else
14164 #        ifdef DL_NOW
14165 #          define LT_DLLAZY_OR_NOW      DL_NOW
14166 #        else
14167 #          define LT_DLLAZY_OR_NOW      0
14168 #        endif
14169 #      endif
14170 #    endif
14171 #  endif
14172 #endif
14173
14174 #ifdef __cplusplus
14175 extern "C" void exit (int);
14176 #endif
14177
14178 void fnord() { int i=42;}
14179 int main ()
14180 {
14181   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14182   int status = $lt_dlunknown;
14183
14184   if (self)
14185     {
14186       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14187       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14188       /* dlclose (self); */
14189     }
14190
14191     exit (status);
14192 }
14193 EOF
14194   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14195   (eval $ac_link) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14199     (./conftest; exit; ) 2>/dev/null
14200     lt_status=$?
14201     case x$lt_status in
14202       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14203       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14204       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14205     esac
14206   else :
14207     # compilation failed
14208     lt_cv_dlopen_self=no
14209   fi
14210 fi
14211 rm -fr conftest*
14212
14213
14214 fi
14215 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14216 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14217
14218     if test "x$lt_cv_dlopen_self" = xyes; then
14219       LDFLAGS="$LDFLAGS $link_static_flag"
14220       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14221 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14222 if test "${lt_cv_dlopen_self_static+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225           if test "$cross_compiling" = yes; then :
14226   lt_cv_dlopen_self_static=cross
14227 else
14228   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14229   lt_status=$lt_dlunknown
14230   cat > conftest.$ac_ext <<EOF
14231 #line 14231 "configure"
14232 #include "confdefs.h"
14233
14234 #if HAVE_DLFCN_H
14235 #include <dlfcn.h>
14236 #endif
14237
14238 #include <stdio.h>
14239
14240 #ifdef RTLD_GLOBAL
14241 #  define LT_DLGLOBAL           RTLD_GLOBAL
14242 #else
14243 #  ifdef DL_GLOBAL
14244 #    define LT_DLGLOBAL         DL_GLOBAL
14245 #  else
14246 #    define LT_DLGLOBAL         0
14247 #  endif
14248 #endif
14249
14250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14251    find out it does not work in some platform. */
14252 #ifndef LT_DLLAZY_OR_NOW
14253 #  ifdef RTLD_LAZY
14254 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14255 #  else
14256 #    ifdef DL_LAZY
14257 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14258 #    else
14259 #      ifdef RTLD_NOW
14260 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14261 #      else
14262 #        ifdef DL_NOW
14263 #          define LT_DLLAZY_OR_NOW      DL_NOW
14264 #        else
14265 #          define LT_DLLAZY_OR_NOW      0
14266 #        endif
14267 #      endif
14268 #    endif
14269 #  endif
14270 #endif
14271
14272 #ifdef __cplusplus
14273 extern "C" void exit (int);
14274 #endif
14275
14276 void fnord() { int i=42;}
14277 int main ()
14278 {
14279   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14280   int status = $lt_dlunknown;
14281
14282   if (self)
14283     {
14284       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14285       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14286       /* dlclose (self); */
14287     }
14288
14289     exit (status);
14290 }
14291 EOF
14292   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293   (eval $ac_link) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14297     (./conftest; exit; ) 2>/dev/null
14298     lt_status=$?
14299     case x$lt_status in
14300       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14301       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14302       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14303     esac
14304   else :
14305     # compilation failed
14306     lt_cv_dlopen_self_static=no
14307   fi
14308 fi
14309 rm -fr conftest*
14310
14311
14312 fi
14313 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14314 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14315     fi
14316
14317     CPPFLAGS="$save_CPPFLAGS"
14318     LDFLAGS="$save_LDFLAGS"
14319     LIBS="$save_LIBS"
14320     ;;
14321   esac
14322
14323   case $lt_cv_dlopen_self in
14324   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14325   *) enable_dlopen_self=unknown ;;
14326   esac
14327
14328   case $lt_cv_dlopen_self_static in
14329   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14330   *) enable_dlopen_self_static=unknown ;;
14331   esac
14332 fi
14333
14334
14335 # Report which librarie types wil actually be built
14336 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14337 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14338 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14339 echo "${ECHO_T}$can_build_shared" >&6
14340
14341 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14342 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14343 test "$can_build_shared" = "no" && enable_shared=no
14344
14345 # On AIX, shared libraries and static libraries use the same namespace, and
14346 # are all built from PIC.
14347 case "$host_os" in
14348 aix3*)
14349   test "$enable_shared" = yes && enable_static=no
14350   if test -n "$RANLIB"; then
14351     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14352     postinstall_cmds='$RANLIB $lib'
14353   fi
14354   ;;
14355
14356 aix4* | aix5*)
14357   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14358     test "$enable_shared" = yes && enable_static=no
14359   fi
14360     ;;
14361 esac
14362 echo "$as_me:$LINENO: result: $enable_shared" >&5
14363 echo "${ECHO_T}$enable_shared" >&6
14364
14365 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14366 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14367 # Make sure either enable_shared or enable_static is yes.
14368 test "$enable_shared" = yes || enable_static=yes
14369 echo "$as_me:$LINENO: result: $enable_static" >&5
14370 echo "${ECHO_T}$enable_static" >&6
14371
14372 # The else clause should only fire when bootstrapping the
14373 # libtool distribution, otherwise you forgot to ship ltmain.sh
14374 # with your package, and you will get complaints that there are
14375 # no rules to generate ltmain.sh.
14376 if test -f "$ltmain"; then
14377   # See if we are running on zsh, and set the options which allow our commands through
14378   # without removal of \ escapes.
14379   if test -n "${ZSH_VERSION+set}" ; then
14380     setopt NO_GLOB_SUBST
14381   fi
14382   # Now quote all the things that may contain metacharacters while being
14383   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14384   # variables and quote the copies for generation of the libtool script.
14385   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14386     SED SHELL STRIP \
14387     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14388     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14389     deplibs_check_method reload_flag reload_cmds need_locks \
14390     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14391     lt_cv_sys_global_symbol_to_c_name_address \
14392     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14393     old_postinstall_cmds old_postuninstall_cmds \
14394     compiler \
14395     CC \
14396     LD \
14397     lt_prog_compiler_wl \
14398     lt_prog_compiler_pic \
14399     lt_prog_compiler_static \
14400     lt_prog_compiler_no_builtin_flag \
14401     export_dynamic_flag_spec \
14402     thread_safe_flag_spec \
14403     whole_archive_flag_spec \
14404     enable_shared_with_static_runtimes \
14405     old_archive_cmds \
14406     old_archive_from_new_cmds \
14407     predep_objects \
14408     postdep_objects \
14409     predeps \
14410     postdeps \
14411     compiler_lib_search_path \
14412     archive_cmds \
14413     archive_expsym_cmds \
14414     postinstall_cmds \
14415     postuninstall_cmds \
14416     old_archive_from_expsyms_cmds \
14417     allow_undefined_flag \
14418     no_undefined_flag \
14419     export_symbols_cmds \
14420     hardcode_libdir_flag_spec \
14421     hardcode_libdir_flag_spec_ld \
14422     hardcode_libdir_separator \
14423     hardcode_automatic \
14424     module_cmds \
14425     module_expsym_cmds \
14426     lt_cv_prog_compiler_c_o \
14427     exclude_expsyms \
14428     include_expsyms; do
14429
14430     case $var in
14431     old_archive_cmds | \
14432     old_archive_from_new_cmds | \
14433     archive_cmds | \
14434     archive_expsym_cmds | \
14435     module_cmds | \
14436     module_expsym_cmds | \
14437     old_archive_from_expsyms_cmds | \
14438     export_symbols_cmds | \
14439     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14440     postinstall_cmds | postuninstall_cmds | \
14441     old_postinstall_cmds | old_postuninstall_cmds | \
14442     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14443       # Double-quote double-evaled strings.
14444       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14445       ;;
14446     *)
14447       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14448       ;;
14449     esac
14450   done
14451
14452   case $lt_echo in
14453   *'\$0 --fallback-echo"')
14454     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14455     ;;
14456   esac
14457
14458 cfgfile="${ofile}T"
14459   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14460   $rm -f "$cfgfile"
14461   { echo "$as_me:$LINENO: creating $ofile" >&5
14462 echo "$as_me: creating $ofile" >&6;}
14463
14464   cat <<__EOF__ >> "$cfgfile"
14465 #! $SHELL
14466
14467 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14468 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14469 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14470 #
14471 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14472 # Free Software Foundation, Inc.
14473 #
14474 # This file is part of GNU Libtool:
14475 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14476 #
14477 # This program is free software; you can redistribute it and/or modify
14478 # it under the terms of the GNU General Public License as published by
14479 # the Free Software Foundation; either version 2 of the License, or
14480 # (at your option) any later version.
14481 #
14482 # This program is distributed in the hope that it will be useful, but
14483 # WITHOUT ANY WARRANTY; without even the implied warranty of
14484 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14485 # General Public License for more details.
14486 #
14487 # You should have received a copy of the GNU General Public License
14488 # along with this program; if not, write to the Free Software
14489 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14490 #
14491 # As a special exception to the GNU General Public License, if you
14492 # distribute this file as part of a program that contains a
14493 # configuration script generated by Autoconf, you may include it under
14494 # the same distribution terms that you use for the rest of that program.
14495
14496 # A sed program that does not truncate output.
14497 SED=$lt_SED
14498
14499 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14500 Xsed="$SED -e s/^X//"
14501
14502 # The HP-UX ksh and POSIX shell print the target directory to stdout
14503 # if CDPATH is set.
14504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14505
14506 # The names of the tagged configurations supported by this script.
14507 available_tags=
14508
14509 # ### BEGIN LIBTOOL CONFIG
14510
14511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14512
14513 # Shell to use when invoking shell scripts.
14514 SHELL=$lt_SHELL
14515
14516 # Whether or not to build shared libraries.
14517 build_libtool_libs=$enable_shared
14518
14519 # Whether or not to build static libraries.
14520 build_old_libs=$enable_static
14521
14522 # Whether or not to add -lc for building shared libraries.
14523 build_libtool_need_lc=$archive_cmds_need_lc
14524
14525 # Whether or not to disallow shared libs when runtime libs are static
14526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14527
14528 # Whether or not to optimize for fast installation.
14529 fast_install=$enable_fast_install
14530
14531 # The host system.
14532 host_alias=$host_alias
14533 host=$host
14534
14535 # An echo program that does not interpret backslashes.
14536 echo=$lt_echo
14537
14538 # The archiver.
14539 AR=$lt_AR
14540 AR_FLAGS=$lt_AR_FLAGS
14541
14542 # A C compiler.
14543 LTCC=$lt_LTCC
14544
14545 # A language-specific compiler.
14546 CC=$lt_compiler
14547
14548 # Is the compiler the GNU C compiler?
14549 with_gcc=$GCC
14550
14551 # An ERE matcher.
14552 EGREP=$lt_EGREP
14553
14554 # The linker used to build libraries.
14555 LD=$lt_LD
14556
14557 # Whether we need hard or soft links.
14558 LN_S=$lt_LN_S
14559
14560 # A BSD-compatible nm program.
14561 NM=$lt_NM
14562
14563 # A symbol stripping program
14564 STRIP=$lt_STRIP
14565
14566 # Used to examine libraries when file_magic_cmd begins "file"
14567 MAGIC_CMD=$MAGIC_CMD
14568
14569 # Used on cygwin: DLL creation program.
14570 DLLTOOL="$DLLTOOL"
14571
14572 # Used on cygwin: object dumper.
14573 OBJDUMP="$OBJDUMP"
14574
14575 # Used on cygwin: assembler.
14576 AS="$AS"
14577
14578 # The name of the directory that contains temporary libtool files.
14579 objdir=$objdir
14580
14581 # How to create reloadable object files.
14582 reload_flag=$lt_reload_flag
14583 reload_cmds=$lt_reload_cmds
14584
14585 # How to pass a linker flag through the compiler.
14586 wl=$lt_lt_prog_compiler_wl
14587
14588 # Object file suffix (normally "o").
14589 objext="$ac_objext"
14590
14591 # Old archive suffix (normally "a").
14592 libext="$libext"
14593
14594 # Shared library suffix (normally ".so").
14595 shrext_cmds='$shrext_cmds'
14596
14597 # Executable file suffix (normally "").
14598 exeext="$exeext"
14599
14600 # Additional compiler flags for building library objects.
14601 pic_flag=$lt_lt_prog_compiler_pic
14602 pic_mode=$pic_mode
14603
14604 # What is the maximum length of a command?
14605 max_cmd_len=$lt_cv_sys_max_cmd_len
14606
14607 # Does compiler simultaneously support -c and -o options?
14608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14609
14610 # Must we lock files when doing compilation ?
14611 need_locks=$lt_need_locks
14612
14613 # Do we need the lib prefix for modules?
14614 need_lib_prefix=$need_lib_prefix
14615
14616 # Do we need a version for libraries?
14617 need_version=$need_version
14618
14619 # Whether dlopen is supported.
14620 dlopen_support=$enable_dlopen
14621
14622 # Whether dlopen of programs is supported.
14623 dlopen_self=$enable_dlopen_self
14624
14625 # Whether dlopen of statically linked programs is supported.
14626 dlopen_self_static=$enable_dlopen_self_static
14627
14628 # Compiler flag to prevent dynamic linking.
14629 link_static_flag=$lt_lt_prog_compiler_static
14630
14631 # Compiler flag to turn off builtin functions.
14632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14633
14634 # Compiler flag to allow reflexive dlopens.
14635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14636
14637 # Compiler flag to generate shared objects directly from archives.
14638 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14639
14640 # Compiler flag to generate thread-safe objects.
14641 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14642
14643 # Library versioning type.
14644 version_type=$version_type
14645
14646 # Format of library name prefix.
14647 libname_spec=$lt_libname_spec
14648
14649 # List of archive names.  First name is the real one, the rest are links.
14650 # The last name is the one that the linker finds with -lNAME.
14651 library_names_spec=$lt_library_names_spec
14652
14653 # The coded name of the library, if different from the real name.
14654 soname_spec=$lt_soname_spec
14655
14656 # Commands used to build and install an old-style archive.
14657 RANLIB=$lt_RANLIB
14658 old_archive_cmds=$lt_old_archive_cmds
14659 old_postinstall_cmds=$lt_old_postinstall_cmds
14660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14661
14662 # Create an old-style archive from a shared archive.
14663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14664
14665 # Create a temporary old-style archive to link instead of a shared archive.
14666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14667
14668 # Commands used to build and install a shared archive.
14669 archive_cmds=$lt_archive_cmds
14670 archive_expsym_cmds=$lt_archive_expsym_cmds
14671 postinstall_cmds=$lt_postinstall_cmds
14672 postuninstall_cmds=$lt_postuninstall_cmds
14673
14674 # Commands used to build a loadable module (assumed same as above if empty)
14675 module_cmds=$lt_module_cmds
14676 module_expsym_cmds=$lt_module_expsym_cmds
14677
14678 # Commands to strip libraries.
14679 old_striplib=$lt_old_striplib
14680 striplib=$lt_striplib
14681
14682 # Dependencies to place before the objects being linked to create a
14683 # shared library.
14684 predep_objects=$lt_predep_objects
14685
14686 # Dependencies to place after the objects being linked to create a
14687 # shared library.
14688 postdep_objects=$lt_postdep_objects
14689
14690 # Dependencies to place before the objects being linked to create a
14691 # shared library.
14692 predeps=$lt_predeps
14693
14694 # Dependencies to place after the objects being linked to create a
14695 # shared library.
14696 postdeps=$lt_postdeps
14697
14698 # The library search path used internally by the compiler when linking
14699 # a shared library.
14700 compiler_lib_search_path=$lt_compiler_lib_search_path
14701
14702 # Method to check whether dependent libraries are shared objects.
14703 deplibs_check_method=$lt_deplibs_check_method
14704
14705 # Command to use when deplibs_check_method == file_magic.
14706 file_magic_cmd=$lt_file_magic_cmd
14707
14708 # Flag that allows shared libraries with undefined symbols to be built.
14709 allow_undefined_flag=$lt_allow_undefined_flag
14710
14711 # Flag that forces no undefined symbols.
14712 no_undefined_flag=$lt_no_undefined_flag
14713
14714 # Commands used to finish a libtool library installation in a directory.
14715 finish_cmds=$lt_finish_cmds
14716
14717 # Same as above, but a single script fragment to be evaled but not shown.
14718 finish_eval=$lt_finish_eval
14719
14720 # Take the output of nm and produce a listing of raw symbols and C names.
14721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14722
14723 # Transform the output of nm in a proper C declaration
14724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14725
14726 # Transform the output of nm in a C name address pair
14727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14728
14729 # This is the shared library runtime path variable.
14730 runpath_var=$runpath_var
14731
14732 # This is the shared library path variable.
14733 shlibpath_var=$shlibpath_var
14734
14735 # Is shlibpath searched before the hard-coded library search path?
14736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14737
14738 # How to hardcode a shared library path into an executable.
14739 hardcode_action=$hardcode_action
14740
14741 # Whether we should hardcode library paths into libraries.
14742 hardcode_into_libs=$hardcode_into_libs
14743
14744 # Flag to hardcode \$libdir into a binary during linking.
14745 # This must work even if \$libdir does not exist.
14746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14747
14748 # If ld is used when linking, flag to hardcode \$libdir into
14749 # a binary during linking. This must work even if \$libdir does
14750 # not exist.
14751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14752
14753 # Whether we need a single -rpath flag with a separated argument.
14754 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14755
14756 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14757 # resulting binary.
14758 hardcode_direct=$hardcode_direct
14759
14760 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14761 # resulting binary.
14762 hardcode_minus_L=$hardcode_minus_L
14763
14764 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14765 # the resulting binary.
14766 hardcode_shlibpath_var=$hardcode_shlibpath_var
14767
14768 # Set to yes if building a shared library automatically hardcodes DIR into the library
14769 # and all subsequent libraries and executables linked against it.
14770 hardcode_automatic=$hardcode_automatic
14771
14772 # Variables whose values should be saved in libtool wrapper scripts and
14773 # restored at relink time.
14774 variables_saved_for_relink="$variables_saved_for_relink"
14775
14776 # Whether libtool must link a program against all its dependency libraries.
14777 link_all_deplibs=$link_all_deplibs
14778
14779 # Compile-time system search path for libraries
14780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14781
14782 # Run-time system search path for libraries
14783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14784
14785 # Fix the shell variable \$srcfile for the compiler.
14786 fix_srcfile_path="$fix_srcfile_path"
14787
14788 # Set to yes if exported symbols are required.
14789 always_export_symbols=$always_export_symbols
14790
14791 # The commands to list exported symbols.
14792 export_symbols_cmds=$lt_export_symbols_cmds
14793
14794 # The commands to extract the exported symbol list from a shared archive.
14795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14796
14797 # Symbols that should not be listed in the preloaded symbols.
14798 exclude_expsyms=$lt_exclude_expsyms
14799
14800 # Symbols that must always be exported.
14801 include_expsyms=$lt_include_expsyms
14802
14803 # ### END LIBTOOL CONFIG
14804
14805 __EOF__
14806
14807
14808   case $host_os in
14809   aix3*)
14810     cat <<\EOF >> "$cfgfile"
14811
14812 # AIX sometimes has problems with the GCC collect2 program.  For some
14813 # reason, if we set the COLLECT_NAMES environment variable, the problems
14814 # vanish in a puff of smoke.
14815 if test "X${COLLECT_NAMES+set}" != Xset; then
14816   COLLECT_NAMES=
14817   export COLLECT_NAMES
14818 fi
14819 EOF
14820     ;;
14821   esac
14822
14823   # We use sed instead of cat because bash on DJGPP gets confused if
14824   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14825   # text mode, it properly converts lines to CR/LF.  This bash problem
14826   # is reportedly fixed, but why not run on old versions too?
14827   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14828
14829   mv -f "$cfgfile" "$ofile" || \
14830     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14831   chmod +x "$ofile"
14832
14833 else
14834   # If there is no Makefile yet, we rely on a make rule to execute
14835   # `config.status --recheck' to rerun these tests and create the
14836   # libtool script then.
14837   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14838   if test -f "$ltmain_in"; then
14839     test -f Makefile && make "$ltmain"
14840   fi
14841 fi
14842
14843
14844 ac_ext=c
14845 ac_cpp='$CPP $CPPFLAGS'
14846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14849
14850 CC="$lt_save_CC"
14851
14852
14853 # Check whether --with-tags or --without-tags was given.
14854 if test "${with_tags+set}" = set; then
14855   withval="$with_tags"
14856   tagnames="$withval"
14857 fi;
14858
14859 if test -f "$ltmain" && test -n "$tagnames"; then
14860   if test ! -f "${ofile}"; then
14861     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14862 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14863   fi
14864
14865   if test -z "$LTCC"; then
14866     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14867     if test -z "$LTCC"; then
14868       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14869 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14870     else
14871       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14872 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14873     fi
14874   fi
14875
14876   # Extract list of available tagged configurations in $ofile.
14877   # Note that this assumes the entire list is on one line.
14878   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14879
14880   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14881   for tagname in $tagnames; do
14882     IFS="$lt_save_ifs"
14883     # Check whether tagname contains only valid characters
14884     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14885     "") ;;
14886     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14887 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14888    { (exit 1); exit 1; }; }
14889         ;;
14890     esac
14891
14892     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14893     then
14894       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14895 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14896    { (exit 1); exit 1; }; }
14897     fi
14898
14899     # Update the list of available tags.
14900     if test -n "$tagname"; then
14901       echo appending configuration tag "$tagname" to $ofile
14902
14903       case $tagname in
14904       CXX)
14905         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14906             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14907             (test "X$CXX" != "Xg++"))) ; then
14908           ac_ext=cc
14909 ac_cpp='$CXXCPP $CPPFLAGS'
14910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14913
14914
14915
14916
14917 archive_cmds_need_lc_CXX=no
14918 allow_undefined_flag_CXX=
14919 always_export_symbols_CXX=no
14920 archive_expsym_cmds_CXX=
14921 export_dynamic_flag_spec_CXX=
14922 hardcode_direct_CXX=no
14923 hardcode_libdir_flag_spec_CXX=
14924 hardcode_libdir_flag_spec_ld_CXX=
14925 hardcode_libdir_separator_CXX=
14926 hardcode_minus_L_CXX=no
14927 hardcode_automatic_CXX=no
14928 module_cmds_CXX=
14929 module_expsym_cmds_CXX=
14930 link_all_deplibs_CXX=unknown
14931 old_archive_cmds_CXX=$old_archive_cmds
14932 no_undefined_flag_CXX=
14933 whole_archive_flag_spec_CXX=
14934 enable_shared_with_static_runtimes_CXX=no
14935
14936 # Dependencies to place before and after the object being linked:
14937 predep_objects_CXX=
14938 postdep_objects_CXX=
14939 predeps_CXX=
14940 postdeps_CXX=
14941 compiler_lib_search_path_CXX=
14942
14943 # Source file extension for C++ test sources.
14944 ac_ext=cc
14945
14946 # Object file extension for compiled C++ test sources.
14947 objext=o
14948 objext_CXX=$objext
14949
14950 # Code to be used in simple compile tests
14951 lt_simple_compile_test_code="int some_variable = 0;\n"
14952
14953 # Code to be used in simple link tests
14954 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14955
14956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14957
14958 # If no C compiler was specified, use CC.
14959 LTCC=${LTCC-"$CC"}
14960
14961 # Allow CC to be a program name with arguments.
14962 compiler=$CC
14963
14964
14965 # Allow CC to be a program name with arguments.
14966 lt_save_CC=$CC
14967 lt_save_LD=$LD
14968 lt_save_GCC=$GCC
14969 GCC=$GXX
14970 lt_save_with_gnu_ld=$with_gnu_ld
14971 lt_save_path_LD=$lt_cv_path_LD
14972 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14973   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14974 else
14975   unset lt_cv_prog_gnu_ld
14976 fi
14977 if test -n "${lt_cv_path_LDCXX+set}"; then
14978   lt_cv_path_LD=$lt_cv_path_LDCXX
14979 else
14980   unset lt_cv_path_LD
14981 fi
14982 test -z "${LDCXX+set}" || LD=$LDCXX
14983 CC=${CXX-"c++"}
14984 compiler=$CC
14985 compiler_CXX=$CC
14986 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14987
14988 # We don't want -fno-exception wen compiling C++ code, so set the
14989 # no_builtin_flag separately
14990 if test "$GXX" = yes; then
14991   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14992 else
14993   lt_prog_compiler_no_builtin_flag_CXX=
14994 fi
14995
14996 if test "$GXX" = yes; then
14997   # Set up default GNU C++ configuration
14998
14999
15000 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15001 if test "${with_gnu_ld+set}" = set; then
15002   withval="$with_gnu_ld"
15003   test "$withval" = no || with_gnu_ld=yes
15004 else
15005   with_gnu_ld=no
15006 fi;
15007 ac_prog=ld
15008 if test "$GCC" = yes; then
15009   # Check if gcc -print-prog-name=ld gives a path.
15010   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15011 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15012   case $host in
15013   *-*-mingw*)
15014     # gcc leaves a trailing carriage return which upsets mingw
15015     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15016   *)
15017     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15018   esac
15019   case $ac_prog in
15020     # Accept absolute paths.
15021     [\\/]* | ?:[\\/]*)
15022       re_direlt='/[^/][^/]*/\.\./'
15023       # Canonicalize the pathname of ld
15024       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15025       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15026         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15027       done
15028       test -z "$LD" && LD="$ac_prog"
15029       ;;
15030   "")
15031     # If it fails, then pretend we aren't using GCC.
15032     ac_prog=ld
15033     ;;
15034   *)
15035     # If it is relative, then search for the first ld in PATH.
15036     with_gnu_ld=unknown
15037     ;;
15038   esac
15039 elif test "$with_gnu_ld" = yes; then
15040   echo "$as_me:$LINENO: checking for GNU ld" >&5
15041 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15042 else
15043   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15044 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15045 fi
15046 if test "${lt_cv_path_LD+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   if test -z "$LD"; then
15050   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15051   for ac_dir in $PATH; do
15052     IFS="$lt_save_ifs"
15053     test -z "$ac_dir" && ac_dir=.
15054     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15055       lt_cv_path_LD="$ac_dir/$ac_prog"
15056       # Check to see if the program is GNU ld.  I'd rather use --version,
15057       # but apparently some GNU ld's only accept -v.
15058       # Break only if it was the GNU/non-GNU ld that we prefer.
15059       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15060       *GNU* | *'with BFD'*)
15061         test "$with_gnu_ld" != no && break
15062         ;;
15063       *)
15064         test "$with_gnu_ld" != yes && break
15065         ;;
15066       esac
15067     fi
15068   done
15069   IFS="$lt_save_ifs"
15070 else
15071   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15072 fi
15073 fi
15074
15075 LD="$lt_cv_path_LD"
15076 if test -n "$LD"; then
15077   echo "$as_me:$LINENO: result: $LD" >&5
15078 echo "${ECHO_T}$LD" >&6
15079 else
15080   echo "$as_me:$LINENO: result: no" >&5
15081 echo "${ECHO_T}no" >&6
15082 fi
15083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15085    { (exit 1); exit 1; }; }
15086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15088 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15089   echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15092 case `$LD -v 2>&1 </dev/null` in
15093 *GNU* | *'with BFD'*)
15094   lt_cv_prog_gnu_ld=yes
15095   ;;
15096 *)
15097   lt_cv_prog_gnu_ld=no
15098   ;;
15099 esac
15100 fi
15101 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15102 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15103 with_gnu_ld=$lt_cv_prog_gnu_ld
15104
15105
15106
15107   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15108   # archiving commands below assume that GNU ld is being used.
15109   if test "$with_gnu_ld" = yes; then
15110     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111     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'
15112
15113     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15114     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15115
15116     # If archive_cmds runs LD, not CC, wlarc should be empty
15117     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15118     #     investigate it a little bit more. (MM)
15119     wlarc='${wl}'
15120
15121     # ancient GNU ld didn't support --whole-archive et. al.
15122     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15123         grep 'no-whole-archive' > /dev/null; then
15124       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15125     else
15126       whole_archive_flag_spec_CXX=
15127     fi
15128   else
15129     with_gnu_ld=no
15130     wlarc=
15131
15132     # A generic and very simple default shared library creation
15133     # command for GNU C++ for the case where it uses the native
15134     # linker, instead of GNU ld.  If possible, this setting should
15135     # overridden to take advantage of the native linker features on
15136     # the platform it is being used on.
15137     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15138   fi
15139
15140   # Commands to make compiler produce verbose output that lists
15141   # what "hidden" libraries, object files and flags are used when
15142   # linking a shared library.
15143   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15144
15145 else
15146   GXX=no
15147   with_gnu_ld=no
15148   wlarc=
15149 fi
15150
15151 # PORTME: fill in a description of your system's C++ link characteristics
15152 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15153 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15154 ld_shlibs_CXX=yes
15155 case $host_os in
15156   aix3*)
15157     # FIXME: insert proper C++ library support
15158     ld_shlibs_CXX=no
15159     ;;
15160   aix4* | aix5*)
15161     if test "$host_cpu" = ia64; then
15162       # On IA64, the linker does run time linking by default, so we don't
15163       # have to do anything special.
15164       aix_use_runtimelinking=no
15165       exp_sym_flag='-Bexport'
15166       no_entry_flag=""
15167     else
15168       aix_use_runtimelinking=no
15169
15170       # Test if we are trying to use run time linking or normal
15171       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15172       # need to do runtime linking.
15173       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15174         for ld_flag in $LDFLAGS; do
15175           case $ld_flag in
15176           *-brtl*)
15177             aix_use_runtimelinking=yes
15178             break
15179             ;;
15180           esac
15181         done
15182       esac
15183
15184       exp_sym_flag='-bexport'
15185       no_entry_flag='-bnoentry'
15186     fi
15187
15188     # When large executables or shared objects are built, AIX ld can
15189     # have problems creating the table of contents.  If linking a library
15190     # or program results in "error TOC overflow" add -mminimal-toc to
15191     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15192     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15193
15194     archive_cmds_CXX=''
15195     hardcode_direct_CXX=yes
15196     hardcode_libdir_separator_CXX=':'
15197     link_all_deplibs_CXX=yes
15198
15199     if test "$GXX" = yes; then
15200       case $host_os in aix4.012|aix4.012.*)
15201       # We only want to do this on AIX 4.2 and lower, the check
15202       # below for broken collect2 doesn't work under 4.3+
15203         collect2name=`${CC} -print-prog-name=collect2`
15204         if test -f "$collect2name" && \
15205            strings "$collect2name" | grep resolve_lib_name >/dev/null
15206         then
15207           # We have reworked collect2
15208           hardcode_direct_CXX=yes
15209         else
15210           # We have old collect2
15211           hardcode_direct_CXX=unsupported
15212           # It fails to find uninstalled libraries when the uninstalled
15213           # path is not listed in the libpath.  Setting hardcode_minus_L
15214           # to unsupported forces relinking
15215           hardcode_minus_L_CXX=yes
15216           hardcode_libdir_flag_spec_CXX='-L$libdir'
15217           hardcode_libdir_separator_CXX=
15218         fi
15219       esac
15220       shared_flag='-shared'
15221     else
15222       # not using gcc
15223       if test "$host_cpu" = ia64; then
15224         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15225         # chokes on -Wl,-G. The following line is correct:
15226         shared_flag='-G'
15227       else
15228         if test "$aix_use_runtimelinking" = yes; then
15229           shared_flag='${wl}-G'
15230         else
15231           shared_flag='${wl}-bM:SRE'
15232         fi
15233       fi
15234     fi
15235
15236     # It seems that -bexpall does not export symbols beginning with
15237     # underscore (_), so it is better to generate a list of symbols to export.
15238     always_export_symbols_CXX=yes
15239     if test "$aix_use_runtimelinking" = yes; then
15240       # Warning - without using the other runtime loading flags (-brtl),
15241       # -berok will link without error, but may produce a broken library.
15242       allow_undefined_flag_CXX='-berok'
15243       # Determine the default libpath from the value encoded in an empty executable.
15244       cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250
15251 int
15252 main ()
15253 {
15254
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261   (eval $ac_link) 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -z "$ac_cxx_werror_flag"
15269                          || test ! -s conftest.err'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; } &&
15275          { ac_try='test -s conftest$ac_exeext'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281
15282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15283 }'`
15284 # Check for a 64-bit object if we didn't find anything.
15285 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; }
15286 }'`; fi
15287 else
15288   echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 fi
15292 rm -f conftest.err conftest.$ac_objext \
15293       conftest$ac_exeext conftest.$ac_ext
15294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15295
15296       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15297
15298       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"
15299      else
15300       if test "$host_cpu" = ia64; then
15301         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15302         allow_undefined_flag_CXX="-z nodefs"
15303         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"
15304       else
15305         # Determine the default libpath from the value encoded in an empty executable.
15306         cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h.  */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h.  */
15312
15313 int
15314 main ()
15315 {
15316
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323   (eval $ac_link) 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -z "$ac_cxx_werror_flag"
15331                          || test ! -s conftest.err'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; } &&
15337          { ac_try='test -s conftest$ac_exeext'
15338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339   (eval $ac_try) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; }; then
15343
15344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15345 }'`
15346 # Check for a 64-bit object if we didn't find anything.
15347 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; }
15348 }'`; fi
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 fi
15354 rm -f conftest.err conftest.$ac_objext \
15355       conftest$ac_exeext conftest.$ac_ext
15356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15357
15358         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15359         # Warning - without using the other run time loading flags,
15360         # -berok will link without error, but may produce a broken library.
15361         no_undefined_flag_CXX=' ${wl}-bernotok'
15362         allow_undefined_flag_CXX=' ${wl}-berok'
15363         # -bexpall does not export symbols beginning with underscore (_)
15364         always_export_symbols_CXX=yes
15365         # Exported symbols can be pulled into shared objects from archives
15366         whole_archive_flag_spec_CXX=' '
15367         archive_cmds_need_lc_CXX=yes
15368         # This is similar to how AIX traditionally builds it's shared libraries.
15369         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'
15370       fi
15371     fi
15372     ;;
15373   chorus*)
15374     case $cc_basename in
15375       *)
15376         # FIXME: insert proper C++ library support
15377         ld_shlibs_CXX=no
15378         ;;
15379     esac
15380     ;;
15381
15382
15383   cygwin* | mingw* | pw32*)
15384     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15385     # as there is no search path for DLLs.
15386     hardcode_libdir_flag_spec_CXX='-L$libdir'
15387     allow_undefined_flag_CXX=unsupported
15388     always_export_symbols_CXX=no
15389     enable_shared_with_static_runtimes_CXX=yes
15390
15391     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15392       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'
15393       # If the export-symbols file already is a .def file (1st line
15394       # is EXPORTS), use it as is; otherwise, prepend...
15395       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15396         cp $export_symbols $output_objdir/$soname.def;
15397       else
15398         echo EXPORTS > $output_objdir/$soname.def;
15399         cat $export_symbols >> $output_objdir/$soname.def;
15400       fi~
15401       $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'
15402     else
15403       ld_shlibs_CXX=no
15404     fi
15405   ;;
15406       darwin* | rhapsody*)
15407         case "$host_os" in
15408         rhapsody* | darwin1.[012])
15409          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15410          ;;
15411        *) # Darwin 1.3 on
15412          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15413            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15414          else
15415            case ${MACOSX_DEPLOYMENT_TARGET} in
15416              10.[012])
15417                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15418                ;;
15419              10.*)
15420                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15421                ;;
15422            esac
15423          fi
15424          ;;
15425         esac
15426       archive_cmds_need_lc_CXX=no
15427       hardcode_direct_CXX=no
15428       hardcode_automatic_CXX=yes
15429       hardcode_shlibpath_var_CXX=unsupported
15430       whole_archive_flag_spec_CXX=''
15431       link_all_deplibs_CXX=yes
15432
15433     if test "$GXX" = yes ; then
15434       lt_int_apple_cc_single_mod=no
15435       output_verbose_link_cmd='echo'
15436       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15437        lt_int_apple_cc_single_mod=yes
15438       fi
15439       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15440        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15441       else
15442           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'
15443         fi
15444         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15445         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15446           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15447             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}'
15448           else
15449             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}'
15450           fi
15451             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}'
15452       else
15453       case "$cc_basename" in
15454         xlc*)
15455          output_verbose_link_cmd='echo'
15456           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'
15457           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15458           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15459           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}'
15460           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}'
15461           ;;
15462        *)
15463          ld_shlibs_CXX=no
15464           ;;
15465       esac
15466       fi
15467         ;;
15468
15469   dgux*)
15470     case $cc_basename in
15471       ec++)
15472         # FIXME: insert proper C++ library support
15473         ld_shlibs_CXX=no
15474         ;;
15475       ghcx)
15476         # Green Hills C++ Compiler
15477         # FIXME: insert proper C++ library support
15478         ld_shlibs_CXX=no
15479         ;;
15480       *)
15481         # FIXME: insert proper C++ library support
15482         ld_shlibs_CXX=no
15483         ;;
15484     esac
15485     ;;
15486   freebsd12*)
15487     # C++ shared libraries reported to be fairly broken before switch to ELF
15488     ld_shlibs_CXX=no
15489     ;;
15490   freebsd-elf*)
15491     archive_cmds_need_lc_CXX=no
15492     ;;
15493   freebsd* | kfreebsd*-gnu)
15494     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15495     # conventions
15496     ld_shlibs_CXX=yes
15497     ;;
15498   gnu*)
15499     ;;
15500   hpux9*)
15501     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15502     hardcode_libdir_separator_CXX=:
15503     export_dynamic_flag_spec_CXX='${wl}-E'
15504     hardcode_direct_CXX=yes
15505     hardcode_minus_L_CXX=yes # Not in the search PATH,
15506                                 # but as the default
15507                                 # location of the library.
15508
15509     case $cc_basename in
15510     CC)
15511       # FIXME: insert proper C++ library support
15512       ld_shlibs_CXX=no
15513       ;;
15514     aCC)
15515       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'
15516       # Commands to make compiler produce verbose output that lists
15517       # what "hidden" libraries, object files and flags are used when
15518       # linking a shared library.
15519       #
15520       # There doesn't appear to be a way to prevent this compiler from
15521       # explicitly linking system object files so we need to strip them
15522       # from the output so that they don't get included in the library
15523       # dependencies.
15524       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'
15525       ;;
15526     *)
15527       if test "$GXX" = yes; then
15528         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'
15529       else
15530         # FIXME: insert proper C++ library support
15531         ld_shlibs_CXX=no
15532       fi
15533       ;;
15534     esac
15535     ;;
15536   hpux10*|hpux11*)
15537     if test $with_gnu_ld = no; then
15538       case "$host_cpu" in
15539       hppa*64*)
15540         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15541         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15542         hardcode_libdir_separator_CXX=:
15543         ;;
15544       ia64*)
15545         hardcode_libdir_flag_spec_CXX='-L$libdir'
15546         ;;
15547       *)
15548         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15549         hardcode_libdir_separator_CXX=:
15550         export_dynamic_flag_spec_CXX='${wl}-E'
15551         ;;
15552       esac
15553     fi
15554     case "$host_cpu" in
15555     hppa*64*)
15556       hardcode_direct_CXX=no
15557       hardcode_shlibpath_var_CXX=no
15558       ;;
15559     ia64*)
15560       hardcode_direct_CXX=no
15561       hardcode_shlibpath_var_CXX=no
15562       hardcode_minus_L_CXX=yes # Not in the search PATH,
15563                                               # but as the default
15564                                               # location of the library.
15565       ;;
15566     *)
15567       hardcode_direct_CXX=yes
15568       hardcode_minus_L_CXX=yes # Not in the search PATH,
15569                                               # but as the default
15570                                               # location of the library.
15571       ;;
15572     esac
15573
15574     case $cc_basename in
15575       CC)
15576         # FIXME: insert proper C++ library support
15577         ld_shlibs_CXX=no
15578         ;;
15579       aCC)
15580         case "$host_cpu" in
15581         hppa*64*|ia64*)
15582           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15583           ;;
15584         *)
15585           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15586           ;;
15587         esac
15588         # Commands to make compiler produce verbose output that lists
15589         # what "hidden" libraries, object files and flags are used when
15590         # linking a shared library.
15591         #
15592         # There doesn't appear to be a way to prevent this compiler from
15593         # explicitly linking system object files so we need to strip them
15594         # from the output so that they don't get included in the library
15595         # dependencies.
15596         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'
15597         ;;
15598       *)
15599         if test "$GXX" = yes; then
15600           if test $with_gnu_ld = no; then
15601             case "$host_cpu" in
15602             ia64*|hppa*64*)
15603               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15604               ;;
15605             *)
15606               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'
15607               ;;
15608             esac
15609           fi
15610         else
15611           # FIXME: insert proper C++ library support
15612           ld_shlibs_CXX=no
15613         fi
15614         ;;
15615     esac
15616     ;;
15617   irix5* | irix6*)
15618     case $cc_basename in
15619       CC)
15620         # SGI C++
15621         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'
15622
15623         # Archives containing C++ object files must be created using
15624         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15625         # necessary to make sure instantiated templates are included
15626         # in the archive.
15627         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15628         ;;
15629       *)
15630         if test "$GXX" = yes; then
15631           if test "$with_gnu_ld" = no; then
15632             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'
15633           else
15634             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'
15635           fi
15636         fi
15637         link_all_deplibs_CXX=yes
15638         ;;
15639     esac
15640     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15641     hardcode_libdir_separator_CXX=:
15642     ;;
15643   linux*)
15644     case $cc_basename in
15645       KCC)
15646         # Kuck and Associates, Inc. (KAI) C++ Compiler
15647
15648         # KCC will only create a shared library if the output file
15649         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15650         # to its proper name (with version) after linking.
15651         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'
15652         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'
15653         # Commands to make compiler produce verbose output that lists
15654         # what "hidden" libraries, object files and flags are used when
15655         # linking a shared library.
15656         #
15657         # There doesn't appear to be a way to prevent this compiler from
15658         # explicitly linking system object files so we need to strip them
15659         # from the output so that they don't get included in the library
15660         # dependencies.
15661         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'
15662
15663         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15664         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15665
15666         # Archives containing C++ object files must be created using
15667         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15668         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15669         ;;
15670       icpc)
15671         # Intel C++
15672         with_gnu_ld=yes
15673         # version 8.0 and above of icpc choke on multiply defined symbols
15674         # if we add $predep_objects and $postdep_objects, however 7.1 and
15675         # earlier do not add the objects themselves.
15676         case `$CC -V 2>&1` in
15677         *"Version 7."*)
15678           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679           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'
15680           ;;
15681         *)  # Version 8.0 or newer
15682           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15684           ;;
15685         esac
15686         archive_cmds_need_lc_CXX=no
15687         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15688         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15689         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15690         ;;
15691       cxx)
15692         # Compaq C++
15693         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15694         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'
15695
15696         runpath_var=LD_RUN_PATH
15697         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15698         hardcode_libdir_separator_CXX=:
15699
15700         # Commands to make compiler produce verbose output that lists
15701         # what "hidden" libraries, object files and flags are used when
15702         # linking a shared library.
15703         #
15704         # There doesn't appear to be a way to prevent this compiler from
15705         # explicitly linking system object files so we need to strip them
15706         # from the output so that they don't get included in the library
15707         # dependencies.
15708         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'
15709         ;;
15710     esac
15711     ;;
15712   lynxos*)
15713     # FIXME: insert proper C++ library support
15714     ld_shlibs_CXX=no
15715     ;;
15716   m88k*)
15717     # FIXME: insert proper C++ library support
15718     ld_shlibs_CXX=no
15719     ;;
15720   mvs*)
15721     case $cc_basename in
15722       cxx)
15723         # FIXME: insert proper C++ library support
15724         ld_shlibs_CXX=no
15725         ;;
15726       *)
15727         # FIXME: insert proper C++ library support
15728         ld_shlibs_CXX=no
15729         ;;
15730     esac
15731     ;;
15732   netbsd*)
15733     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15734       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15735       wlarc=
15736       hardcode_libdir_flag_spec_CXX='-R$libdir'
15737       hardcode_direct_CXX=yes
15738       hardcode_shlibpath_var_CXX=no
15739     fi
15740     # Workaround some broken pre-1.5 toolchains
15741     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15742     ;;
15743   openbsd2*)
15744     # C++ shared libraries are fairly broken
15745     ld_shlibs_CXX=no
15746     ;;
15747   openbsd*)
15748     hardcode_direct_CXX=yes
15749     hardcode_shlibpath_var_CXX=no
15750     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15751     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15752     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15754       export_dynamic_flag_spec_CXX='${wl}-E'
15755       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15756     fi
15757     output_verbose_link_cmd='echo'
15758     ;;
15759   osf3*)
15760     case $cc_basename in
15761       KCC)
15762         # Kuck and Associates, Inc. (KAI) C++ Compiler
15763
15764         # KCC will only create a shared library if the output file
15765         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15766         # to its proper name (with version) after linking.
15767         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'
15768
15769         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15770         hardcode_libdir_separator_CXX=:
15771
15772         # Archives containing C++ object files must be created using
15773         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15774         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15775
15776         ;;
15777       RCC)
15778         # Rational C++ 2.4.1
15779         # FIXME: insert proper C++ library support
15780         ld_shlibs_CXX=no
15781         ;;
15782       cxx)
15783         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15784         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'
15785
15786         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15787         hardcode_libdir_separator_CXX=:
15788
15789         # Commands to make compiler produce verbose output that lists
15790         # what "hidden" libraries, object files and flags are used when
15791         # linking a shared library.
15792         #
15793         # There doesn't appear to be a way to prevent this compiler from
15794         # explicitly linking system object files so we need to strip them
15795         # from the output so that they don't get included in the library
15796         # dependencies.
15797         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'
15798         ;;
15799       *)
15800         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15801           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15802           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'
15803
15804           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15805           hardcode_libdir_separator_CXX=:
15806
15807           # Commands to make compiler produce verbose output that lists
15808           # what "hidden" libraries, object files and flags are used when
15809           # linking a shared library.
15810           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15811
15812         else
15813           # FIXME: insert proper C++ library support
15814           ld_shlibs_CXX=no
15815         fi
15816         ;;
15817     esac
15818     ;;
15819   osf4* | osf5*)
15820     case $cc_basename in
15821       KCC)
15822         # Kuck and Associates, Inc. (KAI) C++ Compiler
15823
15824         # KCC will only create a shared library if the output file
15825         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15826         # to its proper name (with version) after linking.
15827         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'
15828
15829         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15830         hardcode_libdir_separator_CXX=:
15831
15832         # Archives containing C++ object files must be created using
15833         # the KAI C++ compiler.
15834         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15835         ;;
15836       RCC)
15837         # Rational C++ 2.4.1
15838         # FIXME: insert proper C++ library support
15839         ld_shlibs_CXX=no
15840         ;;
15841       cxx)
15842         allow_undefined_flag_CXX=' -expect_unresolved \*'
15843         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'
15844         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15845           echo "-hidden">> $lib.exp~
15846           $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~
15847           $rm $lib.exp'
15848
15849         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15850         hardcode_libdir_separator_CXX=:
15851
15852         # Commands to make compiler produce verbose output that lists
15853         # what "hidden" libraries, object files and flags are used when
15854         # linking a shared library.
15855         #
15856         # There doesn't appear to be a way to prevent this compiler from
15857         # explicitly linking system object files so we need to strip them
15858         # from the output so that they don't get included in the library
15859         # dependencies.
15860         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'
15861         ;;
15862       *)
15863         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15864           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15865          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'
15866
15867           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15868           hardcode_libdir_separator_CXX=:
15869
15870           # Commands to make compiler produce verbose output that lists
15871           # what "hidden" libraries, object files and flags are used when
15872           # linking a shared library.
15873           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15874
15875         else
15876           # FIXME: insert proper C++ library support
15877           ld_shlibs_CXX=no
15878         fi
15879         ;;
15880     esac
15881     ;;
15882   psos*)
15883     # FIXME: insert proper C++ library support
15884     ld_shlibs_CXX=no
15885     ;;
15886   sco*)
15887     archive_cmds_need_lc_CXX=no
15888     case $cc_basename in
15889       CC)
15890         # FIXME: insert proper C++ library support
15891         ld_shlibs_CXX=no
15892         ;;
15893       *)
15894         # FIXME: insert proper C++ library support
15895         ld_shlibs_CXX=no
15896         ;;
15897     esac
15898     ;;
15899   sunos4*)
15900     case $cc_basename in
15901       CC)
15902         # Sun C++ 4.x
15903         # FIXME: insert proper C++ library support
15904         ld_shlibs_CXX=no
15905         ;;
15906       lcc)
15907         # Lucid
15908         # FIXME: insert proper C++ library support
15909         ld_shlibs_CXX=no
15910         ;;
15911       *)
15912         # FIXME: insert proper C++ library support
15913         ld_shlibs_CXX=no
15914         ;;
15915     esac
15916     ;;
15917   solaris*)
15918     case $cc_basename in
15919       CC)
15920         # Sun C++ 4.2, 5.x and Centerline C++
15921         no_undefined_flag_CXX=' -zdefs'
15922         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15923         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15924         $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'
15925
15926         hardcode_libdir_flag_spec_CXX='-R$libdir'
15927         hardcode_shlibpath_var_CXX=no
15928         case $host_os in
15929           solaris2.0-5 | solaris2.0-5.*) ;;
15930           *)
15931             # The C++ compiler is used as linker so we must use $wl
15932             # flag to pass the commands to the underlying system
15933             # linker.
15934             # Supported since Solaris 2.6 (maybe 2.5.1?)
15935             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15936             ;;
15937         esac
15938         link_all_deplibs_CXX=yes
15939
15940         # Commands to make compiler produce verbose output that lists
15941         # what "hidden" libraries, object files and flags are used when
15942         # linking a shared library.
15943         #
15944         # There doesn't appear to be a way to prevent this compiler from
15945         # explicitly linking system object files so we need to strip them
15946         # from the output so that they don't get included in the library
15947         # dependencies.
15948         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'
15949
15950         # Archives containing C++ object files must be created using
15951         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15952         # necessary to make sure instantiated templates are included
15953         # in the archive.
15954         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15955         ;;
15956       gcx)
15957         # Green Hills C++ Compiler
15958         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15959
15960         # The C++ compiler must be used to create the archive.
15961         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15962         ;;
15963       *)
15964         # GNU C++ compiler with Solaris linker
15965         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15966           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15967           if $CC --version | grep -v '^2\.7' > /dev/null; then
15968             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15969             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15970                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15971
15972             # Commands to make compiler produce verbose output that lists
15973             # what "hidden" libraries, object files and flags are used when
15974             # linking a shared library.
15975             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15976           else
15977             # g++ 2.7 appears to require `-G' NOT `-shared' on this
15978             # platform.
15979             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15980             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15981                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15982
15983             # Commands to make compiler produce verbose output that lists
15984             # what "hidden" libraries, object files and flags are used when
15985             # linking a shared library.
15986             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15987           fi
15988
15989           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15990         fi
15991         ;;
15992     esac
15993     ;;
15994   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15995     archive_cmds_need_lc_CXX=no
15996     ;;
15997   tandem*)
15998     case $cc_basename in
15999       NCC)
16000         # NonStop-UX NCC 3.20
16001         # FIXME: insert proper C++ library support
16002         ld_shlibs_CXX=no
16003         ;;
16004       *)
16005         # FIXME: insert proper C++ library support
16006         ld_shlibs_CXX=no
16007         ;;
16008     esac
16009     ;;
16010   vxworks*)
16011     # FIXME: insert proper C++ library support
16012     ld_shlibs_CXX=no
16013     ;;
16014   *)
16015     # FIXME: insert proper C++ library support
16016     ld_shlibs_CXX=no
16017     ;;
16018 esac
16019 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16020 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16021 test "$ld_shlibs_CXX" = no && can_build_shared=no
16022
16023 GCC_CXX="$GXX"
16024 LD_CXX="$LD"
16025
16026
16027 cat > conftest.$ac_ext <<EOF
16028 class Foo
16029 {
16030 public:
16031   Foo (void) { a = 0; }
16032 private:
16033   int a;
16034 };
16035 EOF
16036
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038   (eval $ac_compile) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; then
16042   # Parse the compiler output and extract the necessary
16043   # objects, libraries and library flags.
16044
16045   # Sentinel used to keep track of whether or not we are before
16046   # the conftest object file.
16047   pre_test_object_deps_done=no
16048
16049   # The `*' in the case matches for architectures that use `case' in
16050   # $output_verbose_cmd can trigger glob expansion during the loop
16051   # eval without this substitution.
16052   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16053
16054   for p in `eval $output_verbose_link_cmd`; do
16055     case $p in
16056
16057     -L* | -R* | -l*)
16058        # Some compilers place space between "-{L,R}" and the path.
16059        # Remove the space.
16060        if test $p = "-L" \
16061           || test $p = "-R"; then
16062          prev=$p
16063          continue
16064        else
16065          prev=
16066        fi
16067
16068        if test "$pre_test_object_deps_done" = no; then
16069          case $p in
16070          -L* | -R*)
16071            # Internal compiler library paths should come after those
16072            # provided the user.  The postdeps already come after the
16073            # user supplied libs so there is no need to process them.
16074            if test -z "$compiler_lib_search_path_CXX"; then
16075              compiler_lib_search_path_CXX="${prev}${p}"
16076            else
16077              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16078            fi
16079            ;;
16080          # The "-l" case would never come before the object being
16081          # linked, so don't bother handling this case.
16082          esac
16083        else
16084          if test -z "$postdeps_CXX"; then
16085            postdeps_CXX="${prev}${p}"
16086          else
16087            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16088          fi
16089        fi
16090        ;;
16091
16092     *.$objext)
16093        # This assumes that the test object file only shows up
16094        # once in the compiler output.
16095        if test "$p" = "conftest.$objext"; then
16096          pre_test_object_deps_done=yes
16097          continue
16098        fi
16099
16100        if test "$pre_test_object_deps_done" = no; then
16101          if test -z "$predep_objects_CXX"; then
16102            predep_objects_CXX="$p"
16103          else
16104            predep_objects_CXX="$predep_objects_CXX $p"
16105          fi
16106        else
16107          if test -z "$postdep_objects_CXX"; then
16108            postdep_objects_CXX="$p"
16109          else
16110            postdep_objects_CXX="$postdep_objects_CXX $p"
16111          fi
16112        fi
16113        ;;
16114
16115     *) ;; # Ignore the rest.
16116
16117     esac
16118   done
16119
16120   # Clean up.
16121   rm -f a.out a.exe
16122 else
16123   echo "libtool.m4: error: problem compiling CXX test program"
16124 fi
16125
16126 $rm -f confest.$objext
16127
16128 case " $postdeps_CXX " in
16129 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16130 esac
16131
16132 lt_prog_compiler_wl_CXX=
16133 lt_prog_compiler_pic_CXX=
16134 lt_prog_compiler_static_CXX=
16135
16136 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16137 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16138
16139   # C++ specific cases for pic, static, wl, etc.
16140   if test "$GXX" = yes; then
16141     lt_prog_compiler_wl_CXX='-Wl,'
16142     lt_prog_compiler_static_CXX='-static'
16143
16144     case $host_os in
16145     aix*)
16146       # All AIX code is PIC.
16147       if test "$host_cpu" = ia64; then
16148         # AIX 5 now supports IA64 processor
16149         lt_prog_compiler_static_CXX='-Bstatic'
16150       fi
16151       ;;
16152     amigaos*)
16153       # FIXME: we need at least 68020 code to build shared libraries, but
16154       # adding the `-m68020' flag to GCC prevents building anything better,
16155       # like `-m68040'.
16156       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16157       ;;
16158     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16159       # PIC is the default for these OSes.
16160       ;;
16161     mingw* | os2* | pw32*)
16162       # This hack is so that the source file can tell whether it is being
16163       # built for inclusion in a dll (and should export symbols for example).
16164       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16165       ;;
16166     darwin* | rhapsody*)
16167       # PIC is the default on this platform
16168       # Common symbols not allowed in MH_DYLIB files
16169       lt_prog_compiler_pic_CXX='-fno-common'
16170       ;;
16171     *djgpp*)
16172       # DJGPP does not support shared libraries at all
16173       lt_prog_compiler_pic_CXX=
16174       ;;
16175     sysv4*MP*)
16176       if test -d /usr/nec; then
16177         lt_prog_compiler_pic_CXX=-Kconform_pic
16178       fi
16179       ;;
16180     hpux*)
16181       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16182       # not for PA HP-UX.
16183       case "$host_cpu" in
16184       hppa*64*|ia64*)
16185         ;;
16186       *)
16187         lt_prog_compiler_pic_CXX='-fPIC'
16188         ;;
16189       esac
16190       ;;
16191     *)
16192       lt_prog_compiler_pic_CXX='-fPIC'
16193       ;;
16194     esac
16195   else
16196     case $host_os in
16197       aix4* | aix5*)
16198         # All AIX code is PIC.
16199         if test "$host_cpu" = ia64; then
16200           # AIX 5 now supports IA64 processor
16201           lt_prog_compiler_static_CXX='-Bstatic'
16202         else
16203           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16204         fi
16205         ;;
16206       chorus*)
16207         case $cc_basename in
16208         cxch68)
16209           # Green Hills C++ Compiler
16210           # _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"
16211           ;;
16212         esac
16213         ;;
16214        darwin*)
16215          # PIC is the default on this platform
16216          # Common symbols not allowed in MH_DYLIB files
16217          case "$cc_basename" in
16218            xlc*)
16219            lt_prog_compiler_pic_CXX='-qnocommon'
16220            lt_prog_compiler_wl_CXX='-Wl,'
16221            ;;
16222          esac
16223        ;;
16224       dgux*)
16225         case $cc_basename in
16226           ec++)
16227             lt_prog_compiler_pic_CXX='-KPIC'
16228             ;;
16229           ghcx)
16230             # Green Hills C++ Compiler
16231             lt_prog_compiler_pic_CXX='-pic'
16232             ;;
16233           *)
16234             ;;
16235         esac
16236         ;;
16237       freebsd* | kfreebsd*-gnu)
16238         # FreeBSD uses GNU C++
16239         ;;
16240       hpux9* | hpux10* | hpux11*)
16241         case $cc_basename in
16242           CC)
16243             lt_prog_compiler_wl_CXX='-Wl,'
16244             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16245             if test "$host_cpu" != ia64; then
16246               lt_prog_compiler_pic_CXX='+Z'
16247             fi
16248             ;;
16249           aCC)
16250             lt_prog_compiler_wl_CXX='-Wl,'
16251             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16252             case "$host_cpu" in
16253             hppa*64*|ia64*)
16254               # +Z the default
16255               ;;
16256             *)
16257               lt_prog_compiler_pic_CXX='+Z'
16258               ;;
16259             esac
16260             ;;
16261           *)
16262             ;;
16263         esac
16264         ;;
16265       irix5* | irix6* | nonstopux*)
16266         case $cc_basename in
16267           CC)
16268             lt_prog_compiler_wl_CXX='-Wl,'
16269             lt_prog_compiler_static_CXX='-non_shared'
16270             # CC pic flag -KPIC is the default.
16271             ;;
16272           *)
16273             ;;
16274         esac
16275         ;;
16276       linux*)
16277         case $cc_basename in
16278           KCC)
16279             # KAI C++ Compiler
16280             lt_prog_compiler_wl_CXX='--backend -Wl,'
16281             lt_prog_compiler_pic_CXX='-fPIC'
16282             ;;
16283           icpc)
16284             # Intel C++
16285             lt_prog_compiler_wl_CXX='-Wl,'
16286             lt_prog_compiler_pic_CXX='-KPIC'
16287             lt_prog_compiler_static_CXX='-static'
16288             ;;
16289           cxx)
16290             # Compaq C++
16291             # Make sure the PIC flag is empty.  It appears that all Alpha
16292             # Linux and Compaq Tru64 Unix objects are PIC.
16293             lt_prog_compiler_pic_CXX=
16294             lt_prog_compiler_static_CXX='-non_shared'
16295             ;;
16296           *)
16297             ;;
16298         esac
16299         ;;
16300       lynxos*)
16301         ;;
16302       m88k*)
16303         ;;
16304       mvs*)
16305         case $cc_basename in
16306           cxx)
16307             lt_prog_compiler_pic_CXX='-W c,exportall'
16308             ;;
16309           *)
16310             ;;
16311         esac
16312         ;;
16313       netbsd*)
16314         ;;
16315       osf3* | osf4* | osf5*)
16316         case $cc_basename in
16317           KCC)
16318             lt_prog_compiler_wl_CXX='--backend -Wl,'
16319             ;;
16320           RCC)
16321             # Rational C++ 2.4.1
16322             lt_prog_compiler_pic_CXX='-pic'
16323             ;;
16324           cxx)
16325             # Digital/Compaq C++
16326             lt_prog_compiler_wl_CXX='-Wl,'
16327             # Make sure the PIC flag is empty.  It appears that all Alpha
16328             # Linux and Compaq Tru64 Unix objects are PIC.
16329             lt_prog_compiler_pic_CXX=
16330             lt_prog_compiler_static_CXX='-non_shared'
16331             ;;
16332           *)
16333             ;;
16334         esac
16335         ;;
16336       psos*)
16337         ;;
16338       sco*)
16339         case $cc_basename in
16340           CC)
16341             lt_prog_compiler_pic_CXX='-fPIC'
16342             ;;
16343           *)
16344             ;;
16345         esac
16346         ;;
16347       solaris*)
16348         case $cc_basename in
16349           CC)
16350             # Sun C++ 4.2, 5.x and Centerline C++
16351             lt_prog_compiler_pic_CXX='-KPIC'
16352             lt_prog_compiler_static_CXX='-Bstatic'
16353             lt_prog_compiler_wl_CXX='-Qoption ld '
16354             ;;
16355           gcx)
16356             # Green Hills C++ Compiler
16357             lt_prog_compiler_pic_CXX='-PIC'
16358             ;;
16359           *)
16360             ;;
16361         esac
16362         ;;
16363       sunos4*)
16364         case $cc_basename in
16365           CC)
16366             # Sun C++ 4.x
16367             lt_prog_compiler_pic_CXX='-pic'
16368             lt_prog_compiler_static_CXX='-Bstatic'
16369             ;;
16370           lcc)
16371             # Lucid
16372             lt_prog_compiler_pic_CXX='-pic'
16373             ;;
16374           *)
16375             ;;
16376         esac
16377         ;;
16378       tandem*)
16379         case $cc_basename in
16380           NCC)
16381             # NonStop-UX NCC 3.20
16382             lt_prog_compiler_pic_CXX='-KPIC'
16383             ;;
16384           *)
16385             ;;
16386         esac
16387         ;;
16388       unixware*)
16389         ;;
16390       vxworks*)
16391         ;;
16392       *)
16393         lt_prog_compiler_can_build_shared_CXX=no
16394         ;;
16395     esac
16396   fi
16397
16398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16399 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16400
16401 #
16402 # Check to make sure the PIC flag actually works.
16403 #
16404 if test -n "$lt_prog_compiler_pic_CXX"; then
16405
16406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16408 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411   lt_prog_compiler_pic_works_CXX=no
16412   ac_outfile=conftest.$ac_objext
16413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16414    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16415    # Insert the option either (1) after the last *FLAGS variable, or
16416    # (2) before a word containing "conftest.", or (3) at the end.
16417    # Note that $ac_compile itself does not contain backslashes and begins
16418    # with a dollar sign (not a hyphen), so the echo should work correctly.
16419    # The option is referenced via a variable to avoid confusing sed.
16420    lt_compile=`echo "$ac_compile" | $SED \
16421    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16423    -e 's:$: $lt_compiler_flag:'`
16424    (eval echo "\"\$as_me:16424: $lt_compile\"" >&5)
16425    (eval "$lt_compile" 2>conftest.err)
16426    ac_status=$?
16427    cat conftest.err >&5
16428    echo "$as_me:16428: \$? = $ac_status" >&5
16429    if (exit $ac_status) && test -s "$ac_outfile"; then
16430      # The compiler can only warn and ignore the option if not recognized
16431      # So say no if there are warnings
16432      if test ! -s conftest.err; then
16433        lt_prog_compiler_pic_works_CXX=yes
16434      fi
16435    fi
16436    $rm conftest*
16437
16438 fi
16439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16440 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16441
16442 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16443     case $lt_prog_compiler_pic_CXX in
16444      "" | " "*) ;;
16445      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16446      esac
16447 else
16448     lt_prog_compiler_pic_CXX=
16449      lt_prog_compiler_can_build_shared_CXX=no
16450 fi
16451
16452 fi
16453 case "$host_os" in
16454   # For platforms which do not support PIC, -DPIC is meaningless:
16455   *djgpp*)
16456     lt_prog_compiler_pic_CXX=
16457     ;;
16458   *)
16459     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16460     ;;
16461 esac
16462
16463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16465 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   lt_cv_prog_compiler_c_o_CXX=no
16469    $rm -r conftest 2>/dev/null
16470    mkdir conftest
16471    cd conftest
16472    mkdir out
16473    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16474
16475    lt_compiler_flag="-o out/conftest2.$ac_objext"
16476    # Insert the option either (1) after the last *FLAGS variable, or
16477    # (2) before a word containing "conftest.", or (3) at the end.
16478    # Note that $ac_compile itself does not contain backslashes and begins
16479    # with a dollar sign (not a hyphen), so the echo should work correctly.
16480    lt_compile=`echo "$ac_compile" | $SED \
16481    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16483    -e 's:$: $lt_compiler_flag:'`
16484    (eval echo "\"\$as_me:16484: $lt_compile\"" >&5)
16485    (eval "$lt_compile" 2>out/conftest.err)
16486    ac_status=$?
16487    cat out/conftest.err >&5
16488    echo "$as_me:16488: \$? = $ac_status" >&5
16489    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16490    then
16491      # The compiler can only warn and ignore the option if not recognized
16492      # So say no if there are warnings
16493      if test ! -s out/conftest.err; then
16494        lt_cv_prog_compiler_c_o_CXX=yes
16495      fi
16496    fi
16497    chmod u+w .
16498    $rm conftest*
16499    # SGI C++ compiler will create directory out/ii_files/ for
16500    # template instantiation
16501    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16502    $rm out/* && rmdir out
16503    cd ..
16504    rmdir conftest
16505    $rm conftest*
16506
16507 fi
16508 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16509 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16510
16511
16512 hard_links="nottested"
16513 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16514   # do not overwrite the value of need_locks provided by the user
16515   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16516 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16517   hard_links=yes
16518   $rm conftest*
16519   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16520   touch conftest.a
16521   ln conftest.a conftest.b 2>&5 || hard_links=no
16522   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16523   echo "$as_me:$LINENO: result: $hard_links" >&5
16524 echo "${ECHO_T}$hard_links" >&6
16525   if test "$hard_links" = no; then
16526     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16527 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16528     need_locks=warn
16529   fi
16530 else
16531   need_locks=no
16532 fi
16533
16534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16536
16537   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16538   case $host_os in
16539   aix4* | aix5*)
16540     # If we're using GNU nm, then we don't want the "-C" option.
16541     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16543       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'
16544     else
16545       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'
16546     fi
16547     ;;
16548   pw32*)
16549     export_symbols_cmds_CXX="$ltdll_cmds"
16550   ;;
16551   cygwin* | mingw*)
16552     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16553   ;;
16554   *)
16555     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16556   ;;
16557   esac
16558
16559 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16560 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16561 test "$ld_shlibs_CXX" = no && can_build_shared=no
16562
16563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16564 if test "$GCC" = yes; then
16565   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16566 fi
16567
16568 #
16569 # Do we need to explicitly link libc?
16570 #
16571 case "x$archive_cmds_need_lc_CXX" in
16572 x|xyes)
16573   # Assume -lc should be added
16574   archive_cmds_need_lc_CXX=yes
16575
16576   if test "$enable_shared" = yes && test "$GCC" = yes; then
16577     case $archive_cmds_CXX in
16578     *'~'*)
16579       # FIXME: we may have to deal with multi-command sequences.
16580       ;;
16581     '$CC '*)
16582       # Test whether the compiler implicitly links with -lc since on some
16583       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16584       # to ld, don't add -lc before -lgcc.
16585       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16586 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16587       $rm conftest*
16588       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16589
16590       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591   (eval $ac_compile) 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } 2>conftest.err; then
16595         soname=conftest
16596         lib=conftest
16597         libobjs=conftest.$ac_objext
16598         deplibs=
16599         wl=$lt_prog_compiler_wl_CXX
16600         compiler_flags=-v
16601         linker_flags=-v
16602         verstring=
16603         output_objdir=.
16604         libname=conftest
16605         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16606         allow_undefined_flag_CXX=
16607         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16608   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }
16612         then
16613           archive_cmds_need_lc_CXX=no
16614         else
16615           archive_cmds_need_lc_CXX=yes
16616         fi
16617         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16618       else
16619         cat conftest.err 1>&5
16620       fi
16621       $rm conftest*
16622       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16623 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16624       ;;
16625     esac
16626   fi
16627   ;;
16628 esac
16629
16630 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16631 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16632 library_names_spec=
16633 libname_spec='lib$name'
16634 soname_spec=
16635 shrext_cmds=".so"
16636 postinstall_cmds=
16637 postuninstall_cmds=
16638 finish_cmds=
16639 finish_eval=
16640 shlibpath_var=
16641 shlibpath_overrides_runpath=unknown
16642 version_type=none
16643 dynamic_linker="$host_os ld.so"
16644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16645 if test "$GCC" = yes; then
16646   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16647   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16648     # if the path contains ";" then we assume it to be the separator
16649     # otherwise default to the standard path separator (i.e. ":") - it is
16650     # assumed that no part of a normal pathname contains ";" but that should
16651     # okay in the real world where ";" in dirpaths is itself problematic.
16652     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16653   else
16654     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16655   fi
16656 else
16657   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16658 fi
16659 need_lib_prefix=unknown
16660 hardcode_into_libs=no
16661
16662 # when you set need_version to no, make sure it does not cause -set_version
16663 # flags to be left without arguments
16664 need_version=unknown
16665
16666 case $host_os in
16667 aix3*)
16668   version_type=linux
16669   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16670   shlibpath_var=LIBPATH
16671
16672   # AIX 3 has no versioning support, so we append a major version to the name.
16673   soname_spec='${libname}${release}${shared_ext}$major'
16674   ;;
16675
16676 aix4* | aix5*)
16677   version_type=linux
16678   need_lib_prefix=no
16679   need_version=no
16680   hardcode_into_libs=yes
16681   if test "$host_cpu" = ia64; then
16682     # AIX 5 supports IA64
16683     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16684     shlibpath_var=LD_LIBRARY_PATH
16685   else
16686     # With GCC up to 2.95.x, collect2 would create an import file
16687     # for dependence libraries.  The import file would start with
16688     # the line `#! .'.  This would cause the generated library to
16689     # depend on `.', always an invalid library.  This was fixed in
16690     # development snapshots of GCC prior to 3.0.
16691     case $host_os in
16692       aix4 | aix4.[01] | aix4.[01].*)
16693       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16694            echo ' yes '
16695            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16696         :
16697       else
16698         can_build_shared=no
16699       fi
16700       ;;
16701     esac
16702     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16703     # soname into executable. Probably we can add versioning support to
16704     # collect2, so additional links can be useful in future.
16705     if test "$aix_use_runtimelinking" = yes; then
16706       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16707       # instead of lib<name>.a to let people know that these are not
16708       # typical AIX shared libraries.
16709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710     else
16711       # We preserve .a as extension for shared libraries through AIX4.2
16712       # and later when we are not doing run time linking.
16713       library_names_spec='${libname}${release}.a $libname.a'
16714       soname_spec='${libname}${release}${shared_ext}$major'
16715     fi
16716     shlibpath_var=LIBPATH
16717   fi
16718   ;;
16719
16720 amigaos*)
16721   library_names_spec='$libname.ixlibrary $libname.a'
16722   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16723   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'
16724   ;;
16725
16726 beos*)
16727   library_names_spec='${libname}${shared_ext}'
16728   dynamic_linker="$host_os ld.so"
16729   shlibpath_var=LIBRARY_PATH
16730   ;;
16731
16732 bsdi[45]*)
16733   version_type=linux
16734   need_version=no
16735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736   soname_spec='${libname}${release}${shared_ext}$major'
16737   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16738   shlibpath_var=LD_LIBRARY_PATH
16739   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16740   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16741   # the default ld.so.conf also contains /usr/contrib/lib and
16742   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16743   # libtool to hard-code these into programs
16744   ;;
16745
16746 cygwin* | mingw* | pw32*)
16747   version_type=windows
16748   shrext_cmds=".dll"
16749   need_version=no
16750   need_lib_prefix=no
16751
16752   case $GCC,$host_os in
16753   yes,cygwin* | yes,mingw* | yes,pw32*)
16754     library_names_spec='$libname.dll.a'
16755     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16756     postinstall_cmds='base_file=`basename \${file}`~
16757       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16758       dldir=$destdir/`dirname \$dlpath`~
16759       test -d \$dldir || mkdir -p \$dldir~
16760       $install_prog $dir/$dlname \$dldir/$dlname'
16761     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16762       dlpath=$dir/\$dldll~
16763        $rm \$dlpath'
16764     shlibpath_overrides_runpath=yes
16765
16766     case $host_os in
16767     cygwin*)
16768       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16769       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16770       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16771       ;;
16772     mingw*)
16773       # MinGW DLLs use traditional 'lib' prefix
16774       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16775       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16776       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16777         # It is most probably a Windows format PATH printed by
16778         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16779         # path with ; separators, and with drive letters. We can handle the
16780         # drive letters (cygwin fileutils understands them), so leave them,
16781         # especially as we might pass files found there to a mingw objdump,
16782         # which wouldn't understand a cygwinified path. Ahh.
16783         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16784       else
16785         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16786       fi
16787       ;;
16788     pw32*)
16789       # pw32 DLLs use 'pw' prefix rather than 'lib'
16790       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16791       ;;
16792     esac
16793     ;;
16794
16795   *)
16796     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16797     ;;
16798   esac
16799   dynamic_linker='Win32 ld.exe'
16800   # FIXME: first we should search . and the directory the executable is in
16801   shlibpath_var=PATH
16802   ;;
16803
16804 darwin* | rhapsody*)
16805   dynamic_linker="$host_os dyld"
16806   version_type=darwin
16807   need_lib_prefix=no
16808   need_version=no
16809   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16810   soname_spec='${libname}${release}${major}$shared_ext'
16811   shlibpath_overrides_runpath=yes
16812   shlibpath_var=DYLD_LIBRARY_PATH
16813   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16814   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16815   if test "$GCC" = yes; then
16816     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"`
16817   else
16818     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16819   fi
16820   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16821   ;;
16822
16823 dgux*)
16824   version_type=linux
16825   need_lib_prefix=no
16826   need_version=no
16827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16828   soname_spec='${libname}${release}${shared_ext}$major'
16829   shlibpath_var=LD_LIBRARY_PATH
16830   ;;
16831
16832 freebsd1*)
16833   dynamic_linker=no
16834   ;;
16835
16836 kfreebsd*-gnu)
16837   version_type=linux
16838   need_lib_prefix=no
16839   need_version=no
16840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16841   soname_spec='${libname}${release}${shared_ext}$major'
16842   shlibpath_var=LD_LIBRARY_PATH
16843   shlibpath_overrides_runpath=no
16844   hardcode_into_libs=yes
16845   dynamic_linker='GNU ld.so'
16846   ;;
16847
16848 freebsd*)
16849   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16850   version_type=freebsd-$objformat
16851   case $version_type in
16852     freebsd-elf*)
16853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16854       need_version=no
16855       need_lib_prefix=no
16856       ;;
16857     freebsd-*)
16858       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16859       need_version=yes
16860       ;;
16861   esac
16862   shlibpath_var=LD_LIBRARY_PATH
16863   case $host_os in
16864   freebsd2*)
16865     shlibpath_overrides_runpath=yes
16866     ;;
16867   freebsd3.01* | freebsdelf3.01*)
16868     shlibpath_overrides_runpath=yes
16869     hardcode_into_libs=yes
16870     ;;
16871   *) # from 3.2 on
16872     shlibpath_overrides_runpath=no
16873     hardcode_into_libs=yes
16874     ;;
16875   esac
16876   ;;
16877
16878 gnu*)
16879   version_type=linux
16880   need_lib_prefix=no
16881   need_version=no
16882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16883   soname_spec='${libname}${release}${shared_ext}$major'
16884   shlibpath_var=LD_LIBRARY_PATH
16885   hardcode_into_libs=yes
16886   ;;
16887
16888 hpux9* | hpux10* | hpux11*)
16889   # Give a soname corresponding to the major version so that dld.sl refuses to
16890   # link against other versions.
16891   version_type=sunos
16892   need_lib_prefix=no
16893   need_version=no
16894   case "$host_cpu" in
16895   ia64*)
16896     shrext_cmds='.so'
16897     hardcode_into_libs=yes
16898     dynamic_linker="$host_os dld.so"
16899     shlibpath_var=LD_LIBRARY_PATH
16900     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902     soname_spec='${libname}${release}${shared_ext}$major'
16903     if test "X$HPUX_IA64_MODE" = X32; then
16904       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16905     else
16906       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16907     fi
16908     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16909     ;;
16910    hppa*64*)
16911      shrext_cmds='.sl'
16912      hardcode_into_libs=yes
16913      dynamic_linker="$host_os dld.sl"
16914      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16915      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917      soname_spec='${libname}${release}${shared_ext}$major'
16918      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16919      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16920      ;;
16921    *)
16922     shrext_cmds='.sl'
16923     dynamic_linker="$host_os dld.sl"
16924     shlibpath_var=SHLIB_PATH
16925     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927     soname_spec='${libname}${release}${shared_ext}$major'
16928     ;;
16929   esac
16930   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16931   postinstall_cmds='chmod 555 $lib'
16932   ;;
16933
16934 irix5* | irix6* | nonstopux*)
16935   case $host_os in
16936     nonstopux*) version_type=nonstopux ;;
16937     *)
16938         if test "$lt_cv_prog_gnu_ld" = yes; then
16939                 version_type=linux
16940         else
16941                 version_type=irix
16942         fi ;;
16943   esac
16944   need_lib_prefix=no
16945   need_version=no
16946   soname_spec='${libname}${release}${shared_ext}$major'
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16948   case $host_os in
16949   irix5* | nonstopux*)
16950     libsuff= shlibsuff=
16951     ;;
16952   *)
16953     case $LD in # libtool.m4 will add one of these switches to LD
16954     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16955       libsuff= shlibsuff= libmagic=32-bit;;
16956     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16957       libsuff=32 shlibsuff=N32 libmagic=N32;;
16958     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16959       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16960     *) libsuff= shlibsuff= libmagic=never-match;;
16961     esac
16962     ;;
16963   esac
16964   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16965   shlibpath_overrides_runpath=no
16966   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16967   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16968   hardcode_into_libs=yes
16969   ;;
16970
16971 # No shared lib support for Linux oldld, aout, or coff.
16972 linux*oldld* | linux*aout* | linux*coff*)
16973   dynamic_linker=no
16974   ;;
16975
16976 # This must be Linux ELF.
16977 linux*)
16978   version_type=linux
16979   need_lib_prefix=no
16980   need_version=no
16981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982   soname_spec='${libname}${release}${shared_ext}$major'
16983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16984   shlibpath_var=LD_LIBRARY_PATH
16985   shlibpath_overrides_runpath=no
16986   # This implies no fast_install, which is unacceptable.
16987   # Some rework will be needed to allow for fast_install
16988   # before this can be enabled.
16989   hardcode_into_libs=yes
16990
16991   # Append ld.so.conf contents to the search path
16992   if test -f /etc/ld.so.conf; then
16993     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16994     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16995   fi
16996
16997   # We used to test for /lib/ld.so.1 and disable shared libraries on
16998   # powerpc, because MkLinux only supported shared libraries with the
16999   # GNU dynamic linker.  Since this was broken with cross compilers,
17000   # most powerpc-linux boxes support dynamic linking these days and
17001   # people can always --disable-shared, the test was removed, and we
17002   # assume the GNU/Linux dynamic linker is in use.
17003   dynamic_linker='GNU/Linux ld.so'
17004   ;;
17005
17006 knetbsd*-gnu)
17007   version_type=linux
17008   need_lib_prefix=no
17009   need_version=no
17010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17011   soname_spec='${libname}${release}${shared_ext}$major'
17012   shlibpath_var=LD_LIBRARY_PATH
17013   shlibpath_overrides_runpath=no
17014   hardcode_into_libs=yes
17015   dynamic_linker='GNU ld.so'
17016   ;;
17017
17018 netbsd*)
17019   version_type=sunos
17020   need_lib_prefix=no
17021   need_version=no
17022   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17024     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17025     dynamic_linker='NetBSD (a.out) ld.so'
17026   else
17027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17028     soname_spec='${libname}${release}${shared_ext}$major'
17029     dynamic_linker='NetBSD ld.elf_so'
17030   fi
17031   shlibpath_var=LD_LIBRARY_PATH
17032   shlibpath_overrides_runpath=yes
17033   hardcode_into_libs=yes
17034   ;;
17035
17036 newsos6)
17037   version_type=linux
17038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039   shlibpath_var=LD_LIBRARY_PATH
17040   shlibpath_overrides_runpath=yes
17041   ;;
17042
17043 nto-qnx*)
17044   version_type=linux
17045   need_lib_prefix=no
17046   need_version=no
17047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048   soname_spec='${libname}${release}${shared_ext}$major'
17049   shlibpath_var=LD_LIBRARY_PATH
17050   shlibpath_overrides_runpath=yes
17051   ;;
17052
17053 openbsd*)
17054   version_type=sunos
17055   need_lib_prefix=no
17056   need_version=no
17057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17058   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17059   shlibpath_var=LD_LIBRARY_PATH
17060   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17061     case $host_os in
17062       openbsd2.[89] | openbsd2.[89].*)
17063         shlibpath_overrides_runpath=no
17064         ;;
17065       *)
17066         shlibpath_overrides_runpath=yes
17067         ;;
17068       esac
17069   else
17070     shlibpath_overrides_runpath=yes
17071   fi
17072   ;;
17073
17074 os2*)
17075   libname_spec='$name'
17076   shrext_cmds=".dll"
17077   need_lib_prefix=no
17078   library_names_spec='$libname${shared_ext} $libname.a'
17079   dynamic_linker='OS/2 ld.exe'
17080   shlibpath_var=LIBPATH
17081   ;;
17082
17083 osf3* | osf4* | osf5*)
17084   version_type=osf
17085   need_lib_prefix=no
17086   need_version=no
17087   soname_spec='${libname}${release}${shared_ext}$major'
17088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17091   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17092   ;;
17093
17094 sco3.2v5*)
17095   version_type=osf
17096   soname_spec='${libname}${release}${shared_ext}$major'
17097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098   shlibpath_var=LD_LIBRARY_PATH
17099   ;;
17100
17101 solaris*)
17102   version_type=linux
17103   need_lib_prefix=no
17104   need_version=no
17105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106   soname_spec='${libname}${release}${shared_ext}$major'
17107   shlibpath_var=LD_LIBRARY_PATH
17108   shlibpath_overrides_runpath=yes
17109   hardcode_into_libs=yes
17110   # ldd complains unless libraries are executable
17111   postinstall_cmds='chmod +x $lib'
17112   ;;
17113
17114 sunos4*)
17115   version_type=sunos
17116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17117   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17118   shlibpath_var=LD_LIBRARY_PATH
17119   shlibpath_overrides_runpath=yes
17120   if test "$with_gnu_ld" = yes; then
17121     need_lib_prefix=no
17122   fi
17123   need_version=yes
17124   ;;
17125
17126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17127   version_type=linux
17128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129   soname_spec='${libname}${release}${shared_ext}$major'
17130   shlibpath_var=LD_LIBRARY_PATH
17131   case $host_vendor in
17132     sni)
17133       shlibpath_overrides_runpath=no
17134       need_lib_prefix=no
17135       export_dynamic_flag_spec='${wl}-Blargedynsym'
17136       runpath_var=LD_RUN_PATH
17137       ;;
17138     siemens)
17139       need_lib_prefix=no
17140       ;;
17141     motorola)
17142       need_lib_prefix=no
17143       need_version=no
17144       shlibpath_overrides_runpath=no
17145       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17146       ;;
17147   esac
17148   ;;
17149
17150 sysv4*MP*)
17151   if test -d /usr/nec ;then
17152     version_type=linux
17153     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17154     soname_spec='$libname${shared_ext}.$major'
17155     shlibpath_var=LD_LIBRARY_PATH
17156   fi
17157   ;;
17158
17159 uts4*)
17160   version_type=linux
17161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162   soname_spec='${libname}${release}${shared_ext}$major'
17163   shlibpath_var=LD_LIBRARY_PATH
17164   ;;
17165
17166 *)
17167   dynamic_linker=no
17168   ;;
17169 esac
17170 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17171 echo "${ECHO_T}$dynamic_linker" >&6
17172 test "$dynamic_linker" = no && can_build_shared=no
17173
17174 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17176 hardcode_action_CXX=
17177 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17178    test -n "$runpath_var_CXX" || \
17179    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17180
17181   # We can hardcode non-existant directories.
17182   if test "$hardcode_direct_CXX" != no &&
17183      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17184      # have to relink, otherwise we might link with an installed library
17185      # when we should be linking with a yet-to-be-installed one
17186      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17187      test "$hardcode_minus_L_CXX" != no; then
17188     # Linking always hardcodes the temporary library directory.
17189     hardcode_action_CXX=relink
17190   else
17191     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17192     hardcode_action_CXX=immediate
17193   fi
17194 else
17195   # We cannot hardcode anything, or else we can only hardcode existing
17196   # directories.
17197   hardcode_action_CXX=unsupported
17198 fi
17199 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17200 echo "${ECHO_T}$hardcode_action_CXX" >&6
17201
17202 if test "$hardcode_action_CXX" = relink; then
17203   # Fast installation is not supported
17204   enable_fast_install=no
17205 elif test "$shlibpath_overrides_runpath" = yes ||
17206      test "$enable_shared" = no; then
17207   # Fast installation is not necessary
17208   enable_fast_install=needless
17209 fi
17210
17211 striplib=
17212 old_striplib=
17213 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17214 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17215 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17216   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17217   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17218   echo "$as_me:$LINENO: result: yes" >&5
17219 echo "${ECHO_T}yes" >&6
17220 else
17221 # FIXME - insert some real tests, host_os isn't really good enough
17222   case $host_os in
17223    darwin*)
17224        if test -n "$STRIP" ; then
17225          striplib="$STRIP -x"
17226          echo "$as_me:$LINENO: result: yes" >&5
17227 echo "${ECHO_T}yes" >&6
17228        else
17229   echo "$as_me:$LINENO: result: no" >&5
17230 echo "${ECHO_T}no" >&6
17231 fi
17232        ;;
17233    *)
17234   echo "$as_me:$LINENO: result: no" >&5
17235 echo "${ECHO_T}no" >&6
17236     ;;
17237   esac
17238 fi
17239
17240 if test "x$enable_dlopen" != xyes; then
17241   enable_dlopen=unknown
17242   enable_dlopen_self=unknown
17243   enable_dlopen_self_static=unknown
17244 else
17245   lt_cv_dlopen=no
17246   lt_cv_dlopen_libs=
17247
17248   case $host_os in
17249   beos*)
17250     lt_cv_dlopen="load_add_on"
17251     lt_cv_dlopen_libs=
17252     lt_cv_dlopen_self=yes
17253     ;;
17254
17255   mingw* | pw32*)
17256     lt_cv_dlopen="LoadLibrary"
17257     lt_cv_dlopen_libs=
17258    ;;
17259
17260   cygwin*)
17261     lt_cv_dlopen="dlopen"
17262     lt_cv_dlopen_libs=
17263    ;;
17264
17265   darwin*)
17266   # if libdl is installed we need to link against it
17267     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17268 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   ac_check_lib_save_LIBS=$LIBS
17273 LIBS="-ldl  $LIBS"
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280
17281 /* Override any gcc2 internal prototype to avoid an error.  */
17282 #ifdef __cplusplus
17283 extern "C"
17284 #endif
17285 /* We use char because int might match the return type of a gcc2
17286    builtin and then its argument prototype would still apply.  */
17287 char dlopen ();
17288 int
17289 main ()
17290 {
17291 dlopen ();
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298   (eval $ac_link) 2>conftest.er1
17299   ac_status=$?
17300   grep -v '^ *+' conftest.er1 >conftest.err
17301   rm -f conftest.er1
17302   cat conftest.err >&5
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } &&
17305          { ac_try='test -z "$ac_cxx_werror_flag"
17306                          || test ! -s conftest.err'
17307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308   (eval $ac_try) 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); }; } &&
17312          { ac_try='test -s conftest$ac_exeext'
17313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314   (eval $ac_try) 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); }; }; then
17318   ac_cv_lib_dl_dlopen=yes
17319 else
17320   echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17322
17323 ac_cv_lib_dl_dlopen=no
17324 fi
17325 rm -f conftest.err conftest.$ac_objext \
17326       conftest$ac_exeext conftest.$ac_ext
17327 LIBS=$ac_check_lib_save_LIBS
17328 fi
17329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17330 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17331 if test $ac_cv_lib_dl_dlopen = yes; then
17332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17333 else
17334
17335     lt_cv_dlopen="dyld"
17336     lt_cv_dlopen_libs=
17337     lt_cv_dlopen_self=yes
17338
17339 fi
17340
17341    ;;
17342
17343   *)
17344     echo "$as_me:$LINENO: checking for shl_load" >&5
17345 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17346 if test "${ac_cv_func_shl_load+set}" = set; then
17347   echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349   cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h.  */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h.  */
17355 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17357 #define shl_load innocuous_shl_load
17358
17359 /* System header to define __stub macros and hopefully few prototypes,
17360     which can conflict with char shl_load (); below.
17361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17362     <limits.h> exists even on freestanding compilers.  */
17363
17364 #ifdef __STDC__
17365 # include <limits.h>
17366 #else
17367 # include <assert.h>
17368 #endif
17369
17370 #undef shl_load
17371
17372 /* Override any gcc2 internal prototype to avoid an error.  */
17373 #ifdef __cplusplus
17374 extern "C"
17375 {
17376 #endif
17377 /* We use char because int might match the return type of a gcc2
17378    builtin and then its argument prototype would still apply.  */
17379 char shl_load ();
17380 /* The GNU C library defines this for functions which it implements
17381     to always fail with ENOSYS.  Some functions are actually named
17382     something starting with __ and the normal name is an alias.  */
17383 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17384 choke me
17385 #else
17386 char (*f) () = shl_load;
17387 #endif
17388 #ifdef __cplusplus
17389 }
17390 #endif
17391
17392 int
17393 main ()
17394 {
17395 return f != shl_load;
17396   ;
17397   return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402   (eval $ac_link) 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } &&
17409          { ac_try='test -z "$ac_cxx_werror_flag"
17410                          || test ! -s conftest.err'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; } &&
17416          { ac_try='test -s conftest$ac_exeext'
17417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418   (eval $ac_try) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ac_cv_func_shl_load=yes
17423 else
17424   echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427 ac_cv_func_shl_load=no
17428 fi
17429 rm -f conftest.err conftest.$ac_objext \
17430       conftest$ac_exeext conftest.$ac_ext
17431 fi
17432 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17433 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17434 if test $ac_cv_func_shl_load = yes; then
17435   lt_cv_dlopen="shl_load"
17436 else
17437   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17438 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17439 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17440   echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442   ac_check_lib_save_LIBS=$LIBS
17443 LIBS="-ldld  $LIBS"
17444 cat >conftest.$ac_ext <<_ACEOF
17445 /* confdefs.h.  */
17446 _ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h.  */
17450
17451 /* Override any gcc2 internal prototype to avoid an error.  */
17452 #ifdef __cplusplus
17453 extern "C"
17454 #endif
17455 /* We use char because int might match the return type of a gcc2
17456    builtin and then its argument prototype would still apply.  */
17457 char shl_load ();
17458 int
17459 main ()
17460 {
17461 shl_load ();
17462   ;
17463   return 0;
17464 }
17465 _ACEOF
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17468   (eval $ac_link) 2>conftest.er1
17469   ac_status=$?
17470   grep -v '^ *+' conftest.er1 >conftest.err
17471   rm -f conftest.er1
17472   cat conftest.err >&5
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } &&
17475          { ac_try='test -z "$ac_cxx_werror_flag"
17476                          || test ! -s conftest.err'
17477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478   (eval $ac_try) 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; } &&
17482          { ac_try='test -s conftest$ac_exeext'
17483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484   (eval $ac_try) 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); }; }; then
17488   ac_cv_lib_dld_shl_load=yes
17489 else
17490   echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 ac_cv_lib_dld_shl_load=no
17494 fi
17495 rm -f conftest.err conftest.$ac_objext \
17496       conftest$ac_exeext conftest.$ac_ext
17497 LIBS=$ac_check_lib_save_LIBS
17498 fi
17499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17500 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17501 if test $ac_cv_lib_dld_shl_load = yes; then
17502   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17503 else
17504   echo "$as_me:$LINENO: checking for dlopen" >&5
17505 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17506 if test "${ac_cv_func_dlopen+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17517 #define dlopen innocuous_dlopen
17518
17519 /* System header to define __stub macros and hopefully few prototypes,
17520     which can conflict with char dlopen (); below.
17521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17522     <limits.h> exists even on freestanding compilers.  */
17523
17524 #ifdef __STDC__
17525 # include <limits.h>
17526 #else
17527 # include <assert.h>
17528 #endif
17529
17530 #undef dlopen
17531
17532 /* Override any gcc2 internal prototype to avoid an error.  */
17533 #ifdef __cplusplus
17534 extern "C"
17535 {
17536 #endif
17537 /* We use char because int might match the return type of a gcc2
17538    builtin and then its argument prototype would still apply.  */
17539 char dlopen ();
17540 /* The GNU C library defines this for functions which it implements
17541     to always fail with ENOSYS.  Some functions are actually named
17542     something starting with __ and the normal name is an alias.  */
17543 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17544 choke me
17545 #else
17546 char (*f) () = dlopen;
17547 #endif
17548 #ifdef __cplusplus
17549 }
17550 #endif
17551
17552 int
17553 main ()
17554 {
17555 return f != dlopen;
17556   ;
17557   return 0;
17558 }
17559 _ACEOF
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562   (eval $ac_link) 2>conftest.er1
17563   ac_status=$?
17564   grep -v '^ *+' conftest.er1 >conftest.err
17565   rm -f conftest.er1
17566   cat conftest.err >&5
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); } &&
17569          { ac_try='test -z "$ac_cxx_werror_flag"
17570                          || test ! -s conftest.err'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; } &&
17576          { ac_try='test -s conftest$ac_exeext'
17577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578   (eval $ac_try) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; }; then
17582   ac_cv_func_dlopen=yes
17583 else
17584   echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587 ac_cv_func_dlopen=no
17588 fi
17589 rm -f conftest.err conftest.$ac_objext \
17590       conftest$ac_exeext conftest.$ac_ext
17591 fi
17592 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17593 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17594 if test $ac_cv_func_dlopen = yes; then
17595   lt_cv_dlopen="dlopen"
17596 else
17597   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17598 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17599 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   ac_check_lib_save_LIBS=$LIBS
17603 LIBS="-ldl  $LIBS"
17604 cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610
17611 /* Override any gcc2 internal prototype to avoid an error.  */
17612 #ifdef __cplusplus
17613 extern "C"
17614 #endif
17615 /* We use char because int might match the return type of a gcc2
17616    builtin and then its argument prototype would still apply.  */
17617 char dlopen ();
17618 int
17619 main ()
17620 {
17621 dlopen ();
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628   (eval $ac_link) 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } &&
17635          { ac_try='test -z "$ac_cxx_werror_flag"
17636                          || test ! -s conftest.err'
17637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638   (eval $ac_try) 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; } &&
17642          { ac_try='test -s conftest$ac_exeext'
17643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644   (eval $ac_try) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; }; then
17648   ac_cv_lib_dl_dlopen=yes
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 ac_cv_lib_dl_dlopen=no
17654 fi
17655 rm -f conftest.err conftest.$ac_objext \
17656       conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17658 fi
17659 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17661 if test $ac_cv_lib_dl_dlopen = yes; then
17662   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17663 else
17664   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17665 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17666 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17667   echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669   ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-lsvld  $LIBS"
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677
17678 /* Override any gcc2 internal prototype to avoid an error.  */
17679 #ifdef __cplusplus
17680 extern "C"
17681 #endif
17682 /* We use char because int might match the return type of a gcc2
17683    builtin and then its argument prototype would still apply.  */
17684 char dlopen ();
17685 int
17686 main ()
17687 {
17688 dlopen ();
17689   ;
17690   return 0;
17691 }
17692 _ACEOF
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695   (eval $ac_link) 2>conftest.er1
17696   ac_status=$?
17697   grep -v '^ *+' conftest.er1 >conftest.err
17698   rm -f conftest.er1
17699   cat conftest.err >&5
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); } &&
17702          { ac_try='test -z "$ac_cxx_werror_flag"
17703                          || test ! -s conftest.err'
17704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705   (eval $ac_try) 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }; } &&
17709          { ac_try='test -s conftest$ac_exeext'
17710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711   (eval $ac_try) 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; }; then
17715   ac_cv_lib_svld_dlopen=yes
17716 else
17717   echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17719
17720 ac_cv_lib_svld_dlopen=no
17721 fi
17722 rm -f conftest.err conftest.$ac_objext \
17723       conftest$ac_exeext conftest.$ac_ext
17724 LIBS=$ac_check_lib_save_LIBS
17725 fi
17726 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17727 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17728 if test $ac_cv_lib_svld_dlopen = yes; then
17729   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17730 else
17731   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17732 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17733 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736   ac_check_lib_save_LIBS=$LIBS
17737 LIBS="-ldld  $LIBS"
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h.  */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h.  */
17744
17745 /* Override any gcc2 internal prototype to avoid an error.  */
17746 #ifdef __cplusplus
17747 extern "C"
17748 #endif
17749 /* We use char because int might match the return type of a gcc2
17750    builtin and then its argument prototype would still apply.  */
17751 char dld_link ();
17752 int
17753 main ()
17754 {
17755 dld_link ();
17756   ;
17757   return 0;
17758 }
17759 _ACEOF
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17762   (eval $ac_link) 2>conftest.er1
17763   ac_status=$?
17764   grep -v '^ *+' conftest.er1 >conftest.err
17765   rm -f conftest.er1
17766   cat conftest.err >&5
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } &&
17769          { ac_try='test -z "$ac_cxx_werror_flag"
17770                          || test ! -s conftest.err'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; } &&
17776          { ac_try='test -s conftest$ac_exeext'
17777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778   (eval $ac_try) 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; }; then
17782   ac_cv_lib_dld_dld_link=yes
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787 ac_cv_lib_dld_dld_link=no
17788 fi
17789 rm -f conftest.err conftest.$ac_objext \
17790       conftest$ac_exeext conftest.$ac_ext
17791 LIBS=$ac_check_lib_save_LIBS
17792 fi
17793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17794 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17795 if test $ac_cv_lib_dld_dld_link = yes; then
17796   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17797 fi
17798
17799
17800 fi
17801
17802
17803 fi
17804
17805
17806 fi
17807
17808
17809 fi
17810
17811
17812 fi
17813
17814     ;;
17815   esac
17816
17817   if test "x$lt_cv_dlopen" != xno; then
17818     enable_dlopen=yes
17819   else
17820     enable_dlopen=no
17821   fi
17822
17823   case $lt_cv_dlopen in
17824   dlopen)
17825     save_CPPFLAGS="$CPPFLAGS"
17826     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17827
17828     save_LDFLAGS="$LDFLAGS"
17829     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17830
17831     save_LIBS="$LIBS"
17832     LIBS="$lt_cv_dlopen_libs $LIBS"
17833
17834     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17835 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17836 if test "${lt_cv_dlopen_self+set}" = set; then
17837   echo $ECHO_N "(cached) $ECHO_C" >&6
17838 else
17839           if test "$cross_compiling" = yes; then :
17840   lt_cv_dlopen_self=cross
17841 else
17842   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17843   lt_status=$lt_dlunknown
17844   cat > conftest.$ac_ext <<EOF
17845 #line 17845 "configure"
17846 #include "confdefs.h"
17847
17848 #if HAVE_DLFCN_H
17849 #include <dlfcn.h>
17850 #endif
17851
17852 #include <stdio.h>
17853
17854 #ifdef RTLD_GLOBAL
17855 #  define LT_DLGLOBAL           RTLD_GLOBAL
17856 #else
17857 #  ifdef DL_GLOBAL
17858 #    define LT_DLGLOBAL         DL_GLOBAL
17859 #  else
17860 #    define LT_DLGLOBAL         0
17861 #  endif
17862 #endif
17863
17864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17865    find out it does not work in some platform. */
17866 #ifndef LT_DLLAZY_OR_NOW
17867 #  ifdef RTLD_LAZY
17868 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17869 #  else
17870 #    ifdef DL_LAZY
17871 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17872 #    else
17873 #      ifdef RTLD_NOW
17874 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17875 #      else
17876 #        ifdef DL_NOW
17877 #          define LT_DLLAZY_OR_NOW      DL_NOW
17878 #        else
17879 #          define LT_DLLAZY_OR_NOW      0
17880 #        endif
17881 #      endif
17882 #    endif
17883 #  endif
17884 #endif
17885
17886 #ifdef __cplusplus
17887 extern "C" void exit (int);
17888 #endif
17889
17890 void fnord() { int i=42;}
17891 int main ()
17892 {
17893   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17894   int status = $lt_dlunknown;
17895
17896   if (self)
17897     {
17898       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17899       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17900       /* dlclose (self); */
17901     }
17902
17903     exit (status);
17904 }
17905 EOF
17906   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907   (eval $ac_link) 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17911     (./conftest; exit; ) 2>/dev/null
17912     lt_status=$?
17913     case x$lt_status in
17914       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17915       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17916       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17917     esac
17918   else :
17919     # compilation failed
17920     lt_cv_dlopen_self=no
17921   fi
17922 fi
17923 rm -fr conftest*
17924
17925
17926 fi
17927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17928 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17929
17930     if test "x$lt_cv_dlopen_self" = xyes; then
17931       LDFLAGS="$LDFLAGS $link_static_flag"
17932       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17933 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17934 if test "${lt_cv_dlopen_self_static+set}" = set; then
17935   echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937           if test "$cross_compiling" = yes; then :
17938   lt_cv_dlopen_self_static=cross
17939 else
17940   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17941   lt_status=$lt_dlunknown
17942   cat > conftest.$ac_ext <<EOF
17943 #line 17943 "configure"
17944 #include "confdefs.h"
17945
17946 #if HAVE_DLFCN_H
17947 #include <dlfcn.h>
17948 #endif
17949
17950 #include <stdio.h>
17951
17952 #ifdef RTLD_GLOBAL
17953 #  define LT_DLGLOBAL           RTLD_GLOBAL
17954 #else
17955 #  ifdef DL_GLOBAL
17956 #    define LT_DLGLOBAL         DL_GLOBAL
17957 #  else
17958 #    define LT_DLGLOBAL         0
17959 #  endif
17960 #endif
17961
17962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17963    find out it does not work in some platform. */
17964 #ifndef LT_DLLAZY_OR_NOW
17965 #  ifdef RTLD_LAZY
17966 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17967 #  else
17968 #    ifdef DL_LAZY
17969 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17970 #    else
17971 #      ifdef RTLD_NOW
17972 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17973 #      else
17974 #        ifdef DL_NOW
17975 #          define LT_DLLAZY_OR_NOW      DL_NOW
17976 #        else
17977 #          define LT_DLLAZY_OR_NOW      0
17978 #        endif
17979 #      endif
17980 #    endif
17981 #  endif
17982 #endif
17983
17984 #ifdef __cplusplus
17985 extern "C" void exit (int);
17986 #endif
17987
17988 void fnord() { int i=42;}
17989 int main ()
17990 {
17991   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17992   int status = $lt_dlunknown;
17993
17994   if (self)
17995     {
17996       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17997       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17998       /* dlclose (self); */
17999     }
18000
18001     exit (status);
18002 }
18003 EOF
18004   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18005   (eval $ac_link) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18009     (./conftest; exit; ) 2>/dev/null
18010     lt_status=$?
18011     case x$lt_status in
18012       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18013       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18014       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18015     esac
18016   else :
18017     # compilation failed
18018     lt_cv_dlopen_self_static=no
18019   fi
18020 fi
18021 rm -fr conftest*
18022
18023
18024 fi
18025 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18026 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18027     fi
18028
18029     CPPFLAGS="$save_CPPFLAGS"
18030     LDFLAGS="$save_LDFLAGS"
18031     LIBS="$save_LIBS"
18032     ;;
18033   esac
18034
18035   case $lt_cv_dlopen_self in
18036   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18037   *) enable_dlopen_self=unknown ;;
18038   esac
18039
18040   case $lt_cv_dlopen_self_static in
18041   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18042   *) enable_dlopen_self_static=unknown ;;
18043   esac
18044 fi
18045
18046
18047 # The else clause should only fire when bootstrapping the
18048 # libtool distribution, otherwise you forgot to ship ltmain.sh
18049 # with your package, and you will get complaints that there are
18050 # no rules to generate ltmain.sh.
18051 if test -f "$ltmain"; then
18052   # See if we are running on zsh, and set the options which allow our commands through
18053   # without removal of \ escapes.
18054   if test -n "${ZSH_VERSION+set}" ; then
18055     setopt NO_GLOB_SUBST
18056   fi
18057   # Now quote all the things that may contain metacharacters while being
18058   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18059   # variables and quote the copies for generation of the libtool script.
18060   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18061     SED SHELL STRIP \
18062     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18063     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18064     deplibs_check_method reload_flag reload_cmds need_locks \
18065     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18066     lt_cv_sys_global_symbol_to_c_name_address \
18067     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18068     old_postinstall_cmds old_postuninstall_cmds \
18069     compiler_CXX \
18070     CC_CXX \
18071     LD_CXX \
18072     lt_prog_compiler_wl_CXX \
18073     lt_prog_compiler_pic_CXX \
18074     lt_prog_compiler_static_CXX \
18075     lt_prog_compiler_no_builtin_flag_CXX \
18076     export_dynamic_flag_spec_CXX \
18077     thread_safe_flag_spec_CXX \
18078     whole_archive_flag_spec_CXX \
18079     enable_shared_with_static_runtimes_CXX \
18080     old_archive_cmds_CXX \
18081     old_archive_from_new_cmds_CXX \
18082     predep_objects_CXX \
18083     postdep_objects_CXX \
18084     predeps_CXX \
18085     postdeps_CXX \
18086     compiler_lib_search_path_CXX \
18087     archive_cmds_CXX \
18088     archive_expsym_cmds_CXX \
18089     postinstall_cmds_CXX \
18090     postuninstall_cmds_CXX \
18091     old_archive_from_expsyms_cmds_CXX \
18092     allow_undefined_flag_CXX \
18093     no_undefined_flag_CXX \
18094     export_symbols_cmds_CXX \
18095     hardcode_libdir_flag_spec_CXX \
18096     hardcode_libdir_flag_spec_ld_CXX \
18097     hardcode_libdir_separator_CXX \
18098     hardcode_automatic_CXX \
18099     module_cmds_CXX \
18100     module_expsym_cmds_CXX \
18101     lt_cv_prog_compiler_c_o_CXX \
18102     exclude_expsyms_CXX \
18103     include_expsyms_CXX; do
18104
18105     case $var in
18106     old_archive_cmds_CXX | \
18107     old_archive_from_new_cmds_CXX | \
18108     archive_cmds_CXX | \
18109     archive_expsym_cmds_CXX | \
18110     module_cmds_CXX | \
18111     module_expsym_cmds_CXX | \
18112     old_archive_from_expsyms_cmds_CXX | \
18113     export_symbols_cmds_CXX | \
18114     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18115     postinstall_cmds | postuninstall_cmds | \
18116     old_postinstall_cmds | old_postuninstall_cmds | \
18117     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18118       # Double-quote double-evaled strings.
18119       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18120       ;;
18121     *)
18122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18123       ;;
18124     esac
18125   done
18126
18127   case $lt_echo in
18128   *'\$0 --fallback-echo"')
18129     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18130     ;;
18131   esac
18132
18133 cfgfile="$ofile"
18134
18135   cat <<__EOF__ >> "$cfgfile"
18136 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18137
18138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18139
18140 # Shell to use when invoking shell scripts.
18141 SHELL=$lt_SHELL
18142
18143 # Whether or not to build shared libraries.
18144 build_libtool_libs=$enable_shared
18145
18146 # Whether or not to build static libraries.
18147 build_old_libs=$enable_static
18148
18149 # Whether or not to add -lc for building shared libraries.
18150 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18151
18152 # Whether or not to disallow shared libs when runtime libs are static
18153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18154
18155 # Whether or not to optimize for fast installation.
18156 fast_install=$enable_fast_install
18157
18158 # The host system.
18159 host_alias=$host_alias
18160 host=$host
18161
18162 # An echo program that does not interpret backslashes.
18163 echo=$lt_echo
18164
18165 # The archiver.
18166 AR=$lt_AR
18167 AR_FLAGS=$lt_AR_FLAGS
18168
18169 # A C compiler.
18170 LTCC=$lt_LTCC
18171
18172 # A language-specific compiler.
18173 CC=$lt_compiler_CXX
18174
18175 # Is the compiler the GNU C compiler?
18176 with_gcc=$GCC_CXX
18177
18178 # An ERE matcher.
18179 EGREP=$lt_EGREP
18180
18181 # The linker used to build libraries.
18182 LD=$lt_LD_CXX
18183
18184 # Whether we need hard or soft links.
18185 LN_S=$lt_LN_S
18186
18187 # A BSD-compatible nm program.
18188 NM=$lt_NM
18189
18190 # A symbol stripping program
18191 STRIP=$lt_STRIP
18192
18193 # Used to examine libraries when file_magic_cmd begins "file"
18194 MAGIC_CMD=$MAGIC_CMD
18195
18196 # Used on cygwin: DLL creation program.
18197 DLLTOOL="$DLLTOOL"
18198
18199 # Used on cygwin: object dumper.
18200 OBJDUMP="$OBJDUMP"
18201
18202 # Used on cygwin: assembler.
18203 AS="$AS"
18204
18205 # The name of the directory that contains temporary libtool files.
18206 objdir=$objdir
18207
18208 # How to create reloadable object files.
18209 reload_flag=$lt_reload_flag
18210 reload_cmds=$lt_reload_cmds
18211
18212 # How to pass a linker flag through the compiler.
18213 wl=$lt_lt_prog_compiler_wl_CXX
18214
18215 # Object file suffix (normally "o").
18216 objext="$ac_objext"
18217
18218 # Old archive suffix (normally "a").
18219 libext="$libext"
18220
18221 # Shared library suffix (normally ".so").
18222 shrext_cmds='$shrext_cmds'
18223
18224 # Executable file suffix (normally "").
18225 exeext="$exeext"
18226
18227 # Additional compiler flags for building library objects.
18228 pic_flag=$lt_lt_prog_compiler_pic_CXX
18229 pic_mode=$pic_mode
18230
18231 # What is the maximum length of a command?
18232 max_cmd_len=$lt_cv_sys_max_cmd_len
18233
18234 # Does compiler simultaneously support -c and -o options?
18235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18236
18237 # Must we lock files when doing compilation ?
18238 need_locks=$lt_need_locks
18239
18240 # Do we need the lib prefix for modules?
18241 need_lib_prefix=$need_lib_prefix
18242
18243 # Do we need a version for libraries?
18244 need_version=$need_version
18245
18246 # Whether dlopen is supported.
18247 dlopen_support=$enable_dlopen
18248
18249 # Whether dlopen of programs is supported.
18250 dlopen_self=$enable_dlopen_self
18251
18252 # Whether dlopen of statically linked programs is supported.
18253 dlopen_self_static=$enable_dlopen_self_static
18254
18255 # Compiler flag to prevent dynamic linking.
18256 link_static_flag=$lt_lt_prog_compiler_static_CXX
18257
18258 # Compiler flag to turn off builtin functions.
18259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18260
18261 # Compiler flag to allow reflexive dlopens.
18262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18263
18264 # Compiler flag to generate shared objects directly from archives.
18265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18266
18267 # Compiler flag to generate thread-safe objects.
18268 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18269
18270 # Library versioning type.
18271 version_type=$version_type
18272
18273 # Format of library name prefix.
18274 libname_spec=$lt_libname_spec
18275
18276 # List of archive names.  First name is the real one, the rest are links.
18277 # The last name is the one that the linker finds with -lNAME.
18278 library_names_spec=$lt_library_names_spec
18279
18280 # The coded name of the library, if different from the real name.
18281 soname_spec=$lt_soname_spec
18282
18283 # Commands used to build and install an old-style archive.
18284 RANLIB=$lt_RANLIB
18285 old_archive_cmds=$lt_old_archive_cmds_CXX
18286 old_postinstall_cmds=$lt_old_postinstall_cmds
18287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18288
18289 # Create an old-style archive from a shared archive.
18290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18291
18292 # Create a temporary old-style archive to link instead of a shared archive.
18293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18294
18295 # Commands used to build and install a shared archive.
18296 archive_cmds=$lt_archive_cmds_CXX
18297 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18298 postinstall_cmds=$lt_postinstall_cmds
18299 postuninstall_cmds=$lt_postuninstall_cmds
18300
18301 # Commands used to build a loadable module (assumed same as above if empty)
18302 module_cmds=$lt_module_cmds_CXX
18303 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18304
18305 # Commands to strip libraries.
18306 old_striplib=$lt_old_striplib
18307 striplib=$lt_striplib
18308
18309 # Dependencies to place before the objects being linked to create a
18310 # shared library.
18311 predep_objects=$lt_predep_objects_CXX
18312
18313 # Dependencies to place after the objects being linked to create a
18314 # shared library.
18315 postdep_objects=$lt_postdep_objects_CXX
18316
18317 # Dependencies to place before the objects being linked to create a
18318 # shared library.
18319 predeps=$lt_predeps_CXX
18320
18321 # Dependencies to place after the objects being linked to create a
18322 # shared library.
18323 postdeps=$lt_postdeps_CXX
18324
18325 # The library search path used internally by the compiler when linking
18326 # a shared library.
18327 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18328
18329 # Method to check whether dependent libraries are shared objects.
18330 deplibs_check_method=$lt_deplibs_check_method
18331
18332 # Command to use when deplibs_check_method == file_magic.
18333 file_magic_cmd=$lt_file_magic_cmd
18334
18335 # Flag that allows shared libraries with undefined symbols to be built.
18336 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18337
18338 # Flag that forces no undefined symbols.
18339 no_undefined_flag=$lt_no_undefined_flag_CXX
18340
18341 # Commands used to finish a libtool library installation in a directory.
18342 finish_cmds=$lt_finish_cmds
18343
18344 # Same as above, but a single script fragment to be evaled but not shown.
18345 finish_eval=$lt_finish_eval
18346
18347 # Take the output of nm and produce a listing of raw symbols and C names.
18348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18349
18350 # Transform the output of nm in a proper C declaration
18351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18352
18353 # Transform the output of nm in a C name address pair
18354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18355
18356 # This is the shared library runtime path variable.
18357 runpath_var=$runpath_var
18358
18359 # This is the shared library path variable.
18360 shlibpath_var=$shlibpath_var
18361
18362 # Is shlibpath searched before the hard-coded library search path?
18363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18364
18365 # How to hardcode a shared library path into an executable.
18366 hardcode_action=$hardcode_action_CXX
18367
18368 # Whether we should hardcode library paths into libraries.
18369 hardcode_into_libs=$hardcode_into_libs
18370
18371 # Flag to hardcode \$libdir into a binary during linking.
18372 # This must work even if \$libdir does not exist.
18373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18374
18375 # If ld is used when linking, flag to hardcode \$libdir into
18376 # a binary during linking. This must work even if \$libdir does
18377 # not exist.
18378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18379
18380 # Whether we need a single -rpath flag with a separated argument.
18381 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18382
18383 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18384 # resulting binary.
18385 hardcode_direct=$hardcode_direct_CXX
18386
18387 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18388 # resulting binary.
18389 hardcode_minus_L=$hardcode_minus_L_CXX
18390
18391 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18392 # the resulting binary.
18393 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18394
18395 # Set to yes if building a shared library automatically hardcodes DIR into the library
18396 # and all subsequent libraries and executables linked against it.
18397 hardcode_automatic=$hardcode_automatic_CXX
18398
18399 # Variables whose values should be saved in libtool wrapper scripts and
18400 # restored at relink time.
18401 variables_saved_for_relink="$variables_saved_for_relink"
18402
18403 # Whether libtool must link a program against all its dependency libraries.
18404 link_all_deplibs=$link_all_deplibs_CXX
18405
18406 # Compile-time system search path for libraries
18407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18408
18409 # Run-time system search path for libraries
18410 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18411
18412 # Fix the shell variable \$srcfile for the compiler.
18413 fix_srcfile_path="$fix_srcfile_path_CXX"
18414
18415 # Set to yes if exported symbols are required.
18416 always_export_symbols=$always_export_symbols_CXX
18417
18418 # The commands to list exported symbols.
18419 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18420
18421 # The commands to extract the exported symbol list from a shared archive.
18422 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18423
18424 # Symbols that should not be listed in the preloaded symbols.
18425 exclude_expsyms=$lt_exclude_expsyms_CXX
18426
18427 # Symbols that must always be exported.
18428 include_expsyms=$lt_include_expsyms_CXX
18429
18430 # ### END LIBTOOL TAG CONFIG: $tagname
18431
18432 __EOF__
18433
18434
18435 else
18436   # If there is no Makefile yet, we rely on a make rule to execute
18437   # `config.status --recheck' to rerun these tests and create the
18438   # libtool script then.
18439   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18440   if test -f "$ltmain_in"; then
18441     test -f Makefile && make "$ltmain"
18442   fi
18443 fi
18444
18445
18446 ac_ext=c
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18451
18452 CC=$lt_save_CC
18453 LDCXX=$LD
18454 LD=$lt_save_LD
18455 GCC=$lt_save_GCC
18456 with_gnu_ldcxx=$with_gnu_ld
18457 with_gnu_ld=$lt_save_with_gnu_ld
18458 lt_cv_path_LDCXX=$lt_cv_path_LD
18459 lt_cv_path_LD=$lt_save_path_LD
18460 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18461 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18462
18463         else
18464           tagname=""
18465         fi
18466         ;;
18467
18468       F77)
18469         if test -n "$F77" && test "X$F77" != "Xno"; then
18470
18471 ac_ext=f
18472 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18473 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18474 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18475
18476
18477 archive_cmds_need_lc_F77=no
18478 allow_undefined_flag_F77=
18479 always_export_symbols_F77=no
18480 archive_expsym_cmds_F77=
18481 export_dynamic_flag_spec_F77=
18482 hardcode_direct_F77=no
18483 hardcode_libdir_flag_spec_F77=
18484 hardcode_libdir_flag_spec_ld_F77=
18485 hardcode_libdir_separator_F77=
18486 hardcode_minus_L_F77=no
18487 hardcode_automatic_F77=no
18488 module_cmds_F77=
18489 module_expsym_cmds_F77=
18490 link_all_deplibs_F77=unknown
18491 old_archive_cmds_F77=$old_archive_cmds
18492 no_undefined_flag_F77=
18493 whole_archive_flag_spec_F77=
18494 enable_shared_with_static_runtimes_F77=no
18495
18496 # Source file extension for f77 test sources.
18497 ac_ext=f
18498
18499 # Object file extension for compiled f77 test sources.
18500 objext=o
18501 objext_F77=$objext
18502
18503 # Code to be used in simple compile tests
18504 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18505
18506 # Code to be used in simple link tests
18507 lt_simple_link_test_code="      program t\n      end\n"
18508
18509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18510
18511 # If no C compiler was specified, use CC.
18512 LTCC=${LTCC-"$CC"}
18513
18514 # Allow CC to be a program name with arguments.
18515 compiler=$CC
18516
18517
18518 # Allow CC to be a program name with arguments.
18519 lt_save_CC="$CC"
18520 CC=${F77-"f77"}
18521 compiler=$CC
18522 compiler_F77=$CC
18523 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18524
18525 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18527 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18528 echo "${ECHO_T}$can_build_shared" >&6
18529
18530 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18532 test "$can_build_shared" = "no" && enable_shared=no
18533
18534 # On AIX, shared libraries and static libraries use the same namespace, and
18535 # are all built from PIC.
18536 case "$host_os" in
18537 aix3*)
18538   test "$enable_shared" = yes && enable_static=no
18539   if test -n "$RANLIB"; then
18540     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18541     postinstall_cmds='$RANLIB $lib'
18542   fi
18543   ;;
18544 aix4* | aix5*)
18545   test "$enable_shared" = yes && enable_static=no
18546   ;;
18547 esac
18548 echo "$as_me:$LINENO: result: $enable_shared" >&5
18549 echo "${ECHO_T}$enable_shared" >&6
18550
18551 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18552 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18553 # Make sure either enable_shared or enable_static is yes.
18554 test "$enable_shared" = yes || enable_static=yes
18555 echo "$as_me:$LINENO: result: $enable_static" >&5
18556 echo "${ECHO_T}$enable_static" >&6
18557
18558 test "$ld_shlibs_F77" = no && can_build_shared=no
18559
18560 GCC_F77="$G77"
18561 LD_F77="$LD"
18562
18563 lt_prog_compiler_wl_F77=
18564 lt_prog_compiler_pic_F77=
18565 lt_prog_compiler_static_F77=
18566
18567 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18568 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18569
18570   if test "$GCC" = yes; then
18571     lt_prog_compiler_wl_F77='-Wl,'
18572     lt_prog_compiler_static_F77='-static'
18573
18574     case $host_os in
18575       aix*)
18576       # All AIX code is PIC.
18577       if test "$host_cpu" = ia64; then
18578         # AIX 5 now supports IA64 processor
18579         lt_prog_compiler_static_F77='-Bstatic'
18580       fi
18581       ;;
18582
18583     amigaos*)
18584       # FIXME: we need at least 68020 code to build shared libraries, but
18585       # adding the `-m68020' flag to GCC prevents building anything better,
18586       # like `-m68040'.
18587       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18588       ;;
18589
18590     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18591       # PIC is the default for these OSes.
18592       ;;
18593
18594     mingw* | pw32* | os2*)
18595       # This hack is so that the source file can tell whether it is being
18596       # built for inclusion in a dll (and should export symbols for example).
18597       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18598       ;;
18599
18600     darwin* | rhapsody*)
18601       # PIC is the default on this platform
18602       # Common symbols not allowed in MH_DYLIB files
18603       lt_prog_compiler_pic_F77='-fno-common'
18604       ;;
18605
18606     msdosdjgpp*)
18607       # Just because we use GCC doesn't mean we suddenly get shared libraries
18608       # on systems that don't support them.
18609       lt_prog_compiler_can_build_shared_F77=no
18610       enable_shared=no
18611       ;;
18612
18613     sysv4*MP*)
18614       if test -d /usr/nec; then
18615         lt_prog_compiler_pic_F77=-Kconform_pic
18616       fi
18617       ;;
18618
18619     hpux*)
18620       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18621       # not for PA HP-UX.
18622       case "$host_cpu" in
18623       hppa*64*|ia64*)
18624         # +Z the default
18625         ;;
18626       *)
18627         lt_prog_compiler_pic_F77='-fPIC'
18628         ;;
18629       esac
18630       ;;
18631
18632     *)
18633       lt_prog_compiler_pic_F77='-fPIC'
18634       ;;
18635     esac
18636   else
18637     # PORTME Check for flag to pass linker flags through the system compiler.
18638     case $host_os in
18639     aix*)
18640       lt_prog_compiler_wl_F77='-Wl,'
18641       if test "$host_cpu" = ia64; then
18642         # AIX 5 now supports IA64 processor
18643         lt_prog_compiler_static_F77='-Bstatic'
18644       else
18645         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18646       fi
18647       ;;
18648       darwin*)
18649         # PIC is the default on this platform
18650         # Common symbols not allowed in MH_DYLIB files
18651        case "$cc_basename" in
18652          xlc*)
18653          lt_prog_compiler_pic_F77='-qnocommon'
18654          lt_prog_compiler_wl_F77='-Wl,'
18655          ;;
18656        esac
18657        ;;
18658
18659     mingw* | pw32* | os2*)
18660       # This hack is so that the source file can tell whether it is being
18661       # built for inclusion in a dll (and should export symbols for example).
18662       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18663       ;;
18664
18665     hpux9* | hpux10* | hpux11*)
18666       lt_prog_compiler_wl_F77='-Wl,'
18667       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18668       # not for PA HP-UX.
18669       case "$host_cpu" in
18670       hppa*64*|ia64*)
18671         # +Z the default
18672         ;;
18673       *)
18674         lt_prog_compiler_pic_F77='+Z'
18675         ;;
18676       esac
18677       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18678       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18679       ;;
18680
18681     irix5* | irix6* | nonstopux*)
18682       lt_prog_compiler_wl_F77='-Wl,'
18683       # PIC (with -KPIC) is the default.
18684       lt_prog_compiler_static_F77='-non_shared'
18685       ;;
18686
18687     newsos6)
18688       lt_prog_compiler_pic_F77='-KPIC'
18689       lt_prog_compiler_static_F77='-Bstatic'
18690       ;;
18691
18692     linux*)
18693       case $CC in
18694       icc* | ecc*)
18695         lt_prog_compiler_wl_F77='-Wl,'
18696         lt_prog_compiler_pic_F77='-KPIC'
18697         lt_prog_compiler_static_F77='-static'
18698         ;;
18699       ccc*)
18700         lt_prog_compiler_wl_F77='-Wl,'
18701         # All Alpha code is PIC.
18702         lt_prog_compiler_static_F77='-non_shared'
18703         ;;
18704       esac
18705       ;;
18706
18707     osf3* | osf4* | osf5*)
18708       lt_prog_compiler_wl_F77='-Wl,'
18709       # All OSF/1 code is PIC.
18710       lt_prog_compiler_static_F77='-non_shared'
18711       ;;
18712
18713     sco3.2v5*)
18714       lt_prog_compiler_pic_F77='-Kpic'
18715       lt_prog_compiler_static_F77='-dn'
18716       ;;
18717
18718     solaris*)
18719       lt_prog_compiler_wl_F77='-Wl,'
18720       lt_prog_compiler_pic_F77='-KPIC'
18721       lt_prog_compiler_static_F77='-Bstatic'
18722       ;;
18723
18724     sunos4*)
18725       lt_prog_compiler_wl_F77='-Qoption ld '
18726       lt_prog_compiler_pic_F77='-PIC'
18727       lt_prog_compiler_static_F77='-Bstatic'
18728       ;;
18729
18730     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18731       lt_prog_compiler_wl_F77='-Wl,'
18732       lt_prog_compiler_pic_F77='-KPIC'
18733       lt_prog_compiler_static_F77='-Bstatic'
18734       ;;
18735
18736     sysv4*MP*)
18737       if test -d /usr/nec ;then
18738         lt_prog_compiler_pic_F77='-Kconform_pic'
18739         lt_prog_compiler_static_F77='-Bstatic'
18740       fi
18741       ;;
18742
18743     uts4*)
18744       lt_prog_compiler_pic_F77='-pic'
18745       lt_prog_compiler_static_F77='-Bstatic'
18746       ;;
18747
18748     *)
18749       lt_prog_compiler_can_build_shared_F77=no
18750       ;;
18751     esac
18752   fi
18753
18754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18755 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18756
18757 #
18758 # Check to make sure the PIC flag actually works.
18759 #
18760 if test -n "$lt_prog_compiler_pic_F77"; then
18761
18762 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18764 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18765   echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767   lt_prog_compiler_pic_works_F77=no
18768   ac_outfile=conftest.$ac_objext
18769    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18770    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18771    # Insert the option either (1) after the last *FLAGS variable, or
18772    # (2) before a word containing "conftest.", or (3) at the end.
18773    # Note that $ac_compile itself does not contain backslashes and begins
18774    # with a dollar sign (not a hyphen), so the echo should work correctly.
18775    # The option is referenced via a variable to avoid confusing sed.
18776    lt_compile=`echo "$ac_compile" | $SED \
18777    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18779    -e 's:$: $lt_compiler_flag:'`
18780    (eval echo "\"\$as_me:18780: $lt_compile\"" >&5)
18781    (eval "$lt_compile" 2>conftest.err)
18782    ac_status=$?
18783    cat conftest.err >&5
18784    echo "$as_me:18784: \$? = $ac_status" >&5
18785    if (exit $ac_status) && test -s "$ac_outfile"; then
18786      # The compiler can only warn and ignore the option if not recognized
18787      # So say no if there are warnings
18788      if test ! -s conftest.err; then
18789        lt_prog_compiler_pic_works_F77=yes
18790      fi
18791    fi
18792    $rm conftest*
18793
18794 fi
18795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18796 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18797
18798 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18799     case $lt_prog_compiler_pic_F77 in
18800      "" | " "*) ;;
18801      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18802      esac
18803 else
18804     lt_prog_compiler_pic_F77=
18805      lt_prog_compiler_can_build_shared_F77=no
18806 fi
18807
18808 fi
18809 case "$host_os" in
18810   # For platforms which do not support PIC, -DPIC is meaningless:
18811   *djgpp*)
18812     lt_prog_compiler_pic_F77=
18813     ;;
18814   *)
18815     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18816     ;;
18817 esac
18818
18819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18821 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18822   echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824   lt_cv_prog_compiler_c_o_F77=no
18825    $rm -r conftest 2>/dev/null
18826    mkdir conftest
18827    cd conftest
18828    mkdir out
18829    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18830
18831    lt_compiler_flag="-o out/conftest2.$ac_objext"
18832    # Insert the option either (1) after the last *FLAGS variable, or
18833    # (2) before a word containing "conftest.", or (3) at the end.
18834    # Note that $ac_compile itself does not contain backslashes and begins
18835    # with a dollar sign (not a hyphen), so the echo should work correctly.
18836    lt_compile=`echo "$ac_compile" | $SED \
18837    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18839    -e 's:$: $lt_compiler_flag:'`
18840    (eval echo "\"\$as_me:18840: $lt_compile\"" >&5)
18841    (eval "$lt_compile" 2>out/conftest.err)
18842    ac_status=$?
18843    cat out/conftest.err >&5
18844    echo "$as_me:18844: \$? = $ac_status" >&5
18845    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18846    then
18847      # The compiler can only warn and ignore the option if not recognized
18848      # So say no if there are warnings
18849      if test ! -s out/conftest.err; then
18850        lt_cv_prog_compiler_c_o_F77=yes
18851      fi
18852    fi
18853    chmod u+w .
18854    $rm conftest*
18855    # SGI C++ compiler will create directory out/ii_files/ for
18856    # template instantiation
18857    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18858    $rm out/* && rmdir out
18859    cd ..
18860    rmdir conftest
18861    $rm conftest*
18862
18863 fi
18864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18866
18867
18868 hard_links="nottested"
18869 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18870   # do not overwrite the value of need_locks provided by the user
18871   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18873   hard_links=yes
18874   $rm conftest*
18875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18876   touch conftest.a
18877   ln conftest.a conftest.b 2>&5 || hard_links=no
18878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18879   echo "$as_me:$LINENO: result: $hard_links" >&5
18880 echo "${ECHO_T}$hard_links" >&6
18881   if test "$hard_links" = no; then
18882     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18884     need_locks=warn
18885   fi
18886 else
18887   need_locks=no
18888 fi
18889
18890 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18892
18893   runpath_var=
18894   allow_undefined_flag_F77=
18895   enable_shared_with_static_runtimes_F77=no
18896   archive_cmds_F77=
18897   archive_expsym_cmds_F77=
18898   old_archive_From_new_cmds_F77=
18899   old_archive_from_expsyms_cmds_F77=
18900   export_dynamic_flag_spec_F77=
18901   whole_archive_flag_spec_F77=
18902   thread_safe_flag_spec_F77=
18903   hardcode_libdir_flag_spec_F77=
18904   hardcode_libdir_flag_spec_ld_F77=
18905   hardcode_libdir_separator_F77=
18906   hardcode_direct_F77=no
18907   hardcode_minus_L_F77=no
18908   hardcode_shlibpath_var_F77=unsupported
18909   link_all_deplibs_F77=unknown
18910   hardcode_automatic_F77=no
18911   module_cmds_F77=
18912   module_expsym_cmds_F77=
18913   always_export_symbols_F77=no
18914   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18915   # include_expsyms should be a list of space-separated symbols to be *always*
18916   # included in the symbol list
18917   include_expsyms_F77=
18918   # exclude_expsyms can be an extended regexp of symbols to exclude
18919   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18920   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18921   # as well as any symbol that contains `d'.
18922   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18923   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18924   # platforms (ab)use it in PIC code, but their linkers get confused if
18925   # the symbol is explicitly referenced.  Since portable code cannot
18926   # rely on this symbol name, it's probably fine to never include it in
18927   # preloaded symbol tables.
18928   extract_expsyms_cmds=
18929
18930   case $host_os in
18931   cygwin* | mingw* | pw32*)
18932     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18933     # When not using gcc, we currently assume that we are using
18934     # Microsoft Visual C++.
18935     if test "$GCC" != yes; then
18936       with_gnu_ld=no
18937     fi
18938     ;;
18939   openbsd*)
18940     with_gnu_ld=no
18941     ;;
18942   esac
18943
18944   ld_shlibs_F77=yes
18945   if test "$with_gnu_ld" = yes; then
18946     # If archive_cmds runs LD, not CC, wlarc should be empty
18947     wlarc='${wl}'
18948
18949     # See if GNU ld supports shared libraries.
18950     case $host_os in
18951     aix3* | aix4* | aix5*)
18952       # On AIX/PPC, the GNU linker is very broken
18953       if test "$host_cpu" != ia64; then
18954         ld_shlibs_F77=no
18955         cat <<EOF 1>&2
18956
18957 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18958 *** to be unable to reliably create shared libraries on AIX.
18959 *** Therefore, libtool is disabling shared libraries support.  If you
18960 *** really care for shared libraries, you may want to modify your PATH
18961 *** so that a non-GNU linker is found, and then restart.
18962
18963 EOF
18964       fi
18965       ;;
18966
18967     amigaos*)
18968       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)'
18969       hardcode_libdir_flag_spec_F77='-L$libdir'
18970       hardcode_minus_L_F77=yes
18971
18972       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18973       # that the semantics of dynamic libraries on AmigaOS, at least up
18974       # to version 4, is to share data among multiple programs linked
18975       # with the same dynamic library.  Since this doesn't match the
18976       # behavior of shared libraries on other platforms, we can't use
18977       # them.
18978       ld_shlibs_F77=no
18979       ;;
18980
18981     beos*)
18982       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18983         allow_undefined_flag_F77=unsupported
18984         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18985         # support --undefined.  This deserves some investigation.  FIXME
18986         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18987       else
18988         ld_shlibs_F77=no
18989       fi
18990       ;;
18991
18992     cygwin* | mingw* | pw32*)
18993       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18994       # as there is no search path for DLLs.
18995       hardcode_libdir_flag_spec_F77='-L$libdir'
18996       allow_undefined_flag_F77=unsupported
18997       always_export_symbols_F77=no
18998       enable_shared_with_static_runtimes_F77=yes
18999       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19000
19001       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19002         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19003         # If the export-symbols file already is a .def file (1st line
19004         # is EXPORTS), use it as is; otherwise, prepend...
19005         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19006           cp $export_symbols $output_objdir/$soname.def;
19007         else
19008           echo EXPORTS > $output_objdir/$soname.def;
19009           cat $export_symbols >> $output_objdir/$soname.def;
19010         fi~
19011         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19012       else
19013         ld_shlibs=no
19014       fi
19015       ;;
19016
19017     netbsd*)
19018       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19019         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19020         wlarc=
19021       else
19022         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19023         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19024       fi
19025       ;;
19026
19027     solaris* | sysv5*)
19028       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19029         ld_shlibs_F77=no
19030         cat <<EOF 1>&2
19031
19032 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19033 *** create shared libraries on Solaris systems.  Therefore, libtool
19034 *** is disabling shared libraries support.  We urge you to upgrade GNU
19035 *** binutils to release 2.9.1 or newer.  Another option is to modify
19036 *** your PATH or compiler configuration so that the native linker is
19037 *** used, and then restart.
19038
19039 EOF
19040       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19041         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19042         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19043       else
19044         ld_shlibs_F77=no
19045       fi
19046       ;;
19047
19048     sunos4*)
19049       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19050       wlarc=
19051       hardcode_direct_F77=yes
19052       hardcode_shlibpath_var_F77=no
19053       ;;
19054
19055   linux*)
19056     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19057         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19058         archive_cmds_F77="$tmp_archive_cmds"
19059       supports_anon_versioning=no
19060       case `$LD -v 2>/dev/null` in
19061         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19062         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19063         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19064         *\ 2.11.*) ;; # other 2.11 versions
19065         *) supports_anon_versioning=yes ;;
19066       esac
19067       if test $supports_anon_versioning = yes; then
19068         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19070 $echo "local: *; };" >> $output_objdir/$libname.ver~
19071         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19072       else
19073         archive_expsym_cmds_F77="$tmp_archive_cmds"
19074       fi
19075     else
19076       ld_shlibs_F77=no
19077     fi
19078     ;;
19079
19080     *)
19081       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19082         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19083         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19084       else
19085         ld_shlibs_F77=no
19086       fi
19087       ;;
19088     esac
19089
19090     if test "$ld_shlibs_F77" = yes; then
19091       runpath_var=LD_RUN_PATH
19092       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19093       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19094       # ancient GNU ld didn't support --whole-archive et. al.
19095       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19096         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19097       else
19098         whole_archive_flag_spec_F77=
19099       fi
19100     fi
19101   else
19102     # PORTME fill in a description of your system's linker (not GNU ld)
19103     case $host_os in
19104     aix3*)
19105       allow_undefined_flag_F77=unsupported
19106       always_export_symbols_F77=yes
19107       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'
19108       # Note: this linker hardcodes the directories in LIBPATH if there
19109       # are no directories specified by -L.
19110       hardcode_minus_L_F77=yes
19111       if test "$GCC" = yes && test -z "$link_static_flag"; then
19112         # Neither direct hardcoding nor static linking is supported with a
19113         # broken collect2.
19114         hardcode_direct_F77=unsupported
19115       fi
19116       ;;
19117
19118     aix4* | aix5*)
19119       if test "$host_cpu" = ia64; then
19120         # On IA64, the linker does run time linking by default, so we don't
19121         # have to do anything special.
19122         aix_use_runtimelinking=no
19123         exp_sym_flag='-Bexport'
19124         no_entry_flag=""
19125       else
19126         # If we're using GNU nm, then we don't want the "-C" option.
19127         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19128         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19129           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'
19130         else
19131           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'
19132         fi
19133         aix_use_runtimelinking=no
19134
19135         # Test if we are trying to use run time linking or normal
19136         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19137         # need to do runtime linking.
19138         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19139           for ld_flag in $LDFLAGS; do
19140           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19141             aix_use_runtimelinking=yes
19142             break
19143           fi
19144           done
19145         esac
19146
19147         exp_sym_flag='-bexport'
19148         no_entry_flag='-bnoentry'
19149       fi
19150
19151       # When large executables or shared objects are built, AIX ld can
19152       # have problems creating the table of contents.  If linking a library
19153       # or program results in "error TOC overflow" add -mminimal-toc to
19154       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19155       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19156
19157       archive_cmds_F77=''
19158       hardcode_direct_F77=yes
19159       hardcode_libdir_separator_F77=':'
19160       link_all_deplibs_F77=yes
19161
19162       if test "$GCC" = yes; then
19163         case $host_os in aix4.012|aix4.012.*)
19164         # We only want to do this on AIX 4.2 and lower, the check
19165         # below for broken collect2 doesn't work under 4.3+
19166           collect2name=`${CC} -print-prog-name=collect2`
19167           if test -f "$collect2name" && \
19168            strings "$collect2name" | grep resolve_lib_name >/dev/null
19169           then
19170           # We have reworked collect2
19171           hardcode_direct_F77=yes
19172           else
19173           # We have old collect2
19174           hardcode_direct_F77=unsupported
19175           # It fails to find uninstalled libraries when the uninstalled
19176           # path is not listed in the libpath.  Setting hardcode_minus_L
19177           # to unsupported forces relinking
19178           hardcode_minus_L_F77=yes
19179           hardcode_libdir_flag_spec_F77='-L$libdir'
19180           hardcode_libdir_separator_F77=
19181           fi
19182         esac
19183         shared_flag='-shared'
19184       else
19185         # not using gcc
19186         if test "$host_cpu" = ia64; then
19187         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19188         # chokes on -Wl,-G. The following line is correct:
19189           shared_flag='-G'
19190         else
19191         if test "$aix_use_runtimelinking" = yes; then
19192             shared_flag='${wl}-G'
19193           else
19194             shared_flag='${wl}-bM:SRE'
19195         fi
19196         fi
19197       fi
19198
19199       # It seems that -bexpall does not export symbols beginning with
19200       # underscore (_), so it is better to generate a list of symbols to export.
19201       always_export_symbols_F77=yes
19202       if test "$aix_use_runtimelinking" = yes; then
19203         # Warning - without using the other runtime loading flags (-brtl),
19204         # -berok will link without error, but may produce a broken library.
19205         allow_undefined_flag_F77='-berok'
19206        # Determine the default libpath from the value encoded in an empty executable.
19207        cat >conftest.$ac_ext <<_ACEOF
19208       program main
19209
19210       end
19211 _ACEOF
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19214   (eval $ac_link) 2>conftest.er1
19215   ac_status=$?
19216   grep -v '^ *+' conftest.er1 >conftest.err
19217   rm -f conftest.er1
19218   cat conftest.err >&5
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); } &&
19221          { ac_try='test -z "$ac_f77_werror_flag"
19222                          || test ! -s conftest.err'
19223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224   (eval $ac_try) 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; } &&
19228          { ac_try='test -s conftest$ac_exeext'
19229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230   (eval $ac_try) 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); }; }; then
19234
19235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19236 }'`
19237 # Check for a 64-bit object if we didn't find anything.
19238 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; }
19239 }'`; fi
19240 else
19241   echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 fi
19245 rm -f conftest.err conftest.$ac_objext \
19246       conftest$ac_exeext conftest.$ac_ext
19247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19248
19249        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19250         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"
19251        else
19252         if test "$host_cpu" = ia64; then
19253           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19254           allow_undefined_flag_F77="-z nodefs"
19255           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"
19256         else
19257          # Determine the default libpath from the value encoded in an empty executable.
19258          cat >conftest.$ac_ext <<_ACEOF
19259       program main
19260
19261       end
19262 _ACEOF
19263 rm -f conftest.$ac_objext conftest$ac_exeext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19265   (eval $ac_link) 2>conftest.er1
19266   ac_status=$?
19267   grep -v '^ *+' conftest.er1 >conftest.err
19268   rm -f conftest.er1
19269   cat conftest.err >&5
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); } &&
19272          { ac_try='test -z "$ac_f77_werror_flag"
19273                          || test ! -s conftest.err'
19274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275   (eval $ac_try) 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; } &&
19279          { ac_try='test -s conftest$ac_exeext'
19280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281   (eval $ac_try) 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); }; }; then
19285
19286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19287 }'`
19288 # Check for a 64-bit object if we didn't find anything.
19289 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; }
19290 }'`; fi
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 fi
19296 rm -f conftest.err conftest.$ac_objext \
19297       conftest$ac_exeext conftest.$ac_ext
19298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19299
19300          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19301           # Warning - without using the other run time loading flags,
19302           # -berok will link without error, but may produce a broken library.
19303           no_undefined_flag_F77=' ${wl}-bernotok'
19304           allow_undefined_flag_F77=' ${wl}-berok'
19305           # -bexpall does not export symbols beginning with underscore (_)
19306           always_export_symbols_F77=yes
19307           # Exported symbols can be pulled into shared objects from archives
19308           whole_archive_flag_spec_F77=' '
19309           archive_cmds_need_lc_F77=yes
19310           # This is similar to how AIX traditionally builds it's shared libraries.
19311           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'
19312         fi
19313       fi
19314       ;;
19315
19316     amigaos*)
19317       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)'
19318       hardcode_libdir_flag_spec_F77='-L$libdir'
19319       hardcode_minus_L_F77=yes
19320       # see comment about different semantics on the GNU ld section
19321       ld_shlibs_F77=no
19322       ;;
19323
19324     bsdi[45]*)
19325       export_dynamic_flag_spec_F77=-rdynamic
19326       ;;
19327
19328     cygwin* | mingw* | pw32*)
19329       # When not using gcc, we currently assume that we are using
19330       # Microsoft Visual C++.
19331       # hardcode_libdir_flag_spec is actually meaningless, as there is
19332       # no search path for DLLs.
19333       hardcode_libdir_flag_spec_F77=' '
19334       allow_undefined_flag_F77=unsupported
19335       # Tell ltmain to make .lib files, not .a files.
19336       libext=lib
19337       # Tell ltmain to make .dll files, not .so files.
19338       shrext_cmds=".dll"
19339       # FIXME: Setting linknames here is a bad hack.
19340       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19341       # The linker will automatically build a .lib file if we build a DLL.
19342       old_archive_From_new_cmds_F77='true'
19343       # FIXME: Should let the user specify the lib program.
19344       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19345       fix_srcfile_path='`cygpath -w "$srcfile"`'
19346       enable_shared_with_static_runtimes_F77=yes
19347       ;;
19348
19349     darwin* | rhapsody*)
19350       case "$host_os" in
19351         rhapsody* | darwin1.[012])
19352          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19353          ;;
19354        *) # Darwin 1.3 on
19355          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19356            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19357          else
19358            case ${MACOSX_DEPLOYMENT_TARGET} in
19359              10.[012])
19360                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19361                ;;
19362              10.*)
19363                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19364                ;;
19365            esac
19366          fi
19367          ;;
19368       esac
19369       archive_cmds_need_lc_F77=no
19370       hardcode_direct_F77=no
19371       hardcode_automatic_F77=yes
19372       hardcode_shlibpath_var_F77=unsupported
19373       whole_archive_flag_spec_F77=''
19374       link_all_deplibs_F77=yes
19375     if test "$GCC" = yes ; then
19376         output_verbose_link_cmd='echo'
19377         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19378       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19379       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19380       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}'
19381       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}'
19382     else
19383       case "$cc_basename" in
19384         xlc*)
19385          output_verbose_link_cmd='echo'
19386          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19387          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19388           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19389          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}'
19390           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}'
19391           ;;
19392        *)
19393          ld_shlibs_F77=no
19394           ;;
19395       esac
19396     fi
19397       ;;
19398
19399     dgux*)
19400       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19401       hardcode_libdir_flag_spec_F77='-L$libdir'
19402       hardcode_shlibpath_var_F77=no
19403       ;;
19404
19405     freebsd1*)
19406       ld_shlibs_F77=no
19407       ;;
19408
19409     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19410     # support.  Future versions do this automatically, but an explicit c++rt0.o
19411     # does not break anything, and helps significantly (at the cost of a little
19412     # extra space).
19413     freebsd2.2*)
19414       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19415       hardcode_libdir_flag_spec_F77='-R$libdir'
19416       hardcode_direct_F77=yes
19417       hardcode_shlibpath_var_F77=no
19418       ;;
19419
19420     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19421     freebsd2*)
19422       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19423       hardcode_direct_F77=yes
19424       hardcode_minus_L_F77=yes
19425       hardcode_shlibpath_var_F77=no
19426       ;;
19427
19428     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19429     freebsd* | kfreebsd*-gnu)
19430       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19431       hardcode_libdir_flag_spec_F77='-R$libdir'
19432       hardcode_direct_F77=yes
19433       hardcode_shlibpath_var_F77=no
19434       ;;
19435
19436     hpux9*)
19437       if test "$GCC" = yes; then
19438         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'
19439       else
19440         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'
19441       fi
19442       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19443       hardcode_libdir_separator_F77=:
19444       hardcode_direct_F77=yes
19445
19446       # hardcode_minus_L: Not really in the search PATH,
19447       # but as the default location of the library.
19448       hardcode_minus_L_F77=yes
19449       export_dynamic_flag_spec_F77='${wl}-E'
19450       ;;
19451
19452     hpux10* | hpux11*)
19453       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19454         case "$host_cpu" in
19455         hppa*64*|ia64*)
19456           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19457           ;;
19458         *)
19459           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19460           ;;
19461         esac
19462       else
19463         case "$host_cpu" in
19464         hppa*64*|ia64*)
19465           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19466           ;;
19467         *)
19468           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19469           ;;
19470         esac
19471       fi
19472       if test "$with_gnu_ld" = no; then
19473         case "$host_cpu" in
19474         hppa*64*)
19475           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19476           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19477           hardcode_libdir_separator_F77=:
19478           hardcode_direct_F77=no
19479           hardcode_shlibpath_var_F77=no
19480           ;;
19481         ia64*)
19482           hardcode_libdir_flag_spec_F77='-L$libdir'
19483           hardcode_direct_F77=no
19484           hardcode_shlibpath_var_F77=no
19485
19486           # hardcode_minus_L: Not really in the search PATH,
19487           # but as the default location of the library.
19488           hardcode_minus_L_F77=yes
19489           ;;
19490         *)
19491           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19492           hardcode_libdir_separator_F77=:
19493           hardcode_direct_F77=yes
19494           export_dynamic_flag_spec_F77='${wl}-E'
19495
19496           # hardcode_minus_L: Not really in the search PATH,
19497           # but as the default location of the library.
19498           hardcode_minus_L_F77=yes
19499           ;;
19500         esac
19501       fi
19502       ;;
19503
19504     irix5* | irix6* | nonstopux*)
19505       if test "$GCC" = yes; then
19506         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'
19507       else
19508         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'
19509         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19510       fi
19511       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19512       hardcode_libdir_separator_F77=:
19513       link_all_deplibs_F77=yes
19514       ;;
19515
19516     netbsd*)
19517       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19518         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19519       else
19520         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19521       fi
19522       hardcode_libdir_flag_spec_F77='-R$libdir'
19523       hardcode_direct_F77=yes
19524       hardcode_shlibpath_var_F77=no
19525       ;;
19526
19527     newsos6)
19528       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529       hardcode_direct_F77=yes
19530       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19531       hardcode_libdir_separator_F77=:
19532       hardcode_shlibpath_var_F77=no
19533       ;;
19534
19535     openbsd*)
19536       hardcode_direct_F77=yes
19537       hardcode_shlibpath_var_F77=no
19538       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19539         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19540         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19541         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19542         export_dynamic_flag_spec_F77='${wl}-E'
19543       else
19544        case $host_os in
19545          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19546            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19547            hardcode_libdir_flag_spec_F77='-R$libdir'
19548            ;;
19549          *)
19550            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19551            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19552            ;;
19553        esac
19554       fi
19555       ;;
19556
19557     os2*)
19558       hardcode_libdir_flag_spec_F77='-L$libdir'
19559       hardcode_minus_L_F77=yes
19560       allow_undefined_flag_F77=unsupported
19561       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'
19562       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19563       ;;
19564
19565     osf3*)
19566       if test "$GCC" = yes; then
19567         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19568         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'
19569       else
19570         allow_undefined_flag_F77=' -expect_unresolved \*'
19571         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'
19572       fi
19573       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19574       hardcode_libdir_separator_F77=:
19575       ;;
19576
19577     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19578       if test "$GCC" = yes; then
19579         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19580         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'
19581         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19582       else
19583         allow_undefined_flag_F77=' -expect_unresolved \*'
19584         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'
19585         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~
19586         $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'
19587
19588         # Both c and cxx compiler support -rpath directly
19589         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19590       fi
19591       hardcode_libdir_separator_F77=:
19592       ;;
19593
19594     sco3.2v5*)
19595       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19596       hardcode_shlibpath_var_F77=no
19597       export_dynamic_flag_spec_F77='${wl}-Bexport'
19598       runpath_var=LD_RUN_PATH
19599       hardcode_runpath_var=yes
19600       ;;
19601
19602     solaris*)
19603       no_undefined_flag_F77=' -z text'
19604       if test "$GCC" = yes; then
19605         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19606         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19607           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19608       else
19609         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19610         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19612       fi
19613       hardcode_libdir_flag_spec_F77='-R$libdir'
19614       hardcode_shlibpath_var_F77=no
19615       case $host_os in
19616       solaris2.[0-5] | solaris2.[0-5].*) ;;
19617       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19618         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19619       esac
19620       link_all_deplibs_F77=yes
19621       ;;
19622
19623     sunos4*)
19624       if test "x$host_vendor" = xsequent; then
19625         # Use $CC to link under sequent, because it throws in some extra .o
19626         # files that make .init and .fini sections work.
19627         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19628       else
19629         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19630       fi
19631       hardcode_libdir_flag_spec_F77='-L$libdir'
19632       hardcode_direct_F77=yes
19633       hardcode_minus_L_F77=yes
19634       hardcode_shlibpath_var_F77=no
19635       ;;
19636
19637     sysv4)
19638       case $host_vendor in
19639         sni)
19640           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19641           hardcode_direct_F77=yes # is this really true???
19642         ;;
19643         siemens)
19644           ## LD is ld it makes a PLAMLIB
19645           ## CC just makes a GrossModule.
19646           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19647           reload_cmds_F77='$CC -r -o $output$reload_objs'
19648           hardcode_direct_F77=no
19649         ;;
19650         motorola)
19651           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19653         ;;
19654       esac
19655       runpath_var='LD_RUN_PATH'
19656       hardcode_shlibpath_var_F77=no
19657       ;;
19658
19659     sysv4.3*)
19660       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19661       hardcode_shlibpath_var_F77=no
19662       export_dynamic_flag_spec_F77='-Bexport'
19663       ;;
19664
19665     sysv4*MP*)
19666       if test -d /usr/nec; then
19667         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19668         hardcode_shlibpath_var_F77=no
19669         runpath_var=LD_RUN_PATH
19670         hardcode_runpath_var=yes
19671         ld_shlibs_F77=yes
19672       fi
19673       ;;
19674
19675     sysv4.2uw2*)
19676       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19677       hardcode_direct_F77=yes
19678       hardcode_minus_L_F77=no
19679       hardcode_shlibpath_var_F77=no
19680       hardcode_runpath_var=yes
19681       runpath_var=LD_RUN_PATH
19682       ;;
19683
19684    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19685       no_undefined_flag_F77='${wl}-z ${wl}text'
19686       if test "$GCC" = yes; then
19687         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19688       else
19689         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19690       fi
19691       runpath_var='LD_RUN_PATH'
19692       hardcode_shlibpath_var_F77=no
19693       ;;
19694
19695     sysv5*)
19696       no_undefined_flag_F77=' -z text'
19697       # $CC -shared without GNU ld will not create a library from C++
19698       # object files and a static libstdc++, better avoid it by now
19699       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19700       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19701                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19702       hardcode_libdir_flag_spec_F77=
19703       hardcode_shlibpath_var_F77=no
19704       runpath_var='LD_RUN_PATH'
19705       ;;
19706
19707     uts4*)
19708       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19709       hardcode_libdir_flag_spec_F77='-L$libdir'
19710       hardcode_shlibpath_var_F77=no
19711       ;;
19712
19713     *)
19714       ld_shlibs_F77=no
19715       ;;
19716     esac
19717   fi
19718
19719 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19720 echo "${ECHO_T}$ld_shlibs_F77" >&6
19721 test "$ld_shlibs_F77" = no && can_build_shared=no
19722
19723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19724 if test "$GCC" = yes; then
19725   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19726 fi
19727
19728 #
19729 # Do we need to explicitly link libc?
19730 #
19731 case "x$archive_cmds_need_lc_F77" in
19732 x|xyes)
19733   # Assume -lc should be added
19734   archive_cmds_need_lc_F77=yes
19735
19736   if test "$enable_shared" = yes && test "$GCC" = yes; then
19737     case $archive_cmds_F77 in
19738     *'~'*)
19739       # FIXME: we may have to deal with multi-command sequences.
19740       ;;
19741     '$CC '*)
19742       # Test whether the compiler implicitly links with -lc since on some
19743       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19744       # to ld, don't add -lc before -lgcc.
19745       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19747       $rm conftest*
19748       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19749
19750       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751   (eval $ac_compile) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); } 2>conftest.err; then
19755         soname=conftest
19756         lib=conftest
19757         libobjs=conftest.$ac_objext
19758         deplibs=
19759         wl=$lt_prog_compiler_wl_F77
19760         compiler_flags=-v
19761         linker_flags=-v
19762         verstring=
19763         output_objdir=.
19764         libname=conftest
19765         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19766         allow_undefined_flag_F77=
19767         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19768   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19769   ac_status=$?
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); }
19772         then
19773           archive_cmds_need_lc_F77=no
19774         else
19775           archive_cmds_need_lc_F77=yes
19776         fi
19777         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19778       else
19779         cat conftest.err 1>&5
19780       fi
19781       $rm conftest*
19782       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19783 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19784       ;;
19785     esac
19786   fi
19787   ;;
19788 esac
19789
19790 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19791 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19792 library_names_spec=
19793 libname_spec='lib$name'
19794 soname_spec=
19795 shrext_cmds=".so"
19796 postinstall_cmds=
19797 postuninstall_cmds=
19798 finish_cmds=
19799 finish_eval=
19800 shlibpath_var=
19801 shlibpath_overrides_runpath=unknown
19802 version_type=none
19803 dynamic_linker="$host_os ld.so"
19804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19805 if test "$GCC" = yes; then
19806   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19807   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19808     # if the path contains ";" then we assume it to be the separator
19809     # otherwise default to the standard path separator (i.e. ":") - it is
19810     # assumed that no part of a normal pathname contains ";" but that should
19811     # okay in the real world where ";" in dirpaths is itself problematic.
19812     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19813   else
19814     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19815   fi
19816 else
19817   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19818 fi
19819 need_lib_prefix=unknown
19820 hardcode_into_libs=no
19821
19822 # when you set need_version to no, make sure it does not cause -set_version
19823 # flags to be left without arguments
19824 need_version=unknown
19825
19826 case $host_os in
19827 aix3*)
19828   version_type=linux
19829   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19830   shlibpath_var=LIBPATH
19831
19832   # AIX 3 has no versioning support, so we append a major version to the name.
19833   soname_spec='${libname}${release}${shared_ext}$major'
19834   ;;
19835
19836 aix4* | aix5*)
19837   version_type=linux
19838   need_lib_prefix=no
19839   need_version=no
19840   hardcode_into_libs=yes
19841   if test "$host_cpu" = ia64; then
19842     # AIX 5 supports IA64
19843     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19844     shlibpath_var=LD_LIBRARY_PATH
19845   else
19846     # With GCC up to 2.95.x, collect2 would create an import file
19847     # for dependence libraries.  The import file would start with
19848     # the line `#! .'.  This would cause the generated library to
19849     # depend on `.', always an invalid library.  This was fixed in
19850     # development snapshots of GCC prior to 3.0.
19851     case $host_os in
19852       aix4 | aix4.[01] | aix4.[01].*)
19853       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19854            echo ' yes '
19855            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19856         :
19857       else
19858         can_build_shared=no
19859       fi
19860       ;;
19861     esac
19862     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19863     # soname into executable. Probably we can add versioning support to
19864     # collect2, so additional links can be useful in future.
19865     if test "$aix_use_runtimelinking" = yes; then
19866       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19867       # instead of lib<name>.a to let people know that these are not
19868       # typical AIX shared libraries.
19869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870     else
19871       # We preserve .a as extension for shared libraries through AIX4.2
19872       # and later when we are not doing run time linking.
19873       library_names_spec='${libname}${release}.a $libname.a'
19874       soname_spec='${libname}${release}${shared_ext}$major'
19875     fi
19876     shlibpath_var=LIBPATH
19877   fi
19878   ;;
19879
19880 amigaos*)
19881   library_names_spec='$libname.ixlibrary $libname.a'
19882   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19883   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'
19884   ;;
19885
19886 beos*)
19887   library_names_spec='${libname}${shared_ext}'
19888   dynamic_linker="$host_os ld.so"
19889   shlibpath_var=LIBRARY_PATH
19890   ;;
19891
19892 bsdi[45]*)
19893   version_type=linux
19894   need_version=no
19895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19896   soname_spec='${libname}${release}${shared_ext}$major'
19897   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19898   shlibpath_var=LD_LIBRARY_PATH
19899   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19900   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19901   # the default ld.so.conf also contains /usr/contrib/lib and
19902   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19903   # libtool to hard-code these into programs
19904   ;;
19905
19906 cygwin* | mingw* | pw32*)
19907   version_type=windows
19908   shrext_cmds=".dll"
19909   need_version=no
19910   need_lib_prefix=no
19911
19912   case $GCC,$host_os in
19913   yes,cygwin* | yes,mingw* | yes,pw32*)
19914     library_names_spec='$libname.dll.a'
19915     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19916     postinstall_cmds='base_file=`basename \${file}`~
19917       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19918       dldir=$destdir/`dirname \$dlpath`~
19919       test -d \$dldir || mkdir -p \$dldir~
19920       $install_prog $dir/$dlname \$dldir/$dlname'
19921     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19922       dlpath=$dir/\$dldll~
19923        $rm \$dlpath'
19924     shlibpath_overrides_runpath=yes
19925
19926     case $host_os in
19927     cygwin*)
19928       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19929       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19930       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19931       ;;
19932     mingw*)
19933       # MinGW DLLs use traditional 'lib' prefix
19934       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19935       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19936       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19937         # It is most probably a Windows format PATH printed by
19938         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19939         # path with ; separators, and with drive letters. We can handle the
19940         # drive letters (cygwin fileutils understands them), so leave them,
19941         # especially as we might pass files found there to a mingw objdump,
19942         # which wouldn't understand a cygwinified path. Ahh.
19943         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19944       else
19945         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19946       fi
19947       ;;
19948     pw32*)
19949       # pw32 DLLs use 'pw' prefix rather than 'lib'
19950       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19951       ;;
19952     esac
19953     ;;
19954
19955   *)
19956     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19957     ;;
19958   esac
19959   dynamic_linker='Win32 ld.exe'
19960   # FIXME: first we should search . and the directory the executable is in
19961   shlibpath_var=PATH
19962   ;;
19963
19964 darwin* | rhapsody*)
19965   dynamic_linker="$host_os dyld"
19966   version_type=darwin
19967   need_lib_prefix=no
19968   need_version=no
19969   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19970   soname_spec='${libname}${release}${major}$shared_ext'
19971   shlibpath_overrides_runpath=yes
19972   shlibpath_var=DYLD_LIBRARY_PATH
19973   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19974   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19975   if test "$GCC" = yes; then
19976     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"`
19977   else
19978     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19979   fi
19980   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19981   ;;
19982
19983 dgux*)
19984   version_type=linux
19985   need_lib_prefix=no
19986   need_version=no
19987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19988   soname_spec='${libname}${release}${shared_ext}$major'
19989   shlibpath_var=LD_LIBRARY_PATH
19990   ;;
19991
19992 freebsd1*)
19993   dynamic_linker=no
19994   ;;
19995
19996 kfreebsd*-gnu)
19997   version_type=linux
19998   need_lib_prefix=no
19999   need_version=no
20000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20001   soname_spec='${libname}${release}${shared_ext}$major'
20002   shlibpath_var=LD_LIBRARY_PATH
20003   shlibpath_overrides_runpath=no
20004   hardcode_into_libs=yes
20005   dynamic_linker='GNU ld.so'
20006   ;;
20007
20008 freebsd*)
20009   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20010   version_type=freebsd-$objformat
20011   case $version_type in
20012     freebsd-elf*)
20013       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20014       need_version=no
20015       need_lib_prefix=no
20016       ;;
20017     freebsd-*)
20018       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20019       need_version=yes
20020       ;;
20021   esac
20022   shlibpath_var=LD_LIBRARY_PATH
20023   case $host_os in
20024   freebsd2*)
20025     shlibpath_overrides_runpath=yes
20026     ;;
20027   freebsd3.01* | freebsdelf3.01*)
20028     shlibpath_overrides_runpath=yes
20029     hardcode_into_libs=yes
20030     ;;
20031   *) # from 3.2 on
20032     shlibpath_overrides_runpath=no
20033     hardcode_into_libs=yes
20034     ;;
20035   esac
20036   ;;
20037
20038 gnu*)
20039   version_type=linux
20040   need_lib_prefix=no
20041   need_version=no
20042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20043   soname_spec='${libname}${release}${shared_ext}$major'
20044   shlibpath_var=LD_LIBRARY_PATH
20045   hardcode_into_libs=yes
20046   ;;
20047
20048 hpux9* | hpux10* | hpux11*)
20049   # Give a soname corresponding to the major version so that dld.sl refuses to
20050   # link against other versions.
20051   version_type=sunos
20052   need_lib_prefix=no
20053   need_version=no
20054   case "$host_cpu" in
20055   ia64*)
20056     shrext_cmds='.so'
20057     hardcode_into_libs=yes
20058     dynamic_linker="$host_os dld.so"
20059     shlibpath_var=LD_LIBRARY_PATH
20060     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20062     soname_spec='${libname}${release}${shared_ext}$major'
20063     if test "X$HPUX_IA64_MODE" = X32; then
20064       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20065     else
20066       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20067     fi
20068     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20069     ;;
20070    hppa*64*)
20071      shrext_cmds='.sl'
20072      hardcode_into_libs=yes
20073      dynamic_linker="$host_os dld.sl"
20074      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20075      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20076      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20077      soname_spec='${libname}${release}${shared_ext}$major'
20078      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20079      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20080      ;;
20081    *)
20082     shrext_cmds='.sl'
20083     dynamic_linker="$host_os dld.sl"
20084     shlibpath_var=SHLIB_PATH
20085     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20087     soname_spec='${libname}${release}${shared_ext}$major'
20088     ;;
20089   esac
20090   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20091   postinstall_cmds='chmod 555 $lib'
20092   ;;
20093
20094 irix5* | irix6* | nonstopux*)
20095   case $host_os in
20096     nonstopux*) version_type=nonstopux ;;
20097     *)
20098         if test "$lt_cv_prog_gnu_ld" = yes; then
20099                 version_type=linux
20100         else
20101                 version_type=irix
20102         fi ;;
20103   esac
20104   need_lib_prefix=no
20105   need_version=no
20106   soname_spec='${libname}${release}${shared_ext}$major'
20107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20108   case $host_os in
20109   irix5* | nonstopux*)
20110     libsuff= shlibsuff=
20111     ;;
20112   *)
20113     case $LD in # libtool.m4 will add one of these switches to LD
20114     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20115       libsuff= shlibsuff= libmagic=32-bit;;
20116     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20117       libsuff=32 shlibsuff=N32 libmagic=N32;;
20118     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20119       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20120     *) libsuff= shlibsuff= libmagic=never-match;;
20121     esac
20122     ;;
20123   esac
20124   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20125   shlibpath_overrides_runpath=no
20126   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20127   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20128   hardcode_into_libs=yes
20129   ;;
20130
20131 # No shared lib support for Linux oldld, aout, or coff.
20132 linux*oldld* | linux*aout* | linux*coff*)
20133   dynamic_linker=no
20134   ;;
20135
20136 # This must be Linux ELF.
20137 linux*)
20138   version_type=linux
20139   need_lib_prefix=no
20140   need_version=no
20141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142   soname_spec='${libname}${release}${shared_ext}$major'
20143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20144   shlibpath_var=LD_LIBRARY_PATH
20145   shlibpath_overrides_runpath=no
20146   # This implies no fast_install, which is unacceptable.
20147   # Some rework will be needed to allow for fast_install
20148   # before this can be enabled.
20149   hardcode_into_libs=yes
20150
20151   # Append ld.so.conf contents to the search path
20152   if test -f /etc/ld.so.conf; then
20153     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20154     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20155   fi
20156
20157   # We used to test for /lib/ld.so.1 and disable shared libraries on
20158   # powerpc, because MkLinux only supported shared libraries with the
20159   # GNU dynamic linker.  Since this was broken with cross compilers,
20160   # most powerpc-linux boxes support dynamic linking these days and
20161   # people can always --disable-shared, the test was removed, and we
20162   # assume the GNU/Linux dynamic linker is in use.
20163   dynamic_linker='GNU/Linux ld.so'
20164   ;;
20165
20166 knetbsd*-gnu)
20167   version_type=linux
20168   need_lib_prefix=no
20169   need_version=no
20170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20171   soname_spec='${libname}${release}${shared_ext}$major'
20172   shlibpath_var=LD_LIBRARY_PATH
20173   shlibpath_overrides_runpath=no
20174   hardcode_into_libs=yes
20175   dynamic_linker='GNU ld.so'
20176   ;;
20177
20178 netbsd*)
20179   version_type=sunos
20180   need_lib_prefix=no
20181   need_version=no
20182   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20184     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20185     dynamic_linker='NetBSD (a.out) ld.so'
20186   else
20187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20188     soname_spec='${libname}${release}${shared_ext}$major'
20189     dynamic_linker='NetBSD ld.elf_so'
20190   fi
20191   shlibpath_var=LD_LIBRARY_PATH
20192   shlibpath_overrides_runpath=yes
20193   hardcode_into_libs=yes
20194   ;;
20195
20196 newsos6)
20197   version_type=linux
20198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   shlibpath_overrides_runpath=yes
20201   ;;
20202
20203 nto-qnx*)
20204   version_type=linux
20205   need_lib_prefix=no
20206   need_version=no
20207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20208   soname_spec='${libname}${release}${shared_ext}$major'
20209   shlibpath_var=LD_LIBRARY_PATH
20210   shlibpath_overrides_runpath=yes
20211   ;;
20212
20213 openbsd*)
20214   version_type=sunos
20215   need_lib_prefix=no
20216   need_version=no
20217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20218   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20219   shlibpath_var=LD_LIBRARY_PATH
20220   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20221     case $host_os in
20222       openbsd2.[89] | openbsd2.[89].*)
20223         shlibpath_overrides_runpath=no
20224         ;;
20225       *)
20226         shlibpath_overrides_runpath=yes
20227         ;;
20228       esac
20229   else
20230     shlibpath_overrides_runpath=yes
20231   fi
20232   ;;
20233
20234 os2*)
20235   libname_spec='$name'
20236   shrext_cmds=".dll"
20237   need_lib_prefix=no
20238   library_names_spec='$libname${shared_ext} $libname.a'
20239   dynamic_linker='OS/2 ld.exe'
20240   shlibpath_var=LIBPATH
20241   ;;
20242
20243 osf3* | osf4* | osf5*)
20244   version_type=osf
20245   need_lib_prefix=no
20246   need_version=no
20247   soname_spec='${libname}${release}${shared_ext}$major'
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249   shlibpath_var=LD_LIBRARY_PATH
20250   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20251   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20252   ;;
20253
20254 sco3.2v5*)
20255   version_type=osf
20256   soname_spec='${libname}${release}${shared_ext}$major'
20257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258   shlibpath_var=LD_LIBRARY_PATH
20259   ;;
20260
20261 solaris*)
20262   version_type=linux
20263   need_lib_prefix=no
20264   need_version=no
20265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266   soname_spec='${libname}${release}${shared_ext}$major'
20267   shlibpath_var=LD_LIBRARY_PATH
20268   shlibpath_overrides_runpath=yes
20269   hardcode_into_libs=yes
20270   # ldd complains unless libraries are executable
20271   postinstall_cmds='chmod +x $lib'
20272   ;;
20273
20274 sunos4*)
20275   version_type=sunos
20276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20278   shlibpath_var=LD_LIBRARY_PATH
20279   shlibpath_overrides_runpath=yes
20280   if test "$with_gnu_ld" = yes; then
20281     need_lib_prefix=no
20282   fi
20283   need_version=yes
20284   ;;
20285
20286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20287   version_type=linux
20288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289   soname_spec='${libname}${release}${shared_ext}$major'
20290   shlibpath_var=LD_LIBRARY_PATH
20291   case $host_vendor in
20292     sni)
20293       shlibpath_overrides_runpath=no
20294       need_lib_prefix=no
20295       export_dynamic_flag_spec='${wl}-Blargedynsym'
20296       runpath_var=LD_RUN_PATH
20297       ;;
20298     siemens)
20299       need_lib_prefix=no
20300       ;;
20301     motorola)
20302       need_lib_prefix=no
20303       need_version=no
20304       shlibpath_overrides_runpath=no
20305       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20306       ;;
20307   esac
20308   ;;
20309
20310 sysv4*MP*)
20311   if test -d /usr/nec ;then
20312     version_type=linux
20313     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20314     soname_spec='$libname${shared_ext}.$major'
20315     shlibpath_var=LD_LIBRARY_PATH
20316   fi
20317   ;;
20318
20319 uts4*)
20320   version_type=linux
20321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322   soname_spec='${libname}${release}${shared_ext}$major'
20323   shlibpath_var=LD_LIBRARY_PATH
20324   ;;
20325
20326 *)
20327   dynamic_linker=no
20328   ;;
20329 esac
20330 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20331 echo "${ECHO_T}$dynamic_linker" >&6
20332 test "$dynamic_linker" = no && can_build_shared=no
20333
20334 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20335 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20336 hardcode_action_F77=
20337 if test -n "$hardcode_libdir_flag_spec_F77" || \
20338    test -n "$runpath_var_F77" || \
20339    test "X$hardcode_automatic_F77" = "Xyes" ; then
20340
20341   # We can hardcode non-existant directories.
20342   if test "$hardcode_direct_F77" != no &&
20343      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20344      # have to relink, otherwise we might link with an installed library
20345      # when we should be linking with a yet-to-be-installed one
20346      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20347      test "$hardcode_minus_L_F77" != no; then
20348     # Linking always hardcodes the temporary library directory.
20349     hardcode_action_F77=relink
20350   else
20351     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20352     hardcode_action_F77=immediate
20353   fi
20354 else
20355   # We cannot hardcode anything, or else we can only hardcode existing
20356   # directories.
20357   hardcode_action_F77=unsupported
20358 fi
20359 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20360 echo "${ECHO_T}$hardcode_action_F77" >&6
20361
20362 if test "$hardcode_action_F77" = relink; then
20363   # Fast installation is not supported
20364   enable_fast_install=no
20365 elif test "$shlibpath_overrides_runpath" = yes ||
20366      test "$enable_shared" = no; then
20367   # Fast installation is not necessary
20368   enable_fast_install=needless
20369 fi
20370
20371 striplib=
20372 old_striplib=
20373 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20374 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20375 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20376   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20377   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20378   echo "$as_me:$LINENO: result: yes" >&5
20379 echo "${ECHO_T}yes" >&6
20380 else
20381 # FIXME - insert some real tests, host_os isn't really good enough
20382   case $host_os in
20383    darwin*)
20384        if test -n "$STRIP" ; then
20385          striplib="$STRIP -x"
20386          echo "$as_me:$LINENO: result: yes" >&5
20387 echo "${ECHO_T}yes" >&6
20388        else
20389   echo "$as_me:$LINENO: result: no" >&5
20390 echo "${ECHO_T}no" >&6
20391 fi
20392        ;;
20393    *)
20394   echo "$as_me:$LINENO: result: no" >&5
20395 echo "${ECHO_T}no" >&6
20396     ;;
20397   esac
20398 fi
20399
20400
20401
20402 # The else clause should only fire when bootstrapping the
20403 # libtool distribution, otherwise you forgot to ship ltmain.sh
20404 # with your package, and you will get complaints that there are
20405 # no rules to generate ltmain.sh.
20406 if test -f "$ltmain"; then
20407   # See if we are running on zsh, and set the options which allow our commands through
20408   # without removal of \ escapes.
20409   if test -n "${ZSH_VERSION+set}" ; then
20410     setopt NO_GLOB_SUBST
20411   fi
20412   # Now quote all the things that may contain metacharacters while being
20413   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20414   # variables and quote the copies for generation of the libtool script.
20415   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20416     SED SHELL STRIP \
20417     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20418     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20419     deplibs_check_method reload_flag reload_cmds need_locks \
20420     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20421     lt_cv_sys_global_symbol_to_c_name_address \
20422     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20423     old_postinstall_cmds old_postuninstall_cmds \
20424     compiler_F77 \
20425     CC_F77 \
20426     LD_F77 \
20427     lt_prog_compiler_wl_F77 \
20428     lt_prog_compiler_pic_F77 \
20429     lt_prog_compiler_static_F77 \
20430     lt_prog_compiler_no_builtin_flag_F77 \
20431     export_dynamic_flag_spec_F77 \
20432     thread_safe_flag_spec_F77 \
20433     whole_archive_flag_spec_F77 \
20434     enable_shared_with_static_runtimes_F77 \
20435     old_archive_cmds_F77 \
20436     old_archive_from_new_cmds_F77 \
20437     predep_objects_F77 \
20438     postdep_objects_F77 \
20439     predeps_F77 \
20440     postdeps_F77 \
20441     compiler_lib_search_path_F77 \
20442     archive_cmds_F77 \
20443     archive_expsym_cmds_F77 \
20444     postinstall_cmds_F77 \
20445     postuninstall_cmds_F77 \
20446     old_archive_from_expsyms_cmds_F77 \
20447     allow_undefined_flag_F77 \
20448     no_undefined_flag_F77 \
20449     export_symbols_cmds_F77 \
20450     hardcode_libdir_flag_spec_F77 \
20451     hardcode_libdir_flag_spec_ld_F77 \
20452     hardcode_libdir_separator_F77 \
20453     hardcode_automatic_F77 \
20454     module_cmds_F77 \
20455     module_expsym_cmds_F77 \
20456     lt_cv_prog_compiler_c_o_F77 \
20457     exclude_expsyms_F77 \
20458     include_expsyms_F77; do
20459
20460     case $var in
20461     old_archive_cmds_F77 | \
20462     old_archive_from_new_cmds_F77 | \
20463     archive_cmds_F77 | \
20464     archive_expsym_cmds_F77 | \
20465     module_cmds_F77 | \
20466     module_expsym_cmds_F77 | \
20467     old_archive_from_expsyms_cmds_F77 | \
20468     export_symbols_cmds_F77 | \
20469     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20470     postinstall_cmds | postuninstall_cmds | \
20471     old_postinstall_cmds | old_postuninstall_cmds | \
20472     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20473       # Double-quote double-evaled strings.
20474       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20475       ;;
20476     *)
20477       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20478       ;;
20479     esac
20480   done
20481
20482   case $lt_echo in
20483   *'\$0 --fallback-echo"')
20484     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20485     ;;
20486   esac
20487
20488 cfgfile="$ofile"
20489
20490   cat <<__EOF__ >> "$cfgfile"
20491 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20492
20493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20494
20495 # Shell to use when invoking shell scripts.
20496 SHELL=$lt_SHELL
20497
20498 # Whether or not to build shared libraries.
20499 build_libtool_libs=$enable_shared
20500
20501 # Whether or not to build static libraries.
20502 build_old_libs=$enable_static
20503
20504 # Whether or not to add -lc for building shared libraries.
20505 build_libtool_need_lc=$archive_cmds_need_lc_F77
20506
20507 # Whether or not to disallow shared libs when runtime libs are static
20508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20509
20510 # Whether or not to optimize for fast installation.
20511 fast_install=$enable_fast_install
20512
20513 # The host system.
20514 host_alias=$host_alias
20515 host=$host
20516
20517 # An echo program that does not interpret backslashes.
20518 echo=$lt_echo
20519
20520 # The archiver.
20521 AR=$lt_AR
20522 AR_FLAGS=$lt_AR_FLAGS
20523
20524 # A C compiler.
20525 LTCC=$lt_LTCC
20526
20527 # A language-specific compiler.
20528 CC=$lt_compiler_F77
20529
20530 # Is the compiler the GNU C compiler?
20531 with_gcc=$GCC_F77
20532
20533 # An ERE matcher.
20534 EGREP=$lt_EGREP
20535
20536 # The linker used to build libraries.
20537 LD=$lt_LD_F77
20538
20539 # Whether we need hard or soft links.
20540 LN_S=$lt_LN_S
20541
20542 # A BSD-compatible nm program.
20543 NM=$lt_NM
20544
20545 # A symbol stripping program
20546 STRIP=$lt_STRIP
20547
20548 # Used to examine libraries when file_magic_cmd begins "file"
20549 MAGIC_CMD=$MAGIC_CMD
20550
20551 # Used on cygwin: DLL creation program.
20552 DLLTOOL="$DLLTOOL"
20553
20554 # Used on cygwin: object dumper.
20555 OBJDUMP="$OBJDUMP"
20556
20557 # Used on cygwin: assembler.
20558 AS="$AS"
20559
20560 # The name of the directory that contains temporary libtool files.
20561 objdir=$objdir
20562
20563 # How to create reloadable object files.
20564 reload_flag=$lt_reload_flag
20565 reload_cmds=$lt_reload_cmds
20566
20567 # How to pass a linker flag through the compiler.
20568 wl=$lt_lt_prog_compiler_wl_F77
20569
20570 # Object file suffix (normally "o").
20571 objext="$ac_objext"
20572
20573 # Old archive suffix (normally "a").
20574 libext="$libext"
20575
20576 # Shared library suffix (normally ".so").
20577 shrext_cmds='$shrext_cmds'
20578
20579 # Executable file suffix (normally "").
20580 exeext="$exeext"
20581
20582 # Additional compiler flags for building library objects.
20583 pic_flag=$lt_lt_prog_compiler_pic_F77
20584 pic_mode=$pic_mode
20585
20586 # What is the maximum length of a command?
20587 max_cmd_len=$lt_cv_sys_max_cmd_len
20588
20589 # Does compiler simultaneously support -c and -o options?
20590 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20591
20592 # Must we lock files when doing compilation ?
20593 need_locks=$lt_need_locks
20594
20595 # Do we need the lib prefix for modules?
20596 need_lib_prefix=$need_lib_prefix
20597
20598 # Do we need a version for libraries?
20599 need_version=$need_version
20600
20601 # Whether dlopen is supported.
20602 dlopen_support=$enable_dlopen
20603
20604 # Whether dlopen of programs is supported.
20605 dlopen_self=$enable_dlopen_self
20606
20607 # Whether dlopen of statically linked programs is supported.
20608 dlopen_self_static=$enable_dlopen_self_static
20609
20610 # Compiler flag to prevent dynamic linking.
20611 link_static_flag=$lt_lt_prog_compiler_static_F77
20612
20613 # Compiler flag to turn off builtin functions.
20614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20615
20616 # Compiler flag to allow reflexive dlopens.
20617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20618
20619 # Compiler flag to generate shared objects directly from archives.
20620 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20621
20622 # Compiler flag to generate thread-safe objects.
20623 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20624
20625 # Library versioning type.
20626 version_type=$version_type
20627
20628 # Format of library name prefix.
20629 libname_spec=$lt_libname_spec
20630
20631 # List of archive names.  First name is the real one, the rest are links.
20632 # The last name is the one that the linker finds with -lNAME.
20633 library_names_spec=$lt_library_names_spec
20634
20635 # The coded name of the library, if different from the real name.
20636 soname_spec=$lt_soname_spec
20637
20638 # Commands used to build and install an old-style archive.
20639 RANLIB=$lt_RANLIB
20640 old_archive_cmds=$lt_old_archive_cmds_F77
20641 old_postinstall_cmds=$lt_old_postinstall_cmds
20642 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20643
20644 # Create an old-style archive from a shared archive.
20645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20646
20647 # Create a temporary old-style archive to link instead of a shared archive.
20648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20649
20650 # Commands used to build and install a shared archive.
20651 archive_cmds=$lt_archive_cmds_F77
20652 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20653 postinstall_cmds=$lt_postinstall_cmds
20654 postuninstall_cmds=$lt_postuninstall_cmds
20655
20656 # Commands used to build a loadable module (assumed same as above if empty)
20657 module_cmds=$lt_module_cmds_F77
20658 module_expsym_cmds=$lt_module_expsym_cmds_F77
20659
20660 # Commands to strip libraries.
20661 old_striplib=$lt_old_striplib
20662 striplib=$lt_striplib
20663
20664 # Dependencies to place before the objects being linked to create a
20665 # shared library.
20666 predep_objects=$lt_predep_objects_F77
20667
20668 # Dependencies to place after the objects being linked to create a
20669 # shared library.
20670 postdep_objects=$lt_postdep_objects_F77
20671
20672 # Dependencies to place before the objects being linked to create a
20673 # shared library.
20674 predeps=$lt_predeps_F77
20675
20676 # Dependencies to place after the objects being linked to create a
20677 # shared library.
20678 postdeps=$lt_postdeps_F77
20679
20680 # The library search path used internally by the compiler when linking
20681 # a shared library.
20682 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20683
20684 # Method to check whether dependent libraries are shared objects.
20685 deplibs_check_method=$lt_deplibs_check_method
20686
20687 # Command to use when deplibs_check_method == file_magic.
20688 file_magic_cmd=$lt_file_magic_cmd
20689
20690 # Flag that allows shared libraries with undefined symbols to be built.
20691 allow_undefined_flag=$lt_allow_undefined_flag_F77
20692
20693 # Flag that forces no undefined symbols.
20694 no_undefined_flag=$lt_no_undefined_flag_F77
20695
20696 # Commands used to finish a libtool library installation in a directory.
20697 finish_cmds=$lt_finish_cmds
20698
20699 # Same as above, but a single script fragment to be evaled but not shown.
20700 finish_eval=$lt_finish_eval
20701
20702 # Take the output of nm and produce a listing of raw symbols and C names.
20703 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20704
20705 # Transform the output of nm in a proper C declaration
20706 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20707
20708 # Transform the output of nm in a C name address pair
20709 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20710
20711 # This is the shared library runtime path variable.
20712 runpath_var=$runpath_var
20713
20714 # This is the shared library path variable.
20715 shlibpath_var=$shlibpath_var
20716
20717 # Is shlibpath searched before the hard-coded library search path?
20718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20719
20720 # How to hardcode a shared library path into an executable.
20721 hardcode_action=$hardcode_action_F77
20722
20723 # Whether we should hardcode library paths into libraries.
20724 hardcode_into_libs=$hardcode_into_libs
20725
20726 # Flag to hardcode \$libdir into a binary during linking.
20727 # This must work even if \$libdir does not exist.
20728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20729
20730 # If ld is used when linking, flag to hardcode \$libdir into
20731 # a binary during linking. This must work even if \$libdir does
20732 # not exist.
20733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20734
20735 # Whether we need a single -rpath flag with a separated argument.
20736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20737
20738 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20739 # resulting binary.
20740 hardcode_direct=$hardcode_direct_F77
20741
20742 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20743 # resulting binary.
20744 hardcode_minus_L=$hardcode_minus_L_F77
20745
20746 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20747 # the resulting binary.
20748 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20749
20750 # Set to yes if building a shared library automatically hardcodes DIR into the library
20751 # and all subsequent libraries and executables linked against it.
20752 hardcode_automatic=$hardcode_automatic_F77
20753
20754 # Variables whose values should be saved in libtool wrapper scripts and
20755 # restored at relink time.
20756 variables_saved_for_relink="$variables_saved_for_relink"
20757
20758 # Whether libtool must link a program against all its dependency libraries.
20759 link_all_deplibs=$link_all_deplibs_F77
20760
20761 # Compile-time system search path for libraries
20762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20763
20764 # Run-time system search path for libraries
20765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20766
20767 # Fix the shell variable \$srcfile for the compiler.
20768 fix_srcfile_path="$fix_srcfile_path_F77"
20769
20770 # Set to yes if exported symbols are required.
20771 always_export_symbols=$always_export_symbols_F77
20772
20773 # The commands to list exported symbols.
20774 export_symbols_cmds=$lt_export_symbols_cmds_F77
20775
20776 # The commands to extract the exported symbol list from a shared archive.
20777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20778
20779 # Symbols that should not be listed in the preloaded symbols.
20780 exclude_expsyms=$lt_exclude_expsyms_F77
20781
20782 # Symbols that must always be exported.
20783 include_expsyms=$lt_include_expsyms_F77
20784
20785 # ### END LIBTOOL TAG CONFIG: $tagname
20786
20787 __EOF__
20788
20789
20790 else
20791   # If there is no Makefile yet, we rely on a make rule to execute
20792   # `config.status --recheck' to rerun these tests and create the
20793   # libtool script then.
20794   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20795   if test -f "$ltmain_in"; then
20796     test -f Makefile && make "$ltmain"
20797   fi
20798 fi
20799
20800
20801 ac_ext=c
20802 ac_cpp='$CPP $CPPFLAGS'
20803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806
20807 CC="$lt_save_CC"
20808
20809         else
20810           tagname=""
20811         fi
20812         ;;
20813
20814       GCJ)
20815         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20816           ac_ext=c
20817 ac_cpp='$CPP $CPPFLAGS'
20818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20821
20822
20823 # Source file extension for Java test sources.
20824 ac_ext=java
20825
20826 # Object file extension for compiled Java test sources.
20827 objext=o
20828 objext_GCJ=$objext
20829
20830 # Code to be used in simple compile tests
20831 lt_simple_compile_test_code="class foo {}\n"
20832
20833 # Code to be used in simple link tests
20834 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20835
20836 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20837
20838 # If no C compiler was specified, use CC.
20839 LTCC=${LTCC-"$CC"}
20840
20841 # Allow CC to be a program name with arguments.
20842 compiler=$CC
20843
20844
20845 # Allow CC to be a program name with arguments.
20846 lt_save_CC="$CC"
20847 CC=${GCJ-"gcj"}
20848 compiler=$CC
20849 compiler_GCJ=$CC
20850
20851 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20852 archive_cmds_need_lc_GCJ=no
20853
20854
20855 lt_prog_compiler_no_builtin_flag_GCJ=
20856
20857 if test "$GCC" = yes; then
20858   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20859
20860
20861 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20862 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20863 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20864   echo $ECHO_N "(cached) $ECHO_C" >&6
20865 else
20866   lt_cv_prog_compiler_rtti_exceptions=no
20867   ac_outfile=conftest.$ac_objext
20868    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20869    lt_compiler_flag="-fno-rtti -fno-exceptions"
20870    # Insert the option either (1) after the last *FLAGS variable, or
20871    # (2) before a word containing "conftest.", or (3) at the end.
20872    # Note that $ac_compile itself does not contain backslashes and begins
20873    # with a dollar sign (not a hyphen), so the echo should work correctly.
20874    # The option is referenced via a variable to avoid confusing sed.
20875    lt_compile=`echo "$ac_compile" | $SED \
20876    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20878    -e 's:$: $lt_compiler_flag:'`
20879    (eval echo "\"\$as_me:20879: $lt_compile\"" >&5)
20880    (eval "$lt_compile" 2>conftest.err)
20881    ac_status=$?
20882    cat conftest.err >&5
20883    echo "$as_me:20883: \$? = $ac_status" >&5
20884    if (exit $ac_status) && test -s "$ac_outfile"; then
20885      # The compiler can only warn and ignore the option if not recognized
20886      # So say no if there are warnings
20887      if test ! -s conftest.err; then
20888        lt_cv_prog_compiler_rtti_exceptions=yes
20889      fi
20890    fi
20891    $rm conftest*
20892
20893 fi
20894 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20895 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20896
20897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20898     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20899 else
20900     :
20901 fi
20902
20903 fi
20904
20905 lt_prog_compiler_wl_GCJ=
20906 lt_prog_compiler_pic_GCJ=
20907 lt_prog_compiler_static_GCJ=
20908
20909 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20910 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20911
20912   if test "$GCC" = yes; then
20913     lt_prog_compiler_wl_GCJ='-Wl,'
20914     lt_prog_compiler_static_GCJ='-static'
20915
20916     case $host_os in
20917       aix*)
20918       # All AIX code is PIC.
20919       if test "$host_cpu" = ia64; then
20920         # AIX 5 now supports IA64 processor
20921         lt_prog_compiler_static_GCJ='-Bstatic'
20922       fi
20923       ;;
20924
20925     amigaos*)
20926       # FIXME: we need at least 68020 code to build shared libraries, but
20927       # adding the `-m68020' flag to GCC prevents building anything better,
20928       # like `-m68040'.
20929       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20930       ;;
20931
20932     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20933       # PIC is the default for these OSes.
20934       ;;
20935
20936     mingw* | pw32* | os2*)
20937       # This hack is so that the source file can tell whether it is being
20938       # built for inclusion in a dll (and should export symbols for example).
20939       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20940       ;;
20941
20942     darwin* | rhapsody*)
20943       # PIC is the default on this platform
20944       # Common symbols not allowed in MH_DYLIB files
20945       lt_prog_compiler_pic_GCJ='-fno-common'
20946       ;;
20947
20948     msdosdjgpp*)
20949       # Just because we use GCC doesn't mean we suddenly get shared libraries
20950       # on systems that don't support them.
20951       lt_prog_compiler_can_build_shared_GCJ=no
20952       enable_shared=no
20953       ;;
20954
20955     sysv4*MP*)
20956       if test -d /usr/nec; then
20957         lt_prog_compiler_pic_GCJ=-Kconform_pic
20958       fi
20959       ;;
20960
20961     hpux*)
20962       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20963       # not for PA HP-UX.
20964       case "$host_cpu" in
20965       hppa*64*|ia64*)
20966         # +Z the default
20967         ;;
20968       *)
20969         lt_prog_compiler_pic_GCJ='-fPIC'
20970         ;;
20971       esac
20972       ;;
20973
20974     *)
20975       lt_prog_compiler_pic_GCJ='-fPIC'
20976       ;;
20977     esac
20978   else
20979     # PORTME Check for flag to pass linker flags through the system compiler.
20980     case $host_os in
20981     aix*)
20982       lt_prog_compiler_wl_GCJ='-Wl,'
20983       if test "$host_cpu" = ia64; then
20984         # AIX 5 now supports IA64 processor
20985         lt_prog_compiler_static_GCJ='-Bstatic'
20986       else
20987         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20988       fi
20989       ;;
20990       darwin*)
20991         # PIC is the default on this platform
20992         # Common symbols not allowed in MH_DYLIB files
20993        case "$cc_basename" in
20994          xlc*)
20995          lt_prog_compiler_pic_GCJ='-qnocommon'
20996          lt_prog_compiler_wl_GCJ='-Wl,'
20997          ;;
20998        esac
20999        ;;
21000
21001     mingw* | pw32* | os2*)
21002       # This hack is so that the source file can tell whether it is being
21003       # built for inclusion in a dll (and should export symbols for example).
21004       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21005       ;;
21006
21007     hpux9* | hpux10* | hpux11*)
21008       lt_prog_compiler_wl_GCJ='-Wl,'
21009       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21010       # not for PA HP-UX.
21011       case "$host_cpu" in
21012       hppa*64*|ia64*)
21013         # +Z the default
21014         ;;
21015       *)
21016         lt_prog_compiler_pic_GCJ='+Z'
21017         ;;
21018       esac
21019       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21020       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21021       ;;
21022
21023     irix5* | irix6* | nonstopux*)
21024       lt_prog_compiler_wl_GCJ='-Wl,'
21025       # PIC (with -KPIC) is the default.
21026       lt_prog_compiler_static_GCJ='-non_shared'
21027       ;;
21028
21029     newsos6)
21030       lt_prog_compiler_pic_GCJ='-KPIC'
21031       lt_prog_compiler_static_GCJ='-Bstatic'
21032       ;;
21033
21034     linux*)
21035       case $CC in
21036       icc* | ecc*)
21037         lt_prog_compiler_wl_GCJ='-Wl,'
21038         lt_prog_compiler_pic_GCJ='-KPIC'
21039         lt_prog_compiler_static_GCJ='-static'
21040         ;;
21041       ccc*)
21042         lt_prog_compiler_wl_GCJ='-Wl,'
21043         # All Alpha code is PIC.
21044         lt_prog_compiler_static_GCJ='-non_shared'
21045         ;;
21046       esac
21047       ;;
21048
21049     osf3* | osf4* | osf5*)
21050       lt_prog_compiler_wl_GCJ='-Wl,'
21051       # All OSF/1 code is PIC.
21052       lt_prog_compiler_static_GCJ='-non_shared'
21053       ;;
21054
21055     sco3.2v5*)
21056       lt_prog_compiler_pic_GCJ='-Kpic'
21057       lt_prog_compiler_static_GCJ='-dn'
21058       ;;
21059
21060     solaris*)
21061       lt_prog_compiler_wl_GCJ='-Wl,'
21062       lt_prog_compiler_pic_GCJ='-KPIC'
21063       lt_prog_compiler_static_GCJ='-Bstatic'
21064       ;;
21065
21066     sunos4*)
21067       lt_prog_compiler_wl_GCJ='-Qoption ld '
21068       lt_prog_compiler_pic_GCJ='-PIC'
21069       lt_prog_compiler_static_GCJ='-Bstatic'
21070       ;;
21071
21072     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21073       lt_prog_compiler_wl_GCJ='-Wl,'
21074       lt_prog_compiler_pic_GCJ='-KPIC'
21075       lt_prog_compiler_static_GCJ='-Bstatic'
21076       ;;
21077
21078     sysv4*MP*)
21079       if test -d /usr/nec ;then
21080         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21081         lt_prog_compiler_static_GCJ='-Bstatic'
21082       fi
21083       ;;
21084
21085     uts4*)
21086       lt_prog_compiler_pic_GCJ='-pic'
21087       lt_prog_compiler_static_GCJ='-Bstatic'
21088       ;;
21089
21090     *)
21091       lt_prog_compiler_can_build_shared_GCJ=no
21092       ;;
21093     esac
21094   fi
21095
21096 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21097 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21098
21099 #
21100 # Check to make sure the PIC flag actually works.
21101 #
21102 if test -n "$lt_prog_compiler_pic_GCJ"; then
21103
21104 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21106 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21107   echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109   lt_prog_compiler_pic_works_GCJ=no
21110   ac_outfile=conftest.$ac_objext
21111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21112    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21113    # Insert the option either (1) after the last *FLAGS variable, or
21114    # (2) before a word containing "conftest.", or (3) at the end.
21115    # Note that $ac_compile itself does not contain backslashes and begins
21116    # with a dollar sign (not a hyphen), so the echo should work correctly.
21117    # The option is referenced via a variable to avoid confusing sed.
21118    lt_compile=`echo "$ac_compile" | $SED \
21119    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21121    -e 's:$: $lt_compiler_flag:'`
21122    (eval echo "\"\$as_me:21122: $lt_compile\"" >&5)
21123    (eval "$lt_compile" 2>conftest.err)
21124    ac_status=$?
21125    cat conftest.err >&5
21126    echo "$as_me:21126: \$? = $ac_status" >&5
21127    if (exit $ac_status) && test -s "$ac_outfile"; then
21128      # The compiler can only warn and ignore the option if not recognized
21129      # So say no if there are warnings
21130      if test ! -s conftest.err; then
21131        lt_prog_compiler_pic_works_GCJ=yes
21132      fi
21133    fi
21134    $rm conftest*
21135
21136 fi
21137 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21138 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21139
21140 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21141     case $lt_prog_compiler_pic_GCJ in
21142      "" | " "*) ;;
21143      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21144      esac
21145 else
21146     lt_prog_compiler_pic_GCJ=
21147      lt_prog_compiler_can_build_shared_GCJ=no
21148 fi
21149
21150 fi
21151 case "$host_os" in
21152   # For platforms which do not support PIC, -DPIC is meaningless:
21153   *djgpp*)
21154     lt_prog_compiler_pic_GCJ=
21155     ;;
21156   *)
21157     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21158     ;;
21159 esac
21160
21161 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21162 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21163 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21164   echo $ECHO_N "(cached) $ECHO_C" >&6
21165 else
21166   lt_cv_prog_compiler_c_o_GCJ=no
21167    $rm -r conftest 2>/dev/null
21168    mkdir conftest
21169    cd conftest
21170    mkdir out
21171    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21172
21173    lt_compiler_flag="-o out/conftest2.$ac_objext"
21174    # Insert the option either (1) after the last *FLAGS variable, or
21175    # (2) before a word containing "conftest.", or (3) at the end.
21176    # Note that $ac_compile itself does not contain backslashes and begins
21177    # with a dollar sign (not a hyphen), so the echo should work correctly.
21178    lt_compile=`echo "$ac_compile" | $SED \
21179    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21180    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21181    -e 's:$: $lt_compiler_flag:'`
21182    (eval echo "\"\$as_me:21182: $lt_compile\"" >&5)
21183    (eval "$lt_compile" 2>out/conftest.err)
21184    ac_status=$?
21185    cat out/conftest.err >&5
21186    echo "$as_me:21186: \$? = $ac_status" >&5
21187    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21188    then
21189      # The compiler can only warn and ignore the option if not recognized
21190      # So say no if there are warnings
21191      if test ! -s out/conftest.err; then
21192        lt_cv_prog_compiler_c_o_GCJ=yes
21193      fi
21194    fi
21195    chmod u+w .
21196    $rm conftest*
21197    # SGI C++ compiler will create directory out/ii_files/ for
21198    # template instantiation
21199    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21200    $rm out/* && rmdir out
21201    cd ..
21202    rmdir conftest
21203    $rm conftest*
21204
21205 fi
21206 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21207 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21208
21209
21210 hard_links="nottested"
21211 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21212   # do not overwrite the value of need_locks provided by the user
21213   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21214 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21215   hard_links=yes
21216   $rm conftest*
21217   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21218   touch conftest.a
21219   ln conftest.a conftest.b 2>&5 || hard_links=no
21220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21221   echo "$as_me:$LINENO: result: $hard_links" >&5
21222 echo "${ECHO_T}$hard_links" >&6
21223   if test "$hard_links" = no; then
21224     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21225 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21226     need_locks=warn
21227   fi
21228 else
21229   need_locks=no
21230 fi
21231
21232 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21233 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21234
21235   runpath_var=
21236   allow_undefined_flag_GCJ=
21237   enable_shared_with_static_runtimes_GCJ=no
21238   archive_cmds_GCJ=
21239   archive_expsym_cmds_GCJ=
21240   old_archive_From_new_cmds_GCJ=
21241   old_archive_from_expsyms_cmds_GCJ=
21242   export_dynamic_flag_spec_GCJ=
21243   whole_archive_flag_spec_GCJ=
21244   thread_safe_flag_spec_GCJ=
21245   hardcode_libdir_flag_spec_GCJ=
21246   hardcode_libdir_flag_spec_ld_GCJ=
21247   hardcode_libdir_separator_GCJ=
21248   hardcode_direct_GCJ=no
21249   hardcode_minus_L_GCJ=no
21250   hardcode_shlibpath_var_GCJ=unsupported
21251   link_all_deplibs_GCJ=unknown
21252   hardcode_automatic_GCJ=no
21253   module_cmds_GCJ=
21254   module_expsym_cmds_GCJ=
21255   always_export_symbols_GCJ=no
21256   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21257   # include_expsyms should be a list of space-separated symbols to be *always*
21258   # included in the symbol list
21259   include_expsyms_GCJ=
21260   # exclude_expsyms can be an extended regexp of symbols to exclude
21261   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21262   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21263   # as well as any symbol that contains `d'.
21264   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21265   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21266   # platforms (ab)use it in PIC code, but their linkers get confused if
21267   # the symbol is explicitly referenced.  Since portable code cannot
21268   # rely on this symbol name, it's probably fine to never include it in
21269   # preloaded symbol tables.
21270   extract_expsyms_cmds=
21271
21272   case $host_os in
21273   cygwin* | mingw* | pw32*)
21274     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21275     # When not using gcc, we currently assume that we are using
21276     # Microsoft Visual C++.
21277     if test "$GCC" != yes; then
21278       with_gnu_ld=no
21279     fi
21280     ;;
21281   openbsd*)
21282     with_gnu_ld=no
21283     ;;
21284   esac
21285
21286   ld_shlibs_GCJ=yes
21287   if test "$with_gnu_ld" = yes; then
21288     # If archive_cmds runs LD, not CC, wlarc should be empty
21289     wlarc='${wl}'
21290
21291     # See if GNU ld supports shared libraries.
21292     case $host_os in
21293     aix3* | aix4* | aix5*)
21294       # On AIX/PPC, the GNU linker is very broken
21295       if test "$host_cpu" != ia64; then
21296         ld_shlibs_GCJ=no
21297         cat <<EOF 1>&2
21298
21299 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21300 *** to be unable to reliably create shared libraries on AIX.
21301 *** Therefore, libtool is disabling shared libraries support.  If you
21302 *** really care for shared libraries, you may want to modify your PATH
21303 *** so that a non-GNU linker is found, and then restart.
21304
21305 EOF
21306       fi
21307       ;;
21308
21309     amigaos*)
21310       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)'
21311       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21312       hardcode_minus_L_GCJ=yes
21313
21314       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21315       # that the semantics of dynamic libraries on AmigaOS, at least up
21316       # to version 4, is to share data among multiple programs linked
21317       # with the same dynamic library.  Since this doesn't match the
21318       # behavior of shared libraries on other platforms, we can't use
21319       # them.
21320       ld_shlibs_GCJ=no
21321       ;;
21322
21323     beos*)
21324       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21325         allow_undefined_flag_GCJ=unsupported
21326         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21327         # support --undefined.  This deserves some investigation.  FIXME
21328         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21329       else
21330         ld_shlibs_GCJ=no
21331       fi
21332       ;;
21333
21334     cygwin* | mingw* | pw32*)
21335       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21336       # as there is no search path for DLLs.
21337       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21338       allow_undefined_flag_GCJ=unsupported
21339       always_export_symbols_GCJ=no
21340       enable_shared_with_static_runtimes_GCJ=yes
21341       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21342
21343       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21344         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21345         # If the export-symbols file already is a .def file (1st line
21346         # is EXPORTS), use it as is; otherwise, prepend...
21347         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21348           cp $export_symbols $output_objdir/$soname.def;
21349         else
21350           echo EXPORTS > $output_objdir/$soname.def;
21351           cat $export_symbols >> $output_objdir/$soname.def;
21352         fi~
21353         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21354       else
21355         ld_shlibs=no
21356       fi
21357       ;;
21358
21359     netbsd*)
21360       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21361         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21362         wlarc=
21363       else
21364         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21365         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21366       fi
21367       ;;
21368
21369     solaris* | sysv5*)
21370       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21371         ld_shlibs_GCJ=no
21372         cat <<EOF 1>&2
21373
21374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21375 *** create shared libraries on Solaris systems.  Therefore, libtool
21376 *** is disabling shared libraries support.  We urge you to upgrade GNU
21377 *** binutils to release 2.9.1 or newer.  Another option is to modify
21378 *** your PATH or compiler configuration so that the native linker is
21379 *** used, and then restart.
21380
21381 EOF
21382       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21383         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21384         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21385       else
21386         ld_shlibs_GCJ=no
21387       fi
21388       ;;
21389
21390     sunos4*)
21391       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21392       wlarc=
21393       hardcode_direct_GCJ=yes
21394       hardcode_shlibpath_var_GCJ=no
21395       ;;
21396
21397   linux*)
21398     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21399         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21400         archive_cmds_GCJ="$tmp_archive_cmds"
21401       supports_anon_versioning=no
21402       case `$LD -v 2>/dev/null` in
21403         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21404         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21405         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21406         *\ 2.11.*) ;; # other 2.11 versions
21407         *) supports_anon_versioning=yes ;;
21408       esac
21409       if test $supports_anon_versioning = yes; then
21410         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21412 $echo "local: *; };" >> $output_objdir/$libname.ver~
21413         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21414       else
21415         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21416       fi
21417     else
21418       ld_shlibs_GCJ=no
21419     fi
21420     ;;
21421
21422     *)
21423       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21424         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21425         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21426       else
21427         ld_shlibs_GCJ=no
21428       fi
21429       ;;
21430     esac
21431
21432     if test "$ld_shlibs_GCJ" = yes; then
21433       runpath_var=LD_RUN_PATH
21434       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21435       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21436       # ancient GNU ld didn't support --whole-archive et. al.
21437       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21438         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21439       else
21440         whole_archive_flag_spec_GCJ=
21441       fi
21442     fi
21443   else
21444     # PORTME fill in a description of your system's linker (not GNU ld)
21445     case $host_os in
21446     aix3*)
21447       allow_undefined_flag_GCJ=unsupported
21448       always_export_symbols_GCJ=yes
21449       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'
21450       # Note: this linker hardcodes the directories in LIBPATH if there
21451       # are no directories specified by -L.
21452       hardcode_minus_L_GCJ=yes
21453       if test "$GCC" = yes && test -z "$link_static_flag"; then
21454         # Neither direct hardcoding nor static linking is supported with a
21455         # broken collect2.
21456         hardcode_direct_GCJ=unsupported
21457       fi
21458       ;;
21459
21460     aix4* | aix5*)
21461       if test "$host_cpu" = ia64; then
21462         # On IA64, the linker does run time linking by default, so we don't
21463         # have to do anything special.
21464         aix_use_runtimelinking=no
21465         exp_sym_flag='-Bexport'
21466         no_entry_flag=""
21467       else
21468         # If we're using GNU nm, then we don't want the "-C" option.
21469         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21470         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21471           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'
21472         else
21473           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'
21474         fi
21475         aix_use_runtimelinking=no
21476
21477         # Test if we are trying to use run time linking or normal
21478         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21479         # need to do runtime linking.
21480         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21481           for ld_flag in $LDFLAGS; do
21482           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21483             aix_use_runtimelinking=yes
21484             break
21485           fi
21486           done
21487         esac
21488
21489         exp_sym_flag='-bexport'
21490         no_entry_flag='-bnoentry'
21491       fi
21492
21493       # When large executables or shared objects are built, AIX ld can
21494       # have problems creating the table of contents.  If linking a library
21495       # or program results in "error TOC overflow" add -mminimal-toc to
21496       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21497       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21498
21499       archive_cmds_GCJ=''
21500       hardcode_direct_GCJ=yes
21501       hardcode_libdir_separator_GCJ=':'
21502       link_all_deplibs_GCJ=yes
21503
21504       if test "$GCC" = yes; then
21505         case $host_os in aix4.012|aix4.012.*)
21506         # We only want to do this on AIX 4.2 and lower, the check
21507         # below for broken collect2 doesn't work under 4.3+
21508           collect2name=`${CC} -print-prog-name=collect2`
21509           if test -f "$collect2name" && \
21510            strings "$collect2name" | grep resolve_lib_name >/dev/null
21511           then
21512           # We have reworked collect2
21513           hardcode_direct_GCJ=yes
21514           else
21515           # We have old collect2
21516           hardcode_direct_GCJ=unsupported
21517           # It fails to find uninstalled libraries when the uninstalled
21518           # path is not listed in the libpath.  Setting hardcode_minus_L
21519           # to unsupported forces relinking
21520           hardcode_minus_L_GCJ=yes
21521           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21522           hardcode_libdir_separator_GCJ=
21523           fi
21524         esac
21525         shared_flag='-shared'
21526       else
21527         # not using gcc
21528         if test "$host_cpu" = ia64; then
21529         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21530         # chokes on -Wl,-G. The following line is correct:
21531           shared_flag='-G'
21532         else
21533         if test "$aix_use_runtimelinking" = yes; then
21534             shared_flag='${wl}-G'
21535           else
21536             shared_flag='${wl}-bM:SRE'
21537         fi
21538         fi
21539       fi
21540
21541       # It seems that -bexpall does not export symbols beginning with
21542       # underscore (_), so it is better to generate a list of symbols to export.
21543       always_export_symbols_GCJ=yes
21544       if test "$aix_use_runtimelinking" = yes; then
21545         # Warning - without using the other runtime loading flags (-brtl),
21546         # -berok will link without error, but may produce a broken library.
21547         allow_undefined_flag_GCJ='-berok'
21548        # Determine the default libpath from the value encoded in an empty executable.
21549        cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555
21556 int
21557 main ()
21558 {
21559
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21566   (eval $ac_link) 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } &&
21573          { ac_try='test -z "$ac_c_werror_flag"
21574                          || test ! -s conftest.err'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; } &&
21580          { ac_try='test -s conftest$ac_exeext'
21581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582   (eval $ac_try) 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; }; then
21586
21587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21588 }'`
21589 # Check for a 64-bit object if we didn't find anything.
21590 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; }
21591 }'`; fi
21592 else
21593   echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 fi
21597 rm -f conftest.err conftest.$ac_objext \
21598       conftest$ac_exeext conftest.$ac_ext
21599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21600
21601        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21602         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"
21603        else
21604         if test "$host_cpu" = ia64; then
21605           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21606           allow_undefined_flag_GCJ="-z nodefs"
21607           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"
21608         else
21609          # Determine the default libpath from the value encoded in an empty executable.
21610          cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616
21617 int
21618 main ()
21619 {
21620
21621   ;
21622   return 0;
21623 }
21624 _ACEOF
21625 rm -f conftest.$ac_objext conftest$ac_exeext
21626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21627   (eval $ac_link) 2>conftest.er1
21628   ac_status=$?
21629   grep -v '^ *+' conftest.er1 >conftest.err
21630   rm -f conftest.er1
21631   cat conftest.err >&5
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } &&
21634          { ac_try='test -z "$ac_c_werror_flag"
21635                          || test ! -s conftest.err'
21636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637   (eval $ac_try) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); }; } &&
21641          { ac_try='test -s conftest$ac_exeext'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; }; then
21647
21648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21649 }'`
21650 # Check for a 64-bit object if we didn't find anything.
21651 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; }
21652 }'`; fi
21653 else
21654   echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657 fi
21658 rm -f conftest.err conftest.$ac_objext \
21659       conftest$ac_exeext conftest.$ac_ext
21660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21661
21662          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21663           # Warning - without using the other run time loading flags,
21664           # -berok will link without error, but may produce a broken library.
21665           no_undefined_flag_GCJ=' ${wl}-bernotok'
21666           allow_undefined_flag_GCJ=' ${wl}-berok'
21667           # -bexpall does not export symbols beginning with underscore (_)
21668           always_export_symbols_GCJ=yes
21669           # Exported symbols can be pulled into shared objects from archives
21670           whole_archive_flag_spec_GCJ=' '
21671           archive_cmds_need_lc_GCJ=yes
21672           # This is similar to how AIX traditionally builds it's shared libraries.
21673           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'
21674         fi
21675       fi
21676       ;;
21677
21678     amigaos*)
21679       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)'
21680       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21681       hardcode_minus_L_GCJ=yes
21682       # see comment about different semantics on the GNU ld section
21683       ld_shlibs_GCJ=no
21684       ;;
21685
21686     bsdi[45]*)
21687       export_dynamic_flag_spec_GCJ=-rdynamic
21688       ;;
21689
21690     cygwin* | mingw* | pw32*)
21691       # When not using gcc, we currently assume that we are using
21692       # Microsoft Visual C++.
21693       # hardcode_libdir_flag_spec is actually meaningless, as there is
21694       # no search path for DLLs.
21695       hardcode_libdir_flag_spec_GCJ=' '
21696       allow_undefined_flag_GCJ=unsupported
21697       # Tell ltmain to make .lib files, not .a files.
21698       libext=lib
21699       # Tell ltmain to make .dll files, not .so files.
21700       shrext_cmds=".dll"
21701       # FIXME: Setting linknames here is a bad hack.
21702       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21703       # The linker will automatically build a .lib file if we build a DLL.
21704       old_archive_From_new_cmds_GCJ='true'
21705       # FIXME: Should let the user specify the lib program.
21706       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21707       fix_srcfile_path='`cygpath -w "$srcfile"`'
21708       enable_shared_with_static_runtimes_GCJ=yes
21709       ;;
21710
21711     darwin* | rhapsody*)
21712       case "$host_os" in
21713         rhapsody* | darwin1.[012])
21714          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21715          ;;
21716        *) # Darwin 1.3 on
21717          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21718            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21719          else
21720            case ${MACOSX_DEPLOYMENT_TARGET} in
21721              10.[012])
21722                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21723                ;;
21724              10.*)
21725                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21726                ;;
21727            esac
21728          fi
21729          ;;
21730       esac
21731       archive_cmds_need_lc_GCJ=no
21732       hardcode_direct_GCJ=no
21733       hardcode_automatic_GCJ=yes
21734       hardcode_shlibpath_var_GCJ=unsupported
21735       whole_archive_flag_spec_GCJ=''
21736       link_all_deplibs_GCJ=yes
21737     if test "$GCC" = yes ; then
21738         output_verbose_link_cmd='echo'
21739         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21740       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21741       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21742       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}'
21743       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}'
21744     else
21745       case "$cc_basename" in
21746         xlc*)
21747          output_verbose_link_cmd='echo'
21748          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21749          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21750           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21751          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}'
21752           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}'
21753           ;;
21754        *)
21755          ld_shlibs_GCJ=no
21756           ;;
21757       esac
21758     fi
21759       ;;
21760
21761     dgux*)
21762       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21763       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21764       hardcode_shlibpath_var_GCJ=no
21765       ;;
21766
21767     freebsd1*)
21768       ld_shlibs_GCJ=no
21769       ;;
21770
21771     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21772     # support.  Future versions do this automatically, but an explicit c++rt0.o
21773     # does not break anything, and helps significantly (at the cost of a little
21774     # extra space).
21775     freebsd2.2*)
21776       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21777       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21778       hardcode_direct_GCJ=yes
21779       hardcode_shlibpath_var_GCJ=no
21780       ;;
21781
21782     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21783     freebsd2*)
21784       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21785       hardcode_direct_GCJ=yes
21786       hardcode_minus_L_GCJ=yes
21787       hardcode_shlibpath_var_GCJ=no
21788       ;;
21789
21790     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21791     freebsd* | kfreebsd*-gnu)
21792       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21793       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21794       hardcode_direct_GCJ=yes
21795       hardcode_shlibpath_var_GCJ=no
21796       ;;
21797
21798     hpux9*)
21799       if test "$GCC" = yes; then
21800         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'
21801       else
21802         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'
21803       fi
21804       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21805       hardcode_libdir_separator_GCJ=:
21806       hardcode_direct_GCJ=yes
21807
21808       # hardcode_minus_L: Not really in the search PATH,
21809       # but as the default location of the library.
21810       hardcode_minus_L_GCJ=yes
21811       export_dynamic_flag_spec_GCJ='${wl}-E'
21812       ;;
21813
21814     hpux10* | hpux11*)
21815       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21816         case "$host_cpu" in
21817         hppa*64*|ia64*)
21818           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21819           ;;
21820         *)
21821           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21822           ;;
21823         esac
21824       else
21825         case "$host_cpu" in
21826         hppa*64*|ia64*)
21827           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21828           ;;
21829         *)
21830           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21831           ;;
21832         esac
21833       fi
21834       if test "$with_gnu_ld" = no; then
21835         case "$host_cpu" in
21836         hppa*64*)
21837           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21838           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21839           hardcode_libdir_separator_GCJ=:
21840           hardcode_direct_GCJ=no
21841           hardcode_shlibpath_var_GCJ=no
21842           ;;
21843         ia64*)
21844           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21845           hardcode_direct_GCJ=no
21846           hardcode_shlibpath_var_GCJ=no
21847
21848           # hardcode_minus_L: Not really in the search PATH,
21849           # but as the default location of the library.
21850           hardcode_minus_L_GCJ=yes
21851           ;;
21852         *)
21853           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21854           hardcode_libdir_separator_GCJ=:
21855           hardcode_direct_GCJ=yes
21856           export_dynamic_flag_spec_GCJ='${wl}-E'
21857
21858           # hardcode_minus_L: Not really in the search PATH,
21859           # but as the default location of the library.
21860           hardcode_minus_L_GCJ=yes
21861           ;;
21862         esac
21863       fi
21864       ;;
21865
21866     irix5* | irix6* | nonstopux*)
21867       if test "$GCC" = yes; then
21868         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'
21869       else
21870         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'
21871         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21872       fi
21873       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21874       hardcode_libdir_separator_GCJ=:
21875       link_all_deplibs_GCJ=yes
21876       ;;
21877
21878     netbsd*)
21879       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21880         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21881       else
21882         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21883       fi
21884       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21885       hardcode_direct_GCJ=yes
21886       hardcode_shlibpath_var_GCJ=no
21887       ;;
21888
21889     newsos6)
21890       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21891       hardcode_direct_GCJ=yes
21892       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21893       hardcode_libdir_separator_GCJ=:
21894       hardcode_shlibpath_var_GCJ=no
21895       ;;
21896
21897     openbsd*)
21898       hardcode_direct_GCJ=yes
21899       hardcode_shlibpath_var_GCJ=no
21900       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21901         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21902         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21903         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21904         export_dynamic_flag_spec_GCJ='${wl}-E'
21905       else
21906        case $host_os in
21907          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21908            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21909            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21910            ;;
21911          *)
21912            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21913            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21914            ;;
21915        esac
21916       fi
21917       ;;
21918
21919     os2*)
21920       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21921       hardcode_minus_L_GCJ=yes
21922       allow_undefined_flag_GCJ=unsupported
21923       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'
21924       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21925       ;;
21926
21927     osf3*)
21928       if test "$GCC" = yes; then
21929         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21930         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'
21931       else
21932         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21933         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'
21934       fi
21935       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21936       hardcode_libdir_separator_GCJ=:
21937       ;;
21938
21939     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21940       if test "$GCC" = yes; then
21941         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21942         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'
21943         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21944       else
21945         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21946         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'
21947         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~
21948         $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'
21949
21950         # Both c and cxx compiler support -rpath directly
21951         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21952       fi
21953       hardcode_libdir_separator_GCJ=:
21954       ;;
21955
21956     sco3.2v5*)
21957       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21958       hardcode_shlibpath_var_GCJ=no
21959       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21960       runpath_var=LD_RUN_PATH
21961       hardcode_runpath_var=yes
21962       ;;
21963
21964     solaris*)
21965       no_undefined_flag_GCJ=' -z text'
21966       if test "$GCC" = yes; then
21967         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21968         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21969           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21970       else
21971         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21972         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21973         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21974       fi
21975       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21976       hardcode_shlibpath_var_GCJ=no
21977       case $host_os in
21978       solaris2.[0-5] | solaris2.[0-5].*) ;;
21979       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21980         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21981       esac
21982       link_all_deplibs_GCJ=yes
21983       ;;
21984
21985     sunos4*)
21986       if test "x$host_vendor" = xsequent; then
21987         # Use $CC to link under sequent, because it throws in some extra .o
21988         # files that make .init and .fini sections work.
21989         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21990       else
21991         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21992       fi
21993       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21994       hardcode_direct_GCJ=yes
21995       hardcode_minus_L_GCJ=yes
21996       hardcode_shlibpath_var_GCJ=no
21997       ;;
21998
21999     sysv4)
22000       case $host_vendor in
22001         sni)
22002           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22003           hardcode_direct_GCJ=yes # is this really true???
22004         ;;
22005         siemens)
22006           ## LD is ld it makes a PLAMLIB
22007           ## CC just makes a GrossModule.
22008           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22009           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22010           hardcode_direct_GCJ=no
22011         ;;
22012         motorola)
22013           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22015         ;;
22016       esac
22017       runpath_var='LD_RUN_PATH'
22018       hardcode_shlibpath_var_GCJ=no
22019       ;;
22020
22021     sysv4.3*)
22022       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22023       hardcode_shlibpath_var_GCJ=no
22024       export_dynamic_flag_spec_GCJ='-Bexport'
22025       ;;
22026
22027     sysv4*MP*)
22028       if test -d /usr/nec; then
22029         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22030         hardcode_shlibpath_var_GCJ=no
22031         runpath_var=LD_RUN_PATH
22032         hardcode_runpath_var=yes
22033         ld_shlibs_GCJ=yes
22034       fi
22035       ;;
22036
22037     sysv4.2uw2*)
22038       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22039       hardcode_direct_GCJ=yes
22040       hardcode_minus_L_GCJ=no
22041       hardcode_shlibpath_var_GCJ=no
22042       hardcode_runpath_var=yes
22043       runpath_var=LD_RUN_PATH
22044       ;;
22045
22046    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22047       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22048       if test "$GCC" = yes; then
22049         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22050       else
22051         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22052       fi
22053       runpath_var='LD_RUN_PATH'
22054       hardcode_shlibpath_var_GCJ=no
22055       ;;
22056
22057     sysv5*)
22058       no_undefined_flag_GCJ=' -z text'
22059       # $CC -shared without GNU ld will not create a library from C++
22060       # object files and a static libstdc++, better avoid it by now
22061       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22062       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22063                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22064       hardcode_libdir_flag_spec_GCJ=
22065       hardcode_shlibpath_var_GCJ=no
22066       runpath_var='LD_RUN_PATH'
22067       ;;
22068
22069     uts4*)
22070       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22071       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22072       hardcode_shlibpath_var_GCJ=no
22073       ;;
22074
22075     *)
22076       ld_shlibs_GCJ=no
22077       ;;
22078     esac
22079   fi
22080
22081 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22082 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22083 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22084
22085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22086 if test "$GCC" = yes; then
22087   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22088 fi
22089
22090 #
22091 # Do we need to explicitly link libc?
22092 #
22093 case "x$archive_cmds_need_lc_GCJ" in
22094 x|xyes)
22095   # Assume -lc should be added
22096   archive_cmds_need_lc_GCJ=yes
22097
22098   if test "$enable_shared" = yes && test "$GCC" = yes; then
22099     case $archive_cmds_GCJ in
22100     *'~'*)
22101       # FIXME: we may have to deal with multi-command sequences.
22102       ;;
22103     '$CC '*)
22104       # Test whether the compiler implicitly links with -lc since on some
22105       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22106       # to ld, don't add -lc before -lgcc.
22107       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22109       $rm conftest*
22110       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22111
22112       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22113   (eval $ac_compile) 2>&5
22114   ac_status=$?
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); } 2>conftest.err; then
22117         soname=conftest
22118         lib=conftest
22119         libobjs=conftest.$ac_objext
22120         deplibs=
22121         wl=$lt_prog_compiler_wl_GCJ
22122         compiler_flags=-v
22123         linker_flags=-v
22124         verstring=
22125         output_objdir=.
22126         libname=conftest
22127         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22128         allow_undefined_flag_GCJ=
22129         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22130   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22131   ac_status=$?
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); }
22134         then
22135           archive_cmds_need_lc_GCJ=no
22136         else
22137           archive_cmds_need_lc_GCJ=yes
22138         fi
22139         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22140       else
22141         cat conftest.err 1>&5
22142       fi
22143       $rm conftest*
22144       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22145 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22146       ;;
22147     esac
22148   fi
22149   ;;
22150 esac
22151
22152 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22153 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22154 library_names_spec=
22155 libname_spec='lib$name'
22156 soname_spec=
22157 shrext_cmds=".so"
22158 postinstall_cmds=
22159 postuninstall_cmds=
22160 finish_cmds=
22161 finish_eval=
22162 shlibpath_var=
22163 shlibpath_overrides_runpath=unknown
22164 version_type=none
22165 dynamic_linker="$host_os ld.so"
22166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22167 if test "$GCC" = yes; then
22168   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22169   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22170     # if the path contains ";" then we assume it to be the separator
22171     # otherwise default to the standard path separator (i.e. ":") - it is
22172     # assumed that no part of a normal pathname contains ";" but that should
22173     # okay in the real world where ";" in dirpaths is itself problematic.
22174     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22175   else
22176     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22177   fi
22178 else
22179   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22180 fi
22181 need_lib_prefix=unknown
22182 hardcode_into_libs=no
22183
22184 # when you set need_version to no, make sure it does not cause -set_version
22185 # flags to be left without arguments
22186 need_version=unknown
22187
22188 case $host_os in
22189 aix3*)
22190   version_type=linux
22191   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22192   shlibpath_var=LIBPATH
22193
22194   # AIX 3 has no versioning support, so we append a major version to the name.
22195   soname_spec='${libname}${release}${shared_ext}$major'
22196   ;;
22197
22198 aix4* | aix5*)
22199   version_type=linux
22200   need_lib_prefix=no
22201   need_version=no
22202   hardcode_into_libs=yes
22203   if test "$host_cpu" = ia64; then
22204     # AIX 5 supports IA64
22205     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22206     shlibpath_var=LD_LIBRARY_PATH
22207   else
22208     # With GCC up to 2.95.x, collect2 would create an import file
22209     # for dependence libraries.  The import file would start with
22210     # the line `#! .'.  This would cause the generated library to
22211     # depend on `.', always an invalid library.  This was fixed in
22212     # development snapshots of GCC prior to 3.0.
22213     case $host_os in
22214       aix4 | aix4.[01] | aix4.[01].*)
22215       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22216            echo ' yes '
22217            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22218         :
22219       else
22220         can_build_shared=no
22221       fi
22222       ;;
22223     esac
22224     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22225     # soname into executable. Probably we can add versioning support to
22226     # collect2, so additional links can be useful in future.
22227     if test "$aix_use_runtimelinking" = yes; then
22228       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22229       # instead of lib<name>.a to let people know that these are not
22230       # typical AIX shared libraries.
22231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22232     else
22233       # We preserve .a as extension for shared libraries through AIX4.2
22234       # and later when we are not doing run time linking.
22235       library_names_spec='${libname}${release}.a $libname.a'
22236       soname_spec='${libname}${release}${shared_ext}$major'
22237     fi
22238     shlibpath_var=LIBPATH
22239   fi
22240   ;;
22241
22242 amigaos*)
22243   library_names_spec='$libname.ixlibrary $libname.a'
22244   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22245   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'
22246   ;;
22247
22248 beos*)
22249   library_names_spec='${libname}${shared_ext}'
22250   dynamic_linker="$host_os ld.so"
22251   shlibpath_var=LIBRARY_PATH
22252   ;;
22253
22254 bsdi[45]*)
22255   version_type=linux
22256   need_version=no
22257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22258   soname_spec='${libname}${release}${shared_ext}$major'
22259   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22260   shlibpath_var=LD_LIBRARY_PATH
22261   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22262   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22263   # the default ld.so.conf also contains /usr/contrib/lib and
22264   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22265   # libtool to hard-code these into programs
22266   ;;
22267
22268 cygwin* | mingw* | pw32*)
22269   version_type=windows
22270   shrext_cmds=".dll"
22271   need_version=no
22272   need_lib_prefix=no
22273
22274   case $GCC,$host_os in
22275   yes,cygwin* | yes,mingw* | yes,pw32*)
22276     library_names_spec='$libname.dll.a'
22277     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22278     postinstall_cmds='base_file=`basename \${file}`~
22279       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22280       dldir=$destdir/`dirname \$dlpath`~
22281       test -d \$dldir || mkdir -p \$dldir~
22282       $install_prog $dir/$dlname \$dldir/$dlname'
22283     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22284       dlpath=$dir/\$dldll~
22285        $rm \$dlpath'
22286     shlibpath_overrides_runpath=yes
22287
22288     case $host_os in
22289     cygwin*)
22290       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22291       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22292       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22293       ;;
22294     mingw*)
22295       # MinGW DLLs use traditional 'lib' prefix
22296       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22297       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22298       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22299         # It is most probably a Windows format PATH printed by
22300         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22301         # path with ; separators, and with drive letters. We can handle the
22302         # drive letters (cygwin fileutils understands them), so leave them,
22303         # especially as we might pass files found there to a mingw objdump,
22304         # which wouldn't understand a cygwinified path. Ahh.
22305         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22306       else
22307         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22308       fi
22309       ;;
22310     pw32*)
22311       # pw32 DLLs use 'pw' prefix rather than 'lib'
22312       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22313       ;;
22314     esac
22315     ;;
22316
22317   *)
22318     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22319     ;;
22320   esac
22321   dynamic_linker='Win32 ld.exe'
22322   # FIXME: first we should search . and the directory the executable is in
22323   shlibpath_var=PATH
22324   ;;
22325
22326 darwin* | rhapsody*)
22327   dynamic_linker="$host_os dyld"
22328   version_type=darwin
22329   need_lib_prefix=no
22330   need_version=no
22331   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22332   soname_spec='${libname}${release}${major}$shared_ext'
22333   shlibpath_overrides_runpath=yes
22334   shlibpath_var=DYLD_LIBRARY_PATH
22335   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22336   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22337   if test "$GCC" = yes; then
22338     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"`
22339   else
22340     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22341   fi
22342   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22343   ;;
22344
22345 dgux*)
22346   version_type=linux
22347   need_lib_prefix=no
22348   need_version=no
22349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22350   soname_spec='${libname}${release}${shared_ext}$major'
22351   shlibpath_var=LD_LIBRARY_PATH
22352   ;;
22353
22354 freebsd1*)
22355   dynamic_linker=no
22356   ;;
22357
22358 kfreebsd*-gnu)
22359   version_type=linux
22360   need_lib_prefix=no
22361   need_version=no
22362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22363   soname_spec='${libname}${release}${shared_ext}$major'
22364   shlibpath_var=LD_LIBRARY_PATH
22365   shlibpath_overrides_runpath=no
22366   hardcode_into_libs=yes
22367   dynamic_linker='GNU ld.so'
22368   ;;
22369
22370 freebsd*)
22371   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22372   version_type=freebsd-$objformat
22373   case $version_type in
22374     freebsd-elf*)
22375       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22376       need_version=no
22377       need_lib_prefix=no
22378       ;;
22379     freebsd-*)
22380       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22381       need_version=yes
22382       ;;
22383   esac
22384   shlibpath_var=LD_LIBRARY_PATH
22385   case $host_os in
22386   freebsd2*)
22387     shlibpath_overrides_runpath=yes
22388     ;;
22389   freebsd3.01* | freebsdelf3.01*)
22390     shlibpath_overrides_runpath=yes
22391     hardcode_into_libs=yes
22392     ;;
22393   *) # from 3.2 on
22394     shlibpath_overrides_runpath=no
22395     hardcode_into_libs=yes
22396     ;;
22397   esac
22398   ;;
22399
22400 gnu*)
22401   version_type=linux
22402   need_lib_prefix=no
22403   need_version=no
22404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22405   soname_spec='${libname}${release}${shared_ext}$major'
22406   shlibpath_var=LD_LIBRARY_PATH
22407   hardcode_into_libs=yes
22408   ;;
22409
22410 hpux9* | hpux10* | hpux11*)
22411   # Give a soname corresponding to the major version so that dld.sl refuses to
22412   # link against other versions.
22413   version_type=sunos
22414   need_lib_prefix=no
22415   need_version=no
22416   case "$host_cpu" in
22417   ia64*)
22418     shrext_cmds='.so'
22419     hardcode_into_libs=yes
22420     dynamic_linker="$host_os dld.so"
22421     shlibpath_var=LD_LIBRARY_PATH
22422     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22424     soname_spec='${libname}${release}${shared_ext}$major'
22425     if test "X$HPUX_IA64_MODE" = X32; then
22426       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22427     else
22428       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22429     fi
22430     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22431     ;;
22432    hppa*64*)
22433      shrext_cmds='.sl'
22434      hardcode_into_libs=yes
22435      dynamic_linker="$host_os dld.sl"
22436      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22437      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22438      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22439      soname_spec='${libname}${release}${shared_ext}$major'
22440      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22441      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22442      ;;
22443    *)
22444     shrext_cmds='.sl'
22445     dynamic_linker="$host_os dld.sl"
22446     shlibpath_var=SHLIB_PATH
22447     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22449     soname_spec='${libname}${release}${shared_ext}$major'
22450     ;;
22451   esac
22452   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22453   postinstall_cmds='chmod 555 $lib'
22454   ;;
22455
22456 irix5* | irix6* | nonstopux*)
22457   case $host_os in
22458     nonstopux*) version_type=nonstopux ;;
22459     *)
22460         if test "$lt_cv_prog_gnu_ld" = yes; then
22461                 version_type=linux
22462         else
22463                 version_type=irix
22464         fi ;;
22465   esac
22466   need_lib_prefix=no
22467   need_version=no
22468   soname_spec='${libname}${release}${shared_ext}$major'
22469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22470   case $host_os in
22471   irix5* | nonstopux*)
22472     libsuff= shlibsuff=
22473     ;;
22474   *)
22475     case $LD in # libtool.m4 will add one of these switches to LD
22476     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22477       libsuff= shlibsuff= libmagic=32-bit;;
22478     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22479       libsuff=32 shlibsuff=N32 libmagic=N32;;
22480     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22481       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22482     *) libsuff= shlibsuff= libmagic=never-match;;
22483     esac
22484     ;;
22485   esac
22486   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22487   shlibpath_overrides_runpath=no
22488   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22489   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22490   hardcode_into_libs=yes
22491   ;;
22492
22493 # No shared lib support for Linux oldld, aout, or coff.
22494 linux*oldld* | linux*aout* | linux*coff*)
22495   dynamic_linker=no
22496   ;;
22497
22498 # This must be Linux ELF.
22499 linux*)
22500   version_type=linux
22501   need_lib_prefix=no
22502   need_version=no
22503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22504   soname_spec='${libname}${release}${shared_ext}$major'
22505   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22506   shlibpath_var=LD_LIBRARY_PATH
22507   shlibpath_overrides_runpath=no
22508   # This implies no fast_install, which is unacceptable.
22509   # Some rework will be needed to allow for fast_install
22510   # before this can be enabled.
22511   hardcode_into_libs=yes
22512
22513   # Append ld.so.conf contents to the search path
22514   if test -f /etc/ld.so.conf; then
22515     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22516     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22517   fi
22518
22519   # We used to test for /lib/ld.so.1 and disable shared libraries on
22520   # powerpc, because MkLinux only supported shared libraries with the
22521   # GNU dynamic linker.  Since this was broken with cross compilers,
22522   # most powerpc-linux boxes support dynamic linking these days and
22523   # people can always --disable-shared, the test was removed, and we
22524   # assume the GNU/Linux dynamic linker is in use.
22525   dynamic_linker='GNU/Linux ld.so'
22526   ;;
22527
22528 knetbsd*-gnu)
22529   version_type=linux
22530   need_lib_prefix=no
22531   need_version=no
22532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22533   soname_spec='${libname}${release}${shared_ext}$major'
22534   shlibpath_var=LD_LIBRARY_PATH
22535   shlibpath_overrides_runpath=no
22536   hardcode_into_libs=yes
22537   dynamic_linker='GNU ld.so'
22538   ;;
22539
22540 netbsd*)
22541   version_type=sunos
22542   need_lib_prefix=no
22543   need_version=no
22544   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22546     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22547     dynamic_linker='NetBSD (a.out) ld.so'
22548   else
22549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22550     soname_spec='${libname}${release}${shared_ext}$major'
22551     dynamic_linker='NetBSD ld.elf_so'
22552   fi
22553   shlibpath_var=LD_LIBRARY_PATH
22554   shlibpath_overrides_runpath=yes
22555   hardcode_into_libs=yes
22556   ;;
22557
22558 newsos6)
22559   version_type=linux
22560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22561   shlibpath_var=LD_LIBRARY_PATH
22562   shlibpath_overrides_runpath=yes
22563   ;;
22564
22565 nto-qnx*)
22566   version_type=linux
22567   need_lib_prefix=no
22568   need_version=no
22569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22570   soname_spec='${libname}${release}${shared_ext}$major'
22571   shlibpath_var=LD_LIBRARY_PATH
22572   shlibpath_overrides_runpath=yes
22573   ;;
22574
22575 openbsd*)
22576   version_type=sunos
22577   need_lib_prefix=no
22578   need_version=no
22579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22580   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22581   shlibpath_var=LD_LIBRARY_PATH
22582   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22583     case $host_os in
22584       openbsd2.[89] | openbsd2.[89].*)
22585         shlibpath_overrides_runpath=no
22586         ;;
22587       *)
22588         shlibpath_overrides_runpath=yes
22589         ;;
22590       esac
22591   else
22592     shlibpath_overrides_runpath=yes
22593   fi
22594   ;;
22595
22596 os2*)
22597   libname_spec='$name'
22598   shrext_cmds=".dll"
22599   need_lib_prefix=no
22600   library_names_spec='$libname${shared_ext} $libname.a'
22601   dynamic_linker='OS/2 ld.exe'
22602   shlibpath_var=LIBPATH
22603   ;;
22604
22605 osf3* | osf4* | osf5*)
22606   version_type=osf
22607   need_lib_prefix=no
22608   need_version=no
22609   soname_spec='${libname}${release}${shared_ext}$major'
22610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611   shlibpath_var=LD_LIBRARY_PATH
22612   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22613   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22614   ;;
22615
22616 sco3.2v5*)
22617   version_type=osf
22618   soname_spec='${libname}${release}${shared_ext}$major'
22619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620   shlibpath_var=LD_LIBRARY_PATH
22621   ;;
22622
22623 solaris*)
22624   version_type=linux
22625   need_lib_prefix=no
22626   need_version=no
22627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22628   soname_spec='${libname}${release}${shared_ext}$major'
22629   shlibpath_var=LD_LIBRARY_PATH
22630   shlibpath_overrides_runpath=yes
22631   hardcode_into_libs=yes
22632   # ldd complains unless libraries are executable
22633   postinstall_cmds='chmod +x $lib'
22634   ;;
22635
22636 sunos4*)
22637   version_type=sunos
22638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22639   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22640   shlibpath_var=LD_LIBRARY_PATH
22641   shlibpath_overrides_runpath=yes
22642   if test "$with_gnu_ld" = yes; then
22643     need_lib_prefix=no
22644   fi
22645   need_version=yes
22646   ;;
22647
22648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22649   version_type=linux
22650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651   soname_spec='${libname}${release}${shared_ext}$major'
22652   shlibpath_var=LD_LIBRARY_PATH
22653   case $host_vendor in
22654     sni)
22655       shlibpath_overrides_runpath=no
22656       need_lib_prefix=no
22657       export_dynamic_flag_spec='${wl}-Blargedynsym'
22658       runpath_var=LD_RUN_PATH
22659       ;;
22660     siemens)
22661       need_lib_prefix=no
22662       ;;
22663     motorola)
22664       need_lib_prefix=no
22665       need_version=no
22666       shlibpath_overrides_runpath=no
22667       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22668       ;;
22669   esac
22670   ;;
22671
22672 sysv4*MP*)
22673   if test -d /usr/nec ;then
22674     version_type=linux
22675     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22676     soname_spec='$libname${shared_ext}.$major'
22677     shlibpath_var=LD_LIBRARY_PATH
22678   fi
22679   ;;
22680
22681 uts4*)
22682   version_type=linux
22683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684   soname_spec='${libname}${release}${shared_ext}$major'
22685   shlibpath_var=LD_LIBRARY_PATH
22686   ;;
22687
22688 *)
22689   dynamic_linker=no
22690   ;;
22691 esac
22692 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22693 echo "${ECHO_T}$dynamic_linker" >&6
22694 test "$dynamic_linker" = no && can_build_shared=no
22695
22696 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22697 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22698 hardcode_action_GCJ=
22699 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22700    test -n "$runpath_var_GCJ" || \
22701    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22702
22703   # We can hardcode non-existant directories.
22704   if test "$hardcode_direct_GCJ" != no &&
22705      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22706      # have to relink, otherwise we might link with an installed library
22707      # when we should be linking with a yet-to-be-installed one
22708      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22709      test "$hardcode_minus_L_GCJ" != no; then
22710     # Linking always hardcodes the temporary library directory.
22711     hardcode_action_GCJ=relink
22712   else
22713     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22714     hardcode_action_GCJ=immediate
22715   fi
22716 else
22717   # We cannot hardcode anything, or else we can only hardcode existing
22718   # directories.
22719   hardcode_action_GCJ=unsupported
22720 fi
22721 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22722 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22723
22724 if test "$hardcode_action_GCJ" = relink; then
22725   # Fast installation is not supported
22726   enable_fast_install=no
22727 elif test "$shlibpath_overrides_runpath" = yes ||
22728      test "$enable_shared" = no; then
22729   # Fast installation is not necessary
22730   enable_fast_install=needless
22731 fi
22732
22733 striplib=
22734 old_striplib=
22735 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22736 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22737 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22738   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22739   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22740   echo "$as_me:$LINENO: result: yes" >&5
22741 echo "${ECHO_T}yes" >&6
22742 else
22743 # FIXME - insert some real tests, host_os isn't really good enough
22744   case $host_os in
22745    darwin*)
22746        if test -n "$STRIP" ; then
22747          striplib="$STRIP -x"
22748          echo "$as_me:$LINENO: result: yes" >&5
22749 echo "${ECHO_T}yes" >&6
22750        else
22751   echo "$as_me:$LINENO: result: no" >&5
22752 echo "${ECHO_T}no" >&6
22753 fi
22754        ;;
22755    *)
22756   echo "$as_me:$LINENO: result: no" >&5
22757 echo "${ECHO_T}no" >&6
22758     ;;
22759   esac
22760 fi
22761
22762 if test "x$enable_dlopen" != xyes; then
22763   enable_dlopen=unknown
22764   enable_dlopen_self=unknown
22765   enable_dlopen_self_static=unknown
22766 else
22767   lt_cv_dlopen=no
22768   lt_cv_dlopen_libs=
22769
22770   case $host_os in
22771   beos*)
22772     lt_cv_dlopen="load_add_on"
22773     lt_cv_dlopen_libs=
22774     lt_cv_dlopen_self=yes
22775     ;;
22776
22777   mingw* | pw32*)
22778     lt_cv_dlopen="LoadLibrary"
22779     lt_cv_dlopen_libs=
22780    ;;
22781
22782   cygwin*)
22783     lt_cv_dlopen="dlopen"
22784     lt_cv_dlopen_libs=
22785    ;;
22786
22787   darwin*)
22788   # if libdl is installed we need to link against it
22789     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22792   echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794   ac_check_lib_save_LIBS=$LIBS
22795 LIBS="-ldl  $LIBS"
22796 cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h.  */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h.  */
22802
22803 /* Override any gcc2 internal prototype to avoid an error.  */
22804 #ifdef __cplusplus
22805 extern "C"
22806 #endif
22807 /* We use char because int might match the return type of a gcc2
22808    builtin and then its argument prototype would still apply.  */
22809 char dlopen ();
22810 int
22811 main ()
22812 {
22813 dlopen ();
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22820   (eval $ac_link) 2>conftest.er1
22821   ac_status=$?
22822   grep -v '^ *+' conftest.er1 >conftest.err
22823   rm -f conftest.er1
22824   cat conftest.err >&5
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); } &&
22827          { ac_try='test -z "$ac_c_werror_flag"
22828                          || test ! -s conftest.err'
22829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830   (eval $ac_try) 2>&5
22831   ac_status=$?
22832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833   (exit $ac_status); }; } &&
22834          { ac_try='test -s conftest$ac_exeext'
22835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836   (eval $ac_try) 2>&5
22837   ac_status=$?
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); }; }; then
22840   ac_cv_lib_dl_dlopen=yes
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845 ac_cv_lib_dl_dlopen=no
22846 fi
22847 rm -f conftest.err conftest.$ac_objext \
22848       conftest$ac_exeext conftest.$ac_ext
22849 LIBS=$ac_check_lib_save_LIBS
22850 fi
22851 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22852 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22853 if test $ac_cv_lib_dl_dlopen = yes; then
22854   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22855 else
22856
22857     lt_cv_dlopen="dyld"
22858     lt_cv_dlopen_libs=
22859     lt_cv_dlopen_self=yes
22860
22861 fi
22862
22863    ;;
22864
22865   *)
22866     echo "$as_me:$LINENO: checking for shl_load" >&5
22867 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22868 if test "${ac_cv_func_shl_load+set}" = set; then
22869   echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871   cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22879 #define shl_load innocuous_shl_load
22880
22881 /* System header to define __stub macros and hopefully few prototypes,
22882     which can conflict with char shl_load (); below.
22883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22884     <limits.h> exists even on freestanding compilers.  */
22885
22886 #ifdef __STDC__
22887 # include <limits.h>
22888 #else
22889 # include <assert.h>
22890 #endif
22891
22892 #undef shl_load
22893
22894 /* Override any gcc2 internal prototype to avoid an error.  */
22895 #ifdef __cplusplus
22896 extern "C"
22897 {
22898 #endif
22899 /* We use char because int might match the return type of a gcc2
22900    builtin and then its argument prototype would still apply.  */
22901 char shl_load ();
22902 /* The GNU C library defines this for functions which it implements
22903     to always fail with ENOSYS.  Some functions are actually named
22904     something starting with __ and the normal name is an alias.  */
22905 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22906 choke me
22907 #else
22908 char (*f) () = shl_load;
22909 #endif
22910 #ifdef __cplusplus
22911 }
22912 #endif
22913
22914 int
22915 main ()
22916 {
22917 return f != shl_load;
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22924   (eval $ac_link) 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } &&
22931          { ac_try='test -z "$ac_c_werror_flag"
22932                          || test ! -s conftest.err'
22933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934   (eval $ac_try) 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); }; } &&
22938          { ac_try='test -s conftest$ac_exeext'
22939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940   (eval $ac_try) 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; }; then
22944   ac_cv_func_shl_load=yes
22945 else
22946   echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949 ac_cv_func_shl_load=no
22950 fi
22951 rm -f conftest.err conftest.$ac_objext \
22952       conftest$ac_exeext conftest.$ac_ext
22953 fi
22954 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22955 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22956 if test $ac_cv_func_shl_load = yes; then
22957   lt_cv_dlopen="shl_load"
22958 else
22959   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22960 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22961 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22962   echo $ECHO_N "(cached) $ECHO_C" >&6
22963 else
22964   ac_check_lib_save_LIBS=$LIBS
22965 LIBS="-ldld  $LIBS"
22966 cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h.  */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h.  */
22972
22973 /* Override any gcc2 internal prototype to avoid an error.  */
22974 #ifdef __cplusplus
22975 extern "C"
22976 #endif
22977 /* We use char because int might match the return type of a gcc2
22978    builtin and then its argument prototype would still apply.  */
22979 char shl_load ();
22980 int
22981 main ()
22982 {
22983 shl_load ();
22984   ;
22985   return 0;
22986 }
22987 _ACEOF
22988 rm -f conftest.$ac_objext conftest$ac_exeext
22989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22990   (eval $ac_link) 2>conftest.er1
22991   ac_status=$?
22992   grep -v '^ *+' conftest.er1 >conftest.err
22993   rm -f conftest.er1
22994   cat conftest.err >&5
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); } &&
22997          { ac_try='test -z "$ac_c_werror_flag"
22998                          || test ! -s conftest.err'
22999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000   (eval $ac_try) 2>&5
23001   ac_status=$?
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); }; } &&
23004          { ac_try='test -s conftest$ac_exeext'
23005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006   (eval $ac_try) 2>&5
23007   ac_status=$?
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); }; }; then
23010   ac_cv_lib_dld_shl_load=yes
23011 else
23012   echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015 ac_cv_lib_dld_shl_load=no
23016 fi
23017 rm -f conftest.err conftest.$ac_objext \
23018       conftest$ac_exeext conftest.$ac_ext
23019 LIBS=$ac_check_lib_save_LIBS
23020 fi
23021 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23022 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23023 if test $ac_cv_lib_dld_shl_load = yes; then
23024   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23025 else
23026   echo "$as_me:$LINENO: checking for dlopen" >&5
23027 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23028 if test "${ac_cv_func_dlopen+set}" = set; then
23029   echo $ECHO_N "(cached) $ECHO_C" >&6
23030 else
23031   cat >conftest.$ac_ext <<_ACEOF
23032 /* confdefs.h.  */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h.  */
23037 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23039 #define dlopen innocuous_dlopen
23040
23041 /* System header to define __stub macros and hopefully few prototypes,
23042     which can conflict with char dlopen (); below.
23043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23044     <limits.h> exists even on freestanding compilers.  */
23045
23046 #ifdef __STDC__
23047 # include <limits.h>
23048 #else
23049 # include <assert.h>
23050 #endif
23051
23052 #undef dlopen
23053
23054 /* Override any gcc2 internal prototype to avoid an error.  */
23055 #ifdef __cplusplus
23056 extern "C"
23057 {
23058 #endif
23059 /* We use char because int might match the return type of a gcc2
23060    builtin and then its argument prototype would still apply.  */
23061 char dlopen ();
23062 /* The GNU C library defines this for functions which it implements
23063     to always fail with ENOSYS.  Some functions are actually named
23064     something starting with __ and the normal name is an alias.  */
23065 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23066 choke me
23067 #else
23068 char (*f) () = dlopen;
23069 #endif
23070 #ifdef __cplusplus
23071 }
23072 #endif
23073
23074 int
23075 main ()
23076 {
23077 return f != dlopen;
23078   ;
23079   return 0;
23080 }
23081 _ACEOF
23082 rm -f conftest.$ac_objext conftest$ac_exeext
23083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23084   (eval $ac_link) 2>conftest.er1
23085   ac_status=$?
23086   grep -v '^ *+' conftest.er1 >conftest.err
23087   rm -f conftest.er1
23088   cat conftest.err >&5
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); } &&
23091          { ac_try='test -z "$ac_c_werror_flag"
23092                          || test ! -s conftest.err'
23093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094   (eval $ac_try) 2>&5
23095   ac_status=$?
23096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); }; } &&
23098          { ac_try='test -s conftest$ac_exeext'
23099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100   (eval $ac_try) 2>&5
23101   ac_status=$?
23102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103   (exit $ac_status); }; }; then
23104   ac_cv_func_dlopen=yes
23105 else
23106   echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23108
23109 ac_cv_func_dlopen=no
23110 fi
23111 rm -f conftest.err conftest.$ac_objext \
23112       conftest$ac_exeext conftest.$ac_ext
23113 fi
23114 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23116 if test $ac_cv_func_dlopen = yes; then
23117   lt_cv_dlopen="dlopen"
23118 else
23119   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124   ac_check_lib_save_LIBS=$LIBS
23125 LIBS="-ldl  $LIBS"
23126 cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h.  */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h.  */
23132
23133 /* Override any gcc2 internal prototype to avoid an error.  */
23134 #ifdef __cplusplus
23135 extern "C"
23136 #endif
23137 /* We use char because int might match the return type of a gcc2
23138    builtin and then its argument prototype would still apply.  */
23139 char dlopen ();
23140 int
23141 main ()
23142 {
23143 dlopen ();
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150   (eval $ac_link) 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } &&
23157          { ac_try='test -z "$ac_c_werror_flag"
23158                          || test ! -s conftest.err'
23159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160   (eval $ac_try) 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); }; } &&
23164          { ac_try='test -s conftest$ac_exeext'
23165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166   (eval $ac_try) 2>&5
23167   ac_status=$?
23168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169   (exit $ac_status); }; }; then
23170   ac_cv_lib_dl_dlopen=yes
23171 else
23172   echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23174
23175 ac_cv_lib_dl_dlopen=no
23176 fi
23177 rm -f conftest.err conftest.$ac_objext \
23178       conftest$ac_exeext conftest.$ac_ext
23179 LIBS=$ac_check_lib_save_LIBS
23180 fi
23181 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23182 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23183 if test $ac_cv_lib_dl_dlopen = yes; then
23184   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23185 else
23186   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23187 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23188 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23189   echo $ECHO_N "(cached) $ECHO_C" >&6
23190 else
23191   ac_check_lib_save_LIBS=$LIBS
23192 LIBS="-lsvld  $LIBS"
23193 cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h.  */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h.  */
23199
23200 /* Override any gcc2 internal prototype to avoid an error.  */
23201 #ifdef __cplusplus
23202 extern "C"
23203 #endif
23204 /* We use char because int might match the return type of a gcc2
23205    builtin and then its argument prototype would still apply.  */
23206 char dlopen ();
23207 int
23208 main ()
23209 {
23210 dlopen ();
23211   ;
23212   return 0;
23213 }
23214 _ACEOF
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217   (eval $ac_link) 2>conftest.er1
23218   ac_status=$?
23219   grep -v '^ *+' conftest.er1 >conftest.err
23220   rm -f conftest.er1
23221   cat conftest.err >&5
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); } &&
23224          { ac_try='test -z "$ac_c_werror_flag"
23225                          || test ! -s conftest.err'
23226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227   (eval $ac_try) 2>&5
23228   ac_status=$?
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); }; } &&
23231          { ac_try='test -s conftest$ac_exeext'
23232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233   (eval $ac_try) 2>&5
23234   ac_status=$?
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); }; }; then
23237   ac_cv_lib_svld_dlopen=yes
23238 else
23239   echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23241
23242 ac_cv_lib_svld_dlopen=no
23243 fi
23244 rm -f conftest.err conftest.$ac_objext \
23245       conftest$ac_exeext conftest.$ac_ext
23246 LIBS=$ac_check_lib_save_LIBS
23247 fi
23248 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23249 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23250 if test $ac_cv_lib_svld_dlopen = yes; then
23251   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23252 else
23253   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23254 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23255 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23256   echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258   ac_check_lib_save_LIBS=$LIBS
23259 LIBS="-ldld  $LIBS"
23260 cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266
23267 /* Override any gcc2 internal prototype to avoid an error.  */
23268 #ifdef __cplusplus
23269 extern "C"
23270 #endif
23271 /* We use char because int might match the return type of a gcc2
23272    builtin and then its argument prototype would still apply.  */
23273 char dld_link ();
23274 int
23275 main ()
23276 {
23277 dld_link ();
23278   ;
23279   return 0;
23280 }
23281 _ACEOF
23282 rm -f conftest.$ac_objext conftest$ac_exeext
23283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23284   (eval $ac_link) 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } &&
23291          { ac_try='test -z "$ac_c_werror_flag"
23292                          || test ! -s conftest.err'
23293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294   (eval $ac_try) 2>&5
23295   ac_status=$?
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); }; } &&
23298          { ac_try='test -s conftest$ac_exeext'
23299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300   (eval $ac_try) 2>&5
23301   ac_status=$?
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); }; }; then
23304   ac_cv_lib_dld_dld_link=yes
23305 else
23306   echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23308
23309 ac_cv_lib_dld_dld_link=no
23310 fi
23311 rm -f conftest.err conftest.$ac_objext \
23312       conftest$ac_exeext conftest.$ac_ext
23313 LIBS=$ac_check_lib_save_LIBS
23314 fi
23315 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23316 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23317 if test $ac_cv_lib_dld_dld_link = yes; then
23318   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23319 fi
23320
23321
23322 fi
23323
23324
23325 fi
23326
23327
23328 fi
23329
23330
23331 fi
23332
23333
23334 fi
23335
23336     ;;
23337   esac
23338
23339   if test "x$lt_cv_dlopen" != xno; then
23340     enable_dlopen=yes
23341   else
23342     enable_dlopen=no
23343   fi
23344
23345   case $lt_cv_dlopen in
23346   dlopen)
23347     save_CPPFLAGS="$CPPFLAGS"
23348     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23349
23350     save_LDFLAGS="$LDFLAGS"
23351     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23352
23353     save_LIBS="$LIBS"
23354     LIBS="$lt_cv_dlopen_libs $LIBS"
23355
23356     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23357 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23358 if test "${lt_cv_dlopen_self+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361           if test "$cross_compiling" = yes; then :
23362   lt_cv_dlopen_self=cross
23363 else
23364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23365   lt_status=$lt_dlunknown
23366   cat > conftest.$ac_ext <<EOF
23367 #line 23367 "configure"
23368 #include "confdefs.h"
23369
23370 #if HAVE_DLFCN_H
23371 #include <dlfcn.h>
23372 #endif
23373
23374 #include <stdio.h>
23375
23376 #ifdef RTLD_GLOBAL
23377 #  define LT_DLGLOBAL           RTLD_GLOBAL
23378 #else
23379 #  ifdef DL_GLOBAL
23380 #    define LT_DLGLOBAL         DL_GLOBAL
23381 #  else
23382 #    define LT_DLGLOBAL         0
23383 #  endif
23384 #endif
23385
23386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23387    find out it does not work in some platform. */
23388 #ifndef LT_DLLAZY_OR_NOW
23389 #  ifdef RTLD_LAZY
23390 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23391 #  else
23392 #    ifdef DL_LAZY
23393 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23394 #    else
23395 #      ifdef RTLD_NOW
23396 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23397 #      else
23398 #        ifdef DL_NOW
23399 #          define LT_DLLAZY_OR_NOW      DL_NOW
23400 #        else
23401 #          define LT_DLLAZY_OR_NOW      0
23402 #        endif
23403 #      endif
23404 #    endif
23405 #  endif
23406 #endif
23407
23408 #ifdef __cplusplus
23409 extern "C" void exit (int);
23410 #endif
23411
23412 void fnord() { int i=42;}
23413 int main ()
23414 {
23415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23416   int status = $lt_dlunknown;
23417
23418   if (self)
23419     {
23420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23422       /* dlclose (self); */
23423     }
23424
23425     exit (status);
23426 }
23427 EOF
23428   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23429   (eval $ac_link) 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23433     (./conftest; exit; ) 2>/dev/null
23434     lt_status=$?
23435     case x$lt_status in
23436       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23437       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23438       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23439     esac
23440   else :
23441     # compilation failed
23442     lt_cv_dlopen_self=no
23443   fi
23444 fi
23445 rm -fr conftest*
23446
23447
23448 fi
23449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23450 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23451
23452     if test "x$lt_cv_dlopen_self" = xyes; then
23453       LDFLAGS="$LDFLAGS $link_static_flag"
23454       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23455 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23456 if test "${lt_cv_dlopen_self_static+set}" = set; then
23457   echo $ECHO_N "(cached) $ECHO_C" >&6
23458 else
23459           if test "$cross_compiling" = yes; then :
23460   lt_cv_dlopen_self_static=cross
23461 else
23462   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23463   lt_status=$lt_dlunknown
23464   cat > conftest.$ac_ext <<EOF
23465 #line 23465 "configure"
23466 #include "confdefs.h"
23467
23468 #if HAVE_DLFCN_H
23469 #include <dlfcn.h>
23470 #endif
23471
23472 #include <stdio.h>
23473
23474 #ifdef RTLD_GLOBAL
23475 #  define LT_DLGLOBAL           RTLD_GLOBAL
23476 #else
23477 #  ifdef DL_GLOBAL
23478 #    define LT_DLGLOBAL         DL_GLOBAL
23479 #  else
23480 #    define LT_DLGLOBAL         0
23481 #  endif
23482 #endif
23483
23484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23485    find out it does not work in some platform. */
23486 #ifndef LT_DLLAZY_OR_NOW
23487 #  ifdef RTLD_LAZY
23488 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23489 #  else
23490 #    ifdef DL_LAZY
23491 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23492 #    else
23493 #      ifdef RTLD_NOW
23494 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23495 #      else
23496 #        ifdef DL_NOW
23497 #          define LT_DLLAZY_OR_NOW      DL_NOW
23498 #        else
23499 #          define LT_DLLAZY_OR_NOW      0
23500 #        endif
23501 #      endif
23502 #    endif
23503 #  endif
23504 #endif
23505
23506 #ifdef __cplusplus
23507 extern "C" void exit (int);
23508 #endif
23509
23510 void fnord() { int i=42;}
23511 int main ()
23512 {
23513   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23514   int status = $lt_dlunknown;
23515
23516   if (self)
23517     {
23518       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23519       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23520       /* dlclose (self); */
23521     }
23522
23523     exit (status);
23524 }
23525 EOF
23526   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23527   (eval $ac_link) 2>&5
23528   ac_status=$?
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23531     (./conftest; exit; ) 2>/dev/null
23532     lt_status=$?
23533     case x$lt_status in
23534       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23535       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23536       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23537     esac
23538   else :
23539     # compilation failed
23540     lt_cv_dlopen_self_static=no
23541   fi
23542 fi
23543 rm -fr conftest*
23544
23545
23546 fi
23547 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23548 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23549     fi
23550
23551     CPPFLAGS="$save_CPPFLAGS"
23552     LDFLAGS="$save_LDFLAGS"
23553     LIBS="$save_LIBS"
23554     ;;
23555   esac
23556
23557   case $lt_cv_dlopen_self in
23558   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23559   *) enable_dlopen_self=unknown ;;
23560   esac
23561
23562   case $lt_cv_dlopen_self_static in
23563   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23564   *) enable_dlopen_self_static=unknown ;;
23565   esac
23566 fi
23567
23568
23569 # The else clause should only fire when bootstrapping the
23570 # libtool distribution, otherwise you forgot to ship ltmain.sh
23571 # with your package, and you will get complaints that there are
23572 # no rules to generate ltmain.sh.
23573 if test -f "$ltmain"; then
23574   # See if we are running on zsh, and set the options which allow our commands through
23575   # without removal of \ escapes.
23576   if test -n "${ZSH_VERSION+set}" ; then
23577     setopt NO_GLOB_SUBST
23578   fi
23579   # Now quote all the things that may contain metacharacters while being
23580   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23581   # variables and quote the copies for generation of the libtool script.
23582   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23583     SED SHELL STRIP \
23584     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23585     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23586     deplibs_check_method reload_flag reload_cmds need_locks \
23587     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23588     lt_cv_sys_global_symbol_to_c_name_address \
23589     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23590     old_postinstall_cmds old_postuninstall_cmds \
23591     compiler_GCJ \
23592     CC_GCJ \
23593     LD_GCJ \
23594     lt_prog_compiler_wl_GCJ \
23595     lt_prog_compiler_pic_GCJ \
23596     lt_prog_compiler_static_GCJ \
23597     lt_prog_compiler_no_builtin_flag_GCJ \
23598     export_dynamic_flag_spec_GCJ \
23599     thread_safe_flag_spec_GCJ \
23600     whole_archive_flag_spec_GCJ \
23601     enable_shared_with_static_runtimes_GCJ \
23602     old_archive_cmds_GCJ \
23603     old_archive_from_new_cmds_GCJ \
23604     predep_objects_GCJ \
23605     postdep_objects_GCJ \
23606     predeps_GCJ \
23607     postdeps_GCJ \
23608     compiler_lib_search_path_GCJ \
23609     archive_cmds_GCJ \
23610     archive_expsym_cmds_GCJ \
23611     postinstall_cmds_GCJ \
23612     postuninstall_cmds_GCJ \
23613     old_archive_from_expsyms_cmds_GCJ \
23614     allow_undefined_flag_GCJ \
23615     no_undefined_flag_GCJ \
23616     export_symbols_cmds_GCJ \
23617     hardcode_libdir_flag_spec_GCJ \
23618     hardcode_libdir_flag_spec_ld_GCJ \
23619     hardcode_libdir_separator_GCJ \
23620     hardcode_automatic_GCJ \
23621     module_cmds_GCJ \
23622     module_expsym_cmds_GCJ \
23623     lt_cv_prog_compiler_c_o_GCJ \
23624     exclude_expsyms_GCJ \
23625     include_expsyms_GCJ; do
23626
23627     case $var in
23628     old_archive_cmds_GCJ | \
23629     old_archive_from_new_cmds_GCJ | \
23630     archive_cmds_GCJ | \
23631     archive_expsym_cmds_GCJ | \
23632     module_cmds_GCJ | \
23633     module_expsym_cmds_GCJ | \
23634     old_archive_from_expsyms_cmds_GCJ | \
23635     export_symbols_cmds_GCJ | \
23636     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23637     postinstall_cmds | postuninstall_cmds | \
23638     old_postinstall_cmds | old_postuninstall_cmds | \
23639     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23640       # Double-quote double-evaled strings.
23641       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23642       ;;
23643     *)
23644       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23645       ;;
23646     esac
23647   done
23648
23649   case $lt_echo in
23650   *'\$0 --fallback-echo"')
23651     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23652     ;;
23653   esac
23654
23655 cfgfile="$ofile"
23656
23657   cat <<__EOF__ >> "$cfgfile"
23658 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23659
23660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23661
23662 # Shell to use when invoking shell scripts.
23663 SHELL=$lt_SHELL
23664
23665 # Whether or not to build shared libraries.
23666 build_libtool_libs=$enable_shared
23667
23668 # Whether or not to build static libraries.
23669 build_old_libs=$enable_static
23670
23671 # Whether or not to add -lc for building shared libraries.
23672 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23673
23674 # Whether or not to disallow shared libs when runtime libs are static
23675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23676
23677 # Whether or not to optimize for fast installation.
23678 fast_install=$enable_fast_install
23679
23680 # The host system.
23681 host_alias=$host_alias
23682 host=$host
23683
23684 # An echo program that does not interpret backslashes.
23685 echo=$lt_echo
23686
23687 # The archiver.
23688 AR=$lt_AR
23689 AR_FLAGS=$lt_AR_FLAGS
23690
23691 # A C compiler.
23692 LTCC=$lt_LTCC
23693
23694 # A language-specific compiler.
23695 CC=$lt_compiler_GCJ
23696
23697 # Is the compiler the GNU C compiler?
23698 with_gcc=$GCC_GCJ
23699
23700 # An ERE matcher.
23701 EGREP=$lt_EGREP
23702
23703 # The linker used to build libraries.
23704 LD=$lt_LD_GCJ
23705
23706 # Whether we need hard or soft links.
23707 LN_S=$lt_LN_S
23708
23709 # A BSD-compatible nm program.
23710 NM=$lt_NM
23711
23712 # A symbol stripping program
23713 STRIP=$lt_STRIP
23714
23715 # Used to examine libraries when file_magic_cmd begins "file"
23716 MAGIC_CMD=$MAGIC_CMD
23717
23718 # Used on cygwin: DLL creation program.
23719 DLLTOOL="$DLLTOOL"
23720
23721 # Used on cygwin: object dumper.
23722 OBJDUMP="$OBJDUMP"
23723
23724 # Used on cygwin: assembler.
23725 AS="$AS"
23726
23727 # The name of the directory that contains temporary libtool files.
23728 objdir=$objdir
23729
23730 # How to create reloadable object files.
23731 reload_flag=$lt_reload_flag
23732 reload_cmds=$lt_reload_cmds
23733
23734 # How to pass a linker flag through the compiler.
23735 wl=$lt_lt_prog_compiler_wl_GCJ
23736
23737 # Object file suffix (normally "o").
23738 objext="$ac_objext"
23739
23740 # Old archive suffix (normally "a").
23741 libext="$libext"
23742
23743 # Shared library suffix (normally ".so").
23744 shrext_cmds='$shrext_cmds'
23745
23746 # Executable file suffix (normally "").
23747 exeext="$exeext"
23748
23749 # Additional compiler flags for building library objects.
23750 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23751 pic_mode=$pic_mode
23752
23753 # What is the maximum length of a command?
23754 max_cmd_len=$lt_cv_sys_max_cmd_len
23755
23756 # Does compiler simultaneously support -c and -o options?
23757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23758
23759 # Must we lock files when doing compilation ?
23760 need_locks=$lt_need_locks
23761
23762 # Do we need the lib prefix for modules?
23763 need_lib_prefix=$need_lib_prefix
23764
23765 # Do we need a version for libraries?
23766 need_version=$need_version
23767
23768 # Whether dlopen is supported.
23769 dlopen_support=$enable_dlopen
23770
23771 # Whether dlopen of programs is supported.
23772 dlopen_self=$enable_dlopen_self
23773
23774 # Whether dlopen of statically linked programs is supported.
23775 dlopen_self_static=$enable_dlopen_self_static
23776
23777 # Compiler flag to prevent dynamic linking.
23778 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23779
23780 # Compiler flag to turn off builtin functions.
23781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23782
23783 # Compiler flag to allow reflexive dlopens.
23784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23785
23786 # Compiler flag to generate shared objects directly from archives.
23787 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23788
23789 # Compiler flag to generate thread-safe objects.
23790 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23791
23792 # Library versioning type.
23793 version_type=$version_type
23794
23795 # Format of library name prefix.
23796 libname_spec=$lt_libname_spec
23797
23798 # List of archive names.  First name is the real one, the rest are links.
23799 # The last name is the one that the linker finds with -lNAME.
23800 library_names_spec=$lt_library_names_spec
23801
23802 # The coded name of the library, if different from the real name.
23803 soname_spec=$lt_soname_spec
23804
23805 # Commands used to build and install an old-style archive.
23806 RANLIB=$lt_RANLIB
23807 old_archive_cmds=$lt_old_archive_cmds_GCJ
23808 old_postinstall_cmds=$lt_old_postinstall_cmds
23809 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23810
23811 # Create an old-style archive from a shared archive.
23812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23813
23814 # Create a temporary old-style archive to link instead of a shared archive.
23815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23816
23817 # Commands used to build and install a shared archive.
23818 archive_cmds=$lt_archive_cmds_GCJ
23819 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23820 postinstall_cmds=$lt_postinstall_cmds
23821 postuninstall_cmds=$lt_postuninstall_cmds
23822
23823 # Commands used to build a loadable module (assumed same as above if empty)
23824 module_cmds=$lt_module_cmds_GCJ
23825 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23826
23827 # Commands to strip libraries.
23828 old_striplib=$lt_old_striplib
23829 striplib=$lt_striplib
23830
23831 # Dependencies to place before the objects being linked to create a
23832 # shared library.
23833 predep_objects=$lt_predep_objects_GCJ
23834
23835 # Dependencies to place after the objects being linked to create a
23836 # shared library.
23837 postdep_objects=$lt_postdep_objects_GCJ
23838
23839 # Dependencies to place before the objects being linked to create a
23840 # shared library.
23841 predeps=$lt_predeps_GCJ
23842
23843 # Dependencies to place after the objects being linked to create a
23844 # shared library.
23845 postdeps=$lt_postdeps_GCJ
23846
23847 # The library search path used internally by the compiler when linking
23848 # a shared library.
23849 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23850
23851 # Method to check whether dependent libraries are shared objects.
23852 deplibs_check_method=$lt_deplibs_check_method
23853
23854 # Command to use when deplibs_check_method == file_magic.
23855 file_magic_cmd=$lt_file_magic_cmd
23856
23857 # Flag that allows shared libraries with undefined symbols to be built.
23858 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23859
23860 # Flag that forces no undefined symbols.
23861 no_undefined_flag=$lt_no_undefined_flag_GCJ
23862
23863 # Commands used to finish a libtool library installation in a directory.
23864 finish_cmds=$lt_finish_cmds
23865
23866 # Same as above, but a single script fragment to be evaled but not shown.
23867 finish_eval=$lt_finish_eval
23868
23869 # Take the output of nm and produce a listing of raw symbols and C names.
23870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23871
23872 # Transform the output of nm in a proper C declaration
23873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23874
23875 # Transform the output of nm in a C name address pair
23876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23877
23878 # This is the shared library runtime path variable.
23879 runpath_var=$runpath_var
23880
23881 # This is the shared library path variable.
23882 shlibpath_var=$shlibpath_var
23883
23884 # Is shlibpath searched before the hard-coded library search path?
23885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23886
23887 # How to hardcode a shared library path into an executable.
23888 hardcode_action=$hardcode_action_GCJ
23889
23890 # Whether we should hardcode library paths into libraries.
23891 hardcode_into_libs=$hardcode_into_libs
23892
23893 # Flag to hardcode \$libdir into a binary during linking.
23894 # This must work even if \$libdir does not exist.
23895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23896
23897 # If ld is used when linking, flag to hardcode \$libdir into
23898 # a binary during linking. This must work even if \$libdir does
23899 # not exist.
23900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23901
23902 # Whether we need a single -rpath flag with a separated argument.
23903 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23904
23905 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23906 # resulting binary.
23907 hardcode_direct=$hardcode_direct_GCJ
23908
23909 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23910 # resulting binary.
23911 hardcode_minus_L=$hardcode_minus_L_GCJ
23912
23913 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23914 # the resulting binary.
23915 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23916
23917 # Set to yes if building a shared library automatically hardcodes DIR into the library
23918 # and all subsequent libraries and executables linked against it.
23919 hardcode_automatic=$hardcode_automatic_GCJ
23920
23921 # Variables whose values should be saved in libtool wrapper scripts and
23922 # restored at relink time.
23923 variables_saved_for_relink="$variables_saved_for_relink"
23924
23925 # Whether libtool must link a program against all its dependency libraries.
23926 link_all_deplibs=$link_all_deplibs_GCJ
23927
23928 # Compile-time system search path for libraries
23929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23930
23931 # Run-time system search path for libraries
23932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23933
23934 # Fix the shell variable \$srcfile for the compiler.
23935 fix_srcfile_path="$fix_srcfile_path_GCJ"
23936
23937 # Set to yes if exported symbols are required.
23938 always_export_symbols=$always_export_symbols_GCJ
23939
23940 # The commands to list exported symbols.
23941 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23942
23943 # The commands to extract the exported symbol list from a shared archive.
23944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23945
23946 # Symbols that should not be listed in the preloaded symbols.
23947 exclude_expsyms=$lt_exclude_expsyms_GCJ
23948
23949 # Symbols that must always be exported.
23950 include_expsyms=$lt_include_expsyms_GCJ
23951
23952 # ### END LIBTOOL TAG CONFIG: $tagname
23953
23954 __EOF__
23955
23956
23957 else
23958   # If there is no Makefile yet, we rely on a make rule to execute
23959   # `config.status --recheck' to rerun these tests and create the
23960   # libtool script then.
23961   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23962   if test -f "$ltmain_in"; then
23963     test -f Makefile && make "$ltmain"
23964   fi
23965 fi
23966
23967
23968 ac_ext=c
23969 ac_cpp='$CPP $CPPFLAGS'
23970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23973
23974 CC="$lt_save_CC"
23975
23976         else
23977           tagname=""
23978         fi
23979         ;;
23980
23981       RC)
23982         ac_ext=c
23983 ac_cpp='$CPP $CPPFLAGS'
23984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23987
23988
23989 # Source file extension for RC test sources.
23990 ac_ext=rc
23991
23992 # Object file extension for compiled RC test sources.
23993 objext=o
23994 objext_RC=$objext
23995
23996 # Code to be used in simple compile tests
23997 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23998
23999 # Code to be used in simple link tests
24000 lt_simple_link_test_code="$lt_simple_compile_test_code"
24001
24002 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24003
24004 # If no C compiler was specified, use CC.
24005 LTCC=${LTCC-"$CC"}
24006
24007 # Allow CC to be a program name with arguments.
24008 compiler=$CC
24009
24010
24011 # Allow CC to be a program name with arguments.
24012 lt_save_CC="$CC"
24013 CC=${RC-"windres"}
24014 compiler=$CC
24015 compiler_RC=$CC
24016 lt_cv_prog_compiler_c_o_RC=yes
24017
24018 # The else clause should only fire when bootstrapping the
24019 # libtool distribution, otherwise you forgot to ship ltmain.sh
24020 # with your package, and you will get complaints that there are
24021 # no rules to generate ltmain.sh.
24022 if test -f "$ltmain"; then
24023   # See if we are running on zsh, and set the options which allow our commands through
24024   # without removal of \ escapes.
24025   if test -n "${ZSH_VERSION+set}" ; then
24026     setopt NO_GLOB_SUBST
24027   fi
24028   # Now quote all the things that may contain metacharacters while being
24029   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24030   # variables and quote the copies for generation of the libtool script.
24031   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24032     SED SHELL STRIP \
24033     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24034     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24035     deplibs_check_method reload_flag reload_cmds need_locks \
24036     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24037     lt_cv_sys_global_symbol_to_c_name_address \
24038     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24039     old_postinstall_cmds old_postuninstall_cmds \
24040     compiler_RC \
24041     CC_RC \
24042     LD_RC \
24043     lt_prog_compiler_wl_RC \
24044     lt_prog_compiler_pic_RC \
24045     lt_prog_compiler_static_RC \
24046     lt_prog_compiler_no_builtin_flag_RC \
24047     export_dynamic_flag_spec_RC \
24048     thread_safe_flag_spec_RC \
24049     whole_archive_flag_spec_RC \
24050     enable_shared_with_static_runtimes_RC \
24051     old_archive_cmds_RC \
24052     old_archive_from_new_cmds_RC \
24053     predep_objects_RC \
24054     postdep_objects_RC \
24055     predeps_RC \
24056     postdeps_RC \
24057     compiler_lib_search_path_RC \
24058     archive_cmds_RC \
24059     archive_expsym_cmds_RC \
24060     postinstall_cmds_RC \
24061     postuninstall_cmds_RC \
24062     old_archive_from_expsyms_cmds_RC \
24063     allow_undefined_flag_RC \
24064     no_undefined_flag_RC \
24065     export_symbols_cmds_RC \
24066     hardcode_libdir_flag_spec_RC \
24067     hardcode_libdir_flag_spec_ld_RC \
24068     hardcode_libdir_separator_RC \
24069     hardcode_automatic_RC \
24070     module_cmds_RC \
24071     module_expsym_cmds_RC \
24072     lt_cv_prog_compiler_c_o_RC \
24073     exclude_expsyms_RC \
24074     include_expsyms_RC; do
24075
24076     case $var in
24077     old_archive_cmds_RC | \
24078     old_archive_from_new_cmds_RC | \
24079     archive_cmds_RC | \
24080     archive_expsym_cmds_RC | \
24081     module_cmds_RC | \
24082     module_expsym_cmds_RC | \
24083     old_archive_from_expsyms_cmds_RC | \
24084     export_symbols_cmds_RC | \
24085     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24086     postinstall_cmds | postuninstall_cmds | \
24087     old_postinstall_cmds | old_postuninstall_cmds | \
24088     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24089       # Double-quote double-evaled strings.
24090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24091       ;;
24092     *)
24093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24094       ;;
24095     esac
24096   done
24097
24098   case $lt_echo in
24099   *'\$0 --fallback-echo"')
24100     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24101     ;;
24102   esac
24103
24104 cfgfile="$ofile"
24105
24106   cat <<__EOF__ >> "$cfgfile"
24107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24108
24109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24110
24111 # Shell to use when invoking shell scripts.
24112 SHELL=$lt_SHELL
24113
24114 # Whether or not to build shared libraries.
24115 build_libtool_libs=$enable_shared
24116
24117 # Whether or not to build static libraries.
24118 build_old_libs=$enable_static
24119
24120 # Whether or not to add -lc for building shared libraries.
24121 build_libtool_need_lc=$archive_cmds_need_lc_RC
24122
24123 # Whether or not to disallow shared libs when runtime libs are static
24124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24125
24126 # Whether or not to optimize for fast installation.
24127 fast_install=$enable_fast_install
24128
24129 # The host system.
24130 host_alias=$host_alias
24131 host=$host
24132
24133 # An echo program that does not interpret backslashes.
24134 echo=$lt_echo
24135
24136 # The archiver.
24137 AR=$lt_AR
24138 AR_FLAGS=$lt_AR_FLAGS
24139
24140 # A C compiler.
24141 LTCC=$lt_LTCC
24142
24143 # A language-specific compiler.
24144 CC=$lt_compiler_RC
24145
24146 # Is the compiler the GNU C compiler?
24147 with_gcc=$GCC_RC
24148
24149 # An ERE matcher.
24150 EGREP=$lt_EGREP
24151
24152 # The linker used to build libraries.
24153 LD=$lt_LD_RC
24154
24155 # Whether we need hard or soft links.
24156 LN_S=$lt_LN_S
24157
24158 # A BSD-compatible nm program.
24159 NM=$lt_NM
24160
24161 # A symbol stripping program
24162 STRIP=$lt_STRIP
24163
24164 # Used to examine libraries when file_magic_cmd begins "file"
24165 MAGIC_CMD=$MAGIC_CMD
24166
24167 # Used on cygwin: DLL creation program.
24168 DLLTOOL="$DLLTOOL"
24169
24170 # Used on cygwin: object dumper.
24171 OBJDUMP="$OBJDUMP"
24172
24173 # Used on cygwin: assembler.
24174 AS="$AS"
24175
24176 # The name of the directory that contains temporary libtool files.
24177 objdir=$objdir
24178
24179 # How to create reloadable object files.
24180 reload_flag=$lt_reload_flag
24181 reload_cmds=$lt_reload_cmds
24182
24183 # How to pass a linker flag through the compiler.
24184 wl=$lt_lt_prog_compiler_wl_RC
24185
24186 # Object file suffix (normally "o").
24187 objext="$ac_objext"
24188
24189 # Old archive suffix (normally "a").
24190 libext="$libext"
24191
24192 # Shared library suffix (normally ".so").
24193 shrext_cmds='$shrext_cmds'
24194
24195 # Executable file suffix (normally "").
24196 exeext="$exeext"
24197
24198 # Additional compiler flags for building library objects.
24199 pic_flag=$lt_lt_prog_compiler_pic_RC
24200 pic_mode=$pic_mode
24201
24202 # What is the maximum length of a command?
24203 max_cmd_len=$lt_cv_sys_max_cmd_len
24204
24205 # Does compiler simultaneously support -c and -o options?
24206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24207
24208 # Must we lock files when doing compilation ?
24209 need_locks=$lt_need_locks
24210
24211 # Do we need the lib prefix for modules?
24212 need_lib_prefix=$need_lib_prefix
24213
24214 # Do we need a version for libraries?
24215 need_version=$need_version
24216
24217 # Whether dlopen is supported.
24218 dlopen_support=$enable_dlopen
24219
24220 # Whether dlopen of programs is supported.
24221 dlopen_self=$enable_dlopen_self
24222
24223 # Whether dlopen of statically linked programs is supported.
24224 dlopen_self_static=$enable_dlopen_self_static
24225
24226 # Compiler flag to prevent dynamic linking.
24227 link_static_flag=$lt_lt_prog_compiler_static_RC
24228
24229 # Compiler flag to turn off builtin functions.
24230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24231
24232 # Compiler flag to allow reflexive dlopens.
24233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24234
24235 # Compiler flag to generate shared objects directly from archives.
24236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24237
24238 # Compiler flag to generate thread-safe objects.
24239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24240
24241 # Library versioning type.
24242 version_type=$version_type
24243
24244 # Format of library name prefix.
24245 libname_spec=$lt_libname_spec
24246
24247 # List of archive names.  First name is the real one, the rest are links.
24248 # The last name is the one that the linker finds with -lNAME.
24249 library_names_spec=$lt_library_names_spec
24250
24251 # The coded name of the library, if different from the real name.
24252 soname_spec=$lt_soname_spec
24253
24254 # Commands used to build and install an old-style archive.
24255 RANLIB=$lt_RANLIB
24256 old_archive_cmds=$lt_old_archive_cmds_RC
24257 old_postinstall_cmds=$lt_old_postinstall_cmds
24258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24259
24260 # Create an old-style archive from a shared archive.
24261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24262
24263 # Create a temporary old-style archive to link instead of a shared archive.
24264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24265
24266 # Commands used to build and install a shared archive.
24267 archive_cmds=$lt_archive_cmds_RC
24268 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24269 postinstall_cmds=$lt_postinstall_cmds
24270 postuninstall_cmds=$lt_postuninstall_cmds
24271
24272 # Commands used to build a loadable module (assumed same as above if empty)
24273 module_cmds=$lt_module_cmds_RC
24274 module_expsym_cmds=$lt_module_expsym_cmds_RC
24275
24276 # Commands to strip libraries.
24277 old_striplib=$lt_old_striplib
24278 striplib=$lt_striplib
24279
24280 # Dependencies to place before the objects being linked to create a
24281 # shared library.
24282 predep_objects=$lt_predep_objects_RC
24283
24284 # Dependencies to place after the objects being linked to create a
24285 # shared library.
24286 postdep_objects=$lt_postdep_objects_RC
24287
24288 # Dependencies to place before the objects being linked to create a
24289 # shared library.
24290 predeps=$lt_predeps_RC
24291
24292 # Dependencies to place after the objects being linked to create a
24293 # shared library.
24294 postdeps=$lt_postdeps_RC
24295
24296 # The library search path used internally by the compiler when linking
24297 # a shared library.
24298 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24299
24300 # Method to check whether dependent libraries are shared objects.
24301 deplibs_check_method=$lt_deplibs_check_method
24302
24303 # Command to use when deplibs_check_method == file_magic.
24304 file_magic_cmd=$lt_file_magic_cmd
24305
24306 # Flag that allows shared libraries with undefined symbols to be built.
24307 allow_undefined_flag=$lt_allow_undefined_flag_RC
24308
24309 # Flag that forces no undefined symbols.
24310 no_undefined_flag=$lt_no_undefined_flag_RC
24311
24312 # Commands used to finish a libtool library installation in a directory.
24313 finish_cmds=$lt_finish_cmds
24314
24315 # Same as above, but a single script fragment to be evaled but not shown.
24316 finish_eval=$lt_finish_eval
24317
24318 # Take the output of nm and produce a listing of raw symbols and C names.
24319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24320
24321 # Transform the output of nm in a proper C declaration
24322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24323
24324 # Transform the output of nm in a C name address pair
24325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24326
24327 # This is the shared library runtime path variable.
24328 runpath_var=$runpath_var
24329
24330 # This is the shared library path variable.
24331 shlibpath_var=$shlibpath_var
24332
24333 # Is shlibpath searched before the hard-coded library search path?
24334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24335
24336 # How to hardcode a shared library path into an executable.
24337 hardcode_action=$hardcode_action_RC
24338
24339 # Whether we should hardcode library paths into libraries.
24340 hardcode_into_libs=$hardcode_into_libs
24341
24342 # Flag to hardcode \$libdir into a binary during linking.
24343 # This must work even if \$libdir does not exist.
24344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24345
24346 # If ld is used when linking, flag to hardcode \$libdir into
24347 # a binary during linking. This must work even if \$libdir does
24348 # not exist.
24349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24350
24351 # Whether we need a single -rpath flag with a separated argument.
24352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24353
24354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24355 # resulting binary.
24356 hardcode_direct=$hardcode_direct_RC
24357
24358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24359 # resulting binary.
24360 hardcode_minus_L=$hardcode_minus_L_RC
24361
24362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24363 # the resulting binary.
24364 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24365
24366 # Set to yes if building a shared library automatically hardcodes DIR into the library
24367 # and all subsequent libraries and executables linked against it.
24368 hardcode_automatic=$hardcode_automatic_RC
24369
24370 # Variables whose values should be saved in libtool wrapper scripts and
24371 # restored at relink time.
24372 variables_saved_for_relink="$variables_saved_for_relink"
24373
24374 # Whether libtool must link a program against all its dependency libraries.
24375 link_all_deplibs=$link_all_deplibs_RC
24376
24377 # Compile-time system search path for libraries
24378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24379
24380 # Run-time system search path for libraries
24381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24382
24383 # Fix the shell variable \$srcfile for the compiler.
24384 fix_srcfile_path="$fix_srcfile_path_RC"
24385
24386 # Set to yes if exported symbols are required.
24387 always_export_symbols=$always_export_symbols_RC
24388
24389 # The commands to list exported symbols.
24390 export_symbols_cmds=$lt_export_symbols_cmds_RC
24391
24392 # The commands to extract the exported symbol list from a shared archive.
24393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24394
24395 # Symbols that should not be listed in the preloaded symbols.
24396 exclude_expsyms=$lt_exclude_expsyms_RC
24397
24398 # Symbols that must always be exported.
24399 include_expsyms=$lt_include_expsyms_RC
24400
24401 # ### END LIBTOOL TAG CONFIG: $tagname
24402
24403 __EOF__
24404
24405
24406 else
24407   # If there is no Makefile yet, we rely on a make rule to execute
24408   # `config.status --recheck' to rerun these tests and create the
24409   # libtool script then.
24410   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24411   if test -f "$ltmain_in"; then
24412     test -f Makefile && make "$ltmain"
24413   fi
24414 fi
24415
24416
24417 ac_ext=c
24418 ac_cpp='$CPP $CPPFLAGS'
24419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24422
24423 CC="$lt_save_CC"
24424
24425         ;;
24426
24427       *)
24428         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24429 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24430    { (exit 1); exit 1; }; }
24431         ;;
24432       esac
24433
24434       # Append the new tag name to the list of available tags.
24435       if test -n "$tagname" ; then
24436       available_tags="$available_tags $tagname"
24437     fi
24438     fi
24439   done
24440   IFS="$lt_save_ifs"
24441
24442   # Now substitute the updated list of available tags.
24443   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24444     mv "${ofile}T" "$ofile"
24445     chmod +x "$ofile"
24446   else
24447     rm -f "${ofile}T"
24448     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24449 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24450    { (exit 1); exit 1; }; }
24451   fi
24452 fi
24453
24454
24455
24456 # This can be used to rebuild libtool when needed
24457 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24458
24459 # Always use our own libtool.
24460 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24461
24462 # Prevent multiple expansion
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484 etags_version=`$ETAGS --version 2>&1`
24485 case "$etags_version" in
24486         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24487         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24488         *) ETAGSFLAGS="" ;;
24489 esac
24490 ETAGSFLAGS=$ETAGSFLAGS
24491
24492
24493 echo "$as_me:$LINENO: checking tool compatibility" >&5
24494 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24495
24496 ICC=no
24497 IXX=no
24498 case $CC in
24499   icc*|icpc*)
24500     ICC=yes
24501     IXX=yes
24502     ;;
24503    *)
24504     ;;
24505 esac
24506
24507 if test "$GCC" != "yes" && test "$ICC" != "yes"
24508 then
24509   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24510 echo "$as_me: error: gcc|icc required but not found" >&2;}
24511    { (exit 1); exit 1; }; }
24512 fi
24513
24514 if test "$GXX" != "yes" && test "$IXX" != "yes"
24515 then
24516   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24517 echo "$as_me: error: g++|icc required but not found" >&2;}
24518    { (exit 1); exit 1; }; }
24519 fi
24520
24521 if test "$GCC" = "yes"
24522 then
24523   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24524   if test "$gccmajor" -lt "3"
24525   then
24526     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24527 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24528    { (exit 1); exit 1; }; }
24529   fi
24530 fi
24531
24532 if test -z "$llvm_cv_gnu_make_command"
24533 then
24534   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24535 echo "$as_me: error: GNU Make required but not found" >&2;}
24536    { (exit 1); exit 1; }; }
24537 fi
24538
24539 echo "$as_me:$LINENO: result: ok" >&5
24540 echo "${ECHO_T}ok" >&6
24541
24542
24543
24544 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24545 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24546 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24547   echo $ECHO_N "(cached) $ECHO_C" >&6
24548 else
24549   ac_check_lib_save_LIBS=$LIBS
24550 LIBS="-lelf  $LIBS"
24551 cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557
24558 /* Override any gcc2 internal prototype to avoid an error.  */
24559 #ifdef __cplusplus
24560 extern "C"
24561 #endif
24562 /* We use char because int might match the return type of a gcc2
24563    builtin and then its argument prototype would still apply.  */
24564 char elf_begin ();
24565 int
24566 main ()
24567 {
24568 elf_begin ();
24569   ;
24570   return 0;
24571 }
24572 _ACEOF
24573 rm -f conftest.$ac_objext conftest$ac_exeext
24574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24575   (eval $ac_link) 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
24579   cat conftest.err >&5
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } &&
24582          { ac_try='test -z "$ac_c_werror_flag"
24583                          || test ! -s conftest.err'
24584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585   (eval $ac_try) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); }; } &&
24589          { ac_try='test -s conftest$ac_exeext'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; }; then
24595   ac_cv_lib_elf_elf_begin=yes
24596 else
24597   echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600 ac_cv_lib_elf_elf_begin=no
24601 fi
24602 rm -f conftest.err conftest.$ac_objext \
24603       conftest$ac_exeext conftest.$ac_ext
24604 LIBS=$ac_check_lib_save_LIBS
24605 fi
24606 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24607 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24608 if test $ac_cv_lib_elf_elf_begin = yes; then
24609   cat >>confdefs.h <<_ACEOF
24610 #define HAVE_LIBELF 1
24611 _ACEOF
24612
24613   LIBS="-lelf $LIBS"
24614
24615 fi
24616
24617
24618 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24619 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24620 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24621   echo $ECHO_N "(cached) $ECHO_C" >&6
24622 else
24623   ac_func_search_save_LIBS=$LIBS
24624 ac_cv_search_lt_dlopen=no
24625 cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h.  */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h.  */
24631
24632 /* Override any gcc2 internal prototype to avoid an error.  */
24633 #ifdef __cplusplus
24634 extern "C"
24635 #endif
24636 /* We use char because int might match the return type of a gcc2
24637    builtin and then its argument prototype would still apply.  */
24638 char lt_dlopen ();
24639 int
24640 main ()
24641 {
24642 lt_dlopen ();
24643   ;
24644   return 0;
24645 }
24646 _ACEOF
24647 rm -f conftest.$ac_objext conftest$ac_exeext
24648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24649   (eval $ac_link) 2>conftest.er1
24650   ac_status=$?
24651   grep -v '^ *+' conftest.er1 >conftest.err
24652   rm -f conftest.er1
24653   cat conftest.err >&5
24654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655   (exit $ac_status); } &&
24656          { ac_try='test -z "$ac_c_werror_flag"
24657                          || test ! -s conftest.err'
24658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659   (eval $ac_try) 2>&5
24660   ac_status=$?
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); }; } &&
24663          { ac_try='test -s conftest$ac_exeext'
24664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; }; then
24669   ac_cv_search_lt_dlopen="none required"
24670 else
24671   echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674 fi
24675 rm -f conftest.err conftest.$ac_objext \
24676       conftest$ac_exeext conftest.$ac_ext
24677 if test "$ac_cv_search_lt_dlopen" = no; then
24678   for ac_lib in ltdl; do
24679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24680     cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686
24687 /* Override any gcc2 internal prototype to avoid an error.  */
24688 #ifdef __cplusplus
24689 extern "C"
24690 #endif
24691 /* We use char because int might match the return type of a gcc2
24692    builtin and then its argument prototype would still apply.  */
24693 char lt_dlopen ();
24694 int
24695 main ()
24696 {
24697 lt_dlopen ();
24698   ;
24699   return 0;
24700 }
24701 _ACEOF
24702 rm -f conftest.$ac_objext conftest$ac_exeext
24703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24704   (eval $ac_link) 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } &&
24711          { ac_try='test -z "$ac_c_werror_flag"
24712                          || test ! -s conftest.err'
24713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714   (eval $ac_try) 2>&5
24715   ac_status=$?
24716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717   (exit $ac_status); }; } &&
24718          { ac_try='test -s conftest$ac_exeext'
24719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720   (eval $ac_try) 2>&5
24721   ac_status=$?
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); }; }; then
24724   ac_cv_search_lt_dlopen="-l$ac_lib"
24725 break
24726 else
24727   echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24729
24730 fi
24731 rm -f conftest.err conftest.$ac_objext \
24732       conftest$ac_exeext conftest.$ac_ext
24733   done
24734 fi
24735 LIBS=$ac_func_search_save_LIBS
24736 fi
24737 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24738 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24739 if test "$ac_cv_search_lt_dlopen" != no; then
24740   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24741
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_LT_DLOPEN 1
24744 _ACEOF
24745
24746 else
24747   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24748                            not be available" >&5
24749 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24750                            not be available" >&2;}
24751 fi
24752
24753
24754 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24755 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24756 if test "${ac_cv_search_dlopen+set}" = set; then
24757   echo $ECHO_N "(cached) $ECHO_C" >&6
24758 else
24759   ac_func_search_save_LIBS=$LIBS
24760 ac_cv_search_dlopen=no
24761 cat >conftest.$ac_ext <<_ACEOF
24762 /* confdefs.h.  */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h.  */
24767
24768 /* Override any gcc2 internal prototype to avoid an error.  */
24769 #ifdef __cplusplus
24770 extern "C"
24771 #endif
24772 /* We use char because int might match the return type of a gcc2
24773    builtin and then its argument prototype would still apply.  */
24774 char dlopen ();
24775 int
24776 main ()
24777 {
24778 dlopen ();
24779   ;
24780   return 0;
24781 }
24782 _ACEOF
24783 rm -f conftest.$ac_objext conftest$ac_exeext
24784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24785   (eval $ac_link) 2>conftest.er1
24786   ac_status=$?
24787   grep -v '^ *+' conftest.er1 >conftest.err
24788   rm -f conftest.er1
24789   cat conftest.err >&5
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); } &&
24792          { ac_try='test -z "$ac_c_werror_flag"
24793                          || test ! -s conftest.err'
24794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795   (eval $ac_try) 2>&5
24796   ac_status=$?
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); }; } &&
24799          { ac_try='test -s conftest$ac_exeext'
24800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801   (eval $ac_try) 2>&5
24802   ac_status=$?
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); }; }; then
24805   ac_cv_search_dlopen="none required"
24806 else
24807   echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24809
24810 fi
24811 rm -f conftest.err conftest.$ac_objext \
24812       conftest$ac_exeext conftest.$ac_ext
24813 if test "$ac_cv_search_dlopen" = no; then
24814   for ac_lib in dl; do
24815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24816     cat >conftest.$ac_ext <<_ACEOF
24817 /* confdefs.h.  */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h.  */
24822
24823 /* Override any gcc2 internal prototype to avoid an error.  */
24824 #ifdef __cplusplus
24825 extern "C"
24826 #endif
24827 /* We use char because int might match the return type of a gcc2
24828    builtin and then its argument prototype would still apply.  */
24829 char dlopen ();
24830 int
24831 main ()
24832 {
24833 dlopen ();
24834   ;
24835   return 0;
24836 }
24837 _ACEOF
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24840   (eval $ac_link) 2>conftest.er1
24841   ac_status=$?
24842   grep -v '^ *+' conftest.er1 >conftest.err
24843   rm -f conftest.er1
24844   cat conftest.err >&5
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); } &&
24847          { ac_try='test -z "$ac_c_werror_flag"
24848                          || test ! -s conftest.err'
24849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850   (eval $ac_try) 2>&5
24851   ac_status=$?
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); }; } &&
24854          { ac_try='test -s conftest$ac_exeext'
24855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856   (eval $ac_try) 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); }; }; then
24860   ac_cv_search_dlopen="-l$ac_lib"
24861 break
24862 else
24863   echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866 fi
24867 rm -f conftest.err conftest.$ac_objext \
24868       conftest$ac_exeext conftest.$ac_ext
24869   done
24870 fi
24871 LIBS=$ac_func_search_save_LIBS
24872 fi
24873 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24874 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24875 if test "$ac_cv_search_dlopen" != no; then
24876   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24877
24878 cat >>confdefs.h <<\_ACEOF
24879 #define HAVE_DLOPEN 1
24880 _ACEOF
24881
24882 else
24883   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24884 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24885 fi
24886
24887
24888 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24889 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24890 if test "${ac_cv_search_mallinfo+set}" = set; then
24891   echo $ECHO_N "(cached) $ECHO_C" >&6
24892 else
24893   ac_func_search_save_LIBS=$LIBS
24894 ac_cv_search_mallinfo=no
24895 cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h.  */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h.  */
24901
24902 /* Override any gcc2 internal prototype to avoid an error.  */
24903 #ifdef __cplusplus
24904 extern "C"
24905 #endif
24906 /* We use char because int might match the return type of a gcc2
24907    builtin and then its argument prototype would still apply.  */
24908 char mallinfo ();
24909 int
24910 main ()
24911 {
24912 mallinfo ();
24913   ;
24914   return 0;
24915 }
24916 _ACEOF
24917 rm -f conftest.$ac_objext conftest$ac_exeext
24918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24919   (eval $ac_link) 2>conftest.er1
24920   ac_status=$?
24921   grep -v '^ *+' conftest.er1 >conftest.err
24922   rm -f conftest.er1
24923   cat conftest.err >&5
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); } &&
24926          { ac_try='test -z "$ac_c_werror_flag"
24927                          || test ! -s conftest.err'
24928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929   (eval $ac_try) 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; } &&
24933          { ac_try='test -s conftest$ac_exeext'
24934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935   (eval $ac_try) 2>&5
24936   ac_status=$?
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); }; }; then
24939   ac_cv_search_mallinfo="none required"
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944 fi
24945 rm -f conftest.err conftest.$ac_objext \
24946       conftest$ac_exeext conftest.$ac_ext
24947 if test "$ac_cv_search_mallinfo" = no; then
24948   for ac_lib in malloc; do
24949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24950     cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956
24957 /* Override any gcc2 internal prototype to avoid an error.  */
24958 #ifdef __cplusplus
24959 extern "C"
24960 #endif
24961 /* We use char because int might match the return type of a gcc2
24962    builtin and then its argument prototype would still apply.  */
24963 char mallinfo ();
24964 int
24965 main ()
24966 {
24967 mallinfo ();
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext conftest$ac_exeext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24974   (eval $ac_link) 2>conftest.er1
24975   ac_status=$?
24976   grep -v '^ *+' conftest.er1 >conftest.err
24977   rm -f conftest.er1
24978   cat conftest.err >&5
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); } &&
24981          { ac_try='test -z "$ac_c_werror_flag"
24982                          || test ! -s conftest.err'
24983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984   (eval $ac_try) 2>&5
24985   ac_status=$?
24986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987   (exit $ac_status); }; } &&
24988          { ac_try='test -s conftest$ac_exeext'
24989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990   (eval $ac_try) 2>&5
24991   ac_status=$?
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); }; }; then
24994   ac_cv_search_mallinfo="-l$ac_lib"
24995 break
24996 else
24997   echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999
25000 fi
25001 rm -f conftest.err conftest.$ac_objext \
25002       conftest$ac_exeext conftest.$ac_ext
25003   done
25004 fi
25005 LIBS=$ac_func_search_save_LIBS
25006 fi
25007 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25008 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25009 if test "$ac_cv_search_mallinfo" != no; then
25010   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25011
25012 cat >>confdefs.h <<\_ACEOF
25013 #define HAVE_MALLINFO 1
25014 _ACEOF
25015
25016 fi
25017
25018
25019 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25020 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25021 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25022   echo $ECHO_N "(cached) $ECHO_C" >&6
25023 else
25024   ac_func_search_save_LIBS=$LIBS
25025 ac_cv_search_pthread_mutex_lock=no
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032
25033 /* Override any gcc2 internal prototype to avoid an error.  */
25034 #ifdef __cplusplus
25035 extern "C"
25036 #endif
25037 /* We use char because int might match the return type of a gcc2
25038    builtin and then its argument prototype would still apply.  */
25039 char pthread_mutex_lock ();
25040 int
25041 main ()
25042 {
25043 pthread_mutex_lock ();
25044   ;
25045   return 0;
25046 }
25047 _ACEOF
25048 rm -f conftest.$ac_objext conftest$ac_exeext
25049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25050   (eval $ac_link) 2>conftest.er1
25051   ac_status=$?
25052   grep -v '^ *+' conftest.er1 >conftest.err
25053   rm -f conftest.er1
25054   cat conftest.err >&5
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); } &&
25057          { ac_try='test -z "$ac_c_werror_flag"
25058                          || test ! -s conftest.err'
25059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060   (eval $ac_try) 2>&5
25061   ac_status=$?
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); }; } &&
25064          { ac_try='test -s conftest$ac_exeext'
25065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066   (eval $ac_try) 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); }; }; then
25070   ac_cv_search_pthread_mutex_lock="none required"
25071 else
25072   echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25074
25075 fi
25076 rm -f conftest.err conftest.$ac_objext \
25077       conftest$ac_exeext conftest.$ac_ext
25078 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25079   for ac_lib in pthread; do
25080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25081     cat >conftest.$ac_ext <<_ACEOF
25082 /* confdefs.h.  */
25083 _ACEOF
25084 cat confdefs.h >>conftest.$ac_ext
25085 cat >>conftest.$ac_ext <<_ACEOF
25086 /* end confdefs.h.  */
25087
25088 /* Override any gcc2 internal prototype to avoid an error.  */
25089 #ifdef __cplusplus
25090 extern "C"
25091 #endif
25092 /* We use char because int might match the return type of a gcc2
25093    builtin and then its argument prototype would still apply.  */
25094 char pthread_mutex_lock ();
25095 int
25096 main ()
25097 {
25098 pthread_mutex_lock ();
25099   ;
25100   return 0;
25101 }
25102 _ACEOF
25103 rm -f conftest.$ac_objext conftest$ac_exeext
25104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25105   (eval $ac_link) 2>conftest.er1
25106   ac_status=$?
25107   grep -v '^ *+' conftest.er1 >conftest.err
25108   rm -f conftest.er1
25109   cat conftest.err >&5
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); } &&
25112          { ac_try='test -z "$ac_c_werror_flag"
25113                          || test ! -s conftest.err'
25114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115   (eval $ac_try) 2>&5
25116   ac_status=$?
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); }; } &&
25119          { ac_try='test -s conftest$ac_exeext'
25120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121   (eval $ac_try) 2>&5
25122   ac_status=$?
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); }; }; then
25125   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25126 break
25127 else
25128   echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131 fi
25132 rm -f conftest.err conftest.$ac_objext \
25133       conftest$ac_exeext conftest.$ac_ext
25134   done
25135 fi
25136 LIBS=$ac_func_search_save_LIBS
25137 fi
25138 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25139 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25140 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25141   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25142
25143 cat >>confdefs.h <<\_ACEOF
25144 #define HAVE_PTHREAD_MUTEX_LOCK 1
25145 _ACEOF
25146
25147 fi
25148
25149
25150
25151 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25152 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25153 if test "${ac_cv_header_stdc+set}" = set; then
25154   echo $ECHO_N "(cached) $ECHO_C" >&6
25155 else
25156   cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h.  */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h.  */
25162 #include <stdlib.h>
25163 #include <stdarg.h>
25164 #include <string.h>
25165 #include <float.h>
25166
25167 int
25168 main ()
25169 {
25170
25171   ;
25172   return 0;
25173 }
25174 _ACEOF
25175 rm -f conftest.$ac_objext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177   (eval $ac_compile) 2>conftest.er1
25178   ac_status=$?
25179   grep -v '^ *+' conftest.er1 >conftest.err
25180   rm -f conftest.er1
25181   cat conftest.err >&5
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); } &&
25184          { ac_try='test -z "$ac_c_werror_flag"
25185                          || test ! -s conftest.err'
25186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187   (eval $ac_try) 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; } &&
25191          { ac_try='test -s conftest.$ac_objext'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; }; then
25197   ac_cv_header_stdc=yes
25198 else
25199   echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 ac_cv_header_stdc=no
25203 fi
25204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25205
25206 if test $ac_cv_header_stdc = yes; then
25207   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25208   cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h.  */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h.  */
25214 #include <string.h>
25215
25216 _ACEOF
25217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25218   $EGREP "memchr" >/dev/null 2>&1; then
25219   :
25220 else
25221   ac_cv_header_stdc=no
25222 fi
25223 rm -f conftest*
25224
25225 fi
25226
25227 if test $ac_cv_header_stdc = yes; then
25228   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25229   cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h.  */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h.  */
25235 #include <stdlib.h>
25236
25237 _ACEOF
25238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25239   $EGREP "free" >/dev/null 2>&1; then
25240   :
25241 else
25242   ac_cv_header_stdc=no
25243 fi
25244 rm -f conftest*
25245
25246 fi
25247
25248 if test $ac_cv_header_stdc = yes; then
25249   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25250   if test "$cross_compiling" = yes; then
25251   :
25252 else
25253   cat >conftest.$ac_ext <<_ACEOF
25254 /* confdefs.h.  */
25255 _ACEOF
25256 cat confdefs.h >>conftest.$ac_ext
25257 cat >>conftest.$ac_ext <<_ACEOF
25258 /* end confdefs.h.  */
25259 #include <ctype.h>
25260 #if ((' ' & 0x0FF) == 0x020)
25261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25263 #else
25264 # define ISLOWER(c) \
25265                    (('a' <= (c) && (c) <= 'i') \
25266                      || ('j' <= (c) && (c) <= 'r') \
25267                      || ('s' <= (c) && (c) <= 'z'))
25268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25269 #endif
25270
25271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25272 int
25273 main ()
25274 {
25275   int i;
25276   for (i = 0; i < 256; i++)
25277     if (XOR (islower (i), ISLOWER (i))
25278         || toupper (i) != TOUPPER (i))
25279       exit(2);
25280   exit (0);
25281 }
25282 _ACEOF
25283 rm -f conftest$ac_exeext
25284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25285   (eval $ac_link) 2>&5
25286   ac_status=$?
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
25294   :
25295 else
25296   echo "$as_me: program exited with status $ac_status" >&5
25297 echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25299
25300 ( exit $ac_status )
25301 ac_cv_header_stdc=no
25302 fi
25303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25304 fi
25305 fi
25306 fi
25307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25309 if test $ac_cv_header_stdc = yes; then
25310
25311 cat >>confdefs.h <<\_ACEOF
25312 #define STDC_HEADERS 1
25313 _ACEOF
25314
25315 fi
25316
25317
25318 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25319 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25321   echo $ECHO_N "(cached) $ECHO_C" >&6
25322 else
25323   cat >conftest.$ac_ext <<_ACEOF
25324 /* confdefs.h.  */
25325 _ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h.  */
25329 #include <sys/types.h>
25330 #include <sys/wait.h>
25331 #ifndef WEXITSTATUS
25332 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25333 #endif
25334 #ifndef WIFEXITED
25335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25336 #endif
25337
25338 int
25339 main ()
25340 {
25341   int s;
25342   wait (&s);
25343   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25344   ;
25345   return 0;
25346 }
25347 _ACEOF
25348 rm -f conftest.$ac_objext
25349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350   (eval $ac_compile) 2>conftest.er1
25351   ac_status=$?
25352   grep -v '^ *+' conftest.er1 >conftest.err
25353   rm -f conftest.er1
25354   cat conftest.err >&5
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); } &&
25357          { ac_try='test -z "$ac_c_werror_flag"
25358                          || test ! -s conftest.err'
25359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360   (eval $ac_try) 2>&5
25361   ac_status=$?
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); }; } &&
25364          { ac_try='test -s conftest.$ac_objext'
25365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366   (eval $ac_try) 2>&5
25367   ac_status=$?
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); }; }; then
25370   ac_cv_header_sys_wait_h=yes
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375 ac_cv_header_sys_wait_h=no
25376 fi
25377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25378 fi
25379 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25380 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25381 if test $ac_cv_header_sys_wait_h = yes; then
25382
25383 cat >>confdefs.h <<\_ACEOF
25384 #define HAVE_SYS_WAIT_H 1
25385 _ACEOF
25386
25387 fi
25388
25389
25390
25391
25392
25393
25394 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25395 do
25396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25398   echo "$as_me:$LINENO: checking for $ac_header" >&5
25399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 fi
25403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25405 else
25406   # Is the header compilable?
25407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25409 cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h.  */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h.  */
25415 $ac_includes_default
25416 #include <$ac_header>
25417 _ACEOF
25418 rm -f conftest.$ac_objext
25419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25420   (eval $ac_compile) 2>conftest.er1
25421   ac_status=$?
25422   grep -v '^ *+' conftest.er1 >conftest.err
25423   rm -f conftest.er1
25424   cat conftest.err >&5
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); } &&
25427          { ac_try='test -z "$ac_c_werror_flag"
25428                          || test ! -s conftest.err'
25429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430   (eval $ac_try) 2>&5
25431   ac_status=$?
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); }; } &&
25434          { ac_try='test -s conftest.$ac_objext'
25435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436   (eval $ac_try) 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; }; then
25440   ac_header_compiler=yes
25441 else
25442   echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25444
25445 ac_header_compiler=no
25446 fi
25447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25449 echo "${ECHO_T}$ac_header_compiler" >&6
25450
25451 # Is the header present?
25452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25454 cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h.  */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h.  */
25460 #include <$ac_header>
25461 _ACEOF
25462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25464   ac_status=$?
25465   grep -v '^ *+' conftest.er1 >conftest.err
25466   rm -f conftest.er1
25467   cat conftest.err >&5
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); } >/dev/null; then
25470   if test -s conftest.err; then
25471     ac_cpp_err=$ac_c_preproc_warn_flag
25472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25473   else
25474     ac_cpp_err=
25475   fi
25476 else
25477   ac_cpp_err=yes
25478 fi
25479 if test -z "$ac_cpp_err"; then
25480   ac_header_preproc=yes
25481 else
25482   echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25484
25485   ac_header_preproc=no
25486 fi
25487 rm -f conftest.err conftest.$ac_ext
25488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25489 echo "${ECHO_T}$ac_header_preproc" >&6
25490
25491 # So?  What about this header?
25492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25493   yes:no: )
25494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25498     ac_header_preproc=yes
25499     ;;
25500   no:yes:* )
25501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25513     (
25514       cat <<\_ASBOX
25515 ## ----------------------------------- ##
25516 ## Report this to llvmbugs@cs.uiuc.edu ##
25517 ## ----------------------------------- ##
25518 _ASBOX
25519     ) |
25520       sed "s/^/$as_me: WARNING:     /" >&2
25521     ;;
25522 esac
25523 echo "$as_me:$LINENO: checking for $ac_header" >&5
25524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25526   echo $ECHO_N "(cached) $ECHO_C" >&6
25527 else
25528   eval "$as_ac_Header=\$ac_header_preproc"
25529 fi
25530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25532
25533 fi
25534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25535   cat >>confdefs.h <<_ACEOF
25536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25537 _ACEOF
25538
25539 fi
25540
25541 done
25542
25543
25544
25545
25546
25547
25548 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25549 do
25550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25552   echo "$as_me:$LINENO: checking for $ac_header" >&5
25553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25555   echo $ECHO_N "(cached) $ECHO_C" >&6
25556 fi
25557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25559 else
25560   # Is the header compilable?
25561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25563 cat >conftest.$ac_ext <<_ACEOF
25564 /* confdefs.h.  */
25565 _ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h.  */
25569 $ac_includes_default
25570 #include <$ac_header>
25571 _ACEOF
25572 rm -f conftest.$ac_objext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25574   (eval $ac_compile) 2>conftest.er1
25575   ac_status=$?
25576   grep -v '^ *+' conftest.er1 >conftest.err
25577   rm -f conftest.er1
25578   cat conftest.err >&5
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); } &&
25581          { ac_try='test -z "$ac_c_werror_flag"
25582                          || test ! -s conftest.err'
25583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25584   (eval $ac_try) 2>&5
25585   ac_status=$?
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); }; } &&
25588          { ac_try='test -s conftest.$ac_objext'
25589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590   (eval $ac_try) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; }; then
25594   ac_header_compiler=yes
25595 else
25596   echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25598
25599 ac_header_compiler=no
25600 fi
25601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25603 echo "${ECHO_T}$ac_header_compiler" >&6
25604
25605 # Is the header present?
25606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25608 cat >conftest.$ac_ext <<_ACEOF
25609 /* confdefs.h.  */
25610 _ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h.  */
25614 #include <$ac_header>
25615 _ACEOF
25616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25618   ac_status=$?
25619   grep -v '^ *+' conftest.er1 >conftest.err
25620   rm -f conftest.er1
25621   cat conftest.err >&5
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); } >/dev/null; then
25624   if test -s conftest.err; then
25625     ac_cpp_err=$ac_c_preproc_warn_flag
25626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25627   else
25628     ac_cpp_err=
25629   fi
25630 else
25631   ac_cpp_err=yes
25632 fi
25633 if test -z "$ac_cpp_err"; then
25634   ac_header_preproc=yes
25635 else
25636   echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25638
25639   ac_header_preproc=no
25640 fi
25641 rm -f conftest.err conftest.$ac_ext
25642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25643 echo "${ECHO_T}$ac_header_preproc" >&6
25644
25645 # So?  What about this header?
25646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25647   yes:no: )
25648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25652     ac_header_preproc=yes
25653     ;;
25654   no:yes:* )
25655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25667     (
25668       cat <<\_ASBOX
25669 ## ----------------------------------- ##
25670 ## Report this to llvmbugs@cs.uiuc.edu ##
25671 ## ----------------------------------- ##
25672 _ASBOX
25673     ) |
25674       sed "s/^/$as_me: WARNING:     /" >&2
25675     ;;
25676 esac
25677 echo "$as_me:$LINENO: checking for $ac_header" >&5
25678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25680   echo $ECHO_N "(cached) $ECHO_C" >&6
25681 else
25682   eval "$as_ac_Header=\$ac_header_preproc"
25683 fi
25684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25686
25687 fi
25688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25689   cat >>confdefs.h <<_ACEOF
25690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25691 _ACEOF
25692
25693 fi
25694
25695 done
25696
25697
25698
25699
25700 for ac_header in malloc.h unistd.h windows.h
25701 do
25702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25704   echo "$as_me:$LINENO: checking for $ac_header" >&5
25705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25707   echo $ECHO_N "(cached) $ECHO_C" >&6
25708 fi
25709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25711 else
25712   # Is the header compilable?
25713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25715 cat >conftest.$ac_ext <<_ACEOF
25716 /* confdefs.h.  */
25717 _ACEOF
25718 cat confdefs.h >>conftest.$ac_ext
25719 cat >>conftest.$ac_ext <<_ACEOF
25720 /* end confdefs.h.  */
25721 $ac_includes_default
25722 #include <$ac_header>
25723 _ACEOF
25724 rm -f conftest.$ac_objext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726   (eval $ac_compile) 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } &&
25733          { ac_try='test -z "$ac_c_werror_flag"
25734                          || test ! -s conftest.err'
25735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736   (eval $ac_try) 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); }; } &&
25740          { ac_try='test -s conftest.$ac_objext'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; }; then
25746   ac_header_compiler=yes
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 ac_header_compiler=no
25752 fi
25753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25755 echo "${ECHO_T}$ac_header_compiler" >&6
25756
25757 # Is the header present?
25758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25760 cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h.  */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h.  */
25766 #include <$ac_header>
25767 _ACEOF
25768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25770   ac_status=$?
25771   grep -v '^ *+' conftest.er1 >conftest.err
25772   rm -f conftest.er1
25773   cat conftest.err >&5
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); } >/dev/null; then
25776   if test -s conftest.err; then
25777     ac_cpp_err=$ac_c_preproc_warn_flag
25778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25779   else
25780     ac_cpp_err=
25781   fi
25782 else
25783   ac_cpp_err=yes
25784 fi
25785 if test -z "$ac_cpp_err"; then
25786   ac_header_preproc=yes
25787 else
25788   echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25790
25791   ac_header_preproc=no
25792 fi
25793 rm -f conftest.err conftest.$ac_ext
25794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25795 echo "${ECHO_T}$ac_header_preproc" >&6
25796
25797 # So?  What about this header?
25798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25799   yes:no: )
25800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25804     ac_header_preproc=yes
25805     ;;
25806   no:yes:* )
25807     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25809     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25810 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25811     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25813     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25814 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25817     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25819     (
25820       cat <<\_ASBOX
25821 ## ----------------------------------- ##
25822 ## Report this to llvmbugs@cs.uiuc.edu ##
25823 ## ----------------------------------- ##
25824 _ASBOX
25825     ) |
25826       sed "s/^/$as_me: WARNING:     /" >&2
25827     ;;
25828 esac
25829 echo "$as_me:$LINENO: checking for $ac_header" >&5
25830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834   eval "$as_ac_Header=\$ac_header_preproc"
25835 fi
25836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25838
25839 fi
25840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25841   cat >>confdefs.h <<_ACEOF
25842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25843 _ACEOF
25844
25845 fi
25846
25847 done
25848
25849 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25850 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25851 if test "${ac_cv_header_time+set}" = set; then
25852   echo $ECHO_N "(cached) $ECHO_C" >&6
25853 else
25854   cat >conftest.$ac_ext <<_ACEOF
25855 /* confdefs.h.  */
25856 _ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h.  */
25860 #include <sys/types.h>
25861 #include <sys/time.h>
25862 #include <time.h>
25863
25864 int
25865 main ()
25866 {
25867 if ((struct tm *) 0)
25868 return 0;
25869   ;
25870   return 0;
25871 }
25872 _ACEOF
25873 rm -f conftest.$ac_objext
25874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25875   (eval $ac_compile) 2>conftest.er1
25876   ac_status=$?
25877   grep -v '^ *+' conftest.er1 >conftest.err
25878   rm -f conftest.er1
25879   cat conftest.err >&5
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); } &&
25882          { ac_try='test -z "$ac_c_werror_flag"
25883                          || test ! -s conftest.err'
25884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885   (eval $ac_try) 2>&5
25886   ac_status=$?
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); }; } &&
25889          { ac_try='test -s conftest.$ac_objext'
25890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891   (eval $ac_try) 2>&5
25892   ac_status=$?
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); }; }; then
25895   ac_cv_header_time=yes
25896 else
25897   echo "$as_me: failed program was:" >&5
25898 sed 's/^/| /' conftest.$ac_ext >&5
25899
25900 ac_cv_header_time=no
25901 fi
25902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25903 fi
25904 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25905 echo "${ECHO_T}$ac_cv_header_time" >&6
25906 if test $ac_cv_header_time = yes; then
25907
25908 cat >>confdefs.h <<\_ACEOF
25909 #define TIME_WITH_SYS_TIME 1
25910 _ACEOF
25911
25912 fi
25913
25914 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25915 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25916 if test "${ac_cv_header_mmap_anon+set}" = set; then
25917   echo $ECHO_N "(cached) $ECHO_C" >&6
25918 else
25919    ac_ext=c
25920 ac_cpp='$CPP $CPPFLAGS'
25921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25924
25925   cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h.  */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h.  */
25931 #include <sys/mman.h>
25932 #include <unistd.h>
25933 #include <fcntl.h>
25934 int
25935 main ()
25936 {
25937 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 rm -f conftest.$ac_objext
25943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25944   (eval $ac_compile) 2>conftest.er1
25945   ac_status=$?
25946   grep -v '^ *+' conftest.er1 >conftest.err
25947   rm -f conftest.er1
25948   cat conftest.err >&5
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); } &&
25951          { ac_try='test -z "$ac_c_werror_flag"
25952                          || test ! -s conftest.err'
25953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954   (eval $ac_try) 2>&5
25955   ac_status=$?
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); }; } &&
25958          { ac_try='test -s conftest.$ac_objext'
25959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960   (eval $ac_try) 2>&5
25961   ac_status=$?
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); }; }; then
25964   ac_cv_header_mmap_anon=yes
25965 else
25966   echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969 ac_cv_header_mmap_anon=no
25970 fi
25971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25972   ac_ext=c
25973 ac_cpp='$CPP $CPPFLAGS'
25974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25977
25978
25979 fi
25980 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25981 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25982 if test "$ac_cv_header_mmap_anon" = yes; then
25983
25984 cat >>confdefs.h <<\_ACEOF
25985 #define HAVE_MMAP_ANONYMOUS
25986 _ACEOF
25987
25988 fi
25989
25990
25991
25992
25993 for ac_header in inttypes.h stdint.h
25994 do
25995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25997   echo "$as_me:$LINENO: checking for $ac_header" >&5
25998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26000   echo $ECHO_N "(cached) $ECHO_C" >&6
26001 fi
26002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26004 else
26005   # Is the header compilable?
26006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014 $ac_includes_default
26015 #include <$ac_header>
26016 _ACEOF
26017 rm -f conftest.$ac_objext
26018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26019   (eval $ac_compile) 2>conftest.er1
26020   ac_status=$?
26021   grep -v '^ *+' conftest.er1 >conftest.err
26022   rm -f conftest.er1
26023   cat conftest.err >&5
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); } &&
26026          { ac_try='test -z "$ac_c_werror_flag"
26027                          || test ! -s conftest.err'
26028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029   (eval $ac_try) 2>&5
26030   ac_status=$?
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); }; } &&
26033          { ac_try='test -s conftest.$ac_objext'
26034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035   (eval $ac_try) 2>&5
26036   ac_status=$?
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); }; }; then
26039   ac_header_compiler=yes
26040 else
26041   echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26043
26044 ac_header_compiler=no
26045 fi
26046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26048 echo "${ECHO_T}$ac_header_compiler" >&6
26049
26050 # Is the header present?
26051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26053 cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h.  */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h.  */
26059 #include <$ac_header>
26060 _ACEOF
26061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26063   ac_status=$?
26064   grep -v '^ *+' conftest.er1 >conftest.err
26065   rm -f conftest.er1
26066   cat conftest.err >&5
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); } >/dev/null; then
26069   if test -s conftest.err; then
26070     ac_cpp_err=$ac_c_preproc_warn_flag
26071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26072   else
26073     ac_cpp_err=
26074   fi
26075 else
26076   ac_cpp_err=yes
26077 fi
26078 if test -z "$ac_cpp_err"; then
26079   ac_header_preproc=yes
26080 else
26081   echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084   ac_header_preproc=no
26085 fi
26086 rm -f conftest.err conftest.$ac_ext
26087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26088 echo "${ECHO_T}$ac_header_preproc" >&6
26089
26090 # So?  What about this header?
26091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26092   yes:no: )
26093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26097     ac_header_preproc=yes
26098     ;;
26099   no:yes:* )
26100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26112     (
26113       cat <<\_ASBOX
26114 ## ----------------------------------- ##
26115 ## Report this to llvmbugs@cs.uiuc.edu ##
26116 ## ----------------------------------- ##
26117 _ASBOX
26118     ) |
26119       sed "s/^/$as_me: WARNING:     /" >&2
26120     ;;
26121 esac
26122 echo "$as_me:$LINENO: checking for $ac_header" >&5
26123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26125   echo $ECHO_N "(cached) $ECHO_C" >&6
26126 else
26127   eval "$as_ac_Header=\$ac_header_preproc"
26128 fi
26129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26131
26132 fi
26133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26134   cat >>confdefs.h <<_ACEOF
26135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26136 _ACEOF
26137
26138 fi
26139
26140 done
26141
26142
26143
26144 echo "$as_me:$LINENO: checking for pid_t" >&5
26145 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26146 if test "${ac_cv_type_pid_t+set}" = set; then
26147   echo $ECHO_N "(cached) $ECHO_C" >&6
26148 else
26149   cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155 $ac_includes_default
26156 int
26157 main ()
26158 {
26159 if ((pid_t *) 0)
26160   return 0;
26161 if (sizeof (pid_t))
26162   return 0;
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 rm -f conftest.$ac_objext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26169   (eval $ac_compile) 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } &&
26176          { ac_try='test -z "$ac_c_werror_flag"
26177                          || test ! -s conftest.err'
26178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179   (eval $ac_try) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); }; } &&
26183          { ac_try='test -s conftest.$ac_objext'
26184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185   (eval $ac_try) 2>&5
26186   ac_status=$?
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); }; }; then
26189   ac_cv_type_pid_t=yes
26190 else
26191   echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 ac_cv_type_pid_t=no
26195 fi
26196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26197 fi
26198 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26200 if test $ac_cv_type_pid_t = yes; then
26201   :
26202 else
26203
26204 cat >>confdefs.h <<_ACEOF
26205 #define pid_t int
26206 _ACEOF
26207
26208 fi
26209
26210 echo "$as_me:$LINENO: checking for size_t" >&5
26211 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26212 if test "${ac_cv_type_size_t+set}" = set; then
26213   echo $ECHO_N "(cached) $ECHO_C" >&6
26214 else
26215   cat >conftest.$ac_ext <<_ACEOF
26216 /* confdefs.h.  */
26217 _ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h.  */
26221 $ac_includes_default
26222 int
26223 main ()
26224 {
26225 if ((size_t *) 0)
26226   return 0;
26227 if (sizeof (size_t))
26228   return 0;
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 rm -f conftest.$ac_objext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235   (eval $ac_compile) 2>conftest.er1
26236   ac_status=$?
26237   grep -v '^ *+' conftest.er1 >conftest.err
26238   rm -f conftest.er1
26239   cat conftest.err >&5
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); } &&
26242          { ac_try='test -z "$ac_c_werror_flag"
26243                          || test ! -s conftest.err'
26244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245   (eval $ac_try) 2>&5
26246   ac_status=$?
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); }; } &&
26249          { ac_try='test -s conftest.$ac_objext'
26250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251   (eval $ac_try) 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; }; then
26255   ac_cv_type_size_t=yes
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260 ac_cv_type_size_t=no
26261 fi
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26263 fi
26264 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26265 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26266 if test $ac_cv_type_size_t = yes; then
26267   :
26268 else
26269
26270 cat >>confdefs.h <<_ACEOF
26271 #define size_t unsigned
26272 _ACEOF
26273
26274 fi
26275
26276 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26277 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26278 if test "${ac_cv_type_signal+set}" = set; then
26279   echo $ECHO_N "(cached) $ECHO_C" >&6
26280 else
26281   cat >conftest.$ac_ext <<_ACEOF
26282 /* confdefs.h.  */
26283 _ACEOF
26284 cat confdefs.h >>conftest.$ac_ext
26285 cat >>conftest.$ac_ext <<_ACEOF
26286 /* end confdefs.h.  */
26287 #include <sys/types.h>
26288 #include <signal.h>
26289 #ifdef signal
26290 # undef signal
26291 #endif
26292 #ifdef __cplusplus
26293 extern "C" void (*signal (int, void (*)(int)))(int);
26294 #else
26295 void (*signal ()) ();
26296 #endif
26297
26298 int
26299 main ()
26300 {
26301 int i;
26302   ;
26303   return 0;
26304 }
26305 _ACEOF
26306 rm -f conftest.$ac_objext
26307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26308   (eval $ac_compile) 2>conftest.er1
26309   ac_status=$?
26310   grep -v '^ *+' conftest.er1 >conftest.err
26311   rm -f conftest.er1
26312   cat conftest.err >&5
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); } &&
26315          { ac_try='test -z "$ac_c_werror_flag"
26316                          || test ! -s conftest.err'
26317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318   (eval $ac_try) 2>&5
26319   ac_status=$?
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); }; } &&
26322          { ac_try='test -s conftest.$ac_objext'
26323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324   (eval $ac_try) 2>&5
26325   ac_status=$?
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); }; }; then
26328   ac_cv_type_signal=void
26329 else
26330   echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26332
26333 ac_cv_type_signal=int
26334 fi
26335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26336 fi
26337 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26338 echo "${ECHO_T}$ac_cv_type_signal" >&6
26339
26340 cat >>confdefs.h <<_ACEOF
26341 #define RETSIGTYPE $ac_cv_type_signal
26342 _ACEOF
26343
26344
26345 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26346 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26347 if test "${ac_cv_struct_tm+set}" = set; then
26348   echo $ECHO_N "(cached) $ECHO_C" >&6
26349 else
26350   cat >conftest.$ac_ext <<_ACEOF
26351 /* confdefs.h.  */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h.  */
26356 #include <sys/types.h>
26357 #include <time.h>
26358
26359 int
26360 main ()
26361 {
26362 struct tm *tp; tp->tm_sec;
26363   ;
26364   return 0;
26365 }
26366 _ACEOF
26367 rm -f conftest.$ac_objext
26368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26369   (eval $ac_compile) 2>conftest.er1
26370   ac_status=$?
26371   grep -v '^ *+' conftest.er1 >conftest.err
26372   rm -f conftest.er1
26373   cat conftest.err >&5
26374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375   (exit $ac_status); } &&
26376          { ac_try='test -z "$ac_c_werror_flag"
26377                          || test ! -s conftest.err'
26378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379   (eval $ac_try) 2>&5
26380   ac_status=$?
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); }; } &&
26383          { ac_try='test -s conftest.$ac_objext'
26384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385   (eval $ac_try) 2>&5
26386   ac_status=$?
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); }; }; then
26389   ac_cv_struct_tm=time.h
26390 else
26391   echo "$as_me: failed program was:" >&5
26392 sed 's/^/| /' conftest.$ac_ext >&5
26393
26394 ac_cv_struct_tm=sys/time.h
26395 fi
26396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26397 fi
26398 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26399 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26400 if test $ac_cv_struct_tm = sys/time.h; then
26401
26402 cat >>confdefs.h <<\_ACEOF
26403 #define TM_IN_SYS_TIME 1
26404 _ACEOF
26405
26406 fi
26407
26408 echo "$as_me:$LINENO: checking for int64_t" >&5
26409 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26410 if test "${ac_cv_type_int64_t+set}" = set; then
26411   echo $ECHO_N "(cached) $ECHO_C" >&6
26412 else
26413   cat >conftest.$ac_ext <<_ACEOF
26414 /* confdefs.h.  */
26415 _ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h.  */
26419 $ac_includes_default
26420 int
26421 main ()
26422 {
26423 if ((int64_t *) 0)
26424   return 0;
26425 if (sizeof (int64_t))
26426   return 0;
26427   ;
26428   return 0;
26429 }
26430 _ACEOF
26431 rm -f conftest.$ac_objext
26432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26433   (eval $ac_compile) 2>conftest.er1
26434   ac_status=$?
26435   grep -v '^ *+' conftest.er1 >conftest.err
26436   rm -f conftest.er1
26437   cat conftest.err >&5
26438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439   (exit $ac_status); } &&
26440          { ac_try='test -z "$ac_c_werror_flag"
26441                          || test ! -s conftest.err'
26442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26443   (eval $ac_try) 2>&5
26444   ac_status=$?
26445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446   (exit $ac_status); }; } &&
26447          { ac_try='test -s conftest.$ac_objext'
26448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449   (eval $ac_try) 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); }; }; then
26453   ac_cv_type_int64_t=yes
26454 else
26455   echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26457
26458 ac_cv_type_int64_t=no
26459 fi
26460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26461 fi
26462 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26463 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26464 if test $ac_cv_type_int64_t = yes; then
26465
26466 cat >>confdefs.h <<_ACEOF
26467 #define HAVE_INT64_T 1
26468 _ACEOF
26469
26470
26471 else
26472   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26473 echo "$as_me: error: Type int64_t required but not found" >&2;}
26474    { (exit 1); exit 1; }; }
26475 fi
26476
26477 echo "$as_me:$LINENO: checking for uint64_t" >&5
26478 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26479 if test "${ac_cv_type_uint64_t+set}" = set; then
26480   echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482   cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488 $ac_includes_default
26489 int
26490 main ()
26491 {
26492 if ((uint64_t *) 0)
26493   return 0;
26494 if (sizeof (uint64_t))
26495   return 0;
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502   (eval $ac_compile) 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } &&
26509          { ac_try='test -z "$ac_c_werror_flag"
26510                          || test ! -s conftest.err'
26511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512   (eval $ac_try) 2>&5
26513   ac_status=$?
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); }; } &&
26516          { ac_try='test -s conftest.$ac_objext'
26517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518   (eval $ac_try) 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; }; then
26522   ac_cv_type_uint64_t=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527 ac_cv_type_uint64_t=no
26528 fi
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530 fi
26531 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26532 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26533 if test $ac_cv_type_uint64_t = yes; then
26534
26535 cat >>confdefs.h <<_ACEOF
26536 #define HAVE_UINT64_T 1
26537 _ACEOF
26538
26539
26540 else
26541   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26542 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26543 if test "${ac_cv_type_u_int64_t+set}" = set; then
26544   echo $ECHO_N "(cached) $ECHO_C" >&6
26545 else
26546   cat >conftest.$ac_ext <<_ACEOF
26547 /* confdefs.h.  */
26548 _ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h.  */
26552 $ac_includes_default
26553 int
26554 main ()
26555 {
26556 if ((u_int64_t *) 0)
26557   return 0;
26558 if (sizeof (u_int64_t))
26559   return 0;
26560   ;
26561   return 0;
26562 }
26563 _ACEOF
26564 rm -f conftest.$ac_objext
26565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26566   (eval $ac_compile) 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } &&
26573          { ac_try='test -z "$ac_c_werror_flag"
26574                          || test ! -s conftest.err'
26575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576   (eval $ac_try) 2>&5
26577   ac_status=$?
26578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); }; } &&
26580          { ac_try='test -s conftest.$ac_objext'
26581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582   (eval $ac_try) 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); }; }; then
26586   ac_cv_type_u_int64_t=yes
26587 else
26588   echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591 ac_cv_type_u_int64_t=no
26592 fi
26593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26594 fi
26595 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26596 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26597 if test $ac_cv_type_u_int64_t = yes; then
26598
26599 cat >>confdefs.h <<_ACEOF
26600 #define HAVE_U_INT64_T 1
26601 _ACEOF
26602
26603
26604 else
26605   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26606 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26607    { (exit 1); exit 1; }; }
26608 fi
26609
26610 fi
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp mktemp
26622 do
26623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26624 echo "$as_me:$LINENO: checking for $ac_func" >&5
26625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26626 if eval "test \"\${$as_ac_var+set}\" = set"; then
26627   echo $ECHO_N "(cached) $ECHO_C" >&6
26628 else
26629   cat >conftest.$ac_ext <<_ACEOF
26630 /* confdefs.h.  */
26631 _ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h.  */
26635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26637 #define $ac_func innocuous_$ac_func
26638
26639 /* System header to define __stub macros and hopefully few prototypes,
26640     which can conflict with char $ac_func (); below.
26641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26642     <limits.h> exists even on freestanding compilers.  */
26643
26644 #ifdef __STDC__
26645 # include <limits.h>
26646 #else
26647 # include <assert.h>
26648 #endif
26649
26650 #undef $ac_func
26651
26652 /* Override any gcc2 internal prototype to avoid an error.  */
26653 #ifdef __cplusplus
26654 extern "C"
26655 {
26656 #endif
26657 /* We use char because int might match the return type of a gcc2
26658    builtin and then its argument prototype would still apply.  */
26659 char $ac_func ();
26660 /* The GNU C library defines this for functions which it implements
26661     to always fail with ENOSYS.  Some functions are actually named
26662     something starting with __ and the normal name is an alias.  */
26663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26664 choke me
26665 #else
26666 char (*f) () = $ac_func;
26667 #endif
26668 #ifdef __cplusplus
26669 }
26670 #endif
26671
26672 int
26673 main ()
26674 {
26675 return f != $ac_func;
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682   (eval $ac_link) 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } &&
26689          { ac_try='test -z "$ac_c_werror_flag"
26690                          || test ! -s conftest.err'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; } &&
26696          { ac_try='test -s conftest$ac_exeext'
26697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698   (eval $ac_try) 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); }; }; then
26702   eval "$as_ac_var=yes"
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707 eval "$as_ac_var=no"
26708 fi
26709 rm -f conftest.err conftest.$ac_objext \
26710       conftest$ac_exeext conftest.$ac_ext
26711 fi
26712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26714 if test `eval echo '${'$as_ac_var'}'` = yes; then
26715   cat >>confdefs.h <<_ACEOF
26716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26717 _ACEOF
26718
26719 fi
26720 done
26721
26722
26723
26724
26725
26726
26727 for ac_func in mkdtemp realpath strdup strtoq strtoll
26728 do
26729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26730 echo "$as_me:$LINENO: checking for $ac_func" >&5
26731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26732 if eval "test \"\${$as_ac_var+set}\" = set"; then
26733   echo $ECHO_N "(cached) $ECHO_C" >&6
26734 else
26735   cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26743 #define $ac_func innocuous_$ac_func
26744
26745 /* System header to define __stub macros and hopefully few prototypes,
26746     which can conflict with char $ac_func (); below.
26747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26748     <limits.h> exists even on freestanding compilers.  */
26749
26750 #ifdef __STDC__
26751 # include <limits.h>
26752 #else
26753 # include <assert.h>
26754 #endif
26755
26756 #undef $ac_func
26757
26758 /* Override any gcc2 internal prototype to avoid an error.  */
26759 #ifdef __cplusplus
26760 extern "C"
26761 {
26762 #endif
26763 /* We use char because int might match the return type of a gcc2
26764    builtin and then its argument prototype would still apply.  */
26765 char $ac_func ();
26766 /* The GNU C library defines this for functions which it implements
26767     to always fail with ENOSYS.  Some functions are actually named
26768     something starting with __ and the normal name is an alias.  */
26769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26770 choke me
26771 #else
26772 char (*f) () = $ac_func;
26773 #endif
26774 #ifdef __cplusplus
26775 }
26776 #endif
26777
26778 int
26779 main ()
26780 {
26781 return f != $ac_func;
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 rm -f conftest.$ac_objext conftest$ac_exeext
26787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26788   (eval $ac_link) 2>conftest.er1
26789   ac_status=$?
26790   grep -v '^ *+' conftest.er1 >conftest.err
26791   rm -f conftest.er1
26792   cat conftest.err >&5
26793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794   (exit $ac_status); } &&
26795          { ac_try='test -z "$ac_c_werror_flag"
26796                          || test ! -s conftest.err'
26797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798   (eval $ac_try) 2>&5
26799   ac_status=$?
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); }; } &&
26802          { ac_try='test -s conftest$ac_exeext'
26803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804   (eval $ac_try) 2>&5
26805   ac_status=$?
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); }; }; then
26808   eval "$as_ac_var=yes"
26809 else
26810   echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26812
26813 eval "$as_ac_var=no"
26814 fi
26815 rm -f conftest.err conftest.$ac_objext \
26816       conftest$ac_exeext conftest.$ac_ext
26817 fi
26818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26820 if test `eval echo '${'$as_ac_var'}'` = yes; then
26821   cat >>confdefs.h <<_ACEOF
26822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26823 _ACEOF
26824
26825 fi
26826 done
26827
26828 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26829 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26830 if test "${llvm_cv_c_printf_a+set}" = set; then
26831   echo $ECHO_N "(cached) $ECHO_C" >&6
26832 else
26833   ac_ext=c
26834 ac_cpp='$CPP $CPPFLAGS'
26835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26838
26839  if test "$cross_compiling" = yes; then
26840   llvmac_cv_c_printf_a=no
26841 else
26842   cat >conftest.$ac_ext <<_ACEOF
26843
26844   /* confdefs.h.  */
26845 _ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h.  */
26849
26850 #include <stdio.h>
26851 #include <stdlib.h>
26852
26853 int
26854 main ()
26855 {
26856
26857 volatile double A, B;
26858 char Buffer[100];
26859 A = 1;
26860 A /= 10.0;
26861 sprintf(Buffer, "%a", A);
26862 B = atof(Buffer);
26863 if (A != B)
26864   return (1);
26865 if (A != 0x1.999999999999ap-4)
26866   return (1);
26867 return (0);
26868   ;
26869   return 0;
26870 }
26871 _ACEOF
26872 rm -f conftest$ac_exeext
26873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26874   (eval $ac_link) 2>&5
26875   ac_status=$?
26876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879   (eval $ac_try) 2>&5
26880   ac_status=$?
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); }; }; then
26883   llvm_cv_c_printf_a=yes
26884 else
26885   echo "$as_me: program exited with status $ac_status" >&5
26886 echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26888
26889 ( exit $ac_status )
26890 llvmac_cv_c_printf_a=no
26891 fi
26892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26893 fi
26894  ac_ext=c
26895 ac_cpp='$CPP $CPPFLAGS'
26896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26899
26900 fi
26901 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26902 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26903  if test "$llvm_cv_c_printf_a" = "yes"; then
26904
26905 cat >>confdefs.h <<\_ACEOF
26906 #define HAVE_PRINTF_A 1
26907 _ACEOF
26908
26909  fi
26910
26911 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26912 # for constant arguments.  Useless!
26913 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26914 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26915 if test "${ac_cv_working_alloca_h+set}" = set; then
26916   echo $ECHO_N "(cached) $ECHO_C" >&6
26917 else
26918   cat >conftest.$ac_ext <<_ACEOF
26919 /* confdefs.h.  */
26920 _ACEOF
26921 cat confdefs.h >>conftest.$ac_ext
26922 cat >>conftest.$ac_ext <<_ACEOF
26923 /* end confdefs.h.  */
26924 #include <alloca.h>
26925 int
26926 main ()
26927 {
26928 char *p = (char *) alloca (2 * sizeof (int));
26929   ;
26930   return 0;
26931 }
26932 _ACEOF
26933 rm -f conftest.$ac_objext conftest$ac_exeext
26934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26935   (eval $ac_link) 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_exeext'
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_working_alloca_h=yes
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960 ac_cv_working_alloca_h=no
26961 fi
26962 rm -f conftest.err conftest.$ac_objext \
26963       conftest$ac_exeext conftest.$ac_ext
26964 fi
26965 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26966 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26967 if test $ac_cv_working_alloca_h = yes; then
26968
26969 cat >>confdefs.h <<\_ACEOF
26970 #define HAVE_ALLOCA_H 1
26971 _ACEOF
26972
26973 fi
26974
26975 echo "$as_me:$LINENO: checking for alloca" >&5
26976 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26977 if test "${ac_cv_func_alloca_works+set}" = set; then
26978   echo $ECHO_N "(cached) $ECHO_C" >&6
26979 else
26980   cat >conftest.$ac_ext <<_ACEOF
26981 /* confdefs.h.  */
26982 _ACEOF
26983 cat confdefs.h >>conftest.$ac_ext
26984 cat >>conftest.$ac_ext <<_ACEOF
26985 /* end confdefs.h.  */
26986 #ifdef __GNUC__
26987 # define alloca __builtin_alloca
26988 #else
26989 # ifdef _MSC_VER
26990 #  include <malloc.h>
26991 #  define alloca _alloca
26992 # else
26993 #  if HAVE_ALLOCA_H
26994 #   include <alloca.h>
26995 #  else
26996 #   ifdef _AIX
26997  #pragma alloca
26998 #   else
26999 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27000 char *alloca ();
27001 #    endif
27002 #   endif
27003 #  endif
27004 # endif
27005 #endif
27006
27007 int
27008 main ()
27009 {
27010 char *p = (char *) alloca (1);
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27017   (eval $ac_link) 2>conftest.er1
27018   ac_status=$?
27019   grep -v '^ *+' conftest.er1 >conftest.err
27020   rm -f conftest.er1
27021   cat conftest.err >&5
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); } &&
27024          { ac_try='test -z "$ac_c_werror_flag"
27025                          || test ! -s conftest.err'
27026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027   (eval $ac_try) 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); }; } &&
27031          { ac_try='test -s conftest$ac_exeext'
27032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033   (eval $ac_try) 2>&5
27034   ac_status=$?
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); }; }; then
27037   ac_cv_func_alloca_works=yes
27038 else
27039   echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27041
27042 ac_cv_func_alloca_works=no
27043 fi
27044 rm -f conftest.err conftest.$ac_objext \
27045       conftest$ac_exeext conftest.$ac_ext
27046 fi
27047 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27048 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27049
27050 if test $ac_cv_func_alloca_works = yes; then
27051
27052 cat >>confdefs.h <<\_ACEOF
27053 #define HAVE_ALLOCA 1
27054 _ACEOF
27055
27056 else
27057   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27058 # that cause trouble.  Some versions do not even contain alloca or
27059 # contain a buggy version.  If you still want to use their alloca,
27060 # use ar to extract alloca.o from them instead of compiling alloca.c.
27061
27062 ALLOCA=alloca.$ac_objext
27063
27064 cat >>confdefs.h <<\_ACEOF
27065 #define C_ALLOCA 1
27066 _ACEOF
27067
27068
27069 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27070 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27071 if test "${ac_cv_os_cray+set}" = set; then
27072   echo $ECHO_N "(cached) $ECHO_C" >&6
27073 else
27074   cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080 #if defined(CRAY) && ! defined(CRAY2)
27081 webecray
27082 #else
27083 wenotbecray
27084 #endif
27085
27086 _ACEOF
27087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27088   $EGREP "webecray" >/dev/null 2>&1; then
27089   ac_cv_os_cray=yes
27090 else
27091   ac_cv_os_cray=no
27092 fi
27093 rm -f conftest*
27094
27095 fi
27096 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27097 echo "${ECHO_T}$ac_cv_os_cray" >&6
27098 if test $ac_cv_os_cray = yes; then
27099   for ac_func in _getb67 GETB67 getb67; do
27100     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27101 echo "$as_me:$LINENO: checking for $ac_func" >&5
27102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27103 if eval "test \"\${$as_ac_var+set}\" = set"; then
27104   echo $ECHO_N "(cached) $ECHO_C" >&6
27105 else
27106   cat >conftest.$ac_ext <<_ACEOF
27107 /* confdefs.h.  */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h.  */
27112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27114 #define $ac_func innocuous_$ac_func
27115
27116 /* System header to define __stub macros and hopefully few prototypes,
27117     which can conflict with char $ac_func (); below.
27118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27119     <limits.h> exists even on freestanding compilers.  */
27120
27121 #ifdef __STDC__
27122 # include <limits.h>
27123 #else
27124 # include <assert.h>
27125 #endif
27126
27127 #undef $ac_func
27128
27129 /* Override any gcc2 internal prototype to avoid an error.  */
27130 #ifdef __cplusplus
27131 extern "C"
27132 {
27133 #endif
27134 /* We use char because int might match the return type of a gcc2
27135    builtin and then its argument prototype would still apply.  */
27136 char $ac_func ();
27137 /* The GNU C library defines this for functions which it implements
27138     to always fail with ENOSYS.  Some functions are actually named
27139     something starting with __ and the normal name is an alias.  */
27140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27141 choke me
27142 #else
27143 char (*f) () = $ac_func;
27144 #endif
27145 #ifdef __cplusplus
27146 }
27147 #endif
27148
27149 int
27150 main ()
27151 {
27152 return f != $ac_func;
27153   ;
27154   return 0;
27155 }
27156 _ACEOF
27157 rm -f conftest.$ac_objext conftest$ac_exeext
27158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27159   (eval $ac_link) 2>conftest.er1
27160   ac_status=$?
27161   grep -v '^ *+' conftest.er1 >conftest.err
27162   rm -f conftest.er1
27163   cat conftest.err >&5
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); } &&
27166          { ac_try='test -z "$ac_c_werror_flag"
27167                          || test ! -s conftest.err'
27168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27169   (eval $ac_try) 2>&5
27170   ac_status=$?
27171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172   (exit $ac_status); }; } &&
27173          { ac_try='test -s conftest$ac_exeext'
27174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175   (eval $ac_try) 2>&5
27176   ac_status=$?
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); }; }; then
27179   eval "$as_ac_var=yes"
27180 else
27181   echo "$as_me: failed program was:" >&5
27182 sed 's/^/| /' conftest.$ac_ext >&5
27183
27184 eval "$as_ac_var=no"
27185 fi
27186 rm -f conftest.err conftest.$ac_objext \
27187       conftest$ac_exeext conftest.$ac_ext
27188 fi
27189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27191 if test `eval echo '${'$as_ac_var'}'` = yes; then
27192
27193 cat >>confdefs.h <<_ACEOF
27194 #define CRAY_STACKSEG_END $ac_func
27195 _ACEOF
27196
27197     break
27198 fi
27199
27200   done
27201 fi
27202
27203 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27204 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27205 if test "${ac_cv_c_stack_direction+set}" = set; then
27206   echo $ECHO_N "(cached) $ECHO_C" >&6
27207 else
27208   if test "$cross_compiling" = yes; then
27209   ac_cv_c_stack_direction=0
27210 else
27211   cat >conftest.$ac_ext <<_ACEOF
27212 /* confdefs.h.  */
27213 _ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h.  */
27217 int
27218 find_stack_direction ()
27219 {
27220   static char *addr = 0;
27221   auto char dummy;
27222   if (addr == 0)
27223     {
27224       addr = &dummy;
27225       return find_stack_direction ();
27226     }
27227   else
27228     return (&dummy > addr) ? 1 : -1;
27229 }
27230
27231 int
27232 main ()
27233 {
27234   exit (find_stack_direction () < 0);
27235 }
27236 _ACEOF
27237 rm -f conftest$ac_exeext
27238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27239   (eval $ac_link) 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244   (eval $ac_try) 2>&5
27245   ac_status=$?
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); }; }; then
27248   ac_cv_c_stack_direction=1
27249 else
27250   echo "$as_me: program exited with status $ac_status" >&5
27251 echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27253
27254 ( exit $ac_status )
27255 ac_cv_c_stack_direction=-1
27256 fi
27257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27258 fi
27259 fi
27260 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27261 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27262
27263 cat >>confdefs.h <<_ACEOF
27264 #define STACK_DIRECTION $ac_cv_c_stack_direction
27265 _ACEOF
27266
27267
27268 fi
27269
27270
27271 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27272 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27273 if test "${ac_cv_func_rand48+set}" = set; then
27274   echo $ECHO_N "(cached) $ECHO_C" >&6
27275 else
27276   ac_ext=cc
27277 ac_cpp='$CXXCPP $CPPFLAGS'
27278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27281
27282    cat >conftest.$ac_ext <<_ACEOF
27283 /* confdefs.h.  */
27284 _ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h.  */
27288 #include <stdlib.h>
27289 int
27290 main ()
27291 {
27292 srand48(0);lrand48();drand48();
27293   ;
27294   return 0;
27295 }
27296 _ACEOF
27297 rm -f conftest.$ac_objext
27298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27299   (eval $ac_compile) 2>conftest.er1
27300   ac_status=$?
27301   grep -v '^ *+' conftest.er1 >conftest.err
27302   rm -f conftest.er1
27303   cat conftest.err >&5
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } &&
27306          { ac_try='test -z "$ac_cxx_werror_flag"
27307                          || test ! -s conftest.err'
27308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309   (eval $ac_try) 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; } &&
27313          { ac_try='test -s conftest.$ac_objext'
27314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315   (eval $ac_try) 2>&5
27316   ac_status=$?
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); }; }; then
27319   ac_cv_func_rand48=yes
27320 else
27321   echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 ac_cv_func_rand48=no
27325 fi
27326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27327   ac_ext=c
27328 ac_cpp='$CPP $CPPFLAGS'
27329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27332
27333 fi
27334 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27335 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27336
27337 if test "$ac_cv_func_rand48" = "yes" ; then
27338
27339 cat >>confdefs.h <<\_ACEOF
27340 #define HAVE_RAND48 1
27341 _ACEOF
27342
27343 fi
27344
27345
27346 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27347 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27348 if test "${ac_cv_cxx_namespaces+set}" = set; then
27349   echo $ECHO_N "(cached) $ECHO_C" >&6
27350 else
27351   ac_ext=cc
27352 ac_cpp='$CXXCPP $CPPFLAGS'
27353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27356
27357  cat >conftest.$ac_ext <<_ACEOF
27358 /* confdefs.h.  */
27359 _ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h.  */
27363 namespace Outer { namespace Inner { int i = 0; }}
27364 int
27365 main ()
27366 {
27367 using namespace Outer::Inner; return i;
27368   ;
27369   return 0;
27370 }
27371 _ACEOF
27372 rm -f conftest.$ac_objext
27373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27374   (eval $ac_compile) 2>conftest.er1
27375   ac_status=$?
27376   grep -v '^ *+' conftest.er1 >conftest.err
27377   rm -f conftest.er1
27378   cat conftest.err >&5
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); } &&
27381          { ac_try='test -z "$ac_cxx_werror_flag"
27382                          || test ! -s conftest.err'
27383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27384   (eval $ac_try) 2>&5
27385   ac_status=$?
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); }; } &&
27388          { ac_try='test -s conftest.$ac_objext'
27389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390   (eval $ac_try) 2>&5
27391   ac_status=$?
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); }; }; then
27394   ac_cv_cxx_namespaces=yes
27395 else
27396   echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27398
27399 ac_cv_cxx_namespaces=no
27400 fi
27401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27402  ac_ext=c
27403 ac_cpp='$CPP $CPPFLAGS'
27404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27407
27408
27409 fi
27410 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27411 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27412 if test "$ac_cv_cxx_namespaces" = yes; then
27413
27414 cat >>confdefs.h <<\_ACEOF
27415 #define HAVE_NAMESPACES
27416 _ACEOF
27417
27418 fi
27419
27420 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27421 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27422 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27423   echo $ECHO_N "(cached) $ECHO_C" >&6
27424 else
27425
27426   ac_ext=cc
27427 ac_cpp='$CXXCPP $CPPFLAGS'
27428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27431
27432   cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h.  */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h.  */
27438 #include <ext/hash_map>
27439 #ifdef HAVE_NAMESPACES
27440 using namespace std;
27441 #endif
27442 int
27443 main ()
27444 {
27445 hash_map<int, int> t;
27446   ;
27447   return 0;
27448 }
27449 _ACEOF
27450 rm -f conftest.$ac_objext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27452   (eval $ac_compile) 2>conftest.er1
27453   ac_status=$?
27454   grep -v '^ *+' conftest.er1 >conftest.err
27455   rm -f conftest.er1
27456   cat conftest.err >&5
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } &&
27459          { ac_try='test -z "$ac_cxx_werror_flag"
27460                          || test ! -s conftest.err'
27461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462   (eval $ac_try) 2>&5
27463   ac_status=$?
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); }; } &&
27466          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27472   ac_cv_cxx_have_std_ext_hash_map=yes
27473 else
27474   echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27476
27477 ac_cv_cxx_have_std_ext_hash_map=no
27478 fi
27479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27480   ac_ext=c
27481 ac_cpp='$CPP $CPPFLAGS'
27482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27485
27486 fi
27487 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27488 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27489  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27490  then
27491
27492 cat >>confdefs.h <<\_ACEOF
27493 #define HAVE_STD_EXT_HASH_MAP 1
27494 _ACEOF
27495
27496  else
27497
27498 cat >>confdefs.h <<\_ACEOF
27499 #define HAVE_STD_EXT_HASH_MAP 0
27500 _ACEOF
27501
27502  fi
27503
27504  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27505 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27506 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27507   echo $ECHO_N "(cached) $ECHO_C" >&6
27508 else
27509
27510   ac_ext=cc
27511 ac_cpp='$CXXCPP $CPPFLAGS'
27512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27515
27516   cat >conftest.$ac_ext <<_ACEOF
27517 /* confdefs.h.  */
27518 _ACEOF
27519 cat confdefs.h >>conftest.$ac_ext
27520 cat >>conftest.$ac_ext <<_ACEOF
27521 /* end confdefs.h.  */
27522 #include <ext/hash_map>
27523 #ifdef HAVE_NAMESPACES
27524 using namespace __gnu_cxx;
27525 #endif
27526 int
27527 main ()
27528 {
27529 hash_map<int,int> t;
27530   ;
27531   return 0;
27532 }
27533 _ACEOF
27534 rm -f conftest.$ac_objext
27535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27536   (eval $ac_compile) 2>conftest.er1
27537   ac_status=$?
27538   grep -v '^ *+' conftest.er1 >conftest.err
27539   rm -f conftest.er1
27540   cat conftest.err >&5
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); } &&
27543          { ac_try='test -z "$ac_cxx_werror_flag"
27544                          || test ! -s conftest.err'
27545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27546   (eval $ac_try) 2>&5
27547   ac_status=$?
27548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549   (exit $ac_status); }; } &&
27550          { ac_try='test -s conftest.$ac_objext'
27551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27552   (eval $ac_try) 2>&5
27553   ac_status=$?
27554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555   (exit $ac_status); }; }; then
27556   ac_cv_cxx_have_gnu_ext_hash_map=yes
27557 else
27558   echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27560
27561 ac_cv_cxx_have_gnu_ext_hash_map=no
27562 fi
27563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27564   ac_ext=c
27565 ac_cpp='$CPP $CPPFLAGS'
27566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27569
27570 fi
27571 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27572 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27573  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27574  then
27575
27576 cat >>confdefs.h <<\_ACEOF
27577 #define HAVE_GNU_EXT_HASH_MAP 1
27578 _ACEOF
27579
27580  else
27581
27582 cat >>confdefs.h <<\_ACEOF
27583 #define HAVE_GNU_EXT_HASH_MAP 0
27584 _ACEOF
27585
27586  fi
27587
27588  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27589 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27590 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27591   echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593
27594   ac_ext=cc
27595 ac_cpp='$CXXCPP $CPPFLAGS'
27596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27599
27600   cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606 #include <hash_map>
27607 int
27608 main ()
27609 {
27610 hash_map<int,int> t;
27611   ;
27612   return 0;
27613 }
27614 _ACEOF
27615 rm -f conftest.$ac_objext
27616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27617   (eval $ac_compile) 2>conftest.er1
27618   ac_status=$?
27619   grep -v '^ *+' conftest.er1 >conftest.err
27620   rm -f conftest.er1
27621   cat conftest.err >&5
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); } &&
27624          { ac_try='test -z "$ac_cxx_werror_flag"
27625                          || test ! -s conftest.err'
27626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627   (eval $ac_try) 2>&5
27628   ac_status=$?
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); }; } &&
27631          { ac_try='test -s conftest.$ac_objext'
27632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633   (eval $ac_try) 2>&5
27634   ac_status=$?
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); }; }; then
27637   ac_cv_cxx_have_global_hash_map=yes
27638 else
27639   echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27641
27642 ac_cv_cxx_have_global_hash_map=no
27643 fi
27644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27645   ac_ext=c
27646 ac_cpp='$CPP $CPPFLAGS'
27647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27650
27651 fi
27652 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27653 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27654  if test "$ac_cv_cxx_have_global_hash_map" = yes
27655  then
27656
27657 cat >>confdefs.h <<\_ACEOF
27658 #define HAVE_GLOBAL_HASH_MAP 1
27659 _ACEOF
27660
27661  else
27662
27663 cat >>confdefs.h <<\_ACEOF
27664 #define HAVE_GLOBAL_HASH_MAP 0
27665 _ACEOF
27666
27667  fi
27668
27669 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27670 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27671 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27672   echo $ECHO_N "(cached) $ECHO_C" >&6
27673 else
27674
27675   ac_ext=cc
27676 ac_cpp='$CXXCPP $CPPFLAGS'
27677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27680
27681   cat >conftest.$ac_ext <<_ACEOF
27682 /* confdefs.h.  */
27683 _ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h.  */
27687 #include <ext/hash_set>
27688 #ifdef HAVE_NAMESPACES
27689 using namespace std;
27690 #endif
27691 int
27692 main ()
27693 {
27694 hash_set<int> t;
27695   ;
27696   return 0;
27697 }
27698 _ACEOF
27699 rm -f conftest.$ac_objext
27700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27701   (eval $ac_compile) 2>conftest.er1
27702   ac_status=$?
27703   grep -v '^ *+' conftest.er1 >conftest.err
27704   rm -f conftest.er1
27705   cat conftest.err >&5
27706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707   (exit $ac_status); } &&
27708          { ac_try='test -z "$ac_cxx_werror_flag"
27709                          || test ! -s conftest.err'
27710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711   (eval $ac_try) 2>&5
27712   ac_status=$?
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); }; } &&
27715          { ac_try='test -s conftest.$ac_objext'
27716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717   (eval $ac_try) 2>&5
27718   ac_status=$?
27719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720   (exit $ac_status); }; }; then
27721   ac_cv_cxx_have_std_ext_hash_set=yes
27722 else
27723   echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.$ac_ext >&5
27725
27726 ac_cv_cxx_have_std_ext_hash_set=no
27727 fi
27728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27729   ac_ext=c
27730 ac_cpp='$CPP $CPPFLAGS'
27731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27734
27735 fi
27736 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27737 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27738  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27739  then
27740
27741 cat >>confdefs.h <<\_ACEOF
27742 #define HAVE_STD_EXT_HASH_SET 1
27743 _ACEOF
27744
27745  else
27746
27747 cat >>confdefs.h <<\_ACEOF
27748 #define HAVE_STD_EXT_HASH_SET 0
27749 _ACEOF
27750
27751  fi
27752
27753  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27754 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27755 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27756   echo $ECHO_N "(cached) $ECHO_C" >&6
27757 else
27758
27759   ac_ext=cc
27760 ac_cpp='$CXXCPP $CPPFLAGS'
27761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27764
27765   cat >conftest.$ac_ext <<_ACEOF
27766 /* confdefs.h.  */
27767 _ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h.  */
27771 #include <ext/hash_set>
27772 #ifdef HAVE_NAMESPACES
27773 using namespace __gnu_cxx;
27774 #endif
27775 int
27776 main ()
27777 {
27778 hash_set<int> t;
27779   ;
27780   return 0;
27781 }
27782 _ACEOF
27783 rm -f conftest.$ac_objext
27784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27785   (eval $ac_compile) 2>conftest.er1
27786   ac_status=$?
27787   grep -v '^ *+' conftest.er1 >conftest.err
27788   rm -f conftest.er1
27789   cat conftest.err >&5
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); } &&
27792          { ac_try='test -z "$ac_cxx_werror_flag"
27793                          || test ! -s conftest.err'
27794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795   (eval $ac_try) 2>&5
27796   ac_status=$?
27797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798   (exit $ac_status); }; } &&
27799          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27805   ac_cv_cxx_have_gnu_ext_hash_set=yes
27806 else
27807   echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27809
27810 ac_cv_cxx_have_gnu_ext_hash_set=no
27811 fi
27812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27813   ac_ext=c
27814 ac_cpp='$CPP $CPPFLAGS'
27815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27818
27819 fi
27820 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27821 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27822  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27823  then
27824
27825 cat >>confdefs.h <<\_ACEOF
27826 #define HAVE_GNU_EXT_HASH_SET 1
27827 _ACEOF
27828
27829  else
27830
27831 cat >>confdefs.h <<\_ACEOF
27832 #define HAVE_GNU_EXT_HASH_SET 0
27833 _ACEOF
27834
27835  fi
27836
27837  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27838 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27839 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27840   echo $ECHO_N "(cached) $ECHO_C" >&6
27841 else
27842
27843   ac_ext=cc
27844 ac_cpp='$CXXCPP $CPPFLAGS'
27845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27848
27849   cat >conftest.$ac_ext <<_ACEOF
27850 /* confdefs.h.  */
27851 _ACEOF
27852 cat confdefs.h >>conftest.$ac_ext
27853 cat >>conftest.$ac_ext <<_ACEOF
27854 /* end confdefs.h.  */
27855 #include <hash_set>
27856 int
27857 main ()
27858 {
27859 hash_set<int> t; return 0;
27860   ;
27861   return 0;
27862 }
27863 _ACEOF
27864 rm -f conftest.$ac_objext
27865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27866   (eval $ac_compile) 2>conftest.er1
27867   ac_status=$?
27868   grep -v '^ *+' conftest.er1 >conftest.err
27869   rm -f conftest.er1
27870   cat conftest.err >&5
27871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872   (exit $ac_status); } &&
27873          { ac_try='test -z "$ac_cxx_werror_flag"
27874                          || test ! -s conftest.err'
27875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876   (eval $ac_try) 2>&5
27877   ac_status=$?
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); }; } &&
27880          { ac_try='test -s conftest.$ac_objext'
27881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882   (eval $ac_try) 2>&5
27883   ac_status=$?
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); }; }; then
27886   ac_cv_cxx_have_global_hash_set=yes
27887 else
27888   echo "$as_me: failed program was:" >&5
27889 sed 's/^/| /' conftest.$ac_ext >&5
27890
27891 ac_cv_cxx_have_global_hash_set=no
27892 fi
27893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27894   ac_ext=c
27895 ac_cpp='$CPP $CPPFLAGS'
27896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27899
27900 fi
27901 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27902 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
27903  if test "$ac_cv_cxx_have_global_hash_set" = yes
27904  then
27905
27906 cat >>confdefs.h <<\_ACEOF
27907 #define HAVE_GLOBAL_HASH_SET 1
27908 _ACEOF
27909
27910  else
27911
27912 cat >>confdefs.h <<\_ACEOF
27913 #define HAVE_GLOBAL_HASH_SET 0
27914 _ACEOF
27915
27916  fi
27917
27918 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27919 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27920 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27921   echo $ECHO_N "(cached) $ECHO_C" >&6
27922 else
27923
27924   ac_ext=cc
27925 ac_cpp='$CXXCPP $CPPFLAGS'
27926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27929
27930   cat >conftest.$ac_ext <<_ACEOF
27931 /* confdefs.h.  */
27932 _ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h.  */
27936 #include <iterator>
27937 #ifdef HAVE_NAMESPACES
27938 using namespace std;
27939 #endif
27940 int
27941 main ()
27942 {
27943 iterator<int,int,int> t; return 0;
27944   ;
27945   return 0;
27946 }
27947 _ACEOF
27948 rm -f conftest.$ac_objext
27949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27950   (eval $ac_compile) 2>conftest.er1
27951   ac_status=$?
27952   grep -v '^ *+' conftest.er1 >conftest.err
27953   rm -f conftest.er1
27954   cat conftest.err >&5
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); } &&
27957          { ac_try='test -z "$ac_cxx_werror_flag"
27958                          || test ! -s conftest.err'
27959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960   (eval $ac_try) 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; } &&
27964          { ac_try='test -s conftest.$ac_objext'
27965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966   (eval $ac_try) 2>&5
27967   ac_status=$?
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); }; }; then
27970   ac_cv_cxx_have_std_iterator=yes
27971 else
27972   echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27974
27975 ac_cv_cxx_have_std_iterator=no
27976 fi
27977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27978   ac_ext=c
27979 ac_cpp='$CPP $CPPFLAGS'
27980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27983
27984
27985 fi
27986 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27987 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
27988 if test "$ac_cv_cxx_have_std_iterator" = yes
27989 then
27990
27991 cat >>confdefs.h <<\_ACEOF
27992 #define HAVE_STD_ITERATOR 1
27993 _ACEOF
27994
27995 else
27996
27997 cat >>confdefs.h <<\_ACEOF
27998 #define HAVE_STD_ITERATOR 0
27999 _ACEOF
28000
28001 fi
28002
28003 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28004 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28005 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28006   echo $ECHO_N "(cached) $ECHO_C" >&6
28007 else
28008
28009   ac_ext=cc
28010 ac_cpp='$CXXCPP $CPPFLAGS'
28011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28014
28015   cat >conftest.$ac_ext <<_ACEOF
28016 /* confdefs.h.  */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h.  */
28021 #include <iterator>
28022 #ifdef HAVE_NAMESPACES
28023 using namespace std;
28024 #endif
28025 int
28026 main ()
28027 {
28028 bidirectional_iterator<int,int> t; return 0;
28029   ;
28030   return 0;
28031 }
28032 _ACEOF
28033 rm -f conftest.$ac_objext
28034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28035   (eval $ac_compile) 2>conftest.er1
28036   ac_status=$?
28037   grep -v '^ *+' conftest.er1 >conftest.err
28038   rm -f conftest.er1
28039   cat conftest.err >&5
28040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041   (exit $ac_status); } &&
28042          { ac_try='test -z "$ac_cxx_werror_flag"
28043                          || test ! -s conftest.err'
28044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045   (eval $ac_try) 2>&5
28046   ac_status=$?
28047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048   (exit $ac_status); }; } &&
28049          { ac_try='test -s conftest.$ac_objext'
28050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28051   (eval $ac_try) 2>&5
28052   ac_status=$?
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); }; }; then
28055   ac_cv_cxx_have_bi_iterator=yes
28056 else
28057   echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28059
28060 ac_cv_cxx_have_bi_iterator=no
28061 fi
28062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28063   ac_ext=c
28064 ac_cpp='$CPP $CPPFLAGS'
28065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28068
28069
28070 fi
28071 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28072 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28073 if test "$ac_cv_cxx_have_bi_iterator" = yes
28074 then
28075
28076 cat >>confdefs.h <<\_ACEOF
28077 #define HAVE_BI_ITERATOR 1
28078 _ACEOF
28079
28080 else
28081
28082 cat >>confdefs.h <<\_ACEOF
28083 #define HAVE_BI_ITERATOR 0
28084 _ACEOF
28085
28086 fi
28087
28088 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28089 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28090 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28091   echo $ECHO_N "(cached) $ECHO_C" >&6
28092 else
28093
28094   ac_ext=cc
28095 ac_cpp='$CXXCPP $CPPFLAGS'
28096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28099
28100   cat >conftest.$ac_ext <<_ACEOF
28101 /* confdefs.h.  */
28102 _ACEOF
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h.  */
28106 #include <iterator>
28107 #ifdef HAVE_NAMESPACES
28108 using namespace std;
28109 #endif
28110 int
28111 main ()
28112 {
28113 forward_iterator<int,int> t; return 0;
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28120   (eval $ac_compile) 2>conftest.er1
28121   ac_status=$?
28122   grep -v '^ *+' conftest.er1 >conftest.err
28123   rm -f conftest.er1
28124   cat conftest.err >&5
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); } &&
28127          { ac_try='test -z "$ac_cxx_werror_flag"
28128                          || test ! -s conftest.err'
28129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130   (eval $ac_try) 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; } &&
28134          { ac_try='test -s conftest.$ac_objext'
28135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136   (eval $ac_try) 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; }; then
28140   ac_cv_cxx_have_fwd_iterator=yes
28141 else
28142   echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145 ac_cv_cxx_have_fwd_iterator=no
28146 fi
28147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28148   ac_ext=c
28149 ac_cpp='$CPP $CPPFLAGS'
28150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28153
28154
28155 fi
28156 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28157 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28158 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28159 then
28160
28161 cat >>confdefs.h <<\_ACEOF
28162 #define HAVE_FWD_ITERATOR 1
28163 _ACEOF
28164
28165 else
28166
28167 cat >>confdefs.h <<\_ACEOF
28168 #define HAVE_FWD_ITERATOR 0
28169 _ACEOF
28170
28171 fi
28172
28173
28174 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28175 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28176 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28177   echo $ECHO_N "(cached) $ECHO_C" >&6
28178 else
28179   ac_ext=cc
28180 ac_cpp='$CXXCPP $CPPFLAGS'
28181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28184
28185    cat >conftest.$ac_ext <<_ACEOF
28186 /* confdefs.h.  */
28187 _ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h.  */
28191 #include <math.h>
28192 int
28193 main ()
28194 {
28195 float f; isnan(f);
28196   ;
28197   return 0;
28198 }
28199 _ACEOF
28200 rm -f conftest.$ac_objext
28201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28202   (eval $ac_compile) 2>conftest.er1
28203   ac_status=$?
28204   grep -v '^ *+' conftest.er1 >conftest.err
28205   rm -f conftest.er1
28206   cat conftest.err >&5
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); } &&
28209          { ac_try='test -z "$ac_cxx_werror_flag"
28210                          || test ! -s conftest.err'
28211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212   (eval $ac_try) 2>&5
28213   ac_status=$?
28214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215   (exit $ac_status); }; } &&
28216          { ac_try='test -s conftest.$ac_objext'
28217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218   (eval $ac_try) 2>&5
28219   ac_status=$?
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); }; }; then
28222   ac_cv_func_isnan_in_math_h=yes
28223 else
28224   echo "$as_me: failed program was:" >&5
28225 sed 's/^/| /' conftest.$ac_ext >&5
28226
28227 ac_cv_func_isnan_in_math_h=no
28228 fi
28229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28230   ac_ext=c
28231 ac_cpp='$CPP $CPPFLAGS'
28232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28235
28236 fi
28237 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28238 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28239
28240
28241 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28242
28243 cat >>confdefs.h <<\_ACEOF
28244 #define HAVE_ISNAN_IN_MATH_H 1
28245 _ACEOF
28246
28247 fi
28248
28249 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28250 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28251 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28252   echo $ECHO_N "(cached) $ECHO_C" >&6
28253 else
28254   ac_ext=cc
28255 ac_cpp='$CXXCPP $CPPFLAGS'
28256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28259
28260    cat >conftest.$ac_ext <<_ACEOF
28261 /* confdefs.h.  */
28262 _ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h.  */
28266 #include <cmath>
28267 int
28268 main ()
28269 {
28270 float f; isnan(f);
28271   ;
28272   return 0;
28273 }
28274 _ACEOF
28275 rm -f conftest.$ac_objext
28276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28277   (eval $ac_compile) 2>conftest.er1
28278   ac_status=$?
28279   grep -v '^ *+' conftest.er1 >conftest.err
28280   rm -f conftest.er1
28281   cat conftest.err >&5
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); } &&
28284          { ac_try='test -z "$ac_cxx_werror_flag"
28285                          || test ! -s conftest.err'
28286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287   (eval $ac_try) 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; } &&
28291          { ac_try='test -s conftest.$ac_objext'
28292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293   (eval $ac_try) 2>&5
28294   ac_status=$?
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); }; }; then
28297   ac_cv_func_isnan_in_cmath=yes
28298 else
28299   echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28301
28302 ac_cv_func_isnan_in_cmath=no
28303 fi
28304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28305   ac_ext=c
28306 ac_cpp='$CPP $CPPFLAGS'
28307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28310
28311 fi
28312 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28313 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28314
28315 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28316
28317 cat >>confdefs.h <<\_ACEOF
28318 #define HAVE_ISNAN_IN_CMATH 1
28319 _ACEOF
28320
28321 fi
28322
28323 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28324 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28325 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28326   echo $ECHO_N "(cached) $ECHO_C" >&6
28327 else
28328   ac_ext=cc
28329 ac_cpp='$CXXCPP $CPPFLAGS'
28330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28333
28334    cat >conftest.$ac_ext <<_ACEOF
28335 /* confdefs.h.  */
28336 _ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h.  */
28340 #include <cmath>
28341 int
28342 main ()
28343 {
28344 float f; std::isnan(f);
28345   ;
28346   return 0;
28347 }
28348 _ACEOF
28349 rm -f conftest.$ac_objext
28350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28351   (eval $ac_compile) 2>conftest.er1
28352   ac_status=$?
28353   grep -v '^ *+' conftest.er1 >conftest.err
28354   rm -f conftest.er1
28355   cat conftest.err >&5
28356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357   (exit $ac_status); } &&
28358          { ac_try='test -z "$ac_cxx_werror_flag"
28359                          || test ! -s conftest.err'
28360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361   (eval $ac_try) 2>&5
28362   ac_status=$?
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); }; } &&
28365          { ac_try='test -s conftest.$ac_objext'
28366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367   (eval $ac_try) 2>&5
28368   ac_status=$?
28369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370   (exit $ac_status); }; }; then
28371   ac_cv_func_std_isnan_in_cmath=yes
28372 else
28373   echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28375
28376 ac_cv_func_std_isnan_in_cmath=no
28377 fi
28378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28379   ac_ext=c
28380 ac_cpp='$CPP $CPPFLAGS'
28381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28384
28385 fi
28386 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28387 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28388
28389 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28390
28391 cat >>confdefs.h <<\_ACEOF
28392 #define HAVE_STD_ISNAN_IN_CMATH 1
28393 _ACEOF
28394
28395 fi
28396
28397
28398 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28399 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28400 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28401   echo $ECHO_N "(cached) $ECHO_C" >&6
28402 else
28403   ac_ext=cc
28404 ac_cpp='$CXXCPP $CPPFLAGS'
28405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28408
28409    cat >conftest.$ac_ext <<_ACEOF
28410 /* confdefs.h.  */
28411 _ACEOF
28412 cat confdefs.h >>conftest.$ac_ext
28413 cat >>conftest.$ac_ext <<_ACEOF
28414 /* end confdefs.h.  */
28415 #include <math.h>
28416 int
28417 main ()
28418 {
28419 float f; isinf(f);
28420   ;
28421   return 0;
28422 }
28423 _ACEOF
28424 rm -f conftest.$ac_objext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28426   (eval $ac_compile) 2>conftest.er1
28427   ac_status=$?
28428   grep -v '^ *+' conftest.er1 >conftest.err
28429   rm -f conftest.er1
28430   cat conftest.err >&5
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); } &&
28433          { ac_try='test -z "$ac_cxx_werror_flag"
28434                          || test ! -s conftest.err'
28435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436   (eval $ac_try) 2>&5
28437   ac_status=$?
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); }; } &&
28440          { ac_try='test -s conftest.$ac_objext'
28441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442   (eval $ac_try) 2>&5
28443   ac_status=$?
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); }; }; then
28446   ac_cv_func_isinf_in_math_h=yes
28447 else
28448   echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28450
28451 ac_cv_func_isinf_in_math_h=no
28452 fi
28453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28454   ac_ext=c
28455 ac_cpp='$CPP $CPPFLAGS'
28456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28459
28460 fi
28461 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28462 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28463
28464 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28465
28466 cat >>confdefs.h <<\_ACEOF
28467 #define HAVE_ISINF_IN_MATH_H 1
28468 _ACEOF
28469
28470 fi
28471
28472 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28473 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28474 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28475   echo $ECHO_N "(cached) $ECHO_C" >&6
28476 else
28477   ac_ext=cc
28478 ac_cpp='$CXXCPP $CPPFLAGS'
28479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28482
28483    cat >conftest.$ac_ext <<_ACEOF
28484 /* confdefs.h.  */
28485 _ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h.  */
28489 #include <cmath>
28490 int
28491 main ()
28492 {
28493 float f; isinf(f);
28494   ;
28495   return 0;
28496 }
28497 _ACEOF
28498 rm -f conftest.$ac_objext
28499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28500   (eval $ac_compile) 2>conftest.er1
28501   ac_status=$?
28502   grep -v '^ *+' conftest.er1 >conftest.err
28503   rm -f conftest.er1
28504   cat conftest.err >&5
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); } &&
28507          { ac_try='test -z "$ac_cxx_werror_flag"
28508                          || test ! -s conftest.err'
28509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510   (eval $ac_try) 2>&5
28511   ac_status=$?
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); }; } &&
28514          { ac_try='test -s conftest.$ac_objext'
28515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516   (eval $ac_try) 2>&5
28517   ac_status=$?
28518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519   (exit $ac_status); }; }; then
28520   ac_cv_func_isinf_in_cmath=yes
28521 else
28522   echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525 ac_cv_func_isinf_in_cmath=no
28526 fi
28527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28528   ac_ext=c
28529 ac_cpp='$CPP $CPPFLAGS'
28530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28533
28534 fi
28535 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28536 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28537
28538 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28539
28540 cat >>confdefs.h <<\_ACEOF
28541 #define HAVE_ISINF_IN_CMATH 1
28542 _ACEOF
28543
28544 fi
28545
28546 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28547 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28548 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28549   echo $ECHO_N "(cached) $ECHO_C" >&6
28550 else
28551   ac_ext=cc
28552 ac_cpp='$CXXCPP $CPPFLAGS'
28553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28556
28557    cat >conftest.$ac_ext <<_ACEOF
28558 /* confdefs.h.  */
28559 _ACEOF
28560 cat confdefs.h >>conftest.$ac_ext
28561 cat >>conftest.$ac_ext <<_ACEOF
28562 /* end confdefs.h.  */
28563 #include <cmath>
28564 int
28565 main ()
28566 {
28567 float f; std::isinf(f)}
28568   ;
28569   return 0;
28570 }
28571 _ACEOF
28572 rm -f conftest.$ac_objext
28573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28574   (eval $ac_compile) 2>conftest.er1
28575   ac_status=$?
28576   grep -v '^ *+' conftest.er1 >conftest.err
28577   rm -f conftest.er1
28578   cat conftest.err >&5
28579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580   (exit $ac_status); } &&
28581          { ac_try='test -z "$ac_cxx_werror_flag"
28582                          || test ! -s conftest.err'
28583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584   (eval $ac_try) 2>&5
28585   ac_status=$?
28586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587   (exit $ac_status); }; } &&
28588          { ac_try='test -s conftest.$ac_objext'
28589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590   (eval $ac_try) 2>&5
28591   ac_status=$?
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); }; }; then
28594   ac_cv_func_std_isinf_in_cmath=yes
28595 else
28596   echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28598
28599 ac_cv_func_std_isinf_in_cmath=no
28600 fi
28601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28602   ac_ext=c
28603 ac_cpp='$CPP $CPPFLAGS'
28604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28607
28608 fi
28609 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28610 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28611
28612 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28613
28614 cat >>confdefs.h <<\_ACEOF
28615 #define HAVE_STD_ISINF_IN_CMATH 1
28616 _ACEOF
28617
28618 fi
28619
28620 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28621 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28622 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28623   echo $ECHO_N "(cached) $ECHO_C" >&6
28624 else
28625   ac_ext=cc
28626 ac_cpp='$CXXCPP $CPPFLAGS'
28627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28630
28631    cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h.  */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h.  */
28637 #include <ieeefp.h>
28638 int
28639 main ()
28640 {
28641 float f; finite(f);
28642   ;
28643   return 0;
28644 }
28645 _ACEOF
28646 rm -f conftest.$ac_objext
28647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28648   (eval $ac_compile) 2>conftest.er1
28649   ac_status=$?
28650   grep -v '^ *+' conftest.er1 >conftest.err
28651   rm -f conftest.er1
28652   cat conftest.err >&5
28653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); } &&
28655          { ac_try='test -z "$ac_cxx_werror_flag"
28656                          || test ! -s conftest.err'
28657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28658   (eval $ac_try) 2>&5
28659   ac_status=$?
28660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661   (exit $ac_status); }; } &&
28662          { ac_try='test -s conftest.$ac_objext'
28663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664   (eval $ac_try) 2>&5
28665   ac_status=$?
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); }; }; then
28668   ac_cv_func_finite_in_ieeefp_h=yes
28669 else
28670   echo "$as_me: failed program was:" >&5
28671 sed 's/^/| /' conftest.$ac_ext >&5
28672
28673 ac_cv_func_finite_in_ieeefp_h=no
28674 fi
28675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28676   ac_ext=c
28677 ac_cpp='$CPP $CPPFLAGS'
28678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28681
28682 fi
28683 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28684 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28685
28686 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28687
28688 cat >>confdefs.h <<\_ACEOF
28689 #define HAVE_FINITE_IN_IEEEFP_H 1
28690 _ACEOF
28691
28692 fi
28693
28694
28695
28696
28697
28698 for ac_header in stdlib.h unistd.h
28699 do
28700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28702   echo "$as_me:$LINENO: checking for $ac_header" >&5
28703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28705   echo $ECHO_N "(cached) $ECHO_C" >&6
28706 fi
28707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28709 else
28710   # Is the header compilable?
28711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28713 cat >conftest.$ac_ext <<_ACEOF
28714 /* confdefs.h.  */
28715 _ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h.  */
28719 $ac_includes_default
28720 #include <$ac_header>
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_c_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_header_compiler=yes
28745 else
28746   echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28748
28749 ac_header_compiler=no
28750 fi
28751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28753 echo "${ECHO_T}$ac_header_compiler" >&6
28754
28755 # Is the header present?
28756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28758 cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h.  */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h.  */
28764 #include <$ac_header>
28765 _ACEOF
28766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28768   ac_status=$?
28769   grep -v '^ *+' conftest.er1 >conftest.err
28770   rm -f conftest.er1
28771   cat conftest.err >&5
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } >/dev/null; then
28774   if test -s conftest.err; then
28775     ac_cpp_err=$ac_c_preproc_warn_flag
28776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777   else
28778     ac_cpp_err=
28779   fi
28780 else
28781   ac_cpp_err=yes
28782 fi
28783 if test -z "$ac_cpp_err"; then
28784   ac_header_preproc=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789   ac_header_preproc=no
28790 fi
28791 rm -f conftest.err conftest.$ac_ext
28792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28793 echo "${ECHO_T}$ac_header_preproc" >&6
28794
28795 # So?  What about this header?
28796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28797   yes:no: )
28798     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28802     ac_header_preproc=yes
28803     ;;
28804   no:yes:* )
28805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28807     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28808 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28809     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28811     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28812 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28815     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28817     (
28818       cat <<\_ASBOX
28819 ## ----------------------------------- ##
28820 ## Report this to llvmbugs@cs.uiuc.edu ##
28821 ## ----------------------------------- ##
28822 _ASBOX
28823     ) |
28824       sed "s/^/$as_me: WARNING:     /" >&2
28825     ;;
28826 esac
28827 echo "$as_me:$LINENO: checking for $ac_header" >&5
28828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28830   echo $ECHO_N "(cached) $ECHO_C" >&6
28831 else
28832   eval "$as_ac_Header=\$ac_header_preproc"
28833 fi
28834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28836
28837 fi
28838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839   cat >>confdefs.h <<_ACEOF
28840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841 _ACEOF
28842
28843 fi
28844
28845 done
28846
28847
28848 for ac_func in getpagesize
28849 do
28850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28851 echo "$as_me:$LINENO: checking for $ac_func" >&5
28852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28853 if eval "test \"\${$as_ac_var+set}\" = set"; then
28854   echo $ECHO_N "(cached) $ECHO_C" >&6
28855 else
28856   cat >conftest.$ac_ext <<_ACEOF
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28864 #define $ac_func innocuous_$ac_func
28865
28866 /* System header to define __stub macros and hopefully few prototypes,
28867     which can conflict with char $ac_func (); below.
28868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869     <limits.h> exists even on freestanding compilers.  */
28870
28871 #ifdef __STDC__
28872 # include <limits.h>
28873 #else
28874 # include <assert.h>
28875 #endif
28876
28877 #undef $ac_func
28878
28879 /* Override any gcc2 internal prototype to avoid an error.  */
28880 #ifdef __cplusplus
28881 extern "C"
28882 {
28883 #endif
28884 /* We use char because int might match the return type of a gcc2
28885    builtin and then its argument prototype would still apply.  */
28886 char $ac_func ();
28887 /* The GNU C library defines this for functions which it implements
28888     to always fail with ENOSYS.  Some functions are actually named
28889     something starting with __ and the normal name is an alias.  */
28890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28891 choke me
28892 #else
28893 char (*f) () = $ac_func;
28894 #endif
28895 #ifdef __cplusplus
28896 }
28897 #endif
28898
28899 int
28900 main ()
28901 {
28902 return f != $ac_func;
28903   ;
28904   return 0;
28905 }
28906 _ACEOF
28907 rm -f conftest.$ac_objext conftest$ac_exeext
28908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28909   (eval $ac_link) 2>conftest.er1
28910   ac_status=$?
28911   grep -v '^ *+' conftest.er1 >conftest.err
28912   rm -f conftest.er1
28913   cat conftest.err >&5
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); } &&
28916          { ac_try='test -z "$ac_c_werror_flag"
28917                          || test ! -s conftest.err'
28918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919   (eval $ac_try) 2>&5
28920   ac_status=$?
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); }; } &&
28923          { ac_try='test -s conftest$ac_exeext'
28924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28925   (eval $ac_try) 2>&5
28926   ac_status=$?
28927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928   (exit $ac_status); }; }; then
28929   eval "$as_ac_var=yes"
28930 else
28931   echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28933
28934 eval "$as_ac_var=no"
28935 fi
28936 rm -f conftest.err conftest.$ac_objext \
28937       conftest$ac_exeext conftest.$ac_ext
28938 fi
28939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28941 if test `eval echo '${'$as_ac_var'}'` = yes; then
28942   cat >>confdefs.h <<_ACEOF
28943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28944 _ACEOF
28945
28946 fi
28947 done
28948
28949 echo "$as_me:$LINENO: checking for working mmap" >&5
28950 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28951 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28952   echo $ECHO_N "(cached) $ECHO_C" >&6
28953 else
28954   if test "$cross_compiling" = yes; then
28955   ac_cv_func_mmap_fixed_mapped=no
28956 else
28957   cat >conftest.$ac_ext <<_ACEOF
28958 /* confdefs.h.  */
28959 _ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h.  */
28963 $ac_includes_default
28964 /* malloc might have been renamed as rpl_malloc. */
28965 #undef malloc
28966
28967 /* Thanks to Mike Haertel and Jim Avera for this test.
28968    Here is a matrix of mmap possibilities:
28969         mmap private not fixed
28970         mmap private fixed at somewhere currently unmapped
28971         mmap private fixed at somewhere already mapped
28972         mmap shared not fixed
28973         mmap shared fixed at somewhere currently unmapped
28974         mmap shared fixed at somewhere already mapped
28975    For private mappings, we should verify that changes cannot be read()
28976    back from the file, nor mmap's back from the file at a different
28977    address.  (There have been systems where private was not correctly
28978    implemented like the infamous i386 svr4.0, and systems where the
28979    VM page cache was not coherent with the file system buffer cache
28980    like early versions of FreeBSD and possibly contemporary NetBSD.)
28981    For shared mappings, we should conversely verify that changes get
28982    propagated back to all the places they're supposed to be.
28983
28984    Grep wants private fixed already mapped.
28985    The main things grep needs to know about mmap are:
28986    * does it exist and is it safe to write into the mmap'd area
28987    * how to use it (BSD variants)  */
28988
28989 #include <fcntl.h>
28990 #include <sys/mman.h>
28991
28992 #if !STDC_HEADERS && !HAVE_STDLIB_H
28993 char *malloc ();
28994 #endif
28995
28996 /* This mess was copied from the GNU getpagesize.h.  */
28997 #if !HAVE_GETPAGESIZE
28998 /* Assume that all systems that can run configure have sys/param.h.  */
28999 # if !HAVE_SYS_PARAM_H
29000 #  define HAVE_SYS_PARAM_H 1
29001 # endif
29002
29003 # ifdef _SC_PAGESIZE
29004 #  define getpagesize() sysconf(_SC_PAGESIZE)
29005 # else /* no _SC_PAGESIZE */
29006 #  if HAVE_SYS_PARAM_H
29007 #   include <sys/param.h>
29008 #   ifdef EXEC_PAGESIZE
29009 #    define getpagesize() EXEC_PAGESIZE
29010 #   else /* no EXEC_PAGESIZE */
29011 #    ifdef NBPG
29012 #     define getpagesize() NBPG * CLSIZE
29013 #     ifndef CLSIZE
29014 #      define CLSIZE 1
29015 #     endif /* no CLSIZE */
29016 #    else /* no NBPG */
29017 #     ifdef NBPC
29018 #      define getpagesize() NBPC
29019 #     else /* no NBPC */
29020 #      ifdef PAGESIZE
29021 #       define getpagesize() PAGESIZE
29022 #      endif /* PAGESIZE */
29023 #     endif /* no NBPC */
29024 #    endif /* no NBPG */
29025 #   endif /* no EXEC_PAGESIZE */
29026 #  else /* no HAVE_SYS_PARAM_H */
29027 #   define getpagesize() 8192   /* punt totally */
29028 #  endif /* no HAVE_SYS_PARAM_H */
29029 # endif /* no _SC_PAGESIZE */
29030
29031 #endif /* no HAVE_GETPAGESIZE */
29032
29033 int
29034 main ()
29035 {
29036   char *data, *data2, *data3;
29037   int i, pagesize;
29038   int fd;
29039
29040   pagesize = getpagesize ();
29041
29042   /* First, make a file with some known garbage in it. */
29043   data = (char *) malloc (pagesize);
29044   if (!data)
29045     exit (1);
29046   for (i = 0; i < pagesize; ++i)
29047     *(data + i) = rand ();
29048   umask (0);
29049   fd = creat ("conftest.mmap", 0600);
29050   if (fd < 0)
29051     exit (1);
29052   if (write (fd, data, pagesize) != pagesize)
29053     exit (1);
29054   close (fd);
29055
29056   /* Next, try to mmap the file at a fixed address which already has
29057      something else allocated at it.  If we can, also make sure that
29058      we see the same garbage.  */
29059   fd = open ("conftest.mmap", O_RDWR);
29060   if (fd < 0)
29061     exit (1);
29062   data2 = (char *) malloc (2 * pagesize);
29063   if (!data2)
29064     exit (1);
29065   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29066   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29067                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29068     exit (1);
29069   for (i = 0; i < pagesize; ++i)
29070     if (*(data + i) != *(data2 + i))
29071       exit (1);
29072
29073   /* Finally, make sure that changes to the mapped area do not
29074      percolate back to the file as seen by read().  (This is a bug on
29075      some variants of i386 svr4.0.)  */
29076   for (i = 0; i < pagesize; ++i)
29077     *(data2 + i) = *(data2 + i) + 1;
29078   data3 = (char *) malloc (pagesize);
29079   if (!data3)
29080     exit (1);
29081   if (read (fd, data3, pagesize) != pagesize)
29082     exit (1);
29083   for (i = 0; i < pagesize; ++i)
29084     if (*(data + i) != *(data3 + i))
29085       exit (1);
29086   close (fd);
29087   exit (0);
29088 }
29089 _ACEOF
29090 rm -f conftest$ac_exeext
29091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092   (eval $ac_link) 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097   (eval $ac_try) 2>&5
29098   ac_status=$?
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); }; }; then
29101   ac_cv_func_mmap_fixed_mapped=yes
29102 else
29103   echo "$as_me: program exited with status $ac_status" >&5
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29106
29107 ( exit $ac_status )
29108 ac_cv_func_mmap_fixed_mapped=no
29109 fi
29110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29111 fi
29112 fi
29113 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29114 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29115 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29116
29117 cat >>confdefs.h <<\_ACEOF
29118 #define HAVE_MMAP 1
29119 _ACEOF
29120
29121 fi
29122 rm -f conftest.mmap
29123
29124 echo "$as_me:$LINENO: checking for mmap of files" >&5
29125 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29126 if test "${ac_cv_func_mmap_file+set}" = set; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129    ac_ext=c
29130 ac_cpp='$CPP $CPPFLAGS'
29131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29134
29135   if test "$cross_compiling" = yes; then
29136   ac_cv_func_mmap_file=no
29137 else
29138   cat >conftest.$ac_ext <<_ACEOF
29139
29140     /* confdefs.h.  */
29141 _ACEOF
29142 cat confdefs.h >>conftest.$ac_ext
29143 cat >>conftest.$ac_ext <<_ACEOF
29144 /* end confdefs.h.  */
29145
29146 #include <sys/types.h>
29147 #include <sys/mman.h>
29148 #include <fcntl.h>
29149
29150 int
29151 main ()
29152 {
29153
29154   int fd;
29155   fd = creat ("foo",0777);
29156   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29157   unlink ("foo");
29158   return (fd != (int) MAP_FAILED);
29159   ;
29160   return 0;
29161 }
29162 _ACEOF
29163 rm -f conftest$ac_exeext
29164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29165   (eval $ac_link) 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170   (eval $ac_try) 2>&5
29171   ac_status=$?
29172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173   (exit $ac_status); }; }; then
29174   ac_cv_func_mmap_file=yes
29175 else
29176   echo "$as_me: program exited with status $ac_status" >&5
29177 echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29179
29180 ( exit $ac_status )
29181 ac_cv_func_mmap_file=no
29182 fi
29183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29184 fi
29185   ac_ext=c
29186 ac_cpp='$CPP $CPPFLAGS'
29187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29190
29191
29192 fi
29193 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29194 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29195 if test "$ac_cv_func_mmap_file" = yes; then
29196
29197 cat >>confdefs.h <<\_ACEOF
29198 #define HAVE_MMAP_FILE
29199 _ACEOF
29200
29201    MMAP_FILE=yes
29202
29203 fi
29204
29205 echo "$as_me:$LINENO: checking for mprotect" >&5
29206 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29207 if test "${ac_cv_func_mprotect+set}" = set; then
29208   echo $ECHO_N "(cached) $ECHO_C" >&6
29209 else
29210   cat >conftest.$ac_ext <<_ACEOF
29211 /* confdefs.h.  */
29212 _ACEOF
29213 cat confdefs.h >>conftest.$ac_ext
29214 cat >>conftest.$ac_ext <<_ACEOF
29215 /* end confdefs.h.  */
29216 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29218 #define mprotect innocuous_mprotect
29219
29220 /* System header to define __stub macros and hopefully few prototypes,
29221     which can conflict with char mprotect (); below.
29222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29223     <limits.h> exists even on freestanding compilers.  */
29224
29225 #ifdef __STDC__
29226 # include <limits.h>
29227 #else
29228 # include <assert.h>
29229 #endif
29230
29231 #undef mprotect
29232
29233 /* Override any gcc2 internal prototype to avoid an error.  */
29234 #ifdef __cplusplus
29235 extern "C"
29236 {
29237 #endif
29238 /* We use char because int might match the return type of a gcc2
29239    builtin and then its argument prototype would still apply.  */
29240 char mprotect ();
29241 /* The GNU C library defines this for functions which it implements
29242     to always fail with ENOSYS.  Some functions are actually named
29243     something starting with __ and the normal name is an alias.  */
29244 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29245 choke me
29246 #else
29247 char (*f) () = mprotect;
29248 #endif
29249 #ifdef __cplusplus
29250 }
29251 #endif
29252
29253 int
29254 main ()
29255 {
29256 return f != mprotect;
29257   ;
29258   return 0;
29259 }
29260 _ACEOF
29261 rm -f conftest.$ac_objext conftest$ac_exeext
29262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29263   (eval $ac_link) 2>conftest.er1
29264   ac_status=$?
29265   grep -v '^ *+' conftest.er1 >conftest.err
29266   rm -f conftest.er1
29267   cat conftest.err >&5
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } &&
29270          { ac_try='test -z "$ac_c_werror_flag"
29271                          || test ! -s conftest.err'
29272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273   (eval $ac_try) 2>&5
29274   ac_status=$?
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); }; } &&
29277          { ac_try='test -s conftest$ac_exeext'
29278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279   (eval $ac_try) 2>&5
29280   ac_status=$?
29281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282   (exit $ac_status); }; }; then
29283   ac_cv_func_mprotect=yes
29284 else
29285   echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29287
29288 ac_cv_func_mprotect=no
29289 fi
29290 rm -f conftest.err conftest.$ac_objext \
29291       conftest$ac_exeext conftest.$ac_ext
29292 fi
29293 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29294 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29295 if test $ac_cv_func_mprotect = yes; then
29296   :
29297 else
29298   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29299 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29300    { (exit 1); exit 1; }; }
29301 fi
29302
29303
29304 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29305 then
29306   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29307 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29308 fi
29309 if test "$ac_cv_func_mmap_file" = "no"
29310 then
29311   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29312 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29313 fi
29314
29315
29316 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29317 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29318 if test "${llvm_cv_llvmgcc+set}" = set; then
29319   echo $ECHO_N "(cached) $ECHO_C" >&6
29320 else
29321   llvm_cv_llvmgcc='llvmgcc_not_found'
29322 if test -d "$LLVMGCCDIR" ; then
29323   if test -x "$LLVMGCCDIR/bin/gcc" ; then
29324     llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29325   fi
29326 fi
29327 fi
29328 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29329 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29330
29331 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29332 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29333 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29334   echo $ECHO_N "(cached) $ECHO_C" >&6
29335 else
29336   llvm_cv_llvmgcc_sanity="no"
29337 if test -x "$llvm_cv_llvmgcc" ; then
29338   cp /dev/null conftest.c
29339   "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29340   if test $? -eq 0 ; then
29341     llvm_cv_llvmgcc_sanity="yes"
29342   fi
29343   rm conftest.c
29344 fi
29345 fi
29346 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29347 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29348
29349 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29350   LLVMGCC="$llvm_cv_llvmgcc"
29351
29352   llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29353   LLVMCC1=$llvmcc1path
29354
29355   llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29356   LLVMCC1PLUS=$llvmcc1pluspath
29357
29358 fi
29359
29360 SHLIBEXT=$libltdl_cv_shlibext
29361
29362
29363 # Translate the various configuration directories and other basic
29364 # information into substitutions that will end up in Makefile.config.in
29365 # that these configured values can be used by the makefiles
29366 eval LLVM_PREFIX="${prefix}";
29367 eval LLVM_BINDIR="${prefix}/bin";
29368 eval LLVM_LIBDIR="${prefix}/lib";
29369 eval LLVM_DATADIR="${prefix}/share/llvm";
29370 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29371 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29372 eval LLVM_INCLUDEDIR="${prefix}/include";
29373 eval LLVM_INFODIR="${prefix}/info";
29374 eval LLVM_MANDIR="${prefix}/man";
29375 LLVM_CONFIGTIME=`date`
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387 # Place the various directores into the config.h file as #defines so that we
29388 # can know about the installation paths within LLVM.
29389
29390 cat >>confdefs.h <<_ACEOF
29391 #define LLVM_PREFIX "$LLVM_PREFIX"
29392 _ACEOF
29393
29394
29395 cat >>confdefs.h <<_ACEOF
29396 #define LLVM_BINDIR "$LLVM_BINDIR"
29397 _ACEOF
29398
29399
29400 cat >>confdefs.h <<_ACEOF
29401 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29402 _ACEOF
29403
29404
29405 cat >>confdefs.h <<_ACEOF
29406 #define LLVM_DATADIR "$LLVM_DATADIR"
29407 _ACEOF
29408
29409
29410 cat >>confdefs.h <<_ACEOF
29411 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29412 _ACEOF
29413
29414
29415 cat >>confdefs.h <<_ACEOF
29416 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29417 _ACEOF
29418
29419
29420 cat >>confdefs.h <<_ACEOF
29421 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29422 _ACEOF
29423
29424
29425 cat >>confdefs.h <<_ACEOF
29426 #define LLVM_INFODIR "$LLVM_INFODIR"
29427 _ACEOF
29428
29429
29430 cat >>confdefs.h <<_ACEOF
29431 #define LLVM_MANDIR "$LLVM_MANDIR"
29432 _ACEOF
29433
29434
29435 cat >>confdefs.h <<_ACEOF
29436 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29437 _ACEOF
29438
29439
29440
29441           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29442
29443
29444           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29445
29446           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29447
29448           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29449
29450           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29451
29452           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29453
29454
29455           ac_config_files="$ac_config_files Makefile.config"
29456
29457
29458                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29459
29460
29461           ac_config_files="$ac_config_files docs/doxygen.cfg"
29462
29463
29464           ac_config_commands="$ac_config_commands Makefile"
29465
29466
29467           ac_config_commands="$ac_config_commands Makefile.common"
29468
29469
29470           ac_config_commands="$ac_config_commands examples/Makefile"
29471
29472
29473           ac_config_commands="$ac_config_commands lib/Makefile"
29474
29475
29476           ac_config_commands="$ac_config_commands runtime/Makefile"
29477
29478
29479           ac_config_commands="$ac_config_commands test/Makefile"
29480
29481
29482           ac_config_commands="$ac_config_commands test/Makefile.tests"
29483
29484
29485           ac_config_commands="$ac_config_commands tools/Makefile"
29486
29487
29488           ac_config_commands="$ac_config_commands utils/Makefile"
29489
29490
29491           ac_config_commands="$ac_config_commands projects/Makefile"
29492
29493
29494
29495 cat >confcache <<\_ACEOF
29496 # This file is a shell script that caches the results of configure
29497 # tests run on this system so they can be shared between configure
29498 # scripts and configure runs, see configure's option --config-cache.
29499 # It is not useful on other systems.  If it contains results you don't
29500 # want to keep, you may remove or edit it.
29501 #
29502 # config.status only pays attention to the cache file if you give it
29503 # the --recheck option to rerun configure.
29504 #
29505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29507 # following values.
29508
29509 _ACEOF
29510
29511 # The following way of writing the cache mishandles newlines in values,
29512 # but we know of no workaround that is simple, portable, and efficient.
29513 # So, don't put newlines in cache variables' values.
29514 # Ultrix sh set writes to stderr and can't be redirected directly,
29515 # and sets the high bit in the cache file unless we assign to the vars.
29516 {
29517   (set) 2>&1 |
29518     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29519     *ac_space=\ *)
29520       # `set' does not quote correctly, so add quotes (double-quote
29521       # substitution turns \\\\ into \\, and sed turns \\ into \).
29522       sed -n \
29523         "s/'/'\\\\''/g;
29524           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29525       ;;
29526     *)
29527       # `set' quotes correctly as required by POSIX, so do not add quotes.
29528       sed -n \
29529         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29530       ;;
29531     esac;
29532 } |
29533   sed '
29534      t clear
29535      : clear
29536      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29537      t end
29538      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29539      : end' >>confcache
29540 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29541   if test -w $cache_file; then
29542     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29543     cat confcache >$cache_file
29544   else
29545     echo "not updating unwritable cache $cache_file"
29546   fi
29547 fi
29548 rm -f confcache
29549
29550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29551 # Let make expand exec_prefix.
29552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29553
29554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29556 # trailing colons and then remove the whole line if VPATH becomes empty
29557 # (actually we leave an empty line to preserve line numbers).
29558 if test "x$srcdir" = x.; then
29559   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29560 s/:*\$(srcdir):*/:/;
29561 s/:*\${srcdir}:*/:/;
29562 s/:*@srcdir@:*/:/;
29563 s/^\([^=]*=[     ]*\):*/\1/;
29564 s/:*$//;
29565 s/^[^=]*=[       ]*$//;
29566 }'
29567 fi
29568
29569 DEFS=-DHAVE_CONFIG_H
29570
29571 ac_libobjs=
29572 ac_ltlibobjs=
29573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29574   # 1. Remove the extension, and $U if already installed.
29575   ac_i=`echo "$ac_i" |
29576          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29577   # 2. Add them.
29578   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29579   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29580 done
29581 LIBOBJS=$ac_libobjs
29582
29583 LTLIBOBJS=$ac_ltlibobjs
29584
29585
29586 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29587   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29588 Usually this means the macro was only invoked conditionally." >&5
29589 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29590 Usually this means the macro was only invoked conditionally." >&2;}
29591    { (exit 1); exit 1; }; }
29592 fi
29593 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29594   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29595 Usually this means the macro was only invoked conditionally." >&5
29596 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29597 Usually this means the macro was only invoked conditionally." >&2;}
29598    { (exit 1); exit 1; }; }
29599 fi
29600
29601 : ${CONFIG_STATUS=./config.status}
29602 ac_clean_files_save=$ac_clean_files
29603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29604 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29605 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29606 cat >$CONFIG_STATUS <<_ACEOF
29607 #! $SHELL
29608 # Generated by $as_me.
29609 # Run this file to recreate the current configuration.
29610 # Compiler output produced by configure, useful for debugging
29611 # configure, is in config.log if it exists.
29612
29613 debug=false
29614 ac_cs_recheck=false
29615 ac_cs_silent=false
29616 SHELL=\${CONFIG_SHELL-$SHELL}
29617 _ACEOF
29618
29619 cat >>$CONFIG_STATUS <<\_ACEOF
29620 ## --------------------- ##
29621 ## M4sh Initialization.  ##
29622 ## --------------------- ##
29623
29624 # Be Bourne compatible
29625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29626   emulate sh
29627   NULLCMD=:
29628   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29629   # is contrary to our usage.  Disable this feature.
29630   alias -g '${1+"$@"}'='"$@"'
29631 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29632   set -o posix
29633 fi
29634 DUALCASE=1; export DUALCASE # for MKS sh
29635
29636 # Support unset when possible.
29637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29638   as_unset=unset
29639 else
29640   as_unset=false
29641 fi
29642
29643
29644 # Work around bugs in pre-3.0 UWIN ksh.
29645 $as_unset ENV MAIL MAILPATH
29646 PS1='$ '
29647 PS2='> '
29648 PS4='+ '
29649
29650 # NLS nuisances.
29651 for as_var in \
29652   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29653   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29654   LC_TELEPHONE LC_TIME
29655 do
29656   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29657     eval $as_var=C; export $as_var
29658   else
29659     $as_unset $as_var
29660   fi
29661 done
29662
29663 # Required to use basename.
29664 if expr a : '\(a\)' >/dev/null 2>&1; then
29665   as_expr=expr
29666 else
29667   as_expr=false
29668 fi
29669
29670 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29671   as_basename=basename
29672 else
29673   as_basename=false
29674 fi
29675
29676
29677 # Name of the executable.
29678 as_me=`$as_basename "$0" ||
29679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29680          X"$0" : 'X\(//\)$' \| \
29681          X"$0" : 'X\(/\)$' \| \
29682          .     : '\(.\)' 2>/dev/null ||
29683 echo X/"$0" |
29684     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29685           /^X\/\(\/\/\)$/{ s//\1/; q; }
29686           /^X\/\(\/\).*/{ s//\1/; q; }
29687           s/.*/./; q'`
29688
29689
29690 # PATH needs CR, and LINENO needs CR and PATH.
29691 # Avoid depending upon Character Ranges.
29692 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29693 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29694 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29695 as_cr_digits='0123456789'
29696 as_cr_alnum=$as_cr_Letters$as_cr_digits
29697
29698 # The user is always right.
29699 if test "${PATH_SEPARATOR+set}" != set; then
29700   echo "#! /bin/sh" >conf$$.sh
29701   echo  "exit 0"   >>conf$$.sh
29702   chmod +x conf$$.sh
29703   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29704     PATH_SEPARATOR=';'
29705   else
29706     PATH_SEPARATOR=:
29707   fi
29708   rm -f conf$$.sh
29709 fi
29710
29711
29712   as_lineno_1=$LINENO
29713   as_lineno_2=$LINENO
29714   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29715   test "x$as_lineno_1" != "x$as_lineno_2" &&
29716   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29717   # Find who we are.  Look in the path if we contain no path at all
29718   # relative or not.
29719   case $0 in
29720     *[\\/]* ) as_myself=$0 ;;
29721     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29722 for as_dir in $PATH
29723 do
29724   IFS=$as_save_IFS
29725   test -z "$as_dir" && as_dir=.
29726   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29727 done
29728
29729        ;;
29730   esac
29731   # We did not find ourselves, most probably we were run as `sh COMMAND'
29732   # in which case we are not to be found in the path.
29733   if test "x$as_myself" = x; then
29734     as_myself=$0
29735   fi
29736   if test ! -f "$as_myself"; then
29737     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29738 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29739    { (exit 1); exit 1; }; }
29740   fi
29741   case $CONFIG_SHELL in
29742   '')
29743     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29744 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29745 do
29746   IFS=$as_save_IFS
29747   test -z "$as_dir" && as_dir=.
29748   for as_base in sh bash ksh sh5; do
29749          case $as_dir in
29750          /*)
29751            if ("$as_dir/$as_base" -c '
29752   as_lineno_1=$LINENO
29753   as_lineno_2=$LINENO
29754   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29755   test "x$as_lineno_1" != "x$as_lineno_2" &&
29756   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29757              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29758              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29759              CONFIG_SHELL=$as_dir/$as_base
29760              export CONFIG_SHELL
29761              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29762            fi;;
29763          esac
29764        done
29765 done
29766 ;;
29767   esac
29768
29769   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29770   # uniformly replaced by the line number.  The first 'sed' inserts a
29771   # line-number line before each line; the second 'sed' does the real
29772   # work.  The second script uses 'N' to pair each line-number line
29773   # with the numbered line, and appends trailing '-' during
29774   # substitution so that $LINENO is not a special case at line end.
29775   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29776   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29777   sed '=' <$as_myself |
29778     sed '
29779       N
29780       s,$,-,
29781       : loop
29782       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29783       t loop
29784       s,-$,,
29785       s,^['$as_cr_digits']*\n,,
29786     ' >$as_me.lineno &&
29787   chmod +x $as_me.lineno ||
29788     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29789 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29790    { (exit 1); exit 1; }; }
29791
29792   # Don't try to exec as it changes $[0], causing all sort of problems
29793   # (the dirname of $[0] is not the place where we might find the
29794   # original and so on.  Autoconf is especially sensible to this).
29795   . ./$as_me.lineno
29796   # Exit status is that of the last command.
29797   exit
29798 }
29799
29800
29801 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29802   *c*,-n*) ECHO_N= ECHO_C='
29803 ' ECHO_T='      ' ;;
29804   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29805   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29806 esac
29807
29808 if expr a : '\(a\)' >/dev/null 2>&1; then
29809   as_expr=expr
29810 else
29811   as_expr=false
29812 fi
29813
29814 rm -f conf$$ conf$$.exe conf$$.file
29815 echo >conf$$.file
29816 if ln -s conf$$.file conf$$ 2>/dev/null; then
29817   # We could just check for DJGPP; but this test a) works b) is more generic
29818   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29819   if test -f conf$$.exe; then
29820     # Don't use ln at all; we don't have any links
29821     as_ln_s='cp -p'
29822   else
29823     as_ln_s='ln -s'
29824   fi
29825 elif ln conf$$.file conf$$ 2>/dev/null; then
29826   as_ln_s=ln
29827 else
29828   as_ln_s='cp -p'
29829 fi
29830 rm -f conf$$ conf$$.exe conf$$.file
29831
29832 if mkdir -p . 2>/dev/null; then
29833   as_mkdir_p=:
29834 else
29835   test -d ./-p && rmdir ./-p
29836   as_mkdir_p=false
29837 fi
29838
29839 as_executable_p="test -f"
29840
29841 # Sed expression to map a string onto a valid CPP name.
29842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29843
29844 # Sed expression to map a string onto a valid variable name.
29845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29846
29847
29848 # IFS
29849 # We need space, tab and new line, in precisely that order.
29850 as_nl='
29851 '
29852 IFS="   $as_nl"
29853
29854 # CDPATH.
29855 $as_unset CDPATH
29856
29857 exec 6>&1
29858
29859 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29860 # report actual input values of CONFIG_FILES etc. instead of their
29861 # values after options handling.  Logging --version etc. is OK.
29862 exec 5>>config.log
29863 {
29864   echo
29865   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29866 ## Running $as_me. ##
29867 _ASBOX
29868 } >&5
29869 cat >&5 <<_CSEOF
29870
29871 This file was extended by llvm $as_me 1.4, which was
29872 generated by GNU Autoconf 2.59.  Invocation command line was
29873
29874   CONFIG_FILES    = $CONFIG_FILES
29875   CONFIG_HEADERS  = $CONFIG_HEADERS
29876   CONFIG_LINKS    = $CONFIG_LINKS
29877   CONFIG_COMMANDS = $CONFIG_COMMANDS
29878   $ $0 $@
29879
29880 _CSEOF
29881 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29882 echo >&5
29883 _ACEOF
29884
29885 # Files that config.status was made for.
29886 if test -n "$ac_config_files"; then
29887   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29888 fi
29889
29890 if test -n "$ac_config_headers"; then
29891   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29892 fi
29893
29894 if test -n "$ac_config_links"; then
29895   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29896 fi
29897
29898 if test -n "$ac_config_commands"; then
29899   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29900 fi
29901
29902 cat >>$CONFIG_STATUS <<\_ACEOF
29903
29904 ac_cs_usage="\
29905 \`$as_me' instantiates files from templates according to the
29906 current configuration.
29907
29908 Usage: $0 [OPTIONS] [FILE]...
29909
29910   -h, --help       print this help, then exit
29911   -V, --version    print version number, then exit
29912   -q, --quiet      do not print progress messages
29913   -d, --debug      don't remove temporary files
29914       --recheck    update $as_me by reconfiguring in the same conditions
29915   --file=FILE[:TEMPLATE]
29916                    instantiate the configuration file FILE
29917   --header=FILE[:TEMPLATE]
29918                    instantiate the configuration header FILE
29919
29920 Configuration files:
29921 $config_files
29922
29923 Configuration headers:
29924 $config_headers
29925
29926 Configuration links:
29927 $config_links
29928
29929 Configuration commands:
29930 $config_commands
29931
29932 Report bugs to <bug-autoconf@gnu.org>."
29933 _ACEOF
29934
29935 cat >>$CONFIG_STATUS <<_ACEOF
29936 ac_cs_version="\\
29937 llvm config.status 1.4
29938 configured by $0, generated by GNU Autoconf 2.59,
29939   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29940
29941 Copyright (C) 2003 Free Software Foundation, Inc.
29942 This config.status script is free software; the Free Software Foundation
29943 gives unlimited permission to copy, distribute and modify it."
29944 srcdir=$srcdir
29945 INSTALL="$INSTALL"
29946 _ACEOF
29947
29948 cat >>$CONFIG_STATUS <<\_ACEOF
29949 # If no file are specified by the user, then we need to provide default
29950 # value.  By we need to know if files were specified by the user.
29951 ac_need_defaults=:
29952 while test $# != 0
29953 do
29954   case $1 in
29955   --*=*)
29956     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29957     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29958     ac_shift=:
29959     ;;
29960   -*)
29961     ac_option=$1
29962     ac_optarg=$2
29963     ac_shift=shift
29964     ;;
29965   *) # This is not an option, so the user has probably given explicit
29966      # arguments.
29967      ac_option=$1
29968      ac_need_defaults=false;;
29969   esac
29970
29971   case $ac_option in
29972   # Handling of the options.
29973 _ACEOF
29974 cat >>$CONFIG_STATUS <<\_ACEOF
29975   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29976     ac_cs_recheck=: ;;
29977   --version | --vers* | -V )
29978     echo "$ac_cs_version"; exit 0 ;;
29979   --he | --h)
29980     # Conflict between --help and --header
29981     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29982 Try \`$0 --help' for more information." >&5
29983 echo "$as_me: error: ambiguous option: $1
29984 Try \`$0 --help' for more information." >&2;}
29985    { (exit 1); exit 1; }; };;
29986   --help | --hel | -h )
29987     echo "$ac_cs_usage"; exit 0 ;;
29988   --debug | --d* | -d )
29989     debug=: ;;
29990   --file | --fil | --fi | --f )
29991     $ac_shift
29992     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29993     ac_need_defaults=false;;
29994   --header | --heade | --head | --hea )
29995     $ac_shift
29996     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29997     ac_need_defaults=false;;
29998   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29999   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30000     ac_cs_silent=: ;;
30001
30002   # This is an error.
30003   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30004 Try \`$0 --help' for more information." >&5
30005 echo "$as_me: error: unrecognized option: $1
30006 Try \`$0 --help' for more information." >&2;}
30007    { (exit 1); exit 1; }; } ;;
30008
30009   *) ac_config_targets="$ac_config_targets $1" ;;
30010
30011   esac
30012   shift
30013 done
30014
30015 ac_configure_extra_args=
30016
30017 if $ac_cs_silent; then
30018   exec 6>/dev/null
30019   ac_configure_extra_args="$ac_configure_extra_args --silent"
30020 fi
30021
30022 _ACEOF
30023 cat >>$CONFIG_STATUS <<_ACEOF
30024 if \$ac_cs_recheck; then
30025   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30026   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30027 fi
30028
30029 _ACEOF
30030
30031 cat >>$CONFIG_STATUS <<_ACEOF
30032 #
30033 # INIT-COMMANDS section.
30034 #
30035
30036 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30037 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30038 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30039 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30040 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30041 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30042 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30043 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30044 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30045 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30046
30047 _ACEOF
30048
30049
30050
30051 cat >>$CONFIG_STATUS <<\_ACEOF
30052 for ac_config_target in $ac_config_targets
30053 do
30054   case "$ac_config_target" in
30055   # Handling of arguments.
30056   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30057   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30058   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30059   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30060   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30061   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30062   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30063   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30064   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30065   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30066   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30067   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30068   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30069   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30070   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30071   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30072   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30073   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30074   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30075   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30076   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30077   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30078   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30079   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30080 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30081    { (exit 1); exit 1; }; };;
30082   esac
30083 done
30084
30085 # If the user did not use the arguments to specify the items to instantiate,
30086 # then the envvar interface is used.  Set only those that are not.
30087 # We use the long form for the default assignment because of an extremely
30088 # bizarre bug on SunOS 4.1.3.
30089 if $ac_need_defaults; then
30090   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30091   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30092   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30093   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30094 fi
30095
30096 # Have a temporary directory for convenience.  Make it in the build tree
30097 # simply because there is no reason to put it here, and in addition,
30098 # creating and moving files from /tmp can sometimes cause problems.
30099 # Create a temporary directory, and hook for its removal unless debugging.
30100 $debug ||
30101 {
30102   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30103   trap '{ (exit 1); exit 1; }' 1 2 13 15
30104 }
30105
30106 # Create a (secure) tmp directory for tmp files.
30107
30108 {
30109   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30110   test -n "$tmp" && test -d "$tmp"
30111 }  ||
30112 {
30113   tmp=./confstat$$-$RANDOM
30114   (umask 077 && mkdir $tmp)
30115 } ||
30116 {
30117    echo "$me: cannot create a temporary directory in ." >&2
30118    { (exit 1); exit 1; }
30119 }
30120
30121 _ACEOF
30122
30123 cat >>$CONFIG_STATUS <<_ACEOF
30124
30125 #
30126 # CONFIG_FILES section.
30127 #
30128
30129 # No need to generate the scripts if there are no CONFIG_FILES.
30130 # This happens for instance when ./config.status config.h
30131 if test -n "\$CONFIG_FILES"; then
30132   # Protect against being on the right side of a sed subst in config.status.
30133   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30134    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30135 s,@SHELL@,$SHELL,;t t
30136 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30142 s,@exec_prefix@,$exec_prefix,;t t
30143 s,@prefix@,$prefix,;t t
30144 s,@program_transform_name@,$program_transform_name,;t t
30145 s,@bindir@,$bindir,;t t
30146 s,@sbindir@,$sbindir,;t t
30147 s,@libexecdir@,$libexecdir,;t t
30148 s,@datadir@,$datadir,;t t
30149 s,@sysconfdir@,$sysconfdir,;t t
30150 s,@sharedstatedir@,$sharedstatedir,;t t
30151 s,@localstatedir@,$localstatedir,;t t
30152 s,@libdir@,$libdir,;t t
30153 s,@includedir@,$includedir,;t t
30154 s,@oldincludedir@,$oldincludedir,;t t
30155 s,@infodir@,$infodir,;t t
30156 s,@mandir@,$mandir,;t t
30157 s,@build_alias@,$build_alias,;t t
30158 s,@host_alias@,$host_alias,;t t
30159 s,@target_alias@,$target_alias,;t t
30160 s,@DEFS@,$DEFS,;t t
30161 s,@ECHO_C@,$ECHO_C,;t t
30162 s,@ECHO_N@,$ECHO_N,;t t
30163 s,@ECHO_T@,$ECHO_T,;t t
30164 s,@LIBS@,$LIBS,;t t
30165 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30166 s,@subdirs@,$subdirs,;t t
30167 s,@build@,$build,;t t
30168 s,@build_cpu@,$build_cpu,;t t
30169 s,@build_vendor@,$build_vendor,;t t
30170 s,@build_os@,$build_os,;t t
30171 s,@host@,$host,;t t
30172 s,@host_cpu@,$host_cpu,;t t
30173 s,@host_vendor@,$host_vendor,;t t
30174 s,@host_os@,$host_os,;t t
30175 s,@target@,$target,;t t
30176 s,@target_cpu@,$target_cpu,;t t
30177 s,@target_vendor@,$target_vendor,;t t
30178 s,@target_os@,$target_os,;t t
30179 s,@OS@,$OS,;t t
30180 s,@ARCH@,$ARCH,;t t
30181 s,@ENDIAN@,$ENDIAN,;t t
30182 s,@CC@,$CC,;t t
30183 s,@CFLAGS@,$CFLAGS,;t t
30184 s,@LDFLAGS@,$LDFLAGS,;t t
30185 s,@CPPFLAGS@,$CPPFLAGS,;t t
30186 s,@ac_ct_CC@,$ac_ct_CC,;t t
30187 s,@EXEEXT@,$EXEEXT,;t t
30188 s,@OBJEXT@,$OBJEXT,;t t
30189 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30190 s,@JIT@,$JIT,;t t
30191 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30192 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30193 s,@CPP@,$CPP,;t t
30194 s,@CXX@,$CXX,;t t
30195 s,@CXXFLAGS@,$CXXFLAGS,;t t
30196 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30197 s,@LEX@,$LEX,;t t
30198 s,@LEXLIB@,$LEXLIB,;t t
30199 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30200 s,@FLEX@,$FLEX,;t t
30201 s,@YACC@,$YACC,;t t
30202 s,@BISON@,$BISON,;t t
30203 s,@ifGNUmake@,$ifGNUmake,;t t
30204 s,@LN_S@,$LN_S,;t t
30205 s,@DATE@,$DATE,;t t
30206 s,@FIND@,$FIND,;t t
30207 s,@GREP@,$GREP,;t t
30208 s,@MKDIR@,$MKDIR,;t t
30209 s,@MV@,$MV,;t t
30210 s,@PAX@,$PAX,;t t
30211 s,@RANLIB@,$RANLIB,;t t
30212 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30213 s,@RM@,$RM,;t t
30214 s,@SED@,$SED,;t t
30215 s,@TAR@,$TAR,;t t
30216 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30217 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30218 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30219 s,@BZIP2@,$BZIP2,;t t
30220 s,@DOT@,$DOT,;t t
30221 s,@DOXYGEN@,$DOXYGEN,;t t
30222 s,@ETAGS@,$ETAGS,;t t
30223 s,@GROFF@,$GROFF,;t t
30224 s,@GZIP@,$GZIP,;t t
30225 s,@POD2HTML@,$POD2HTML,;t t
30226 s,@POD2MAN@,$POD2MAN,;t t
30227 s,@RUNTEST@,$RUNTEST,;t t
30228 s,@TCLSH@,$TCLSH,;t t
30229 s,@ZIP@,$ZIP,;t t
30230 s,@EGREP@,$EGREP,;t t
30231 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30232 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30233 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30234 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30235 s,@LIBADD_DL@,$LIBADD_DL,;t t
30236 s,@ECHO@,$ECHO,;t t
30237 s,@AR@,$AR,;t t
30238 s,@ac_ct_AR@,$ac_ct_AR,;t t
30239 s,@STRIP@,$STRIP,;t t
30240 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30241 s,@CXXCPP@,$CXXCPP,;t t
30242 s,@F77@,$F77,;t t
30243 s,@FFLAGS@,$FFLAGS,;t t
30244 s,@ac_ct_F77@,$ac_ct_F77,;t t
30245 s,@LIBTOOL@,$LIBTOOL,;t t
30246 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30247 s,@ALLOCA@,$ALLOCA,;t t
30248 s,@MMAP_FILE@,$MMAP_FILE,;t t
30249 s,@LLVMGCC@,$LLVMGCC,;t t
30250 s,@LLVMCC1@,$LLVMCC1,;t t
30251 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30252 s,@SHLIBEXT@,$SHLIBEXT,;t t
30253 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30254 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30255 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30256 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30257 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30258 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30259 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30260 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30261 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30262 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30263 s,@LIBOBJS@,$LIBOBJS,;t t
30264 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30265 CEOF
30266
30267 _ACEOF
30268
30269   cat >>$CONFIG_STATUS <<\_ACEOF
30270   # Split the substitutions into bite-sized pieces for seds with
30271   # small command number limits, like on Digital OSF/1 and HP-UX.
30272   ac_max_sed_lines=48
30273   ac_sed_frag=1 # Number of current file.
30274   ac_beg=1 # First line for current file.
30275   ac_end=$ac_max_sed_lines # Line after last line for current file.
30276   ac_more_lines=:
30277   ac_sed_cmds=
30278   while $ac_more_lines; do
30279     if test $ac_beg -gt 1; then
30280       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30281     else
30282       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30283     fi
30284     if test ! -s $tmp/subs.frag; then
30285       ac_more_lines=false
30286     else
30287       # The purpose of the label and of the branching condition is to
30288       # speed up the sed processing (if there are no `@' at all, there
30289       # is no need to browse any of the substitutions).
30290       # These are the two extra sed commands mentioned above.
30291       (echo ':t
30292   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30293       if test -z "$ac_sed_cmds"; then
30294         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30295       else
30296         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30297       fi
30298       ac_sed_frag=`expr $ac_sed_frag + 1`
30299       ac_beg=$ac_end
30300       ac_end=`expr $ac_end + $ac_max_sed_lines`
30301     fi
30302   done
30303   if test -z "$ac_sed_cmds"; then
30304     ac_sed_cmds=cat
30305   fi
30306 fi # test -n "$CONFIG_FILES"
30307
30308 _ACEOF
30309 cat >>$CONFIG_STATUS <<\_ACEOF
30310 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30311   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30312   case $ac_file in
30313   - | *:- | *:-:* ) # input from stdin
30314         cat >$tmp/stdin
30315         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30316         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30317   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30318         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30319   * )   ac_file_in=$ac_file.in ;;
30320   esac
30321
30322   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30323   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30325          X"$ac_file" : 'X\(//\)[^/]' \| \
30326          X"$ac_file" : 'X\(//\)$' \| \
30327          X"$ac_file" : 'X\(/\)' \| \
30328          .     : '\(.\)' 2>/dev/null ||
30329 echo X"$ac_file" |
30330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30332           /^X\(\/\/\)$/{ s//\1/; q; }
30333           /^X\(\/\).*/{ s//\1/; q; }
30334           s/.*/./; q'`
30335   { if $as_mkdir_p; then
30336     mkdir -p "$ac_dir"
30337   else
30338     as_dir="$ac_dir"
30339     as_dirs=
30340     while test ! -d "$as_dir"; do
30341       as_dirs="$as_dir $as_dirs"
30342       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30344          X"$as_dir" : 'X\(//\)[^/]' \| \
30345          X"$as_dir" : 'X\(//\)$' \| \
30346          X"$as_dir" : 'X\(/\)' \| \
30347          .     : '\(.\)' 2>/dev/null ||
30348 echo X"$as_dir" |
30349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30350           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30351           /^X\(\/\/\)$/{ s//\1/; q; }
30352           /^X\(\/\).*/{ s//\1/; q; }
30353           s/.*/./; q'`
30354     done
30355     test ! -n "$as_dirs" || mkdir $as_dirs
30356   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30357 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30358    { (exit 1); exit 1; }; }; }
30359
30360   ac_builddir=.
30361
30362 if test "$ac_dir" != .; then
30363   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30364   # A "../" for each directory in $ac_dir_suffix.
30365   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30366 else
30367   ac_dir_suffix= ac_top_builddir=
30368 fi
30369
30370 case $srcdir in
30371   .)  # No --srcdir option.  We are building in place.
30372     ac_srcdir=.
30373     if test -z "$ac_top_builddir"; then
30374        ac_top_srcdir=.
30375     else
30376        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30377     fi ;;
30378   [\\/]* | ?:[\\/]* )  # Absolute path.
30379     ac_srcdir=$srcdir$ac_dir_suffix;
30380     ac_top_srcdir=$srcdir ;;
30381   *) # Relative path.
30382     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30383     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30384 esac
30385
30386 # Do not use `cd foo && pwd` to compute absolute paths, because
30387 # the directories may not exist.
30388 case `pwd` in
30389 .) ac_abs_builddir="$ac_dir";;
30390 *)
30391   case "$ac_dir" in
30392   .) ac_abs_builddir=`pwd`;;
30393   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30394   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30395   esac;;
30396 esac
30397 case $ac_abs_builddir in
30398 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30399 *)
30400   case ${ac_top_builddir}. in
30401   .) ac_abs_top_builddir=$ac_abs_builddir;;
30402   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30403   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30404   esac;;
30405 esac
30406 case $ac_abs_builddir in
30407 .) ac_abs_srcdir=$ac_srcdir;;
30408 *)
30409   case $ac_srcdir in
30410   .) ac_abs_srcdir=$ac_abs_builddir;;
30411   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30412   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30413   esac;;
30414 esac
30415 case $ac_abs_builddir in
30416 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30417 *)
30418   case $ac_top_srcdir in
30419   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30420   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30421   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30422   esac;;
30423 esac
30424
30425
30426   case $INSTALL in
30427   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30428   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30429   esac
30430
30431   if test x"$ac_file" != x-; then
30432     { echo "$as_me:$LINENO: creating $ac_file" >&5
30433 echo "$as_me: creating $ac_file" >&6;}
30434     rm -f "$ac_file"
30435   fi
30436   # Let's still pretend it is `configure' which instantiates (i.e., don't
30437   # use $as_me), people would be surprised to read:
30438   #    /* config.h.  Generated by config.status.  */
30439   if test x"$ac_file" = x-; then
30440     configure_input=
30441   else
30442     configure_input="$ac_file.  "
30443   fi
30444   configure_input=$configure_input"Generated from `echo $ac_file_in |
30445                                      sed 's,.*/,,'` by configure."
30446
30447   # First look for the input files in the build tree, otherwise in the
30448   # src tree.
30449   ac_file_inputs=`IFS=:
30450     for f in $ac_file_in; do
30451       case $f in
30452       -) echo $tmp/stdin ;;
30453       [\\/$]*)
30454          # Absolute (can't be DOS-style, as IFS=:)
30455          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30456 echo "$as_me: error: cannot find input file: $f" >&2;}
30457    { (exit 1); exit 1; }; }
30458          echo "$f";;
30459       *) # Relative
30460          if test -f "$f"; then
30461            # Build tree
30462            echo "$f"
30463          elif test -f "$srcdir/$f"; then
30464            # Source tree
30465            echo "$srcdir/$f"
30466          else
30467            # /dev/null tree
30468            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30469 echo "$as_me: error: cannot find input file: $f" >&2;}
30470    { (exit 1); exit 1; }; }
30471          fi;;
30472       esac
30473     done` || { (exit 1); exit 1; }
30474 _ACEOF
30475 cat >>$CONFIG_STATUS <<_ACEOF
30476   sed "$ac_vpsub
30477 $extrasub
30478 _ACEOF
30479 cat >>$CONFIG_STATUS <<\_ACEOF
30480 :t
30481 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30482 s,@configure_input@,$configure_input,;t t
30483 s,@srcdir@,$ac_srcdir,;t t
30484 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30485 s,@top_srcdir@,$ac_top_srcdir,;t t
30486 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30487 s,@builddir@,$ac_builddir,;t t
30488 s,@abs_builddir@,$ac_abs_builddir,;t t
30489 s,@top_builddir@,$ac_top_builddir,;t t
30490 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30491 s,@INSTALL@,$ac_INSTALL,;t t
30492 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30493   rm -f $tmp/stdin
30494   if test x"$ac_file" != x-; then
30495     mv $tmp/out $ac_file
30496   else
30497     cat $tmp/out
30498     rm -f $tmp/out
30499   fi
30500
30501 done
30502 _ACEOF
30503 cat >>$CONFIG_STATUS <<\_ACEOF
30504
30505 #
30506 # CONFIG_HEADER section.
30507 #
30508
30509 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30510 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30511 #
30512 # ac_d sets the value in "#define NAME VALUE" lines.
30513 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30514 ac_dB='[         ].*$,\1#\2'
30515 ac_dC=' '
30516 ac_dD=',;t'
30517 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30518 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30519 ac_uB='$,\1#\2define\3'
30520 ac_uC=' '
30521 ac_uD=',;t'
30522
30523 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30524   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30525   case $ac_file in
30526   - | *:- | *:-:* ) # input from stdin
30527         cat >$tmp/stdin
30528         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30529         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30530   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30531         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30532   * )   ac_file_in=$ac_file.in ;;
30533   esac
30534
30535   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30536 echo "$as_me: creating $ac_file" >&6;}
30537
30538   # First look for the input files in the build tree, otherwise in the
30539   # src tree.
30540   ac_file_inputs=`IFS=:
30541     for f in $ac_file_in; do
30542       case $f in
30543       -) echo $tmp/stdin ;;
30544       [\\/$]*)
30545          # Absolute (can't be DOS-style, as IFS=:)
30546          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30547 echo "$as_me: error: cannot find input file: $f" >&2;}
30548    { (exit 1); exit 1; }; }
30549          # Do quote $f, to prevent DOS paths from being IFS'd.
30550          echo "$f";;
30551       *) # Relative
30552          if test -f "$f"; then
30553            # Build tree
30554            echo "$f"
30555          elif test -f "$srcdir/$f"; then
30556            # Source tree
30557            echo "$srcdir/$f"
30558          else
30559            # /dev/null tree
30560            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30561 echo "$as_me: error: cannot find input file: $f" >&2;}
30562    { (exit 1); exit 1; }; }
30563          fi;;
30564       esac
30565     done` || { (exit 1); exit 1; }
30566   # Remove the trailing spaces.
30567   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30568
30569 _ACEOF
30570
30571 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30572 # `conftest.undefs', that substitutes the proper values into
30573 # config.h.in to produce config.h.  The first handles `#define'
30574 # templates, and the second `#undef' templates.
30575 # And first: Protect against being on the right side of a sed subst in
30576 # config.status.  Protect against being in an unquoted here document
30577 # in config.status.
30578 rm -f conftest.defines conftest.undefs
30579 # Using a here document instead of a string reduces the quoting nightmare.
30580 # Putting comments in sed scripts is not portable.
30581 #
30582 # `end' is used to avoid that the second main sed command (meant for
30583 # 0-ary CPP macros) applies to n-ary macro definitions.
30584 # See the Autoconf documentation for `clear'.
30585 cat >confdef2sed.sed <<\_ACEOF
30586 s/[\\&,]/\\&/g
30587 s,[\\$`],\\&,g
30588 t clear
30589 : clear
30590 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30591 t end
30592 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30593 : end
30594 _ACEOF
30595 # If some macros were called several times there might be several times
30596 # the same #defines, which is useless.  Nevertheless, we may not want to
30597 # sort them, since we want the *last* AC-DEFINE to be honored.
30598 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30599 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30600 rm -f confdef2sed.sed
30601
30602 # This sed command replaces #undef with comments.  This is necessary, for
30603 # example, in the case of _POSIX_SOURCE, which is predefined and required
30604 # on some systems where configure will not decide to define it.
30605 cat >>conftest.undefs <<\_ACEOF
30606 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30607 _ACEOF
30608
30609 # Break up conftest.defines because some shells have a limit on the size
30610 # of here documents, and old seds have small limits too (100 cmds).
30611 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30612 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30613 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30614 echo '  :' >>$CONFIG_STATUS
30615 rm -f conftest.tail
30616 while grep . conftest.defines >/dev/null
30617 do
30618   # Write a limited-size here document to $tmp/defines.sed.
30619   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30620   # Speed up: don't consider the non `#define' lines.
30621   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30622   # Work around the forget-to-reset-the-flag bug.
30623   echo 't clr' >>$CONFIG_STATUS
30624   echo ': clr' >>$CONFIG_STATUS
30625   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30626   echo 'CEOF
30627   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30628   rm -f $tmp/in
30629   mv $tmp/out $tmp/in
30630 ' >>$CONFIG_STATUS
30631   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30632   rm -f conftest.defines
30633   mv conftest.tail conftest.defines
30634 done
30635 rm -f conftest.defines
30636 echo '  fi # grep' >>$CONFIG_STATUS
30637 echo >>$CONFIG_STATUS
30638
30639 # Break up conftest.undefs because some shells have a limit on the size
30640 # of here documents, and old seds have small limits too (100 cmds).
30641 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30642 rm -f conftest.tail
30643 while grep . conftest.undefs >/dev/null
30644 do
30645   # Write a limited-size here document to $tmp/undefs.sed.
30646   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30647   # Speed up: don't consider the non `#undef'
30648   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30649   # Work around the forget-to-reset-the-flag bug.
30650   echo 't clr' >>$CONFIG_STATUS
30651   echo ': clr' >>$CONFIG_STATUS
30652   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30653   echo 'CEOF
30654   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30655   rm -f $tmp/in
30656   mv $tmp/out $tmp/in
30657 ' >>$CONFIG_STATUS
30658   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30659   rm -f conftest.undefs
30660   mv conftest.tail conftest.undefs
30661 done
30662 rm -f conftest.undefs
30663
30664 cat >>$CONFIG_STATUS <<\_ACEOF
30665   # Let's still pretend it is `configure' which instantiates (i.e., don't
30666   # use $as_me), people would be surprised to read:
30667   #    /* config.h.  Generated by config.status.  */
30668   if test x"$ac_file" = x-; then
30669     echo "/* Generated by configure.  */" >$tmp/config.h
30670   else
30671     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30672   fi
30673   cat $tmp/in >>$tmp/config.h
30674   rm -f $tmp/in
30675   if test x"$ac_file" != x-; then
30676     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30677       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30678 echo "$as_me: $ac_file is unchanged" >&6;}
30679     else
30680       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30682          X"$ac_file" : 'X\(//\)[^/]' \| \
30683          X"$ac_file" : 'X\(//\)$' \| \
30684          X"$ac_file" : 'X\(/\)' \| \
30685          .     : '\(.\)' 2>/dev/null ||
30686 echo X"$ac_file" |
30687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30689           /^X\(\/\/\)$/{ s//\1/; q; }
30690           /^X\(\/\).*/{ s//\1/; q; }
30691           s/.*/./; q'`
30692       { if $as_mkdir_p; then
30693     mkdir -p "$ac_dir"
30694   else
30695     as_dir="$ac_dir"
30696     as_dirs=
30697     while test ! -d "$as_dir"; do
30698       as_dirs="$as_dir $as_dirs"
30699       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30701          X"$as_dir" : 'X\(//\)[^/]' \| \
30702          X"$as_dir" : 'X\(//\)$' \| \
30703          X"$as_dir" : 'X\(/\)' \| \
30704          .     : '\(.\)' 2>/dev/null ||
30705 echo X"$as_dir" |
30706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30708           /^X\(\/\/\)$/{ s//\1/; q; }
30709           /^X\(\/\).*/{ s//\1/; q; }
30710           s/.*/./; q'`
30711     done
30712     test ! -n "$as_dirs" || mkdir $as_dirs
30713   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30714 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30715    { (exit 1); exit 1; }; }; }
30716
30717       rm -f $ac_file
30718       mv $tmp/config.h $ac_file
30719     fi
30720   else
30721     cat $tmp/config.h
30722     rm -f $tmp/config.h
30723   fi
30724 done
30725 _ACEOF
30726 cat >>$CONFIG_STATUS <<\_ACEOF
30727
30728 #
30729 # CONFIG_LINKS section.
30730 #
30731
30732 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30733   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30734   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30735
30736   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30737 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30738
30739   if test ! -r $srcdir/$ac_source; then
30740     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30741 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30742    { (exit 1); exit 1; }; }
30743   fi
30744   rm -f $ac_dest
30745
30746   # Make relative symlinks.
30747   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30748 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30749          X"$ac_dest" : 'X\(//\)[^/]' \| \
30750          X"$ac_dest" : 'X\(//\)$' \| \
30751          X"$ac_dest" : 'X\(/\)' \| \
30752          .     : '\(.\)' 2>/dev/null ||
30753 echo X"$ac_dest" |
30754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30756           /^X\(\/\/\)$/{ s//\1/; q; }
30757           /^X\(\/\).*/{ s//\1/; q; }
30758           s/.*/./; q'`
30759   { if $as_mkdir_p; then
30760     mkdir -p "$ac_dest_dir"
30761   else
30762     as_dir="$ac_dest_dir"
30763     as_dirs=
30764     while test ! -d "$as_dir"; do
30765       as_dirs="$as_dir $as_dirs"
30766       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30768          X"$as_dir" : 'X\(//\)[^/]' \| \
30769          X"$as_dir" : 'X\(//\)$' \| \
30770          X"$as_dir" : 'X\(/\)' \| \
30771          .     : '\(.\)' 2>/dev/null ||
30772 echo X"$as_dir" |
30773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30774           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30775           /^X\(\/\/\)$/{ s//\1/; q; }
30776           /^X\(\/\).*/{ s//\1/; q; }
30777           s/.*/./; q'`
30778     done
30779     test ! -n "$as_dirs" || mkdir $as_dirs
30780   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30781 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30782    { (exit 1); exit 1; }; }; }
30783
30784   ac_builddir=.
30785
30786 if test "$ac_dest_dir" != .; then
30787   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30788   # A "../" for each directory in $ac_dir_suffix.
30789   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30790 else
30791   ac_dir_suffix= ac_top_builddir=
30792 fi
30793
30794 case $srcdir in
30795   .)  # No --srcdir option.  We are building in place.
30796     ac_srcdir=.
30797     if test -z "$ac_top_builddir"; then
30798        ac_top_srcdir=.
30799     else
30800        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30801     fi ;;
30802   [\\/]* | ?:[\\/]* )  # Absolute path.
30803     ac_srcdir=$srcdir$ac_dir_suffix;
30804     ac_top_srcdir=$srcdir ;;
30805   *) # Relative path.
30806     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30807     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30808 esac
30809
30810 # Do not use `cd foo && pwd` to compute absolute paths, because
30811 # the directories may not exist.
30812 case `pwd` in
30813 .) ac_abs_builddir="$ac_dest_dir";;
30814 *)
30815   case "$ac_dest_dir" in
30816   .) ac_abs_builddir=`pwd`;;
30817   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30818   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30819   esac;;
30820 esac
30821 case $ac_abs_builddir in
30822 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30823 *)
30824   case ${ac_top_builddir}. in
30825   .) ac_abs_top_builddir=$ac_abs_builddir;;
30826   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30827   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30828   esac;;
30829 esac
30830 case $ac_abs_builddir in
30831 .) ac_abs_srcdir=$ac_srcdir;;
30832 *)
30833   case $ac_srcdir in
30834   .) ac_abs_srcdir=$ac_abs_builddir;;
30835   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30836   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30837   esac;;
30838 esac
30839 case $ac_abs_builddir in
30840 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30841 *)
30842   case $ac_top_srcdir in
30843   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30844   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30845   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30846   esac;;
30847 esac
30848
30849
30850   case $srcdir in
30851   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30852       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30853   esac
30854
30855   # Try a symlink, then a hard link, then a copy.
30856   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30857     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30858     cp -p $srcdir/$ac_source $ac_dest ||
30859     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30860 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30861    { (exit 1); exit 1; }; }
30862 done
30863 _ACEOF
30864 cat >>$CONFIG_STATUS <<\_ACEOF
30865
30866 #
30867 # CONFIG_COMMANDS section.
30868 #
30869 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30870   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30871   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30872   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30874          X"$ac_dest" : 'X\(//\)[^/]' \| \
30875          X"$ac_dest" : 'X\(//\)$' \| \
30876          X"$ac_dest" : 'X\(/\)' \| \
30877          .     : '\(.\)' 2>/dev/null ||
30878 echo X"$ac_dest" |
30879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30881           /^X\(\/\/\)$/{ s//\1/; q; }
30882           /^X\(\/\).*/{ s//\1/; q; }
30883           s/.*/./; q'`
30884   { if $as_mkdir_p; then
30885     mkdir -p "$ac_dir"
30886   else
30887     as_dir="$ac_dir"
30888     as_dirs=
30889     while test ! -d "$as_dir"; do
30890       as_dirs="$as_dir $as_dirs"
30891       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30893          X"$as_dir" : 'X\(//\)[^/]' \| \
30894          X"$as_dir" : 'X\(//\)$' \| \
30895          X"$as_dir" : 'X\(/\)' \| \
30896          .     : '\(.\)' 2>/dev/null ||
30897 echo X"$as_dir" |
30898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30900           /^X\(\/\/\)$/{ s//\1/; q; }
30901           /^X\(\/\).*/{ s//\1/; q; }
30902           s/.*/./; q'`
30903     done
30904     test ! -n "$as_dirs" || mkdir $as_dirs
30905   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30907    { (exit 1); exit 1; }; }; }
30908
30909   ac_builddir=.
30910
30911 if test "$ac_dir" != .; then
30912   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30913   # A "../" for each directory in $ac_dir_suffix.
30914   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30915 else
30916   ac_dir_suffix= ac_top_builddir=
30917 fi
30918
30919 case $srcdir in
30920   .)  # No --srcdir option.  We are building in place.
30921     ac_srcdir=.
30922     if test -z "$ac_top_builddir"; then
30923        ac_top_srcdir=.
30924     else
30925        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30926     fi ;;
30927   [\\/]* | ?:[\\/]* )  # Absolute path.
30928     ac_srcdir=$srcdir$ac_dir_suffix;
30929     ac_top_srcdir=$srcdir ;;
30930   *) # Relative path.
30931     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30932     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30933 esac
30934
30935 # Do not use `cd foo && pwd` to compute absolute paths, because
30936 # the directories may not exist.
30937 case `pwd` in
30938 .) ac_abs_builddir="$ac_dir";;
30939 *)
30940   case "$ac_dir" in
30941   .) ac_abs_builddir=`pwd`;;
30942   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30943   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30944   esac;;
30945 esac
30946 case $ac_abs_builddir in
30947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30948 *)
30949   case ${ac_top_builddir}. in
30950   .) ac_abs_top_builddir=$ac_abs_builddir;;
30951   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30952   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30953   esac;;
30954 esac
30955 case $ac_abs_builddir in
30956 .) ac_abs_srcdir=$ac_srcdir;;
30957 *)
30958   case $ac_srcdir in
30959   .) ac_abs_srcdir=$ac_abs_builddir;;
30960   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30961   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30962   esac;;
30963 esac
30964 case $ac_abs_builddir in
30965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30966 *)
30967   case $ac_top_srcdir in
30968   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30969   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30970   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30971   esac;;
30972 esac
30973
30974
30975   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30976 echo "$as_me: executing $ac_dest commands" >&6;}
30977   case $ac_dest in
30978     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30979     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
30980     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
30981     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
30982     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
30983     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30984     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
30985     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
30986     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
30987     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
30988   esac
30989 done
30990 _ACEOF
30991
30992 cat >>$CONFIG_STATUS <<\_ACEOF
30993
30994 { (exit 0); exit 0; }
30995 _ACEOF
30996 chmod +x $CONFIG_STATUS
30997 ac_clean_files=$ac_clean_files_save
30998
30999
31000 # configure is writing to config.log, and then calls config.status.
31001 # config.status does its own redirection, appending to config.log.
31002 # Unfortunately, on DOS this fails, as config.log is still kept open
31003 # by configure, so config.status won't be able to write to it; its
31004 # output is simply discarded.  So we exec the FD to /dev/null,
31005 # effectively closing config.log, so it can be properly (re)opened and
31006 # appended to by config.status.  When coming back to configure, we
31007 # need to make the FD available again.
31008 if test "$no_create" != yes; then
31009   ac_cs_success=:
31010   ac_config_status_args=
31011   test "$silent" = yes &&
31012     ac_config_status_args="$ac_config_status_args --quiet"
31013   exec 5>/dev/null
31014   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31015   exec 5>>config.log
31016   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31017   # would make configure fail if this is the last instruction.
31018   $ac_cs_success || { (exit 1); exit 1; }
31019 fi
31020
31021 #
31022 # CONFIG_SUBDIRS section.
31023 #
31024 if test "$no_recursion" != yes; then
31025
31026   # Remove --cache-file and --srcdir arguments so they do not pile up.
31027   ac_sub_configure_args=
31028   ac_prev=
31029   for ac_arg in $ac_configure_args; do
31030     if test -n "$ac_prev"; then
31031       ac_prev=
31032       continue
31033     fi
31034     case $ac_arg in
31035     -cache-file | --cache-file | --cache-fil | --cache-fi \
31036     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31037       ac_prev=cache_file ;;
31038     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31039     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31040     | --c=*)
31041       ;;
31042     --config-cache | -C)
31043       ;;
31044     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31045       ac_prev=srcdir ;;
31046     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31047       ;;
31048     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31049       ac_prev=prefix ;;
31050     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31051       ;;
31052     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31053     esac
31054   done
31055
31056   # Always prepend --prefix to ensure using the same prefix
31057   # in subdir configurations.
31058   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31059
31060   ac_popdir=`pwd`
31061   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31062
31063     # Do not complain, so a configure script can configure whichever
31064     # parts of a large source tree are present.
31065     test -d $srcdir/$ac_dir || continue
31066
31067     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31068 echo "$as_me: configuring in $ac_dir" >&6;}
31069     { if $as_mkdir_p; then
31070     mkdir -p "$ac_dir"
31071   else
31072     as_dir="$ac_dir"
31073     as_dirs=
31074     while test ! -d "$as_dir"; do
31075       as_dirs="$as_dir $as_dirs"
31076       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31078          X"$as_dir" : 'X\(//\)[^/]' \| \
31079          X"$as_dir" : 'X\(//\)$' \| \
31080          X"$as_dir" : 'X\(/\)' \| \
31081          .     : '\(.\)' 2>/dev/null ||
31082 echo X"$as_dir" |
31083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31085           /^X\(\/\/\)$/{ s//\1/; q; }
31086           /^X\(\/\).*/{ s//\1/; q; }
31087           s/.*/./; q'`
31088     done
31089     test ! -n "$as_dirs" || mkdir $as_dirs
31090   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31091 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31092    { (exit 1); exit 1; }; }; }
31093
31094     ac_builddir=.
31095
31096 if test "$ac_dir" != .; then
31097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31098   # A "../" for each directory in $ac_dir_suffix.
31099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31100 else
31101   ac_dir_suffix= ac_top_builddir=
31102 fi
31103
31104 case $srcdir in
31105   .)  # No --srcdir option.  We are building in place.
31106     ac_srcdir=.
31107     if test -z "$ac_top_builddir"; then
31108        ac_top_srcdir=.
31109     else
31110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31111     fi ;;
31112   [\\/]* | ?:[\\/]* )  # Absolute path.
31113     ac_srcdir=$srcdir$ac_dir_suffix;
31114     ac_top_srcdir=$srcdir ;;
31115   *) # Relative path.
31116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31118 esac
31119
31120 # Do not use `cd foo && pwd` to compute absolute paths, because
31121 # the directories may not exist.
31122 case `pwd` in
31123 .) ac_abs_builddir="$ac_dir";;
31124 *)
31125   case "$ac_dir" in
31126   .) ac_abs_builddir=`pwd`;;
31127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31129   esac;;
31130 esac
31131 case $ac_abs_builddir in
31132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31133 *)
31134   case ${ac_top_builddir}. in
31135   .) ac_abs_top_builddir=$ac_abs_builddir;;
31136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31138   esac;;
31139 esac
31140 case $ac_abs_builddir in
31141 .) ac_abs_srcdir=$ac_srcdir;;
31142 *)
31143   case $ac_srcdir in
31144   .) ac_abs_srcdir=$ac_abs_builddir;;
31145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31147   esac;;
31148 esac
31149 case $ac_abs_builddir in
31150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31151 *)
31152   case $ac_top_srcdir in
31153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31156   esac;;
31157 esac
31158
31159
31160     cd $ac_dir
31161
31162     # Check for guested configure; otherwise get Cygnus style configure.
31163     if test -f $ac_srcdir/configure.gnu; then
31164       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31165     elif test -f $ac_srcdir/configure; then
31166       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31167     elif test -f $ac_srcdir/configure.in; then
31168       ac_sub_configure=$ac_configure
31169     else
31170       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31172       ac_sub_configure=
31173     fi
31174
31175     # The recursion is here.
31176     if test -n "$ac_sub_configure"; then
31177       # Make the cache file name correct relative to the subdirectory.
31178       case $cache_file in
31179       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31180       *) # Relative path.
31181         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31182       esac
31183
31184       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31185 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31186       # The eval makes quoting arguments work.
31187       eval $ac_sub_configure $ac_sub_configure_args \
31188            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31189         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31190 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31191    { (exit 1); exit 1; }; }
31192     fi
31193
31194     cd $ac_popdir
31195   done
31196 fi
31197
31198
31199 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31200  { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31201 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31202  { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31203 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31204  { echo "$as_me:$LINENO: WARNING: ***** " >&5
31205 echo "$as_me: WARNING: ***** " >&2;}
31206  { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31207 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31208  { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31209 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31210  { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31211 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31212 fi