New testcase
[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 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015 # On Suns, sometimes $CPP names a directory.
3016 if test -n "$CPP" && test -d "$CPP"; then
3017   CPP=
3018 fi
3019 if test -z "$CPP"; then
3020   if test "${ac_cv_prog_CPP+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023       # Double quotes because CPP needs to be expanded
3024     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025     do
3026       ac_preproc_ok=false
3027 for ac_c_preproc_warn_flag in '' yes
3028 do
3029   # Use a header file that comes with gcc, so configuring glibc
3030   # with a fresh cross-compiler works.
3031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032   # <limits.h> exists even on freestanding compilers.
3033   # On the NeXT, cc -E runs the code through the compiler's parser,
3034   # not just through cpp. "Syntax error" is here to catch this case.
3035   cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041 #ifdef __STDC__
3042 # include <limits.h>
3043 #else
3044 # include <assert.h>
3045 #endif
3046                      Syntax error
3047 _ACEOF
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } >/dev/null; then
3056   if test -s conftest.err; then
3057     ac_cpp_err=$ac_c_preproc_warn_flag
3058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3059   else
3060     ac_cpp_err=
3061   fi
3062 else
3063   ac_cpp_err=yes
3064 fi
3065 if test -z "$ac_cpp_err"; then
3066   :
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071   # Broken: fails on valid input.
3072 continue
3073 fi
3074 rm -f conftest.err conftest.$ac_ext
3075
3076   # OK, works on sane cases.  Now check whether non-existent headers
3077   # can be detected and how.
3078   cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #include <ac_nonexistent.h>
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } >/dev/null; then
3094   if test -s conftest.err; then
3095     ac_cpp_err=$ac_c_preproc_warn_flag
3096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097   else
3098     ac_cpp_err=
3099   fi
3100 else
3101   ac_cpp_err=yes
3102 fi
3103 if test -z "$ac_cpp_err"; then
3104   # Broken: success on invalid input.
3105 continue
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110   # Passes both tests.
3111 ac_preproc_ok=:
3112 break
3113 fi
3114 rm -f conftest.err conftest.$ac_ext
3115
3116 done
3117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118 rm -f conftest.err conftest.$ac_ext
3119 if $ac_preproc_ok; then
3120   break
3121 fi
3122
3123     done
3124     ac_cv_prog_CPP=$CPP
3125
3126 fi
3127   CPP=$ac_cv_prog_CPP
3128 else
3129   ac_cv_prog_CPP=$CPP
3130 fi
3131 echo "$as_me:$LINENO: result: $CPP" >&5
3132 echo "${ECHO_T}$CPP" >&6
3133 ac_preproc_ok=false
3134 for ac_c_preproc_warn_flag in '' yes
3135 do
3136   # Use a header file that comes with gcc, so configuring glibc
3137   # with a fresh cross-compiler works.
3138   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139   # <limits.h> exists even on freestanding compilers.
3140   # On the NeXT, cc -E runs the code through the compiler's parser,
3141   # not just through cpp. "Syntax error" is here to catch this case.
3142   cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148 #ifdef __STDC__
3149 # include <limits.h>
3150 #else
3151 # include <assert.h>
3152 #endif
3153                      Syntax error
3154 _ACEOF
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } >/dev/null; then
3163   if test -s conftest.err; then
3164     ac_cpp_err=$ac_c_preproc_warn_flag
3165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166   else
3167     ac_cpp_err=
3168   fi
3169 else
3170   ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173   :
3174 else
3175   echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178   # Broken: fails on valid input.
3179 continue
3180 fi
3181 rm -f conftest.err conftest.$ac_ext
3182
3183   # OK, works on sane cases.  Now check whether non-existent headers
3184   # can be detected and how.
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <ac_nonexistent.h>
3192 _ACEOF
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } >/dev/null; then
3201   if test -s conftest.err; then
3202     ac_cpp_err=$ac_c_preproc_warn_flag
3203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204   else
3205     ac_cpp_err=
3206   fi
3207 else
3208   ac_cpp_err=yes
3209 fi
3210 if test -z "$ac_cpp_err"; then
3211   # Broken: success on invalid input.
3212 continue
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217   # Passes both tests.
3218 ac_preproc_ok=:
3219 break
3220 fi
3221 rm -f conftest.err conftest.$ac_ext
3222
3223 done
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3227   :
3228 else
3229   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232 See \`config.log' for more details." >&2;}
3233    { (exit 1); exit 1; }; }
3234 fi
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3248   for ac_prog in gcc
3249   do
3250     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252 echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   if test -n "$CC"; then
3258   ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for ac_exec_ext in '' $ac_executable_extensions; do
3266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272 done
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278   echo "$as_me:$LINENO: result: $CC" >&5
3279 echo "${ECHO_T}$CC" >&6
3280 else
3281   echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3283 fi
3284
3285     test -n "$CC" && break
3286   done
3287 fi
3288 if test -z "$CC"; then
3289   ac_ct_CC=$CC
3290   for ac_prog in gcc
3291 do
3292   # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   if test -n "$ac_ct_CC"; then
3300   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307   for ac_exec_ext in '' $ac_executable_extensions; do
3308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_ac_ct_CC="$ac_prog"
3310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314 done
3315
3316 fi
3317 fi
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321 echo "${ECHO_T}$ac_ct_CC" >&6
3322 else
3323   echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3325 fi
3326
3327   test -n "$ac_ct_CC" && break
3328 done
3329
3330   CC=$ac_ct_CC
3331 fi
3332
3333
3334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&2;}
3338    { (exit 1); exit 1; }; }
3339
3340 # Provide some information about the compiler.
3341 echo "$as_me:$LINENO:" \
3342      "checking for C compiler version" >&5
3343 ac_compiler=`set X $ac_compile; echo $2`
3344 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345   (eval $ac_compiler --version </dev/null >&5) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }
3349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350   (eval $ac_compiler -v </dev/null >&5) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }
3354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355   (eval $ac_compiler -V </dev/null >&5) 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }
3359
3360 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371
3372 int
3373 main ()
3374 {
3375 #ifndef __GNUC__
3376        choke me
3377 #endif
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385   (eval $ac_compile) 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } &&
3392          { ac_try='test -z "$ac_c_werror_flag"
3393                          || test ! -s conftest.err'
3394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395   (eval $ac_try) 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }; } &&
3399          { ac_try='test -s conftest.$ac_objext'
3400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401   (eval $ac_try) 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; }; then
3405   ac_compiler_gnu=yes
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 ac_compiler_gnu=no
3411 fi
3412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414
3415 fi
3416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418 GCC=`test $ac_compiler_gnu = yes && echo yes`
3419 ac_test_CFLAGS=${CFLAGS+set}
3420 ac_save_CFLAGS=$CFLAGS
3421 CFLAGS="-g"
3422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_g+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444   (eval $ac_compile) 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } &&
3451          { ac_try='test -z "$ac_c_werror_flag"
3452                          || test ! -s conftest.err'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; } &&
3458          { ac_try='test -s conftest.$ac_objext'
3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460   (eval $ac_try) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; }; then
3464   ac_cv_prog_cc_g=yes
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ac_cv_prog_cc_g=no
3470 fi
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475 if test "$ac_test_CFLAGS" = set; then
3476   CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478   if test "$GCC" = yes; then
3479     CFLAGS="-g -O2"
3480   else
3481     CFLAGS="-g"
3482   fi
3483 else
3484   if test "$GCC" = yes; then
3485     CFLAGS="-O2"
3486   else
3487     CFLAGS=
3488   fi
3489 fi
3490 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   ac_cv_prog_cc_stdc=no
3496 ac_save_CC=$CC
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 #include <stdarg.h>
3504 #include <stdio.h>
3505 #include <sys/types.h>
3506 #include <sys/stat.h>
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3511      char **p;
3512      int i;
3513 {
3514   return p[i];
3515 }
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3517 {
3518   char *s;
3519   va_list v;
3520   va_start (v,p);
3521   s = g (p, va_arg (v,int));
3522   va_end (v);
3523   return s;
3524 }
3525
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3527    function prototypes and stuff, but not '\xHH' hex character constants.
3528    These don't provoke an error unfortunately, instead are silently treated
3529    as 'x'.  The following induces an error, until -std1 is added to get
3530    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3531    array size at least.  It's necessary to write '\x00'==0 to get something
3532    that's true only with -std1.  */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539 int argc;
3540 char **argv;
3541 int
3542 main ()
3543 {
3544 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 # Don't try gcc -ansi; that turns off useful extensions and
3550 # breaks some systems' header files.
3551 # AIX                   -qlanglvl=ansi
3552 # Ultrix and OSF/1      -std1
3553 # HP-UX 10.20 and later -Ae
3554 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3555 # SVR4                  -Xc -D__EXTENSIONS__
3556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557 do
3558   CC="$ac_save_CC $ac_arg"
3559   rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561   (eval $ac_compile) 2>conftest.er1
3562   ac_status=$?
3563   grep -v '^ *+' conftest.er1 >conftest.err
3564   rm -f conftest.er1
3565   cat conftest.err >&5
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568          { ac_try='test -z "$ac_c_werror_flag"
3569                          || test ! -s conftest.err'
3570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571   (eval $ac_try) 2>&5
3572   ac_status=$?
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); }; } &&
3575          { ac_try='test -s conftest.$ac_objext'
3576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577   (eval $ac_try) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }; }; then
3581   ac_cv_prog_cc_stdc=$ac_arg
3582 break
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 fi
3588 rm -f conftest.err conftest.$ac_objext
3589 done
3590 rm -f conftest.$ac_ext conftest.$ac_objext
3591 CC=$ac_save_CC
3592
3593 fi
3594
3595 case "x$ac_cv_prog_cc_stdc" in
3596   x|xno)
3597     echo "$as_me:$LINENO: result: none needed" >&5
3598 echo "${ECHO_T}none needed" >&6 ;;
3599   *)
3600     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602     CC="$CC $ac_cv_prog_cc_stdc" ;;
3603 esac
3604
3605 # Some people use a C++ compiler to compile C.  Since we use `exit',
3606 # in C++ we need to declare it.  In case someone uses the same compiler
3607 # for both compiling C and C++ we need to have the C++ compiler decide
3608 # the declaration of exit, since it's the most demanding environment.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #ifndef __cplusplus
3611   choke me
3612 #endif
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616   (eval $ac_compile) 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } &&
3623          { ac_try='test -z "$ac_c_werror_flag"
3624                          || test ! -s conftest.err'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; } &&
3630          { ac_try='test -s conftest.$ac_objext'
3631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632   (eval $ac_try) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; }; then
3636   for ac_declaration in \
3637    '' \
3638    'extern "C" void std::exit (int) throw (); using std::exit;' \
3639    'extern "C" void std::exit (int); using std::exit;' \
3640    'extern "C" void exit (int) throw ();' \
3641    'extern "C" void exit (int);' \
3642    'void exit (int);'
3643 do
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 $ac_declaration
3651 #include <stdlib.h>
3652 int
3653 main ()
3654 {
3655 exit (42);
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -z "$ac_c_werror_flag"
3670                          || test ! -s conftest.err'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; } &&
3676          { ac_try='test -s conftest.$ac_objext'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682   :
3683 else
3684   echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 continue
3688 fi
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 $ac_declaration
3697 int
3698 main ()
3699 {
3700 exit (42);
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707   (eval $ac_compile) 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -z "$ac_c_werror_flag"
3715                          || test ! -s conftest.err'
3716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717   (eval $ac_try) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; } &&
3721          { ac_try='test -s conftest.$ac_objext'
3722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723   (eval $ac_try) 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); }; }; then
3727   break
3728 else
3729   echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 fi
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 done
3735 rm -f conftest*
3736 if test -n "$ac_declaration"; then
3737   echo '#ifdef __cplusplus' >>confdefs.h
3738   echo $ac_declaration      >>confdefs.h
3739   echo '#endif'             >>confdefs.h
3740 fi
3741
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 fi
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754 ac_ext=cc
3755 ac_cpp='$CXXCPP $CPPFLAGS'
3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760   for ac_prog in $CCC g++
3761   do
3762     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_CXX+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if test -n "$CXX"; then
3770   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   for ac_exec_ext in '' $ac_executable_extensions; do
3778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781     break 2
3782   fi
3783 done
3784 done
3785
3786 fi
3787 fi
3788 CXX=$ac_cv_prog_CXX
3789 if test -n "$CXX"; then
3790   echo "$as_me:$LINENO: result: $CXX" >&5
3791 echo "${ECHO_T}$CXX" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797     test -n "$CXX" && break
3798   done
3799 fi
3800 if test -z "$CXX"; then
3801   ac_ct_CXX=$CXX
3802   for ac_prog in $CCC g++
3803 do
3804   # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   if test -n "$ac_ct_CXX"; then
3812   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817   IFS=$as_save_IFS
3818   test -z "$as_dir" && as_dir=.
3819   for ac_exec_ext in '' $ac_executable_extensions; do
3820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821     ac_cv_prog_ac_ct_CXX="$ac_prog"
3822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823     break 2
3824   fi
3825 done
3826 done
3827
3828 fi
3829 fi
3830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831 if test -n "$ac_ct_CXX"; then
3832   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833 echo "${ECHO_T}$ac_ct_CXX" >&6
3834 else
3835   echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3837 fi
3838
3839   test -n "$ac_ct_CXX" && break
3840 done
3841 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3842
3843   CXX=$ac_ct_CXX
3844 fi
3845
3846
3847 # Provide some information about the compiler.
3848 echo "$as_me:$LINENO:" \
3849      "checking for C++ compiler version" >&5
3850 ac_compiler=`set X $ac_compile; echo $2`
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852   (eval $ac_compiler --version </dev/null >&5) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }
3856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857   (eval $ac_compiler -v </dev/null >&5) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }
3861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862   (eval $ac_compiler -V </dev/null >&5) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }
3866
3867 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __GNUC__
3883        choke me
3884 #endif
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892   (eval $ac_compile) 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } &&
3899          { ac_try='test -z "$ac_cxx_werror_flag"
3900                          || test ! -s conftest.err'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; } &&
3906          { ac_try='test -s conftest.$ac_objext'
3907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908   (eval $ac_try) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   ac_compiler_gnu=yes
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 ac_compiler_gnu=no
3918 fi
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3921
3922 fi
3923 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925 GXX=`test $ac_compiler_gnu = yes && echo yes`
3926 ac_test_CXXFLAGS=${CXXFLAGS+set}
3927 ac_save_CXXFLAGS=$CXXFLAGS
3928 CXXFLAGS="-g"
3929 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931 if test "${ac_cv_prog_cxx_g+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951   (eval $ac_compile) 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } &&
3958          { ac_try='test -z "$ac_cxx_werror_flag"
3959                          || test ! -s conftest.err'
3960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961   (eval $ac_try) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; } &&
3965          { ac_try='test -s conftest.$ac_objext'
3966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967   (eval $ac_try) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; }; then
3971   ac_cv_prog_cxx_g=yes
3972 else
3973   echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 ac_cv_prog_cxx_g=no
3977 fi
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982 if test "$ac_test_CXXFLAGS" = set; then
3983   CXXFLAGS=$ac_save_CXXFLAGS
3984 elif test $ac_cv_prog_cxx_g = yes; then
3985   if test "$GXX" = yes; then
3986     CXXFLAGS="-g -O2"
3987   else
3988     CXXFLAGS="-g"
3989   fi
3990 else
3991   if test "$GXX" = yes; then
3992     CXXFLAGS="-O2"
3993   else
3994     CXXFLAGS=
3995   fi
3996 fi
3997 for ac_declaration in \
3998    '' \
3999    'extern "C" void std::exit (int) throw (); using std::exit;' \
4000    'extern "C" void std::exit (int); using std::exit;' \
4001    'extern "C" void exit (int) throw ();' \
4002    'extern "C" void exit (int);' \
4003    'void exit (int);'
4004 do
4005   cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011 $ac_declaration
4012 #include <stdlib.h>
4013 int
4014 main ()
4015 {
4016 exit (42);
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023   (eval $ac_compile) 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } &&
4030          { ac_try='test -z "$ac_cxx_werror_flag"
4031                          || test ! -s conftest.err'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; } &&
4037          { ac_try='test -s conftest.$ac_objext'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   :
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 continue
4049 fi
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 $ac_declaration
4058 int
4059 main ()
4060 {
4061 exit (42);
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068   (eval $ac_compile) 2>conftest.er1
4069   ac_status=$?
4070   grep -v '^ *+' conftest.er1 >conftest.err
4071   rm -f conftest.er1
4072   cat conftest.err >&5
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); } &&
4075          { ac_try='test -z "$ac_cxx_werror_flag"
4076                          || test ! -s conftest.err'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; } &&
4082          { ac_try='test -s conftest.$ac_objext'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   break
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 fi
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 done
4096 rm -f conftest*
4097 if test -n "$ac_declaration"; then
4098   echo '#ifdef __cplusplus' >>confdefs.h
4099   echo $ac_declaration      >>confdefs.h
4100   echo '#endif'             >>confdefs.h
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109 echo "$as_me:$LINENO: checking " >&5
4110 echo $ECHO_N "checking ... $ECHO_C" >&6
4111 if test "${ac_cv_has_flex+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   for ac_prog in flex lex
4115 do
4116   # Extract the first word of "$ac_prog", so it can be a program name with args.
4117 set dummy $ac_prog; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LEX+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   if test -n "$LEX"; then
4124   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_prog_LEX="$ac_prog"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140 fi
4141 fi
4142 LEX=$ac_cv_prog_LEX
4143 if test -n "$LEX"; then
4144   echo "$as_me:$LINENO: result: $LEX" >&5
4145 echo "${ECHO_T}$LEX" >&6
4146 else
4147   echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149 fi
4150
4151   test -n "$LEX" && break
4152 done
4153 test -n "$LEX" || LEX=":"
4154
4155 if test -z "$LEXLIB"
4156 then
4157   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   ac_check_lib_save_LIBS=$LIBS
4163 LIBS="-lfl  $LIBS"
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170
4171 /* Override any gcc2 internal prototype to avoid an error.  */
4172 #ifdef __cplusplus
4173 extern "C"
4174 #endif
4175 /* We use char because int might match the return type of a gcc2
4176    builtin and then its argument prototype would still apply.  */
4177 char yywrap ();
4178 int
4179 main ()
4180 {
4181 yywrap ();
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188   (eval $ac_link) 2>conftest.er1
4189   ac_status=$?
4190   grep -v '^ *+' conftest.er1 >conftest.err
4191   rm -f conftest.er1
4192   cat conftest.err >&5
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); } &&
4195          { ac_try='test -z "$ac_c_werror_flag"
4196                          || test ! -s conftest.err'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; } &&
4202          { ac_try='test -s conftest$ac_exeext'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   ac_cv_lib_fl_yywrap=yes
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ac_cv_lib_fl_yywrap=no
4214 fi
4215 rm -f conftest.err conftest.$ac_objext \
4216       conftest$ac_exeext conftest.$ac_ext
4217 LIBS=$ac_check_lib_save_LIBS
4218 fi
4219 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221 if test $ac_cv_lib_fl_yywrap = yes; then
4222   LEXLIB="-lfl"
4223 else
4224   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   ac_check_lib_save_LIBS=$LIBS
4230 LIBS="-ll  $LIBS"
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238 /* Override any gcc2 internal prototype to avoid an error.  */
4239 #ifdef __cplusplus
4240 extern "C"
4241 #endif
4242 /* We use char because int might match the return type of a gcc2
4243    builtin and then its argument prototype would still apply.  */
4244 char yywrap ();
4245 int
4246 main ()
4247 {
4248 yywrap ();
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255   (eval $ac_link) 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag"
4263                          || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest$ac_exeext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   ac_cv_lib_l_yywrap=yes
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_cv_lib_l_yywrap=no
4281 fi
4282 rm -f conftest.err conftest.$ac_objext \
4283       conftest$ac_exeext conftest.$ac_ext
4284 LIBS=$ac_check_lib_save_LIBS
4285 fi
4286 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288 if test $ac_cv_lib_l_yywrap = yes; then
4289   LEXLIB="-ll"
4290 fi
4291
4292 fi
4293
4294 fi
4295
4296 if test "x$LEX" != "x:"; then
4297   echo "$as_me:$LINENO: checking lex output file root" >&5
4298 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299 if test "${ac_cv_prog_lex_root+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   # The minimal lex program is just a single line: %%.  But some broken lexes
4303 # (Solaris, I think it was) want two %% lines, so accommodate them.
4304 cat >conftest.l <<_ACEOF
4305 %%
4306 %%
4307 _ACEOF
4308 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309   (eval $LEX conftest.l) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }
4313 if test -f lex.yy.c; then
4314   ac_cv_prog_lex_root=lex.yy
4315 elif test -f lexyy.c; then
4316   ac_cv_prog_lex_root=lexyy
4317 else
4318   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320    { (exit 1); exit 1; }; }
4321 fi
4322 fi
4323 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4325 rm -f conftest.l
4326 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4327
4328 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   # POSIX says lex can declare yytext either as a pointer or an array; the
4334 # default is implementation-dependent. Figure out which it is, since
4335 # not all implementations provide the %pointer and %array declarations.
4336 ac_cv_prog_lex_yytext_pointer=no
4337 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4338 ac_save_LIBS=$LIBS
4339 LIBS="$LIBS $LEXLIB"
4340 cat >conftest.$ac_ext <<_ACEOF
4341 `cat $LEX_OUTPUT_ROOT.c`
4342 _ACEOF
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345   (eval $ac_link) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_c_werror_flag"
4353                          || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest$ac_exeext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_cv_prog_lex_yytext_pointer=yes
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 fi
4371 rm -f conftest.err conftest.$ac_objext \
4372       conftest$ac_exeext conftest.$ac_ext
4373 LIBS=$ac_save_LIBS
4374 rm -f "${LEX_OUTPUT_ROOT}.c"
4375
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4380
4381 cat >>confdefs.h <<\_ACEOF
4382 #define YYTEXT_POINTER 1
4383 _ACEOF
4384
4385 fi
4386
4387 fi
4388
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391 echo "${ECHO_T}$ac_cv_has_flex" >&6
4392 if test "$LEX" != "flex"; then
4393   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394 echo "$as_me: error: flex not found but required" >&2;}
4395    { (exit 1); exit 1; }; }
4396 else
4397   FLEX=flex
4398
4399 fi
4400
4401 echo "$as_me:$LINENO: checking " >&5
4402 echo $ECHO_N "checking ... $ECHO_C" >&6
4403 if test "${llvm_cv_has_bison+set}" = set; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406   for ac_prog in 'bison -y' byacc
4407 do
4408   # Extract the first word of "$ac_prog", so it can be a program name with args.
4409 set dummy $ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_YACC+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$YACC"; then
4416   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_prog_YACC="$ac_prog"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431
4432 fi
4433 fi
4434 YACC=$ac_cv_prog_YACC
4435 if test -n "$YACC"; then
4436   echo "$as_me:$LINENO: result: $YACC" >&5
4437 echo "${ECHO_T}$YACC" >&6
4438 else
4439   echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441 fi
4442
4443   test -n "$YACC" && break
4444 done
4445 test -n "$YACC" || YACC="yacc"
4446
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
4461 echo "$as_me:$LINENO: checking for GNU make" >&5
4462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463 if test "${llvm_cv_gnu_make_command+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   llvm_cv_gnu_make_command=''
4467  for a in "$MAKE" make gmake gnumake ; do
4468   if test -z "$a" ; then continue ; fi ;
4469   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470   then
4471    llvm_cv_gnu_make_command=$a ;
4472    break;
4473   fi
4474  done
4475 fi
4476 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4479    ifGNUmake='' ;
4480  else
4481    ifGNUmake='#' ;
4482    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483 echo "${ECHO_T}\"Not found\"" >&6;
4484  fi
4485
4486
4487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489 LN_S=$as_ln_s
4490 if test "$LN_S" = "ln -s"; then
4491   echo "$as_me:$LINENO: result: yes" >&5
4492 echo "${ECHO_T}yes" >&6
4493 else
4494   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495 echo "${ECHO_T}no, using $LN_S" >&6
4496 fi
4497
4498 # Extract the first word of "date", so it can be a program name with args.
4499 set dummy date; ac_word=$2
4500 echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502 if test "${ac_cv_path_DATE+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   case $DATE in
4506   [\\/]* | ?:[\\/]*)
4507   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4508   ;;
4509   *)
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522 done
4523
4524   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4525   ;;
4526 esac
4527 fi
4528 DATE=$ac_cv_path_DATE
4529
4530 if test -n "$DATE"; then
4531   echo "$as_me:$LINENO: result: $DATE" >&5
4532 echo "${ECHO_T}$DATE" >&6
4533 else
4534   echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4536 fi
4537
4538 # Extract the first word of "find", so it can be a program name with args.
4539 set dummy find; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_path_FIND+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case $FIND in
4546   [\\/]* | ?:[\\/]*)
4547   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4548   ;;
4549   *)
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563
4564   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4565   ;;
4566 esac
4567 fi
4568 FIND=$ac_cv_path_FIND
4569
4570 if test -n "$FIND"; then
4571   echo "$as_me:$LINENO: result: $FIND" >&5
4572 echo "${ECHO_T}$FIND" >&6
4573 else
4574   echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577
4578 # Extract the first word of "grep", so it can be a program name with args.
4579 set dummy grep; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_path_GREP+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   case $GREP in
4586   [\\/]* | ?:[\\/]*)
4587   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4588   ;;
4589   *)
4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595   for ac_exec_ext in '' $ac_executable_extensions; do
4596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602 done
4603
4604   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4605   ;;
4606 esac
4607 fi
4608 GREP=$ac_cv_path_GREP
4609
4610 if test -n "$GREP"; then
4611   echo "$as_me:$LINENO: result: $GREP" >&5
4612 echo "${ECHO_T}$GREP" >&6
4613 else
4614   echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4616 fi
4617
4618 # Extract the first word of "mkdir", so it can be a program name with args.
4619 set dummy mkdir; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_path_MKDIR+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   case $MKDIR in
4626   [\\/]* | ?:[\\/]*)
4627   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4628   ;;
4629   *)
4630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643
4644   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4645   ;;
4646 esac
4647 fi
4648 MKDIR=$ac_cv_path_MKDIR
4649
4650 if test -n "$MKDIR"; then
4651   echo "$as_me:$LINENO: result: $MKDIR" >&5
4652 echo "${ECHO_T}$MKDIR" >&6
4653 else
4654   echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4656 fi
4657
4658 # Extract the first word of "mv", so it can be a program name with args.
4659 set dummy mv; ac_word=$2
4660 echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662 if test "${ac_cv_path_MV+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   case $MV in
4666   [\\/]* | ?:[\\/]*)
4667   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4668   ;;
4669   *)
4670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683
4684   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4685   ;;
4686 esac
4687 fi
4688 MV=$ac_cv_path_MV
4689
4690 if test -n "$MV"; then
4691   echo "$as_me:$LINENO: result: $MV" >&5
4692 echo "${ECHO_T}$MV" >&6
4693 else
4694   echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4696 fi
4697
4698 # Extract the first word of "pax", so it can be a program name with args.
4699 set dummy pax; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_path_PAX+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   case $PAX in
4706   [\\/]* | ?:[\\/]*)
4707   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4708   ;;
4709   *)
4710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715   for ac_exec_ext in '' $ac_executable_extensions; do
4716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722 done
4723
4724   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4725   ;;
4726 esac
4727 fi
4728 PAX=$ac_cv_path_PAX
4729
4730 if test -n "$PAX"; then
4731   echo "$as_me:$LINENO: result: $PAX" >&5
4732 echo "${ECHO_T}$PAX" >&6
4733 else
4734   echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738 if test -n "$ac_tool_prefix"; then
4739   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_RANLIB+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -n "$RANLIB"; then
4747   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763 fi
4764 fi
4765 RANLIB=$ac_cv_prog_RANLIB
4766 if test -n "$RANLIB"; then
4767   echo "$as_me:$LINENO: result: $RANLIB" >&5
4768 echo "${ECHO_T}$RANLIB" >&6
4769 else
4770   echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 fi
4775 if test -z "$ac_cv_prog_RANLIB"; then
4776   ac_ct_RANLIB=$RANLIB
4777   # Extract the first word of "ranlib", so it can be a program name with args.
4778 set dummy ranlib; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   if test -n "$ac_ct_RANLIB"; then
4785   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_ac_ct_RANLIB="ranlib"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800
4801   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4802 fi
4803 fi
4804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805 if test -n "$ac_ct_RANLIB"; then
4806   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808 else
4809   echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811 fi
4812
4813   RANLIB=$ac_ct_RANLIB
4814 else
4815   RANLIB="$ac_cv_prog_RANLIB"
4816 fi
4817
4818 # Extract the first word of "rm", so it can be a program name with args.
4819 set dummy rm; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_path_RM+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   case $RM in
4826   [\\/]* | ?:[\\/]*)
4827   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4828   ;;
4829   *)
4830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843
4844   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4845   ;;
4846 esac
4847 fi
4848 RM=$ac_cv_path_RM
4849
4850 if test -n "$RM"; then
4851   echo "$as_me:$LINENO: result: $RM" >&5
4852 echo "${ECHO_T}$RM" >&6
4853 else
4854   echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4856 fi
4857
4858 # Extract the first word of "sed", so it can be a program name with args.
4859 set dummy sed; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_path_SED+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   case $SED in
4866   [\\/]* | ?:[\\/]*)
4867   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4868   ;;
4869   *)
4870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883
4884   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4885   ;;
4886 esac
4887 fi
4888 SED=$ac_cv_path_SED
4889
4890 if test -n "$SED"; then
4891   echo "$as_me:$LINENO: result: $SED" >&5
4892 echo "${ECHO_T}$SED" >&6
4893 else
4894   echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4896 fi
4897
4898 # Extract the first word of "tar", so it can be a program name with args.
4899 set dummy tar; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_path_TAR+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $TAR in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923
4924   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4925   ;;
4926 esac
4927 fi
4928 TAR=$ac_cv_path_TAR
4929
4930 if test -n "$TAR"; then
4931   echo "$as_me:$LINENO: result: $TAR" >&5
4932 echo "${ECHO_T}$TAR" >&6
4933 else
4934   echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 # Find a good install program.  We prefer a C program (faster),
4940 # so one script is as good as another.  But avoid the broken or
4941 # incompatible versions:
4942 # SysV /etc/install, /usr/sbin/install
4943 # SunOS /usr/etc/install
4944 # IRIX /sbin/install
4945 # AIX /bin/install
4946 # AmigaOS /C/install, which installs bootblocks on floppy discs
4947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950 # OS/2's system install, which has a completely different semantic
4951 # ./install, which can be erroneously created by make from ./install.sh.
4952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954 if test -z "$INSTALL"; then
4955 if test "${ac_cv_path_install+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963   # Account for people who put trailing slashes in PATH elements.
4964 case $as_dir/ in
4965   ./ | .// | /cC/* | \
4966   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4968   /usr/ucb/* ) ;;
4969   *)
4970     # OSF1 and SCO ODT 3.0 have their own names for install.
4971     # Don't use installbsd from OSF since it installs stuff as root
4972     # by default.
4973     for ac_prog in ginstall scoinst install; do
4974       for ac_exec_ext in '' $ac_executable_extensions; do
4975         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976           if test $ac_prog = install &&
4977             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978             # AIX install.  It has an incompatible calling convention.
4979             :
4980           elif test $ac_prog = install &&
4981             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982             # program-specific install script used by HP pwplus--don't use.
4983             :
4984           else
4985             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4986             break 3
4987           fi
4988         fi
4989       done
4990     done
4991     ;;
4992 esac
4993 done
4994
4995
4996 fi
4997   if test "${ac_cv_path_install+set}" = set; then
4998     INSTALL=$ac_cv_path_install
4999   else
5000     # As a last resort, use the slow shell script.  We don't cache a
5001     # path for INSTALL within a source directory, because that will
5002     # break other packages using the cache if that directory is
5003     # removed, or if the path is relative.
5004     INSTALL=$ac_install_sh
5005   fi
5006 fi
5007 echo "$as_me:$LINENO: result: $INSTALL" >&5
5008 echo "${ECHO_T}$INSTALL" >&6
5009
5010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011 # It thinks the first close brace ends the variable substitution.
5012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013
5014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015
5016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5017
5018
5019 # Extract the first word of "bzip2", so it can be a program name with args.
5020 set dummy bzip2; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_path_BZIP2+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   case $BZIP2 in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044
5045   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5046   ;;
5047 esac
5048 fi
5049 BZIP2=$ac_cv_path_BZIP2
5050
5051 if test -n "$BZIP2"; then
5052   echo "$as_me:$LINENO: result: $BZIP2" >&5
5053 echo "${ECHO_T}$BZIP2" >&6
5054 else
5055   echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5057 fi
5058
5059 # Extract the first word of "dot", so it can be a program name with args.
5060 set dummy dot; ac_word=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_path_DOT+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $DOT in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084
5085   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5086   ;;
5087 esac
5088 fi
5089 DOT=$ac_cv_path_DOT
5090
5091 if test -n "$DOT"; then
5092   echo "$as_me:$LINENO: result: $DOT" >&5
5093 echo "${ECHO_T}$DOT" >&6
5094 else
5095   echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097 fi
5098
5099 # Extract the first word of "doxygen", so it can be a program name with args.
5100 set dummy doxygen; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   case $DOXYGEN in
5107   [\\/]* | ?:[\\/]*)
5108   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5109   ;;
5110   *)
5111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116   for ac_exec_ext in '' $ac_executable_extensions; do
5117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123 done
5124
5125   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5126   ;;
5127 esac
5128 fi
5129 DOXYGEN=$ac_cv_path_DOXYGEN
5130
5131 if test -n "$DOXYGEN"; then
5132   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133 echo "${ECHO_T}$DOXYGEN" >&6
5134 else
5135   echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5137 fi
5138
5139 # Extract the first word of "etags", so it can be a program name with args.
5140 set dummy etags; ac_word=$2
5141 echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143 if test "${ac_cv_path_ETAGS+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   case $ETAGS in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164
5165   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5166   ;;
5167 esac
5168 fi
5169 ETAGS=$ac_cv_path_ETAGS
5170
5171 if test -n "$ETAGS"; then
5172   echo "$as_me:$LINENO: result: $ETAGS" >&5
5173 echo "${ECHO_T}$ETAGS" >&6
5174 else
5175   echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179 # Extract the first word of "groff", so it can be a program name with args.
5180 set dummy groff; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_path_GROFF+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   case $GROFF in
5187   [\\/]* | ?:[\\/]*)
5188   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5189   ;;
5190   *)
5191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196   for ac_exec_ext in '' $ac_executable_extensions; do
5197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203 done
5204
5205   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5206   ;;
5207 esac
5208 fi
5209 GROFF=$ac_cv_path_GROFF
5210
5211 if test -n "$GROFF"; then
5212   echo "$as_me:$LINENO: result: $GROFF" >&5
5213 echo "${ECHO_T}$GROFF" >&6
5214 else
5215   echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5217 fi
5218
5219 # Extract the first word of "gzip", so it can be a program name with args.
5220 set dummy gzip; ac_word=$2
5221 echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_path_GZIP+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   case $GZIP in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5244
5245   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5246   ;;
5247 esac
5248 fi
5249 GZIP=$ac_cv_path_GZIP
5250
5251 if test -n "$GZIP"; then
5252   echo "$as_me:$LINENO: result: $GZIP" >&5
5253 echo "${ECHO_T}$GZIP" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259 # Extract the first word of "pod2html", so it can be a program name with args.
5260 set dummy pod2html; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_path_POD2HTML+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   case $POD2HTML in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5269   ;;
5270   *)
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276   for ac_exec_ext in '' $ac_executable_extensions; do
5277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283 done
5284
5285   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5286   ;;
5287 esac
5288 fi
5289 POD2HTML=$ac_cv_path_POD2HTML
5290
5291 if test -n "$POD2HTML"; then
5292   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293 echo "${ECHO_T}$POD2HTML" >&6
5294 else
5295   echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5297 fi
5298
5299 # Extract the first word of "pod2man", so it can be a program name with args.
5300 set dummy pod2man; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_path_POD2MAN+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   case $POD2MAN in
5307   [\\/]* | ?:[\\/]*)
5308   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5309   ;;
5310   *)
5311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316   for ac_exec_ext in '' $ac_executable_extensions; do
5317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323 done
5324
5325   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5326   ;;
5327 esac
5328 fi
5329 POD2MAN=$ac_cv_path_POD2MAN
5330
5331 if test -n "$POD2MAN"; then
5332   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333 echo "${ECHO_T}$POD2MAN" >&6
5334 else
5335   echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5337 fi
5338
5339 # Extract the first word of "runtest", so it can be a program name with args.
5340 set dummy runtest; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_path_RUNTEST+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   case $RUNTEST in
5347   [\\/]* | ?:[\\/]*)
5348   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5349   ;;
5350   *)
5351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364
5365   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5366   ;;
5367 esac
5368 fi
5369 RUNTEST=$ac_cv_path_RUNTEST
5370
5371 if test -n "$RUNTEST"; then
5372   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5373 echo "${ECHO_T}$RUNTEST" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379
5380 no_itcl=true
5381 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5382 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5383
5384 # Check whether --with-tclinclude or --without-tclinclude was given.
5385 if test "${with_tclinclude+set}" = set; then
5386   withval="$with_tclinclude"
5387   with_tclinclude=${withval}
5388 else
5389   with_tclinclude=''
5390 fi;
5391 if test "${ac_cv_path_tclsh+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394
5395 if test x"${with_tclinclude}" != x ; then
5396   if test -f ${with_tclinclude}/tclsh ; then
5397     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5398   elif test -f ${with_tclinclude}/src/tclsh ; then
5399     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5400   else
5401     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5402 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5403    { (exit 1); exit 1; }; }
5404   fi
5405 fi
5406
5407 if test x"${ac_cv_path_tclsh}" = x ; then
5408   echo "$as_me:$LINENO: result: none" >&5
5409 echo "${ECHO_T}none" >&6
5410   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
5411 do
5412   # Extract the first word of "$ac_prog", so it can be a program name with args.
5413 set dummy $ac_prog; ac_word=$2
5414 echo "$as_me:$LINENO: checking for $ac_word" >&5
5415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5416 if test "${ac_cv_path_TCLSH+set}" = set; then
5417   echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419   case $TCLSH in
5420   [\\/]* | ?:[\\/]*)
5421   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5422   ;;
5423   *)
5424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427   IFS=$as_save_IFS
5428   test -z "$as_dir" && as_dir=.
5429   for ac_exec_ext in '' $ac_executable_extensions; do
5430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433     break 2
5434   fi
5435 done
5436 done
5437
5438   ;;
5439 esac
5440 fi
5441 TCLSH=$ac_cv_path_TCLSH
5442
5443 if test -n "$TCLSH"; then
5444   echo "$as_me:$LINENO: result: $TCLSH" >&5
5445 echo "${ECHO_T}$TCLSH" >&6
5446 else
5447   echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5449 fi
5450
5451   test -n "$TCLSH" && break
5452 done
5453
5454   if test x"${TCLSH}" = x ; then
5455     ac_cv_path_tclsh='';
5456   else
5457     ac_cv_path_tclsh="${TCLSH}";
5458   fi
5459 else
5460   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5461 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5462   TCLSH="${ac_cv_path_tclsh}"
5463
5464 fi
5465
5466 fi
5467
5468 # Extract the first word of "zip", so it can be a program name with args.
5469 set dummy zip; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_path_ZIP+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   case $ZIP in
5476   [\\/]* | ?:[\\/]*)
5477   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5478   ;;
5479   *)
5480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483   IFS=$as_save_IFS
5484   test -z "$as_dir" && as_dir=.
5485   for ac_exec_ext in '' $ac_executable_extensions; do
5486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489     break 2
5490   fi
5491 done
5492 done
5493
5494   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5495   ;;
5496 esac
5497 fi
5498 ZIP=$ac_cv_path_ZIP
5499
5500 if test -n "$ZIP"; then
5501   echo "$as_me:$LINENO: result: $ZIP" >&5
5502 echo "${ECHO_T}$ZIP" >&6
5503 else
5504   echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5506 fi
5507
5508
5509 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5510 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5511 if test "${llvm_cv_link_use_r+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514    ac_ext=c
5515 ac_cpp='$CPP $CPPFLAGS'
5516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519
5520   oldcflags="$CFLAGS"
5521   CFLAGS="$CFLAGS -Wl,-R."
5522   cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528
5529 int
5530 main ()
5531 {
5532 int main() { return 0; }
5533   ;
5534   return 0;
5535 }
5536 _ACEOF
5537 rm -f conftest.$ac_objext conftest$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539   (eval $ac_link) 2>conftest.er1
5540   ac_status=$?
5541   grep -v '^ *+' conftest.er1 >conftest.err
5542   rm -f conftest.er1
5543   cat conftest.err >&5
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -z "$ac_c_werror_flag"
5547                          || test ! -s conftest.err'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; } &&
5553          { ac_try='test -s conftest$ac_exeext'
5554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555   (eval $ac_try) 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); }; }; then
5559   llvm_cv_link_use_r=yes
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 llvm_cv_link_use_r=no
5565 fi
5566 rm -f conftest.err conftest.$ac_objext \
5567       conftest$ac_exeext conftest.$ac_ext
5568   CFLAGS="$oldcflags"
5569   ac_ext=c
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574
5575
5576 fi
5577 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5578 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5579 if test "$llvm_cv_link_use_r" = yes ; then
5580
5581 cat >>confdefs.h <<\_ACEOF
5582 #define HAVE_LINK_R 1
5583 _ACEOF
5584
5585   fi
5586
5587
5588
5589
5590 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5591 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5592 if test "${ac_cv_c_const+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h.  */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h.  */
5601
5602 int
5603 main ()
5604 {
5605 /* FIXME: Include the comments suggested by Paul. */
5606 #ifndef __cplusplus
5607   /* Ultrix mips cc rejects this.  */
5608   typedef int charset[2];
5609   const charset x;
5610   /* SunOS 4.1.1 cc rejects this.  */
5611   char const *const *ccp;
5612   char **p;
5613   /* NEC SVR4.0.2 mips cc rejects this.  */
5614   struct point {int x, y;};
5615   static struct point const zero = {0,0};
5616   /* AIX XL C 1.02.0.0 rejects this.
5617      It does not let you subtract one const X* pointer from another in
5618      an arm of an if-expression whose if-part is not a constant
5619      expression */
5620   const char *g = "string";
5621   ccp = &g + (g ? g-g : 0);
5622   /* HPUX 7.0 cc rejects these. */
5623   ++ccp;
5624   p = (char**) ccp;
5625   ccp = (char const *const *) p;
5626   { /* SCO 3.2v4 cc rejects this.  */
5627     char *t;
5628     char const *s = 0 ? (char *) 0 : (char const *) 0;
5629
5630     *t++ = 0;
5631   }
5632   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5633     int x[] = {25, 17};
5634     const int *foo = &x[0];
5635     ++foo;
5636   }
5637   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5638     typedef const int *iptr;
5639     iptr p = 0;
5640     ++p;
5641   }
5642   { /* AIX XL C 1.02.0.0 rejects this saying
5643        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5644     struct s { int j; const int *ap[3]; };
5645     struct s *b; b->j = 5;
5646   }
5647   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5648     const int foo = 10;
5649   }
5650 #endif
5651
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658   (eval $ac_compile) 2>conftest.er1
5659   ac_status=$?
5660   grep -v '^ *+' conftest.er1 >conftest.err
5661   rm -f conftest.er1
5662   cat conftest.err >&5
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } &&
5665          { ac_try='test -z "$ac_c_werror_flag"
5666                          || test ! -s conftest.err'
5667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668   (eval $ac_try) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; } &&
5672          { ac_try='test -s conftest.$ac_objext'
5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674   (eval $ac_try) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; }; then
5678   ac_cv_c_const=yes
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_cv_c_const=no
5684 fi
5685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5686 fi
5687 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5688 echo "${ECHO_T}$ac_cv_c_const" >&6
5689 if test $ac_cv_c_const = no; then
5690
5691 cat >>confdefs.h <<\_ACEOF
5692 #define const
5693 _ACEOF
5694
5695 fi
5696
5697
5698 echo "$as_me:$LINENO: checking for egrep" >&5
5699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5700 if test "${ac_cv_prog_egrep+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5704     then ac_cv_prog_egrep='grep -E'
5705     else ac_cv_prog_egrep='egrep'
5706     fi
5707 fi
5708 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5709 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5710  EGREP=$ac_cv_prog_egrep
5711
5712
5713 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5714 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5715 if test "${ac_cv_header_stdc+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h.  */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h.  */
5724 #include <stdlib.h>
5725 #include <stdarg.h>
5726 #include <string.h>
5727 #include <float.h>
5728
5729 int
5730 main ()
5731 {
5732
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739   (eval $ac_compile) 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -z "$ac_c_werror_flag"
5747                          || test ! -s conftest.err'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; } &&
5753          { ac_try='test -s conftest.$ac_objext'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   ac_cv_header_stdc=yes
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 ac_cv_header_stdc=no
5765 fi
5766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5767
5768 if test $ac_cv_header_stdc = yes; then
5769   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5770   cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h.  */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h.  */
5776 #include <string.h>
5777
5778 _ACEOF
5779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5780   $EGREP "memchr" >/dev/null 2>&1; then
5781   :
5782 else
5783   ac_cv_header_stdc=no
5784 fi
5785 rm -f conftest*
5786
5787 fi
5788
5789 if test $ac_cv_header_stdc = yes; then
5790   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797 #include <stdlib.h>
5798
5799 _ACEOF
5800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5801   $EGREP "free" >/dev/null 2>&1; then
5802   :
5803 else
5804   ac_cv_header_stdc=no
5805 fi
5806 rm -f conftest*
5807
5808 fi
5809
5810 if test $ac_cv_header_stdc = yes; then
5811   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5812   if test "$cross_compiling" = yes; then
5813   :
5814 else
5815   cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821 #include <ctype.h>
5822 #if ((' ' & 0x0FF) == 0x020)
5823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5825 #else
5826 # define ISLOWER(c) \
5827                    (('a' <= (c) && (c) <= 'i') \
5828                      || ('j' <= (c) && (c) <= 'r') \
5829                      || ('s' <= (c) && (c) <= 'z'))
5830 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5831 #endif
5832
5833 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5834 int
5835 main ()
5836 {
5837   int i;
5838   for (i = 0; i < 256; i++)
5839     if (XOR (islower (i), ISLOWER (i))
5840         || toupper (i) != TOUPPER (i))
5841       exit(2);
5842   exit (0);
5843 }
5844 _ACEOF
5845 rm -f conftest$ac_exeext
5846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5847   (eval $ac_link) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   :
5857 else
5858   echo "$as_me: program exited with status $ac_status" >&5
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 ( exit $ac_status )
5863 ac_cv_header_stdc=no
5864 fi
5865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 fi
5868 fi
5869 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5870 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5871 if test $ac_cv_header_stdc = yes; then
5872
5873 cat >>confdefs.h <<\_ACEOF
5874 #define STDC_HEADERS 1
5875 _ACEOF
5876
5877 fi
5878
5879
5880
5881
5882
5883
5884 ac_header_dirent=no
5885 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5886   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5887 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5888 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <sys/types.h>
5899 #include <$ac_hdr>
5900
5901 int
5902 main ()
5903 {
5904 if ((DIR *) 0)
5905 return 0;
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912   (eval $ac_compile) 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_c_werror_flag"
5920                          || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   eval "$as_ac_Header=yes"
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 eval "$as_ac_Header=no"
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5944   cat >>confdefs.h <<_ACEOF
5945 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5946 _ACEOF
5947
5948 ac_header_dirent=$ac_hdr; break
5949 fi
5950
5951 done
5952 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5953 if test $ac_header_dirent = dirent.h; then
5954   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5955 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5956 if test "${ac_cv_search_opendir+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   ac_func_search_save_LIBS=$LIBS
5960 ac_cv_search_opendir=no
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967
5968 /* Override any gcc2 internal prototype to avoid an error.  */
5969 #ifdef __cplusplus
5970 extern "C"
5971 #endif
5972 /* We use char because int might match the return type of a gcc2
5973    builtin and then its argument prototype would still apply.  */
5974 char opendir ();
5975 int
5976 main ()
5977 {
5978 opendir ();
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985   (eval $ac_link) 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -z "$ac_c_werror_flag"
5993                          || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest$ac_exeext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_search_opendir="none required"
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 fi
6011 rm -f conftest.err conftest.$ac_objext \
6012       conftest$ac_exeext conftest.$ac_ext
6013 if test "$ac_cv_search_opendir" = no; then
6014   for ac_lib in dir; do
6015     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6016     cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char opendir ();
6030 int
6031 main ()
6032 {
6033 opendir ();
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>conftest.er1
6041   ac_status=$?
6042   grep -v '^ *+' conftest.er1 >conftest.err
6043   rm -f conftest.er1
6044   cat conftest.err >&5
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } &&
6047          { ac_try='test -z "$ac_c_werror_flag"
6048                          || test ! -s conftest.err'
6049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050   (eval $ac_try) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; } &&
6054          { ac_try='test -s conftest$ac_exeext'
6055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056   (eval $ac_try) 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); }; }; then
6060   ac_cv_search_opendir="-l$ac_lib"
6061 break
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 fi
6067 rm -f conftest.err conftest.$ac_objext \
6068       conftest$ac_exeext conftest.$ac_ext
6069   done
6070 fi
6071 LIBS=$ac_func_search_save_LIBS
6072 fi
6073 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6074 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6075 if test "$ac_cv_search_opendir" != no; then
6076   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6077
6078 fi
6079
6080 else
6081   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6083 if test "${ac_cv_search_opendir+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   ac_func_search_save_LIBS=$LIBS
6087 ac_cv_search_opendir=no
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h.  */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h.  */
6094
6095 /* Override any gcc2 internal prototype to avoid an error.  */
6096 #ifdef __cplusplus
6097 extern "C"
6098 #endif
6099 /* We use char because int might match the return type of a gcc2
6100    builtin and then its argument prototype would still apply.  */
6101 char opendir ();
6102 int
6103 main ()
6104 {
6105 opendir ();
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112   (eval $ac_link) 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag"
6120                          || test ! -s conftest.err'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; } &&
6126          { ac_try='test -s conftest$ac_exeext'
6127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128   (eval $ac_try) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; }; then
6132   ac_cv_search_opendir="none required"
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 fi
6138 rm -f conftest.err conftest.$ac_objext \
6139       conftest$ac_exeext conftest.$ac_ext
6140 if test "$ac_cv_search_opendir" = no; then
6141   for ac_lib in x; do
6142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6143     cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149
6150 /* Override any gcc2 internal prototype to avoid an error.  */
6151 #ifdef __cplusplus
6152 extern "C"
6153 #endif
6154 /* We use char because int might match the return type of a gcc2
6155    builtin and then its argument prototype would still apply.  */
6156 char opendir ();
6157 int
6158 main ()
6159 {
6160 opendir ();
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext conftest$ac_exeext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167   (eval $ac_link) 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } &&
6174          { ac_try='test -z "$ac_c_werror_flag"
6175                          || test ! -s conftest.err'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; } &&
6181          { ac_try='test -s conftest$ac_exeext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_cv_search_opendir="-l$ac_lib"
6188 break
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 fi
6194 rm -f conftest.err conftest.$ac_objext \
6195       conftest$ac_exeext conftest.$ac_ext
6196   done
6197 fi
6198 LIBS=$ac_func_search_save_LIBS
6199 fi
6200 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6201 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6202 if test "$ac_cv_search_opendir" != no; then
6203   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6204
6205 fi
6206
6207 fi
6208
6209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6220                   inttypes.h stdint.h unistd.h
6221 do
6222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223 echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 $ac_includes_default
6235
6236 #include <$ac_header>
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240   (eval $ac_compile) 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } &&
6247          { ac_try='test -z "$ac_c_werror_flag"
6248                          || test ! -s conftest.err'
6249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250   (eval $ac_try) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); }; } &&
6254          { ac_try='test -s conftest.$ac_objext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   eval "$as_ac_Header=yes"
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 eval "$as_ac_Header=no"
6266 fi
6267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272   cat >>confdefs.h <<_ACEOF
6273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6274 _ACEOF
6275
6276 fi
6277
6278 done
6279
6280
6281
6282 for ac_header in dlfcn.h
6283 do
6284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286   echo "$as_me:$LINENO: checking for $ac_header" >&5
6287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 fi
6291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6293 else
6294   # Is the header compilable?
6295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 $ac_includes_default
6304 #include <$ac_header>
6305 _ACEOF
6306 rm -f conftest.$ac_objext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308   (eval $ac_compile) 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -z "$ac_c_werror_flag"
6316                          || test ! -s conftest.err'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; } &&
6322          { ac_try='test -s conftest.$ac_objext'
6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324   (eval $ac_try) 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); }; }; then
6328   ac_header_compiler=yes
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 ac_header_compiler=no
6334 fi
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6337 echo "${ECHO_T}$ac_header_compiler" >&6
6338
6339 # Is the header present?
6340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h.  */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h.  */
6348 #include <$ac_header>
6349 _ACEOF
6350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6352   ac_status=$?
6353   grep -v '^ *+' conftest.er1 >conftest.err
6354   rm -f conftest.er1
6355   cat conftest.err >&5
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); } >/dev/null; then
6358   if test -s conftest.err; then
6359     ac_cpp_err=$ac_c_preproc_warn_flag
6360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6361   else
6362     ac_cpp_err=
6363   fi
6364 else
6365   ac_cpp_err=yes
6366 fi
6367 if test -z "$ac_cpp_err"; then
6368   ac_header_preproc=yes
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373   ac_header_preproc=no
6374 fi
6375 rm -f conftest.err conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6377 echo "${ECHO_T}$ac_header_preproc" >&6
6378
6379 # So?  What about this header?
6380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6381   yes:no: )
6382     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6386     ac_header_preproc=yes
6387     ;;
6388   no:yes:* )
6389     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6391     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6392 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6393     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6395     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6396 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6399     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6401     (
6402       cat <<\_ASBOX
6403 ## ----------------------------------- ##
6404 ## Report this to llvmbugs@cs.uiuc.edu ##
6405 ## ----------------------------------- ##
6406 _ASBOX
6407     ) |
6408       sed "s/^/$as_me: WARNING:     /" >&2
6409     ;;
6410 esac
6411 echo "$as_me:$LINENO: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   eval "$as_ac_Header=\$ac_header_preproc"
6417 fi
6418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6420
6421 fi
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423   cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 _ACEOF
6426
6427 fi
6428
6429 done
6430
6431 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6432 if test "${enable_ltdl_install+set}" = set; then
6433   enableval="$enable_ltdl_install"
6434
6435 fi;
6436
6437
6438
6439 if test x"${enable_ltdl_install-no}" != xno; then
6440   INSTALL_LTDL_TRUE=
6441   INSTALL_LTDL_FALSE='#'
6442 else
6443   INSTALL_LTDL_TRUE='#'
6444   INSTALL_LTDL_FALSE=
6445 fi
6446
6447
6448
6449 if test x"${enable_ltdl_convenience-no}" != xno; then
6450   CONVENIENCE_LTDL_TRUE=
6451   CONVENIENCE_LTDL_FALSE='#'
6452 else
6453   CONVENIENCE_LTDL_TRUE='#'
6454   CONVENIENCE_LTDL_FALSE=
6455 fi
6456
6457
6458 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6459 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6460 library_names_spec=
6461 libname_spec='lib$name'
6462 soname_spec=
6463 shrext_cmds=".so"
6464 postinstall_cmds=
6465 postuninstall_cmds=
6466 finish_cmds=
6467 finish_eval=
6468 shlibpath_var=
6469 shlibpath_overrides_runpath=unknown
6470 version_type=none
6471 dynamic_linker="$host_os ld.so"
6472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6473 if test "$GCC" = yes; then
6474   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6475   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6476     # if the path contains ";" then we assume it to be the separator
6477     # otherwise default to the standard path separator (i.e. ":") - it is
6478     # assumed that no part of a normal pathname contains ";" but that should
6479     # okay in the real world where ";" in dirpaths is itself problematic.
6480     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6481   else
6482     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6483   fi
6484 else
6485   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6486 fi
6487 need_lib_prefix=unknown
6488 hardcode_into_libs=no
6489
6490 # when you set need_version to no, make sure it does not cause -set_version
6491 # flags to be left without arguments
6492 need_version=unknown
6493
6494 case $host_os in
6495 aix3*)
6496   version_type=linux
6497   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6498   shlibpath_var=LIBPATH
6499
6500   # AIX 3 has no versioning support, so we append a major version to the name.
6501   soname_spec='${libname}${release}${shared_ext}$major'
6502   ;;
6503
6504 aix4* | aix5*)
6505   version_type=linux
6506   need_lib_prefix=no
6507   need_version=no
6508   hardcode_into_libs=yes
6509   if test "$host_cpu" = ia64; then
6510     # AIX 5 supports IA64
6511     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6512     shlibpath_var=LD_LIBRARY_PATH
6513   else
6514     # With GCC up to 2.95.x, collect2 would create an import file
6515     # for dependence libraries.  The import file would start with
6516     # the line `#! .'.  This would cause the generated library to
6517     # depend on `.', always an invalid library.  This was fixed in
6518     # development snapshots of GCC prior to 3.0.
6519     case $host_os in
6520       aix4 | aix4.[01] | aix4.[01].*)
6521       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6522            echo ' yes '
6523            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6524         :
6525       else
6526         can_build_shared=no
6527       fi
6528       ;;
6529     esac
6530     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6531     # soname into executable. Probably we can add versioning support to
6532     # collect2, so additional links can be useful in future.
6533     if test "$aix_use_runtimelinking" = yes; then
6534       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6535       # instead of lib<name>.a to let people know that these are not
6536       # typical AIX shared libraries.
6537       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6538     else
6539       # We preserve .a as extension for shared libraries through AIX4.2
6540       # and later when we are not doing run time linking.
6541       library_names_spec='${libname}${release}.a $libname.a'
6542       soname_spec='${libname}${release}${shared_ext}$major'
6543     fi
6544     shlibpath_var=LIBPATH
6545   fi
6546   ;;
6547
6548 amigaos*)
6549   library_names_spec='$libname.ixlibrary $libname.a'
6550   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6551   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'
6552   ;;
6553
6554 beos*)
6555   library_names_spec='${libname}${shared_ext}'
6556   dynamic_linker="$host_os ld.so"
6557   shlibpath_var=LIBRARY_PATH
6558   ;;
6559
6560 bsdi[45]*)
6561   version_type=linux
6562   need_version=no
6563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6564   soname_spec='${libname}${release}${shared_ext}$major'
6565   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6566   shlibpath_var=LD_LIBRARY_PATH
6567   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6568   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6569   # the default ld.so.conf also contains /usr/contrib/lib and
6570   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6571   # libtool to hard-code these into programs
6572   ;;
6573
6574 cygwin* | mingw* | pw32*)
6575   version_type=windows
6576   shrext_cmds=".dll"
6577   need_version=no
6578   need_lib_prefix=no
6579
6580   case $GCC,$host_os in
6581   yes,cygwin* | yes,mingw* | yes,pw32*)
6582     library_names_spec='$libname.dll.a'
6583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6584     postinstall_cmds='base_file=`basename \${file}`~
6585       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6586       dldir=$destdir/`dirname \$dlpath`~
6587       test -d \$dldir || mkdir -p \$dldir~
6588       $install_prog $dir/$dlname \$dldir/$dlname'
6589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6590       dlpath=$dir/\$dldll~
6591        $rm \$dlpath'
6592     shlibpath_overrides_runpath=yes
6593
6594     case $host_os in
6595     cygwin*)
6596       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6597       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6598       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6599       ;;
6600     mingw*)
6601       # MinGW DLLs use traditional 'lib' prefix
6602       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6603       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6604       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6605         # It is most probably a Windows format PATH printed by
6606         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6607         # path with ; separators, and with drive letters. We can handle the
6608         # drive letters (cygwin fileutils understands them), so leave them,
6609         # especially as we might pass files found there to a mingw objdump,
6610         # which wouldn't understand a cygwinified path. Ahh.
6611         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6612       else
6613         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6614       fi
6615       ;;
6616     pw32*)
6617       # pw32 DLLs use 'pw' prefix rather than 'lib'
6618       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6619       ;;
6620     esac
6621     ;;
6622
6623   *)
6624     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6625     ;;
6626   esac
6627   dynamic_linker='Win32 ld.exe'
6628   # FIXME: first we should search . and the directory the executable is in
6629   shlibpath_var=PATH
6630   ;;
6631
6632 darwin* | rhapsody*)
6633   dynamic_linker="$host_os dyld"
6634   version_type=darwin
6635   need_lib_prefix=no
6636   need_version=no
6637   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6638   soname_spec='${libname}${release}${major}$shared_ext'
6639   shlibpath_overrides_runpath=yes
6640   shlibpath_var=DYLD_LIBRARY_PATH
6641   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6642   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6643   if test "$GCC" = yes; then
6644     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"`
6645   else
6646     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6647   fi
6648   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6649   ;;
6650
6651 dgux*)
6652   version_type=linux
6653   need_lib_prefix=no
6654   need_version=no
6655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6656   soname_spec='${libname}${release}${shared_ext}$major'
6657   shlibpath_var=LD_LIBRARY_PATH
6658   ;;
6659
6660 freebsd1*)
6661   dynamic_linker=no
6662   ;;
6663
6664 kfreebsd*-gnu)
6665   version_type=linux
6666   need_lib_prefix=no
6667   need_version=no
6668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6669   soname_spec='${libname}${release}${shared_ext}$major'
6670   shlibpath_var=LD_LIBRARY_PATH
6671   shlibpath_overrides_runpath=no
6672   hardcode_into_libs=yes
6673   dynamic_linker='GNU ld.so'
6674   ;;
6675
6676 freebsd*)
6677   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6678   version_type=freebsd-$objformat
6679   case $version_type in
6680     freebsd-elf*)
6681       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6682       need_version=no
6683       need_lib_prefix=no
6684       ;;
6685     freebsd-*)
6686       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6687       need_version=yes
6688       ;;
6689   esac
6690   shlibpath_var=LD_LIBRARY_PATH
6691   case $host_os in
6692   freebsd2*)
6693     shlibpath_overrides_runpath=yes
6694     ;;
6695   freebsd3.01* | freebsdelf3.01*)
6696     shlibpath_overrides_runpath=yes
6697     hardcode_into_libs=yes
6698     ;;
6699   *) # from 3.2 on
6700     shlibpath_overrides_runpath=no
6701     hardcode_into_libs=yes
6702     ;;
6703   esac
6704   ;;
6705
6706 gnu*)
6707   version_type=linux
6708   need_lib_prefix=no
6709   need_version=no
6710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6711   soname_spec='${libname}${release}${shared_ext}$major'
6712   shlibpath_var=LD_LIBRARY_PATH
6713   hardcode_into_libs=yes
6714   ;;
6715
6716 hpux9* | hpux10* | hpux11*)
6717   # Give a soname corresponding to the major version so that dld.sl refuses to
6718   # link against other versions.
6719   version_type=sunos
6720   need_lib_prefix=no
6721   need_version=no
6722   case "$host_cpu" in
6723   ia64*)
6724     shrext_cmds='.so'
6725     hardcode_into_libs=yes
6726     dynamic_linker="$host_os dld.so"
6727     shlibpath_var=LD_LIBRARY_PATH
6728     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6730     soname_spec='${libname}${release}${shared_ext}$major'
6731     if test "X$HPUX_IA64_MODE" = X32; then
6732       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6733     else
6734       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6735     fi
6736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6737     ;;
6738    hppa*64*)
6739      shrext_cmds='.sl'
6740      hardcode_into_libs=yes
6741      dynamic_linker="$host_os dld.sl"
6742      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6743      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6744      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6745      soname_spec='${libname}${release}${shared_ext}$major'
6746      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6747      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6748      ;;
6749    *)
6750     shrext_cmds='.sl'
6751     dynamic_linker="$host_os dld.sl"
6752     shlibpath_var=SHLIB_PATH
6753     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6755     soname_spec='${libname}${release}${shared_ext}$major'
6756     ;;
6757   esac
6758   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6759   postinstall_cmds='chmod 555 $lib'
6760   ;;
6761
6762 irix5* | irix6* | nonstopux*)
6763   case $host_os in
6764     nonstopux*) version_type=nonstopux ;;
6765     *)
6766         if test "$lt_cv_prog_gnu_ld" = yes; then
6767                 version_type=linux
6768         else
6769                 version_type=irix
6770         fi ;;
6771   esac
6772   need_lib_prefix=no
6773   need_version=no
6774   soname_spec='${libname}${release}${shared_ext}$major'
6775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6776   case $host_os in
6777   irix5* | nonstopux*)
6778     libsuff= shlibsuff=
6779     ;;
6780   *)
6781     case $LD in # libtool.m4 will add one of these switches to LD
6782     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6783       libsuff= shlibsuff= libmagic=32-bit;;
6784     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6785       libsuff=32 shlibsuff=N32 libmagic=N32;;
6786     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6787       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6788     *) libsuff= shlibsuff= libmagic=never-match;;
6789     esac
6790     ;;
6791   esac
6792   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6793   shlibpath_overrides_runpath=no
6794   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6795   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6796   hardcode_into_libs=yes
6797   ;;
6798
6799 # No shared lib support for Linux oldld, aout, or coff.
6800 linux*oldld* | linux*aout* | linux*coff*)
6801   dynamic_linker=no
6802   ;;
6803
6804 # This must be Linux ELF.
6805 linux*)
6806   version_type=linux
6807   need_lib_prefix=no
6808   need_version=no
6809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810   soname_spec='${libname}${release}${shared_ext}$major'
6811   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6812   shlibpath_var=LD_LIBRARY_PATH
6813   shlibpath_overrides_runpath=no
6814   # This implies no fast_install, which is unacceptable.
6815   # Some rework will be needed to allow for fast_install
6816   # before this can be enabled.
6817   hardcode_into_libs=yes
6818
6819   # Append ld.so.conf contents to the search path
6820   if test -f /etc/ld.so.conf; then
6821     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6822     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6823   fi
6824
6825   # We used to test for /lib/ld.so.1 and disable shared libraries on
6826   # powerpc, because MkLinux only supported shared libraries with the
6827   # GNU dynamic linker.  Since this was broken with cross compilers,
6828   # most powerpc-linux boxes support dynamic linking these days and
6829   # people can always --disable-shared, the test was removed, and we
6830   # assume the GNU/Linux dynamic linker is in use.
6831   dynamic_linker='GNU/Linux ld.so'
6832   ;;
6833
6834 knetbsd*-gnu)
6835   version_type=linux
6836   need_lib_prefix=no
6837   need_version=no
6838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6839   soname_spec='${libname}${release}${shared_ext}$major'
6840   shlibpath_var=LD_LIBRARY_PATH
6841   shlibpath_overrides_runpath=no
6842   hardcode_into_libs=yes
6843   dynamic_linker='GNU ld.so'
6844   ;;
6845
6846 netbsd*)
6847   version_type=sunos
6848   need_lib_prefix=no
6849   need_version=no
6850   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6852     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6853     dynamic_linker='NetBSD (a.out) ld.so'
6854   else
6855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6856     soname_spec='${libname}${release}${shared_ext}$major'
6857     dynamic_linker='NetBSD ld.elf_so'
6858   fi
6859   shlibpath_var=LD_LIBRARY_PATH
6860   shlibpath_overrides_runpath=yes
6861   hardcode_into_libs=yes
6862   ;;
6863
6864 newsos6)
6865   version_type=linux
6866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867   shlibpath_var=LD_LIBRARY_PATH
6868   shlibpath_overrides_runpath=yes
6869   ;;
6870
6871 nto-qnx*)
6872   version_type=linux
6873   need_lib_prefix=no
6874   need_version=no
6875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6876   soname_spec='${libname}${release}${shared_ext}$major'
6877   shlibpath_var=LD_LIBRARY_PATH
6878   shlibpath_overrides_runpath=yes
6879   ;;
6880
6881 openbsd*)
6882   version_type=sunos
6883   need_lib_prefix=no
6884   need_version=no
6885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6887   shlibpath_var=LD_LIBRARY_PATH
6888   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6889     case $host_os in
6890       openbsd2.[89] | openbsd2.[89].*)
6891         shlibpath_overrides_runpath=no
6892         ;;
6893       *)
6894         shlibpath_overrides_runpath=yes
6895         ;;
6896       esac
6897   else
6898     shlibpath_overrides_runpath=yes
6899   fi
6900   ;;
6901
6902 os2*)
6903   libname_spec='$name'
6904   shrext_cmds=".dll"
6905   need_lib_prefix=no
6906   library_names_spec='$libname${shared_ext} $libname.a'
6907   dynamic_linker='OS/2 ld.exe'
6908   shlibpath_var=LIBPATH
6909   ;;
6910
6911 osf3* | osf4* | osf5*)
6912   version_type=osf
6913   need_lib_prefix=no
6914   need_version=no
6915   soname_spec='${libname}${release}${shared_ext}$major'
6916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917   shlibpath_var=LD_LIBRARY_PATH
6918   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6919   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6920   ;;
6921
6922 sco3.2v5*)
6923   version_type=osf
6924   soname_spec='${libname}${release}${shared_ext}$major'
6925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926   shlibpath_var=LD_LIBRARY_PATH
6927   ;;
6928
6929 solaris*)
6930   version_type=linux
6931   need_lib_prefix=no
6932   need_version=no
6933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6934   soname_spec='${libname}${release}${shared_ext}$major'
6935   shlibpath_var=LD_LIBRARY_PATH
6936   shlibpath_overrides_runpath=yes
6937   hardcode_into_libs=yes
6938   # ldd complains unless libraries are executable
6939   postinstall_cmds='chmod +x $lib'
6940   ;;
6941
6942 sunos4*)
6943   version_type=sunos
6944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6945   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6946   shlibpath_var=LD_LIBRARY_PATH
6947   shlibpath_overrides_runpath=yes
6948   if test "$with_gnu_ld" = yes; then
6949     need_lib_prefix=no
6950   fi
6951   need_version=yes
6952   ;;
6953
6954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6955   version_type=linux
6956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6957   soname_spec='${libname}${release}${shared_ext}$major'
6958   shlibpath_var=LD_LIBRARY_PATH
6959   case $host_vendor in
6960     sni)
6961       shlibpath_overrides_runpath=no
6962       need_lib_prefix=no
6963       export_dynamic_flag_spec='${wl}-Blargedynsym'
6964       runpath_var=LD_RUN_PATH
6965       ;;
6966     siemens)
6967       need_lib_prefix=no
6968       ;;
6969     motorola)
6970       need_lib_prefix=no
6971       need_version=no
6972       shlibpath_overrides_runpath=no
6973       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6974       ;;
6975   esac
6976   ;;
6977
6978 sysv4*MP*)
6979   if test -d /usr/nec ;then
6980     version_type=linux
6981     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6982     soname_spec='$libname${shared_ext}.$major'
6983     shlibpath_var=LD_LIBRARY_PATH
6984   fi
6985   ;;
6986
6987 uts4*)
6988   version_type=linux
6989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6990   soname_spec='${libname}${release}${shared_ext}$major'
6991   shlibpath_var=LD_LIBRARY_PATH
6992   ;;
6993
6994 *)
6995   dynamic_linker=no
6996   ;;
6997 esac
6998 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6999 echo "${ECHO_T}$dynamic_linker" >&6
7000 test "$dynamic_linker" = no && can_build_shared=no
7001
7002
7003 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7004 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7005 if test "${libltdl_cv_shlibext+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008
7009 module=yes
7010 eval libltdl_cv_shlibext=$shrext_cmds
7011
7012 fi
7013 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7014 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7015 if test -n "$libltdl_cv_shlibext"; then
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7019 _ACEOF
7020
7021 fi
7022
7023
7024 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7025 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7026 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   libltdl_cv_shlibpath_var="$shlibpath_var"
7030 fi
7031 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7032 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7033 if test -n "$libltdl_cv_shlibpath_var"; then
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7037 _ACEOF
7038
7039 fi
7040
7041
7042 echo "$as_me:$LINENO: checking for the default library search path" >&5
7043 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7044 if test "${libltdl_cv_sys_search_path+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7048 fi
7049 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7050 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7051 if test -n "$libltdl_cv_sys_search_path"; then
7052   sys_search_path=
7053   for dir in $libltdl_cv_sys_search_path; do
7054     if test -z "$sys_search_path"; then
7055       sys_search_path="$dir"
7056     else
7057       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7058     fi
7059   done
7060
7061 cat >>confdefs.h <<_ACEOF
7062 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7063 _ACEOF
7064
7065 fi
7066
7067 echo "$as_me:$LINENO: checking for objdir" >&5
7068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7069 if test "${libltdl_cv_objdir+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   libltdl_cv_objdir="$objdir"
7073   if test -n "$objdir"; then
7074     :
7075   else
7076     rm -f .libs 2>/dev/null
7077     mkdir .libs 2>/dev/null
7078     if test -d .libs; then
7079       libltdl_cv_objdir=.libs
7080     else
7081       # MS-DOS does not allow filenames that begin with a dot.
7082       libltdl_cv_objdir=_libs
7083     fi
7084   rmdir .libs 2>/dev/null
7085   fi
7086
7087 fi
7088 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7089 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7090
7091 cat >>confdefs.h <<_ACEOF
7092 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7093 _ACEOF
7094
7095
7096 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7097 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7098 if test "${lt_cv_path_NM+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   if test -n "$NM"; then
7102   # Let the user override the test.
7103   lt_cv_path_NM="$NM"
7104 else
7105   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7106   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7107     IFS="$lt_save_ifs"
7108     test -z "$ac_dir" && ac_dir=.
7109     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7110     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7111       # Check to see if the nm accepts a BSD-compat flag.
7112       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7113       #   nm: unknown option "B" ignored
7114       # Tru64's nm complains that /dev/null is an invalid object file
7115       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7116       */dev/null* | *'Invalid file or object type'*)
7117         lt_cv_path_NM="$tmp_nm -B"
7118         break
7119         ;;
7120       *)
7121         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7122         */dev/null*)
7123           lt_cv_path_NM="$tmp_nm -p"
7124           break
7125           ;;
7126         *)
7127           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7128           continue # so that we can try to find one that supports BSD flags
7129           ;;
7130         esac
7131       esac
7132     fi
7133   done
7134   IFS="$lt_save_ifs"
7135   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7136 fi
7137 fi
7138 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7139 echo "${ECHO_T}$lt_cv_path_NM" >&6
7140 NM="$lt_cv_path_NM"
7141
7142
7143
7144
7145
7146 # Check for command to grab the raw symbol name followed by C symbol from nm.
7147 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7148 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7149 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152
7153 # These are sane defaults that work on at least a few old systems.
7154 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7155
7156 # Character class describing NM global symbol codes.
7157 symcode='[BCDEGRST]'
7158
7159 # Regexp to match symbols that can be accessed directly from C.
7160 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7161
7162 # Transform the above into a raw symbol and a C symbol.
7163 symxfrm='\1 \2\3 \3'
7164
7165 # Transform an extracted symbol line into a proper C declaration
7166 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7167
7168 # Transform an extracted symbol line into symbol name and symbol address
7169 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'"
7170
7171 # Define system-specific variables.
7172 case $host_os in
7173 aix*)
7174   symcode='[BCDT]'
7175   ;;
7176 cygwin* | mingw* | pw32*)
7177   symcode='[ABCDGISTW]'
7178   ;;
7179 hpux*) # Its linker distinguishes data from code symbols
7180   if test "$host_cpu" = ia64; then
7181     symcode='[ABCDEGRST]'
7182   fi
7183   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7184   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'"
7185   ;;
7186 linux*)
7187   if test "$host_cpu" = ia64; then
7188     symcode='[ABCDGIRSTW]'
7189     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7190     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'"
7191   fi
7192   ;;
7193 irix* | nonstopux*)
7194   symcode='[BCDEGRST]'
7195   ;;
7196 osf*)
7197   symcode='[BCDEGQRST]'
7198   ;;
7199 solaris* | sysv5*)
7200   symcode='[BDRT]'
7201   ;;
7202 sysv4)
7203   symcode='[DFNSTU]'
7204   ;;
7205 esac
7206
7207 # Handle CRLF in mingw tool chain
7208 opt_cr=
7209 case $build_os in
7210 mingw*)
7211   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7212   ;;
7213 esac
7214
7215 # If we're using GNU nm, then use its standard symbol codes.
7216 case `$NM -V 2>&1` in
7217 *GNU* | *'with BFD'*)
7218   symcode='[ABCDGIRSTW]' ;;
7219 esac
7220
7221 # Try without a prefix undercore, then with it.
7222 for ac_symprfx in "" "_"; do
7223
7224   # Write the raw and C identifiers.
7225   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7226
7227   # Check to see that the pipe works correctly.
7228   pipe_works=no
7229
7230   rm -f conftest*
7231   cat > conftest.$ac_ext <<EOF
7232 #ifdef __cplusplus
7233 extern "C" {
7234 #endif
7235 char nm_test_var;
7236 void nm_test_func(){}
7237 #ifdef __cplusplus
7238 }
7239 #endif
7240 int main(){nm_test_var='a';nm_test_func();return(0);}
7241 EOF
7242
7243   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244   (eval $ac_compile) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; then
7248     # Now try to grab the symbols.
7249     nlist=conftest.nm
7250     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7251   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } && test -s "$nlist"; then
7255       # Try sorting and uniquifying the output.
7256       if sort "$nlist" | uniq > "$nlist"T; then
7257         mv -f "$nlist"T "$nlist"
7258       else
7259         rm -f "$nlist"T
7260       fi
7261
7262       # Make sure that we snagged all the symbols we need.
7263       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7264         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7265           cat <<EOF > conftest.$ac_ext
7266 #ifdef __cplusplus
7267 extern "C" {
7268 #endif
7269
7270 EOF
7271           # Now generate the symbol file.
7272           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7273
7274           cat <<EOF >> conftest.$ac_ext
7275 #if defined (__STDC__) && __STDC__
7276 # define lt_ptr_t void *
7277 #else
7278 # define lt_ptr_t char *
7279 # define const
7280 #endif
7281
7282 /* The mapping between symbol names and symbols. */
7283 const struct {
7284   const char *name;
7285   lt_ptr_t address;
7286 }
7287 lt_preloaded_symbols[] =
7288 {
7289 EOF
7290           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7291           cat <<\EOF >> conftest.$ac_ext
7292   {0, (lt_ptr_t) 0}
7293 };
7294
7295 #ifdef __cplusplus
7296 }
7297 #endif
7298 EOF
7299           # Now try linking the two files.
7300           mv conftest.$ac_objext conftstm.$ac_objext
7301           lt_save_LIBS="$LIBS"
7302           lt_save_CFLAGS="$CFLAGS"
7303           LIBS="conftstm.$ac_objext"
7304           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7305           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306   (eval $ac_link) 2>&5
7307   ac_status=$?
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7310             pipe_works=yes
7311           fi
7312           LIBS="$lt_save_LIBS"
7313           CFLAGS="$lt_save_CFLAGS"
7314         else
7315           echo "cannot find nm_test_func in $nlist" >&5
7316         fi
7317       else
7318         echo "cannot find nm_test_var in $nlist" >&5
7319       fi
7320     else
7321       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7322     fi
7323   else
7324     echo "$progname: failed program was:" >&5
7325     cat conftest.$ac_ext >&5
7326   fi
7327   rm -f conftest* conftst*
7328
7329   # Do not use the global_symbol_pipe unless it works.
7330   if test "$pipe_works" = yes; then
7331     break
7332   else
7333     lt_cv_sys_global_symbol_pipe=
7334   fi
7335 done
7336
7337 fi
7338
7339 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7340   lt_cv_sys_global_symbol_to_cdecl=
7341 fi
7342 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7343   echo "$as_me:$LINENO: result: failed" >&5
7344 echo "${ECHO_T}failed" >&6
7345 else
7346   echo "$as_me:$LINENO: result: ok" >&5
7347 echo "${ECHO_T}ok" >&6
7348 fi
7349
7350
7351 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7352 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7353 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7357     libltdl_cv_preloaded_symbols=yes
7358   else
7359     libltdl_cv_preloaded_symbols=no
7360   fi
7361
7362 fi
7363 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7364 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7365 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7366
7367 cat >>confdefs.h <<\_ACEOF
7368 #define HAVE_PRELOADED_SYMBOLS 1
7369 _ACEOF
7370
7371 fi
7372
7373 LIBADD_DL=
7374
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381
7382 echo "$as_me:$LINENO: checking for shl_load" >&5
7383 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7384 if test "${ac_cv_func_shl_load+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7395 #define shl_load innocuous_shl_load
7396
7397 /* System header to define __stub macros and hopefully few prototypes,
7398     which can conflict with char shl_load (); below.
7399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400     <limits.h> exists even on freestanding compilers.  */
7401
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407
7408 #undef shl_load
7409
7410 /* Override any gcc2 internal prototype to avoid an error.  */
7411 #ifdef __cplusplus
7412 extern "C"
7413 {
7414 #endif
7415 /* We use char because int might match the return type of a gcc2
7416    builtin and then its argument prototype would still apply.  */
7417 char shl_load ();
7418 /* The GNU C library defines this for functions which it implements
7419     to always fail with ENOSYS.  Some functions are actually named
7420     something starting with __ and the normal name is an alias.  */
7421 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7422 choke me
7423 #else
7424 char (*f) () = shl_load;
7425 #endif
7426 #ifdef __cplusplus
7427 }
7428 #endif
7429
7430 int
7431 main ()
7432 {
7433 return f != shl_load;
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440   (eval $ac_link) 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -z "$ac_c_werror_flag"
7448                          || test ! -s conftest.err'
7449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; } &&
7454          { ac_try='test -s conftest$ac_exeext'
7455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456   (eval $ac_try) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; }; then
7460   ac_cv_func_shl_load=yes
7461 else
7462   echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465 ac_cv_func_shl_load=no
7466 fi
7467 rm -f conftest.err conftest.$ac_objext \
7468       conftest$ac_exeext conftest.$ac_ext
7469 fi
7470 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7471 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7472 if test $ac_cv_func_shl_load = yes; then
7473
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_SHL_LOAD 1
7476 _ACEOF
7477
7478 else
7479   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7480 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7481 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-ldld  $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h.  */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h.  */
7492
7493 /* Override any gcc2 internal prototype to avoid an error.  */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 /* We use char because int might match the return type of a gcc2
7498    builtin and then its argument prototype would still apply.  */
7499 char shl_load ();
7500 int
7501 main ()
7502 {
7503 shl_load ();
7504   ;
7505   return 0;
7506 }
7507 _ACEOF
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510   (eval $ac_link) 2>conftest.er1
7511   ac_status=$?
7512   grep -v '^ *+' conftest.er1 >conftest.err
7513   rm -f conftest.er1
7514   cat conftest.err >&5
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -z "$ac_c_werror_flag"
7518                          || test ! -s conftest.err'
7519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520   (eval $ac_try) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); }; } &&
7524          { ac_try='test -s conftest$ac_exeext'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; }; then
7530   ac_cv_lib_dld_shl_load=yes
7531 else
7532   echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_cv_lib_dld_shl_load=no
7536 fi
7537 rm -f conftest.err conftest.$ac_objext \
7538       conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7542 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7543 if test $ac_cv_lib_dld_shl_load = yes; then
7544
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_SHL_LOAD 1
7547 _ACEOF
7548
7549         LIBADD_DL="$LIBADD_DL -ldld"
7550 else
7551   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   ac_check_lib_save_LIBS=$LIBS
7557 LIBS="-ldl  $LIBS"
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564
7565 /* Override any gcc2 internal prototype to avoid an error.  */
7566 #ifdef __cplusplus
7567 extern "C"
7568 #endif
7569 /* We use char because int might match the return type of a gcc2
7570    builtin and then its argument prototype would still apply.  */
7571 char dlopen ();
7572 int
7573 main ()
7574 {
7575 dlopen ();
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest.$ac_objext conftest$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582   (eval $ac_link) 2>conftest.er1
7583   ac_status=$?
7584   grep -v '^ *+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } &&
7589          { ac_try='test -z "$ac_c_werror_flag"
7590                          || test ! -s conftest.err'
7591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592   (eval $ac_try) 2>&5
7593   ac_status=$?
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); }; } &&
7596          { ac_try='test -s conftest$ac_exeext'
7597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598   (eval $ac_try) 2>&5
7599   ac_status=$?
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); }; }; then
7602   ac_cv_lib_dl_dlopen=yes
7603 else
7604   echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 ac_cv_lib_dl_dlopen=no
7608 fi
7609 rm -f conftest.err conftest.$ac_objext \
7610       conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7612 fi
7613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7615 if test $ac_cv_lib_dl_dlopen = yes; then
7616
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_LIBDL 1
7619 _ACEOF
7620
7621                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7622 else
7623   cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629 #if HAVE_DLFCN_H
7630 #  include <dlfcn.h>
7631 #endif
7632
7633 int
7634 main ()
7635 {
7636 dlopen(0, 0);
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7643   (eval $ac_link) 2>conftest.er1
7644   ac_status=$?
7645   grep -v '^ *+' conftest.er1 >conftest.err
7646   rm -f conftest.er1
7647   cat conftest.err >&5
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); } &&
7650          { ac_try='test -z "$ac_c_werror_flag"
7651                          || test ! -s conftest.err'
7652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653   (eval $ac_try) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); }; } &&
7657          { ac_try='test -s conftest$ac_exeext'
7658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659   (eval $ac_try) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; }; then
7663
7664 cat >>confdefs.h <<\_ACEOF
7665 #define HAVE_LIBDL 1
7666 _ACEOF
7667  libltdl_cv_func_dlopen="yes"
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7673 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7674 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   ac_check_lib_save_LIBS=$LIBS
7678 LIBS="-lsvld  $LIBS"
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h.  */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h.  */
7685
7686 /* Override any gcc2 internal prototype to avoid an error.  */
7687 #ifdef __cplusplus
7688 extern "C"
7689 #endif
7690 /* We use char because int might match the return type of a gcc2
7691    builtin and then its argument prototype would still apply.  */
7692 char dlopen ();
7693 int
7694 main ()
7695 {
7696 dlopen ();
7697   ;
7698   return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest.$ac_objext conftest$ac_exeext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703   (eval $ac_link) 2>conftest.er1
7704   ac_status=$?
7705   grep -v '^ *+' conftest.er1 >conftest.err
7706   rm -f conftest.er1
7707   cat conftest.err >&5
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } &&
7710          { ac_try='test -z "$ac_c_werror_flag"
7711                          || test ! -s conftest.err'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; } &&
7717          { ac_try='test -s conftest$ac_exeext'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; }; then
7723   ac_cv_lib_svld_dlopen=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 ac_cv_lib_svld_dlopen=no
7729 fi
7730 rm -f conftest.err conftest.$ac_objext \
7731       conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7733 fi
7734 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7735 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7736 if test $ac_cv_lib_svld_dlopen = yes; then
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_LIBDL 1
7740 _ACEOF
7741
7742                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7743 else
7744   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7745 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7746 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-ldld  $LIBS"
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757
7758 /* Override any gcc2 internal prototype to avoid an error.  */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 /* We use char because int might match the return type of a gcc2
7763    builtin and then its argument prototype would still apply.  */
7764 char dld_link ();
7765 int
7766 main ()
7767 {
7768 dld_link ();
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775   (eval $ac_link) 2>conftest.er1
7776   ac_status=$?
7777   grep -v '^ *+' conftest.er1 >conftest.err
7778   rm -f conftest.er1
7779   cat conftest.err >&5
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); } &&
7782          { ac_try='test -z "$ac_c_werror_flag"
7783                          || test ! -s conftest.err'
7784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785   (eval $ac_try) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; } &&
7789          { ac_try='test -s conftest$ac_exeext'
7790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791   (eval $ac_try) 2>&5
7792   ac_status=$?
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); }; }; then
7795   ac_cv_lib_dld_dld_link=yes
7796 else
7797   echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800 ac_cv_lib_dld_dld_link=no
7801 fi
7802 rm -f conftest.err conftest.$ac_objext \
7803       conftest$ac_exeext conftest.$ac_ext
7804 LIBS=$ac_check_lib_save_LIBS
7805 fi
7806 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7807 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7808 if test $ac_cv_lib_dld_dld_link = yes; then
7809
7810 cat >>confdefs.h <<\_ACEOF
7811 #define HAVE_DLD 1
7812 _ACEOF
7813
7814                 LIBADD_DL="$LIBADD_DL -ldld"
7815 else
7816   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7817 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7818 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h.  */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h.  */
7827 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7829 #define _dyld_func_lookup innocuous__dyld_func_lookup
7830
7831 /* System header to define __stub macros and hopefully few prototypes,
7832     which can conflict with char _dyld_func_lookup (); below.
7833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7834     <limits.h> exists even on freestanding compilers.  */
7835
7836 #ifdef __STDC__
7837 # include <limits.h>
7838 #else
7839 # include <assert.h>
7840 #endif
7841
7842 #undef _dyld_func_lookup
7843
7844 /* Override any gcc2 internal prototype to avoid an error.  */
7845 #ifdef __cplusplus
7846 extern "C"
7847 {
7848 #endif
7849 /* We use char because int might match the return type of a gcc2
7850    builtin and then its argument prototype would still apply.  */
7851 char _dyld_func_lookup ();
7852 /* The GNU C library defines this for functions which it implements
7853     to always fail with ENOSYS.  Some functions are actually named
7854     something starting with __ and the normal name is an alias.  */
7855 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7856 choke me
7857 #else
7858 char (*f) () = _dyld_func_lookup;
7859 #endif
7860 #ifdef __cplusplus
7861 }
7862 #endif
7863
7864 int
7865 main ()
7866 {
7867 return f != _dyld_func_lookup;
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874   (eval $ac_link) 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } &&
7881          { ac_try='test -z "$ac_c_werror_flag"
7882                          || test ! -s conftest.err'
7883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884   (eval $ac_try) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; } &&
7888          { ac_try='test -s conftest$ac_exeext'
7889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890   (eval $ac_try) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; }; then
7894   ac_cv_func__dyld_func_lookup=yes
7895 else
7896   echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 ac_cv_func__dyld_func_lookup=no
7900 fi
7901 rm -f conftest.err conftest.$ac_objext \
7902       conftest$ac_exeext conftest.$ac_ext
7903 fi
7904 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7905 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7906 if test $ac_cv_func__dyld_func_lookup = yes; then
7907
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_DYLD 1
7910 _ACEOF
7911
7912 fi
7913
7914
7915 fi
7916
7917
7918 fi
7919
7920
7921 fi
7922 rm -f conftest.err conftest.$ac_objext \
7923       conftest$ac_exeext conftest.$ac_ext
7924
7925 fi
7926
7927
7928 fi
7929
7930
7931 fi
7932
7933
7934 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7935 then
7936   lt_save_LIBS="$LIBS"
7937   LIBS="$LIBS $LIBADD_DL"
7938
7939 for ac_func in dlerror
7940 do
7941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7942 echo "$as_me:$LINENO: checking for $ac_func" >&5
7943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7944 if eval "test \"\${$as_ac_var+set}\" = set"; then
7945   echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947   cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h.  */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h.  */
7953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7955 #define $ac_func innocuous_$ac_func
7956
7957 /* System header to define __stub macros and hopefully few prototypes,
7958     which can conflict with char $ac_func (); below.
7959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7960     <limits.h> exists even on freestanding compilers.  */
7961
7962 #ifdef __STDC__
7963 # include <limits.h>
7964 #else
7965 # include <assert.h>
7966 #endif
7967
7968 #undef $ac_func
7969
7970 /* Override any gcc2 internal prototype to avoid an error.  */
7971 #ifdef __cplusplus
7972 extern "C"
7973 {
7974 #endif
7975 /* We use char because int might match the return type of a gcc2
7976    builtin and then its argument prototype would still apply.  */
7977 char $ac_func ();
7978 /* The GNU C library defines this for functions which it implements
7979     to always fail with ENOSYS.  Some functions are actually named
7980     something starting with __ and the normal name is an alias.  */
7981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7982 choke me
7983 #else
7984 char (*f) () = $ac_func;
7985 #endif
7986 #ifdef __cplusplus
7987 }
7988 #endif
7989
7990 int
7991 main ()
7992 {
7993 return f != $ac_func;
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000   (eval $ac_link) 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -z "$ac_c_werror_flag"
8008                          || test ! -s conftest.err'
8009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010   (eval $ac_try) 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); }; } &&
8014          { ac_try='test -s conftest$ac_exeext'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   eval "$as_ac_var=yes"
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 eval "$as_ac_var=no"
8026 fi
8027 rm -f conftest.err conftest.$ac_objext \
8028       conftest$ac_exeext conftest.$ac_ext
8029 fi
8030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8032 if test `eval echo '${'$as_ac_var'}'` = yes; then
8033   cat >>confdefs.h <<_ACEOF
8034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8035 _ACEOF
8036
8037 fi
8038 done
8039
8040   LIBS="$lt_save_LIBS"
8041 fi
8042 ac_ext=c
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047
8048
8049
8050 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8051 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8052 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8053   echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055   ac_cv_sys_symbol_underscore=no
8056   cat > conftest.$ac_ext <<EOF
8057 void nm_test_func(){}
8058 int main(){nm_test_func;return 0;}
8059 EOF
8060   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8061   (eval $ac_compile) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; then
8065     # Now try to grab the symbols.
8066     ac_nlist=conftest.nm
8067     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8068   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } && test -s "$ac_nlist"; then
8072       # See whether the symbols have a leading underscore.
8073       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8074         ac_cv_sys_symbol_underscore=yes
8075       else
8076         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8077           :
8078         else
8079           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8080         fi
8081       fi
8082     else
8083       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8084     fi
8085   else
8086     echo "configure: failed program was:" >&5
8087     cat conftest.c >&5
8088   fi
8089   rm -rf conftest*
8090
8091 fi
8092 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8093 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8094
8095
8096 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8097   if test x"$libltdl_cv_func_dlopen" = xyes ||
8098      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8099         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8100 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8101 if test "${libltdl_cv_need_uscore+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   libltdl_cv_need_uscore=unknown
8105           save_LIBS="$LIBS"
8106           LIBS="$LIBS $LIBADD_DL"
8107           if test "$cross_compiling" = yes; then :
8108   libltdl_cv_need_uscore=cross
8109 else
8110   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8111   lt_status=$lt_dlunknown
8112   cat > conftest.$ac_ext <<EOF
8113 #line 8113 "configure"
8114 #include "confdefs.h"
8115
8116 #if HAVE_DLFCN_H
8117 #include <dlfcn.h>
8118 #endif
8119
8120 #include <stdio.h>
8121
8122 #ifdef RTLD_GLOBAL
8123 #  define LT_DLGLOBAL           RTLD_GLOBAL
8124 #else
8125 #  ifdef DL_GLOBAL
8126 #    define LT_DLGLOBAL         DL_GLOBAL
8127 #  else
8128 #    define LT_DLGLOBAL         0
8129 #  endif
8130 #endif
8131
8132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8133    find out it does not work in some platform. */
8134 #ifndef LT_DLLAZY_OR_NOW
8135 #  ifdef RTLD_LAZY
8136 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8137 #  else
8138 #    ifdef DL_LAZY
8139 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8140 #    else
8141 #      ifdef RTLD_NOW
8142 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8143 #      else
8144 #        ifdef DL_NOW
8145 #          define LT_DLLAZY_OR_NOW      DL_NOW
8146 #        else
8147 #          define LT_DLLAZY_OR_NOW      0
8148 #        endif
8149 #      endif
8150 #    endif
8151 #  endif
8152 #endif
8153
8154 #ifdef __cplusplus
8155 extern "C" void exit (int);
8156 #endif
8157
8158 void fnord() { int i=42;}
8159 int main ()
8160 {
8161   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8162   int status = $lt_dlunknown;
8163
8164   if (self)
8165     {
8166       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8167       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8168       /* dlclose (self); */
8169     }
8170
8171     exit (status);
8172 }
8173 EOF
8174   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175   (eval $ac_link) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8179     (./conftest; exit; ) 2>/dev/null
8180     lt_status=$?
8181     case x$lt_status in
8182       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8183       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8184       x$lt_unknown|x*)  ;;
8185     esac
8186   else :
8187     # compilation failed
8188
8189   fi
8190 fi
8191 rm -fr conftest*
8192
8193           LIBS="$save_LIBS"
8194
8195 fi
8196 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8197 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8198   fi
8199 fi
8200
8201 if test x"$libltdl_cv_need_uscore" = xyes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define NEED_USCORE 1
8205 _ACEOF
8206
8207 fi
8208
8209
8210 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8211 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8212 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   # PORTME does your system automatically load deplibs for dlopen?
8216   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8217   # For now, we just catch OSes we know something about -- in the
8218   # future, we'll try test this programmatically.
8219   libltdl_cv_sys_dlopen_deplibs=unknown
8220   case "$host_os" in
8221   aix3*|aix4.1.*|aix4.2.*)
8222     # Unknown whether this is true for these versions of AIX, but
8223     # we want this `case' here to explicitly catch those versions.
8224     libltdl_cv_sys_dlopen_deplibs=unknown
8225     ;;
8226   aix[45]*)
8227     libltdl_cv_sys_dlopen_deplibs=yes
8228     ;;
8229   darwin*)
8230     # Assuming the user has installed a libdl from somewhere, this is true
8231     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8232     libltdl_cv_sys_dlopen_deplibs=yes
8233     ;;
8234   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8235     # GNU and its variants, using gnu ld.so (Glibc)
8236     libltdl_cv_sys_dlopen_deplibs=yes
8237     ;;
8238   hpux10*|hpux11*)
8239     libltdl_cv_sys_dlopen_deplibs=yes
8240     ;;
8241   irix[12345]*|irix6.[01]*)
8242     # Catch all versions of IRIX before 6.2, and indicate that we don't
8243     # know how it worked for any of those versions.
8244     libltdl_cv_sys_dlopen_deplibs=unknown
8245     ;;
8246   irix*)
8247     # The case above catches anything before 6.2, and it's known that
8248     # at 6.2 and later dlopen does load deplibs.
8249     libltdl_cv_sys_dlopen_deplibs=yes
8250     ;;
8251   netbsd*)
8252     libltdl_cv_sys_dlopen_deplibs=yes
8253     ;;
8254   openbsd*)
8255     libltdl_cv_sys_dlopen_deplibs=yes
8256     ;;
8257   osf[1234]*)
8258     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8259     # it did *not* use an RPATH in a shared library to find objects the
8260     # library depends on, so we explictly say `no'.
8261     libltdl_cv_sys_dlopen_deplibs=no
8262     ;;
8263   osf5.0|osf5.0a|osf5.1)
8264     # dlopen *does* load deplibs and with the right loader patch applied
8265     # it even uses RPATH in a shared library to search for shared objects
8266     # that the library depends on, but there's no easy way to know if that
8267     # patch is installed.  Since this is the case, all we can really
8268     # say is unknown -- it depends on the patch being installed.  If
8269     # it is, this changes to `yes'.  Without it, it would be `no'.
8270     libltdl_cv_sys_dlopen_deplibs=unknown
8271     ;;
8272   osf*)
8273     # the two cases above should catch all versions of osf <= 5.1.  Read
8274     # the comments above for what we know about them.
8275     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8276     # is used to find them so we can finally say `yes'.
8277     libltdl_cv_sys_dlopen_deplibs=yes
8278     ;;
8279   solaris*)
8280     libltdl_cv_sys_dlopen_deplibs=yes
8281     ;;
8282   esac
8283
8284 fi
8285 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8286 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8287 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define LTDL_DLOPEN_DEPLIBS 1
8291 _ACEOF
8292
8293 fi
8294
8295
8296 for ac_header in argz.h
8297 do
8298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8300   echo "$as_me:$LINENO: checking for $ac_header" >&5
8301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 fi
8305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8307 else
8308   # Is the header compilable?
8309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317 $ac_includes_default
8318 #include <$ac_header>
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322   (eval $ac_compile) 2>conftest.er1
8323   ac_status=$?
8324   grep -v '^ *+' conftest.er1 >conftest.err
8325   rm -f conftest.er1
8326   cat conftest.err >&5
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } &&
8329          { ac_try='test -z "$ac_c_werror_flag"
8330                          || test ! -s conftest.err'
8331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332   (eval $ac_try) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }; } &&
8336          { ac_try='test -s conftest.$ac_objext'
8337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338   (eval $ac_try) 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); }; }; then
8342   ac_header_compiler=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_header_compiler=no
8348 fi
8349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351 echo "${ECHO_T}$ac_header_compiler" >&6
8352
8353 # Is the header present?
8354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 #include <$ac_header>
8363 _ACEOF
8364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } >/dev/null; then
8372   if test -s conftest.err; then
8373     ac_cpp_err=$ac_c_preproc_warn_flag
8374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8375   else
8376     ac_cpp_err=
8377   fi
8378 else
8379   ac_cpp_err=yes
8380 fi
8381 if test -z "$ac_cpp_err"; then
8382   ac_header_preproc=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387   ac_header_preproc=no
8388 fi
8389 rm -f conftest.err conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8391 echo "${ECHO_T}$ac_header_preproc" >&6
8392
8393 # So?  What about this header?
8394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8395   yes:no: )
8396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8400     ac_header_preproc=yes
8401     ;;
8402   no:yes:* )
8403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8415     (
8416       cat <<\_ASBOX
8417 ## ----------------------------------- ##
8418 ## Report this to llvmbugs@cs.uiuc.edu ##
8419 ## ----------------------------------- ##
8420 _ASBOX
8421     ) |
8422       sed "s/^/$as_me: WARNING:     /" >&2
8423     ;;
8424 esac
8425 echo "$as_me:$LINENO: checking for $ac_header" >&5
8426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430   eval "$as_ac_Header=\$ac_header_preproc"
8431 fi
8432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8434
8435 fi
8436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8437   cat >>confdefs.h <<_ACEOF
8438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8439 _ACEOF
8440
8441 fi
8442
8443 done
8444
8445
8446 echo "$as_me:$LINENO: checking for error_t" >&5
8447 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8448 if test "${ac_cv_type_error_t+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457 #if HAVE_ARGZ_H
8458 #  include <argz.h>
8459 #endif
8460
8461 int
8462 main ()
8463 {
8464 if ((error_t *) 0)
8465   return 0;
8466 if (sizeof (error_t))
8467   return 0;
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474   (eval $ac_compile) 2>conftest.er1
8475   ac_status=$?
8476   grep -v '^ *+' conftest.er1 >conftest.err
8477   rm -f conftest.er1
8478   cat conftest.err >&5
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); } &&
8481          { ac_try='test -z "$ac_c_werror_flag"
8482                          || test ! -s conftest.err'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; } &&
8488          { ac_try='test -s conftest.$ac_objext'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; }; then
8494   ac_cv_type_error_t=yes
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499 ac_cv_type_error_t=no
8500 fi
8501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8504 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8505 if test $ac_cv_type_error_t = yes; then
8506
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_ERROR_T 1
8509 _ACEOF
8510
8511
8512 else
8513
8514 cat >>confdefs.h <<\_ACEOF
8515 #define error_t int
8516 _ACEOF
8517
8518 fi
8519
8520
8521
8522
8523
8524
8525
8526 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8527 do
8528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8529 echo "$as_me:$LINENO: checking for $ac_func" >&5
8530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8531 if eval "test \"\${$as_ac_var+set}\" = set"; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534   cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8542 #define $ac_func innocuous_$ac_func
8543
8544 /* System header to define __stub macros and hopefully few prototypes,
8545     which can conflict with char $ac_func (); below.
8546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8547     <limits.h> exists even on freestanding compilers.  */
8548
8549 #ifdef __STDC__
8550 # include <limits.h>
8551 #else
8552 # include <assert.h>
8553 #endif
8554
8555 #undef $ac_func
8556
8557 /* Override any gcc2 internal prototype to avoid an error.  */
8558 #ifdef __cplusplus
8559 extern "C"
8560 {
8561 #endif
8562 /* We use char because int might match the return type of a gcc2
8563    builtin and then its argument prototype would still apply.  */
8564 char $ac_func ();
8565 /* The GNU C library defines this for functions which it implements
8566     to always fail with ENOSYS.  Some functions are actually named
8567     something starting with __ and the normal name is an alias.  */
8568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8569 choke me
8570 #else
8571 char (*f) () = $ac_func;
8572 #endif
8573 #ifdef __cplusplus
8574 }
8575 #endif
8576
8577 int
8578 main ()
8579 {
8580 return f != $ac_func;
8581   ;
8582   return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587   (eval $ac_link) 2>conftest.er1
8588   ac_status=$?
8589   grep -v '^ *+' conftest.er1 >conftest.err
8590   rm -f conftest.er1
8591   cat conftest.err >&5
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } &&
8594          { ac_try='test -z "$ac_c_werror_flag"
8595                          || test ! -s conftest.err'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; } &&
8601          { ac_try='test -s conftest$ac_exeext'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; }; then
8607   eval "$as_ac_var=yes"
8608 else
8609   echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 eval "$as_ac_var=no"
8613 fi
8614 rm -f conftest.err conftest.$ac_objext \
8615       conftest$ac_exeext conftest.$ac_ext
8616 fi
8617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8619 if test `eval echo '${'$as_ac_var'}'` = yes; then
8620   cat >>confdefs.h <<_ACEOF
8621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8622 _ACEOF
8623
8624 fi
8625 done
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
8654 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8655                   stdio.h unistd.h
8656 do
8657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8659   echo "$as_me:$LINENO: checking for $ac_header" >&5
8660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 fi
8664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8666 else
8667   # Is the header compilable?
8668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676 $ac_includes_default
8677 #include <$ac_header>
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681   (eval $ac_compile) 2>conftest.er1
8682   ac_status=$?
8683   grep -v '^ *+' conftest.er1 >conftest.err
8684   rm -f conftest.er1
8685   cat conftest.err >&5
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } &&
8688          { ac_try='test -z "$ac_c_werror_flag"
8689                          || test ! -s conftest.err'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest.$ac_objext'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; }; then
8701   ac_header_compiler=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 ac_header_compiler=no
8707 fi
8708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8710 echo "${ECHO_T}$ac_header_compiler" >&6
8711
8712 # Is the header present?
8713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721 #include <$ac_header>
8722 _ACEOF
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725   ac_status=$?
8726   grep -v '^ *+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } >/dev/null; then
8731   if test -s conftest.err; then
8732     ac_cpp_err=$ac_c_preproc_warn_flag
8733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8734   else
8735     ac_cpp_err=
8736   fi
8737 else
8738   ac_cpp_err=yes
8739 fi
8740 if test -z "$ac_cpp_err"; then
8741   ac_header_preproc=yes
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746   ac_header_preproc=no
8747 fi
8748 rm -f conftest.err conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750 echo "${ECHO_T}$ac_header_preproc" >&6
8751
8752 # So?  What about this header?
8753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754   yes:no: )
8755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759     ac_header_preproc=yes
8760     ;;
8761   no:yes:* )
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774     (
8775       cat <<\_ASBOX
8776 ## ----------------------------------- ##
8777 ## Report this to llvmbugs@cs.uiuc.edu ##
8778 ## ----------------------------------- ##
8779 _ASBOX
8780     ) |
8781       sed "s/^/$as_me: WARNING:     /" >&2
8782     ;;
8783 esac
8784 echo "$as_me:$LINENO: checking for $ac_header" >&5
8785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789   eval "$as_ac_Header=\$ac_header_preproc"
8790 fi
8791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793
8794 fi
8795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796   cat >>confdefs.h <<_ACEOF
8797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 _ACEOF
8799
8800 fi
8801
8802 done
8803
8804
8805
8806
8807
8808 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8809 do
8810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8812   echo "$as_me:$LINENO: checking for $ac_header" >&5
8813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 fi
8817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8819 else
8820   # Is the header compilable?
8821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829 $ac_includes_default
8830 #include <$ac_header>
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834   (eval $ac_compile) 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } &&
8841          { ac_try='test -z "$ac_c_werror_flag"
8842                          || test ! -s conftest.err'
8843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844   (eval $ac_try) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; } &&
8848          { ac_try='test -s conftest.$ac_objext'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854   ac_header_compiler=yes
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ac_header_compiler=no
8860 fi
8861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8863 echo "${ECHO_T}$ac_header_compiler" >&6
8864
8865 # Is the header present?
8866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8868 cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h.  */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h.  */
8874 #include <$ac_header>
8875 _ACEOF
8876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8878   ac_status=$?
8879   grep -v '^ *+' conftest.er1 >conftest.err
8880   rm -f conftest.er1
8881   cat conftest.err >&5
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } >/dev/null; then
8884   if test -s conftest.err; then
8885     ac_cpp_err=$ac_c_preproc_warn_flag
8886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8887   else
8888     ac_cpp_err=
8889   fi
8890 else
8891   ac_cpp_err=yes
8892 fi
8893 if test -z "$ac_cpp_err"; then
8894   ac_header_preproc=yes
8895 else
8896   echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8898
8899   ac_header_preproc=no
8900 fi
8901 rm -f conftest.err conftest.$ac_ext
8902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8903 echo "${ECHO_T}$ac_header_preproc" >&6
8904
8905 # So?  What about this header?
8906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8907   yes:no: )
8908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8912     ac_header_preproc=yes
8913     ;;
8914   no:yes:* )
8915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8927     (
8928       cat <<\_ASBOX
8929 ## ----------------------------------- ##
8930 ## Report this to llvmbugs@cs.uiuc.edu ##
8931 ## ----------------------------------- ##
8932 _ASBOX
8933     ) |
8934       sed "s/^/$as_me: WARNING:     /" >&2
8935     ;;
8936 esac
8937 echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   eval "$as_ac_Header=\$ac_header_preproc"
8943 fi
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946
8947 fi
8948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8949   cat >>confdefs.h <<_ACEOF
8950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951 _ACEOF
8952
8953 fi
8954
8955 done
8956
8957
8958
8959 for ac_header in string.h strings.h
8960 do
8961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963   echo "$as_me:$LINENO: checking for $ac_header" >&5
8964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966   echo $ECHO_N "(cached) $ECHO_C" >&6
8967 fi
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8970 else
8971   # Is the header compilable?
8972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980 $ac_includes_default
8981 #include <$ac_header>
8982 _ACEOF
8983 rm -f conftest.$ac_objext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8985   (eval $ac_compile) 2>conftest.er1
8986   ac_status=$?
8987   grep -v '^ *+' conftest.er1 >conftest.err
8988   rm -f conftest.er1
8989   cat conftest.err >&5
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } &&
8992          { ac_try='test -z "$ac_c_werror_flag"
8993                          || test ! -s conftest.err'
8994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995   (eval $ac_try) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); }; } &&
8999          { ac_try='test -s conftest.$ac_objext'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_header_compiler=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_header_compiler=no
9011 fi
9012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9014 echo "${ECHO_T}$ac_header_compiler" >&6
9015
9016 # Is the header present?
9017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025 #include <$ac_header>
9026 _ACEOF
9027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } >/dev/null; then
9035   if test -s conftest.err; then
9036     ac_cpp_err=$ac_c_preproc_warn_flag
9037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9038   else
9039     ac_cpp_err=
9040   fi
9041 else
9042   ac_cpp_err=yes
9043 fi
9044 if test -z "$ac_cpp_err"; then
9045   ac_header_preproc=yes
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050   ac_header_preproc=no
9051 fi
9052 rm -f conftest.err conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9054 echo "${ECHO_T}$ac_header_preproc" >&6
9055
9056 # So?  What about this header?
9057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9058   yes:no: )
9059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9063     ac_header_preproc=yes
9064     ;;
9065   no:yes:* )
9066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9078     (
9079       cat <<\_ASBOX
9080 ## ----------------------------------- ##
9081 ## Report this to llvmbugs@cs.uiuc.edu ##
9082 ## ----------------------------------- ##
9083 _ASBOX
9084     ) |
9085       sed "s/^/$as_me: WARNING:     /" >&2
9086     ;;
9087 esac
9088 echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093   eval "$as_ac_Header=\$ac_header_preproc"
9094 fi
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097
9098 fi
9099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100   cat >>confdefs.h <<_ACEOF
9101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9102 _ACEOF
9103  break
9104 fi
9105
9106 done
9107
9108
9109
9110
9111 for ac_func in strchr index
9112 do
9113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114 echo "$as_me:$LINENO: checking for $ac_func" >&5
9115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_var+set}\" = set"; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h.  */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h.  */
9125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9127 #define $ac_func innocuous_$ac_func
9128
9129 /* System header to define __stub macros and hopefully few prototypes,
9130     which can conflict with char $ac_func (); below.
9131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132     <limits.h> exists even on freestanding compilers.  */
9133
9134 #ifdef __STDC__
9135 # include <limits.h>
9136 #else
9137 # include <assert.h>
9138 #endif
9139
9140 #undef $ac_func
9141
9142 /* Override any gcc2 internal prototype to avoid an error.  */
9143 #ifdef __cplusplus
9144 extern "C"
9145 {
9146 #endif
9147 /* We use char because int might match the return type of a gcc2
9148    builtin and then its argument prototype would still apply.  */
9149 char $ac_func ();
9150 /* The GNU C library defines this for functions which it implements
9151     to always fail with ENOSYS.  Some functions are actually named
9152     something starting with __ and the normal name is an alias.  */
9153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154 choke me
9155 #else
9156 char (*f) () = $ac_func;
9157 #endif
9158 #ifdef __cplusplus
9159 }
9160 #endif
9161
9162 int
9163 main ()
9164 {
9165 return f != $ac_func;
9166   ;
9167   return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172   (eval $ac_link) 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } &&
9179          { ac_try='test -z "$ac_c_werror_flag"
9180                          || test ! -s conftest.err'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; } &&
9186          { ac_try='test -s conftest$ac_exeext'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   eval "$as_ac_var=yes"
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 eval "$as_ac_var=no"
9198 fi
9199 rm -f conftest.err conftest.$ac_objext \
9200       conftest$ac_exeext conftest.$ac_ext
9201 fi
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204 if test `eval echo '${'$as_ac_var'}'` = yes; then
9205   cat >>confdefs.h <<_ACEOF
9206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9207 _ACEOF
9208  break
9209 fi
9210 done
9211
9212
9213
9214 for ac_func in strrchr rindex
9215 do
9216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217 echo "$as_me:$LINENO: checking for $ac_func" >&5
9218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9219 if eval "test \"\${$as_ac_var+set}\" = set"; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9230 #define $ac_func innocuous_$ac_func
9231
9232 /* System header to define __stub macros and hopefully few prototypes,
9233     which can conflict with char $ac_func (); below.
9234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235     <limits.h> exists even on freestanding compilers.  */
9236
9237 #ifdef __STDC__
9238 # include <limits.h>
9239 #else
9240 # include <assert.h>
9241 #endif
9242
9243 #undef $ac_func
9244
9245 /* Override any gcc2 internal prototype to avoid an error.  */
9246 #ifdef __cplusplus
9247 extern "C"
9248 {
9249 #endif
9250 /* We use char because int might match the return type of a gcc2
9251    builtin and then its argument prototype would still apply.  */
9252 char $ac_func ();
9253 /* The GNU C library defines this for functions which it implements
9254     to always fail with ENOSYS.  Some functions are actually named
9255     something starting with __ and the normal name is an alias.  */
9256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9257 choke me
9258 #else
9259 char (*f) () = $ac_func;
9260 #endif
9261 #ifdef __cplusplus
9262 }
9263 #endif
9264
9265 int
9266 main ()
9267 {
9268 return f != $ac_func;
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275   (eval $ac_link) 2>conftest.er1
9276   ac_status=$?
9277   grep -v '^ *+' conftest.er1 >conftest.err
9278   rm -f conftest.er1
9279   cat conftest.err >&5
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } &&
9282          { ac_try='test -z "$ac_c_werror_flag"
9283                          || test ! -s conftest.err'
9284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285   (eval $ac_try) 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; } &&
9289          { ac_try='test -s conftest$ac_exeext'
9290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291   (eval $ac_try) 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; }; then
9295   eval "$as_ac_var=yes"
9296 else
9297   echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 eval "$as_ac_var=no"
9301 fi
9302 rm -f conftest.err conftest.$ac_objext \
9303       conftest$ac_exeext conftest.$ac_ext
9304 fi
9305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9307 if test `eval echo '${'$as_ac_var'}'` = yes; then
9308   cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9310 _ACEOF
9311  break
9312 fi
9313 done
9314
9315
9316
9317 for ac_func in memcpy bcopy
9318 do
9319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320 echo "$as_me:$LINENO: checking for $ac_func" >&5
9321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_var+set}\" = set"; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9333 #define $ac_func innocuous_$ac_func
9334
9335 /* System header to define __stub macros and hopefully few prototypes,
9336     which can conflict with char $ac_func (); below.
9337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338     <limits.h> exists even on freestanding compilers.  */
9339
9340 #ifdef __STDC__
9341 # include <limits.h>
9342 #else
9343 # include <assert.h>
9344 #endif
9345
9346 #undef $ac_func
9347
9348 /* Override any gcc2 internal prototype to avoid an error.  */
9349 #ifdef __cplusplus
9350 extern "C"
9351 {
9352 #endif
9353 /* We use char because int might match the return type of a gcc2
9354    builtin and then its argument prototype would still apply.  */
9355 char $ac_func ();
9356 /* The GNU C library defines this for functions which it implements
9357     to always fail with ENOSYS.  Some functions are actually named
9358     something starting with __ and the normal name is an alias.  */
9359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9360 choke me
9361 #else
9362 char (*f) () = $ac_func;
9363 #endif
9364 #ifdef __cplusplus
9365 }
9366 #endif
9367
9368 int
9369 main ()
9370 {
9371 return f != $ac_func;
9372   ;
9373   return 0;
9374 }
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378   (eval $ac_link) 2>conftest.er1
9379   ac_status=$?
9380   grep -v '^ *+' conftest.er1 >conftest.err
9381   rm -f conftest.er1
9382   cat conftest.err >&5
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } &&
9385          { ac_try='test -z "$ac_c_werror_flag"
9386                          || test ! -s conftest.err'
9387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388   (eval $ac_try) 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); }; } &&
9392          { ac_try='test -s conftest$ac_exeext'
9393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394   (eval $ac_try) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); }; }; then
9398   eval "$as_ac_var=yes"
9399 else
9400   echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403 eval "$as_ac_var=no"
9404 fi
9405 rm -f conftest.err conftest.$ac_objext \
9406       conftest$ac_exeext conftest.$ac_ext
9407 fi
9408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9410 if test `eval echo '${'$as_ac_var'}'` = yes; then
9411   cat >>confdefs.h <<_ACEOF
9412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9413 _ACEOF
9414  break
9415 fi
9416 done
9417
9418
9419
9420 for ac_func in memmove strcmp
9421 do
9422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9423 echo "$as_me:$LINENO: checking for $ac_func" >&5
9424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9425 if eval "test \"\${$as_ac_var+set}\" = set"; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h.  */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h.  */
9434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9436 #define $ac_func innocuous_$ac_func
9437
9438 /* System header to define __stub macros and hopefully few prototypes,
9439     which can conflict with char $ac_func (); below.
9440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9441     <limits.h> exists even on freestanding compilers.  */
9442
9443 #ifdef __STDC__
9444 # include <limits.h>
9445 #else
9446 # include <assert.h>
9447 #endif
9448
9449 #undef $ac_func
9450
9451 /* Override any gcc2 internal prototype to avoid an error.  */
9452 #ifdef __cplusplus
9453 extern "C"
9454 {
9455 #endif
9456 /* We use char because int might match the return type of a gcc2
9457    builtin and then its argument prototype would still apply.  */
9458 char $ac_func ();
9459 /* The GNU C library defines this for functions which it implements
9460     to always fail with ENOSYS.  Some functions are actually named
9461     something starting with __ and the normal name is an alias.  */
9462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9463 choke me
9464 #else
9465 char (*f) () = $ac_func;
9466 #endif
9467 #ifdef __cplusplus
9468 }
9469 #endif
9470
9471 int
9472 main ()
9473 {
9474 return f != $ac_func;
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481   (eval $ac_link) 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -z "$ac_c_werror_flag"
9489                          || test ! -s conftest.err'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; } &&
9495          { ac_try='test -s conftest$ac_exeext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   eval "$as_ac_var=yes"
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 eval "$as_ac_var=no"
9507 fi
9508 rm -f conftest.err conftest.$ac_objext \
9509       conftest$ac_exeext conftest.$ac_ext
9510 fi
9511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9513 if test `eval echo '${'$as_ac_var'}'` = yes; then
9514   cat >>confdefs.h <<_ACEOF
9515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9516 _ACEOF
9517
9518 fi
9519 done
9520
9521
9522
9523
9524 for ac_func in closedir opendir readdir
9525 do
9526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9527 echo "$as_me:$LINENO: checking for $ac_func" >&5
9528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9529 if eval "test \"\${$as_ac_var+set}\" = set"; then
9530   echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9532   cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9540 #define $ac_func innocuous_$ac_func
9541
9542 /* System header to define __stub macros and hopefully few prototypes,
9543     which can conflict with char $ac_func (); below.
9544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9545     <limits.h> exists even on freestanding compilers.  */
9546
9547 #ifdef __STDC__
9548 # include <limits.h>
9549 #else
9550 # include <assert.h>
9551 #endif
9552
9553 #undef $ac_func
9554
9555 /* Override any gcc2 internal prototype to avoid an error.  */
9556 #ifdef __cplusplus
9557 extern "C"
9558 {
9559 #endif
9560 /* We use char because int might match the return type of a gcc2
9561    builtin and then its argument prototype would still apply.  */
9562 char $ac_func ();
9563 /* The GNU C library defines this for functions which it implements
9564     to always fail with ENOSYS.  Some functions are actually named
9565     something starting with __ and the normal name is an alias.  */
9566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9567 choke me
9568 #else
9569 char (*f) () = $ac_func;
9570 #endif
9571 #ifdef __cplusplus
9572 }
9573 #endif
9574
9575 int
9576 main ()
9577 {
9578 return f != $ac_func;
9579   ;
9580   return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9585   (eval $ac_link) 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } &&
9592          { ac_try='test -z "$ac_c_werror_flag"
9593                          || test ! -s conftest.err'
9594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595   (eval $ac_try) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; } &&
9599          { ac_try='test -s conftest$ac_exeext'
9600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601   (eval $ac_try) 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); }; }; then
9605   eval "$as_ac_var=yes"
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610 eval "$as_ac_var=no"
9611 fi
9612 rm -f conftest.err conftest.$ac_objext \
9613       conftest$ac_exeext conftest.$ac_ext
9614 fi
9615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9617 if test `eval echo '${'$as_ac_var'}'` = yes; then
9618   cat >>confdefs.h <<_ACEOF
9619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9620 _ACEOF
9621
9622 fi
9623 done
9624
9625
9626 # Check whether --enable-shared or --disable-shared was given.
9627 if test "${enable_shared+set}" = set; then
9628   enableval="$enable_shared"
9629   p=${PACKAGE-default}
9630     case $enableval in
9631     yes) enable_shared=yes ;;
9632     no) enable_shared=no ;;
9633     *)
9634       enable_shared=no
9635       # Look at the argument we got.  We use all the common list separators.
9636       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9637       for pkg in $enableval; do
9638         IFS="$lt_save_ifs"
9639         if test "X$pkg" = "X$p"; then
9640           enable_shared=yes
9641         fi
9642       done
9643       IFS="$lt_save_ifs"
9644       ;;
9645     esac
9646 else
9647   enable_shared=yes
9648 fi;
9649
9650 # Check whether --enable-static or --disable-static was given.
9651 if test "${enable_static+set}" = set; then
9652   enableval="$enable_static"
9653   p=${PACKAGE-default}
9654     case $enableval in
9655     yes) enable_static=yes ;;
9656     no) enable_static=no ;;
9657     *)
9658      enable_static=no
9659       # Look at the argument we got.  We use all the common list separators.
9660       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9661       for pkg in $enableval; do
9662         IFS="$lt_save_ifs"
9663         if test "X$pkg" = "X$p"; then
9664           enable_static=yes
9665         fi
9666       done
9667       IFS="$lt_save_ifs"
9668       ;;
9669     esac
9670 else
9671   enable_static=yes
9672 fi;
9673
9674 # Check whether --enable-fast-install or --disable-fast-install was given.
9675 if test "${enable_fast_install+set}" = set; then
9676   enableval="$enable_fast_install"
9677   p=${PACKAGE-default}
9678     case $enableval in
9679     yes) enable_fast_install=yes ;;
9680     no) enable_fast_install=no ;;
9681     *)
9682       enable_fast_install=no
9683       # Look at the argument we got.  We use all the common list separators.
9684       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9685       for pkg in $enableval; do
9686         IFS="$lt_save_ifs"
9687         if test "X$pkg" = "X$p"; then
9688           enable_fast_install=yes
9689         fi
9690       done
9691       IFS="$lt_save_ifs"
9692       ;;
9693     esac
9694 else
9695   enable_fast_install=yes
9696 fi;
9697
9698 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9699 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9700 if test "${lt_cv_path_SED+set}" = set; then
9701   echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703   # Loop through the user's path and test for sed and gsed.
9704 # Then use that list of sed's as ones to test for truncation.
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708   IFS=$as_save_IFS
9709   test -z "$as_dir" && as_dir=.
9710   for lt_ac_prog in sed gsed; do
9711     for ac_exec_ext in '' $ac_executable_extensions; do
9712       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9713         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9714       fi
9715     done
9716   done
9717 done
9718 lt_ac_max=0
9719 lt_ac_count=0
9720 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9721 # along with /bin/sed that truncates output.
9722 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9723   test ! -f $lt_ac_sed && break
9724   cat /dev/null > conftest.in
9725   lt_ac_count=0
9726   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9727   # Check for GNU sed and select it if it is found.
9728   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9729     lt_cv_path_SED=$lt_ac_sed
9730     break
9731   fi
9732   while true; do
9733     cat conftest.in conftest.in >conftest.tmp
9734     mv conftest.tmp conftest.in
9735     cp conftest.in conftest.nl
9736     echo >>conftest.nl
9737     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9738     cmp -s conftest.out conftest.nl || break
9739     # 10000 chars as input seems more than enough
9740     test $lt_ac_count -gt 10 && break
9741     lt_ac_count=`expr $lt_ac_count + 1`
9742     if test $lt_ac_count -gt $lt_ac_max; then
9743       lt_ac_max=$lt_ac_count
9744       lt_cv_path_SED=$lt_ac_sed
9745     fi
9746   done
9747 done
9748
9749 fi
9750
9751 SED=$lt_cv_path_SED
9752 echo "$as_me:$LINENO: result: $SED" >&5
9753 echo "${ECHO_T}$SED" >&6
9754
9755
9756 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9757 if test "${with_gnu_ld+set}" = set; then
9758   withval="$with_gnu_ld"
9759   test "$withval" = no || with_gnu_ld=yes
9760 else
9761   with_gnu_ld=no
9762 fi;
9763 ac_prog=ld
9764 if test "$GCC" = yes; then
9765   # Check if gcc -print-prog-name=ld gives a path.
9766   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9767 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9768   case $host in
9769   *-*-mingw*)
9770     # gcc leaves a trailing carriage return which upsets mingw
9771     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9772   *)
9773     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9774   esac
9775   case $ac_prog in
9776     # Accept absolute paths.
9777     [\\/]* | ?:[\\/]*)
9778       re_direlt='/[^/][^/]*/\.\./'
9779       # Canonicalize the pathname of ld
9780       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9781       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9782         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9783       done
9784       test -z "$LD" && LD="$ac_prog"
9785       ;;
9786   "")
9787     # If it fails, then pretend we aren't using GCC.
9788     ac_prog=ld
9789     ;;
9790   *)
9791     # If it is relative, then search for the first ld in PATH.
9792     with_gnu_ld=unknown
9793     ;;
9794   esac
9795 elif test "$with_gnu_ld" = yes; then
9796   echo "$as_me:$LINENO: checking for GNU ld" >&5
9797 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9798 else
9799   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9800 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9801 fi
9802 if test "${lt_cv_path_LD+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   if test -z "$LD"; then
9806   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9807   for ac_dir in $PATH; do
9808     IFS="$lt_save_ifs"
9809     test -z "$ac_dir" && ac_dir=.
9810     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9811       lt_cv_path_LD="$ac_dir/$ac_prog"
9812       # Check to see if the program is GNU ld.  I'd rather use --version,
9813       # but apparently some GNU ld's only accept -v.
9814       # Break only if it was the GNU/non-GNU ld that we prefer.
9815       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9816       *GNU* | *'with BFD'*)
9817         test "$with_gnu_ld" != no && break
9818         ;;
9819       *)
9820         test "$with_gnu_ld" != yes && break
9821         ;;
9822       esac
9823     fi
9824   done
9825   IFS="$lt_save_ifs"
9826 else
9827   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9828 fi
9829 fi
9830
9831 LD="$lt_cv_path_LD"
9832 if test -n "$LD"; then
9833   echo "$as_me:$LINENO: result: $LD" >&5
9834 echo "${ECHO_T}$LD" >&6
9835 else
9836   echo "$as_me:$LINENO: result: no" >&5
9837 echo "${ECHO_T}no" >&6
9838 fi
9839 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9840 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9841    { (exit 1); exit 1; }; }
9842 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9843 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9844 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9848 case `$LD -v 2>&1 </dev/null` in
9849 *GNU* | *'with BFD'*)
9850   lt_cv_prog_gnu_ld=yes
9851   ;;
9852 *)
9853   lt_cv_prog_gnu_ld=no
9854   ;;
9855 esac
9856 fi
9857 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9858 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9859 with_gnu_ld=$lt_cv_prog_gnu_ld
9860
9861
9862 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9863 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9864 if test "${lt_cv_ld_reload_flag+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   lt_cv_ld_reload_flag='-r'
9868 fi
9869 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9870 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9871 reload_flag=$lt_cv_ld_reload_flag
9872 case $reload_flag in
9873 "" | " "*) ;;
9874 *) reload_flag=" $reload_flag" ;;
9875 esac
9876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9877 case $host_os in
9878   darwin*)
9879     if test "$GCC" = yes; then
9880       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9881     else
9882       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9883     fi
9884     ;;
9885 esac
9886
9887 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9888 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9889 if test "${lt_cv_deplibs_check_method+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   lt_cv_file_magic_cmd='$MAGIC_CMD'
9893 lt_cv_file_magic_test_file=
9894 lt_cv_deplibs_check_method='unknown'
9895 # Need to set the preceding variable on all platforms that support
9896 # interlibrary dependencies.
9897 # 'none' -- dependencies not supported.
9898 # `unknown' -- same as none, but documents that we really don't know.
9899 # 'pass_all' -- all dependencies passed with no checks.
9900 # 'test_compile' -- check by making test program.
9901 # 'file_magic [[regex]]' -- check by looking for files in library path
9902 # which responds to the $file_magic_cmd with a given extended regex.
9903 # If you have `file' or equivalent on your system and you're not sure
9904 # whether `pass_all' will *always* work, you probably want this one.
9905
9906 case $host_os in
9907 aix4* | aix5*)
9908   lt_cv_deplibs_check_method=pass_all
9909   ;;
9910
9911 beos*)
9912   lt_cv_deplibs_check_method=pass_all
9913   ;;
9914
9915 bsdi[45]*)
9916   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9917   lt_cv_file_magic_cmd='/usr/bin/file -L'
9918   lt_cv_file_magic_test_file=/shlib/libc.so
9919   ;;
9920
9921 cygwin*)
9922   # func_win32_libid is a shell function defined in ltmain.sh
9923   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9924   lt_cv_file_magic_cmd='func_win32_libid'
9925   ;;
9926
9927 mingw* | pw32*)
9928   # Base MSYS/MinGW do not provide the 'file' command needed by
9929   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9930   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9931   lt_cv_file_magic_cmd='$OBJDUMP -f'
9932   ;;
9933
9934 darwin* | rhapsody*)
9935   lt_cv_deplibs_check_method=pass_all
9936   ;;
9937
9938 freebsd* | kfreebsd*-gnu)
9939   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9940     case $host_cpu in
9941     i*86 )
9942       # Not sure whether the presence of OpenBSD here was a mistake.
9943       # Let's accept both of them until this is cleared up.
9944       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9945       lt_cv_file_magic_cmd=/usr/bin/file
9946       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9947       ;;
9948     esac
9949   else
9950     lt_cv_deplibs_check_method=pass_all
9951   fi
9952   ;;
9953
9954 gnu*)
9955   lt_cv_deplibs_check_method=pass_all
9956   ;;
9957
9958 hpux10.20* | hpux11*)
9959   lt_cv_file_magic_cmd=/usr/bin/file
9960   case "$host_cpu" in
9961   ia64*)
9962     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9963     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9964     ;;
9965   hppa*64*)
9966     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]'
9967     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9968     ;;
9969   *)
9970     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9971     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9972     ;;
9973   esac
9974   ;;
9975
9976 irix5* | irix6* | nonstopux*)
9977   case $LD in
9978   *-32|*"-32 ") libmagic=32-bit;;
9979   *-n32|*"-n32 ") libmagic=N32;;
9980   *-64|*"-64 ") libmagic=64-bit;;
9981   *) libmagic=never-match;;
9982   esac
9983   lt_cv_deplibs_check_method=pass_all
9984   ;;
9985
9986 # This must be Linux ELF.
9987 linux*)
9988   lt_cv_deplibs_check_method=pass_all
9989   ;;
9990
9991 netbsd*)
9992   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9993     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9994   else
9995     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9996   fi
9997   ;;
9998
9999 newos6*)
10000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10001   lt_cv_file_magic_cmd=/usr/bin/file
10002   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10003   ;;
10004
10005 nto-qnx*)
10006   lt_cv_deplibs_check_method=unknown
10007   ;;
10008
10009 openbsd*)
10010   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10011     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10012   else
10013     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10014   fi
10015   ;;
10016
10017 osf3* | osf4* | osf5*)
10018   lt_cv_deplibs_check_method=pass_all
10019   ;;
10020
10021 sco3.2v5*)
10022   lt_cv_deplibs_check_method=pass_all
10023   ;;
10024
10025 solaris*)
10026   lt_cv_deplibs_check_method=pass_all
10027   ;;
10028
10029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030   case $host_vendor in
10031   motorola)
10032     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]'
10033     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10034     ;;
10035   ncr)
10036     lt_cv_deplibs_check_method=pass_all
10037     ;;
10038   sequent)
10039     lt_cv_file_magic_cmd='/bin/file'
10040     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10041     ;;
10042   sni)
10043     lt_cv_file_magic_cmd='/bin/file'
10044     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10045     lt_cv_file_magic_test_file=/lib/libc.so
10046     ;;
10047   siemens)
10048     lt_cv_deplibs_check_method=pass_all
10049     ;;
10050   esac
10051   ;;
10052
10053 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10054   lt_cv_deplibs_check_method=pass_all
10055   ;;
10056 esac
10057
10058 fi
10059 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10060 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10061 file_magic_cmd=$lt_cv_file_magic_cmd
10062 deplibs_check_method=$lt_cv_deplibs_check_method
10063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10064
10065
10066
10067 # If no C compiler was specified, use CC.
10068 LTCC=${LTCC-"$CC"}
10069
10070 # Allow CC to be a program name with arguments.
10071 compiler=$CC
10072
10073 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10074 if test "${enable_libtool_lock+set}" = set; then
10075   enableval="$enable_libtool_lock"
10076
10077 fi;
10078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10079
10080 # Some flags need to be propagated to the compiler or linker for good
10081 # libtool support.
10082 case $host in
10083 ia64-*-hpux*)
10084   # Find out which ABI we are using.
10085   echo 'int i;' > conftest.$ac_ext
10086   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10087   (eval $ac_compile) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; then
10091     case `/usr/bin/file conftest.$ac_objext` in
10092     *ELF-32*)
10093       HPUX_IA64_MODE="32"
10094       ;;
10095     *ELF-64*)
10096       HPUX_IA64_MODE="64"
10097       ;;
10098     esac
10099   fi
10100   rm -rf conftest*
10101   ;;
10102 *-*-irix6*)
10103   # Find out which ABI we are using.
10104   echo '#line 10104 "configure"' > conftest.$ac_ext
10105   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106   (eval $ac_compile) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; then
10110    if test "$lt_cv_prog_gnu_ld" = yes; then
10111     case `/usr/bin/file conftest.$ac_objext` in
10112     *32-bit*)
10113       LD="${LD-ld} -melf32bsmip"
10114       ;;
10115     *N32*)
10116       LD="${LD-ld} -melf32bmipn32"
10117       ;;
10118     *64-bit*)
10119       LD="${LD-ld} -melf64bmip"
10120       ;;
10121     esac
10122    else
10123     case `/usr/bin/file conftest.$ac_objext` in
10124     *32-bit*)
10125       LD="${LD-ld} -32"
10126       ;;
10127     *N32*)
10128       LD="${LD-ld} -n32"
10129       ;;
10130     *64-bit*)
10131       LD="${LD-ld} -64"
10132       ;;
10133     esac
10134    fi
10135   fi
10136   rm -rf conftest*
10137   ;;
10138
10139 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10140   # Find out which ABI we are using.
10141   echo 'int i;' > conftest.$ac_ext
10142   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143   (eval $ac_compile) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; then
10147     case "`/usr/bin/file conftest.o`" in
10148     *32-bit*)
10149       case $host in
10150         x86_64-*linux*)
10151           LD="${LD-ld} -m elf_i386"
10152           ;;
10153         ppc64-*linux*|powerpc64-*linux*)
10154           LD="${LD-ld} -m elf32ppclinux"
10155           ;;
10156         s390x-*linux*)
10157           LD="${LD-ld} -m elf_s390"
10158           ;;
10159         sparc64-*linux*)
10160           LD="${LD-ld} -m elf32_sparc"
10161           ;;
10162       esac
10163       ;;
10164     *64-bit*)
10165       case $host in
10166         x86_64-*linux*)
10167           LD="${LD-ld} -m elf_x86_64"
10168           ;;
10169         ppc*-*linux*|powerpc*-*linux*)
10170           LD="${LD-ld} -m elf64ppc"
10171           ;;
10172         s390*-*linux*)
10173           LD="${LD-ld} -m elf64_s390"
10174           ;;
10175         sparc*-*linux*)
10176           LD="${LD-ld} -m elf64_sparc"
10177           ;;
10178       esac
10179       ;;
10180     esac
10181   fi
10182   rm -rf conftest*
10183   ;;
10184
10185 *-*-sco3.2v5*)
10186   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10187   SAVE_CFLAGS="$CFLAGS"
10188   CFLAGS="$CFLAGS -belf"
10189   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10190 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10191 if test "${lt_cv_cc_needs_belf+set}" = set; then
10192   echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194   ac_ext=c
10195 ac_cpp='$CPP $CPPFLAGS'
10196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10199
10200      cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210   (eval $ac_link) 2>conftest.er1
10211   ac_status=$?
10212   grep -v '^ *+' conftest.er1 >conftest.err
10213   rm -f conftest.er1
10214   cat conftest.err >&5
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); } &&
10217          { ac_try='test -z "$ac_c_werror_flag"
10218                          || test ! -s conftest.err'
10219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220   (eval $ac_try) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; } &&
10224          { ac_try='test -s conftest$ac_exeext'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; }; then
10230   lt_cv_cc_needs_belf=yes
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 lt_cv_cc_needs_belf=no
10236 fi
10237 rm -f conftest.err conftest.$ac_objext \
10238       conftest$ac_exeext conftest.$ac_ext
10239      ac_ext=c
10240 ac_cpp='$CPP $CPPFLAGS'
10241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10244
10245 fi
10246 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10247 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10248   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10249     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10250     CFLAGS="$SAVE_CFLAGS"
10251   fi
10252   ;;
10253
10254 esac
10255
10256 need_locks="$enable_libtool_lock"
10257
10258
10259
10260
10261 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10262     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10263     (test "X$CXX" != "Xg++"))) ; then
10264   ac_ext=cc
10265 ac_cpp='$CXXCPP $CPPFLAGS'
10266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10269 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10270 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10271 if test -z "$CXXCPP"; then
10272   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10273   echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275       # Double quotes because CXXCPP needs to be expanded
10276     for CXXCPP in "$CXX -E" "/lib/cpp"
10277     do
10278       ac_preproc_ok=false
10279 for ac_cxx_preproc_warn_flag in '' yes
10280 do
10281   # Use a header file that comes with gcc, so configuring glibc
10282   # with a fresh cross-compiler works.
10283   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10284   # <limits.h> exists even on freestanding compilers.
10285   # On the NeXT, cc -E runs the code through the compiler's parser,
10286   # not just through cpp. "Syntax error" is here to catch this case.
10287   cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #ifdef __STDC__
10294 # include <limits.h>
10295 #else
10296 # include <assert.h>
10297 #endif
10298                      Syntax error
10299 _ACEOF
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } >/dev/null; then
10308   if test -s conftest.err; then
10309     ac_cpp_err=$ac_cxx_preproc_warn_flag
10310     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10311   else
10312     ac_cpp_err=
10313   fi
10314 else
10315   ac_cpp_err=yes
10316 fi
10317 if test -z "$ac_cpp_err"; then
10318   :
10319 else
10320   echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323   # Broken: fails on valid input.
10324 continue
10325 fi
10326 rm -f conftest.err conftest.$ac_ext
10327
10328   # OK, works on sane cases.  Now check whether non-existent headers
10329   # can be detected and how.
10330   cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h.  */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h.  */
10336 #include <ac_nonexistent.h>
10337 _ACEOF
10338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } >/dev/null; then
10346   if test -s conftest.err; then
10347     ac_cpp_err=$ac_cxx_preproc_warn_flag
10348     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10349   else
10350     ac_cpp_err=
10351   fi
10352 else
10353   ac_cpp_err=yes
10354 fi
10355 if test -z "$ac_cpp_err"; then
10356   # Broken: success on invalid input.
10357 continue
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362   # Passes both tests.
10363 ac_preproc_ok=:
10364 break
10365 fi
10366 rm -f conftest.err conftest.$ac_ext
10367
10368 done
10369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10370 rm -f conftest.err conftest.$ac_ext
10371 if $ac_preproc_ok; then
10372   break
10373 fi
10374
10375     done
10376     ac_cv_prog_CXXCPP=$CXXCPP
10377
10378 fi
10379   CXXCPP=$ac_cv_prog_CXXCPP
10380 else
10381   ac_cv_prog_CXXCPP=$CXXCPP
10382 fi
10383 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10384 echo "${ECHO_T}$CXXCPP" >&6
10385 ac_preproc_ok=false
10386 for ac_cxx_preproc_warn_flag in '' yes
10387 do
10388   # Use a header file that comes with gcc, so configuring glibc
10389   # with a fresh cross-compiler works.
10390   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391   # <limits.h> exists even on freestanding compilers.
10392   # On the NeXT, cc -E runs the code through the compiler's parser,
10393   # not just through cpp. "Syntax error" is here to catch this case.
10394   cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h.  */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h.  */
10400 #ifdef __STDC__
10401 # include <limits.h>
10402 #else
10403 # include <assert.h>
10404 #endif
10405                      Syntax error
10406 _ACEOF
10407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409   ac_status=$?
10410   grep -v '^ *+' conftest.er1 >conftest.err
10411   rm -f conftest.er1
10412   cat conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } >/dev/null; then
10415   if test -s conftest.err; then
10416     ac_cpp_err=$ac_cxx_preproc_warn_flag
10417     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10418   else
10419     ac_cpp_err=
10420   fi
10421 else
10422   ac_cpp_err=yes
10423 fi
10424 if test -z "$ac_cpp_err"; then
10425   :
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430   # Broken: fails on valid input.
10431 continue
10432 fi
10433 rm -f conftest.err conftest.$ac_ext
10434
10435   # OK, works on sane cases.  Now check whether non-existent headers
10436   # can be detected and how.
10437   cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443 #include <ac_nonexistent.h>
10444 _ACEOF
10445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447   ac_status=$?
10448   grep -v '^ *+' conftest.er1 >conftest.err
10449   rm -f conftest.er1
10450   cat conftest.err >&5
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } >/dev/null; then
10453   if test -s conftest.err; then
10454     ac_cpp_err=$ac_cxx_preproc_warn_flag
10455     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10456   else
10457     ac_cpp_err=
10458   fi
10459 else
10460   ac_cpp_err=yes
10461 fi
10462 if test -z "$ac_cpp_err"; then
10463   # Broken: success on invalid input.
10464 continue
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469   # Passes both tests.
10470 ac_preproc_ok=:
10471 break
10472 fi
10473 rm -f conftest.err conftest.$ac_ext
10474
10475 done
10476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477 rm -f conftest.err conftest.$ac_ext
10478 if $ac_preproc_ok; then
10479   :
10480 else
10481   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10482 See \`config.log' for more details." >&5
10483 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10484 See \`config.log' for more details." >&2;}
10485    { (exit 1); exit 1; }; }
10486 fi
10487
10488 ac_ext=cc
10489 ac_cpp='$CXXCPP $CPPFLAGS'
10490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10493
10494 fi
10495
10496
10497 ac_ext=f
10498 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10499 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10500 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10501 if test -n "$ac_tool_prefix"; then
10502   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10503   do
10504     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10506 echo "$as_me:$LINENO: checking for $ac_word" >&5
10507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10508 if test "${ac_cv_prog_F77+set}" = set; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   if test -n "$F77"; then
10512   ac_cv_prog_F77="$F77" # Let the user override the test.
10513 else
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10516 do
10517   IFS=$as_save_IFS
10518   test -z "$as_dir" && as_dir=.
10519   for ac_exec_ext in '' $ac_executable_extensions; do
10520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10521     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10523     break 2
10524   fi
10525 done
10526 done
10527
10528 fi
10529 fi
10530 F77=$ac_cv_prog_F77
10531 if test -n "$F77"; then
10532   echo "$as_me:$LINENO: result: $F77" >&5
10533 echo "${ECHO_T}$F77" >&6
10534 else
10535   echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6
10537 fi
10538
10539     test -n "$F77" && break
10540   done
10541 fi
10542 if test -z "$F77"; then
10543   ac_ct_F77=$F77
10544   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10545 do
10546   # Extract the first word of "$ac_prog", so it can be a program name with args.
10547 set dummy $ac_prog; ac_word=$2
10548 echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10550 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   if test -n "$ac_ct_F77"; then
10554   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10555 else
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557 for as_dir in $PATH
10558 do
10559   IFS=$as_save_IFS
10560   test -z "$as_dir" && as_dir=.
10561   for ac_exec_ext in '' $ac_executable_extensions; do
10562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10563     ac_cv_prog_ac_ct_F77="$ac_prog"
10564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10565     break 2
10566   fi
10567 done
10568 done
10569
10570 fi
10571 fi
10572 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10573 if test -n "$ac_ct_F77"; then
10574   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10575 echo "${ECHO_T}$ac_ct_F77" >&6
10576 else
10577   echo "$as_me:$LINENO: result: no" >&5
10578 echo "${ECHO_T}no" >&6
10579 fi
10580
10581   test -n "$ac_ct_F77" && break
10582 done
10583
10584   F77=$ac_ct_F77
10585 fi
10586
10587
10588 # Provide some information about the compiler.
10589 echo "$as_me:10589:" \
10590      "checking for Fortran 77 compiler version" >&5
10591 ac_compiler=`set X $ac_compile; echo $2`
10592 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10593   (eval $ac_compiler --version </dev/null >&5) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }
10597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10598   (eval $ac_compiler -v </dev/null >&5) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); }
10602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10603   (eval $ac_compiler -V </dev/null >&5) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); }
10607 rm -f a.out
10608
10609 # If we don't use `.F' as extension, the preprocessor is not run on the
10610 # input file.  (Note that this only needs to work for GNU compilers.)
10611 ac_save_ext=$ac_ext
10612 ac_ext=F
10613 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10614 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10615 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   cat >conftest.$ac_ext <<_ACEOF
10619       program main
10620 #ifndef __GNUC__
10621        choke me
10622 #endif
10623
10624       end
10625 _ACEOF
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628   (eval $ac_compile) 2>conftest.er1
10629   ac_status=$?
10630   grep -v '^ *+' conftest.er1 >conftest.err
10631   rm -f conftest.er1
10632   cat conftest.err >&5
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); } &&
10635          { ac_try='test -z "$ac_f77_werror_flag"
10636                          || test ! -s conftest.err'
10637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638   (eval $ac_try) 2>&5
10639   ac_status=$?
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); }; } &&
10642          { ac_try='test -s conftest.$ac_objext'
10643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644   (eval $ac_try) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; }; then
10648   ac_compiler_gnu=yes
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 ac_compiler_gnu=no
10654 fi
10655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10656 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10657
10658 fi
10659 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10660 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10661 ac_ext=$ac_save_ext
10662 ac_test_FFLAGS=${FFLAGS+set}
10663 ac_save_FFLAGS=$FFLAGS
10664 FFLAGS=
10665 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10666 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10667 if test "${ac_cv_prog_f77_g+set}" = set; then
10668   echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670   FFLAGS=-g
10671 cat >conftest.$ac_ext <<_ACEOF
10672       program main
10673
10674       end
10675 _ACEOF
10676 rm -f conftest.$ac_objext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678   (eval $ac_compile) 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -z "$ac_f77_werror_flag"
10686                          || test ! -s conftest.err'
10687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688   (eval $ac_try) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; } &&
10692          { ac_try='test -s conftest.$ac_objext'
10693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694   (eval $ac_try) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); }; }; then
10698   ac_cv_prog_f77_g=yes
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 ac_cv_prog_f77_g=no
10704 fi
10705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10706
10707 fi
10708 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10709 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10710 if test "$ac_test_FFLAGS" = set; then
10711   FFLAGS=$ac_save_FFLAGS
10712 elif test $ac_cv_prog_f77_g = yes; then
10713   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10714     FFLAGS="-g -O2"
10715   else
10716     FFLAGS="-g"
10717   fi
10718 else
10719   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10720     FFLAGS="-O2"
10721   else
10722     FFLAGS=
10723   fi
10724 fi
10725
10726 G77=`test $ac_compiler_gnu = yes && echo yes`
10727 ac_ext=c
10728 ac_cpp='$CPP $CPPFLAGS'
10729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10732
10733
10734
10735 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10736
10737 # find the maximum length of command line arguments
10738 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10739 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10740 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743     i=0
10744   teststring="ABCD"
10745
10746   case $build_os in
10747   msdosdjgpp*)
10748     # On DJGPP, this test can blow up pretty badly due to problems in libc
10749     # (any single argument exceeding 2000 bytes causes a buffer overrun
10750     # during glob expansion).  Even if it were fixed, the result of this
10751     # check would be larger than it should be.
10752     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10753     ;;
10754
10755   gnu*)
10756     # Under GNU Hurd, this test is not required because there is
10757     # no limit to the length of command line arguments.
10758     # Libtool will interpret -1 as no limit whatsoever
10759     lt_cv_sys_max_cmd_len=-1;
10760     ;;
10761
10762   cygwin* | mingw*)
10763     # On Win9x/ME, this test blows up -- it succeeds, but takes
10764     # about 5 minutes as the teststring grows exponentially.
10765     # Worse, since 9x/ME are not pre-emptively multitasking,
10766     # you end up with a "frozen" computer, even though with patience
10767     # the test eventually succeeds (with a max line length of 256k).
10768     # Instead, let's just punt: use the minimum linelength reported by
10769     # all of the supported platforms: 8192 (on NT/2K/XP).
10770     lt_cv_sys_max_cmd_len=8192;
10771     ;;
10772
10773   amigaos*)
10774     # On AmigaOS with pdksh, this test takes hours, literally.
10775     # So we just punt and use a minimum line length of 8192.
10776     lt_cv_sys_max_cmd_len=8192;
10777     ;;
10778
10779   netbsd* | freebsd* | openbsd* | darwin* )
10780     # This has been around since 386BSD, at least.  Likely further.
10781     if test -x /sbin/sysctl; then
10782       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10783     elif test -x /usr/sbin/sysctl; then
10784       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10785     else
10786       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10787     fi
10788     # And add a safety zone
10789     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10790     ;;
10791
10792  *)
10793     # If test is not a shell built-in, we'll probably end up computing a
10794     # maximum length that is only half of the actual maximum length, but
10795     # we can't tell.
10796     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10797     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10798                = "XX$teststring") >/dev/null 2>&1 &&
10799             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10800             lt_cv_sys_max_cmd_len=$new_result &&
10801             test $i != 17 # 1/2 MB should be enough
10802     do
10803       i=`expr $i + 1`
10804       teststring=$teststring$teststring
10805     done
10806     teststring=
10807     # Add a significant safety factor because C++ compilers can tack on massive
10808     # amounts of additional arguments before passing them to the linker.
10809     # It appears as though 1/2 is a usable value.
10810     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10811     ;;
10812   esac
10813
10814 fi
10815
10816 if test -n $lt_cv_sys_max_cmd_len ; then
10817   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10818 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10819 else
10820   echo "$as_me:$LINENO: result: none" >&5
10821 echo "${ECHO_T}none" >&6
10822 fi
10823
10824
10825
10826
10827 # Check for command to grab the raw symbol name followed by C symbol from nm.
10828 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10829 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10830 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833
10834 # These are sane defaults that work on at least a few old systems.
10835 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10836
10837 # Character class describing NM global symbol codes.
10838 symcode='[BCDEGRST]'
10839
10840 # Regexp to match symbols that can be accessed directly from C.
10841 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10842
10843 # Transform the above into a raw symbol and a C symbol.
10844 symxfrm='\1 \2\3 \3'
10845
10846 # Transform an extracted symbol line into a proper C declaration
10847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10848
10849 # Transform an extracted symbol line into symbol name and symbol address
10850 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'"
10851
10852 # Define system-specific variables.
10853 case $host_os in
10854 aix*)
10855   symcode='[BCDT]'
10856   ;;
10857 cygwin* | mingw* | pw32*)
10858   symcode='[ABCDGISTW]'
10859   ;;
10860 hpux*) # Its linker distinguishes data from code symbols
10861   if test "$host_cpu" = ia64; then
10862     symcode='[ABCDEGRST]'
10863   fi
10864   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10865   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'"
10866   ;;
10867 linux*)
10868   if test "$host_cpu" = ia64; then
10869     symcode='[ABCDGIRSTW]'
10870     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10871     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'"
10872   fi
10873   ;;
10874 irix* | nonstopux*)
10875   symcode='[BCDEGRST]'
10876   ;;
10877 osf*)
10878   symcode='[BCDEGQRST]'
10879   ;;
10880 solaris* | sysv5*)
10881   symcode='[BDRT]'
10882   ;;
10883 sysv4)
10884   symcode='[DFNSTU]'
10885   ;;
10886 esac
10887
10888 # Handle CRLF in mingw tool chain
10889 opt_cr=
10890 case $build_os in
10891 mingw*)
10892   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10893   ;;
10894 esac
10895
10896 # If we're using GNU nm, then use its standard symbol codes.
10897 case `$NM -V 2>&1` in
10898 *GNU* | *'with BFD'*)
10899   symcode='[ABCDGIRSTW]' ;;
10900 esac
10901
10902 # Try without a prefix undercore, then with it.
10903 for ac_symprfx in "" "_"; do
10904
10905   # Write the raw and C identifiers.
10906   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10907
10908   # Check to see that the pipe works correctly.
10909   pipe_works=no
10910
10911   rm -f conftest*
10912   cat > conftest.$ac_ext <<EOF
10913 #ifdef __cplusplus
10914 extern "C" {
10915 #endif
10916 char nm_test_var;
10917 void nm_test_func(){}
10918 #ifdef __cplusplus
10919 }
10920 #endif
10921 int main(){nm_test_var='a';nm_test_func();return(0);}
10922 EOF
10923
10924   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925   (eval $ac_compile) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; then
10929     # Now try to grab the symbols.
10930     nlist=conftest.nm
10931     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10932   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); } && test -s "$nlist"; then
10936       # Try sorting and uniquifying the output.
10937       if sort "$nlist" | uniq > "$nlist"T; then
10938         mv -f "$nlist"T "$nlist"
10939       else
10940         rm -f "$nlist"T
10941       fi
10942
10943       # Make sure that we snagged all the symbols we need.
10944       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10945         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10946           cat <<EOF > conftest.$ac_ext
10947 #ifdef __cplusplus
10948 extern "C" {
10949 #endif
10950
10951 EOF
10952           # Now generate the symbol file.
10953           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10954
10955           cat <<EOF >> conftest.$ac_ext
10956 #if defined (__STDC__) && __STDC__
10957 # define lt_ptr_t void *
10958 #else
10959 # define lt_ptr_t char *
10960 # define const
10961 #endif
10962
10963 /* The mapping between symbol names and symbols. */
10964 const struct {
10965   const char *name;
10966   lt_ptr_t address;
10967 }
10968 lt_preloaded_symbols[] =
10969 {
10970 EOF
10971           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10972           cat <<\EOF >> conftest.$ac_ext
10973   {0, (lt_ptr_t) 0}
10974 };
10975
10976 #ifdef __cplusplus
10977 }
10978 #endif
10979 EOF
10980           # Now try linking the two files.
10981           mv conftest.$ac_objext conftstm.$ac_objext
10982           lt_save_LIBS="$LIBS"
10983           lt_save_CFLAGS="$CFLAGS"
10984           LIBS="conftstm.$ac_objext"
10985           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10986           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987   (eval $ac_link) 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10991             pipe_works=yes
10992           fi
10993           LIBS="$lt_save_LIBS"
10994           CFLAGS="$lt_save_CFLAGS"
10995         else
10996           echo "cannot find nm_test_func in $nlist" >&5
10997         fi
10998       else
10999         echo "cannot find nm_test_var in $nlist" >&5
11000       fi
11001     else
11002       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11003     fi
11004   else
11005     echo "$progname: failed program was:" >&5
11006     cat conftest.$ac_ext >&5
11007   fi
11008   rm -f conftest* conftst*
11009
11010   # Do not use the global_symbol_pipe unless it works.
11011   if test "$pipe_works" = yes; then
11012     break
11013   else
11014     lt_cv_sys_global_symbol_pipe=
11015   fi
11016 done
11017
11018 fi
11019
11020 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11021   lt_cv_sys_global_symbol_to_cdecl=
11022 fi
11023 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11024   echo "$as_me:$LINENO: result: failed" >&5
11025 echo "${ECHO_T}failed" >&6
11026 else
11027   echo "$as_me:$LINENO: result: ok" >&5
11028 echo "${ECHO_T}ok" >&6
11029 fi
11030
11031 echo "$as_me:$LINENO: checking for objdir" >&5
11032 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11033 if test "${lt_cv_objdir+set}" = set; then
11034   echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036   rm -f .libs 2>/dev/null
11037 mkdir .libs 2>/dev/null
11038 if test -d .libs; then
11039   lt_cv_objdir=.libs
11040 else
11041   # MS-DOS does not allow filenames that begin with a dot.
11042   lt_cv_objdir=_libs
11043 fi
11044 rmdir .libs 2>/dev/null
11045 fi
11046 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11047 echo "${ECHO_T}$lt_cv_objdir" >&6
11048 objdir=$lt_cv_objdir
11049
11050
11051
11052
11053
11054 case $host_os in
11055 aix3*)
11056   # AIX sometimes has problems with the GCC collect2 program.  For some
11057   # reason, if we set the COLLECT_NAMES environment variable, the problems
11058   # vanish in a puff of smoke.
11059   if test "X${COLLECT_NAMES+set}" != Xset; then
11060     COLLECT_NAMES=
11061     export COLLECT_NAMES
11062   fi
11063   ;;
11064 esac
11065
11066 # Sed substitution that helps us do robust quoting.  It backslashifies
11067 # metacharacters that are still active within double-quoted strings.
11068 Xsed='sed -e s/^X//'
11069 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11070
11071 # Same as above, but do not quote variable references.
11072 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11073
11074 # Sed substitution to delay expansion of an escaped shell variable in a
11075 # double_quote_subst'ed string.
11076 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11077
11078 # Sed substitution to avoid accidental globbing in evaled expressions
11079 no_glob_subst='s/\*/\\\*/g'
11080
11081 # Constants:
11082 rm="rm -f"
11083
11084 # Global variables:
11085 default_ofile=mklib
11086 can_build_shared=yes
11087
11088 # All known linkers require a `.a' archive for static linking (except M$VC,
11089 # which needs '.lib').
11090 libext=a
11091 ltmain="$ac_aux_dir/ltmain.sh"
11092 ofile="$default_ofile"
11093 with_gnu_ld="$lt_cv_prog_gnu_ld"
11094
11095 if test -n "$ac_tool_prefix"; then
11096   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11097 set dummy ${ac_tool_prefix}ar; ac_word=$2
11098 echo "$as_me:$LINENO: checking for $ac_word" >&5
11099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11100 if test "${ac_cv_prog_AR+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   if test -n "$AR"; then
11104   ac_cv_prog_AR="$AR" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109   IFS=$as_save_IFS
11110   test -z "$as_dir" && as_dir=.
11111   for ac_exec_ext in '' $ac_executable_extensions; do
11112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113     ac_cv_prog_AR="${ac_tool_prefix}ar"
11114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11115     break 2
11116   fi
11117 done
11118 done
11119
11120 fi
11121 fi
11122 AR=$ac_cv_prog_AR
11123 if test -n "$AR"; then
11124   echo "$as_me:$LINENO: result: $AR" >&5
11125 echo "${ECHO_T}$AR" >&6
11126 else
11127   echo "$as_me:$LINENO: result: no" >&5
11128 echo "${ECHO_T}no" >&6
11129 fi
11130
11131 fi
11132 if test -z "$ac_cv_prog_AR"; then
11133   ac_ct_AR=$AR
11134   # Extract the first word of "ar", so it can be a program name with args.
11135 set dummy ar; ac_word=$2
11136 echo "$as_me:$LINENO: checking for $ac_word" >&5
11137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11138 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   if test -n "$ac_ct_AR"; then
11142   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11143 else
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11146 do
11147   IFS=$as_save_IFS
11148   test -z "$as_dir" && as_dir=.
11149   for ac_exec_ext in '' $ac_executable_extensions; do
11150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151     ac_cv_prog_ac_ct_AR="ar"
11152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11153     break 2
11154   fi
11155 done
11156 done
11157
11158   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11159 fi
11160 fi
11161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11162 if test -n "$ac_ct_AR"; then
11163   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11164 echo "${ECHO_T}$ac_ct_AR" >&6
11165 else
11166   echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6
11168 fi
11169
11170   AR=$ac_ct_AR
11171 else
11172   AR="$ac_cv_prog_AR"
11173 fi
11174
11175 if test -n "$ac_tool_prefix"; then
11176   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11178 echo "$as_me:$LINENO: checking for $ac_word" >&5
11179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180 if test "${ac_cv_prog_RANLIB+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   if test -n "$RANLIB"; then
11184   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   test -z "$as_dir" && as_dir=.
11191   for ac_exec_ext in '' $ac_executable_extensions; do
11192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195     break 2
11196   fi
11197 done
11198 done
11199
11200 fi
11201 fi
11202 RANLIB=$ac_cv_prog_RANLIB
11203 if test -n "$RANLIB"; then
11204   echo "$as_me:$LINENO: result: $RANLIB" >&5
11205 echo "${ECHO_T}$RANLIB" >&6
11206 else
11207   echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11209 fi
11210
11211 fi
11212 if test -z "$ac_cv_prog_RANLIB"; then
11213   ac_ct_RANLIB=$RANLIB
11214   # Extract the first word of "ranlib", so it can be a program name with args.
11215 set dummy ranlib; ac_word=$2
11216 echo "$as_me:$LINENO: checking for $ac_word" >&5
11217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221   if test -n "$ac_ct_RANLIB"; then
11222   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11223 else
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11226 do
11227   IFS=$as_save_IFS
11228   test -z "$as_dir" && as_dir=.
11229   for ac_exec_ext in '' $ac_executable_extensions; do
11230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231     ac_cv_prog_ac_ct_RANLIB="ranlib"
11232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11233     break 2
11234   fi
11235 done
11236 done
11237
11238   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11239 fi
11240 fi
11241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11242 if test -n "$ac_ct_RANLIB"; then
11243   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11244 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11245 else
11246   echo "$as_me:$LINENO: result: no" >&5
11247 echo "${ECHO_T}no" >&6
11248 fi
11249
11250   RANLIB=$ac_ct_RANLIB
11251 else
11252   RANLIB="$ac_cv_prog_RANLIB"
11253 fi
11254
11255 if test -n "$ac_tool_prefix"; then
11256   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11257 set dummy ${ac_tool_prefix}strip; ac_word=$2
11258 echo "$as_me:$LINENO: checking for $ac_word" >&5
11259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260 if test "${ac_cv_prog_STRIP+set}" = set; then
11261   echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263   if test -n "$STRIP"; then
11264   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11265 else
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11268 do
11269   IFS=$as_save_IFS
11270   test -z "$as_dir" && as_dir=.
11271   for ac_exec_ext in '' $ac_executable_extensions; do
11272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11275     break 2
11276   fi
11277 done
11278 done
11279
11280 fi
11281 fi
11282 STRIP=$ac_cv_prog_STRIP
11283 if test -n "$STRIP"; then
11284   echo "$as_me:$LINENO: result: $STRIP" >&5
11285 echo "${ECHO_T}$STRIP" >&6
11286 else
11287   echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6
11289 fi
11290
11291 fi
11292 if test -z "$ac_cv_prog_STRIP"; then
11293   ac_ct_STRIP=$STRIP
11294   # Extract the first word of "strip", so it can be a program name with args.
11295 set dummy strip; ac_word=$2
11296 echo "$as_me:$LINENO: checking for $ac_word" >&5
11297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11298 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   if test -n "$ac_ct_STRIP"; then
11302   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309   for ac_exec_ext in '' $ac_executable_extensions; do
11310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311     ac_cv_prog_ac_ct_STRIP="strip"
11312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316 done
11317
11318   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11319 fi
11320 fi
11321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11322 if test -n "$ac_ct_STRIP"; then
11323   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11324 echo "${ECHO_T}$ac_ct_STRIP" >&6
11325 else
11326   echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6
11328 fi
11329
11330   STRIP=$ac_ct_STRIP
11331 else
11332   STRIP="$ac_cv_prog_STRIP"
11333 fi
11334
11335
11336 old_CC="$CC"
11337 old_CFLAGS="$CFLAGS"
11338
11339 # Set sane defaults for various variables
11340 test -z "$AR" && AR=ar
11341 test -z "$AR_FLAGS" && AR_FLAGS=cru
11342 test -z "$AS" && AS=as
11343 test -z "$CC" && CC=cc
11344 test -z "$LTCC" && LTCC=$CC
11345 test -z "$DLLTOOL" && DLLTOOL=dlltool
11346 test -z "$LD" && LD=ld
11347 test -z "$LN_S" && LN_S="ln -s"
11348 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11349 test -z "$NM" && NM=nm
11350 test -z "$SED" && SED=sed
11351 test -z "$OBJDUMP" && OBJDUMP=objdump
11352 test -z "$RANLIB" && RANLIB=:
11353 test -z "$STRIP" && STRIP=:
11354 test -z "$ac_objext" && ac_objext=o
11355
11356 # Determine commands to create old-style static archives.
11357 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11358 old_postinstall_cmds='chmod 644 $oldlib'
11359 old_postuninstall_cmds=
11360
11361 if test -n "$RANLIB"; then
11362   case $host_os in
11363   openbsd*)
11364     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11365     ;;
11366   *)
11367     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11368     ;;
11369   esac
11370   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11371 fi
11372
11373 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11374
11375 # Only perform the check for file, if the check method requires it
11376 case $deplibs_check_method in
11377 file_magic*)
11378   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11379     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11380 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11381 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384   case $MAGIC_CMD in
11385 [\\/*] |  ?:[\\/]*)
11386   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11387   ;;
11388 *)
11389   lt_save_MAGIC_CMD="$MAGIC_CMD"
11390   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11391   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11392   for ac_dir in $ac_dummy; do
11393     IFS="$lt_save_ifs"
11394     test -z "$ac_dir" && ac_dir=.
11395     if test -f $ac_dir/${ac_tool_prefix}file; then
11396       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11397       if test -n "$file_magic_test_file"; then
11398         case $deplibs_check_method in
11399         "file_magic "*)
11400           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11401           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11402           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11403             $EGREP "$file_magic_regex" > /dev/null; then
11404             :
11405           else
11406             cat <<EOF 1>&2
11407
11408 *** Warning: the command libtool uses to detect shared libraries,
11409 *** $file_magic_cmd, produces output that libtool cannot recognize.
11410 *** The result is that libtool may fail to recognize shared libraries
11411 *** as such.  This will affect the creation of libtool libraries that
11412 *** depend on shared libraries, but programs linked with such libtool
11413 *** libraries will work regardless of this problem.  Nevertheless, you
11414 *** may want to report the problem to your system manager and/or to
11415 *** bug-libtool@gnu.org
11416
11417 EOF
11418           fi ;;
11419         esac
11420       fi
11421       break
11422     fi
11423   done
11424   IFS="$lt_save_ifs"
11425   MAGIC_CMD="$lt_save_MAGIC_CMD"
11426   ;;
11427 esac
11428 fi
11429
11430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11431 if test -n "$MAGIC_CMD"; then
11432   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11433 echo "${ECHO_T}$MAGIC_CMD" >&6
11434 else
11435   echo "$as_me:$LINENO: result: no" >&5
11436 echo "${ECHO_T}no" >&6
11437 fi
11438
11439 if test -z "$lt_cv_path_MAGIC_CMD"; then
11440   if test -n "$ac_tool_prefix"; then
11441     echo "$as_me:$LINENO: checking for file" >&5
11442 echo $ECHO_N "checking for file... $ECHO_C" >&6
11443 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   case $MAGIC_CMD in
11447 [\\/*] |  ?:[\\/]*)
11448   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11449   ;;
11450 *)
11451   lt_save_MAGIC_CMD="$MAGIC_CMD"
11452   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11453   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11454   for ac_dir in $ac_dummy; do
11455     IFS="$lt_save_ifs"
11456     test -z "$ac_dir" && ac_dir=.
11457     if test -f $ac_dir/file; then
11458       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11459       if test -n "$file_magic_test_file"; then
11460         case $deplibs_check_method in
11461         "file_magic "*)
11462           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11463           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11464           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11465             $EGREP "$file_magic_regex" > /dev/null; then
11466             :
11467           else
11468             cat <<EOF 1>&2
11469
11470 *** Warning: the command libtool uses to detect shared libraries,
11471 *** $file_magic_cmd, produces output that libtool cannot recognize.
11472 *** The result is that libtool may fail to recognize shared libraries
11473 *** as such.  This will affect the creation of libtool libraries that
11474 *** depend on shared libraries, but programs linked with such libtool
11475 *** libraries will work regardless of this problem.  Nevertheless, you
11476 *** may want to report the problem to your system manager and/or to
11477 *** bug-libtool@gnu.org
11478
11479 EOF
11480           fi ;;
11481         esac
11482       fi
11483       break
11484     fi
11485   done
11486   IFS="$lt_save_ifs"
11487   MAGIC_CMD="$lt_save_MAGIC_CMD"
11488   ;;
11489 esac
11490 fi
11491
11492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11493 if test -n "$MAGIC_CMD"; then
11494   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11495 echo "${ECHO_T}$MAGIC_CMD" >&6
11496 else
11497   echo "$as_me:$LINENO: result: no" >&5
11498 echo "${ECHO_T}no" >&6
11499 fi
11500
11501   else
11502     MAGIC_CMD=:
11503   fi
11504 fi
11505
11506   fi
11507   ;;
11508 esac
11509
11510 enable_dlopen=yes
11511 enable_win32_dll=no
11512
11513 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11514 if test "${enable_libtool_lock+set}" = set; then
11515   enableval="$enable_libtool_lock"
11516
11517 fi;
11518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11519
11520
11521 # Check whether --with-pic or --without-pic was given.
11522 if test "${with_pic+set}" = set; then
11523   withval="$with_pic"
11524   pic_mode="$withval"
11525 else
11526   pic_mode=default
11527 fi;
11528 test -z "$pic_mode" && pic_mode=default
11529
11530 # Use C for the default configuration in the libtool script
11531 tagname=
11532 lt_save_CC="$CC"
11533 ac_ext=c
11534 ac_cpp='$CPP $CPPFLAGS'
11535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11538
11539
11540 # Source file extension for C test sources.
11541 ac_ext=c
11542
11543 # Object file extension for compiled C test sources.
11544 objext=o
11545 objext=$objext
11546
11547 # Code to be used in simple compile tests
11548 lt_simple_compile_test_code="int some_variable = 0;\n"
11549
11550 # Code to be used in simple link tests
11551 lt_simple_link_test_code='int main(){return(0);}\n'
11552
11553
11554 # If no C compiler was specified, use CC.
11555 LTCC=${LTCC-"$CC"}
11556
11557 # Allow CC to be a program name with arguments.
11558 compiler=$CC
11559
11560
11561 #
11562 # Check for any special shared library compilation flags.
11563 #
11564 lt_prog_cc_shlib=
11565 if test "$GCC" = no; then
11566   case $host_os in
11567   sco3.2v5*)
11568     lt_prog_cc_shlib='-belf'
11569     ;;
11570   esac
11571 fi
11572 if test -n "$lt_prog_cc_shlib"; then
11573   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11574 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11575   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11576   else
11577     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11578 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11579     lt_cv_prog_cc_can_build_shared=no
11580   fi
11581 fi
11582
11583
11584 #
11585 # Check to make sure the static flag actually works.
11586 #
11587 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11588 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11589 if test "${lt_prog_compiler_static_works+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   lt_prog_compiler_static_works=no
11593    save_LDFLAGS="$LDFLAGS"
11594    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11595    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11596    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11597      # The compiler can only warn and ignore the option if not recognized
11598      # So say no if there are warnings
11599      if test -s conftest.err; then
11600        # Append any errors to the config.log.
11601        cat conftest.err 1>&5
11602      else
11603        lt_prog_compiler_static_works=yes
11604      fi
11605    fi
11606    $rm conftest*
11607    LDFLAGS="$save_LDFLAGS"
11608
11609 fi
11610 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11611 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11612
11613 if test x"$lt_prog_compiler_static_works" = xyes; then
11614     :
11615 else
11616     lt_prog_compiler_static=
11617 fi
11618
11619
11620
11621
11622 lt_prog_compiler_no_builtin_flag=
11623
11624 if test "$GCC" = yes; then
11625   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11626
11627
11628 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11629 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11630 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11631   echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633   lt_cv_prog_compiler_rtti_exceptions=no
11634   ac_outfile=conftest.$ac_objext
11635    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11636    lt_compiler_flag="-fno-rtti -fno-exceptions"
11637    # Insert the option either (1) after the last *FLAGS variable, or
11638    # (2) before a word containing "conftest.", or (3) at the end.
11639    # Note that $ac_compile itself does not contain backslashes and begins
11640    # with a dollar sign (not a hyphen), so the echo should work correctly.
11641    # The option is referenced via a variable to avoid confusing sed.
11642    lt_compile=`echo "$ac_compile" | $SED \
11643    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11644    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11645    -e 's:$: $lt_compiler_flag:'`
11646    (eval echo "\"\$as_me:11646: $lt_compile\"" >&5)
11647    (eval "$lt_compile" 2>conftest.err)
11648    ac_status=$?
11649    cat conftest.err >&5
11650    echo "$as_me:11650: \$? = $ac_status" >&5
11651    if (exit $ac_status) && test -s "$ac_outfile"; then
11652      # The compiler can only warn and ignore the option if not recognized
11653      # So say no if there are warnings
11654      if test ! -s conftest.err; then
11655        lt_cv_prog_compiler_rtti_exceptions=yes
11656      fi
11657    fi
11658    $rm conftest*
11659
11660 fi
11661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11662 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11663
11664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11665     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11666 else
11667     :
11668 fi
11669
11670 fi
11671
11672 lt_prog_compiler_wl=
11673 lt_prog_compiler_pic=
11674 lt_prog_compiler_static=
11675
11676 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11677 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11678
11679   if test "$GCC" = yes; then
11680     lt_prog_compiler_wl='-Wl,'
11681     lt_prog_compiler_static='-static'
11682
11683     case $host_os in
11684       aix*)
11685       # All AIX code is PIC.
11686       if test "$host_cpu" = ia64; then
11687         # AIX 5 now supports IA64 processor
11688         lt_prog_compiler_static='-Bstatic'
11689       fi
11690       ;;
11691
11692     amigaos*)
11693       # FIXME: we need at least 68020 code to build shared libraries, but
11694       # adding the `-m68020' flag to GCC prevents building anything better,
11695       # like `-m68040'.
11696       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11697       ;;
11698
11699     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11700       # PIC is the default for these OSes.
11701       ;;
11702
11703     mingw* | pw32* | os2*)
11704       # This hack is so that the source file can tell whether it is being
11705       # built for inclusion in a dll (and should export symbols for example).
11706       lt_prog_compiler_pic='-DDLL_EXPORT'
11707       ;;
11708
11709     darwin* | rhapsody*)
11710       # PIC is the default on this platform
11711       # Common symbols not allowed in MH_DYLIB files
11712       lt_prog_compiler_pic='-fno-common'
11713       ;;
11714
11715     msdosdjgpp*)
11716       # Just because we use GCC doesn't mean we suddenly get shared libraries
11717       # on systems that don't support them.
11718       lt_prog_compiler_can_build_shared=no
11719       enable_shared=no
11720       ;;
11721
11722     sysv4*MP*)
11723       if test -d /usr/nec; then
11724         lt_prog_compiler_pic=-Kconform_pic
11725       fi
11726       ;;
11727
11728     hpux*)
11729       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11730       # not for PA HP-UX.
11731       case "$host_cpu" in
11732       hppa*64*|ia64*)
11733         # +Z the default
11734         ;;
11735       *)
11736         lt_prog_compiler_pic='-fPIC'
11737         ;;
11738       esac
11739       ;;
11740
11741     *)
11742       lt_prog_compiler_pic='-fPIC'
11743       ;;
11744     esac
11745   else
11746     # PORTME Check for flag to pass linker flags through the system compiler.
11747     case $host_os in
11748     aix*)
11749       lt_prog_compiler_wl='-Wl,'
11750       if test "$host_cpu" = ia64; then
11751         # AIX 5 now supports IA64 processor
11752         lt_prog_compiler_static='-Bstatic'
11753       else
11754         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11755       fi
11756       ;;
11757       darwin*)
11758         # PIC is the default on this platform
11759         # Common symbols not allowed in MH_DYLIB files
11760        case "$cc_basename" in
11761          xlc*)
11762          lt_prog_compiler_pic='-qnocommon'
11763          lt_prog_compiler_wl='-Wl,'
11764          ;;
11765        esac
11766        ;;
11767
11768     mingw* | pw32* | os2*)
11769       # This hack is so that the source file can tell whether it is being
11770       # built for inclusion in a dll (and should export symbols for example).
11771       lt_prog_compiler_pic='-DDLL_EXPORT'
11772       ;;
11773
11774     hpux9* | hpux10* | hpux11*)
11775       lt_prog_compiler_wl='-Wl,'
11776       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11777       # not for PA HP-UX.
11778       case "$host_cpu" in
11779       hppa*64*|ia64*)
11780         # +Z the default
11781         ;;
11782       *)
11783         lt_prog_compiler_pic='+Z'
11784         ;;
11785       esac
11786       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11787       lt_prog_compiler_static='${wl}-a ${wl}archive'
11788       ;;
11789
11790     irix5* | irix6* | nonstopux*)
11791       lt_prog_compiler_wl='-Wl,'
11792       # PIC (with -KPIC) is the default.
11793       lt_prog_compiler_static='-non_shared'
11794       ;;
11795
11796     newsos6)
11797       lt_prog_compiler_pic='-KPIC'
11798       lt_prog_compiler_static='-Bstatic'
11799       ;;
11800
11801     linux*)
11802       case $CC in
11803       icc* | ecc*)
11804         lt_prog_compiler_wl='-Wl,'
11805         lt_prog_compiler_pic='-KPIC'
11806         lt_prog_compiler_static='-static'
11807         ;;
11808       ccc*)
11809         lt_prog_compiler_wl='-Wl,'
11810         # All Alpha code is PIC.
11811         lt_prog_compiler_static='-non_shared'
11812         ;;
11813       esac
11814       ;;
11815
11816     osf3* | osf4* | osf5*)
11817       lt_prog_compiler_wl='-Wl,'
11818       # All OSF/1 code is PIC.
11819       lt_prog_compiler_static='-non_shared'
11820       ;;
11821
11822     sco3.2v5*)
11823       lt_prog_compiler_pic='-Kpic'
11824       lt_prog_compiler_static='-dn'
11825       ;;
11826
11827     solaris*)
11828       lt_prog_compiler_wl='-Wl,'
11829       lt_prog_compiler_pic='-KPIC'
11830       lt_prog_compiler_static='-Bstatic'
11831       ;;
11832
11833     sunos4*)
11834       lt_prog_compiler_wl='-Qoption ld '
11835       lt_prog_compiler_pic='-PIC'
11836       lt_prog_compiler_static='-Bstatic'
11837       ;;
11838
11839     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11840       lt_prog_compiler_wl='-Wl,'
11841       lt_prog_compiler_pic='-KPIC'
11842       lt_prog_compiler_static='-Bstatic'
11843       ;;
11844
11845     sysv4*MP*)
11846       if test -d /usr/nec ;then
11847         lt_prog_compiler_pic='-Kconform_pic'
11848         lt_prog_compiler_static='-Bstatic'
11849       fi
11850       ;;
11851
11852     uts4*)
11853       lt_prog_compiler_pic='-pic'
11854       lt_prog_compiler_static='-Bstatic'
11855       ;;
11856
11857     *)
11858       lt_prog_compiler_can_build_shared=no
11859       ;;
11860     esac
11861   fi
11862
11863 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11864 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11865
11866 #
11867 # Check to make sure the PIC flag actually works.
11868 #
11869 if test -n "$lt_prog_compiler_pic"; then
11870
11871 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11872 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11873 if test "${lt_prog_compiler_pic_works+set}" = set; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   lt_prog_compiler_pic_works=no
11877   ac_outfile=conftest.$ac_objext
11878    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11879    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11880    # Insert the option either (1) after the last *FLAGS variable, or
11881    # (2) before a word containing "conftest.", or (3) at the end.
11882    # Note that $ac_compile itself does not contain backslashes and begins
11883    # with a dollar sign (not a hyphen), so the echo should work correctly.
11884    # The option is referenced via a variable to avoid confusing sed.
11885    lt_compile=`echo "$ac_compile" | $SED \
11886    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11888    -e 's:$: $lt_compiler_flag:'`
11889    (eval echo "\"\$as_me:11889: $lt_compile\"" >&5)
11890    (eval "$lt_compile" 2>conftest.err)
11891    ac_status=$?
11892    cat conftest.err >&5
11893    echo "$as_me:11893: \$? = $ac_status" >&5
11894    if (exit $ac_status) && test -s "$ac_outfile"; then
11895      # The compiler can only warn and ignore the option if not recognized
11896      # So say no if there are warnings
11897      if test ! -s conftest.err; then
11898        lt_prog_compiler_pic_works=yes
11899      fi
11900    fi
11901    $rm conftest*
11902
11903 fi
11904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11905 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11906
11907 if test x"$lt_prog_compiler_pic_works" = xyes; then
11908     case $lt_prog_compiler_pic in
11909      "" | " "*) ;;
11910      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11911      esac
11912 else
11913     lt_prog_compiler_pic=
11914      lt_prog_compiler_can_build_shared=no
11915 fi
11916
11917 fi
11918 case "$host_os" in
11919   # For platforms which do not support PIC, -DPIC is meaningless:
11920   *djgpp*)
11921     lt_prog_compiler_pic=
11922     ;;
11923   *)
11924     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11925     ;;
11926 esac
11927
11928 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11929 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   lt_cv_prog_compiler_c_o=no
11934    $rm -r conftest 2>/dev/null
11935    mkdir conftest
11936    cd conftest
11937    mkdir out
11938    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11939
11940    lt_compiler_flag="-o out/conftest2.$ac_objext"
11941    # Insert the option either (1) after the last *FLAGS variable, or
11942    # (2) before a word containing "conftest.", or (3) at the end.
11943    # Note that $ac_compile itself does not contain backslashes and begins
11944    # with a dollar sign (not a hyphen), so the echo should work correctly.
11945    lt_compile=`echo "$ac_compile" | $SED \
11946    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11947    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11948    -e 's:$: $lt_compiler_flag:'`
11949    (eval echo "\"\$as_me:11949: $lt_compile\"" >&5)
11950    (eval "$lt_compile" 2>out/conftest.err)
11951    ac_status=$?
11952    cat out/conftest.err >&5
11953    echo "$as_me:11953: \$? = $ac_status" >&5
11954    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11955    then
11956      # The compiler can only warn and ignore the option if not recognized
11957      # So say no if there are warnings
11958      if test ! -s out/conftest.err; then
11959        lt_cv_prog_compiler_c_o=yes
11960      fi
11961    fi
11962    chmod u+w .
11963    $rm conftest*
11964    # SGI C++ compiler will create directory out/ii_files/ for
11965    # template instantiation
11966    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11967    $rm out/* && rmdir out
11968    cd ..
11969    rmdir conftest
11970    $rm conftest*
11971
11972 fi
11973 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11975
11976
11977 hard_links="nottested"
11978 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11979   # do not overwrite the value of need_locks provided by the user
11980   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11981 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11982   hard_links=yes
11983   $rm conftest*
11984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11985   touch conftest.a
11986   ln conftest.a conftest.b 2>&5 || hard_links=no
11987   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11988   echo "$as_me:$LINENO: result: $hard_links" >&5
11989 echo "${ECHO_T}$hard_links" >&6
11990   if test "$hard_links" = no; then
11991     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11992 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11993     need_locks=warn
11994   fi
11995 else
11996   need_locks=no
11997 fi
11998
11999 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12001
12002   runpath_var=
12003   allow_undefined_flag=
12004   enable_shared_with_static_runtimes=no
12005   archive_cmds=
12006   archive_expsym_cmds=
12007   old_archive_From_new_cmds=
12008   old_archive_from_expsyms_cmds=
12009   export_dynamic_flag_spec=
12010   whole_archive_flag_spec=
12011   thread_safe_flag_spec=
12012   hardcode_libdir_flag_spec=
12013   hardcode_libdir_flag_spec_ld=
12014   hardcode_libdir_separator=
12015   hardcode_direct=no
12016   hardcode_minus_L=no
12017   hardcode_shlibpath_var=unsupported
12018   link_all_deplibs=unknown
12019   hardcode_automatic=no
12020   module_cmds=
12021   module_expsym_cmds=
12022   always_export_symbols=no
12023   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12024   # include_expsyms should be a list of space-separated symbols to be *always*
12025   # included in the symbol list
12026   include_expsyms=
12027   # exclude_expsyms can be an extended regexp of symbols to exclude
12028   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12029   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12030   # as well as any symbol that contains `d'.
12031   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12032   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12033   # platforms (ab)use it in PIC code, but their linkers get confused if
12034   # the symbol is explicitly referenced.  Since portable code cannot
12035   # rely on this symbol name, it's probably fine to never include it in
12036   # preloaded symbol tables.
12037   extract_expsyms_cmds=
12038
12039   case $host_os in
12040   cygwin* | mingw* | pw32*)
12041     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12042     # When not using gcc, we currently assume that we are using
12043     # Microsoft Visual C++.
12044     if test "$GCC" != yes; then
12045       with_gnu_ld=no
12046     fi
12047     ;;
12048   openbsd*)
12049     with_gnu_ld=no
12050     ;;
12051   esac
12052
12053   ld_shlibs=yes
12054   if test "$with_gnu_ld" = yes; then
12055     # If archive_cmds runs LD, not CC, wlarc should be empty
12056     wlarc='${wl}'
12057
12058     # See if GNU ld supports shared libraries.
12059     case $host_os in
12060     aix3* | aix4* | aix5*)
12061       # On AIX/PPC, the GNU linker is very broken
12062       if test "$host_cpu" != ia64; then
12063         ld_shlibs=no
12064         cat <<EOF 1>&2
12065
12066 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12067 *** to be unable to reliably create shared libraries on AIX.
12068 *** Therefore, libtool is disabling shared libraries support.  If you
12069 *** really care for shared libraries, you may want to modify your PATH
12070 *** so that a non-GNU linker is found, and then restart.
12071
12072 EOF
12073       fi
12074       ;;
12075
12076     amigaos*)
12077       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)'
12078       hardcode_libdir_flag_spec='-L$libdir'
12079       hardcode_minus_L=yes
12080
12081       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12082       # that the semantics of dynamic libraries on AmigaOS, at least up
12083       # to version 4, is to share data among multiple programs linked
12084       # with the same dynamic library.  Since this doesn't match the
12085       # behavior of shared libraries on other platforms, we can't use
12086       # them.
12087       ld_shlibs=no
12088       ;;
12089
12090     beos*)
12091       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12092         allow_undefined_flag=unsupported
12093         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12094         # support --undefined.  This deserves some investigation.  FIXME
12095         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12096       else
12097         ld_shlibs=no
12098       fi
12099       ;;
12100
12101     cygwin* | mingw* | pw32*)
12102       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12103       # as there is no search path for DLLs.
12104       hardcode_libdir_flag_spec='-L$libdir'
12105       allow_undefined_flag=unsupported
12106       always_export_symbols=no
12107       enable_shared_with_static_runtimes=yes
12108       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12109
12110       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12111         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12112         # If the export-symbols file already is a .def file (1st line
12113         # is EXPORTS), use it as is; otherwise, prepend...
12114         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12115           cp $export_symbols $output_objdir/$soname.def;
12116         else
12117           echo EXPORTS > $output_objdir/$soname.def;
12118           cat $export_symbols >> $output_objdir/$soname.def;
12119         fi~
12120         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12121       else
12122         ld_shlibs=no
12123       fi
12124       ;;
12125
12126     netbsd*)
12127       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12128         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12129         wlarc=
12130       else
12131         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12132         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12133       fi
12134       ;;
12135
12136     solaris* | sysv5*)
12137       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12138         ld_shlibs=no
12139         cat <<EOF 1>&2
12140
12141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12142 *** create shared libraries on Solaris systems.  Therefore, libtool
12143 *** is disabling shared libraries support.  We urge you to upgrade GNU
12144 *** binutils to release 2.9.1 or newer.  Another option is to modify
12145 *** your PATH or compiler configuration so that the native linker is
12146 *** used, and then restart.
12147
12148 EOF
12149       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12150         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12152       else
12153         ld_shlibs=no
12154       fi
12155       ;;
12156
12157     sunos4*)
12158       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12159       wlarc=
12160       hardcode_direct=yes
12161       hardcode_shlibpath_var=no
12162       ;;
12163
12164   linux*)
12165     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12166         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12167         archive_cmds="$tmp_archive_cmds"
12168       supports_anon_versioning=no
12169       case `$LD -v 2>/dev/null` in
12170         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12171         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12172         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12173         *\ 2.11.*) ;; # other 2.11 versions
12174         *) supports_anon_versioning=yes ;;
12175       esac
12176       if test $supports_anon_versioning = yes; then
12177         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12179 $echo "local: *; };" >> $output_objdir/$libname.ver~
12180         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12181       else
12182         archive_expsym_cmds="$tmp_archive_cmds"
12183       fi
12184     else
12185       ld_shlibs=no
12186     fi
12187     ;;
12188
12189     *)
12190       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12193       else
12194         ld_shlibs=no
12195       fi
12196       ;;
12197     esac
12198
12199     if test "$ld_shlibs" = yes; then
12200       runpath_var=LD_RUN_PATH
12201       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12202       export_dynamic_flag_spec='${wl}--export-dynamic'
12203       # ancient GNU ld didn't support --whole-archive et. al.
12204       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12205         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12206       else
12207         whole_archive_flag_spec=
12208       fi
12209     fi
12210   else
12211     # PORTME fill in a description of your system's linker (not GNU ld)
12212     case $host_os in
12213     aix3*)
12214       allow_undefined_flag=unsupported
12215       always_export_symbols=yes
12216       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'
12217       # Note: this linker hardcodes the directories in LIBPATH if there
12218       # are no directories specified by -L.
12219       hardcode_minus_L=yes
12220       if test "$GCC" = yes && test -z "$link_static_flag"; then
12221         # Neither direct hardcoding nor static linking is supported with a
12222         # broken collect2.
12223         hardcode_direct=unsupported
12224       fi
12225       ;;
12226
12227     aix4* | aix5*)
12228       if test "$host_cpu" = ia64; then
12229         # On IA64, the linker does run time linking by default, so we don't
12230         # have to do anything special.
12231         aix_use_runtimelinking=no
12232         exp_sym_flag='-Bexport'
12233         no_entry_flag=""
12234       else
12235         # If we're using GNU nm, then we don't want the "-C" option.
12236         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12237         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12238           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'
12239         else
12240           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'
12241         fi
12242         aix_use_runtimelinking=no
12243
12244         # Test if we are trying to use run time linking or normal
12245         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12246         # need to do runtime linking.
12247         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12248           for ld_flag in $LDFLAGS; do
12249           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12250             aix_use_runtimelinking=yes
12251             break
12252           fi
12253           done
12254         esac
12255
12256         exp_sym_flag='-bexport'
12257         no_entry_flag='-bnoentry'
12258       fi
12259
12260       # When large executables or shared objects are built, AIX ld can
12261       # have problems creating the table of contents.  If linking a library
12262       # or program results in "error TOC overflow" add -mminimal-toc to
12263       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12264       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12265
12266       archive_cmds=''
12267       hardcode_direct=yes
12268       hardcode_libdir_separator=':'
12269       link_all_deplibs=yes
12270
12271       if test "$GCC" = yes; then
12272         case $host_os in aix4.012|aix4.012.*)
12273         # We only want to do this on AIX 4.2 and lower, the check
12274         # below for broken collect2 doesn't work under 4.3+
12275           collect2name=`${CC} -print-prog-name=collect2`
12276           if test -f "$collect2name" && \
12277            strings "$collect2name" | grep resolve_lib_name >/dev/null
12278           then
12279           # We have reworked collect2
12280           hardcode_direct=yes
12281           else
12282           # We have old collect2
12283           hardcode_direct=unsupported
12284           # It fails to find uninstalled libraries when the uninstalled
12285           # path is not listed in the libpath.  Setting hardcode_minus_L
12286           # to unsupported forces relinking
12287           hardcode_minus_L=yes
12288           hardcode_libdir_flag_spec='-L$libdir'
12289           hardcode_libdir_separator=
12290           fi
12291         esac
12292         shared_flag='-shared'
12293       else
12294         # not using gcc
12295         if test "$host_cpu" = ia64; then
12296         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12297         # chokes on -Wl,-G. The following line is correct:
12298           shared_flag='-G'
12299         else
12300         if test "$aix_use_runtimelinking" = yes; then
12301             shared_flag='${wl}-G'
12302           else
12303             shared_flag='${wl}-bM:SRE'
12304         fi
12305         fi
12306       fi
12307
12308       # It seems that -bexpall does not export symbols beginning with
12309       # underscore (_), so it is better to generate a list of symbols to export.
12310       always_export_symbols=yes
12311       if test "$aix_use_runtimelinking" = yes; then
12312         # Warning - without using the other runtime loading flags (-brtl),
12313         # -berok will link without error, but may produce a broken library.
12314         allow_undefined_flag='-berok'
12315        # Determine the default libpath from the value encoded in an empty executable.
12316        cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322
12323 int
12324 main ()
12325 {
12326
12327   ;
12328   return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12333   (eval $ac_link) 2>conftest.er1
12334   ac_status=$?
12335   grep -v '^ *+' conftest.er1 >conftest.err
12336   rm -f conftest.er1
12337   cat conftest.err >&5
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); } &&
12340          { ac_try='test -z "$ac_c_werror_flag"
12341                          || test ! -s conftest.err'
12342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343   (eval $ac_try) 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; } &&
12347          { ac_try='test -s conftest$ac_exeext'
12348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349   (eval $ac_try) 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; }; then
12353
12354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12355 }'`
12356 # Check for a 64-bit object if we didn't find anything.
12357 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; }
12358 }'`; fi
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363 fi
12364 rm -f conftest.err conftest.$ac_objext \
12365       conftest$ac_exeext conftest.$ac_ext
12366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12367
12368        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12369         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"
12370        else
12371         if test "$host_cpu" = ia64; then
12372           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12373           allow_undefined_flag="-z nodefs"
12374           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"
12375         else
12376          # Determine the default libpath from the value encoded in an empty executable.
12377          cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383
12384 int
12385 main ()
12386 {
12387
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394   (eval $ac_link) 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -z "$ac_c_werror_flag"
12402                          || test ! -s conftest.err'
12403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404   (eval $ac_try) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; } &&
12408          { ac_try='test -s conftest$ac_exeext'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414
12415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12416 }'`
12417 # Check for a 64-bit object if we didn't find anything.
12418 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; }
12419 }'`; fi
12420 else
12421   echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 fi
12425 rm -f conftest.err conftest.$ac_objext \
12426       conftest$ac_exeext conftest.$ac_ext
12427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12428
12429          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12430           # Warning - without using the other run time loading flags,
12431           # -berok will link without error, but may produce a broken library.
12432           no_undefined_flag=' ${wl}-bernotok'
12433           allow_undefined_flag=' ${wl}-berok'
12434           # -bexpall does not export symbols beginning with underscore (_)
12435           always_export_symbols=yes
12436           # Exported symbols can be pulled into shared objects from archives
12437           whole_archive_flag_spec=' '
12438           archive_cmds_need_lc=yes
12439           # This is similar to how AIX traditionally builds it's shared libraries.
12440           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'
12441         fi
12442       fi
12443       ;;
12444
12445     amigaos*)
12446       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)'
12447       hardcode_libdir_flag_spec='-L$libdir'
12448       hardcode_minus_L=yes
12449       # see comment about different semantics on the GNU ld section
12450       ld_shlibs=no
12451       ;;
12452
12453     bsdi[45]*)
12454       export_dynamic_flag_spec=-rdynamic
12455       ;;
12456
12457     cygwin* | mingw* | pw32*)
12458       # When not using gcc, we currently assume that we are using
12459       # Microsoft Visual C++.
12460       # hardcode_libdir_flag_spec is actually meaningless, as there is
12461       # no search path for DLLs.
12462       hardcode_libdir_flag_spec=' '
12463       allow_undefined_flag=unsupported
12464       # Tell ltmain to make .lib files, not .a files.
12465       libext=lib
12466       # Tell ltmain to make .dll files, not .so files.
12467       shrext_cmds=".dll"
12468       # FIXME: Setting linknames here is a bad hack.
12469       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12470       # The linker will automatically build a .lib file if we build a DLL.
12471       old_archive_From_new_cmds='true'
12472       # FIXME: Should let the user specify the lib program.
12473       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12474       fix_srcfile_path='`cygpath -w "$srcfile"`'
12475       enable_shared_with_static_runtimes=yes
12476       ;;
12477
12478     darwin* | rhapsody*)
12479       case "$host_os" in
12480         rhapsody* | darwin1.[012])
12481          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12482          ;;
12483        *) # Darwin 1.3 on
12484          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12485            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12486          else
12487            case ${MACOSX_DEPLOYMENT_TARGET} in
12488              10.[012])
12489                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12490                ;;
12491              10.*)
12492                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12493                ;;
12494            esac
12495          fi
12496          ;;
12497       esac
12498       archive_cmds_need_lc=no
12499       hardcode_direct=no
12500       hardcode_automatic=yes
12501       hardcode_shlibpath_var=unsupported
12502       whole_archive_flag_spec=''
12503       link_all_deplibs=yes
12504     if test "$GCC" = yes ; then
12505         output_verbose_link_cmd='echo'
12506         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12507       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12508       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12509       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}'
12510       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}'
12511     else
12512       case "$cc_basename" in
12513         xlc*)
12514          output_verbose_link_cmd='echo'
12515          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12516          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12517           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12518          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}'
12519           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}'
12520           ;;
12521        *)
12522          ld_shlibs=no
12523           ;;
12524       esac
12525     fi
12526       ;;
12527
12528     dgux*)
12529       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12530       hardcode_libdir_flag_spec='-L$libdir'
12531       hardcode_shlibpath_var=no
12532       ;;
12533
12534     freebsd1*)
12535       ld_shlibs=no
12536       ;;
12537
12538     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12539     # support.  Future versions do this automatically, but an explicit c++rt0.o
12540     # does not break anything, and helps significantly (at the cost of a little
12541     # extra space).
12542     freebsd2.2*)
12543       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12544       hardcode_libdir_flag_spec='-R$libdir'
12545       hardcode_direct=yes
12546       hardcode_shlibpath_var=no
12547       ;;
12548
12549     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12550     freebsd2*)
12551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12552       hardcode_direct=yes
12553       hardcode_minus_L=yes
12554       hardcode_shlibpath_var=no
12555       ;;
12556
12557     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12558     freebsd* | kfreebsd*-gnu)
12559       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12560       hardcode_libdir_flag_spec='-R$libdir'
12561       hardcode_direct=yes
12562       hardcode_shlibpath_var=no
12563       ;;
12564
12565     hpux9*)
12566       if test "$GCC" = yes; then
12567         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'
12568       else
12569         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'
12570       fi
12571       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12572       hardcode_libdir_separator=:
12573       hardcode_direct=yes
12574
12575       # hardcode_minus_L: Not really in the search PATH,
12576       # but as the default location of the library.
12577       hardcode_minus_L=yes
12578       export_dynamic_flag_spec='${wl}-E'
12579       ;;
12580
12581     hpux10* | hpux11*)
12582       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12583         case "$host_cpu" in
12584         hppa*64*|ia64*)
12585           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12586           ;;
12587         *)
12588           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12589           ;;
12590         esac
12591       else
12592         case "$host_cpu" in
12593         hppa*64*|ia64*)
12594           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12595           ;;
12596         *)
12597           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12598           ;;
12599         esac
12600       fi
12601       if test "$with_gnu_ld" = no; then
12602         case "$host_cpu" in
12603         hppa*64*)
12604           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12605           hardcode_libdir_flag_spec_ld='+b $libdir'
12606           hardcode_libdir_separator=:
12607           hardcode_direct=no
12608           hardcode_shlibpath_var=no
12609           ;;
12610         ia64*)
12611           hardcode_libdir_flag_spec='-L$libdir'
12612           hardcode_direct=no
12613           hardcode_shlibpath_var=no
12614
12615           # hardcode_minus_L: Not really in the search PATH,
12616           # but as the default location of the library.
12617           hardcode_minus_L=yes
12618           ;;
12619         *)
12620           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12621           hardcode_libdir_separator=:
12622           hardcode_direct=yes
12623           export_dynamic_flag_spec='${wl}-E'
12624
12625           # hardcode_minus_L: Not really in the search PATH,
12626           # but as the default location of the library.
12627           hardcode_minus_L=yes
12628           ;;
12629         esac
12630       fi
12631       ;;
12632
12633     irix5* | irix6* | nonstopux*)
12634       if test "$GCC" = yes; then
12635         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'
12636       else
12637         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'
12638         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12639       fi
12640       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12641       hardcode_libdir_separator=:
12642       link_all_deplibs=yes
12643       ;;
12644
12645     netbsd*)
12646       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12647         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12648       else
12649         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12650       fi
12651       hardcode_libdir_flag_spec='-R$libdir'
12652       hardcode_direct=yes
12653       hardcode_shlibpath_var=no
12654       ;;
12655
12656     newsos6)
12657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12658       hardcode_direct=yes
12659       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12660       hardcode_libdir_separator=:
12661       hardcode_shlibpath_var=no
12662       ;;
12663
12664     openbsd*)
12665       hardcode_direct=yes
12666       hardcode_shlibpath_var=no
12667       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12668         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12669         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12670         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12671         export_dynamic_flag_spec='${wl}-E'
12672       else
12673        case $host_os in
12674          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12675            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12676            hardcode_libdir_flag_spec='-R$libdir'
12677            ;;
12678          *)
12679            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12680            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12681            ;;
12682        esac
12683       fi
12684       ;;
12685
12686     os2*)
12687       hardcode_libdir_flag_spec='-L$libdir'
12688       hardcode_minus_L=yes
12689       allow_undefined_flag=unsupported
12690       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'
12691       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12692       ;;
12693
12694     osf3*)
12695       if test "$GCC" = yes; then
12696         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12697         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'
12698       else
12699         allow_undefined_flag=' -expect_unresolved \*'
12700         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'
12701       fi
12702       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12703       hardcode_libdir_separator=:
12704       ;;
12705
12706     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12707       if test "$GCC" = yes; then
12708         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12709         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'
12710         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12711       else
12712         allow_undefined_flag=' -expect_unresolved \*'
12713         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'
12714         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12715         $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'
12716
12717         # Both c and cxx compiler support -rpath directly
12718         hardcode_libdir_flag_spec='-rpath $libdir'
12719       fi
12720       hardcode_libdir_separator=:
12721       ;;
12722
12723     sco3.2v5*)
12724       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12725       hardcode_shlibpath_var=no
12726       export_dynamic_flag_spec='${wl}-Bexport'
12727       runpath_var=LD_RUN_PATH
12728       hardcode_runpath_var=yes
12729       ;;
12730
12731     solaris*)
12732       no_undefined_flag=' -z text'
12733       if test "$GCC" = yes; then
12734         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12735         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12736           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12737       else
12738         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12739         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12740         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12741       fi
12742       hardcode_libdir_flag_spec='-R$libdir'
12743       hardcode_shlibpath_var=no
12744       case $host_os in
12745       solaris2.[0-5] | solaris2.[0-5].*) ;;
12746       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12747         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12748       esac
12749       link_all_deplibs=yes
12750       ;;
12751
12752     sunos4*)
12753       if test "x$host_vendor" = xsequent; then
12754         # Use $CC to link under sequent, because it throws in some extra .o
12755         # files that make .init and .fini sections work.
12756         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12757       else
12758         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12759       fi
12760       hardcode_libdir_flag_spec='-L$libdir'
12761       hardcode_direct=yes
12762       hardcode_minus_L=yes
12763       hardcode_shlibpath_var=no
12764       ;;
12765
12766     sysv4)
12767       case $host_vendor in
12768         sni)
12769           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12770           hardcode_direct=yes # is this really true???
12771         ;;
12772         siemens)
12773           ## LD is ld it makes a PLAMLIB
12774           ## CC just makes a GrossModule.
12775           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12776           reload_cmds='$CC -r -o $output$reload_objs'
12777           hardcode_direct=no
12778         ;;
12779         motorola)
12780           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12781           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12782         ;;
12783       esac
12784       runpath_var='LD_RUN_PATH'
12785       hardcode_shlibpath_var=no
12786       ;;
12787
12788     sysv4.3*)
12789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12790       hardcode_shlibpath_var=no
12791       export_dynamic_flag_spec='-Bexport'
12792       ;;
12793
12794     sysv4*MP*)
12795       if test -d /usr/nec; then
12796         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12797         hardcode_shlibpath_var=no
12798         runpath_var=LD_RUN_PATH
12799         hardcode_runpath_var=yes
12800         ld_shlibs=yes
12801       fi
12802       ;;
12803
12804     sysv4.2uw2*)
12805       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12806       hardcode_direct=yes
12807       hardcode_minus_L=no
12808       hardcode_shlibpath_var=no
12809       hardcode_runpath_var=yes
12810       runpath_var=LD_RUN_PATH
12811       ;;
12812
12813    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12814       no_undefined_flag='${wl}-z ${wl}text'
12815       if test "$GCC" = yes; then
12816         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12817       else
12818         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12819       fi
12820       runpath_var='LD_RUN_PATH'
12821       hardcode_shlibpath_var=no
12822       ;;
12823
12824     sysv5*)
12825       no_undefined_flag=' -z text'
12826       # $CC -shared without GNU ld will not create a library from C++
12827       # object files and a static libstdc++, better avoid it by now
12828       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12829       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12830                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12831       hardcode_libdir_flag_spec=
12832       hardcode_shlibpath_var=no
12833       runpath_var='LD_RUN_PATH'
12834       ;;
12835
12836     uts4*)
12837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12838       hardcode_libdir_flag_spec='-L$libdir'
12839       hardcode_shlibpath_var=no
12840       ;;
12841
12842     *)
12843       ld_shlibs=no
12844       ;;
12845     esac
12846   fi
12847
12848 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12849 echo "${ECHO_T}$ld_shlibs" >&6
12850 test "$ld_shlibs" = no && can_build_shared=no
12851
12852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12853 if test "$GCC" = yes; then
12854   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12855 fi
12856
12857 #
12858 # Do we need to explicitly link libc?
12859 #
12860 case "x$archive_cmds_need_lc" in
12861 x|xyes)
12862   # Assume -lc should be added
12863   archive_cmds_need_lc=yes
12864
12865   if test "$enable_shared" = yes && test "$GCC" = yes; then
12866     case $archive_cmds in
12867     *'~'*)
12868       # FIXME: we may have to deal with multi-command sequences.
12869       ;;
12870     '$CC '*)
12871       # Test whether the compiler implicitly links with -lc since on some
12872       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12873       # to ld, don't add -lc before -lgcc.
12874       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12875 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12876       $rm conftest*
12877       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12878
12879       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880   (eval $ac_compile) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } 2>conftest.err; then
12884         soname=conftest
12885         lib=conftest
12886         libobjs=conftest.$ac_objext
12887         deplibs=
12888         wl=$lt_prog_compiler_wl
12889         compiler_flags=-v
12890         linker_flags=-v
12891         verstring=
12892         output_objdir=.
12893         libname=conftest
12894         lt_save_allow_undefined_flag=$allow_undefined_flag
12895         allow_undefined_flag=
12896         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12897   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }
12901         then
12902           archive_cmds_need_lc=no
12903         else
12904           archive_cmds_need_lc=yes
12905         fi
12906         allow_undefined_flag=$lt_save_allow_undefined_flag
12907       else
12908         cat conftest.err 1>&5
12909       fi
12910       $rm conftest*
12911       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12912 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12913       ;;
12914     esac
12915   fi
12916   ;;
12917 esac
12918
12919 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12921 library_names_spec=
12922 libname_spec='lib$name'
12923 soname_spec=
12924 shrext_cmds=".so"
12925 postinstall_cmds=
12926 postuninstall_cmds=
12927 finish_cmds=
12928 finish_eval=
12929 shlibpath_var=
12930 shlibpath_overrides_runpath=unknown
12931 version_type=none
12932 dynamic_linker="$host_os ld.so"
12933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12934 if test "$GCC" = yes; then
12935   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12936   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12937     # if the path contains ";" then we assume it to be the separator
12938     # otherwise default to the standard path separator (i.e. ":") - it is
12939     # assumed that no part of a normal pathname contains ";" but that should
12940     # okay in the real world where ";" in dirpaths is itself problematic.
12941     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12942   else
12943     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12944   fi
12945 else
12946   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12947 fi
12948 need_lib_prefix=unknown
12949 hardcode_into_libs=no
12950
12951 # when you set need_version to no, make sure it does not cause -set_version
12952 # flags to be left without arguments
12953 need_version=unknown
12954
12955 case $host_os in
12956 aix3*)
12957   version_type=linux
12958   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12959   shlibpath_var=LIBPATH
12960
12961   # AIX 3 has no versioning support, so we append a major version to the name.
12962   soname_spec='${libname}${release}${shared_ext}$major'
12963   ;;
12964
12965 aix4* | aix5*)
12966   version_type=linux
12967   need_lib_prefix=no
12968   need_version=no
12969   hardcode_into_libs=yes
12970   if test "$host_cpu" = ia64; then
12971     # AIX 5 supports IA64
12972     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12973     shlibpath_var=LD_LIBRARY_PATH
12974   else
12975     # With GCC up to 2.95.x, collect2 would create an import file
12976     # for dependence libraries.  The import file would start with
12977     # the line `#! .'.  This would cause the generated library to
12978     # depend on `.', always an invalid library.  This was fixed in
12979     # development snapshots of GCC prior to 3.0.
12980     case $host_os in
12981       aix4 | aix4.[01] | aix4.[01].*)
12982       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12983            echo ' yes '
12984            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12985         :
12986       else
12987         can_build_shared=no
12988       fi
12989       ;;
12990     esac
12991     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12992     # soname into executable. Probably we can add versioning support to
12993     # collect2, so additional links can be useful in future.
12994     if test "$aix_use_runtimelinking" = yes; then
12995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12996       # instead of lib<name>.a to let people know that these are not
12997       # typical AIX shared libraries.
12998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999     else
13000       # We preserve .a as extension for shared libraries through AIX4.2
13001       # and later when we are not doing run time linking.
13002       library_names_spec='${libname}${release}.a $libname.a'
13003       soname_spec='${libname}${release}${shared_ext}$major'
13004     fi
13005     shlibpath_var=LIBPATH
13006   fi
13007   ;;
13008
13009 amigaos*)
13010   library_names_spec='$libname.ixlibrary $libname.a'
13011   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13012   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'
13013   ;;
13014
13015 beos*)
13016   library_names_spec='${libname}${shared_ext}'
13017   dynamic_linker="$host_os ld.so"
13018   shlibpath_var=LIBRARY_PATH
13019   ;;
13020
13021 bsdi[45]*)
13022   version_type=linux
13023   need_version=no
13024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025   soname_spec='${libname}${release}${shared_ext}$major'
13026   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13027   shlibpath_var=LD_LIBRARY_PATH
13028   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13029   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13030   # the default ld.so.conf also contains /usr/contrib/lib and
13031   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13032   # libtool to hard-code these into programs
13033   ;;
13034
13035 cygwin* | mingw* | pw32*)
13036   version_type=windows
13037   shrext_cmds=".dll"
13038   need_version=no
13039   need_lib_prefix=no
13040
13041   case $GCC,$host_os in
13042   yes,cygwin* | yes,mingw* | yes,pw32*)
13043     library_names_spec='$libname.dll.a'
13044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13045     postinstall_cmds='base_file=`basename \${file}`~
13046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13047       dldir=$destdir/`dirname \$dlpath`~
13048       test -d \$dldir || mkdir -p \$dldir~
13049       $install_prog $dir/$dlname \$dldir/$dlname'
13050     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13051       dlpath=$dir/\$dldll~
13052        $rm \$dlpath'
13053     shlibpath_overrides_runpath=yes
13054
13055     case $host_os in
13056     cygwin*)
13057       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13058       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13059       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13060       ;;
13061     mingw*)
13062       # MinGW DLLs use traditional 'lib' prefix
13063       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13064       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13065       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13066         # It is most probably a Windows format PATH printed by
13067         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13068         # path with ; separators, and with drive letters. We can handle the
13069         # drive letters (cygwin fileutils understands them), so leave them,
13070         # especially as we might pass files found there to a mingw objdump,
13071         # which wouldn't understand a cygwinified path. Ahh.
13072         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13073       else
13074         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13075       fi
13076       ;;
13077     pw32*)
13078       # pw32 DLLs use 'pw' prefix rather than 'lib'
13079       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13080       ;;
13081     esac
13082     ;;
13083
13084   *)
13085     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13086     ;;
13087   esac
13088   dynamic_linker='Win32 ld.exe'
13089   # FIXME: first we should search . and the directory the executable is in
13090   shlibpath_var=PATH
13091   ;;
13092
13093 darwin* | rhapsody*)
13094   dynamic_linker="$host_os dyld"
13095   version_type=darwin
13096   need_lib_prefix=no
13097   need_version=no
13098   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13099   soname_spec='${libname}${release}${major}$shared_ext'
13100   shlibpath_overrides_runpath=yes
13101   shlibpath_var=DYLD_LIBRARY_PATH
13102   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13103   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13104   if test "$GCC" = yes; then
13105     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"`
13106   else
13107     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13108   fi
13109   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13110   ;;
13111
13112 dgux*)
13113   version_type=linux
13114   need_lib_prefix=no
13115   need_version=no
13116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13117   soname_spec='${libname}${release}${shared_ext}$major'
13118   shlibpath_var=LD_LIBRARY_PATH
13119   ;;
13120
13121 freebsd1*)
13122   dynamic_linker=no
13123   ;;
13124
13125 kfreebsd*-gnu)
13126   version_type=linux
13127   need_lib_prefix=no
13128   need_version=no
13129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130   soname_spec='${libname}${release}${shared_ext}$major'
13131   shlibpath_var=LD_LIBRARY_PATH
13132   shlibpath_overrides_runpath=no
13133   hardcode_into_libs=yes
13134   dynamic_linker='GNU ld.so'
13135   ;;
13136
13137 freebsd*)
13138   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13139   version_type=freebsd-$objformat
13140   case $version_type in
13141     freebsd-elf*)
13142       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13143       need_version=no
13144       need_lib_prefix=no
13145       ;;
13146     freebsd-*)
13147       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13148       need_version=yes
13149       ;;
13150   esac
13151   shlibpath_var=LD_LIBRARY_PATH
13152   case $host_os in
13153   freebsd2*)
13154     shlibpath_overrides_runpath=yes
13155     ;;
13156   freebsd3.01* | freebsdelf3.01*)
13157     shlibpath_overrides_runpath=yes
13158     hardcode_into_libs=yes
13159     ;;
13160   *) # from 3.2 on
13161     shlibpath_overrides_runpath=no
13162     hardcode_into_libs=yes
13163     ;;
13164   esac
13165   ;;
13166
13167 gnu*)
13168   version_type=linux
13169   need_lib_prefix=no
13170   need_version=no
13171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13172   soname_spec='${libname}${release}${shared_ext}$major'
13173   shlibpath_var=LD_LIBRARY_PATH
13174   hardcode_into_libs=yes
13175   ;;
13176
13177 hpux9* | hpux10* | hpux11*)
13178   # Give a soname corresponding to the major version so that dld.sl refuses to
13179   # link against other versions.
13180   version_type=sunos
13181   need_lib_prefix=no
13182   need_version=no
13183   case "$host_cpu" in
13184   ia64*)
13185     shrext_cmds='.so'
13186     hardcode_into_libs=yes
13187     dynamic_linker="$host_os dld.so"
13188     shlibpath_var=LD_LIBRARY_PATH
13189     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191     soname_spec='${libname}${release}${shared_ext}$major'
13192     if test "X$HPUX_IA64_MODE" = X32; then
13193       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13194     else
13195       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13196     fi
13197     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13198     ;;
13199    hppa*64*)
13200      shrext_cmds='.sl'
13201      hardcode_into_libs=yes
13202      dynamic_linker="$host_os dld.sl"
13203      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13204      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13205      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206      soname_spec='${libname}${release}${shared_ext}$major'
13207      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13208      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13209      ;;
13210    *)
13211     shrext_cmds='.sl'
13212     dynamic_linker="$host_os dld.sl"
13213     shlibpath_var=SHLIB_PATH
13214     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216     soname_spec='${libname}${release}${shared_ext}$major'
13217     ;;
13218   esac
13219   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13220   postinstall_cmds='chmod 555 $lib'
13221   ;;
13222
13223 irix5* | irix6* | nonstopux*)
13224   case $host_os in
13225     nonstopux*) version_type=nonstopux ;;
13226     *)
13227         if test "$lt_cv_prog_gnu_ld" = yes; then
13228                 version_type=linux
13229         else
13230                 version_type=irix
13231         fi ;;
13232   esac
13233   need_lib_prefix=no
13234   need_version=no
13235   soname_spec='${libname}${release}${shared_ext}$major'
13236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13237   case $host_os in
13238   irix5* | nonstopux*)
13239     libsuff= shlibsuff=
13240     ;;
13241   *)
13242     case $LD in # libtool.m4 will add one of these switches to LD
13243     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13244       libsuff= shlibsuff= libmagic=32-bit;;
13245     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13246       libsuff=32 shlibsuff=N32 libmagic=N32;;
13247     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13248       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13249     *) libsuff= shlibsuff= libmagic=never-match;;
13250     esac
13251     ;;
13252   esac
13253   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13254   shlibpath_overrides_runpath=no
13255   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13256   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13257   hardcode_into_libs=yes
13258   ;;
13259
13260 # No shared lib support for Linux oldld, aout, or coff.
13261 linux*oldld* | linux*aout* | linux*coff*)
13262   dynamic_linker=no
13263   ;;
13264
13265 # This must be Linux ELF.
13266 linux*)
13267   version_type=linux
13268   need_lib_prefix=no
13269   need_version=no
13270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271   soname_spec='${libname}${release}${shared_ext}$major'
13272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13273   shlibpath_var=LD_LIBRARY_PATH
13274   shlibpath_overrides_runpath=no
13275   # This implies no fast_install, which is unacceptable.
13276   # Some rework will be needed to allow for fast_install
13277   # before this can be enabled.
13278   hardcode_into_libs=yes
13279
13280   # Append ld.so.conf contents to the search path
13281   if test -f /etc/ld.so.conf; then
13282     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13283     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13284   fi
13285
13286   # We used to test for /lib/ld.so.1 and disable shared libraries on
13287   # powerpc, because MkLinux only supported shared libraries with the
13288   # GNU dynamic linker.  Since this was broken with cross compilers,
13289   # most powerpc-linux boxes support dynamic linking these days and
13290   # people can always --disable-shared, the test was removed, and we
13291   # assume the GNU/Linux dynamic linker is in use.
13292   dynamic_linker='GNU/Linux ld.so'
13293   ;;
13294
13295 knetbsd*-gnu)
13296   version_type=linux
13297   need_lib_prefix=no
13298   need_version=no
13299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300   soname_spec='${libname}${release}${shared_ext}$major'
13301   shlibpath_var=LD_LIBRARY_PATH
13302   shlibpath_overrides_runpath=no
13303   hardcode_into_libs=yes
13304   dynamic_linker='GNU ld.so'
13305   ;;
13306
13307 netbsd*)
13308   version_type=sunos
13309   need_lib_prefix=no
13310   need_version=no
13311   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13313     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13314     dynamic_linker='NetBSD (a.out) ld.so'
13315   else
13316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13317     soname_spec='${libname}${release}${shared_ext}$major'
13318     dynamic_linker='NetBSD ld.elf_so'
13319   fi
13320   shlibpath_var=LD_LIBRARY_PATH
13321   shlibpath_overrides_runpath=yes
13322   hardcode_into_libs=yes
13323   ;;
13324
13325 newsos6)
13326   version_type=linux
13327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328   shlibpath_var=LD_LIBRARY_PATH
13329   shlibpath_overrides_runpath=yes
13330   ;;
13331
13332 nto-qnx*)
13333   version_type=linux
13334   need_lib_prefix=no
13335   need_version=no
13336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337   soname_spec='${libname}${release}${shared_ext}$major'
13338   shlibpath_var=LD_LIBRARY_PATH
13339   shlibpath_overrides_runpath=yes
13340   ;;
13341
13342 openbsd*)
13343   version_type=sunos
13344   need_lib_prefix=no
13345   need_version=no
13346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13347   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13348   shlibpath_var=LD_LIBRARY_PATH
13349   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13350     case $host_os in
13351       openbsd2.[89] | openbsd2.[89].*)
13352         shlibpath_overrides_runpath=no
13353         ;;
13354       *)
13355         shlibpath_overrides_runpath=yes
13356         ;;
13357       esac
13358   else
13359     shlibpath_overrides_runpath=yes
13360   fi
13361   ;;
13362
13363 os2*)
13364   libname_spec='$name'
13365   shrext_cmds=".dll"
13366   need_lib_prefix=no
13367   library_names_spec='$libname${shared_ext} $libname.a'
13368   dynamic_linker='OS/2 ld.exe'
13369   shlibpath_var=LIBPATH
13370   ;;
13371
13372 osf3* | osf4* | osf5*)
13373   version_type=osf
13374   need_lib_prefix=no
13375   need_version=no
13376   soname_spec='${libname}${release}${shared_ext}$major'
13377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378   shlibpath_var=LD_LIBRARY_PATH
13379   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13380   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13381   ;;
13382
13383 sco3.2v5*)
13384   version_type=osf
13385   soname_spec='${libname}${release}${shared_ext}$major'
13386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387   shlibpath_var=LD_LIBRARY_PATH
13388   ;;
13389
13390 solaris*)
13391   version_type=linux
13392   need_lib_prefix=no
13393   need_version=no
13394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395   soname_spec='${libname}${release}${shared_ext}$major'
13396   shlibpath_var=LD_LIBRARY_PATH
13397   shlibpath_overrides_runpath=yes
13398   hardcode_into_libs=yes
13399   # ldd complains unless libraries are executable
13400   postinstall_cmds='chmod +x $lib'
13401   ;;
13402
13403 sunos4*)
13404   version_type=sunos
13405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13406   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   shlibpath_overrides_runpath=yes
13409   if test "$with_gnu_ld" = yes; then
13410     need_lib_prefix=no
13411   fi
13412   need_version=yes
13413   ;;
13414
13415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13416   version_type=linux
13417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418   soname_spec='${libname}${release}${shared_ext}$major'
13419   shlibpath_var=LD_LIBRARY_PATH
13420   case $host_vendor in
13421     sni)
13422       shlibpath_overrides_runpath=no
13423       need_lib_prefix=no
13424       export_dynamic_flag_spec='${wl}-Blargedynsym'
13425       runpath_var=LD_RUN_PATH
13426       ;;
13427     siemens)
13428       need_lib_prefix=no
13429       ;;
13430     motorola)
13431       need_lib_prefix=no
13432       need_version=no
13433       shlibpath_overrides_runpath=no
13434       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13435       ;;
13436   esac
13437   ;;
13438
13439 sysv4*MP*)
13440   if test -d /usr/nec ;then
13441     version_type=linux
13442     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13443     soname_spec='$libname${shared_ext}.$major'
13444     shlibpath_var=LD_LIBRARY_PATH
13445   fi
13446   ;;
13447
13448 uts4*)
13449   version_type=linux
13450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451   soname_spec='${libname}${release}${shared_ext}$major'
13452   shlibpath_var=LD_LIBRARY_PATH
13453   ;;
13454
13455 *)
13456   dynamic_linker=no
13457   ;;
13458 esac
13459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13460 echo "${ECHO_T}$dynamic_linker" >&6
13461 test "$dynamic_linker" = no && can_build_shared=no
13462
13463 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13464 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13465 hardcode_action=
13466 if test -n "$hardcode_libdir_flag_spec" || \
13467    test -n "$runpath_var" || \
13468    test "X$hardcode_automatic" = "Xyes" ; then
13469
13470   # We can hardcode non-existant directories.
13471   if test "$hardcode_direct" != no &&
13472      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13473      # have to relink, otherwise we might link with an installed library
13474      # when we should be linking with a yet-to-be-installed one
13475      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13476      test "$hardcode_minus_L" != no; then
13477     # Linking always hardcodes the temporary library directory.
13478     hardcode_action=relink
13479   else
13480     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13481     hardcode_action=immediate
13482   fi
13483 else
13484   # We cannot hardcode anything, or else we can only hardcode existing
13485   # directories.
13486   hardcode_action=unsupported
13487 fi
13488 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13489 echo "${ECHO_T}$hardcode_action" >&6
13490
13491 if test "$hardcode_action" = relink; then
13492   # Fast installation is not supported
13493   enable_fast_install=no
13494 elif test "$shlibpath_overrides_runpath" = yes ||
13495      test "$enable_shared" = no; then
13496   # Fast installation is not necessary
13497   enable_fast_install=needless
13498 fi
13499
13500 striplib=
13501 old_striplib=
13502 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13503 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13504 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13505   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13506   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13507   echo "$as_me:$LINENO: result: yes" >&5
13508 echo "${ECHO_T}yes" >&6
13509 else
13510 # FIXME - insert some real tests, host_os isn't really good enough
13511   case $host_os in
13512    darwin*)
13513        if test -n "$STRIP" ; then
13514          striplib="$STRIP -x"
13515          echo "$as_me:$LINENO: result: yes" >&5
13516 echo "${ECHO_T}yes" >&6
13517        else
13518   echo "$as_me:$LINENO: result: no" >&5
13519 echo "${ECHO_T}no" >&6
13520 fi
13521        ;;
13522    *)
13523   echo "$as_me:$LINENO: result: no" >&5
13524 echo "${ECHO_T}no" >&6
13525     ;;
13526   esac
13527 fi
13528
13529 if test "x$enable_dlopen" != xyes; then
13530   enable_dlopen=unknown
13531   enable_dlopen_self=unknown
13532   enable_dlopen_self_static=unknown
13533 else
13534   lt_cv_dlopen=no
13535   lt_cv_dlopen_libs=
13536
13537   case $host_os in
13538   beos*)
13539     lt_cv_dlopen="load_add_on"
13540     lt_cv_dlopen_libs=
13541     lt_cv_dlopen_self=yes
13542     ;;
13543
13544   mingw* | pw32*)
13545     lt_cv_dlopen="LoadLibrary"
13546     lt_cv_dlopen_libs=
13547    ;;
13548
13549   cygwin*)
13550     lt_cv_dlopen="dlopen"
13551     lt_cv_dlopen_libs=
13552    ;;
13553
13554   darwin*)
13555   # if libdl is installed we need to link against it
13556     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-ldl  $LIBS"
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h.  */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h.  */
13569
13570 /* Override any gcc2 internal prototype to avoid an error.  */
13571 #ifdef __cplusplus
13572 extern "C"
13573 #endif
13574 /* We use char because int might match the return type of a gcc2
13575    builtin and then its argument prototype would still apply.  */
13576 char dlopen ();
13577 int
13578 main ()
13579 {
13580 dlopen ();
13581   ;
13582   return 0;
13583 }
13584 _ACEOF
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13587   (eval $ac_link) 2>conftest.er1
13588   ac_status=$?
13589   grep -v '^ *+' conftest.er1 >conftest.err
13590   rm -f conftest.er1
13591   cat conftest.err >&5
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); } &&
13594          { ac_try='test -z "$ac_c_werror_flag"
13595                          || test ! -s conftest.err'
13596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597   (eval $ac_try) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; } &&
13601          { ac_try='test -s conftest$ac_exeext'
13602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603   (eval $ac_try) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }; }; then
13607   ac_cv_lib_dl_dlopen=yes
13608 else
13609   echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612 ac_cv_lib_dl_dlopen=no
13613 fi
13614 rm -f conftest.err conftest.$ac_objext \
13615       conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS
13617 fi
13618 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13619 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13620 if test $ac_cv_lib_dl_dlopen = yes; then
13621   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13622 else
13623
13624     lt_cv_dlopen="dyld"
13625     lt_cv_dlopen_libs=
13626     lt_cv_dlopen_self=yes
13627
13628 fi
13629
13630    ;;
13631
13632   *)
13633     echo "$as_me:$LINENO: checking for shl_load" >&5
13634 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13635 if test "${ac_cv_func_shl_load+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13646 #define shl_load innocuous_shl_load
13647
13648 /* System header to define __stub macros and hopefully few prototypes,
13649     which can conflict with char shl_load (); below.
13650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651     <limits.h> exists even on freestanding compilers.  */
13652
13653 #ifdef __STDC__
13654 # include <limits.h>
13655 #else
13656 # include <assert.h>
13657 #endif
13658
13659 #undef shl_load
13660
13661 /* Override any gcc2 internal prototype to avoid an error.  */
13662 #ifdef __cplusplus
13663 extern "C"
13664 {
13665 #endif
13666 /* We use char because int might match the return type of a gcc2
13667    builtin and then its argument prototype would still apply.  */
13668 char shl_load ();
13669 /* The GNU C library defines this for functions which it implements
13670     to always fail with ENOSYS.  Some functions are actually named
13671     something starting with __ and the normal name is an alias.  */
13672 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13673 choke me
13674 #else
13675 char (*f) () = shl_load;
13676 #endif
13677 #ifdef __cplusplus
13678 }
13679 #endif
13680
13681 int
13682 main ()
13683 {
13684 return f != shl_load;
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691   (eval $ac_link) 2>conftest.er1
13692   ac_status=$?
13693   grep -v '^ *+' conftest.er1 >conftest.err
13694   rm -f conftest.er1
13695   cat conftest.err >&5
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); } &&
13698          { ac_try='test -z "$ac_c_werror_flag"
13699                          || test ! -s conftest.err'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; } &&
13705          { ac_try='test -s conftest$ac_exeext'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; }; then
13711   ac_cv_func_shl_load=yes
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 ac_cv_func_shl_load=no
13717 fi
13718 rm -f conftest.err conftest.$ac_objext \
13719       conftest$ac_exeext conftest.$ac_ext
13720 fi
13721 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13722 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13723 if test $ac_cv_func_shl_load = yes; then
13724   lt_cv_dlopen="shl_load"
13725 else
13726   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13727 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13728 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13729   echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731   ac_check_lib_save_LIBS=$LIBS
13732 LIBS="-ldld  $LIBS"
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h.  */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h.  */
13739
13740 /* Override any gcc2 internal prototype to avoid an error.  */
13741 #ifdef __cplusplus
13742 extern "C"
13743 #endif
13744 /* We use char because int might match the return type of a gcc2
13745    builtin and then its argument prototype would still apply.  */
13746 char shl_load ();
13747 int
13748 main ()
13749 {
13750 shl_load ();
13751   ;
13752   return 0;
13753 }
13754 _ACEOF
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757   (eval $ac_link) 2>conftest.er1
13758   ac_status=$?
13759   grep -v '^ *+' conftest.er1 >conftest.err
13760   rm -f conftest.er1
13761   cat conftest.err >&5
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); } &&
13764          { ac_try='test -z "$ac_c_werror_flag"
13765                          || test ! -s conftest.err'
13766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767   (eval $ac_try) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; } &&
13771          { ac_try='test -s conftest$ac_exeext'
13772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773   (eval $ac_try) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; }; then
13777   ac_cv_lib_dld_shl_load=yes
13778 else
13779   echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782 ac_cv_lib_dld_shl_load=no
13783 fi
13784 rm -f conftest.err conftest.$ac_objext \
13785       conftest$ac_exeext conftest.$ac_ext
13786 LIBS=$ac_check_lib_save_LIBS
13787 fi
13788 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13789 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13790 if test $ac_cv_lib_dld_shl_load = yes; then
13791   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13792 else
13793   echo "$as_me:$LINENO: checking for dlopen" >&5
13794 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13795 if test "${ac_cv_func_dlopen+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h.  */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h.  */
13804 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13806 #define dlopen innocuous_dlopen
13807
13808 /* System header to define __stub macros and hopefully few prototypes,
13809     which can conflict with char dlopen (); below.
13810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13811     <limits.h> exists even on freestanding compilers.  */
13812
13813 #ifdef __STDC__
13814 # include <limits.h>
13815 #else
13816 # include <assert.h>
13817 #endif
13818
13819 #undef dlopen
13820
13821 /* Override any gcc2 internal prototype to avoid an error.  */
13822 #ifdef __cplusplus
13823 extern "C"
13824 {
13825 #endif
13826 /* We use char because int might match the return type of a gcc2
13827    builtin and then its argument prototype would still apply.  */
13828 char dlopen ();
13829 /* The GNU C library defines this for functions which it implements
13830     to always fail with ENOSYS.  Some functions are actually named
13831     something starting with __ and the normal name is an alias.  */
13832 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13833 choke me
13834 #else
13835 char (*f) () = dlopen;
13836 #endif
13837 #ifdef __cplusplus
13838 }
13839 #endif
13840
13841 int
13842 main ()
13843 {
13844 return f != dlopen;
13845   ;
13846   return 0;
13847 }
13848 _ACEOF
13849 rm -f conftest.$ac_objext conftest$ac_exeext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851   (eval $ac_link) 2>conftest.er1
13852   ac_status=$?
13853   grep -v '^ *+' conftest.er1 >conftest.err
13854   rm -f conftest.er1
13855   cat conftest.err >&5
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); } &&
13858          { ac_try='test -z "$ac_c_werror_flag"
13859                          || test ! -s conftest.err'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; } &&
13865          { ac_try='test -s conftest$ac_exeext'
13866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867   (eval $ac_try) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; }; then
13871   ac_cv_func_dlopen=yes
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 ac_cv_func_dlopen=no
13877 fi
13878 rm -f conftest.err conftest.$ac_objext \
13879       conftest$ac_exeext conftest.$ac_ext
13880 fi
13881 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13882 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13883 if test $ac_cv_func_dlopen = yes; then
13884   lt_cv_dlopen="dlopen"
13885 else
13886   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13887 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-ldl  $LIBS"
13893 cat >conftest.$ac_ext <<_ACEOF
13894 /* confdefs.h.  */
13895 _ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h.  */
13899
13900 /* Override any gcc2 internal prototype to avoid an error.  */
13901 #ifdef __cplusplus
13902 extern "C"
13903 #endif
13904 /* We use char because int might match the return type of a gcc2
13905    builtin and then its argument prototype would still apply.  */
13906 char dlopen ();
13907 int
13908 main ()
13909 {
13910 dlopen ();
13911   ;
13912   return 0;
13913 }
13914 _ACEOF
13915 rm -f conftest.$ac_objext conftest$ac_exeext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917   (eval $ac_link) 2>conftest.er1
13918   ac_status=$?
13919   grep -v '^ *+' conftest.er1 >conftest.err
13920   rm -f conftest.er1
13921   cat conftest.err >&5
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); } &&
13924          { ac_try='test -z "$ac_c_werror_flag"
13925                          || test ! -s conftest.err'
13926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927   (eval $ac_try) 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); }; } &&
13931          { ac_try='test -s conftest$ac_exeext'
13932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933   (eval $ac_try) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; }; then
13937   ac_cv_lib_dl_dlopen=yes
13938 else
13939   echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942 ac_cv_lib_dl_dlopen=no
13943 fi
13944 rm -f conftest.err conftest.$ac_objext \
13945       conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13947 fi
13948 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13949 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13950 if test $ac_cv_lib_dl_dlopen = yes; then
13951   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13952 else
13953   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13954 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13955 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13956   echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958   ac_check_lib_save_LIBS=$LIBS
13959 LIBS="-lsvld  $LIBS"
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h.  */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h.  */
13966
13967 /* Override any gcc2 internal prototype to avoid an error.  */
13968 #ifdef __cplusplus
13969 extern "C"
13970 #endif
13971 /* We use char because int might match the return type of a gcc2
13972    builtin and then its argument prototype would still apply.  */
13973 char dlopen ();
13974 int
13975 main ()
13976 {
13977 dlopen ();
13978   ;
13979   return 0;
13980 }
13981 _ACEOF
13982 rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984   (eval $ac_link) 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } &&
13991          { ac_try='test -z "$ac_c_werror_flag"
13992                          || test ! -s conftest.err'
13993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994   (eval $ac_try) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; } &&
13998          { ac_try='test -s conftest$ac_exeext'
13999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000   (eval $ac_try) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; }; then
14004   ac_cv_lib_svld_dlopen=yes
14005 else
14006   echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_cv_lib_svld_dlopen=no
14010 fi
14011 rm -f conftest.err conftest.$ac_objext \
14012       conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14014 fi
14015 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14016 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14017 if test $ac_cv_lib_svld_dlopen = yes; then
14018   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14019 else
14020   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14021 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   ac_check_lib_save_LIBS=$LIBS
14026 LIBS="-ldld  $LIBS"
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h.  */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h.  */
14033
14034 /* Override any gcc2 internal prototype to avoid an error.  */
14035 #ifdef __cplusplus
14036 extern "C"
14037 #endif
14038 /* We use char because int might match the return type of a gcc2
14039    builtin and then its argument prototype would still apply.  */
14040 char dld_link ();
14041 int
14042 main ()
14043 {
14044 dld_link ();
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14051   (eval $ac_link) 2>conftest.er1
14052   ac_status=$?
14053   grep -v '^ *+' conftest.er1 >conftest.err
14054   rm -f conftest.er1
14055   cat conftest.err >&5
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); } &&
14058          { ac_try='test -z "$ac_c_werror_flag"
14059                          || test ! -s conftest.err'
14060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061   (eval $ac_try) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; } &&
14065          { ac_try='test -s conftest$ac_exeext'
14066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067   (eval $ac_try) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   ac_cv_lib_dld_dld_link=yes
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076 ac_cv_lib_dld_dld_link=no
14077 fi
14078 rm -f conftest.err conftest.$ac_objext \
14079       conftest$ac_exeext conftest.$ac_ext
14080 LIBS=$ac_check_lib_save_LIBS
14081 fi
14082 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14083 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14084 if test $ac_cv_lib_dld_dld_link = yes; then
14085   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14086 fi
14087
14088
14089 fi
14090
14091
14092 fi
14093
14094
14095 fi
14096
14097
14098 fi
14099
14100
14101 fi
14102
14103     ;;
14104   esac
14105
14106   if test "x$lt_cv_dlopen" != xno; then
14107     enable_dlopen=yes
14108   else
14109     enable_dlopen=no
14110   fi
14111
14112   case $lt_cv_dlopen in
14113   dlopen)
14114     save_CPPFLAGS="$CPPFLAGS"
14115     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14116
14117     save_LDFLAGS="$LDFLAGS"
14118     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14119
14120     save_LIBS="$LIBS"
14121     LIBS="$lt_cv_dlopen_libs $LIBS"
14122
14123     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14124 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14125 if test "${lt_cv_dlopen_self+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128           if test "$cross_compiling" = yes; then :
14129   lt_cv_dlopen_self=cross
14130 else
14131   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14132   lt_status=$lt_dlunknown
14133   cat > conftest.$ac_ext <<EOF
14134 #line 14134 "configure"
14135 #include "confdefs.h"
14136
14137 #if HAVE_DLFCN_H
14138 #include <dlfcn.h>
14139 #endif
14140
14141 #include <stdio.h>
14142
14143 #ifdef RTLD_GLOBAL
14144 #  define LT_DLGLOBAL           RTLD_GLOBAL
14145 #else
14146 #  ifdef DL_GLOBAL
14147 #    define LT_DLGLOBAL         DL_GLOBAL
14148 #  else
14149 #    define LT_DLGLOBAL         0
14150 #  endif
14151 #endif
14152
14153 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14154    find out it does not work in some platform. */
14155 #ifndef LT_DLLAZY_OR_NOW
14156 #  ifdef RTLD_LAZY
14157 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14158 #  else
14159 #    ifdef DL_LAZY
14160 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14161 #    else
14162 #      ifdef RTLD_NOW
14163 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14164 #      else
14165 #        ifdef DL_NOW
14166 #          define LT_DLLAZY_OR_NOW      DL_NOW
14167 #        else
14168 #          define LT_DLLAZY_OR_NOW      0
14169 #        endif
14170 #      endif
14171 #    endif
14172 #  endif
14173 #endif
14174
14175 #ifdef __cplusplus
14176 extern "C" void exit (int);
14177 #endif
14178
14179 void fnord() { int i=42;}
14180 int main ()
14181 {
14182   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14183   int status = $lt_dlunknown;
14184
14185   if (self)
14186     {
14187       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14188       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14189       /* dlclose (self); */
14190     }
14191
14192     exit (status);
14193 }
14194 EOF
14195   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196   (eval $ac_link) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14200     (./conftest; exit; ) 2>/dev/null
14201     lt_status=$?
14202     case x$lt_status in
14203       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14204       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14205       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14206     esac
14207   else :
14208     # compilation failed
14209     lt_cv_dlopen_self=no
14210   fi
14211 fi
14212 rm -fr conftest*
14213
14214
14215 fi
14216 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14217 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14218
14219     if test "x$lt_cv_dlopen_self" = xyes; then
14220       LDFLAGS="$LDFLAGS $link_static_flag"
14221       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14222 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14223 if test "${lt_cv_dlopen_self_static+set}" = set; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226           if test "$cross_compiling" = yes; then :
14227   lt_cv_dlopen_self_static=cross
14228 else
14229   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14230   lt_status=$lt_dlunknown
14231   cat > conftest.$ac_ext <<EOF
14232 #line 14232 "configure"
14233 #include "confdefs.h"
14234
14235 #if HAVE_DLFCN_H
14236 #include <dlfcn.h>
14237 #endif
14238
14239 #include <stdio.h>
14240
14241 #ifdef RTLD_GLOBAL
14242 #  define LT_DLGLOBAL           RTLD_GLOBAL
14243 #else
14244 #  ifdef DL_GLOBAL
14245 #    define LT_DLGLOBAL         DL_GLOBAL
14246 #  else
14247 #    define LT_DLGLOBAL         0
14248 #  endif
14249 #endif
14250
14251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14252    find out it does not work in some platform. */
14253 #ifndef LT_DLLAZY_OR_NOW
14254 #  ifdef RTLD_LAZY
14255 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14256 #  else
14257 #    ifdef DL_LAZY
14258 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14259 #    else
14260 #      ifdef RTLD_NOW
14261 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14262 #      else
14263 #        ifdef DL_NOW
14264 #          define LT_DLLAZY_OR_NOW      DL_NOW
14265 #        else
14266 #          define LT_DLLAZY_OR_NOW      0
14267 #        endif
14268 #      endif
14269 #    endif
14270 #  endif
14271 #endif
14272
14273 #ifdef __cplusplus
14274 extern "C" void exit (int);
14275 #endif
14276
14277 void fnord() { int i=42;}
14278 int main ()
14279 {
14280   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14281   int status = $lt_dlunknown;
14282
14283   if (self)
14284     {
14285       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14286       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14287       /* dlclose (self); */
14288     }
14289
14290     exit (status);
14291 }
14292 EOF
14293   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294   (eval $ac_link) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14298     (./conftest; exit; ) 2>/dev/null
14299     lt_status=$?
14300     case x$lt_status in
14301       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14302       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14303       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14304     esac
14305   else :
14306     # compilation failed
14307     lt_cv_dlopen_self_static=no
14308   fi
14309 fi
14310 rm -fr conftest*
14311
14312
14313 fi
14314 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14315 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14316     fi
14317
14318     CPPFLAGS="$save_CPPFLAGS"
14319     LDFLAGS="$save_LDFLAGS"
14320     LIBS="$save_LIBS"
14321     ;;
14322   esac
14323
14324   case $lt_cv_dlopen_self in
14325   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14326   *) enable_dlopen_self=unknown ;;
14327   esac
14328
14329   case $lt_cv_dlopen_self_static in
14330   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14331   *) enable_dlopen_self_static=unknown ;;
14332   esac
14333 fi
14334
14335
14336 # Report which librarie types wil actually be built
14337 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14338 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14339 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14340 echo "${ECHO_T}$can_build_shared" >&6
14341
14342 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14343 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14344 test "$can_build_shared" = "no" && enable_shared=no
14345
14346 # On AIX, shared libraries and static libraries use the same namespace, and
14347 # are all built from PIC.
14348 case "$host_os" in
14349 aix3*)
14350   test "$enable_shared" = yes && enable_static=no
14351   if test -n "$RANLIB"; then
14352     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14353     postinstall_cmds='$RANLIB $lib'
14354   fi
14355   ;;
14356
14357 aix4* | aix5*)
14358   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14359     test "$enable_shared" = yes && enable_static=no
14360   fi
14361     ;;
14362 esac
14363 echo "$as_me:$LINENO: result: $enable_shared" >&5
14364 echo "${ECHO_T}$enable_shared" >&6
14365
14366 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14367 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14368 # Make sure either enable_shared or enable_static is yes.
14369 test "$enable_shared" = yes || enable_static=yes
14370 echo "$as_me:$LINENO: result: $enable_static" >&5
14371 echo "${ECHO_T}$enable_static" >&6
14372
14373 # The else clause should only fire when bootstrapping the
14374 # libtool distribution, otherwise you forgot to ship ltmain.sh
14375 # with your package, and you will get complaints that there are
14376 # no rules to generate ltmain.sh.
14377 if test -f "$ltmain"; then
14378   # See if we are running on zsh, and set the options which allow our commands through
14379   # without removal of \ escapes.
14380   if test -n "${ZSH_VERSION+set}" ; then
14381     setopt NO_GLOB_SUBST
14382   fi
14383   # Now quote all the things that may contain metacharacters while being
14384   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14385   # variables and quote the copies for generation of the libtool script.
14386   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14387     SED SHELL STRIP \
14388     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14389     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14390     deplibs_check_method reload_flag reload_cmds need_locks \
14391     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14392     lt_cv_sys_global_symbol_to_c_name_address \
14393     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14394     old_postinstall_cmds old_postuninstall_cmds \
14395     compiler \
14396     CC \
14397     LD \
14398     lt_prog_compiler_wl \
14399     lt_prog_compiler_pic \
14400     lt_prog_compiler_static \
14401     lt_prog_compiler_no_builtin_flag \
14402     export_dynamic_flag_spec \
14403     thread_safe_flag_spec \
14404     whole_archive_flag_spec \
14405     enable_shared_with_static_runtimes \
14406     old_archive_cmds \
14407     old_archive_from_new_cmds \
14408     predep_objects \
14409     postdep_objects \
14410     predeps \
14411     postdeps \
14412     compiler_lib_search_path \
14413     archive_cmds \
14414     archive_expsym_cmds \
14415     postinstall_cmds \
14416     postuninstall_cmds \
14417     old_archive_from_expsyms_cmds \
14418     allow_undefined_flag \
14419     no_undefined_flag \
14420     export_symbols_cmds \
14421     hardcode_libdir_flag_spec \
14422     hardcode_libdir_flag_spec_ld \
14423     hardcode_libdir_separator \
14424     hardcode_automatic \
14425     module_cmds \
14426     module_expsym_cmds \
14427     lt_cv_prog_compiler_c_o \
14428     exclude_expsyms \
14429     include_expsyms; do
14430
14431     case $var in
14432     old_archive_cmds | \
14433     old_archive_from_new_cmds | \
14434     archive_cmds | \
14435     archive_expsym_cmds | \
14436     module_cmds | \
14437     module_expsym_cmds | \
14438     old_archive_from_expsyms_cmds | \
14439     export_symbols_cmds | \
14440     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14441     postinstall_cmds | postuninstall_cmds | \
14442     old_postinstall_cmds | old_postuninstall_cmds | \
14443     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14444       # Double-quote double-evaled strings.
14445       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14446       ;;
14447     *)
14448       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14449       ;;
14450     esac
14451   done
14452
14453   case $lt_echo in
14454   *'\$0 --fallback-echo"')
14455     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14456     ;;
14457   esac
14458
14459 cfgfile="${ofile}T"
14460   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14461   $rm -f "$cfgfile"
14462   { echo "$as_me:$LINENO: creating $ofile" >&5
14463 echo "$as_me: creating $ofile" >&6;}
14464
14465   cat <<__EOF__ >> "$cfgfile"
14466 #! $SHELL
14467
14468 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14469 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14470 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14471 #
14472 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14473 # Free Software Foundation, Inc.
14474 #
14475 # This file is part of GNU Libtool:
14476 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14477 #
14478 # This program is free software; you can redistribute it and/or modify
14479 # it under the terms of the GNU General Public License as published by
14480 # the Free Software Foundation; either version 2 of the License, or
14481 # (at your option) any later version.
14482 #
14483 # This program is distributed in the hope that it will be useful, but
14484 # WITHOUT ANY WARRANTY; without even the implied warranty of
14485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14486 # General Public License for more details.
14487 #
14488 # You should have received a copy of the GNU General Public License
14489 # along with this program; if not, write to the Free Software
14490 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14491 #
14492 # As a special exception to the GNU General Public License, if you
14493 # distribute this file as part of a program that contains a
14494 # configuration script generated by Autoconf, you may include it under
14495 # the same distribution terms that you use for the rest of that program.
14496
14497 # A sed program that does not truncate output.
14498 SED=$lt_SED
14499
14500 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14501 Xsed="$SED -e s/^X//"
14502
14503 # The HP-UX ksh and POSIX shell print the target directory to stdout
14504 # if CDPATH is set.
14505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14506
14507 # The names of the tagged configurations supported by this script.
14508 available_tags=
14509
14510 # ### BEGIN LIBTOOL CONFIG
14511
14512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14513
14514 # Shell to use when invoking shell scripts.
14515 SHELL=$lt_SHELL
14516
14517 # Whether or not to build shared libraries.
14518 build_libtool_libs=$enable_shared
14519
14520 # Whether or not to build static libraries.
14521 build_old_libs=$enable_static
14522
14523 # Whether or not to add -lc for building shared libraries.
14524 build_libtool_need_lc=$archive_cmds_need_lc
14525
14526 # Whether or not to disallow shared libs when runtime libs are static
14527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14528
14529 # Whether or not to optimize for fast installation.
14530 fast_install=$enable_fast_install
14531
14532 # The host system.
14533 host_alias=$host_alias
14534 host=$host
14535
14536 # An echo program that does not interpret backslashes.
14537 echo=$lt_echo
14538
14539 # The archiver.
14540 AR=$lt_AR
14541 AR_FLAGS=$lt_AR_FLAGS
14542
14543 # A C compiler.
14544 LTCC=$lt_LTCC
14545
14546 # A language-specific compiler.
14547 CC=$lt_compiler
14548
14549 # Is the compiler the GNU C compiler?
14550 with_gcc=$GCC
14551
14552 # An ERE matcher.
14553 EGREP=$lt_EGREP
14554
14555 # The linker used to build libraries.
14556 LD=$lt_LD
14557
14558 # Whether we need hard or soft links.
14559 LN_S=$lt_LN_S
14560
14561 # A BSD-compatible nm program.
14562 NM=$lt_NM
14563
14564 # A symbol stripping program
14565 STRIP=$lt_STRIP
14566
14567 # Used to examine libraries when file_magic_cmd begins "file"
14568 MAGIC_CMD=$MAGIC_CMD
14569
14570 # Used on cygwin: DLL creation program.
14571 DLLTOOL="$DLLTOOL"
14572
14573 # Used on cygwin: object dumper.
14574 OBJDUMP="$OBJDUMP"
14575
14576 # Used on cygwin: assembler.
14577 AS="$AS"
14578
14579 # The name of the directory that contains temporary libtool files.
14580 objdir=$objdir
14581
14582 # How to create reloadable object files.
14583 reload_flag=$lt_reload_flag
14584 reload_cmds=$lt_reload_cmds
14585
14586 # How to pass a linker flag through the compiler.
14587 wl=$lt_lt_prog_compiler_wl
14588
14589 # Object file suffix (normally "o").
14590 objext="$ac_objext"
14591
14592 # Old archive suffix (normally "a").
14593 libext="$libext"
14594
14595 # Shared library suffix (normally ".so").
14596 shrext_cmds='$shrext_cmds'
14597
14598 # Executable file suffix (normally "").
14599 exeext="$exeext"
14600
14601 # Additional compiler flags for building library objects.
14602 pic_flag=$lt_lt_prog_compiler_pic
14603 pic_mode=$pic_mode
14604
14605 # What is the maximum length of a command?
14606 max_cmd_len=$lt_cv_sys_max_cmd_len
14607
14608 # Does compiler simultaneously support -c and -o options?
14609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14610
14611 # Must we lock files when doing compilation ?
14612 need_locks=$lt_need_locks
14613
14614 # Do we need the lib prefix for modules?
14615 need_lib_prefix=$need_lib_prefix
14616
14617 # Do we need a version for libraries?
14618 need_version=$need_version
14619
14620 # Whether dlopen is supported.
14621 dlopen_support=$enable_dlopen
14622
14623 # Whether dlopen of programs is supported.
14624 dlopen_self=$enable_dlopen_self
14625
14626 # Whether dlopen of statically linked programs is supported.
14627 dlopen_self_static=$enable_dlopen_self_static
14628
14629 # Compiler flag to prevent dynamic linking.
14630 link_static_flag=$lt_lt_prog_compiler_static
14631
14632 # Compiler flag to turn off builtin functions.
14633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14634
14635 # Compiler flag to allow reflexive dlopens.
14636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14637
14638 # Compiler flag to generate shared objects directly from archives.
14639 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14640
14641 # Compiler flag to generate thread-safe objects.
14642 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14643
14644 # Library versioning type.
14645 version_type=$version_type
14646
14647 # Format of library name prefix.
14648 libname_spec=$lt_libname_spec
14649
14650 # List of archive names.  First name is the real one, the rest are links.
14651 # The last name is the one that the linker finds with -lNAME.
14652 library_names_spec=$lt_library_names_spec
14653
14654 # The coded name of the library, if different from the real name.
14655 soname_spec=$lt_soname_spec
14656
14657 # Commands used to build and install an old-style archive.
14658 RANLIB=$lt_RANLIB
14659 old_archive_cmds=$lt_old_archive_cmds
14660 old_postinstall_cmds=$lt_old_postinstall_cmds
14661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14662
14663 # Create an old-style archive from a shared archive.
14664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14665
14666 # Create a temporary old-style archive to link instead of a shared archive.
14667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14668
14669 # Commands used to build and install a shared archive.
14670 archive_cmds=$lt_archive_cmds
14671 archive_expsym_cmds=$lt_archive_expsym_cmds
14672 postinstall_cmds=$lt_postinstall_cmds
14673 postuninstall_cmds=$lt_postuninstall_cmds
14674
14675 # Commands used to build a loadable module (assumed same as above if empty)
14676 module_cmds=$lt_module_cmds
14677 module_expsym_cmds=$lt_module_expsym_cmds
14678
14679 # Commands to strip libraries.
14680 old_striplib=$lt_old_striplib
14681 striplib=$lt_striplib
14682
14683 # Dependencies to place before the objects being linked to create a
14684 # shared library.
14685 predep_objects=$lt_predep_objects
14686
14687 # Dependencies to place after the objects being linked to create a
14688 # shared library.
14689 postdep_objects=$lt_postdep_objects
14690
14691 # Dependencies to place before the objects being linked to create a
14692 # shared library.
14693 predeps=$lt_predeps
14694
14695 # Dependencies to place after the objects being linked to create a
14696 # shared library.
14697 postdeps=$lt_postdeps
14698
14699 # The library search path used internally by the compiler when linking
14700 # a shared library.
14701 compiler_lib_search_path=$lt_compiler_lib_search_path
14702
14703 # Method to check whether dependent libraries are shared objects.
14704 deplibs_check_method=$lt_deplibs_check_method
14705
14706 # Command to use when deplibs_check_method == file_magic.
14707 file_magic_cmd=$lt_file_magic_cmd
14708
14709 # Flag that allows shared libraries with undefined symbols to be built.
14710 allow_undefined_flag=$lt_allow_undefined_flag
14711
14712 # Flag that forces no undefined symbols.
14713 no_undefined_flag=$lt_no_undefined_flag
14714
14715 # Commands used to finish a libtool library installation in a directory.
14716 finish_cmds=$lt_finish_cmds
14717
14718 # Same as above, but a single script fragment to be evaled but not shown.
14719 finish_eval=$lt_finish_eval
14720
14721 # Take the output of nm and produce a listing of raw symbols and C names.
14722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14723
14724 # Transform the output of nm in a proper C declaration
14725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14726
14727 # Transform the output of nm in a C name address pair
14728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14729
14730 # This is the shared library runtime path variable.
14731 runpath_var=$runpath_var
14732
14733 # This is the shared library path variable.
14734 shlibpath_var=$shlibpath_var
14735
14736 # Is shlibpath searched before the hard-coded library search path?
14737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14738
14739 # How to hardcode a shared library path into an executable.
14740 hardcode_action=$hardcode_action
14741
14742 # Whether we should hardcode library paths into libraries.
14743 hardcode_into_libs=$hardcode_into_libs
14744
14745 # Flag to hardcode \$libdir into a binary during linking.
14746 # This must work even if \$libdir does not exist.
14747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14748
14749 # If ld is used when linking, flag to hardcode \$libdir into
14750 # a binary during linking. This must work even if \$libdir does
14751 # not exist.
14752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14753
14754 # Whether we need a single -rpath flag with a separated argument.
14755 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14756
14757 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14758 # resulting binary.
14759 hardcode_direct=$hardcode_direct
14760
14761 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14762 # resulting binary.
14763 hardcode_minus_L=$hardcode_minus_L
14764
14765 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14766 # the resulting binary.
14767 hardcode_shlibpath_var=$hardcode_shlibpath_var
14768
14769 # Set to yes if building a shared library automatically hardcodes DIR into the library
14770 # and all subsequent libraries and executables linked against it.
14771 hardcode_automatic=$hardcode_automatic
14772
14773 # Variables whose values should be saved in libtool wrapper scripts and
14774 # restored at relink time.
14775 variables_saved_for_relink="$variables_saved_for_relink"
14776
14777 # Whether libtool must link a program against all its dependency libraries.
14778 link_all_deplibs=$link_all_deplibs
14779
14780 # Compile-time system search path for libraries
14781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14782
14783 # Run-time system search path for libraries
14784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14785
14786 # Fix the shell variable \$srcfile for the compiler.
14787 fix_srcfile_path="$fix_srcfile_path"
14788
14789 # Set to yes if exported symbols are required.
14790 always_export_symbols=$always_export_symbols
14791
14792 # The commands to list exported symbols.
14793 export_symbols_cmds=$lt_export_symbols_cmds
14794
14795 # The commands to extract the exported symbol list from a shared archive.
14796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14797
14798 # Symbols that should not be listed in the preloaded symbols.
14799 exclude_expsyms=$lt_exclude_expsyms
14800
14801 # Symbols that must always be exported.
14802 include_expsyms=$lt_include_expsyms
14803
14804 # ### END LIBTOOL CONFIG
14805
14806 __EOF__
14807
14808
14809   case $host_os in
14810   aix3*)
14811     cat <<\EOF >> "$cfgfile"
14812
14813 # AIX sometimes has problems with the GCC collect2 program.  For some
14814 # reason, if we set the COLLECT_NAMES environment variable, the problems
14815 # vanish in a puff of smoke.
14816 if test "X${COLLECT_NAMES+set}" != Xset; then
14817   COLLECT_NAMES=
14818   export COLLECT_NAMES
14819 fi
14820 EOF
14821     ;;
14822   esac
14823
14824   # We use sed instead of cat because bash on DJGPP gets confused if
14825   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14826   # text mode, it properly converts lines to CR/LF.  This bash problem
14827   # is reportedly fixed, but why not run on old versions too?
14828   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14829
14830   mv -f "$cfgfile" "$ofile" || \
14831     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14832   chmod +x "$ofile"
14833
14834 else
14835   # If there is no Makefile yet, we rely on a make rule to execute
14836   # `config.status --recheck' to rerun these tests and create the
14837   # libtool script then.
14838   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14839   if test -f "$ltmain_in"; then
14840     test -f Makefile && make "$ltmain"
14841   fi
14842 fi
14843
14844
14845 ac_ext=c
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14850
14851 CC="$lt_save_CC"
14852
14853
14854 # Check whether --with-tags or --without-tags was given.
14855 if test "${with_tags+set}" = set; then
14856   withval="$with_tags"
14857   tagnames="$withval"
14858 fi;
14859
14860 if test -f "$ltmain" && test -n "$tagnames"; then
14861   if test ! -f "${ofile}"; then
14862     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14863 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14864   fi
14865
14866   if test -z "$LTCC"; then
14867     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14868     if test -z "$LTCC"; then
14869       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14870 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14871     else
14872       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14873 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14874     fi
14875   fi
14876
14877   # Extract list of available tagged configurations in $ofile.
14878   # Note that this assumes the entire list is on one line.
14879   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14880
14881   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14882   for tagname in $tagnames; do
14883     IFS="$lt_save_ifs"
14884     # Check whether tagname contains only valid characters
14885     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14886     "") ;;
14887     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14888 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14889    { (exit 1); exit 1; }; }
14890         ;;
14891     esac
14892
14893     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14894     then
14895       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14896 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14897    { (exit 1); exit 1; }; }
14898     fi
14899
14900     # Update the list of available tags.
14901     if test -n "$tagname"; then
14902       echo appending configuration tag "$tagname" to $ofile
14903
14904       case $tagname in
14905       CXX)
14906         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14907             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14908             (test "X$CXX" != "Xg++"))) ; then
14909           ac_ext=cc
14910 ac_cpp='$CXXCPP $CPPFLAGS'
14911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14914
14915
14916
14917
14918 archive_cmds_need_lc_CXX=no
14919 allow_undefined_flag_CXX=
14920 always_export_symbols_CXX=no
14921 archive_expsym_cmds_CXX=
14922 export_dynamic_flag_spec_CXX=
14923 hardcode_direct_CXX=no
14924 hardcode_libdir_flag_spec_CXX=
14925 hardcode_libdir_flag_spec_ld_CXX=
14926 hardcode_libdir_separator_CXX=
14927 hardcode_minus_L_CXX=no
14928 hardcode_automatic_CXX=no
14929 module_cmds_CXX=
14930 module_expsym_cmds_CXX=
14931 link_all_deplibs_CXX=unknown
14932 old_archive_cmds_CXX=$old_archive_cmds
14933 no_undefined_flag_CXX=
14934 whole_archive_flag_spec_CXX=
14935 enable_shared_with_static_runtimes_CXX=no
14936
14937 # Dependencies to place before and after the object being linked:
14938 predep_objects_CXX=
14939 postdep_objects_CXX=
14940 predeps_CXX=
14941 postdeps_CXX=
14942 compiler_lib_search_path_CXX=
14943
14944 # Source file extension for C++ test sources.
14945 ac_ext=cc
14946
14947 # Object file extension for compiled C++ test sources.
14948 objext=o
14949 objext_CXX=$objext
14950
14951 # Code to be used in simple compile tests
14952 lt_simple_compile_test_code="int some_variable = 0;\n"
14953
14954 # Code to be used in simple link tests
14955 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14956
14957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14958
14959 # If no C compiler was specified, use CC.
14960 LTCC=${LTCC-"$CC"}
14961
14962 # Allow CC to be a program name with arguments.
14963 compiler=$CC
14964
14965
14966 # Allow CC to be a program name with arguments.
14967 lt_save_CC=$CC
14968 lt_save_LD=$LD
14969 lt_save_GCC=$GCC
14970 GCC=$GXX
14971 lt_save_with_gnu_ld=$with_gnu_ld
14972 lt_save_path_LD=$lt_cv_path_LD
14973 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14974   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14975 else
14976   unset lt_cv_prog_gnu_ld
14977 fi
14978 if test -n "${lt_cv_path_LDCXX+set}"; then
14979   lt_cv_path_LD=$lt_cv_path_LDCXX
14980 else
14981   unset lt_cv_path_LD
14982 fi
14983 test -z "${LDCXX+set}" || LD=$LDCXX
14984 CC=${CXX-"c++"}
14985 compiler=$CC
14986 compiler_CXX=$CC
14987 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14988
14989 # We don't want -fno-exception wen compiling C++ code, so set the
14990 # no_builtin_flag separately
14991 if test "$GXX" = yes; then
14992   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14993 else
14994   lt_prog_compiler_no_builtin_flag_CXX=
14995 fi
14996
14997 if test "$GXX" = yes; then
14998   # Set up default GNU C++ configuration
14999
15000
15001 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15002 if test "${with_gnu_ld+set}" = set; then
15003   withval="$with_gnu_ld"
15004   test "$withval" = no || with_gnu_ld=yes
15005 else
15006   with_gnu_ld=no
15007 fi;
15008 ac_prog=ld
15009 if test "$GCC" = yes; then
15010   # Check if gcc -print-prog-name=ld gives a path.
15011   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15012 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15013   case $host in
15014   *-*-mingw*)
15015     # gcc leaves a trailing carriage return which upsets mingw
15016     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15017   *)
15018     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15019   esac
15020   case $ac_prog in
15021     # Accept absolute paths.
15022     [\\/]* | ?:[\\/]*)
15023       re_direlt='/[^/][^/]*/\.\./'
15024       # Canonicalize the pathname of ld
15025       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15026       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15027         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15028       done
15029       test -z "$LD" && LD="$ac_prog"
15030       ;;
15031   "")
15032     # If it fails, then pretend we aren't using GCC.
15033     ac_prog=ld
15034     ;;
15035   *)
15036     # If it is relative, then search for the first ld in PATH.
15037     with_gnu_ld=unknown
15038     ;;
15039   esac
15040 elif test "$with_gnu_ld" = yes; then
15041   echo "$as_me:$LINENO: checking for GNU ld" >&5
15042 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15043 else
15044   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15045 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15046 fi
15047 if test "${lt_cv_path_LD+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   if test -z "$LD"; then
15051   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15052   for ac_dir in $PATH; do
15053     IFS="$lt_save_ifs"
15054     test -z "$ac_dir" && ac_dir=.
15055     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15056       lt_cv_path_LD="$ac_dir/$ac_prog"
15057       # Check to see if the program is GNU ld.  I'd rather use --version,
15058       # but apparently some GNU ld's only accept -v.
15059       # Break only if it was the GNU/non-GNU ld that we prefer.
15060       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15061       *GNU* | *'with BFD'*)
15062         test "$with_gnu_ld" != no && break
15063         ;;
15064       *)
15065         test "$with_gnu_ld" != yes && break
15066         ;;
15067       esac
15068     fi
15069   done
15070   IFS="$lt_save_ifs"
15071 else
15072   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15073 fi
15074 fi
15075
15076 LD="$lt_cv_path_LD"
15077 if test -n "$LD"; then
15078   echo "$as_me:$LINENO: result: $LD" >&5
15079 echo "${ECHO_T}$LD" >&6
15080 else
15081   echo "$as_me:$LINENO: result: no" >&5
15082 echo "${ECHO_T}no" >&6
15083 fi
15084 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15086    { (exit 1); exit 1; }; }
15087 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15090   echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15093 case `$LD -v 2>&1 </dev/null` in
15094 *GNU* | *'with BFD'*)
15095   lt_cv_prog_gnu_ld=yes
15096   ;;
15097 *)
15098   lt_cv_prog_gnu_ld=no
15099   ;;
15100 esac
15101 fi
15102 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15103 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15104 with_gnu_ld=$lt_cv_prog_gnu_ld
15105
15106
15107
15108   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15109   # archiving commands below assume that GNU ld is being used.
15110   if test "$with_gnu_ld" = yes; then
15111     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112     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'
15113
15114     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15115     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15116
15117     # If archive_cmds runs LD, not CC, wlarc should be empty
15118     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15119     #     investigate it a little bit more. (MM)
15120     wlarc='${wl}'
15121
15122     # ancient GNU ld didn't support --whole-archive et. al.
15123     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15124         grep 'no-whole-archive' > /dev/null; then
15125       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15126     else
15127       whole_archive_flag_spec_CXX=
15128     fi
15129   else
15130     with_gnu_ld=no
15131     wlarc=
15132
15133     # A generic and very simple default shared library creation
15134     # command for GNU C++ for the case where it uses the native
15135     # linker, instead of GNU ld.  If possible, this setting should
15136     # overridden to take advantage of the native linker features on
15137     # the platform it is being used on.
15138     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15139   fi
15140
15141   # Commands to make compiler produce verbose output that lists
15142   # what "hidden" libraries, object files and flags are used when
15143   # linking a shared library.
15144   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15145
15146 else
15147   GXX=no
15148   with_gnu_ld=no
15149   wlarc=
15150 fi
15151
15152 # PORTME: fill in a description of your system's C++ link characteristics
15153 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15154 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15155 ld_shlibs_CXX=yes
15156 case $host_os in
15157   aix3*)
15158     # FIXME: insert proper C++ library support
15159     ld_shlibs_CXX=no
15160     ;;
15161   aix4* | aix5*)
15162     if test "$host_cpu" = ia64; then
15163       # On IA64, the linker does run time linking by default, so we don't
15164       # have to do anything special.
15165       aix_use_runtimelinking=no
15166       exp_sym_flag='-Bexport'
15167       no_entry_flag=""
15168     else
15169       aix_use_runtimelinking=no
15170
15171       # Test if we are trying to use run time linking or normal
15172       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15173       # need to do runtime linking.
15174       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15175         for ld_flag in $LDFLAGS; do
15176           case $ld_flag in
15177           *-brtl*)
15178             aix_use_runtimelinking=yes
15179             break
15180             ;;
15181           esac
15182         done
15183       esac
15184
15185       exp_sym_flag='-bexport'
15186       no_entry_flag='-bnoentry'
15187     fi
15188
15189     # When large executables or shared objects are built, AIX ld can
15190     # have problems creating the table of contents.  If linking a library
15191     # or program results in "error TOC overflow" add -mminimal-toc to
15192     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15193     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15194
15195     archive_cmds_CXX=''
15196     hardcode_direct_CXX=yes
15197     hardcode_libdir_separator_CXX=':'
15198     link_all_deplibs_CXX=yes
15199
15200     if test "$GXX" = yes; then
15201       case $host_os in aix4.012|aix4.012.*)
15202       # We only want to do this on AIX 4.2 and lower, the check
15203       # below for broken collect2 doesn't work under 4.3+
15204         collect2name=`${CC} -print-prog-name=collect2`
15205         if test -f "$collect2name" && \
15206            strings "$collect2name" | grep resolve_lib_name >/dev/null
15207         then
15208           # We have reworked collect2
15209           hardcode_direct_CXX=yes
15210         else
15211           # We have old collect2
15212           hardcode_direct_CXX=unsupported
15213           # It fails to find uninstalled libraries when the uninstalled
15214           # path is not listed in the libpath.  Setting hardcode_minus_L
15215           # to unsupported forces relinking
15216           hardcode_minus_L_CXX=yes
15217           hardcode_libdir_flag_spec_CXX='-L$libdir'
15218           hardcode_libdir_separator_CXX=
15219         fi
15220       esac
15221       shared_flag='-shared'
15222     else
15223       # not using gcc
15224       if test "$host_cpu" = ia64; then
15225         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15226         # chokes on -Wl,-G. The following line is correct:
15227         shared_flag='-G'
15228       else
15229         if test "$aix_use_runtimelinking" = yes; then
15230           shared_flag='${wl}-G'
15231         else
15232           shared_flag='${wl}-bM:SRE'
15233         fi
15234       fi
15235     fi
15236
15237     # It seems that -bexpall does not export symbols beginning with
15238     # underscore (_), so it is better to generate a list of symbols to export.
15239     always_export_symbols_CXX=yes
15240     if test "$aix_use_runtimelinking" = yes; then
15241       # Warning - without using the other runtime loading flags (-brtl),
15242       # -berok will link without error, but may produce a broken library.
15243       allow_undefined_flag_CXX='-berok'
15244       # Determine the default libpath from the value encoded in an empty executable.
15245       cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h.  */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h.  */
15251
15252 int
15253 main ()
15254 {
15255
15256   ;
15257   return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262   (eval $ac_link) 2>conftest.er1
15263   ac_status=$?
15264   grep -v '^ *+' conftest.er1 >conftest.err
15265   rm -f conftest.er1
15266   cat conftest.err >&5
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); } &&
15269          { ac_try='test -z "$ac_cxx_werror_flag"
15270                          || test ! -s conftest.err'
15271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272   (eval $ac_try) 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; } &&
15276          { ac_try='test -s conftest$ac_exeext'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }; then
15282
15283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15284 }'`
15285 # Check for a 64-bit object if we didn't find anything.
15286 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; }
15287 }'`; fi
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 fi
15293 rm -f conftest.err conftest.$ac_objext \
15294       conftest$ac_exeext conftest.$ac_ext
15295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15296
15297       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15298
15299       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"
15300      else
15301       if test "$host_cpu" = ia64; then
15302         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15303         allow_undefined_flag_CXX="-z nodefs"
15304         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"
15305       else
15306         # Determine the default libpath from the value encoded in an empty executable.
15307         cat >conftest.$ac_ext <<_ACEOF
15308 /* confdefs.h.  */
15309 _ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h.  */
15313
15314 int
15315 main ()
15316 {
15317
15318   ;
15319   return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324   (eval $ac_link) 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } &&
15331          { ac_try='test -z "$ac_cxx_werror_flag"
15332                          || test ! -s conftest.err'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340   (eval $ac_try) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344
15345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15346 }'`
15347 # Check for a 64-bit object if we didn't find anything.
15348 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; }
15349 }'`; fi
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354 fi
15355 rm -f conftest.err conftest.$ac_objext \
15356       conftest$ac_exeext conftest.$ac_ext
15357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15358
15359         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15360         # Warning - without using the other run time loading flags,
15361         # -berok will link without error, but may produce a broken library.
15362         no_undefined_flag_CXX=' ${wl}-bernotok'
15363         allow_undefined_flag_CXX=' ${wl}-berok'
15364         # -bexpall does not export symbols beginning with underscore (_)
15365         always_export_symbols_CXX=yes
15366         # Exported symbols can be pulled into shared objects from archives
15367         whole_archive_flag_spec_CXX=' '
15368         archive_cmds_need_lc_CXX=yes
15369         # This is similar to how AIX traditionally builds it's shared libraries.
15370         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'
15371       fi
15372     fi
15373     ;;
15374   chorus*)
15375     case $cc_basename in
15376       *)
15377         # FIXME: insert proper C++ library support
15378         ld_shlibs_CXX=no
15379         ;;
15380     esac
15381     ;;
15382
15383
15384   cygwin* | mingw* | pw32*)
15385     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15386     # as there is no search path for DLLs.
15387     hardcode_libdir_flag_spec_CXX='-L$libdir'
15388     allow_undefined_flag_CXX=unsupported
15389     always_export_symbols_CXX=no
15390     enable_shared_with_static_runtimes_CXX=yes
15391
15392     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15393       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'
15394       # If the export-symbols file already is a .def file (1st line
15395       # is EXPORTS), use it as is; otherwise, prepend...
15396       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15397         cp $export_symbols $output_objdir/$soname.def;
15398       else
15399         echo EXPORTS > $output_objdir/$soname.def;
15400         cat $export_symbols >> $output_objdir/$soname.def;
15401       fi~
15402       $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'
15403     else
15404       ld_shlibs_CXX=no
15405     fi
15406   ;;
15407       darwin* | rhapsody*)
15408         case "$host_os" in
15409         rhapsody* | darwin1.[012])
15410          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15411          ;;
15412        *) # Darwin 1.3 on
15413          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15414            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15415          else
15416            case ${MACOSX_DEPLOYMENT_TARGET} in
15417              10.[012])
15418                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15419                ;;
15420              10.*)
15421                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15422                ;;
15423            esac
15424          fi
15425          ;;
15426         esac
15427       archive_cmds_need_lc_CXX=no
15428       hardcode_direct_CXX=no
15429       hardcode_automatic_CXX=yes
15430       hardcode_shlibpath_var_CXX=unsupported
15431       whole_archive_flag_spec_CXX=''
15432       link_all_deplibs_CXX=yes
15433
15434     if test "$GXX" = yes ; then
15435       lt_int_apple_cc_single_mod=no
15436       output_verbose_link_cmd='echo'
15437       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15438        lt_int_apple_cc_single_mod=yes
15439       fi
15440       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15441        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15442       else
15443           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'
15444         fi
15445         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15446         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15447           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15448             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}'
15449           else
15450             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}'
15451           fi
15452             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}'
15453       else
15454       case "$cc_basename" in
15455         xlc*)
15456          output_verbose_link_cmd='echo'
15457           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'
15458           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15459           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15460           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}'
15461           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}'
15462           ;;
15463        *)
15464          ld_shlibs_CXX=no
15465           ;;
15466       esac
15467       fi
15468         ;;
15469
15470   dgux*)
15471     case $cc_basename in
15472       ec++)
15473         # FIXME: insert proper C++ library support
15474         ld_shlibs_CXX=no
15475         ;;
15476       ghcx)
15477         # Green Hills C++ Compiler
15478         # FIXME: insert proper C++ library support
15479         ld_shlibs_CXX=no
15480         ;;
15481       *)
15482         # FIXME: insert proper C++ library support
15483         ld_shlibs_CXX=no
15484         ;;
15485     esac
15486     ;;
15487   freebsd12*)
15488     # C++ shared libraries reported to be fairly broken before switch to ELF
15489     ld_shlibs_CXX=no
15490     ;;
15491   freebsd-elf*)
15492     archive_cmds_need_lc_CXX=no
15493     ;;
15494   freebsd* | kfreebsd*-gnu)
15495     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15496     # conventions
15497     ld_shlibs_CXX=yes
15498     ;;
15499   gnu*)
15500     ;;
15501   hpux9*)
15502     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15503     hardcode_libdir_separator_CXX=:
15504     export_dynamic_flag_spec_CXX='${wl}-E'
15505     hardcode_direct_CXX=yes
15506     hardcode_minus_L_CXX=yes # Not in the search PATH,
15507                                 # but as the default
15508                                 # location of the library.
15509
15510     case $cc_basename in
15511     CC)
15512       # FIXME: insert proper C++ library support
15513       ld_shlibs_CXX=no
15514       ;;
15515     aCC)
15516       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'
15517       # Commands to make compiler produce verbose output that lists
15518       # what "hidden" libraries, object files and flags are used when
15519       # linking a shared library.
15520       #
15521       # There doesn't appear to be a way to prevent this compiler from
15522       # explicitly linking system object files so we need to strip them
15523       # from the output so that they don't get included in the library
15524       # dependencies.
15525       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'
15526       ;;
15527     *)
15528       if test "$GXX" = yes; then
15529         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'
15530       else
15531         # FIXME: insert proper C++ library support
15532         ld_shlibs_CXX=no
15533       fi
15534       ;;
15535     esac
15536     ;;
15537   hpux10*|hpux11*)
15538     if test $with_gnu_ld = no; then
15539       case "$host_cpu" in
15540       hppa*64*)
15541         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15542         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15543         hardcode_libdir_separator_CXX=:
15544         ;;
15545       ia64*)
15546         hardcode_libdir_flag_spec_CXX='-L$libdir'
15547         ;;
15548       *)
15549         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15550         hardcode_libdir_separator_CXX=:
15551         export_dynamic_flag_spec_CXX='${wl}-E'
15552         ;;
15553       esac
15554     fi
15555     case "$host_cpu" in
15556     hppa*64*)
15557       hardcode_direct_CXX=no
15558       hardcode_shlibpath_var_CXX=no
15559       ;;
15560     ia64*)
15561       hardcode_direct_CXX=no
15562       hardcode_shlibpath_var_CXX=no
15563       hardcode_minus_L_CXX=yes # Not in the search PATH,
15564                                               # but as the default
15565                                               # location of the library.
15566       ;;
15567     *)
15568       hardcode_direct_CXX=yes
15569       hardcode_minus_L_CXX=yes # Not in the search PATH,
15570                                               # but as the default
15571                                               # location of the library.
15572       ;;
15573     esac
15574
15575     case $cc_basename in
15576       CC)
15577         # FIXME: insert proper C++ library support
15578         ld_shlibs_CXX=no
15579         ;;
15580       aCC)
15581         case "$host_cpu" in
15582         hppa*64*|ia64*)
15583           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15584           ;;
15585         *)
15586           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15587           ;;
15588         esac
15589         # Commands to make compiler produce verbose output that lists
15590         # what "hidden" libraries, object files and flags are used when
15591         # linking a shared library.
15592         #
15593         # There doesn't appear to be a way to prevent this compiler from
15594         # explicitly linking system object files so we need to strip them
15595         # from the output so that they don't get included in the library
15596         # dependencies.
15597         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'
15598         ;;
15599       *)
15600         if test "$GXX" = yes; then
15601           if test $with_gnu_ld = no; then
15602             case "$host_cpu" in
15603             ia64*|hppa*64*)
15604               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15605               ;;
15606             *)
15607               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'
15608               ;;
15609             esac
15610           fi
15611         else
15612           # FIXME: insert proper C++ library support
15613           ld_shlibs_CXX=no
15614         fi
15615         ;;
15616     esac
15617     ;;
15618   irix5* | irix6*)
15619     case $cc_basename in
15620       CC)
15621         # SGI C++
15622         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'
15623
15624         # Archives containing C++ object files must be created using
15625         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15626         # necessary to make sure instantiated templates are included
15627         # in the archive.
15628         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15629         ;;
15630       *)
15631         if test "$GXX" = yes; then
15632           if test "$with_gnu_ld" = no; then
15633             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'
15634           else
15635             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'
15636           fi
15637         fi
15638         link_all_deplibs_CXX=yes
15639         ;;
15640     esac
15641     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15642     hardcode_libdir_separator_CXX=:
15643     ;;
15644   linux*)
15645     case $cc_basename in
15646       KCC)
15647         # Kuck and Associates, Inc. (KAI) C++ Compiler
15648
15649         # KCC will only create a shared library if the output file
15650         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15651         # to its proper name (with version) after linking.
15652         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'
15653         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'
15654         # Commands to make compiler produce verbose output that lists
15655         # what "hidden" libraries, object files and flags are used when
15656         # linking a shared library.
15657         #
15658         # There doesn't appear to be a way to prevent this compiler from
15659         # explicitly linking system object files so we need to strip them
15660         # from the output so that they don't get included in the library
15661         # dependencies.
15662         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'
15663
15664         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15665         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15666
15667         # Archives containing C++ object files must be created using
15668         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15669         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15670         ;;
15671       icpc)
15672         # Intel C++
15673         with_gnu_ld=yes
15674         # version 8.0 and above of icpc choke on multiply defined symbols
15675         # if we add $predep_objects and $postdep_objects, however 7.1 and
15676         # earlier do not add the objects themselves.
15677         case `$CC -V 2>&1` in
15678         *"Version 7."*)
15679           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680           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'
15681           ;;
15682         *)  # Version 8.0 or newer
15683           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15684         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15685           ;;
15686         esac
15687         archive_cmds_need_lc_CXX=no
15688         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15689         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15690         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15691         ;;
15692       cxx)
15693         # Compaq C++
15694         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15695         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'
15696
15697         runpath_var=LD_RUN_PATH
15698         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15699         hardcode_libdir_separator_CXX=:
15700
15701         # Commands to make compiler produce verbose output that lists
15702         # what "hidden" libraries, object files and flags are used when
15703         # linking a shared library.
15704         #
15705         # There doesn't appear to be a way to prevent this compiler from
15706         # explicitly linking system object files so we need to strip them
15707         # from the output so that they don't get included in the library
15708         # dependencies.
15709         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'
15710         ;;
15711     esac
15712     ;;
15713   lynxos*)
15714     # FIXME: insert proper C++ library support
15715     ld_shlibs_CXX=no
15716     ;;
15717   m88k*)
15718     # FIXME: insert proper C++ library support
15719     ld_shlibs_CXX=no
15720     ;;
15721   mvs*)
15722     case $cc_basename in
15723       cxx)
15724         # FIXME: insert proper C++ library support
15725         ld_shlibs_CXX=no
15726         ;;
15727       *)
15728         # FIXME: insert proper C++ library support
15729         ld_shlibs_CXX=no
15730         ;;
15731     esac
15732     ;;
15733   netbsd*)
15734     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15735       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15736       wlarc=
15737       hardcode_libdir_flag_spec_CXX='-R$libdir'
15738       hardcode_direct_CXX=yes
15739       hardcode_shlibpath_var_CXX=no
15740     fi
15741     # Workaround some broken pre-1.5 toolchains
15742     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15743     ;;
15744   openbsd2*)
15745     # C++ shared libraries are fairly broken
15746     ld_shlibs_CXX=no
15747     ;;
15748   openbsd*)
15749     hardcode_direct_CXX=yes
15750     hardcode_shlibpath_var_CXX=no
15751     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15752     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15753     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15754       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15755       export_dynamic_flag_spec_CXX='${wl}-E'
15756       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15757     fi
15758     output_verbose_link_cmd='echo'
15759     ;;
15760   osf3*)
15761     case $cc_basename in
15762       KCC)
15763         # Kuck and Associates, Inc. (KAI) C++ Compiler
15764
15765         # KCC will only create a shared library if the output file
15766         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15767         # to its proper name (with version) after linking.
15768         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'
15769
15770         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15771         hardcode_libdir_separator_CXX=:
15772
15773         # Archives containing C++ object files must be created using
15774         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15775         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15776
15777         ;;
15778       RCC)
15779         # Rational C++ 2.4.1
15780         # FIXME: insert proper C++ library support
15781         ld_shlibs_CXX=no
15782         ;;
15783       cxx)
15784         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15785         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'
15786
15787         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15788         hardcode_libdir_separator_CXX=:
15789
15790         # Commands to make compiler produce verbose output that lists
15791         # what "hidden" libraries, object files and flags are used when
15792         # linking a shared library.
15793         #
15794         # There doesn't appear to be a way to prevent this compiler from
15795         # explicitly linking system object files so we need to strip them
15796         # from the output so that they don't get included in the library
15797         # dependencies.
15798         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'
15799         ;;
15800       *)
15801         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15802           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15803           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'
15804
15805           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15806           hardcode_libdir_separator_CXX=:
15807
15808           # Commands to make compiler produce verbose output that lists
15809           # what "hidden" libraries, object files and flags are used when
15810           # linking a shared library.
15811           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15812
15813         else
15814           # FIXME: insert proper C++ library support
15815           ld_shlibs_CXX=no
15816         fi
15817         ;;
15818     esac
15819     ;;
15820   osf4* | osf5*)
15821     case $cc_basename in
15822       KCC)
15823         # Kuck and Associates, Inc. (KAI) C++ Compiler
15824
15825         # KCC will only create a shared library if the output file
15826         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15827         # to its proper name (with version) after linking.
15828         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'
15829
15830         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15831         hardcode_libdir_separator_CXX=:
15832
15833         # Archives containing C++ object files must be created using
15834         # the KAI C++ compiler.
15835         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15836         ;;
15837       RCC)
15838         # Rational C++ 2.4.1
15839         # FIXME: insert proper C++ library support
15840         ld_shlibs_CXX=no
15841         ;;
15842       cxx)
15843         allow_undefined_flag_CXX=' -expect_unresolved \*'
15844         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'
15845         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15846           echo "-hidden">> $lib.exp~
15847           $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~
15848           $rm $lib.exp'
15849
15850         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15851         hardcode_libdir_separator_CXX=:
15852
15853         # Commands to make compiler produce verbose output that lists
15854         # what "hidden" libraries, object files and flags are used when
15855         # linking a shared library.
15856         #
15857         # There doesn't appear to be a way to prevent this compiler from
15858         # explicitly linking system object files so we need to strip them
15859         # from the output so that they don't get included in the library
15860         # dependencies.
15861         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'
15862         ;;
15863       *)
15864         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15865           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15866          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'
15867
15868           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15869           hardcode_libdir_separator_CXX=:
15870
15871           # Commands to make compiler produce verbose output that lists
15872           # what "hidden" libraries, object files and flags are used when
15873           # linking a shared library.
15874           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15875
15876         else
15877           # FIXME: insert proper C++ library support
15878           ld_shlibs_CXX=no
15879         fi
15880         ;;
15881     esac
15882     ;;
15883   psos*)
15884     # FIXME: insert proper C++ library support
15885     ld_shlibs_CXX=no
15886     ;;
15887   sco*)
15888     archive_cmds_need_lc_CXX=no
15889     case $cc_basename in
15890       CC)
15891         # FIXME: insert proper C++ library support
15892         ld_shlibs_CXX=no
15893         ;;
15894       *)
15895         # FIXME: insert proper C++ library support
15896         ld_shlibs_CXX=no
15897         ;;
15898     esac
15899     ;;
15900   sunos4*)
15901     case $cc_basename in
15902       CC)
15903         # Sun C++ 4.x
15904         # FIXME: insert proper C++ library support
15905         ld_shlibs_CXX=no
15906         ;;
15907       lcc)
15908         # Lucid
15909         # FIXME: insert proper C++ library support
15910         ld_shlibs_CXX=no
15911         ;;
15912       *)
15913         # FIXME: insert proper C++ library support
15914         ld_shlibs_CXX=no
15915         ;;
15916     esac
15917     ;;
15918   solaris*)
15919     case $cc_basename in
15920       CC)
15921         # Sun C++ 4.2, 5.x and Centerline C++
15922         no_undefined_flag_CXX=' -zdefs'
15923         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15924         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15925         $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'
15926
15927         hardcode_libdir_flag_spec_CXX='-R$libdir'
15928         hardcode_shlibpath_var_CXX=no
15929         case $host_os in
15930           solaris2.0-5 | solaris2.0-5.*) ;;
15931           *)
15932             # The C++ compiler is used as linker so we must use $wl
15933             # flag to pass the commands to the underlying system
15934             # linker.
15935             # Supported since Solaris 2.6 (maybe 2.5.1?)
15936             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15937             ;;
15938         esac
15939         link_all_deplibs_CXX=yes
15940
15941         # Commands to make compiler produce verbose output that lists
15942         # what "hidden" libraries, object files and flags are used when
15943         # linking a shared library.
15944         #
15945         # There doesn't appear to be a way to prevent this compiler from
15946         # explicitly linking system object files so we need to strip them
15947         # from the output so that they don't get included in the library
15948         # dependencies.
15949         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'
15950
15951         # Archives containing C++ object files must be created using
15952         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15953         # necessary to make sure instantiated templates are included
15954         # in the archive.
15955         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15956         ;;
15957       gcx)
15958         # Green Hills C++ Compiler
15959         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15960
15961         # The C++ compiler must be used to create the archive.
15962         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15963         ;;
15964       *)
15965         # GNU C++ compiler with Solaris linker
15966         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15967           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15968           if $CC --version | grep -v '^2\.7' > /dev/null; then
15969             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15970             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15971                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15972
15973             # Commands to make compiler produce verbose output that lists
15974             # what "hidden" libraries, object files and flags are used when
15975             # linking a shared library.
15976             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15977           else
15978             # g++ 2.7 appears to require `-G' NOT `-shared' on this
15979             # platform.
15980             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15981             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15982                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15983
15984             # Commands to make compiler produce verbose output that lists
15985             # what "hidden" libraries, object files and flags are used when
15986             # linking a shared library.
15987             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15988           fi
15989
15990           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15991         fi
15992         ;;
15993     esac
15994     ;;
15995   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15996     archive_cmds_need_lc_CXX=no
15997     ;;
15998   tandem*)
15999     case $cc_basename in
16000       NCC)
16001         # NonStop-UX NCC 3.20
16002         # FIXME: insert proper C++ library support
16003         ld_shlibs_CXX=no
16004         ;;
16005       *)
16006         # FIXME: insert proper C++ library support
16007         ld_shlibs_CXX=no
16008         ;;
16009     esac
16010     ;;
16011   vxworks*)
16012     # FIXME: insert proper C++ library support
16013     ld_shlibs_CXX=no
16014     ;;
16015   *)
16016     # FIXME: insert proper C++ library support
16017     ld_shlibs_CXX=no
16018     ;;
16019 esac
16020 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16021 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16022 test "$ld_shlibs_CXX" = no && can_build_shared=no
16023
16024 GCC_CXX="$GXX"
16025 LD_CXX="$LD"
16026
16027
16028 cat > conftest.$ac_ext <<EOF
16029 class Foo
16030 {
16031 public:
16032   Foo (void) { a = 0; }
16033 private:
16034   int a;
16035 };
16036 EOF
16037
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039   (eval $ac_compile) 2>&5
16040   ac_status=$?
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); }; then
16043   # Parse the compiler output and extract the necessary
16044   # objects, libraries and library flags.
16045
16046   # Sentinel used to keep track of whether or not we are before
16047   # the conftest object file.
16048   pre_test_object_deps_done=no
16049
16050   # The `*' in the case matches for architectures that use `case' in
16051   # $output_verbose_cmd can trigger glob expansion during the loop
16052   # eval without this substitution.
16053   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16054
16055   for p in `eval $output_verbose_link_cmd`; do
16056     case $p in
16057
16058     -L* | -R* | -l*)
16059        # Some compilers place space between "-{L,R}" and the path.
16060        # Remove the space.
16061        if test $p = "-L" \
16062           || test $p = "-R"; then
16063          prev=$p
16064          continue
16065        else
16066          prev=
16067        fi
16068
16069        if test "$pre_test_object_deps_done" = no; then
16070          case $p in
16071          -L* | -R*)
16072            # Internal compiler library paths should come after those
16073            # provided the user.  The postdeps already come after the
16074            # user supplied libs so there is no need to process them.
16075            if test -z "$compiler_lib_search_path_CXX"; then
16076              compiler_lib_search_path_CXX="${prev}${p}"
16077            else
16078              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16079            fi
16080            ;;
16081          # The "-l" case would never come before the object being
16082          # linked, so don't bother handling this case.
16083          esac
16084        else
16085          if test -z "$postdeps_CXX"; then
16086            postdeps_CXX="${prev}${p}"
16087          else
16088            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16089          fi
16090        fi
16091        ;;
16092
16093     *.$objext)
16094        # This assumes that the test object file only shows up
16095        # once in the compiler output.
16096        if test "$p" = "conftest.$objext"; then
16097          pre_test_object_deps_done=yes
16098          continue
16099        fi
16100
16101        if test "$pre_test_object_deps_done" = no; then
16102          if test -z "$predep_objects_CXX"; then
16103            predep_objects_CXX="$p"
16104          else
16105            predep_objects_CXX="$predep_objects_CXX $p"
16106          fi
16107        else
16108          if test -z "$postdep_objects_CXX"; then
16109            postdep_objects_CXX="$p"
16110          else
16111            postdep_objects_CXX="$postdep_objects_CXX $p"
16112          fi
16113        fi
16114        ;;
16115
16116     *) ;; # Ignore the rest.
16117
16118     esac
16119   done
16120
16121   # Clean up.
16122   rm -f a.out a.exe
16123 else
16124   echo "libtool.m4: error: problem compiling CXX test program"
16125 fi
16126
16127 $rm -f confest.$objext
16128
16129 case " $postdeps_CXX " in
16130 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16131 esac
16132
16133 lt_prog_compiler_wl_CXX=
16134 lt_prog_compiler_pic_CXX=
16135 lt_prog_compiler_static_CXX=
16136
16137 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16138 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16139
16140   # C++ specific cases for pic, static, wl, etc.
16141   if test "$GXX" = yes; then
16142     lt_prog_compiler_wl_CXX='-Wl,'
16143     lt_prog_compiler_static_CXX='-static'
16144
16145     case $host_os in
16146     aix*)
16147       # All AIX code is PIC.
16148       if test "$host_cpu" = ia64; then
16149         # AIX 5 now supports IA64 processor
16150         lt_prog_compiler_static_CXX='-Bstatic'
16151       fi
16152       ;;
16153     amigaos*)
16154       # FIXME: we need at least 68020 code to build shared libraries, but
16155       # adding the `-m68020' flag to GCC prevents building anything better,
16156       # like `-m68040'.
16157       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16158       ;;
16159     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16160       # PIC is the default for these OSes.
16161       ;;
16162     mingw* | os2* | pw32*)
16163       # This hack is so that the source file can tell whether it is being
16164       # built for inclusion in a dll (and should export symbols for example).
16165       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16166       ;;
16167     darwin* | rhapsody*)
16168       # PIC is the default on this platform
16169       # Common symbols not allowed in MH_DYLIB files
16170       lt_prog_compiler_pic_CXX='-fno-common'
16171       ;;
16172     *djgpp*)
16173       # DJGPP does not support shared libraries at all
16174       lt_prog_compiler_pic_CXX=
16175       ;;
16176     sysv4*MP*)
16177       if test -d /usr/nec; then
16178         lt_prog_compiler_pic_CXX=-Kconform_pic
16179       fi
16180       ;;
16181     hpux*)
16182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16183       # not for PA HP-UX.
16184       case "$host_cpu" in
16185       hppa*64*|ia64*)
16186         ;;
16187       *)
16188         lt_prog_compiler_pic_CXX='-fPIC'
16189         ;;
16190       esac
16191       ;;
16192     *)
16193       lt_prog_compiler_pic_CXX='-fPIC'
16194       ;;
16195     esac
16196   else
16197     case $host_os in
16198       aix4* | aix5*)
16199         # All AIX code is PIC.
16200         if test "$host_cpu" = ia64; then
16201           # AIX 5 now supports IA64 processor
16202           lt_prog_compiler_static_CXX='-Bstatic'
16203         else
16204           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16205         fi
16206         ;;
16207       chorus*)
16208         case $cc_basename in
16209         cxch68)
16210           # Green Hills C++ Compiler
16211           # _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"
16212           ;;
16213         esac
16214         ;;
16215        darwin*)
16216          # PIC is the default on this platform
16217          # Common symbols not allowed in MH_DYLIB files
16218          case "$cc_basename" in
16219            xlc*)
16220            lt_prog_compiler_pic_CXX='-qnocommon'
16221            lt_prog_compiler_wl_CXX='-Wl,'
16222            ;;
16223          esac
16224        ;;
16225       dgux*)
16226         case $cc_basename in
16227           ec++)
16228             lt_prog_compiler_pic_CXX='-KPIC'
16229             ;;
16230           ghcx)
16231             # Green Hills C++ Compiler
16232             lt_prog_compiler_pic_CXX='-pic'
16233             ;;
16234           *)
16235             ;;
16236         esac
16237         ;;
16238       freebsd* | kfreebsd*-gnu)
16239         # FreeBSD uses GNU C++
16240         ;;
16241       hpux9* | hpux10* | hpux11*)
16242         case $cc_basename in
16243           CC)
16244             lt_prog_compiler_wl_CXX='-Wl,'
16245             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16246             if test "$host_cpu" != ia64; then
16247               lt_prog_compiler_pic_CXX='+Z'
16248             fi
16249             ;;
16250           aCC)
16251             lt_prog_compiler_wl_CXX='-Wl,'
16252             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16253             case "$host_cpu" in
16254             hppa*64*|ia64*)
16255               # +Z the default
16256               ;;
16257             *)
16258               lt_prog_compiler_pic_CXX='+Z'
16259               ;;
16260             esac
16261             ;;
16262           *)
16263             ;;
16264         esac
16265         ;;
16266       irix5* | irix6* | nonstopux*)
16267         case $cc_basename in
16268           CC)
16269             lt_prog_compiler_wl_CXX='-Wl,'
16270             lt_prog_compiler_static_CXX='-non_shared'
16271             # CC pic flag -KPIC is the default.
16272             ;;
16273           *)
16274             ;;
16275         esac
16276         ;;
16277       linux*)
16278         case $cc_basename in
16279           KCC)
16280             # KAI C++ Compiler
16281             lt_prog_compiler_wl_CXX='--backend -Wl,'
16282             lt_prog_compiler_pic_CXX='-fPIC'
16283             ;;
16284           icpc)
16285             # Intel C++
16286             lt_prog_compiler_wl_CXX='-Wl,'
16287             lt_prog_compiler_pic_CXX='-KPIC'
16288             lt_prog_compiler_static_CXX='-static'
16289             ;;
16290           cxx)
16291             # Compaq C++
16292             # Make sure the PIC flag is empty.  It appears that all Alpha
16293             # Linux and Compaq Tru64 Unix objects are PIC.
16294             lt_prog_compiler_pic_CXX=
16295             lt_prog_compiler_static_CXX='-non_shared'
16296             ;;
16297           *)
16298             ;;
16299         esac
16300         ;;
16301       lynxos*)
16302         ;;
16303       m88k*)
16304         ;;
16305       mvs*)
16306         case $cc_basename in
16307           cxx)
16308             lt_prog_compiler_pic_CXX='-W c,exportall'
16309             ;;
16310           *)
16311             ;;
16312         esac
16313         ;;
16314       netbsd*)
16315         ;;
16316       osf3* | osf4* | osf5*)
16317         case $cc_basename in
16318           KCC)
16319             lt_prog_compiler_wl_CXX='--backend -Wl,'
16320             ;;
16321           RCC)
16322             # Rational C++ 2.4.1
16323             lt_prog_compiler_pic_CXX='-pic'
16324             ;;
16325           cxx)
16326             # Digital/Compaq C++
16327             lt_prog_compiler_wl_CXX='-Wl,'
16328             # Make sure the PIC flag is empty.  It appears that all Alpha
16329             # Linux and Compaq Tru64 Unix objects are PIC.
16330             lt_prog_compiler_pic_CXX=
16331             lt_prog_compiler_static_CXX='-non_shared'
16332             ;;
16333           *)
16334             ;;
16335         esac
16336         ;;
16337       psos*)
16338         ;;
16339       sco*)
16340         case $cc_basename in
16341           CC)
16342             lt_prog_compiler_pic_CXX='-fPIC'
16343             ;;
16344           *)
16345             ;;
16346         esac
16347         ;;
16348       solaris*)
16349         case $cc_basename in
16350           CC)
16351             # Sun C++ 4.2, 5.x and Centerline C++
16352             lt_prog_compiler_pic_CXX='-KPIC'
16353             lt_prog_compiler_static_CXX='-Bstatic'
16354             lt_prog_compiler_wl_CXX='-Qoption ld '
16355             ;;
16356           gcx)
16357             # Green Hills C++ Compiler
16358             lt_prog_compiler_pic_CXX='-PIC'
16359             ;;
16360           *)
16361             ;;
16362         esac
16363         ;;
16364       sunos4*)
16365         case $cc_basename in
16366           CC)
16367             # Sun C++ 4.x
16368             lt_prog_compiler_pic_CXX='-pic'
16369             lt_prog_compiler_static_CXX='-Bstatic'
16370             ;;
16371           lcc)
16372             # Lucid
16373             lt_prog_compiler_pic_CXX='-pic'
16374             ;;
16375           *)
16376             ;;
16377         esac
16378         ;;
16379       tandem*)
16380         case $cc_basename in
16381           NCC)
16382             # NonStop-UX NCC 3.20
16383             lt_prog_compiler_pic_CXX='-KPIC'
16384             ;;
16385           *)
16386             ;;
16387         esac
16388         ;;
16389       unixware*)
16390         ;;
16391       vxworks*)
16392         ;;
16393       *)
16394         lt_prog_compiler_can_build_shared_CXX=no
16395         ;;
16396     esac
16397   fi
16398
16399 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16400 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16401
16402 #
16403 # Check to make sure the PIC flag actually works.
16404 #
16405 if test -n "$lt_prog_compiler_pic_CXX"; then
16406
16407 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16409 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16410   echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412   lt_prog_compiler_pic_works_CXX=no
16413   ac_outfile=conftest.$ac_objext
16414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16415    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16416    # Insert the option either (1) after the last *FLAGS variable, or
16417    # (2) before a word containing "conftest.", or (3) at the end.
16418    # Note that $ac_compile itself does not contain backslashes and begins
16419    # with a dollar sign (not a hyphen), so the echo should work correctly.
16420    # The option is referenced via a variable to avoid confusing sed.
16421    lt_compile=`echo "$ac_compile" | $SED \
16422    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424    -e 's:$: $lt_compiler_flag:'`
16425    (eval echo "\"\$as_me:16425: $lt_compile\"" >&5)
16426    (eval "$lt_compile" 2>conftest.err)
16427    ac_status=$?
16428    cat conftest.err >&5
16429    echo "$as_me:16429: \$? = $ac_status" >&5
16430    if (exit $ac_status) && test -s "$ac_outfile"; then
16431      # The compiler can only warn and ignore the option if not recognized
16432      # So say no if there are warnings
16433      if test ! -s conftest.err; then
16434        lt_prog_compiler_pic_works_CXX=yes
16435      fi
16436    fi
16437    $rm conftest*
16438
16439 fi
16440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16441 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16442
16443 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16444     case $lt_prog_compiler_pic_CXX in
16445      "" | " "*) ;;
16446      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16447      esac
16448 else
16449     lt_prog_compiler_pic_CXX=
16450      lt_prog_compiler_can_build_shared_CXX=no
16451 fi
16452
16453 fi
16454 case "$host_os" in
16455   # For platforms which do not support PIC, -DPIC is meaningless:
16456   *djgpp*)
16457     lt_prog_compiler_pic_CXX=
16458     ;;
16459   *)
16460     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16461     ;;
16462 esac
16463
16464 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16465 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16467   echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469   lt_cv_prog_compiler_c_o_CXX=no
16470    $rm -r conftest 2>/dev/null
16471    mkdir conftest
16472    cd conftest
16473    mkdir out
16474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16475
16476    lt_compiler_flag="-o out/conftest2.$ac_objext"
16477    # Insert the option either (1) after the last *FLAGS variable, or
16478    # (2) before a word containing "conftest.", or (3) at the end.
16479    # Note that $ac_compile itself does not contain backslashes and begins
16480    # with a dollar sign (not a hyphen), so the echo should work correctly.
16481    lt_compile=`echo "$ac_compile" | $SED \
16482    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16484    -e 's:$: $lt_compiler_flag:'`
16485    (eval echo "\"\$as_me:16485: $lt_compile\"" >&5)
16486    (eval "$lt_compile" 2>out/conftest.err)
16487    ac_status=$?
16488    cat out/conftest.err >&5
16489    echo "$as_me:16489: \$? = $ac_status" >&5
16490    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16491    then
16492      # The compiler can only warn and ignore the option if not recognized
16493      # So say no if there are warnings
16494      if test ! -s out/conftest.err; then
16495        lt_cv_prog_compiler_c_o_CXX=yes
16496      fi
16497    fi
16498    chmod u+w .
16499    $rm conftest*
16500    # SGI C++ compiler will create directory out/ii_files/ for
16501    # template instantiation
16502    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16503    $rm out/* && rmdir out
16504    cd ..
16505    rmdir conftest
16506    $rm conftest*
16507
16508 fi
16509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16510 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16511
16512
16513 hard_links="nottested"
16514 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16515   # do not overwrite the value of need_locks provided by the user
16516   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16517 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16518   hard_links=yes
16519   $rm conftest*
16520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16521   touch conftest.a
16522   ln conftest.a conftest.b 2>&5 || hard_links=no
16523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16524   echo "$as_me:$LINENO: result: $hard_links" >&5
16525 echo "${ECHO_T}$hard_links" >&6
16526   if test "$hard_links" = no; then
16527     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16528 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16529     need_locks=warn
16530   fi
16531 else
16532   need_locks=no
16533 fi
16534
16535 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16536 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16537
16538   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16539   case $host_os in
16540   aix4* | aix5*)
16541     # If we're using GNU nm, then we don't want the "-C" option.
16542     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16543     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16544       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'
16545     else
16546       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'
16547     fi
16548     ;;
16549   pw32*)
16550     export_symbols_cmds_CXX="$ltdll_cmds"
16551   ;;
16552   cygwin* | mingw*)
16553     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16554   ;;
16555   *)
16556     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16557   ;;
16558   esac
16559
16560 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16561 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16562 test "$ld_shlibs_CXX" = no && can_build_shared=no
16563
16564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565 if test "$GCC" = yes; then
16566   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16567 fi
16568
16569 #
16570 # Do we need to explicitly link libc?
16571 #
16572 case "x$archive_cmds_need_lc_CXX" in
16573 x|xyes)
16574   # Assume -lc should be added
16575   archive_cmds_need_lc_CXX=yes
16576
16577   if test "$enable_shared" = yes && test "$GCC" = yes; then
16578     case $archive_cmds_CXX in
16579     *'~'*)
16580       # FIXME: we may have to deal with multi-command sequences.
16581       ;;
16582     '$CC '*)
16583       # Test whether the compiler implicitly links with -lc since on some
16584       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16585       # to ld, don't add -lc before -lgcc.
16586       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16587 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16588       $rm conftest*
16589       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16590
16591       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592   (eval $ac_compile) 2>&5
16593   ac_status=$?
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); } 2>conftest.err; then
16596         soname=conftest
16597         lib=conftest
16598         libobjs=conftest.$ac_objext
16599         deplibs=
16600         wl=$lt_prog_compiler_wl_CXX
16601         compiler_flags=-v
16602         linker_flags=-v
16603         verstring=
16604         output_objdir=.
16605         libname=conftest
16606         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16607         allow_undefined_flag_CXX=
16608         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16609   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }
16613         then
16614           archive_cmds_need_lc_CXX=no
16615         else
16616           archive_cmds_need_lc_CXX=yes
16617         fi
16618         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16619       else
16620         cat conftest.err 1>&5
16621       fi
16622       $rm conftest*
16623       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16624 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16625       ;;
16626     esac
16627   fi
16628   ;;
16629 esac
16630
16631 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16632 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16633 library_names_spec=
16634 libname_spec='lib$name'
16635 soname_spec=
16636 shrext_cmds=".so"
16637 postinstall_cmds=
16638 postuninstall_cmds=
16639 finish_cmds=
16640 finish_eval=
16641 shlibpath_var=
16642 shlibpath_overrides_runpath=unknown
16643 version_type=none
16644 dynamic_linker="$host_os ld.so"
16645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16646 if test "$GCC" = yes; then
16647   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16648   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16649     # if the path contains ";" then we assume it to be the separator
16650     # otherwise default to the standard path separator (i.e. ":") - it is
16651     # assumed that no part of a normal pathname contains ";" but that should
16652     # okay in the real world where ";" in dirpaths is itself problematic.
16653     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16654   else
16655     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16656   fi
16657 else
16658   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16659 fi
16660 need_lib_prefix=unknown
16661 hardcode_into_libs=no
16662
16663 # when you set need_version to no, make sure it does not cause -set_version
16664 # flags to be left without arguments
16665 need_version=unknown
16666
16667 case $host_os in
16668 aix3*)
16669   version_type=linux
16670   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16671   shlibpath_var=LIBPATH
16672
16673   # AIX 3 has no versioning support, so we append a major version to the name.
16674   soname_spec='${libname}${release}${shared_ext}$major'
16675   ;;
16676
16677 aix4* | aix5*)
16678   version_type=linux
16679   need_lib_prefix=no
16680   need_version=no
16681   hardcode_into_libs=yes
16682   if test "$host_cpu" = ia64; then
16683     # AIX 5 supports IA64
16684     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16685     shlibpath_var=LD_LIBRARY_PATH
16686   else
16687     # With GCC up to 2.95.x, collect2 would create an import file
16688     # for dependence libraries.  The import file would start with
16689     # the line `#! .'.  This would cause the generated library to
16690     # depend on `.', always an invalid library.  This was fixed in
16691     # development snapshots of GCC prior to 3.0.
16692     case $host_os in
16693       aix4 | aix4.[01] | aix4.[01].*)
16694       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16695            echo ' yes '
16696            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16697         :
16698       else
16699         can_build_shared=no
16700       fi
16701       ;;
16702     esac
16703     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16704     # soname into executable. Probably we can add versioning support to
16705     # collect2, so additional links can be useful in future.
16706     if test "$aix_use_runtimelinking" = yes; then
16707       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16708       # instead of lib<name>.a to let people know that these are not
16709       # typical AIX shared libraries.
16710       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711     else
16712       # We preserve .a as extension for shared libraries through AIX4.2
16713       # and later when we are not doing run time linking.
16714       library_names_spec='${libname}${release}.a $libname.a'
16715       soname_spec='${libname}${release}${shared_ext}$major'
16716     fi
16717     shlibpath_var=LIBPATH
16718   fi
16719   ;;
16720
16721 amigaos*)
16722   library_names_spec='$libname.ixlibrary $libname.a'
16723   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16724   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'
16725   ;;
16726
16727 beos*)
16728   library_names_spec='${libname}${shared_ext}'
16729   dynamic_linker="$host_os ld.so"
16730   shlibpath_var=LIBRARY_PATH
16731   ;;
16732
16733 bsdi[45]*)
16734   version_type=linux
16735   need_version=no
16736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737   soname_spec='${libname}${release}${shared_ext}$major'
16738   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16739   shlibpath_var=LD_LIBRARY_PATH
16740   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16741   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16742   # the default ld.so.conf also contains /usr/contrib/lib and
16743   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16744   # libtool to hard-code these into programs
16745   ;;
16746
16747 cygwin* | mingw* | pw32*)
16748   version_type=windows
16749   shrext_cmds=".dll"
16750   need_version=no
16751   need_lib_prefix=no
16752
16753   case $GCC,$host_os in
16754   yes,cygwin* | yes,mingw* | yes,pw32*)
16755     library_names_spec='$libname.dll.a'
16756     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16757     postinstall_cmds='base_file=`basename \${file}`~
16758       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16759       dldir=$destdir/`dirname \$dlpath`~
16760       test -d \$dldir || mkdir -p \$dldir~
16761       $install_prog $dir/$dlname \$dldir/$dlname'
16762     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16763       dlpath=$dir/\$dldll~
16764        $rm \$dlpath'
16765     shlibpath_overrides_runpath=yes
16766
16767     case $host_os in
16768     cygwin*)
16769       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16770       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16771       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16772       ;;
16773     mingw*)
16774       # MinGW DLLs use traditional 'lib' prefix
16775       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16777       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16778         # It is most probably a Windows format PATH printed by
16779         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16780         # path with ; separators, and with drive letters. We can handle the
16781         # drive letters (cygwin fileutils understands them), so leave them,
16782         # especially as we might pass files found there to a mingw objdump,
16783         # which wouldn't understand a cygwinified path. Ahh.
16784         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16785       else
16786         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16787       fi
16788       ;;
16789     pw32*)
16790       # pw32 DLLs use 'pw' prefix rather than 'lib'
16791       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16792       ;;
16793     esac
16794     ;;
16795
16796   *)
16797     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16798     ;;
16799   esac
16800   dynamic_linker='Win32 ld.exe'
16801   # FIXME: first we should search . and the directory the executable is in
16802   shlibpath_var=PATH
16803   ;;
16804
16805 darwin* | rhapsody*)
16806   dynamic_linker="$host_os dyld"
16807   version_type=darwin
16808   need_lib_prefix=no
16809   need_version=no
16810   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16811   soname_spec='${libname}${release}${major}$shared_ext'
16812   shlibpath_overrides_runpath=yes
16813   shlibpath_var=DYLD_LIBRARY_PATH
16814   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16815   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16816   if test "$GCC" = yes; then
16817     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"`
16818   else
16819     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16820   fi
16821   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16822   ;;
16823
16824 dgux*)
16825   version_type=linux
16826   need_lib_prefix=no
16827   need_version=no
16828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16829   soname_spec='${libname}${release}${shared_ext}$major'
16830   shlibpath_var=LD_LIBRARY_PATH
16831   ;;
16832
16833 freebsd1*)
16834   dynamic_linker=no
16835   ;;
16836
16837 kfreebsd*-gnu)
16838   version_type=linux
16839   need_lib_prefix=no
16840   need_version=no
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16842   soname_spec='${libname}${release}${shared_ext}$major'
16843   shlibpath_var=LD_LIBRARY_PATH
16844   shlibpath_overrides_runpath=no
16845   hardcode_into_libs=yes
16846   dynamic_linker='GNU ld.so'
16847   ;;
16848
16849 freebsd*)
16850   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16851   version_type=freebsd-$objformat
16852   case $version_type in
16853     freebsd-elf*)
16854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16855       need_version=no
16856       need_lib_prefix=no
16857       ;;
16858     freebsd-*)
16859       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16860       need_version=yes
16861       ;;
16862   esac
16863   shlibpath_var=LD_LIBRARY_PATH
16864   case $host_os in
16865   freebsd2*)
16866     shlibpath_overrides_runpath=yes
16867     ;;
16868   freebsd3.01* | freebsdelf3.01*)
16869     shlibpath_overrides_runpath=yes
16870     hardcode_into_libs=yes
16871     ;;
16872   *) # from 3.2 on
16873     shlibpath_overrides_runpath=no
16874     hardcode_into_libs=yes
16875     ;;
16876   esac
16877   ;;
16878
16879 gnu*)
16880   version_type=linux
16881   need_lib_prefix=no
16882   need_version=no
16883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16884   soname_spec='${libname}${release}${shared_ext}$major'
16885   shlibpath_var=LD_LIBRARY_PATH
16886   hardcode_into_libs=yes
16887   ;;
16888
16889 hpux9* | hpux10* | hpux11*)
16890   # Give a soname corresponding to the major version so that dld.sl refuses to
16891   # link against other versions.
16892   version_type=sunos
16893   need_lib_prefix=no
16894   need_version=no
16895   case "$host_cpu" in
16896   ia64*)
16897     shrext_cmds='.so'
16898     hardcode_into_libs=yes
16899     dynamic_linker="$host_os dld.so"
16900     shlibpath_var=LD_LIBRARY_PATH
16901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903     soname_spec='${libname}${release}${shared_ext}$major'
16904     if test "X$HPUX_IA64_MODE" = X32; then
16905       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16906     else
16907       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16908     fi
16909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16910     ;;
16911    hppa*64*)
16912      shrext_cmds='.sl'
16913      hardcode_into_libs=yes
16914      dynamic_linker="$host_os dld.sl"
16915      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16916      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16917      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918      soname_spec='${libname}${release}${shared_ext}$major'
16919      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16920      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16921      ;;
16922    *)
16923     shrext_cmds='.sl'
16924     dynamic_linker="$host_os dld.sl"
16925     shlibpath_var=SHLIB_PATH
16926     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928     soname_spec='${libname}${release}${shared_ext}$major'
16929     ;;
16930   esac
16931   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16932   postinstall_cmds='chmod 555 $lib'
16933   ;;
16934
16935 irix5* | irix6* | nonstopux*)
16936   case $host_os in
16937     nonstopux*) version_type=nonstopux ;;
16938     *)
16939         if test "$lt_cv_prog_gnu_ld" = yes; then
16940                 version_type=linux
16941         else
16942                 version_type=irix
16943         fi ;;
16944   esac
16945   need_lib_prefix=no
16946   need_version=no
16947   soname_spec='${libname}${release}${shared_ext}$major'
16948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16949   case $host_os in
16950   irix5* | nonstopux*)
16951     libsuff= shlibsuff=
16952     ;;
16953   *)
16954     case $LD in # libtool.m4 will add one of these switches to LD
16955     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16956       libsuff= shlibsuff= libmagic=32-bit;;
16957     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16958       libsuff=32 shlibsuff=N32 libmagic=N32;;
16959     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16960       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16961     *) libsuff= shlibsuff= libmagic=never-match;;
16962     esac
16963     ;;
16964   esac
16965   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16966   shlibpath_overrides_runpath=no
16967   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16968   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16969   hardcode_into_libs=yes
16970   ;;
16971
16972 # No shared lib support for Linux oldld, aout, or coff.
16973 linux*oldld* | linux*aout* | linux*coff*)
16974   dynamic_linker=no
16975   ;;
16976
16977 # This must be Linux ELF.
16978 linux*)
16979   version_type=linux
16980   need_lib_prefix=no
16981   need_version=no
16982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983   soname_spec='${libname}${release}${shared_ext}$major'
16984   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16985   shlibpath_var=LD_LIBRARY_PATH
16986   shlibpath_overrides_runpath=no
16987   # This implies no fast_install, which is unacceptable.
16988   # Some rework will be needed to allow for fast_install
16989   # before this can be enabled.
16990   hardcode_into_libs=yes
16991
16992   # Append ld.so.conf contents to the search path
16993   if test -f /etc/ld.so.conf; then
16994     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16995     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16996   fi
16997
16998   # We used to test for /lib/ld.so.1 and disable shared libraries on
16999   # powerpc, because MkLinux only supported shared libraries with the
17000   # GNU dynamic linker.  Since this was broken with cross compilers,
17001   # most powerpc-linux boxes support dynamic linking these days and
17002   # people can always --disable-shared, the test was removed, and we
17003   # assume the GNU/Linux dynamic linker is in use.
17004   dynamic_linker='GNU/Linux ld.so'
17005   ;;
17006
17007 knetbsd*-gnu)
17008   version_type=linux
17009   need_lib_prefix=no
17010   need_version=no
17011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17012   soname_spec='${libname}${release}${shared_ext}$major'
17013   shlibpath_var=LD_LIBRARY_PATH
17014   shlibpath_overrides_runpath=no
17015   hardcode_into_libs=yes
17016   dynamic_linker='GNU ld.so'
17017   ;;
17018
17019 netbsd*)
17020   version_type=sunos
17021   need_lib_prefix=no
17022   need_version=no
17023   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17025     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17026     dynamic_linker='NetBSD (a.out) ld.so'
17027   else
17028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17029     soname_spec='${libname}${release}${shared_ext}$major'
17030     dynamic_linker='NetBSD ld.elf_so'
17031   fi
17032   shlibpath_var=LD_LIBRARY_PATH
17033   shlibpath_overrides_runpath=yes
17034   hardcode_into_libs=yes
17035   ;;
17036
17037 newsos6)
17038   version_type=linux
17039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040   shlibpath_var=LD_LIBRARY_PATH
17041   shlibpath_overrides_runpath=yes
17042   ;;
17043
17044 nto-qnx*)
17045   version_type=linux
17046   need_lib_prefix=no
17047   need_version=no
17048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049   soname_spec='${libname}${release}${shared_ext}$major'
17050   shlibpath_var=LD_LIBRARY_PATH
17051   shlibpath_overrides_runpath=yes
17052   ;;
17053
17054 openbsd*)
17055   version_type=sunos
17056   need_lib_prefix=no
17057   need_version=no
17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17060   shlibpath_var=LD_LIBRARY_PATH
17061   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17062     case $host_os in
17063       openbsd2.[89] | openbsd2.[89].*)
17064         shlibpath_overrides_runpath=no
17065         ;;
17066       *)
17067         shlibpath_overrides_runpath=yes
17068         ;;
17069       esac
17070   else
17071     shlibpath_overrides_runpath=yes
17072   fi
17073   ;;
17074
17075 os2*)
17076   libname_spec='$name'
17077   shrext_cmds=".dll"
17078   need_lib_prefix=no
17079   library_names_spec='$libname${shared_ext} $libname.a'
17080   dynamic_linker='OS/2 ld.exe'
17081   shlibpath_var=LIBPATH
17082   ;;
17083
17084 osf3* | osf4* | osf5*)
17085   version_type=osf
17086   need_lib_prefix=no
17087   need_version=no
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090   shlibpath_var=LD_LIBRARY_PATH
17091   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17092   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17093   ;;
17094
17095 sco3.2v5*)
17096   version_type=osf
17097   soname_spec='${libname}${release}${shared_ext}$major'
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099   shlibpath_var=LD_LIBRARY_PATH
17100   ;;
17101
17102 solaris*)
17103   version_type=linux
17104   need_lib_prefix=no
17105   need_version=no
17106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107   soname_spec='${libname}${release}${shared_ext}$major'
17108   shlibpath_var=LD_LIBRARY_PATH
17109   shlibpath_overrides_runpath=yes
17110   hardcode_into_libs=yes
17111   # ldd complains unless libraries are executable
17112   postinstall_cmds='chmod +x $lib'
17113   ;;
17114
17115 sunos4*)
17116   version_type=sunos
17117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17119   shlibpath_var=LD_LIBRARY_PATH
17120   shlibpath_overrides_runpath=yes
17121   if test "$with_gnu_ld" = yes; then
17122     need_lib_prefix=no
17123   fi
17124   need_version=yes
17125   ;;
17126
17127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17128   version_type=linux
17129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130   soname_spec='${libname}${release}${shared_ext}$major'
17131   shlibpath_var=LD_LIBRARY_PATH
17132   case $host_vendor in
17133     sni)
17134       shlibpath_overrides_runpath=no
17135       need_lib_prefix=no
17136       export_dynamic_flag_spec='${wl}-Blargedynsym'
17137       runpath_var=LD_RUN_PATH
17138       ;;
17139     siemens)
17140       need_lib_prefix=no
17141       ;;
17142     motorola)
17143       need_lib_prefix=no
17144       need_version=no
17145       shlibpath_overrides_runpath=no
17146       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17147       ;;
17148   esac
17149   ;;
17150
17151 sysv4*MP*)
17152   if test -d /usr/nec ;then
17153     version_type=linux
17154     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17155     soname_spec='$libname${shared_ext}.$major'
17156     shlibpath_var=LD_LIBRARY_PATH
17157   fi
17158   ;;
17159
17160 uts4*)
17161   version_type=linux
17162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163   soname_spec='${libname}${release}${shared_ext}$major'
17164   shlibpath_var=LD_LIBRARY_PATH
17165   ;;
17166
17167 *)
17168   dynamic_linker=no
17169   ;;
17170 esac
17171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17172 echo "${ECHO_T}$dynamic_linker" >&6
17173 test "$dynamic_linker" = no && can_build_shared=no
17174
17175 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17176 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17177 hardcode_action_CXX=
17178 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17179    test -n "$runpath_var_CXX" || \
17180    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17181
17182   # We can hardcode non-existant directories.
17183   if test "$hardcode_direct_CXX" != no &&
17184      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17185      # have to relink, otherwise we might link with an installed library
17186      # when we should be linking with a yet-to-be-installed one
17187      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17188      test "$hardcode_minus_L_CXX" != no; then
17189     # Linking always hardcodes the temporary library directory.
17190     hardcode_action_CXX=relink
17191   else
17192     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17193     hardcode_action_CXX=immediate
17194   fi
17195 else
17196   # We cannot hardcode anything, or else we can only hardcode existing
17197   # directories.
17198   hardcode_action_CXX=unsupported
17199 fi
17200 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17201 echo "${ECHO_T}$hardcode_action_CXX" >&6
17202
17203 if test "$hardcode_action_CXX" = relink; then
17204   # Fast installation is not supported
17205   enable_fast_install=no
17206 elif test "$shlibpath_overrides_runpath" = yes ||
17207      test "$enable_shared" = no; then
17208   # Fast installation is not necessary
17209   enable_fast_install=needless
17210 fi
17211
17212 striplib=
17213 old_striplib=
17214 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17215 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17216 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17217   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17218   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17219   echo "$as_me:$LINENO: result: yes" >&5
17220 echo "${ECHO_T}yes" >&6
17221 else
17222 # FIXME - insert some real tests, host_os isn't really good enough
17223   case $host_os in
17224    darwin*)
17225        if test -n "$STRIP" ; then
17226          striplib="$STRIP -x"
17227          echo "$as_me:$LINENO: result: yes" >&5
17228 echo "${ECHO_T}yes" >&6
17229        else
17230   echo "$as_me:$LINENO: result: no" >&5
17231 echo "${ECHO_T}no" >&6
17232 fi
17233        ;;
17234    *)
17235   echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6
17237     ;;
17238   esac
17239 fi
17240
17241 if test "x$enable_dlopen" != xyes; then
17242   enable_dlopen=unknown
17243   enable_dlopen_self=unknown
17244   enable_dlopen_self_static=unknown
17245 else
17246   lt_cv_dlopen=no
17247   lt_cv_dlopen_libs=
17248
17249   case $host_os in
17250   beos*)
17251     lt_cv_dlopen="load_add_on"
17252     lt_cv_dlopen_libs=
17253     lt_cv_dlopen_self=yes
17254     ;;
17255
17256   mingw* | pw32*)
17257     lt_cv_dlopen="LoadLibrary"
17258     lt_cv_dlopen_libs=
17259    ;;
17260
17261   cygwin*)
17262     lt_cv_dlopen="dlopen"
17263     lt_cv_dlopen_libs=
17264    ;;
17265
17266   darwin*)
17267   # if libdl is installed we need to link against it
17268     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17271   echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273   ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-ldl  $LIBS"
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281
17282 /* Override any gcc2 internal prototype to avoid an error.  */
17283 #ifdef __cplusplus
17284 extern "C"
17285 #endif
17286 /* We use char because int might match the return type of a gcc2
17287    builtin and then its argument prototype would still apply.  */
17288 char dlopen ();
17289 int
17290 main ()
17291 {
17292 dlopen ();
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299   (eval $ac_link) 2>conftest.er1
17300   ac_status=$?
17301   grep -v '^ *+' conftest.er1 >conftest.err
17302   rm -f conftest.er1
17303   cat conftest.err >&5
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); } &&
17306          { ac_try='test -z "$ac_cxx_werror_flag"
17307                          || test ! -s conftest.err'
17308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309   (eval $ac_try) 2>&5
17310   ac_status=$?
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); }; } &&
17313          { ac_try='test -s conftest$ac_exeext'
17314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315   (eval $ac_try) 2>&5
17316   ac_status=$?
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); }; }; then
17319   ac_cv_lib_dl_dlopen=yes
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324 ac_cv_lib_dl_dlopen=no
17325 fi
17326 rm -f conftest.err conftest.$ac_objext \
17327       conftest$ac_exeext conftest.$ac_ext
17328 LIBS=$ac_check_lib_save_LIBS
17329 fi
17330 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17332 if test $ac_cv_lib_dl_dlopen = yes; then
17333   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17334 else
17335
17336     lt_cv_dlopen="dyld"
17337     lt_cv_dlopen_libs=
17338     lt_cv_dlopen_self=yes
17339
17340 fi
17341
17342    ;;
17343
17344   *)
17345     echo "$as_me:$LINENO: checking for shl_load" >&5
17346 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17347 if test "${ac_cv_func_shl_load+set}" = set; then
17348   echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350   cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17358 #define shl_load innocuous_shl_load
17359
17360 /* System header to define __stub macros and hopefully few prototypes,
17361     which can conflict with char shl_load (); below.
17362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17363     <limits.h> exists even on freestanding compilers.  */
17364
17365 #ifdef __STDC__
17366 # include <limits.h>
17367 #else
17368 # include <assert.h>
17369 #endif
17370
17371 #undef shl_load
17372
17373 /* Override any gcc2 internal prototype to avoid an error.  */
17374 #ifdef __cplusplus
17375 extern "C"
17376 {
17377 #endif
17378 /* We use char because int might match the return type of a gcc2
17379    builtin and then its argument prototype would still apply.  */
17380 char shl_load ();
17381 /* The GNU C library defines this for functions which it implements
17382     to always fail with ENOSYS.  Some functions are actually named
17383     something starting with __ and the normal name is an alias.  */
17384 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17385 choke me
17386 #else
17387 char (*f) () = shl_load;
17388 #endif
17389 #ifdef __cplusplus
17390 }
17391 #endif
17392
17393 int
17394 main ()
17395 {
17396 return f != shl_load;
17397   ;
17398   return 0;
17399 }
17400 _ACEOF
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403   (eval $ac_link) 2>conftest.er1
17404   ac_status=$?
17405   grep -v '^ *+' conftest.er1 >conftest.err
17406   rm -f conftest.er1
17407   cat conftest.err >&5
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); } &&
17410          { ac_try='test -z "$ac_cxx_werror_flag"
17411                          || test ! -s conftest.err'
17412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413   (eval $ac_try) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; } &&
17417          { ac_try='test -s conftest$ac_exeext'
17418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419   (eval $ac_try) 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); }; }; then
17423   ac_cv_func_shl_load=yes
17424 else
17425   echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 ac_cv_func_shl_load=no
17429 fi
17430 rm -f conftest.err conftest.$ac_objext \
17431       conftest$ac_exeext conftest.$ac_ext
17432 fi
17433 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17435 if test $ac_cv_func_shl_load = yes; then
17436   lt_cv_dlopen="shl_load"
17437 else
17438   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   ac_check_lib_save_LIBS=$LIBS
17444 LIBS="-ldld  $LIBS"
17445 cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451
17452 /* Override any gcc2 internal prototype to avoid an error.  */
17453 #ifdef __cplusplus
17454 extern "C"
17455 #endif
17456 /* We use char because int might match the return type of a gcc2
17457    builtin and then its argument prototype would still apply.  */
17458 char shl_load ();
17459 int
17460 main ()
17461 {
17462 shl_load ();
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469   (eval $ac_link) 2>conftest.er1
17470   ac_status=$?
17471   grep -v '^ *+' conftest.er1 >conftest.err
17472   rm -f conftest.er1
17473   cat conftest.err >&5
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); } &&
17476          { ac_try='test -z "$ac_cxx_werror_flag"
17477                          || test ! -s conftest.err'
17478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479   (eval $ac_try) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); }; } &&
17483          { ac_try='test -s conftest$ac_exeext'
17484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485   (eval $ac_try) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; }; then
17489   ac_cv_lib_dld_shl_load=yes
17490 else
17491   echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17493
17494 ac_cv_lib_dld_shl_load=no
17495 fi
17496 rm -f conftest.err conftest.$ac_objext \
17497       conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17499 fi
17500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17502 if test $ac_cv_lib_dld_shl_load = yes; then
17503   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17504 else
17505   echo "$as_me:$LINENO: checking for dlopen" >&5
17506 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17507 if test "${ac_cv_func_dlopen+set}" = set; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510   cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17518 #define dlopen innocuous_dlopen
17519
17520 /* System header to define __stub macros and hopefully few prototypes,
17521     which can conflict with char dlopen (); below.
17522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523     <limits.h> exists even on freestanding compilers.  */
17524
17525 #ifdef __STDC__
17526 # include <limits.h>
17527 #else
17528 # include <assert.h>
17529 #endif
17530
17531 #undef dlopen
17532
17533 /* Override any gcc2 internal prototype to avoid an error.  */
17534 #ifdef __cplusplus
17535 extern "C"
17536 {
17537 #endif
17538 /* We use char because int might match the return type of a gcc2
17539    builtin and then its argument prototype would still apply.  */
17540 char dlopen ();
17541 /* The GNU C library defines this for functions which it implements
17542     to always fail with ENOSYS.  Some functions are actually named
17543     something starting with __ and the normal name is an alias.  */
17544 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17545 choke me
17546 #else
17547 char (*f) () = dlopen;
17548 #endif
17549 #ifdef __cplusplus
17550 }
17551 #endif
17552
17553 int
17554 main ()
17555 {
17556 return f != dlopen;
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563   (eval $ac_link) 2>conftest.er1
17564   ac_status=$?
17565   grep -v '^ *+' conftest.er1 >conftest.err
17566   rm -f conftest.er1
17567   cat conftest.err >&5
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } &&
17570          { ac_try='test -z "$ac_cxx_werror_flag"
17571                          || test ! -s conftest.err'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; } &&
17577          { ac_try='test -s conftest$ac_exeext'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; }; then
17583   ac_cv_func_dlopen=yes
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 ac_cv_func_dlopen=no
17589 fi
17590 rm -f conftest.err conftest.$ac_objext \
17591       conftest$ac_exeext conftest.$ac_ext
17592 fi
17593 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17594 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17595 if test $ac_cv_func_dlopen = yes; then
17596   lt_cv_dlopen="dlopen"
17597 else
17598   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17599 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17600 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   ac_check_lib_save_LIBS=$LIBS
17604 LIBS="-ldl  $LIBS"
17605 cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611
17612 /* Override any gcc2 internal prototype to avoid an error.  */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 /* We use char because int might match the return type of a gcc2
17617    builtin and then its argument prototype would still apply.  */
17618 char dlopen ();
17619 int
17620 main ()
17621 {
17622 dlopen ();
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629   (eval $ac_link) 2>conftest.er1
17630   ac_status=$?
17631   grep -v '^ *+' conftest.er1 >conftest.err
17632   rm -f conftest.er1
17633   cat conftest.err >&5
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); } &&
17636          { ac_try='test -z "$ac_cxx_werror_flag"
17637                          || test ! -s conftest.err'
17638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639   (eval $ac_try) 2>&5
17640   ac_status=$?
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); }; } &&
17643          { ac_try='test -s conftest$ac_exeext'
17644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645   (eval $ac_try) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; }; then
17649   ac_cv_lib_dl_dlopen=yes
17650 else
17651   echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17653
17654 ac_cv_lib_dl_dlopen=no
17655 fi
17656 rm -f conftest.err conftest.$ac_objext \
17657       conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17659 fi
17660 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17662 if test $ac_cv_lib_dl_dlopen = yes; then
17663   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17664 else
17665   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17666 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17667 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17668   echo $ECHO_N "(cached) $ECHO_C" >&6
17669 else
17670   ac_check_lib_save_LIBS=$LIBS
17671 LIBS="-lsvld  $LIBS"
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678
17679 /* Override any gcc2 internal prototype to avoid an error.  */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 /* We use char because int might match the return type of a gcc2
17684    builtin and then its argument prototype would still apply.  */
17685 char dlopen ();
17686 int
17687 main ()
17688 {
17689 dlopen ();
17690   ;
17691   return 0;
17692 }
17693 _ACEOF
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696   (eval $ac_link) 2>conftest.er1
17697   ac_status=$?
17698   grep -v '^ *+' conftest.er1 >conftest.err
17699   rm -f conftest.er1
17700   cat conftest.err >&5
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); } &&
17703          { ac_try='test -z "$ac_cxx_werror_flag"
17704                          || test ! -s conftest.err'
17705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706   (eval $ac_try) 2>&5
17707   ac_status=$?
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); }; } &&
17710          { ac_try='test -s conftest$ac_exeext'
17711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712   (eval $ac_try) 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; }; then
17716   ac_cv_lib_svld_dlopen=yes
17717 else
17718   echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17720
17721 ac_cv_lib_svld_dlopen=no
17722 fi
17723 rm -f conftest.err conftest.$ac_objext \
17724       conftest$ac_exeext conftest.$ac_ext
17725 LIBS=$ac_check_lib_save_LIBS
17726 fi
17727 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17728 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17729 if test $ac_cv_lib_svld_dlopen = yes; then
17730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17731 else
17732   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17733 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17734 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737   ac_check_lib_save_LIBS=$LIBS
17738 LIBS="-ldld  $LIBS"
17739 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h.  */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h.  */
17745
17746 /* Override any gcc2 internal prototype to avoid an error.  */
17747 #ifdef __cplusplus
17748 extern "C"
17749 #endif
17750 /* We use char because int might match the return type of a gcc2
17751    builtin and then its argument prototype would still apply.  */
17752 char dld_link ();
17753 int
17754 main ()
17755 {
17756 dld_link ();
17757   ;
17758   return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763   (eval $ac_link) 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_cxx_werror_flag"
17771                          || test ! -s conftest.err'
17772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773   (eval $ac_try) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; } &&
17777          { ac_try='test -s conftest$ac_exeext'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   ac_cv_lib_dld_dld_link=yes
17784 else
17785   echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 ac_cv_lib_dld_dld_link=no
17789 fi
17790 rm -f conftest.err conftest.$ac_objext \
17791       conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17793 fi
17794 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17795 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17796 if test $ac_cv_lib_dld_dld_link = yes; then
17797   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17798 fi
17799
17800
17801 fi
17802
17803
17804 fi
17805
17806
17807 fi
17808
17809
17810 fi
17811
17812
17813 fi
17814
17815     ;;
17816   esac
17817
17818   if test "x$lt_cv_dlopen" != xno; then
17819     enable_dlopen=yes
17820   else
17821     enable_dlopen=no
17822   fi
17823
17824   case $lt_cv_dlopen in
17825   dlopen)
17826     save_CPPFLAGS="$CPPFLAGS"
17827     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17828
17829     save_LDFLAGS="$LDFLAGS"
17830     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17831
17832     save_LIBS="$LIBS"
17833     LIBS="$lt_cv_dlopen_libs $LIBS"
17834
17835     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17836 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17837 if test "${lt_cv_dlopen_self+set}" = set; then
17838   echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840           if test "$cross_compiling" = yes; then :
17841   lt_cv_dlopen_self=cross
17842 else
17843   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17844   lt_status=$lt_dlunknown
17845   cat > conftest.$ac_ext <<EOF
17846 #line 17846 "configure"
17847 #include "confdefs.h"
17848
17849 #if HAVE_DLFCN_H
17850 #include <dlfcn.h>
17851 #endif
17852
17853 #include <stdio.h>
17854
17855 #ifdef RTLD_GLOBAL
17856 #  define LT_DLGLOBAL           RTLD_GLOBAL
17857 #else
17858 #  ifdef DL_GLOBAL
17859 #    define LT_DLGLOBAL         DL_GLOBAL
17860 #  else
17861 #    define LT_DLGLOBAL         0
17862 #  endif
17863 #endif
17864
17865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17866    find out it does not work in some platform. */
17867 #ifndef LT_DLLAZY_OR_NOW
17868 #  ifdef RTLD_LAZY
17869 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17870 #  else
17871 #    ifdef DL_LAZY
17872 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17873 #    else
17874 #      ifdef RTLD_NOW
17875 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17876 #      else
17877 #        ifdef DL_NOW
17878 #          define LT_DLLAZY_OR_NOW      DL_NOW
17879 #        else
17880 #          define LT_DLLAZY_OR_NOW      0
17881 #        endif
17882 #      endif
17883 #    endif
17884 #  endif
17885 #endif
17886
17887 #ifdef __cplusplus
17888 extern "C" void exit (int);
17889 #endif
17890
17891 void fnord() { int i=42;}
17892 int main ()
17893 {
17894   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17895   int status = $lt_dlunknown;
17896
17897   if (self)
17898     {
17899       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17900       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17901       /* dlclose (self); */
17902     }
17903
17904     exit (status);
17905 }
17906 EOF
17907   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908   (eval $ac_link) 2>&5
17909   ac_status=$?
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17912     (./conftest; exit; ) 2>/dev/null
17913     lt_status=$?
17914     case x$lt_status in
17915       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17916       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17917       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17918     esac
17919   else :
17920     # compilation failed
17921     lt_cv_dlopen_self=no
17922   fi
17923 fi
17924 rm -fr conftest*
17925
17926
17927 fi
17928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17929 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17930
17931     if test "x$lt_cv_dlopen_self" = xyes; then
17932       LDFLAGS="$LDFLAGS $link_static_flag"
17933       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17934 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17935 if test "${lt_cv_dlopen_self_static+set}" = set; then
17936   echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938           if test "$cross_compiling" = yes; then :
17939   lt_cv_dlopen_self_static=cross
17940 else
17941   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17942   lt_status=$lt_dlunknown
17943   cat > conftest.$ac_ext <<EOF
17944 #line 17944 "configure"
17945 #include "confdefs.h"
17946
17947 #if HAVE_DLFCN_H
17948 #include <dlfcn.h>
17949 #endif
17950
17951 #include <stdio.h>
17952
17953 #ifdef RTLD_GLOBAL
17954 #  define LT_DLGLOBAL           RTLD_GLOBAL
17955 #else
17956 #  ifdef DL_GLOBAL
17957 #    define LT_DLGLOBAL         DL_GLOBAL
17958 #  else
17959 #    define LT_DLGLOBAL         0
17960 #  endif
17961 #endif
17962
17963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17964    find out it does not work in some platform. */
17965 #ifndef LT_DLLAZY_OR_NOW
17966 #  ifdef RTLD_LAZY
17967 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17968 #  else
17969 #    ifdef DL_LAZY
17970 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17971 #    else
17972 #      ifdef RTLD_NOW
17973 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17974 #      else
17975 #        ifdef DL_NOW
17976 #          define LT_DLLAZY_OR_NOW      DL_NOW
17977 #        else
17978 #          define LT_DLLAZY_OR_NOW      0
17979 #        endif
17980 #      endif
17981 #    endif
17982 #  endif
17983 #endif
17984
17985 #ifdef __cplusplus
17986 extern "C" void exit (int);
17987 #endif
17988
17989 void fnord() { int i=42;}
17990 int main ()
17991 {
17992   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17993   int status = $lt_dlunknown;
17994
17995   if (self)
17996     {
17997       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17998       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999       /* dlclose (self); */
18000     }
18001
18002     exit (status);
18003 }
18004 EOF
18005   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006   (eval $ac_link) 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18010     (./conftest; exit; ) 2>/dev/null
18011     lt_status=$?
18012     case x$lt_status in
18013       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18016     esac
18017   else :
18018     # compilation failed
18019     lt_cv_dlopen_self_static=no
18020   fi
18021 fi
18022 rm -fr conftest*
18023
18024
18025 fi
18026 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18027 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18028     fi
18029
18030     CPPFLAGS="$save_CPPFLAGS"
18031     LDFLAGS="$save_LDFLAGS"
18032     LIBS="$save_LIBS"
18033     ;;
18034   esac
18035
18036   case $lt_cv_dlopen_self in
18037   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038   *) enable_dlopen_self=unknown ;;
18039   esac
18040
18041   case $lt_cv_dlopen_self_static in
18042   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043   *) enable_dlopen_self_static=unknown ;;
18044   esac
18045 fi
18046
18047
18048 # The else clause should only fire when bootstrapping the
18049 # libtool distribution, otherwise you forgot to ship ltmain.sh
18050 # with your package, and you will get complaints that there are
18051 # no rules to generate ltmain.sh.
18052 if test -f "$ltmain"; then
18053   # See if we are running on zsh, and set the options which allow our commands through
18054   # without removal of \ escapes.
18055   if test -n "${ZSH_VERSION+set}" ; then
18056     setopt NO_GLOB_SUBST
18057   fi
18058   # Now quote all the things that may contain metacharacters while being
18059   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18060   # variables and quote the copies for generation of the libtool script.
18061   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18062     SED SHELL STRIP \
18063     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18064     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18065     deplibs_check_method reload_flag reload_cmds need_locks \
18066     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18067     lt_cv_sys_global_symbol_to_c_name_address \
18068     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18069     old_postinstall_cmds old_postuninstall_cmds \
18070     compiler_CXX \
18071     CC_CXX \
18072     LD_CXX \
18073     lt_prog_compiler_wl_CXX \
18074     lt_prog_compiler_pic_CXX \
18075     lt_prog_compiler_static_CXX \
18076     lt_prog_compiler_no_builtin_flag_CXX \
18077     export_dynamic_flag_spec_CXX \
18078     thread_safe_flag_spec_CXX \
18079     whole_archive_flag_spec_CXX \
18080     enable_shared_with_static_runtimes_CXX \
18081     old_archive_cmds_CXX \
18082     old_archive_from_new_cmds_CXX \
18083     predep_objects_CXX \
18084     postdep_objects_CXX \
18085     predeps_CXX \
18086     postdeps_CXX \
18087     compiler_lib_search_path_CXX \
18088     archive_cmds_CXX \
18089     archive_expsym_cmds_CXX \
18090     postinstall_cmds_CXX \
18091     postuninstall_cmds_CXX \
18092     old_archive_from_expsyms_cmds_CXX \
18093     allow_undefined_flag_CXX \
18094     no_undefined_flag_CXX \
18095     export_symbols_cmds_CXX \
18096     hardcode_libdir_flag_spec_CXX \
18097     hardcode_libdir_flag_spec_ld_CXX \
18098     hardcode_libdir_separator_CXX \
18099     hardcode_automatic_CXX \
18100     module_cmds_CXX \
18101     module_expsym_cmds_CXX \
18102     lt_cv_prog_compiler_c_o_CXX \
18103     exclude_expsyms_CXX \
18104     include_expsyms_CXX; do
18105
18106     case $var in
18107     old_archive_cmds_CXX | \
18108     old_archive_from_new_cmds_CXX | \
18109     archive_cmds_CXX | \
18110     archive_expsym_cmds_CXX | \
18111     module_cmds_CXX | \
18112     module_expsym_cmds_CXX | \
18113     old_archive_from_expsyms_cmds_CXX | \
18114     export_symbols_cmds_CXX | \
18115     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18116     postinstall_cmds | postuninstall_cmds | \
18117     old_postinstall_cmds | old_postuninstall_cmds | \
18118     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18119       # Double-quote double-evaled strings.
18120       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18121       ;;
18122     *)
18123       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18124       ;;
18125     esac
18126   done
18127
18128   case $lt_echo in
18129   *'\$0 --fallback-echo"')
18130     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18131     ;;
18132   esac
18133
18134 cfgfile="$ofile"
18135
18136   cat <<__EOF__ >> "$cfgfile"
18137 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18138
18139 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18140
18141 # Shell to use when invoking shell scripts.
18142 SHELL=$lt_SHELL
18143
18144 # Whether or not to build shared libraries.
18145 build_libtool_libs=$enable_shared
18146
18147 # Whether or not to build static libraries.
18148 build_old_libs=$enable_static
18149
18150 # Whether or not to add -lc for building shared libraries.
18151 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18152
18153 # Whether or not to disallow shared libs when runtime libs are static
18154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18155
18156 # Whether or not to optimize for fast installation.
18157 fast_install=$enable_fast_install
18158
18159 # The host system.
18160 host_alias=$host_alias
18161 host=$host
18162
18163 # An echo program that does not interpret backslashes.
18164 echo=$lt_echo
18165
18166 # The archiver.
18167 AR=$lt_AR
18168 AR_FLAGS=$lt_AR_FLAGS
18169
18170 # A C compiler.
18171 LTCC=$lt_LTCC
18172
18173 # A language-specific compiler.
18174 CC=$lt_compiler_CXX
18175
18176 # Is the compiler the GNU C compiler?
18177 with_gcc=$GCC_CXX
18178
18179 # An ERE matcher.
18180 EGREP=$lt_EGREP
18181
18182 # The linker used to build libraries.
18183 LD=$lt_LD_CXX
18184
18185 # Whether we need hard or soft links.
18186 LN_S=$lt_LN_S
18187
18188 # A BSD-compatible nm program.
18189 NM=$lt_NM
18190
18191 # A symbol stripping program
18192 STRIP=$lt_STRIP
18193
18194 # Used to examine libraries when file_magic_cmd begins "file"
18195 MAGIC_CMD=$MAGIC_CMD
18196
18197 # Used on cygwin: DLL creation program.
18198 DLLTOOL="$DLLTOOL"
18199
18200 # Used on cygwin: object dumper.
18201 OBJDUMP="$OBJDUMP"
18202
18203 # Used on cygwin: assembler.
18204 AS="$AS"
18205
18206 # The name of the directory that contains temporary libtool files.
18207 objdir=$objdir
18208
18209 # How to create reloadable object files.
18210 reload_flag=$lt_reload_flag
18211 reload_cmds=$lt_reload_cmds
18212
18213 # How to pass a linker flag through the compiler.
18214 wl=$lt_lt_prog_compiler_wl_CXX
18215
18216 # Object file suffix (normally "o").
18217 objext="$ac_objext"
18218
18219 # Old archive suffix (normally "a").
18220 libext="$libext"
18221
18222 # Shared library suffix (normally ".so").
18223 shrext_cmds='$shrext_cmds'
18224
18225 # Executable file suffix (normally "").
18226 exeext="$exeext"
18227
18228 # Additional compiler flags for building library objects.
18229 pic_flag=$lt_lt_prog_compiler_pic_CXX
18230 pic_mode=$pic_mode
18231
18232 # What is the maximum length of a command?
18233 max_cmd_len=$lt_cv_sys_max_cmd_len
18234
18235 # Does compiler simultaneously support -c and -o options?
18236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18237
18238 # Must we lock files when doing compilation ?
18239 need_locks=$lt_need_locks
18240
18241 # Do we need the lib prefix for modules?
18242 need_lib_prefix=$need_lib_prefix
18243
18244 # Do we need a version for libraries?
18245 need_version=$need_version
18246
18247 # Whether dlopen is supported.
18248 dlopen_support=$enable_dlopen
18249
18250 # Whether dlopen of programs is supported.
18251 dlopen_self=$enable_dlopen_self
18252
18253 # Whether dlopen of statically linked programs is supported.
18254 dlopen_self_static=$enable_dlopen_self_static
18255
18256 # Compiler flag to prevent dynamic linking.
18257 link_static_flag=$lt_lt_prog_compiler_static_CXX
18258
18259 # Compiler flag to turn off builtin functions.
18260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18261
18262 # Compiler flag to allow reflexive dlopens.
18263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18264
18265 # Compiler flag to generate shared objects directly from archives.
18266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18267
18268 # Compiler flag to generate thread-safe objects.
18269 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18270
18271 # Library versioning type.
18272 version_type=$version_type
18273
18274 # Format of library name prefix.
18275 libname_spec=$lt_libname_spec
18276
18277 # List of archive names.  First name is the real one, the rest are links.
18278 # The last name is the one that the linker finds with -lNAME.
18279 library_names_spec=$lt_library_names_spec
18280
18281 # The coded name of the library, if different from the real name.
18282 soname_spec=$lt_soname_spec
18283
18284 # Commands used to build and install an old-style archive.
18285 RANLIB=$lt_RANLIB
18286 old_archive_cmds=$lt_old_archive_cmds_CXX
18287 old_postinstall_cmds=$lt_old_postinstall_cmds
18288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289
18290 # Create an old-style archive from a shared archive.
18291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18292
18293 # Create a temporary old-style archive to link instead of a shared archive.
18294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18295
18296 # Commands used to build and install a shared archive.
18297 archive_cmds=$lt_archive_cmds_CXX
18298 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18299 postinstall_cmds=$lt_postinstall_cmds
18300 postuninstall_cmds=$lt_postuninstall_cmds
18301
18302 # Commands used to build a loadable module (assumed same as above if empty)
18303 module_cmds=$lt_module_cmds_CXX
18304 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18305
18306 # Commands to strip libraries.
18307 old_striplib=$lt_old_striplib
18308 striplib=$lt_striplib
18309
18310 # Dependencies to place before the objects being linked to create a
18311 # shared library.
18312 predep_objects=$lt_predep_objects_CXX
18313
18314 # Dependencies to place after the objects being linked to create a
18315 # shared library.
18316 postdep_objects=$lt_postdep_objects_CXX
18317
18318 # Dependencies to place before the objects being linked to create a
18319 # shared library.
18320 predeps=$lt_predeps_CXX
18321
18322 # Dependencies to place after the objects being linked to create a
18323 # shared library.
18324 postdeps=$lt_postdeps_CXX
18325
18326 # The library search path used internally by the compiler when linking
18327 # a shared library.
18328 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18329
18330 # Method to check whether dependent libraries are shared objects.
18331 deplibs_check_method=$lt_deplibs_check_method
18332
18333 # Command to use when deplibs_check_method == file_magic.
18334 file_magic_cmd=$lt_file_magic_cmd
18335
18336 # Flag that allows shared libraries with undefined symbols to be built.
18337 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18338
18339 # Flag that forces no undefined symbols.
18340 no_undefined_flag=$lt_no_undefined_flag_CXX
18341
18342 # Commands used to finish a libtool library installation in a directory.
18343 finish_cmds=$lt_finish_cmds
18344
18345 # Same as above, but a single script fragment to be evaled but not shown.
18346 finish_eval=$lt_finish_eval
18347
18348 # Take the output of nm and produce a listing of raw symbols and C names.
18349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18350
18351 # Transform the output of nm in a proper C declaration
18352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18353
18354 # Transform the output of nm in a C name address pair
18355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18356
18357 # This is the shared library runtime path variable.
18358 runpath_var=$runpath_var
18359
18360 # This is the shared library path variable.
18361 shlibpath_var=$shlibpath_var
18362
18363 # Is shlibpath searched before the hard-coded library search path?
18364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18365
18366 # How to hardcode a shared library path into an executable.
18367 hardcode_action=$hardcode_action_CXX
18368
18369 # Whether we should hardcode library paths into libraries.
18370 hardcode_into_libs=$hardcode_into_libs
18371
18372 # Flag to hardcode \$libdir into a binary during linking.
18373 # This must work even if \$libdir does not exist.
18374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18375
18376 # If ld is used when linking, flag to hardcode \$libdir into
18377 # a binary during linking. This must work even if \$libdir does
18378 # not exist.
18379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18380
18381 # Whether we need a single -rpath flag with a separated argument.
18382 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18383
18384 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18385 # resulting binary.
18386 hardcode_direct=$hardcode_direct_CXX
18387
18388 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18389 # resulting binary.
18390 hardcode_minus_L=$hardcode_minus_L_CXX
18391
18392 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18393 # the resulting binary.
18394 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18395
18396 # Set to yes if building a shared library automatically hardcodes DIR into the library
18397 # and all subsequent libraries and executables linked against it.
18398 hardcode_automatic=$hardcode_automatic_CXX
18399
18400 # Variables whose values should be saved in libtool wrapper scripts and
18401 # restored at relink time.
18402 variables_saved_for_relink="$variables_saved_for_relink"
18403
18404 # Whether libtool must link a program against all its dependency libraries.
18405 link_all_deplibs=$link_all_deplibs_CXX
18406
18407 # Compile-time system search path for libraries
18408 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18409
18410 # Run-time system search path for libraries
18411 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18412
18413 # Fix the shell variable \$srcfile for the compiler.
18414 fix_srcfile_path="$fix_srcfile_path_CXX"
18415
18416 # Set to yes if exported symbols are required.
18417 always_export_symbols=$always_export_symbols_CXX
18418
18419 # The commands to list exported symbols.
18420 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18421
18422 # The commands to extract the exported symbol list from a shared archive.
18423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18424
18425 # Symbols that should not be listed in the preloaded symbols.
18426 exclude_expsyms=$lt_exclude_expsyms_CXX
18427
18428 # Symbols that must always be exported.
18429 include_expsyms=$lt_include_expsyms_CXX
18430
18431 # ### END LIBTOOL TAG CONFIG: $tagname
18432
18433 __EOF__
18434
18435
18436 else
18437   # If there is no Makefile yet, we rely on a make rule to execute
18438   # `config.status --recheck' to rerun these tests and create the
18439   # libtool script then.
18440   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18441   if test -f "$ltmain_in"; then
18442     test -f Makefile && make "$ltmain"
18443   fi
18444 fi
18445
18446
18447 ac_ext=c
18448 ac_cpp='$CPP $CPPFLAGS'
18449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452
18453 CC=$lt_save_CC
18454 LDCXX=$LD
18455 LD=$lt_save_LD
18456 GCC=$lt_save_GCC
18457 with_gnu_ldcxx=$with_gnu_ld
18458 with_gnu_ld=$lt_save_with_gnu_ld
18459 lt_cv_path_LDCXX=$lt_cv_path_LD
18460 lt_cv_path_LD=$lt_save_path_LD
18461 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18462 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18463
18464         else
18465           tagname=""
18466         fi
18467         ;;
18468
18469       F77)
18470         if test -n "$F77" && test "X$F77" != "Xno"; then
18471
18472 ac_ext=f
18473 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18474 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18476
18477
18478 archive_cmds_need_lc_F77=no
18479 allow_undefined_flag_F77=
18480 always_export_symbols_F77=no
18481 archive_expsym_cmds_F77=
18482 export_dynamic_flag_spec_F77=
18483 hardcode_direct_F77=no
18484 hardcode_libdir_flag_spec_F77=
18485 hardcode_libdir_flag_spec_ld_F77=
18486 hardcode_libdir_separator_F77=
18487 hardcode_minus_L_F77=no
18488 hardcode_automatic_F77=no
18489 module_cmds_F77=
18490 module_expsym_cmds_F77=
18491 link_all_deplibs_F77=unknown
18492 old_archive_cmds_F77=$old_archive_cmds
18493 no_undefined_flag_F77=
18494 whole_archive_flag_spec_F77=
18495 enable_shared_with_static_runtimes_F77=no
18496
18497 # Source file extension for f77 test sources.
18498 ac_ext=f
18499
18500 # Object file extension for compiled f77 test sources.
18501 objext=o
18502 objext_F77=$objext
18503
18504 # Code to be used in simple compile tests
18505 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18506
18507 # Code to be used in simple link tests
18508 lt_simple_link_test_code="      program t\n      end\n"
18509
18510 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18511
18512 # If no C compiler was specified, use CC.
18513 LTCC=${LTCC-"$CC"}
18514
18515 # Allow CC to be a program name with arguments.
18516 compiler=$CC
18517
18518
18519 # Allow CC to be a program name with arguments.
18520 lt_save_CC="$CC"
18521 CC=${F77-"f77"}
18522 compiler=$CC
18523 compiler_F77=$CC
18524 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18525
18526 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18527 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18528 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18529 echo "${ECHO_T}$can_build_shared" >&6
18530
18531 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18532 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18533 test "$can_build_shared" = "no" && enable_shared=no
18534
18535 # On AIX, shared libraries and static libraries use the same namespace, and
18536 # are all built from PIC.
18537 case "$host_os" in
18538 aix3*)
18539   test "$enable_shared" = yes && enable_static=no
18540   if test -n "$RANLIB"; then
18541     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18542     postinstall_cmds='$RANLIB $lib'
18543   fi
18544   ;;
18545 aix4* | aix5*)
18546   test "$enable_shared" = yes && enable_static=no
18547   ;;
18548 esac
18549 echo "$as_me:$LINENO: result: $enable_shared" >&5
18550 echo "${ECHO_T}$enable_shared" >&6
18551
18552 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18553 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18554 # Make sure either enable_shared or enable_static is yes.
18555 test "$enable_shared" = yes || enable_static=yes
18556 echo "$as_me:$LINENO: result: $enable_static" >&5
18557 echo "${ECHO_T}$enable_static" >&6
18558
18559 test "$ld_shlibs_F77" = no && can_build_shared=no
18560
18561 GCC_F77="$G77"
18562 LD_F77="$LD"
18563
18564 lt_prog_compiler_wl_F77=
18565 lt_prog_compiler_pic_F77=
18566 lt_prog_compiler_static_F77=
18567
18568 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18570
18571   if test "$GCC" = yes; then
18572     lt_prog_compiler_wl_F77='-Wl,'
18573     lt_prog_compiler_static_F77='-static'
18574
18575     case $host_os in
18576       aix*)
18577       # All AIX code is PIC.
18578       if test "$host_cpu" = ia64; then
18579         # AIX 5 now supports IA64 processor
18580         lt_prog_compiler_static_F77='-Bstatic'
18581       fi
18582       ;;
18583
18584     amigaos*)
18585       # FIXME: we need at least 68020 code to build shared libraries, but
18586       # adding the `-m68020' flag to GCC prevents building anything better,
18587       # like `-m68040'.
18588       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18589       ;;
18590
18591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18592       # PIC is the default for these OSes.
18593       ;;
18594
18595     mingw* | pw32* | os2*)
18596       # This hack is so that the source file can tell whether it is being
18597       # built for inclusion in a dll (and should export symbols for example).
18598       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18599       ;;
18600
18601     darwin* | rhapsody*)
18602       # PIC is the default on this platform
18603       # Common symbols not allowed in MH_DYLIB files
18604       lt_prog_compiler_pic_F77='-fno-common'
18605       ;;
18606
18607     msdosdjgpp*)
18608       # Just because we use GCC doesn't mean we suddenly get shared libraries
18609       # on systems that don't support them.
18610       lt_prog_compiler_can_build_shared_F77=no
18611       enable_shared=no
18612       ;;
18613
18614     sysv4*MP*)
18615       if test -d /usr/nec; then
18616         lt_prog_compiler_pic_F77=-Kconform_pic
18617       fi
18618       ;;
18619
18620     hpux*)
18621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18622       # not for PA HP-UX.
18623       case "$host_cpu" in
18624       hppa*64*|ia64*)
18625         # +Z the default
18626         ;;
18627       *)
18628         lt_prog_compiler_pic_F77='-fPIC'
18629         ;;
18630       esac
18631       ;;
18632
18633     *)
18634       lt_prog_compiler_pic_F77='-fPIC'
18635       ;;
18636     esac
18637   else
18638     # PORTME Check for flag to pass linker flags through the system compiler.
18639     case $host_os in
18640     aix*)
18641       lt_prog_compiler_wl_F77='-Wl,'
18642       if test "$host_cpu" = ia64; then
18643         # AIX 5 now supports IA64 processor
18644         lt_prog_compiler_static_F77='-Bstatic'
18645       else
18646         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18647       fi
18648       ;;
18649       darwin*)
18650         # PIC is the default on this platform
18651         # Common symbols not allowed in MH_DYLIB files
18652        case "$cc_basename" in
18653          xlc*)
18654          lt_prog_compiler_pic_F77='-qnocommon'
18655          lt_prog_compiler_wl_F77='-Wl,'
18656          ;;
18657        esac
18658        ;;
18659
18660     mingw* | pw32* | os2*)
18661       # This hack is so that the source file can tell whether it is being
18662       # built for inclusion in a dll (and should export symbols for example).
18663       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18664       ;;
18665
18666     hpux9* | hpux10* | hpux11*)
18667       lt_prog_compiler_wl_F77='-Wl,'
18668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18669       # not for PA HP-UX.
18670       case "$host_cpu" in
18671       hppa*64*|ia64*)
18672         # +Z the default
18673         ;;
18674       *)
18675         lt_prog_compiler_pic_F77='+Z'
18676         ;;
18677       esac
18678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18679       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18680       ;;
18681
18682     irix5* | irix6* | nonstopux*)
18683       lt_prog_compiler_wl_F77='-Wl,'
18684       # PIC (with -KPIC) is the default.
18685       lt_prog_compiler_static_F77='-non_shared'
18686       ;;
18687
18688     newsos6)
18689       lt_prog_compiler_pic_F77='-KPIC'
18690       lt_prog_compiler_static_F77='-Bstatic'
18691       ;;
18692
18693     linux*)
18694       case $CC in
18695       icc* | ecc*)
18696         lt_prog_compiler_wl_F77='-Wl,'
18697         lt_prog_compiler_pic_F77='-KPIC'
18698         lt_prog_compiler_static_F77='-static'
18699         ;;
18700       ccc*)
18701         lt_prog_compiler_wl_F77='-Wl,'
18702         # All Alpha code is PIC.
18703         lt_prog_compiler_static_F77='-non_shared'
18704         ;;
18705       esac
18706       ;;
18707
18708     osf3* | osf4* | osf5*)
18709       lt_prog_compiler_wl_F77='-Wl,'
18710       # All OSF/1 code is PIC.
18711       lt_prog_compiler_static_F77='-non_shared'
18712       ;;
18713
18714     sco3.2v5*)
18715       lt_prog_compiler_pic_F77='-Kpic'
18716       lt_prog_compiler_static_F77='-dn'
18717       ;;
18718
18719     solaris*)
18720       lt_prog_compiler_wl_F77='-Wl,'
18721       lt_prog_compiler_pic_F77='-KPIC'
18722       lt_prog_compiler_static_F77='-Bstatic'
18723       ;;
18724
18725     sunos4*)
18726       lt_prog_compiler_wl_F77='-Qoption ld '
18727       lt_prog_compiler_pic_F77='-PIC'
18728       lt_prog_compiler_static_F77='-Bstatic'
18729       ;;
18730
18731     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18732       lt_prog_compiler_wl_F77='-Wl,'
18733       lt_prog_compiler_pic_F77='-KPIC'
18734       lt_prog_compiler_static_F77='-Bstatic'
18735       ;;
18736
18737     sysv4*MP*)
18738       if test -d /usr/nec ;then
18739         lt_prog_compiler_pic_F77='-Kconform_pic'
18740         lt_prog_compiler_static_F77='-Bstatic'
18741       fi
18742       ;;
18743
18744     uts4*)
18745       lt_prog_compiler_pic_F77='-pic'
18746       lt_prog_compiler_static_F77='-Bstatic'
18747       ;;
18748
18749     *)
18750       lt_prog_compiler_can_build_shared_F77=no
18751       ;;
18752     esac
18753   fi
18754
18755 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18756 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18757
18758 #
18759 # Check to make sure the PIC flag actually works.
18760 #
18761 if test -n "$lt_prog_compiler_pic_F77"; then
18762
18763 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18764 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18765 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18766   echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768   lt_prog_compiler_pic_works_F77=no
18769   ac_outfile=conftest.$ac_objext
18770    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18771    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18772    # Insert the option either (1) after the last *FLAGS variable, or
18773    # (2) before a word containing "conftest.", or (3) at the end.
18774    # Note that $ac_compile itself does not contain backslashes and begins
18775    # with a dollar sign (not a hyphen), so the echo should work correctly.
18776    # The option is referenced via a variable to avoid confusing sed.
18777    lt_compile=`echo "$ac_compile" | $SED \
18778    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18780    -e 's:$: $lt_compiler_flag:'`
18781    (eval echo "\"\$as_me:18781: $lt_compile\"" >&5)
18782    (eval "$lt_compile" 2>conftest.err)
18783    ac_status=$?
18784    cat conftest.err >&5
18785    echo "$as_me:18785: \$? = $ac_status" >&5
18786    if (exit $ac_status) && test -s "$ac_outfile"; then
18787      # The compiler can only warn and ignore the option if not recognized
18788      # So say no if there are warnings
18789      if test ! -s conftest.err; then
18790        lt_prog_compiler_pic_works_F77=yes
18791      fi
18792    fi
18793    $rm conftest*
18794
18795 fi
18796 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18797 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18798
18799 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18800     case $lt_prog_compiler_pic_F77 in
18801      "" | " "*) ;;
18802      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18803      esac
18804 else
18805     lt_prog_compiler_pic_F77=
18806      lt_prog_compiler_can_build_shared_F77=no
18807 fi
18808
18809 fi
18810 case "$host_os" in
18811   # For platforms which do not support PIC, -DPIC is meaningless:
18812   *djgpp*)
18813     lt_prog_compiler_pic_F77=
18814     ;;
18815   *)
18816     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18817     ;;
18818 esac
18819
18820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18822 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18823   echo $ECHO_N "(cached) $ECHO_C" >&6
18824 else
18825   lt_cv_prog_compiler_c_o_F77=no
18826    $rm -r conftest 2>/dev/null
18827    mkdir conftest
18828    cd conftest
18829    mkdir out
18830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18831
18832    lt_compiler_flag="-o out/conftest2.$ac_objext"
18833    # Insert the option either (1) after the last *FLAGS variable, or
18834    # (2) before a word containing "conftest.", or (3) at the end.
18835    # Note that $ac_compile itself does not contain backslashes and begins
18836    # with a dollar sign (not a hyphen), so the echo should work correctly.
18837    lt_compile=`echo "$ac_compile" | $SED \
18838    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18840    -e 's:$: $lt_compiler_flag:'`
18841    (eval echo "\"\$as_me:18841: $lt_compile\"" >&5)
18842    (eval "$lt_compile" 2>out/conftest.err)
18843    ac_status=$?
18844    cat out/conftest.err >&5
18845    echo "$as_me:18845: \$? = $ac_status" >&5
18846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18847    then
18848      # The compiler can only warn and ignore the option if not recognized
18849      # So say no if there are warnings
18850      if test ! -s out/conftest.err; then
18851        lt_cv_prog_compiler_c_o_F77=yes
18852      fi
18853    fi
18854    chmod u+w .
18855    $rm conftest*
18856    # SGI C++ compiler will create directory out/ii_files/ for
18857    # template instantiation
18858    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18859    $rm out/* && rmdir out
18860    cd ..
18861    rmdir conftest
18862    $rm conftest*
18863
18864 fi
18865 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18866 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18867
18868
18869 hard_links="nottested"
18870 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18871   # do not overwrite the value of need_locks provided by the user
18872   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18873 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18874   hard_links=yes
18875   $rm conftest*
18876   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18877   touch conftest.a
18878   ln conftest.a conftest.b 2>&5 || hard_links=no
18879   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18880   echo "$as_me:$LINENO: result: $hard_links" >&5
18881 echo "${ECHO_T}$hard_links" >&6
18882   if test "$hard_links" = no; then
18883     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18884 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18885     need_locks=warn
18886   fi
18887 else
18888   need_locks=no
18889 fi
18890
18891 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18892 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18893
18894   runpath_var=
18895   allow_undefined_flag_F77=
18896   enable_shared_with_static_runtimes_F77=no
18897   archive_cmds_F77=
18898   archive_expsym_cmds_F77=
18899   old_archive_From_new_cmds_F77=
18900   old_archive_from_expsyms_cmds_F77=
18901   export_dynamic_flag_spec_F77=
18902   whole_archive_flag_spec_F77=
18903   thread_safe_flag_spec_F77=
18904   hardcode_libdir_flag_spec_F77=
18905   hardcode_libdir_flag_spec_ld_F77=
18906   hardcode_libdir_separator_F77=
18907   hardcode_direct_F77=no
18908   hardcode_minus_L_F77=no
18909   hardcode_shlibpath_var_F77=unsupported
18910   link_all_deplibs_F77=unknown
18911   hardcode_automatic_F77=no
18912   module_cmds_F77=
18913   module_expsym_cmds_F77=
18914   always_export_symbols_F77=no
18915   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18916   # include_expsyms should be a list of space-separated symbols to be *always*
18917   # included in the symbol list
18918   include_expsyms_F77=
18919   # exclude_expsyms can be an extended regexp of symbols to exclude
18920   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18921   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18922   # as well as any symbol that contains `d'.
18923   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18924   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18925   # platforms (ab)use it in PIC code, but their linkers get confused if
18926   # the symbol is explicitly referenced.  Since portable code cannot
18927   # rely on this symbol name, it's probably fine to never include it in
18928   # preloaded symbol tables.
18929   extract_expsyms_cmds=
18930
18931   case $host_os in
18932   cygwin* | mingw* | pw32*)
18933     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18934     # When not using gcc, we currently assume that we are using
18935     # Microsoft Visual C++.
18936     if test "$GCC" != yes; then
18937       with_gnu_ld=no
18938     fi
18939     ;;
18940   openbsd*)
18941     with_gnu_ld=no
18942     ;;
18943   esac
18944
18945   ld_shlibs_F77=yes
18946   if test "$with_gnu_ld" = yes; then
18947     # If archive_cmds runs LD, not CC, wlarc should be empty
18948     wlarc='${wl}'
18949
18950     # See if GNU ld supports shared libraries.
18951     case $host_os in
18952     aix3* | aix4* | aix5*)
18953       # On AIX/PPC, the GNU linker is very broken
18954       if test "$host_cpu" != ia64; then
18955         ld_shlibs_F77=no
18956         cat <<EOF 1>&2
18957
18958 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18959 *** to be unable to reliably create shared libraries on AIX.
18960 *** Therefore, libtool is disabling shared libraries support.  If you
18961 *** really care for shared libraries, you may want to modify your PATH
18962 *** so that a non-GNU linker is found, and then restart.
18963
18964 EOF
18965       fi
18966       ;;
18967
18968     amigaos*)
18969       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)'
18970       hardcode_libdir_flag_spec_F77='-L$libdir'
18971       hardcode_minus_L_F77=yes
18972
18973       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18974       # that the semantics of dynamic libraries on AmigaOS, at least up
18975       # to version 4, is to share data among multiple programs linked
18976       # with the same dynamic library.  Since this doesn't match the
18977       # behavior of shared libraries on other platforms, we can't use
18978       # them.
18979       ld_shlibs_F77=no
18980       ;;
18981
18982     beos*)
18983       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18984         allow_undefined_flag_F77=unsupported
18985         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18986         # support --undefined.  This deserves some investigation.  FIXME
18987         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988       else
18989         ld_shlibs_F77=no
18990       fi
18991       ;;
18992
18993     cygwin* | mingw* | pw32*)
18994       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18995       # as there is no search path for DLLs.
18996       hardcode_libdir_flag_spec_F77='-L$libdir'
18997       allow_undefined_flag_F77=unsupported
18998       always_export_symbols_F77=no
18999       enable_shared_with_static_runtimes_F77=yes
19000       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19001
19002       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19003         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19004         # If the export-symbols file already is a .def file (1st line
19005         # is EXPORTS), use it as is; otherwise, prepend...
19006         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19007           cp $export_symbols $output_objdir/$soname.def;
19008         else
19009           echo EXPORTS > $output_objdir/$soname.def;
19010           cat $export_symbols >> $output_objdir/$soname.def;
19011         fi~
19012         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19013       else
19014         ld_shlibs=no
19015       fi
19016       ;;
19017
19018     netbsd*)
19019       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19020         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19021         wlarc=
19022       else
19023         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19024         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19025       fi
19026       ;;
19027
19028     solaris* | sysv5*)
19029       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19030         ld_shlibs_F77=no
19031         cat <<EOF 1>&2
19032
19033 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19034 *** create shared libraries on Solaris systems.  Therefore, libtool
19035 *** is disabling shared libraries support.  We urge you to upgrade GNU
19036 *** binutils to release 2.9.1 or newer.  Another option is to modify
19037 *** your PATH or compiler configuration so that the native linker is
19038 *** used, and then restart.
19039
19040 EOF
19041       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19042         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19043         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19044       else
19045         ld_shlibs_F77=no
19046       fi
19047       ;;
19048
19049     sunos4*)
19050       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19051       wlarc=
19052       hardcode_direct_F77=yes
19053       hardcode_shlibpath_var_F77=no
19054       ;;
19055
19056   linux*)
19057     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19058         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19059         archive_cmds_F77="$tmp_archive_cmds"
19060       supports_anon_versioning=no
19061       case `$LD -v 2>/dev/null` in
19062         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19063         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19064         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19065         *\ 2.11.*) ;; # other 2.11 versions
19066         *) supports_anon_versioning=yes ;;
19067       esac
19068       if test $supports_anon_versioning = yes; then
19069         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19071 $echo "local: *; };" >> $output_objdir/$libname.ver~
19072         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19073       else
19074         archive_expsym_cmds_F77="$tmp_archive_cmds"
19075       fi
19076     else
19077       ld_shlibs_F77=no
19078     fi
19079     ;;
19080
19081     *)
19082       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19083         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19084         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19085       else
19086         ld_shlibs_F77=no
19087       fi
19088       ;;
19089     esac
19090
19091     if test "$ld_shlibs_F77" = yes; then
19092       runpath_var=LD_RUN_PATH
19093       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19094       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19095       # ancient GNU ld didn't support --whole-archive et. al.
19096       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19097         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19098       else
19099         whole_archive_flag_spec_F77=
19100       fi
19101     fi
19102   else
19103     # PORTME fill in a description of your system's linker (not GNU ld)
19104     case $host_os in
19105     aix3*)
19106       allow_undefined_flag_F77=unsupported
19107       always_export_symbols_F77=yes
19108       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'
19109       # Note: this linker hardcodes the directories in LIBPATH if there
19110       # are no directories specified by -L.
19111       hardcode_minus_L_F77=yes
19112       if test "$GCC" = yes && test -z "$link_static_flag"; then
19113         # Neither direct hardcoding nor static linking is supported with a
19114         # broken collect2.
19115         hardcode_direct_F77=unsupported
19116       fi
19117       ;;
19118
19119     aix4* | aix5*)
19120       if test "$host_cpu" = ia64; then
19121         # On IA64, the linker does run time linking by default, so we don't
19122         # have to do anything special.
19123         aix_use_runtimelinking=no
19124         exp_sym_flag='-Bexport'
19125         no_entry_flag=""
19126       else
19127         # If we're using GNU nm, then we don't want the "-C" option.
19128         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19129         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19130           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'
19131         else
19132           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'
19133         fi
19134         aix_use_runtimelinking=no
19135
19136         # Test if we are trying to use run time linking or normal
19137         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19138         # need to do runtime linking.
19139         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19140           for ld_flag in $LDFLAGS; do
19141           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19142             aix_use_runtimelinking=yes
19143             break
19144           fi
19145           done
19146         esac
19147
19148         exp_sym_flag='-bexport'
19149         no_entry_flag='-bnoentry'
19150       fi
19151
19152       # When large executables or shared objects are built, AIX ld can
19153       # have problems creating the table of contents.  If linking a library
19154       # or program results in "error TOC overflow" add -mminimal-toc to
19155       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19156       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19157
19158       archive_cmds_F77=''
19159       hardcode_direct_F77=yes
19160       hardcode_libdir_separator_F77=':'
19161       link_all_deplibs_F77=yes
19162
19163       if test "$GCC" = yes; then
19164         case $host_os in aix4.012|aix4.012.*)
19165         # We only want to do this on AIX 4.2 and lower, the check
19166         # below for broken collect2 doesn't work under 4.3+
19167           collect2name=`${CC} -print-prog-name=collect2`
19168           if test -f "$collect2name" && \
19169            strings "$collect2name" | grep resolve_lib_name >/dev/null
19170           then
19171           # We have reworked collect2
19172           hardcode_direct_F77=yes
19173           else
19174           # We have old collect2
19175           hardcode_direct_F77=unsupported
19176           # It fails to find uninstalled libraries when the uninstalled
19177           # path is not listed in the libpath.  Setting hardcode_minus_L
19178           # to unsupported forces relinking
19179           hardcode_minus_L_F77=yes
19180           hardcode_libdir_flag_spec_F77='-L$libdir'
19181           hardcode_libdir_separator_F77=
19182           fi
19183         esac
19184         shared_flag='-shared'
19185       else
19186         # not using gcc
19187         if test "$host_cpu" = ia64; then
19188         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19189         # chokes on -Wl,-G. The following line is correct:
19190           shared_flag='-G'
19191         else
19192         if test "$aix_use_runtimelinking" = yes; then
19193             shared_flag='${wl}-G'
19194           else
19195             shared_flag='${wl}-bM:SRE'
19196         fi
19197         fi
19198       fi
19199
19200       # It seems that -bexpall does not export symbols beginning with
19201       # underscore (_), so it is better to generate a list of symbols to export.
19202       always_export_symbols_F77=yes
19203       if test "$aix_use_runtimelinking" = yes; then
19204         # Warning - without using the other runtime loading flags (-brtl),
19205         # -berok will link without error, but may produce a broken library.
19206         allow_undefined_flag_F77='-berok'
19207        # Determine the default libpath from the value encoded in an empty executable.
19208        cat >conftest.$ac_ext <<_ACEOF
19209       program main
19210
19211       end
19212 _ACEOF
19213 rm -f conftest.$ac_objext conftest$ac_exeext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19215   (eval $ac_link) 2>conftest.er1
19216   ac_status=$?
19217   grep -v '^ *+' conftest.er1 >conftest.err
19218   rm -f conftest.er1
19219   cat conftest.err >&5
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } &&
19222          { ac_try='test -z "$ac_f77_werror_flag"
19223                          || test ! -s conftest.err'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; } &&
19229          { ac_try='test -s conftest$ac_exeext'
19230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231   (eval $ac_try) 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); }; }; then
19235
19236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19237 }'`
19238 # Check for a 64-bit object if we didn't find anything.
19239 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; }
19240 }'`; fi
19241 else
19242   echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245 fi
19246 rm -f conftest.err conftest.$ac_objext \
19247       conftest$ac_exeext conftest.$ac_ext
19248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19249
19250        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19251         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"
19252        else
19253         if test "$host_cpu" = ia64; then
19254           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19255           allow_undefined_flag_F77="-z nodefs"
19256           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"
19257         else
19258          # Determine the default libpath from the value encoded in an empty executable.
19259          cat >conftest.$ac_ext <<_ACEOF
19260       program main
19261
19262       end
19263 _ACEOF
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19266   (eval $ac_link) 2>conftest.er1
19267   ac_status=$?
19268   grep -v '^ *+' conftest.er1 >conftest.err
19269   rm -f conftest.er1
19270   cat conftest.err >&5
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); } &&
19273          { ac_try='test -z "$ac_f77_werror_flag"
19274                          || test ! -s conftest.err'
19275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276   (eval $ac_try) 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; } &&
19280          { ac_try='test -s conftest$ac_exeext'
19281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282   (eval $ac_try) 2>&5
19283   ac_status=$?
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); }; }; then
19286
19287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19288 }'`
19289 # Check for a 64-bit object if we didn't find anything.
19290 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; }
19291 }'`; fi
19292 else
19293   echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 fi
19297 rm -f conftest.err conftest.$ac_objext \
19298       conftest$ac_exeext conftest.$ac_ext
19299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19300
19301          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19302           # Warning - without using the other run time loading flags,
19303           # -berok will link without error, but may produce a broken library.
19304           no_undefined_flag_F77=' ${wl}-bernotok'
19305           allow_undefined_flag_F77=' ${wl}-berok'
19306           # -bexpall does not export symbols beginning with underscore (_)
19307           always_export_symbols_F77=yes
19308           # Exported symbols can be pulled into shared objects from archives
19309           whole_archive_flag_spec_F77=' '
19310           archive_cmds_need_lc_F77=yes
19311           # This is similar to how AIX traditionally builds it's shared libraries.
19312           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'
19313         fi
19314       fi
19315       ;;
19316
19317     amigaos*)
19318       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)'
19319       hardcode_libdir_flag_spec_F77='-L$libdir'
19320       hardcode_minus_L_F77=yes
19321       # see comment about different semantics on the GNU ld section
19322       ld_shlibs_F77=no
19323       ;;
19324
19325     bsdi[45]*)
19326       export_dynamic_flag_spec_F77=-rdynamic
19327       ;;
19328
19329     cygwin* | mingw* | pw32*)
19330       # When not using gcc, we currently assume that we are using
19331       # Microsoft Visual C++.
19332       # hardcode_libdir_flag_spec is actually meaningless, as there is
19333       # no search path for DLLs.
19334       hardcode_libdir_flag_spec_F77=' '
19335       allow_undefined_flag_F77=unsupported
19336       # Tell ltmain to make .lib files, not .a files.
19337       libext=lib
19338       # Tell ltmain to make .dll files, not .so files.
19339       shrext_cmds=".dll"
19340       # FIXME: Setting linknames here is a bad hack.
19341       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19342       # The linker will automatically build a .lib file if we build a DLL.
19343       old_archive_From_new_cmds_F77='true'
19344       # FIXME: Should let the user specify the lib program.
19345       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19346       fix_srcfile_path='`cygpath -w "$srcfile"`'
19347       enable_shared_with_static_runtimes_F77=yes
19348       ;;
19349
19350     darwin* | rhapsody*)
19351       case "$host_os" in
19352         rhapsody* | darwin1.[012])
19353          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19354          ;;
19355        *) # Darwin 1.3 on
19356          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19357            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19358          else
19359            case ${MACOSX_DEPLOYMENT_TARGET} in
19360              10.[012])
19361                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19362                ;;
19363              10.*)
19364                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19365                ;;
19366            esac
19367          fi
19368          ;;
19369       esac
19370       archive_cmds_need_lc_F77=no
19371       hardcode_direct_F77=no
19372       hardcode_automatic_F77=yes
19373       hardcode_shlibpath_var_F77=unsupported
19374       whole_archive_flag_spec_F77=''
19375       link_all_deplibs_F77=yes
19376     if test "$GCC" = yes ; then
19377         output_verbose_link_cmd='echo'
19378         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19379       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19380       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19381       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}'
19382       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}'
19383     else
19384       case "$cc_basename" in
19385         xlc*)
19386          output_verbose_link_cmd='echo'
19387          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19388          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19389           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19390          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}'
19391           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}'
19392           ;;
19393        *)
19394          ld_shlibs_F77=no
19395           ;;
19396       esac
19397     fi
19398       ;;
19399
19400     dgux*)
19401       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19402       hardcode_libdir_flag_spec_F77='-L$libdir'
19403       hardcode_shlibpath_var_F77=no
19404       ;;
19405
19406     freebsd1*)
19407       ld_shlibs_F77=no
19408       ;;
19409
19410     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19411     # support.  Future versions do this automatically, but an explicit c++rt0.o
19412     # does not break anything, and helps significantly (at the cost of a little
19413     # extra space).
19414     freebsd2.2*)
19415       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19416       hardcode_libdir_flag_spec_F77='-R$libdir'
19417       hardcode_direct_F77=yes
19418       hardcode_shlibpath_var_F77=no
19419       ;;
19420
19421     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19422     freebsd2*)
19423       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19424       hardcode_direct_F77=yes
19425       hardcode_minus_L_F77=yes
19426       hardcode_shlibpath_var_F77=no
19427       ;;
19428
19429     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19430     freebsd* | kfreebsd*-gnu)
19431       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19432       hardcode_libdir_flag_spec_F77='-R$libdir'
19433       hardcode_direct_F77=yes
19434       hardcode_shlibpath_var_F77=no
19435       ;;
19436
19437     hpux9*)
19438       if test "$GCC" = yes; then
19439         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'
19440       else
19441         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'
19442       fi
19443       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19444       hardcode_libdir_separator_F77=:
19445       hardcode_direct_F77=yes
19446
19447       # hardcode_minus_L: Not really in the search PATH,
19448       # but as the default location of the library.
19449       hardcode_minus_L_F77=yes
19450       export_dynamic_flag_spec_F77='${wl}-E'
19451       ;;
19452
19453     hpux10* | hpux11*)
19454       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19455         case "$host_cpu" in
19456         hppa*64*|ia64*)
19457           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19458           ;;
19459         *)
19460           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19461           ;;
19462         esac
19463       else
19464         case "$host_cpu" in
19465         hppa*64*|ia64*)
19466           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19467           ;;
19468         *)
19469           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19470           ;;
19471         esac
19472       fi
19473       if test "$with_gnu_ld" = no; then
19474         case "$host_cpu" in
19475         hppa*64*)
19476           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19477           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19478           hardcode_libdir_separator_F77=:
19479           hardcode_direct_F77=no
19480           hardcode_shlibpath_var_F77=no
19481           ;;
19482         ia64*)
19483           hardcode_libdir_flag_spec_F77='-L$libdir'
19484           hardcode_direct_F77=no
19485           hardcode_shlibpath_var_F77=no
19486
19487           # hardcode_minus_L: Not really in the search PATH,
19488           # but as the default location of the library.
19489           hardcode_minus_L_F77=yes
19490           ;;
19491         *)
19492           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19493           hardcode_libdir_separator_F77=:
19494           hardcode_direct_F77=yes
19495           export_dynamic_flag_spec_F77='${wl}-E'
19496
19497           # hardcode_minus_L: Not really in the search PATH,
19498           # but as the default location of the library.
19499           hardcode_minus_L_F77=yes
19500           ;;
19501         esac
19502       fi
19503       ;;
19504
19505     irix5* | irix6* | nonstopux*)
19506       if test "$GCC" = yes; then
19507         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'
19508       else
19509         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'
19510         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19511       fi
19512       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19513       hardcode_libdir_separator_F77=:
19514       link_all_deplibs_F77=yes
19515       ;;
19516
19517     netbsd*)
19518       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19519         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19520       else
19521         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19522       fi
19523       hardcode_libdir_flag_spec_F77='-R$libdir'
19524       hardcode_direct_F77=yes
19525       hardcode_shlibpath_var_F77=no
19526       ;;
19527
19528     newsos6)
19529       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19530       hardcode_direct_F77=yes
19531       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19532       hardcode_libdir_separator_F77=:
19533       hardcode_shlibpath_var_F77=no
19534       ;;
19535
19536     openbsd*)
19537       hardcode_direct_F77=yes
19538       hardcode_shlibpath_var_F77=no
19539       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19540         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19541         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19542         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19543         export_dynamic_flag_spec_F77='${wl}-E'
19544       else
19545        case $host_os in
19546          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19547            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19548            hardcode_libdir_flag_spec_F77='-R$libdir'
19549            ;;
19550          *)
19551            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19552            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19553            ;;
19554        esac
19555       fi
19556       ;;
19557
19558     os2*)
19559       hardcode_libdir_flag_spec_F77='-L$libdir'
19560       hardcode_minus_L_F77=yes
19561       allow_undefined_flag_F77=unsupported
19562       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'
19563       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19564       ;;
19565
19566     osf3*)
19567       if test "$GCC" = yes; then
19568         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19569         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'
19570       else
19571         allow_undefined_flag_F77=' -expect_unresolved \*'
19572         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'
19573       fi
19574       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19575       hardcode_libdir_separator_F77=:
19576       ;;
19577
19578     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19579       if test "$GCC" = yes; then
19580         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19581         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'
19582         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19583       else
19584         allow_undefined_flag_F77=' -expect_unresolved \*'
19585         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'
19586         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~
19587         $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'
19588
19589         # Both c and cxx compiler support -rpath directly
19590         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19591       fi
19592       hardcode_libdir_separator_F77=:
19593       ;;
19594
19595     sco3.2v5*)
19596       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19597       hardcode_shlibpath_var_F77=no
19598       export_dynamic_flag_spec_F77='${wl}-Bexport'
19599       runpath_var=LD_RUN_PATH
19600       hardcode_runpath_var=yes
19601       ;;
19602
19603     solaris*)
19604       no_undefined_flag_F77=' -z text'
19605       if test "$GCC" = yes; then
19606         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19607         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19608           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19609       else
19610         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19611         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19612         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19613       fi
19614       hardcode_libdir_flag_spec_F77='-R$libdir'
19615       hardcode_shlibpath_var_F77=no
19616       case $host_os in
19617       solaris2.[0-5] | solaris2.[0-5].*) ;;
19618       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19619         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19620       esac
19621       link_all_deplibs_F77=yes
19622       ;;
19623
19624     sunos4*)
19625       if test "x$host_vendor" = xsequent; then
19626         # Use $CC to link under sequent, because it throws in some extra .o
19627         # files that make .init and .fini sections work.
19628         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19629       else
19630         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19631       fi
19632       hardcode_libdir_flag_spec_F77='-L$libdir'
19633       hardcode_direct_F77=yes
19634       hardcode_minus_L_F77=yes
19635       hardcode_shlibpath_var_F77=no
19636       ;;
19637
19638     sysv4)
19639       case $host_vendor in
19640         sni)
19641           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19642           hardcode_direct_F77=yes # is this really true???
19643         ;;
19644         siemens)
19645           ## LD is ld it makes a PLAMLIB
19646           ## CC just makes a GrossModule.
19647           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19648           reload_cmds_F77='$CC -r -o $output$reload_objs'
19649           hardcode_direct_F77=no
19650         ;;
19651         motorola)
19652           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19653           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19654         ;;
19655       esac
19656       runpath_var='LD_RUN_PATH'
19657       hardcode_shlibpath_var_F77=no
19658       ;;
19659
19660     sysv4.3*)
19661       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19662       hardcode_shlibpath_var_F77=no
19663       export_dynamic_flag_spec_F77='-Bexport'
19664       ;;
19665
19666     sysv4*MP*)
19667       if test -d /usr/nec; then
19668         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669         hardcode_shlibpath_var_F77=no
19670         runpath_var=LD_RUN_PATH
19671         hardcode_runpath_var=yes
19672         ld_shlibs_F77=yes
19673       fi
19674       ;;
19675
19676     sysv4.2uw2*)
19677       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19678       hardcode_direct_F77=yes
19679       hardcode_minus_L_F77=no
19680       hardcode_shlibpath_var_F77=no
19681       hardcode_runpath_var=yes
19682       runpath_var=LD_RUN_PATH
19683       ;;
19684
19685    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19686       no_undefined_flag_F77='${wl}-z ${wl}text'
19687       if test "$GCC" = yes; then
19688         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19689       else
19690         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19691       fi
19692       runpath_var='LD_RUN_PATH'
19693       hardcode_shlibpath_var_F77=no
19694       ;;
19695
19696     sysv5*)
19697       no_undefined_flag_F77=' -z text'
19698       # $CC -shared without GNU ld will not create a library from C++
19699       # object files and a static libstdc++, better avoid it by now
19700       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19701       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19702                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19703       hardcode_libdir_flag_spec_F77=
19704       hardcode_shlibpath_var_F77=no
19705       runpath_var='LD_RUN_PATH'
19706       ;;
19707
19708     uts4*)
19709       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19710       hardcode_libdir_flag_spec_F77='-L$libdir'
19711       hardcode_shlibpath_var_F77=no
19712       ;;
19713
19714     *)
19715       ld_shlibs_F77=no
19716       ;;
19717     esac
19718   fi
19719
19720 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19721 echo "${ECHO_T}$ld_shlibs_F77" >&6
19722 test "$ld_shlibs_F77" = no && can_build_shared=no
19723
19724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19725 if test "$GCC" = yes; then
19726   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19727 fi
19728
19729 #
19730 # Do we need to explicitly link libc?
19731 #
19732 case "x$archive_cmds_need_lc_F77" in
19733 x|xyes)
19734   # Assume -lc should be added
19735   archive_cmds_need_lc_F77=yes
19736
19737   if test "$enable_shared" = yes && test "$GCC" = yes; then
19738     case $archive_cmds_F77 in
19739     *'~'*)
19740       # FIXME: we may have to deal with multi-command sequences.
19741       ;;
19742     '$CC '*)
19743       # Test whether the compiler implicitly links with -lc since on some
19744       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19745       # to ld, don't add -lc before -lgcc.
19746       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19748       $rm conftest*
19749       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19750
19751       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19752   (eval $ac_compile) 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } 2>conftest.err; then
19756         soname=conftest
19757         lib=conftest
19758         libobjs=conftest.$ac_objext
19759         deplibs=
19760         wl=$lt_prog_compiler_wl_F77
19761         compiler_flags=-v
19762         linker_flags=-v
19763         verstring=
19764         output_objdir=.
19765         libname=conftest
19766         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19767         allow_undefined_flag_F77=
19768         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19769   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }
19773         then
19774           archive_cmds_need_lc_F77=no
19775         else
19776           archive_cmds_need_lc_F77=yes
19777         fi
19778         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19779       else
19780         cat conftest.err 1>&5
19781       fi
19782       $rm conftest*
19783       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19784 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19785       ;;
19786     esac
19787   fi
19788   ;;
19789 esac
19790
19791 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19793 library_names_spec=
19794 libname_spec='lib$name'
19795 soname_spec=
19796 shrext_cmds=".so"
19797 postinstall_cmds=
19798 postuninstall_cmds=
19799 finish_cmds=
19800 finish_eval=
19801 shlibpath_var=
19802 shlibpath_overrides_runpath=unknown
19803 version_type=none
19804 dynamic_linker="$host_os ld.so"
19805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19806 if test "$GCC" = yes; then
19807   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19808   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19809     # if the path contains ";" then we assume it to be the separator
19810     # otherwise default to the standard path separator (i.e. ":") - it is
19811     # assumed that no part of a normal pathname contains ";" but that should
19812     # okay in the real world where ";" in dirpaths is itself problematic.
19813     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19814   else
19815     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19816   fi
19817 else
19818   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19819 fi
19820 need_lib_prefix=unknown
19821 hardcode_into_libs=no
19822
19823 # when you set need_version to no, make sure it does not cause -set_version
19824 # flags to be left without arguments
19825 need_version=unknown
19826
19827 case $host_os in
19828 aix3*)
19829   version_type=linux
19830   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19831   shlibpath_var=LIBPATH
19832
19833   # AIX 3 has no versioning support, so we append a major version to the name.
19834   soname_spec='${libname}${release}${shared_ext}$major'
19835   ;;
19836
19837 aix4* | aix5*)
19838   version_type=linux
19839   need_lib_prefix=no
19840   need_version=no
19841   hardcode_into_libs=yes
19842   if test "$host_cpu" = ia64; then
19843     # AIX 5 supports IA64
19844     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19845     shlibpath_var=LD_LIBRARY_PATH
19846   else
19847     # With GCC up to 2.95.x, collect2 would create an import file
19848     # for dependence libraries.  The import file would start with
19849     # the line `#! .'.  This would cause the generated library to
19850     # depend on `.', always an invalid library.  This was fixed in
19851     # development snapshots of GCC prior to 3.0.
19852     case $host_os in
19853       aix4 | aix4.[01] | aix4.[01].*)
19854       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19855            echo ' yes '
19856            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19857         :
19858       else
19859         can_build_shared=no
19860       fi
19861       ;;
19862     esac
19863     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19864     # soname into executable. Probably we can add versioning support to
19865     # collect2, so additional links can be useful in future.
19866     if test "$aix_use_runtimelinking" = yes; then
19867       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19868       # instead of lib<name>.a to let people know that these are not
19869       # typical AIX shared libraries.
19870       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19871     else
19872       # We preserve .a as extension for shared libraries through AIX4.2
19873       # and later when we are not doing run time linking.
19874       library_names_spec='${libname}${release}.a $libname.a'
19875       soname_spec='${libname}${release}${shared_ext}$major'
19876     fi
19877     shlibpath_var=LIBPATH
19878   fi
19879   ;;
19880
19881 amigaos*)
19882   library_names_spec='$libname.ixlibrary $libname.a'
19883   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19884   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'
19885   ;;
19886
19887 beos*)
19888   library_names_spec='${libname}${shared_ext}'
19889   dynamic_linker="$host_os ld.so"
19890   shlibpath_var=LIBRARY_PATH
19891   ;;
19892
19893 bsdi[45]*)
19894   version_type=linux
19895   need_version=no
19896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19897   soname_spec='${libname}${release}${shared_ext}$major'
19898   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19899   shlibpath_var=LD_LIBRARY_PATH
19900   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19901   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19902   # the default ld.so.conf also contains /usr/contrib/lib and
19903   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19904   # libtool to hard-code these into programs
19905   ;;
19906
19907 cygwin* | mingw* | pw32*)
19908   version_type=windows
19909   shrext_cmds=".dll"
19910   need_version=no
19911   need_lib_prefix=no
19912
19913   case $GCC,$host_os in
19914   yes,cygwin* | yes,mingw* | yes,pw32*)
19915     library_names_spec='$libname.dll.a'
19916     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19917     postinstall_cmds='base_file=`basename \${file}`~
19918       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19919       dldir=$destdir/`dirname \$dlpath`~
19920       test -d \$dldir || mkdir -p \$dldir~
19921       $install_prog $dir/$dlname \$dldir/$dlname'
19922     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19923       dlpath=$dir/\$dldll~
19924        $rm \$dlpath'
19925     shlibpath_overrides_runpath=yes
19926
19927     case $host_os in
19928     cygwin*)
19929       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19930       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19931       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19932       ;;
19933     mingw*)
19934       # MinGW DLLs use traditional 'lib' prefix
19935       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19936       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19937       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19938         # It is most probably a Windows format PATH printed by
19939         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19940         # path with ; separators, and with drive letters. We can handle the
19941         # drive letters (cygwin fileutils understands them), so leave them,
19942         # especially as we might pass files found there to a mingw objdump,
19943         # which wouldn't understand a cygwinified path. Ahh.
19944         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19945       else
19946         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19947       fi
19948       ;;
19949     pw32*)
19950       # pw32 DLLs use 'pw' prefix rather than 'lib'
19951       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19952       ;;
19953     esac
19954     ;;
19955
19956   *)
19957     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19958     ;;
19959   esac
19960   dynamic_linker='Win32 ld.exe'
19961   # FIXME: first we should search . and the directory the executable is in
19962   shlibpath_var=PATH
19963   ;;
19964
19965 darwin* | rhapsody*)
19966   dynamic_linker="$host_os dyld"
19967   version_type=darwin
19968   need_lib_prefix=no
19969   need_version=no
19970   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19971   soname_spec='${libname}${release}${major}$shared_ext'
19972   shlibpath_overrides_runpath=yes
19973   shlibpath_var=DYLD_LIBRARY_PATH
19974   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19975   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19976   if test "$GCC" = yes; then
19977     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"`
19978   else
19979     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19980   fi
19981   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19982   ;;
19983
19984 dgux*)
19985   version_type=linux
19986   need_lib_prefix=no
19987   need_version=no
19988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19989   soname_spec='${libname}${release}${shared_ext}$major'
19990   shlibpath_var=LD_LIBRARY_PATH
19991   ;;
19992
19993 freebsd1*)
19994   dynamic_linker=no
19995   ;;
19996
19997 kfreebsd*-gnu)
19998   version_type=linux
19999   need_lib_prefix=no
20000   need_version=no
20001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20002   soname_spec='${libname}${release}${shared_ext}$major'
20003   shlibpath_var=LD_LIBRARY_PATH
20004   shlibpath_overrides_runpath=no
20005   hardcode_into_libs=yes
20006   dynamic_linker='GNU ld.so'
20007   ;;
20008
20009 freebsd*)
20010   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20011   version_type=freebsd-$objformat
20012   case $version_type in
20013     freebsd-elf*)
20014       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20015       need_version=no
20016       need_lib_prefix=no
20017       ;;
20018     freebsd-*)
20019       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20020       need_version=yes
20021       ;;
20022   esac
20023   shlibpath_var=LD_LIBRARY_PATH
20024   case $host_os in
20025   freebsd2*)
20026     shlibpath_overrides_runpath=yes
20027     ;;
20028   freebsd3.01* | freebsdelf3.01*)
20029     shlibpath_overrides_runpath=yes
20030     hardcode_into_libs=yes
20031     ;;
20032   *) # from 3.2 on
20033     shlibpath_overrides_runpath=no
20034     hardcode_into_libs=yes
20035     ;;
20036   esac
20037   ;;
20038
20039 gnu*)
20040   version_type=linux
20041   need_lib_prefix=no
20042   need_version=no
20043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20044   soname_spec='${libname}${release}${shared_ext}$major'
20045   shlibpath_var=LD_LIBRARY_PATH
20046   hardcode_into_libs=yes
20047   ;;
20048
20049 hpux9* | hpux10* | hpux11*)
20050   # Give a soname corresponding to the major version so that dld.sl refuses to
20051   # link against other versions.
20052   version_type=sunos
20053   need_lib_prefix=no
20054   need_version=no
20055   case "$host_cpu" in
20056   ia64*)
20057     shrext_cmds='.so'
20058     hardcode_into_libs=yes
20059     dynamic_linker="$host_os dld.so"
20060     shlibpath_var=LD_LIBRARY_PATH
20061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063     soname_spec='${libname}${release}${shared_ext}$major'
20064     if test "X$HPUX_IA64_MODE" = X32; then
20065       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20066     else
20067       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20068     fi
20069     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20070     ;;
20071    hppa*64*)
20072      shrext_cmds='.sl'
20073      hardcode_into_libs=yes
20074      dynamic_linker="$host_os dld.sl"
20075      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20076      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20077      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20078      soname_spec='${libname}${release}${shared_ext}$major'
20079      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20080      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20081      ;;
20082    *)
20083     shrext_cmds='.sl'
20084     dynamic_linker="$host_os dld.sl"
20085     shlibpath_var=SHLIB_PATH
20086     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20088     soname_spec='${libname}${release}${shared_ext}$major'
20089     ;;
20090   esac
20091   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20092   postinstall_cmds='chmod 555 $lib'
20093   ;;
20094
20095 irix5* | irix6* | nonstopux*)
20096   case $host_os in
20097     nonstopux*) version_type=nonstopux ;;
20098     *)
20099         if test "$lt_cv_prog_gnu_ld" = yes; then
20100                 version_type=linux
20101         else
20102                 version_type=irix
20103         fi ;;
20104   esac
20105   need_lib_prefix=no
20106   need_version=no
20107   soname_spec='${libname}${release}${shared_ext}$major'
20108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20109   case $host_os in
20110   irix5* | nonstopux*)
20111     libsuff= shlibsuff=
20112     ;;
20113   *)
20114     case $LD in # libtool.m4 will add one of these switches to LD
20115     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20116       libsuff= shlibsuff= libmagic=32-bit;;
20117     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20118       libsuff=32 shlibsuff=N32 libmagic=N32;;
20119     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20120       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20121     *) libsuff= shlibsuff= libmagic=never-match;;
20122     esac
20123     ;;
20124   esac
20125   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20126   shlibpath_overrides_runpath=no
20127   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20128   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20129   hardcode_into_libs=yes
20130   ;;
20131
20132 # No shared lib support for Linux oldld, aout, or coff.
20133 linux*oldld* | linux*aout* | linux*coff*)
20134   dynamic_linker=no
20135   ;;
20136
20137 # This must be Linux ELF.
20138 linux*)
20139   version_type=linux
20140   need_lib_prefix=no
20141   need_version=no
20142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143   soname_spec='${libname}${release}${shared_ext}$major'
20144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20145   shlibpath_var=LD_LIBRARY_PATH
20146   shlibpath_overrides_runpath=no
20147   # This implies no fast_install, which is unacceptable.
20148   # Some rework will be needed to allow for fast_install
20149   # before this can be enabled.
20150   hardcode_into_libs=yes
20151
20152   # Append ld.so.conf contents to the search path
20153   if test -f /etc/ld.so.conf; then
20154     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20155     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20156   fi
20157
20158   # We used to test for /lib/ld.so.1 and disable shared libraries on
20159   # powerpc, because MkLinux only supported shared libraries with the
20160   # GNU dynamic linker.  Since this was broken with cross compilers,
20161   # most powerpc-linux boxes support dynamic linking these days and
20162   # people can always --disable-shared, the test was removed, and we
20163   # assume the GNU/Linux dynamic linker is in use.
20164   dynamic_linker='GNU/Linux ld.so'
20165   ;;
20166
20167 knetbsd*-gnu)
20168   version_type=linux
20169   need_lib_prefix=no
20170   need_version=no
20171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20172   soname_spec='${libname}${release}${shared_ext}$major'
20173   shlibpath_var=LD_LIBRARY_PATH
20174   shlibpath_overrides_runpath=no
20175   hardcode_into_libs=yes
20176   dynamic_linker='GNU ld.so'
20177   ;;
20178
20179 netbsd*)
20180   version_type=sunos
20181   need_lib_prefix=no
20182   need_version=no
20183   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20185     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20186     dynamic_linker='NetBSD (a.out) ld.so'
20187   else
20188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20189     soname_spec='${libname}${release}${shared_ext}$major'
20190     dynamic_linker='NetBSD ld.elf_so'
20191   fi
20192   shlibpath_var=LD_LIBRARY_PATH
20193   shlibpath_overrides_runpath=yes
20194   hardcode_into_libs=yes
20195   ;;
20196
20197 newsos6)
20198   version_type=linux
20199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200   shlibpath_var=LD_LIBRARY_PATH
20201   shlibpath_overrides_runpath=yes
20202   ;;
20203
20204 nto-qnx*)
20205   version_type=linux
20206   need_lib_prefix=no
20207   need_version=no
20208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20209   soname_spec='${libname}${release}${shared_ext}$major'
20210   shlibpath_var=LD_LIBRARY_PATH
20211   shlibpath_overrides_runpath=yes
20212   ;;
20213
20214 openbsd*)
20215   version_type=sunos
20216   need_lib_prefix=no
20217   need_version=no
20218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20219   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20220   shlibpath_var=LD_LIBRARY_PATH
20221   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20222     case $host_os in
20223       openbsd2.[89] | openbsd2.[89].*)
20224         shlibpath_overrides_runpath=no
20225         ;;
20226       *)
20227         shlibpath_overrides_runpath=yes
20228         ;;
20229       esac
20230   else
20231     shlibpath_overrides_runpath=yes
20232   fi
20233   ;;
20234
20235 os2*)
20236   libname_spec='$name'
20237   shrext_cmds=".dll"
20238   need_lib_prefix=no
20239   library_names_spec='$libname${shared_ext} $libname.a'
20240   dynamic_linker='OS/2 ld.exe'
20241   shlibpath_var=LIBPATH
20242   ;;
20243
20244 osf3* | osf4* | osf5*)
20245   version_type=osf
20246   need_lib_prefix=no
20247   need_version=no
20248   soname_spec='${libname}${release}${shared_ext}$major'
20249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250   shlibpath_var=LD_LIBRARY_PATH
20251   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20252   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20253   ;;
20254
20255 sco3.2v5*)
20256   version_type=osf
20257   soname_spec='${libname}${release}${shared_ext}$major'
20258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259   shlibpath_var=LD_LIBRARY_PATH
20260   ;;
20261
20262 solaris*)
20263   version_type=linux
20264   need_lib_prefix=no
20265   need_version=no
20266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267   soname_spec='${libname}${release}${shared_ext}$major'
20268   shlibpath_var=LD_LIBRARY_PATH
20269   shlibpath_overrides_runpath=yes
20270   hardcode_into_libs=yes
20271   # ldd complains unless libraries are executable
20272   postinstall_cmds='chmod +x $lib'
20273   ;;
20274
20275 sunos4*)
20276   version_type=sunos
20277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20278   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20279   shlibpath_var=LD_LIBRARY_PATH
20280   shlibpath_overrides_runpath=yes
20281   if test "$with_gnu_ld" = yes; then
20282     need_lib_prefix=no
20283   fi
20284   need_version=yes
20285   ;;
20286
20287 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20288   version_type=linux
20289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290   soname_spec='${libname}${release}${shared_ext}$major'
20291   shlibpath_var=LD_LIBRARY_PATH
20292   case $host_vendor in
20293     sni)
20294       shlibpath_overrides_runpath=no
20295       need_lib_prefix=no
20296       export_dynamic_flag_spec='${wl}-Blargedynsym'
20297       runpath_var=LD_RUN_PATH
20298       ;;
20299     siemens)
20300       need_lib_prefix=no
20301       ;;
20302     motorola)
20303       need_lib_prefix=no
20304       need_version=no
20305       shlibpath_overrides_runpath=no
20306       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20307       ;;
20308   esac
20309   ;;
20310
20311 sysv4*MP*)
20312   if test -d /usr/nec ;then
20313     version_type=linux
20314     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20315     soname_spec='$libname${shared_ext}.$major'
20316     shlibpath_var=LD_LIBRARY_PATH
20317   fi
20318   ;;
20319
20320 uts4*)
20321   version_type=linux
20322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20323   soname_spec='${libname}${release}${shared_ext}$major'
20324   shlibpath_var=LD_LIBRARY_PATH
20325   ;;
20326
20327 *)
20328   dynamic_linker=no
20329   ;;
20330 esac
20331 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20332 echo "${ECHO_T}$dynamic_linker" >&6
20333 test "$dynamic_linker" = no && can_build_shared=no
20334
20335 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20336 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20337 hardcode_action_F77=
20338 if test -n "$hardcode_libdir_flag_spec_F77" || \
20339    test -n "$runpath_var_F77" || \
20340    test "X$hardcode_automatic_F77" = "Xyes" ; then
20341
20342   # We can hardcode non-existant directories.
20343   if test "$hardcode_direct_F77" != no &&
20344      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20345      # have to relink, otherwise we might link with an installed library
20346      # when we should be linking with a yet-to-be-installed one
20347      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20348      test "$hardcode_minus_L_F77" != no; then
20349     # Linking always hardcodes the temporary library directory.
20350     hardcode_action_F77=relink
20351   else
20352     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20353     hardcode_action_F77=immediate
20354   fi
20355 else
20356   # We cannot hardcode anything, or else we can only hardcode existing
20357   # directories.
20358   hardcode_action_F77=unsupported
20359 fi
20360 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20361 echo "${ECHO_T}$hardcode_action_F77" >&6
20362
20363 if test "$hardcode_action_F77" = relink; then
20364   # Fast installation is not supported
20365   enable_fast_install=no
20366 elif test "$shlibpath_overrides_runpath" = yes ||
20367      test "$enable_shared" = no; then
20368   # Fast installation is not necessary
20369   enable_fast_install=needless
20370 fi
20371
20372 striplib=
20373 old_striplib=
20374 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20375 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20376 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20377   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20378   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20379   echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6
20381 else
20382 # FIXME - insert some real tests, host_os isn't really good enough
20383   case $host_os in
20384    darwin*)
20385        if test -n "$STRIP" ; then
20386          striplib="$STRIP -x"
20387          echo "$as_me:$LINENO: result: yes" >&5
20388 echo "${ECHO_T}yes" >&6
20389        else
20390   echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6
20392 fi
20393        ;;
20394    *)
20395   echo "$as_me:$LINENO: result: no" >&5
20396 echo "${ECHO_T}no" >&6
20397     ;;
20398   esac
20399 fi
20400
20401
20402
20403 # The else clause should only fire when bootstrapping the
20404 # libtool distribution, otherwise you forgot to ship ltmain.sh
20405 # with your package, and you will get complaints that there are
20406 # no rules to generate ltmain.sh.
20407 if test -f "$ltmain"; then
20408   # See if we are running on zsh, and set the options which allow our commands through
20409   # without removal of \ escapes.
20410   if test -n "${ZSH_VERSION+set}" ; then
20411     setopt NO_GLOB_SUBST
20412   fi
20413   # Now quote all the things that may contain metacharacters while being
20414   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20415   # variables and quote the copies for generation of the libtool script.
20416   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20417     SED SHELL STRIP \
20418     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20419     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20420     deplibs_check_method reload_flag reload_cmds need_locks \
20421     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20422     lt_cv_sys_global_symbol_to_c_name_address \
20423     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20424     old_postinstall_cmds old_postuninstall_cmds \
20425     compiler_F77 \
20426     CC_F77 \
20427     LD_F77 \
20428     lt_prog_compiler_wl_F77 \
20429     lt_prog_compiler_pic_F77 \
20430     lt_prog_compiler_static_F77 \
20431     lt_prog_compiler_no_builtin_flag_F77 \
20432     export_dynamic_flag_spec_F77 \
20433     thread_safe_flag_spec_F77 \
20434     whole_archive_flag_spec_F77 \
20435     enable_shared_with_static_runtimes_F77 \
20436     old_archive_cmds_F77 \
20437     old_archive_from_new_cmds_F77 \
20438     predep_objects_F77 \
20439     postdep_objects_F77 \
20440     predeps_F77 \
20441     postdeps_F77 \
20442     compiler_lib_search_path_F77 \
20443     archive_cmds_F77 \
20444     archive_expsym_cmds_F77 \
20445     postinstall_cmds_F77 \
20446     postuninstall_cmds_F77 \
20447     old_archive_from_expsyms_cmds_F77 \
20448     allow_undefined_flag_F77 \
20449     no_undefined_flag_F77 \
20450     export_symbols_cmds_F77 \
20451     hardcode_libdir_flag_spec_F77 \
20452     hardcode_libdir_flag_spec_ld_F77 \
20453     hardcode_libdir_separator_F77 \
20454     hardcode_automatic_F77 \
20455     module_cmds_F77 \
20456     module_expsym_cmds_F77 \
20457     lt_cv_prog_compiler_c_o_F77 \
20458     exclude_expsyms_F77 \
20459     include_expsyms_F77; do
20460
20461     case $var in
20462     old_archive_cmds_F77 | \
20463     old_archive_from_new_cmds_F77 | \
20464     archive_cmds_F77 | \
20465     archive_expsym_cmds_F77 | \
20466     module_cmds_F77 | \
20467     module_expsym_cmds_F77 | \
20468     old_archive_from_expsyms_cmds_F77 | \
20469     export_symbols_cmds_F77 | \
20470     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20471     postinstall_cmds | postuninstall_cmds | \
20472     old_postinstall_cmds | old_postuninstall_cmds | \
20473     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20474       # Double-quote double-evaled strings.
20475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20476       ;;
20477     *)
20478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20479       ;;
20480     esac
20481   done
20482
20483   case $lt_echo in
20484   *'\$0 --fallback-echo"')
20485     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20486     ;;
20487   esac
20488
20489 cfgfile="$ofile"
20490
20491   cat <<__EOF__ >> "$cfgfile"
20492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20493
20494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20495
20496 # Shell to use when invoking shell scripts.
20497 SHELL=$lt_SHELL
20498
20499 # Whether or not to build shared libraries.
20500 build_libtool_libs=$enable_shared
20501
20502 # Whether or not to build static libraries.
20503 build_old_libs=$enable_static
20504
20505 # Whether or not to add -lc for building shared libraries.
20506 build_libtool_need_lc=$archive_cmds_need_lc_F77
20507
20508 # Whether or not to disallow shared libs when runtime libs are static
20509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20510
20511 # Whether or not to optimize for fast installation.
20512 fast_install=$enable_fast_install
20513
20514 # The host system.
20515 host_alias=$host_alias
20516 host=$host
20517
20518 # An echo program that does not interpret backslashes.
20519 echo=$lt_echo
20520
20521 # The archiver.
20522 AR=$lt_AR
20523 AR_FLAGS=$lt_AR_FLAGS
20524
20525 # A C compiler.
20526 LTCC=$lt_LTCC
20527
20528 # A language-specific compiler.
20529 CC=$lt_compiler_F77
20530
20531 # Is the compiler the GNU C compiler?
20532 with_gcc=$GCC_F77
20533
20534 # An ERE matcher.
20535 EGREP=$lt_EGREP
20536
20537 # The linker used to build libraries.
20538 LD=$lt_LD_F77
20539
20540 # Whether we need hard or soft links.
20541 LN_S=$lt_LN_S
20542
20543 # A BSD-compatible nm program.
20544 NM=$lt_NM
20545
20546 # A symbol stripping program
20547 STRIP=$lt_STRIP
20548
20549 # Used to examine libraries when file_magic_cmd begins "file"
20550 MAGIC_CMD=$MAGIC_CMD
20551
20552 # Used on cygwin: DLL creation program.
20553 DLLTOOL="$DLLTOOL"
20554
20555 # Used on cygwin: object dumper.
20556 OBJDUMP="$OBJDUMP"
20557
20558 # Used on cygwin: assembler.
20559 AS="$AS"
20560
20561 # The name of the directory that contains temporary libtool files.
20562 objdir=$objdir
20563
20564 # How to create reloadable object files.
20565 reload_flag=$lt_reload_flag
20566 reload_cmds=$lt_reload_cmds
20567
20568 # How to pass a linker flag through the compiler.
20569 wl=$lt_lt_prog_compiler_wl_F77
20570
20571 # Object file suffix (normally "o").
20572 objext="$ac_objext"
20573
20574 # Old archive suffix (normally "a").
20575 libext="$libext"
20576
20577 # Shared library suffix (normally ".so").
20578 shrext_cmds='$shrext_cmds'
20579
20580 # Executable file suffix (normally "").
20581 exeext="$exeext"
20582
20583 # Additional compiler flags for building library objects.
20584 pic_flag=$lt_lt_prog_compiler_pic_F77
20585 pic_mode=$pic_mode
20586
20587 # What is the maximum length of a command?
20588 max_cmd_len=$lt_cv_sys_max_cmd_len
20589
20590 # Does compiler simultaneously support -c and -o options?
20591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20592
20593 # Must we lock files when doing compilation ?
20594 need_locks=$lt_need_locks
20595
20596 # Do we need the lib prefix for modules?
20597 need_lib_prefix=$need_lib_prefix
20598
20599 # Do we need a version for libraries?
20600 need_version=$need_version
20601
20602 # Whether dlopen is supported.
20603 dlopen_support=$enable_dlopen
20604
20605 # Whether dlopen of programs is supported.
20606 dlopen_self=$enable_dlopen_self
20607
20608 # Whether dlopen of statically linked programs is supported.
20609 dlopen_self_static=$enable_dlopen_self_static
20610
20611 # Compiler flag to prevent dynamic linking.
20612 link_static_flag=$lt_lt_prog_compiler_static_F77
20613
20614 # Compiler flag to turn off builtin functions.
20615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20616
20617 # Compiler flag to allow reflexive dlopens.
20618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20619
20620 # Compiler flag to generate shared objects directly from archives.
20621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20622
20623 # Compiler flag to generate thread-safe objects.
20624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20625
20626 # Library versioning type.
20627 version_type=$version_type
20628
20629 # Format of library name prefix.
20630 libname_spec=$lt_libname_spec
20631
20632 # List of archive names.  First name is the real one, the rest are links.
20633 # The last name is the one that the linker finds with -lNAME.
20634 library_names_spec=$lt_library_names_spec
20635
20636 # The coded name of the library, if different from the real name.
20637 soname_spec=$lt_soname_spec
20638
20639 # Commands used to build and install an old-style archive.
20640 RANLIB=$lt_RANLIB
20641 old_archive_cmds=$lt_old_archive_cmds_F77
20642 old_postinstall_cmds=$lt_old_postinstall_cmds
20643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20644
20645 # Create an old-style archive from a shared archive.
20646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20647
20648 # Create a temporary old-style archive to link instead of a shared archive.
20649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20650
20651 # Commands used to build and install a shared archive.
20652 archive_cmds=$lt_archive_cmds_F77
20653 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20654 postinstall_cmds=$lt_postinstall_cmds
20655 postuninstall_cmds=$lt_postuninstall_cmds
20656
20657 # Commands used to build a loadable module (assumed same as above if empty)
20658 module_cmds=$lt_module_cmds_F77
20659 module_expsym_cmds=$lt_module_expsym_cmds_F77
20660
20661 # Commands to strip libraries.
20662 old_striplib=$lt_old_striplib
20663 striplib=$lt_striplib
20664
20665 # Dependencies to place before the objects being linked to create a
20666 # shared library.
20667 predep_objects=$lt_predep_objects_F77
20668
20669 # Dependencies to place after the objects being linked to create a
20670 # shared library.
20671 postdep_objects=$lt_postdep_objects_F77
20672
20673 # Dependencies to place before the objects being linked to create a
20674 # shared library.
20675 predeps=$lt_predeps_F77
20676
20677 # Dependencies to place after the objects being linked to create a
20678 # shared library.
20679 postdeps=$lt_postdeps_F77
20680
20681 # The library search path used internally by the compiler when linking
20682 # a shared library.
20683 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20684
20685 # Method to check whether dependent libraries are shared objects.
20686 deplibs_check_method=$lt_deplibs_check_method
20687
20688 # Command to use when deplibs_check_method == file_magic.
20689 file_magic_cmd=$lt_file_magic_cmd
20690
20691 # Flag that allows shared libraries with undefined symbols to be built.
20692 allow_undefined_flag=$lt_allow_undefined_flag_F77
20693
20694 # Flag that forces no undefined symbols.
20695 no_undefined_flag=$lt_no_undefined_flag_F77
20696
20697 # Commands used to finish a libtool library installation in a directory.
20698 finish_cmds=$lt_finish_cmds
20699
20700 # Same as above, but a single script fragment to be evaled but not shown.
20701 finish_eval=$lt_finish_eval
20702
20703 # Take the output of nm and produce a listing of raw symbols and C names.
20704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20705
20706 # Transform the output of nm in a proper C declaration
20707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20708
20709 # Transform the output of nm in a C name address pair
20710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20711
20712 # This is the shared library runtime path variable.
20713 runpath_var=$runpath_var
20714
20715 # This is the shared library path variable.
20716 shlibpath_var=$shlibpath_var
20717
20718 # Is shlibpath searched before the hard-coded library search path?
20719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20720
20721 # How to hardcode a shared library path into an executable.
20722 hardcode_action=$hardcode_action_F77
20723
20724 # Whether we should hardcode library paths into libraries.
20725 hardcode_into_libs=$hardcode_into_libs
20726
20727 # Flag to hardcode \$libdir into a binary during linking.
20728 # This must work even if \$libdir does not exist.
20729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20730
20731 # If ld is used when linking, flag to hardcode \$libdir into
20732 # a binary during linking. This must work even if \$libdir does
20733 # not exist.
20734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20735
20736 # Whether we need a single -rpath flag with a separated argument.
20737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20738
20739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20740 # resulting binary.
20741 hardcode_direct=$hardcode_direct_F77
20742
20743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20744 # resulting binary.
20745 hardcode_minus_L=$hardcode_minus_L_F77
20746
20747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20748 # the resulting binary.
20749 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20750
20751 # Set to yes if building a shared library automatically hardcodes DIR into the library
20752 # and all subsequent libraries and executables linked against it.
20753 hardcode_automatic=$hardcode_automatic_F77
20754
20755 # Variables whose values should be saved in libtool wrapper scripts and
20756 # restored at relink time.
20757 variables_saved_for_relink="$variables_saved_for_relink"
20758
20759 # Whether libtool must link a program against all its dependency libraries.
20760 link_all_deplibs=$link_all_deplibs_F77
20761
20762 # Compile-time system search path for libraries
20763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20764
20765 # Run-time system search path for libraries
20766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20767
20768 # Fix the shell variable \$srcfile for the compiler.
20769 fix_srcfile_path="$fix_srcfile_path_F77"
20770
20771 # Set to yes if exported symbols are required.
20772 always_export_symbols=$always_export_symbols_F77
20773
20774 # The commands to list exported symbols.
20775 export_symbols_cmds=$lt_export_symbols_cmds_F77
20776
20777 # The commands to extract the exported symbol list from a shared archive.
20778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20779
20780 # Symbols that should not be listed in the preloaded symbols.
20781 exclude_expsyms=$lt_exclude_expsyms_F77
20782
20783 # Symbols that must always be exported.
20784 include_expsyms=$lt_include_expsyms_F77
20785
20786 # ### END LIBTOOL TAG CONFIG: $tagname
20787
20788 __EOF__
20789
20790
20791 else
20792   # If there is no Makefile yet, we rely on a make rule to execute
20793   # `config.status --recheck' to rerun these tests and create the
20794   # libtool script then.
20795   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20796   if test -f "$ltmain_in"; then
20797     test -f Makefile && make "$ltmain"
20798   fi
20799 fi
20800
20801
20802 ac_ext=c
20803 ac_cpp='$CPP $CPPFLAGS'
20804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20807
20808 CC="$lt_save_CC"
20809
20810         else
20811           tagname=""
20812         fi
20813         ;;
20814
20815       GCJ)
20816         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20817           ac_ext=c
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823
20824 # Source file extension for Java test sources.
20825 ac_ext=java
20826
20827 # Object file extension for compiled Java test sources.
20828 objext=o
20829 objext_GCJ=$objext
20830
20831 # Code to be used in simple compile tests
20832 lt_simple_compile_test_code="class foo {}\n"
20833
20834 # Code to be used in simple link tests
20835 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20836
20837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20838
20839 # If no C compiler was specified, use CC.
20840 LTCC=${LTCC-"$CC"}
20841
20842 # Allow CC to be a program name with arguments.
20843 compiler=$CC
20844
20845
20846 # Allow CC to be a program name with arguments.
20847 lt_save_CC="$CC"
20848 CC=${GCJ-"gcj"}
20849 compiler=$CC
20850 compiler_GCJ=$CC
20851
20852 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20853 archive_cmds_need_lc_GCJ=no
20854
20855
20856 lt_prog_compiler_no_builtin_flag_GCJ=
20857
20858 if test "$GCC" = yes; then
20859   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20860
20861
20862 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20863 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20864 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867   lt_cv_prog_compiler_rtti_exceptions=no
20868   ac_outfile=conftest.$ac_objext
20869    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20870    lt_compiler_flag="-fno-rtti -fno-exceptions"
20871    # Insert the option either (1) after the last *FLAGS variable, or
20872    # (2) before a word containing "conftest.", or (3) at the end.
20873    # Note that $ac_compile itself does not contain backslashes and begins
20874    # with a dollar sign (not a hyphen), so the echo should work correctly.
20875    # The option is referenced via a variable to avoid confusing sed.
20876    lt_compile=`echo "$ac_compile" | $SED \
20877    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20879    -e 's:$: $lt_compiler_flag:'`
20880    (eval echo "\"\$as_me:20880: $lt_compile\"" >&5)
20881    (eval "$lt_compile" 2>conftest.err)
20882    ac_status=$?
20883    cat conftest.err >&5
20884    echo "$as_me:20884: \$? = $ac_status" >&5
20885    if (exit $ac_status) && test -s "$ac_outfile"; then
20886      # The compiler can only warn and ignore the option if not recognized
20887      # So say no if there are warnings
20888      if test ! -s conftest.err; then
20889        lt_cv_prog_compiler_rtti_exceptions=yes
20890      fi
20891    fi
20892    $rm conftest*
20893
20894 fi
20895 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20896 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20897
20898 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20899     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20900 else
20901     :
20902 fi
20903
20904 fi
20905
20906 lt_prog_compiler_wl_GCJ=
20907 lt_prog_compiler_pic_GCJ=
20908 lt_prog_compiler_static_GCJ=
20909
20910 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20911 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20912
20913   if test "$GCC" = yes; then
20914     lt_prog_compiler_wl_GCJ='-Wl,'
20915     lt_prog_compiler_static_GCJ='-static'
20916
20917     case $host_os in
20918       aix*)
20919       # All AIX code is PIC.
20920       if test "$host_cpu" = ia64; then
20921         # AIX 5 now supports IA64 processor
20922         lt_prog_compiler_static_GCJ='-Bstatic'
20923       fi
20924       ;;
20925
20926     amigaos*)
20927       # FIXME: we need at least 68020 code to build shared libraries, but
20928       # adding the `-m68020' flag to GCC prevents building anything better,
20929       # like `-m68040'.
20930       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20931       ;;
20932
20933     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20934       # PIC is the default for these OSes.
20935       ;;
20936
20937     mingw* | pw32* | os2*)
20938       # This hack is so that the source file can tell whether it is being
20939       # built for inclusion in a dll (and should export symbols for example).
20940       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20941       ;;
20942
20943     darwin* | rhapsody*)
20944       # PIC is the default on this platform
20945       # Common symbols not allowed in MH_DYLIB files
20946       lt_prog_compiler_pic_GCJ='-fno-common'
20947       ;;
20948
20949     msdosdjgpp*)
20950       # Just because we use GCC doesn't mean we suddenly get shared libraries
20951       # on systems that don't support them.
20952       lt_prog_compiler_can_build_shared_GCJ=no
20953       enable_shared=no
20954       ;;
20955
20956     sysv4*MP*)
20957       if test -d /usr/nec; then
20958         lt_prog_compiler_pic_GCJ=-Kconform_pic
20959       fi
20960       ;;
20961
20962     hpux*)
20963       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20964       # not for PA HP-UX.
20965       case "$host_cpu" in
20966       hppa*64*|ia64*)
20967         # +Z the default
20968         ;;
20969       *)
20970         lt_prog_compiler_pic_GCJ='-fPIC'
20971         ;;
20972       esac
20973       ;;
20974
20975     *)
20976       lt_prog_compiler_pic_GCJ='-fPIC'
20977       ;;
20978     esac
20979   else
20980     # PORTME Check for flag to pass linker flags through the system compiler.
20981     case $host_os in
20982     aix*)
20983       lt_prog_compiler_wl_GCJ='-Wl,'
20984       if test "$host_cpu" = ia64; then
20985         # AIX 5 now supports IA64 processor
20986         lt_prog_compiler_static_GCJ='-Bstatic'
20987       else
20988         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20989       fi
20990       ;;
20991       darwin*)
20992         # PIC is the default on this platform
20993         # Common symbols not allowed in MH_DYLIB files
20994        case "$cc_basename" in
20995          xlc*)
20996          lt_prog_compiler_pic_GCJ='-qnocommon'
20997          lt_prog_compiler_wl_GCJ='-Wl,'
20998          ;;
20999        esac
21000        ;;
21001
21002     mingw* | pw32* | os2*)
21003       # This hack is so that the source file can tell whether it is being
21004       # built for inclusion in a dll (and should export symbols for example).
21005       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21006       ;;
21007
21008     hpux9* | hpux10* | hpux11*)
21009       lt_prog_compiler_wl_GCJ='-Wl,'
21010       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21011       # not for PA HP-UX.
21012       case "$host_cpu" in
21013       hppa*64*|ia64*)
21014         # +Z the default
21015         ;;
21016       *)
21017         lt_prog_compiler_pic_GCJ='+Z'
21018         ;;
21019       esac
21020       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21021       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21022       ;;
21023
21024     irix5* | irix6* | nonstopux*)
21025       lt_prog_compiler_wl_GCJ='-Wl,'
21026       # PIC (with -KPIC) is the default.
21027       lt_prog_compiler_static_GCJ='-non_shared'
21028       ;;
21029
21030     newsos6)
21031       lt_prog_compiler_pic_GCJ='-KPIC'
21032       lt_prog_compiler_static_GCJ='-Bstatic'
21033       ;;
21034
21035     linux*)
21036       case $CC in
21037       icc* | ecc*)
21038         lt_prog_compiler_wl_GCJ='-Wl,'
21039         lt_prog_compiler_pic_GCJ='-KPIC'
21040         lt_prog_compiler_static_GCJ='-static'
21041         ;;
21042       ccc*)
21043         lt_prog_compiler_wl_GCJ='-Wl,'
21044         # All Alpha code is PIC.
21045         lt_prog_compiler_static_GCJ='-non_shared'
21046         ;;
21047       esac
21048       ;;
21049
21050     osf3* | osf4* | osf5*)
21051       lt_prog_compiler_wl_GCJ='-Wl,'
21052       # All OSF/1 code is PIC.
21053       lt_prog_compiler_static_GCJ='-non_shared'
21054       ;;
21055
21056     sco3.2v5*)
21057       lt_prog_compiler_pic_GCJ='-Kpic'
21058       lt_prog_compiler_static_GCJ='-dn'
21059       ;;
21060
21061     solaris*)
21062       lt_prog_compiler_wl_GCJ='-Wl,'
21063       lt_prog_compiler_pic_GCJ='-KPIC'
21064       lt_prog_compiler_static_GCJ='-Bstatic'
21065       ;;
21066
21067     sunos4*)
21068       lt_prog_compiler_wl_GCJ='-Qoption ld '
21069       lt_prog_compiler_pic_GCJ='-PIC'
21070       lt_prog_compiler_static_GCJ='-Bstatic'
21071       ;;
21072
21073     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21074       lt_prog_compiler_wl_GCJ='-Wl,'
21075       lt_prog_compiler_pic_GCJ='-KPIC'
21076       lt_prog_compiler_static_GCJ='-Bstatic'
21077       ;;
21078
21079     sysv4*MP*)
21080       if test -d /usr/nec ;then
21081         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21082         lt_prog_compiler_static_GCJ='-Bstatic'
21083       fi
21084       ;;
21085
21086     uts4*)
21087       lt_prog_compiler_pic_GCJ='-pic'
21088       lt_prog_compiler_static_GCJ='-Bstatic'
21089       ;;
21090
21091     *)
21092       lt_prog_compiler_can_build_shared_GCJ=no
21093       ;;
21094     esac
21095   fi
21096
21097 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21098 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21099
21100 #
21101 # Check to make sure the PIC flag actually works.
21102 #
21103 if test -n "$lt_prog_compiler_pic_GCJ"; then
21104
21105 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21106 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21107 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21108   echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110   lt_prog_compiler_pic_works_GCJ=no
21111   ac_outfile=conftest.$ac_objext
21112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21113    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21114    # Insert the option either (1) after the last *FLAGS variable, or
21115    # (2) before a word containing "conftest.", or (3) at the end.
21116    # Note that $ac_compile itself does not contain backslashes and begins
21117    # with a dollar sign (not a hyphen), so the echo should work correctly.
21118    # The option is referenced via a variable to avoid confusing sed.
21119    lt_compile=`echo "$ac_compile" | $SED \
21120    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21122    -e 's:$: $lt_compiler_flag:'`
21123    (eval echo "\"\$as_me:21123: $lt_compile\"" >&5)
21124    (eval "$lt_compile" 2>conftest.err)
21125    ac_status=$?
21126    cat conftest.err >&5
21127    echo "$as_me:21127: \$? = $ac_status" >&5
21128    if (exit $ac_status) && test -s "$ac_outfile"; then
21129      # The compiler can only warn and ignore the option if not recognized
21130      # So say no if there are warnings
21131      if test ! -s conftest.err; then
21132        lt_prog_compiler_pic_works_GCJ=yes
21133      fi
21134    fi
21135    $rm conftest*
21136
21137 fi
21138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21139 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21140
21141 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21142     case $lt_prog_compiler_pic_GCJ in
21143      "" | " "*) ;;
21144      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21145      esac
21146 else
21147     lt_prog_compiler_pic_GCJ=
21148      lt_prog_compiler_can_build_shared_GCJ=no
21149 fi
21150
21151 fi
21152 case "$host_os" in
21153   # For platforms which do not support PIC, -DPIC is meaningless:
21154   *djgpp*)
21155     lt_prog_compiler_pic_GCJ=
21156     ;;
21157   *)
21158     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21159     ;;
21160 esac
21161
21162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21164 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21165   echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167   lt_cv_prog_compiler_c_o_GCJ=no
21168    $rm -r conftest 2>/dev/null
21169    mkdir conftest
21170    cd conftest
21171    mkdir out
21172    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21173
21174    lt_compiler_flag="-o out/conftest2.$ac_objext"
21175    # Insert the option either (1) after the last *FLAGS variable, or
21176    # (2) before a word containing "conftest.", or (3) at the end.
21177    # Note that $ac_compile itself does not contain backslashes and begins
21178    # with a dollar sign (not a hyphen), so the echo should work correctly.
21179    lt_compile=`echo "$ac_compile" | $SED \
21180    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21182    -e 's:$: $lt_compiler_flag:'`
21183    (eval echo "\"\$as_me:21183: $lt_compile\"" >&5)
21184    (eval "$lt_compile" 2>out/conftest.err)
21185    ac_status=$?
21186    cat out/conftest.err >&5
21187    echo "$as_me:21187: \$? = $ac_status" >&5
21188    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21189    then
21190      # The compiler can only warn and ignore the option if not recognized
21191      # So say no if there are warnings
21192      if test ! -s out/conftest.err; then
21193        lt_cv_prog_compiler_c_o_GCJ=yes
21194      fi
21195    fi
21196    chmod u+w .
21197    $rm conftest*
21198    # SGI C++ compiler will create directory out/ii_files/ for
21199    # template instantiation
21200    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21201    $rm out/* && rmdir out
21202    cd ..
21203    rmdir conftest
21204    $rm conftest*
21205
21206 fi
21207 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21209
21210
21211 hard_links="nottested"
21212 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21213   # do not overwrite the value of need_locks provided by the user
21214   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21215 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21216   hard_links=yes
21217   $rm conftest*
21218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21219   touch conftest.a
21220   ln conftest.a conftest.b 2>&5 || hard_links=no
21221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21222   echo "$as_me:$LINENO: result: $hard_links" >&5
21223 echo "${ECHO_T}$hard_links" >&6
21224   if test "$hard_links" = no; then
21225     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21226 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21227     need_locks=warn
21228   fi
21229 else
21230   need_locks=no
21231 fi
21232
21233 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21234 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21235
21236   runpath_var=
21237   allow_undefined_flag_GCJ=
21238   enable_shared_with_static_runtimes_GCJ=no
21239   archive_cmds_GCJ=
21240   archive_expsym_cmds_GCJ=
21241   old_archive_From_new_cmds_GCJ=
21242   old_archive_from_expsyms_cmds_GCJ=
21243   export_dynamic_flag_spec_GCJ=
21244   whole_archive_flag_spec_GCJ=
21245   thread_safe_flag_spec_GCJ=
21246   hardcode_libdir_flag_spec_GCJ=
21247   hardcode_libdir_flag_spec_ld_GCJ=
21248   hardcode_libdir_separator_GCJ=
21249   hardcode_direct_GCJ=no
21250   hardcode_minus_L_GCJ=no
21251   hardcode_shlibpath_var_GCJ=unsupported
21252   link_all_deplibs_GCJ=unknown
21253   hardcode_automatic_GCJ=no
21254   module_cmds_GCJ=
21255   module_expsym_cmds_GCJ=
21256   always_export_symbols_GCJ=no
21257   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21258   # include_expsyms should be a list of space-separated symbols to be *always*
21259   # included in the symbol list
21260   include_expsyms_GCJ=
21261   # exclude_expsyms can be an extended regexp of symbols to exclude
21262   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21263   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21264   # as well as any symbol that contains `d'.
21265   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21266   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21267   # platforms (ab)use it in PIC code, but their linkers get confused if
21268   # the symbol is explicitly referenced.  Since portable code cannot
21269   # rely on this symbol name, it's probably fine to never include it in
21270   # preloaded symbol tables.
21271   extract_expsyms_cmds=
21272
21273   case $host_os in
21274   cygwin* | mingw* | pw32*)
21275     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21276     # When not using gcc, we currently assume that we are using
21277     # Microsoft Visual C++.
21278     if test "$GCC" != yes; then
21279       with_gnu_ld=no
21280     fi
21281     ;;
21282   openbsd*)
21283     with_gnu_ld=no
21284     ;;
21285   esac
21286
21287   ld_shlibs_GCJ=yes
21288   if test "$with_gnu_ld" = yes; then
21289     # If archive_cmds runs LD, not CC, wlarc should be empty
21290     wlarc='${wl}'
21291
21292     # See if GNU ld supports shared libraries.
21293     case $host_os in
21294     aix3* | aix4* | aix5*)
21295       # On AIX/PPC, the GNU linker is very broken
21296       if test "$host_cpu" != ia64; then
21297         ld_shlibs_GCJ=no
21298         cat <<EOF 1>&2
21299
21300 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21301 *** to be unable to reliably create shared libraries on AIX.
21302 *** Therefore, libtool is disabling shared libraries support.  If you
21303 *** really care for shared libraries, you may want to modify your PATH
21304 *** so that a non-GNU linker is found, and then restart.
21305
21306 EOF
21307       fi
21308       ;;
21309
21310     amigaos*)
21311       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)'
21312       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21313       hardcode_minus_L_GCJ=yes
21314
21315       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21316       # that the semantics of dynamic libraries on AmigaOS, at least up
21317       # to version 4, is to share data among multiple programs linked
21318       # with the same dynamic library.  Since this doesn't match the
21319       # behavior of shared libraries on other platforms, we can't use
21320       # them.
21321       ld_shlibs_GCJ=no
21322       ;;
21323
21324     beos*)
21325       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21326         allow_undefined_flag_GCJ=unsupported
21327         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21328         # support --undefined.  This deserves some investigation.  FIXME
21329         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21330       else
21331         ld_shlibs_GCJ=no
21332       fi
21333       ;;
21334
21335     cygwin* | mingw* | pw32*)
21336       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21337       # as there is no search path for DLLs.
21338       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21339       allow_undefined_flag_GCJ=unsupported
21340       always_export_symbols_GCJ=no
21341       enable_shared_with_static_runtimes_GCJ=yes
21342       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21343
21344       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21345         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21346         # If the export-symbols file already is a .def file (1st line
21347         # is EXPORTS), use it as is; otherwise, prepend...
21348         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21349           cp $export_symbols $output_objdir/$soname.def;
21350         else
21351           echo EXPORTS > $output_objdir/$soname.def;
21352           cat $export_symbols >> $output_objdir/$soname.def;
21353         fi~
21354         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21355       else
21356         ld_shlibs=no
21357       fi
21358       ;;
21359
21360     netbsd*)
21361       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21362         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21363         wlarc=
21364       else
21365         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21366         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21367       fi
21368       ;;
21369
21370     solaris* | sysv5*)
21371       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21372         ld_shlibs_GCJ=no
21373         cat <<EOF 1>&2
21374
21375 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21376 *** create shared libraries on Solaris systems.  Therefore, libtool
21377 *** is disabling shared libraries support.  We urge you to upgrade GNU
21378 *** binutils to release 2.9.1 or newer.  Another option is to modify
21379 *** your PATH or compiler configuration so that the native linker is
21380 *** used, and then restart.
21381
21382 EOF
21383       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21384         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21385         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21386       else
21387         ld_shlibs_GCJ=no
21388       fi
21389       ;;
21390
21391     sunos4*)
21392       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21393       wlarc=
21394       hardcode_direct_GCJ=yes
21395       hardcode_shlibpath_var_GCJ=no
21396       ;;
21397
21398   linux*)
21399     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21400         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21401         archive_cmds_GCJ="$tmp_archive_cmds"
21402       supports_anon_versioning=no
21403       case `$LD -v 2>/dev/null` in
21404         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21405         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21406         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21407         *\ 2.11.*) ;; # other 2.11 versions
21408         *) supports_anon_versioning=yes ;;
21409       esac
21410       if test $supports_anon_versioning = yes; then
21411         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21413 $echo "local: *; };" >> $output_objdir/$libname.ver~
21414         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21415       else
21416         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21417       fi
21418     else
21419       ld_shlibs_GCJ=no
21420     fi
21421     ;;
21422
21423     *)
21424       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21425         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21426         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21427       else
21428         ld_shlibs_GCJ=no
21429       fi
21430       ;;
21431     esac
21432
21433     if test "$ld_shlibs_GCJ" = yes; then
21434       runpath_var=LD_RUN_PATH
21435       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21436       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21437       # ancient GNU ld didn't support --whole-archive et. al.
21438       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21439         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21440       else
21441         whole_archive_flag_spec_GCJ=
21442       fi
21443     fi
21444   else
21445     # PORTME fill in a description of your system's linker (not GNU ld)
21446     case $host_os in
21447     aix3*)
21448       allow_undefined_flag_GCJ=unsupported
21449       always_export_symbols_GCJ=yes
21450       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'
21451       # Note: this linker hardcodes the directories in LIBPATH if there
21452       # are no directories specified by -L.
21453       hardcode_minus_L_GCJ=yes
21454       if test "$GCC" = yes && test -z "$link_static_flag"; then
21455         # Neither direct hardcoding nor static linking is supported with a
21456         # broken collect2.
21457         hardcode_direct_GCJ=unsupported
21458       fi
21459       ;;
21460
21461     aix4* | aix5*)
21462       if test "$host_cpu" = ia64; then
21463         # On IA64, the linker does run time linking by default, so we don't
21464         # have to do anything special.
21465         aix_use_runtimelinking=no
21466         exp_sym_flag='-Bexport'
21467         no_entry_flag=""
21468       else
21469         # If we're using GNU nm, then we don't want the "-C" option.
21470         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21471         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21472           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'
21473         else
21474           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'
21475         fi
21476         aix_use_runtimelinking=no
21477
21478         # Test if we are trying to use run time linking or normal
21479         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21480         # need to do runtime linking.
21481         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21482           for ld_flag in $LDFLAGS; do
21483           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21484             aix_use_runtimelinking=yes
21485             break
21486           fi
21487           done
21488         esac
21489
21490         exp_sym_flag='-bexport'
21491         no_entry_flag='-bnoentry'
21492       fi
21493
21494       # When large executables or shared objects are built, AIX ld can
21495       # have problems creating the table of contents.  If linking a library
21496       # or program results in "error TOC overflow" add -mminimal-toc to
21497       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21498       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21499
21500       archive_cmds_GCJ=''
21501       hardcode_direct_GCJ=yes
21502       hardcode_libdir_separator_GCJ=':'
21503       link_all_deplibs_GCJ=yes
21504
21505       if test "$GCC" = yes; then
21506         case $host_os in aix4.012|aix4.012.*)
21507         # We only want to do this on AIX 4.2 and lower, the check
21508         # below for broken collect2 doesn't work under 4.3+
21509           collect2name=`${CC} -print-prog-name=collect2`
21510           if test -f "$collect2name" && \
21511            strings "$collect2name" | grep resolve_lib_name >/dev/null
21512           then
21513           # We have reworked collect2
21514           hardcode_direct_GCJ=yes
21515           else
21516           # We have old collect2
21517           hardcode_direct_GCJ=unsupported
21518           # It fails to find uninstalled libraries when the uninstalled
21519           # path is not listed in the libpath.  Setting hardcode_minus_L
21520           # to unsupported forces relinking
21521           hardcode_minus_L_GCJ=yes
21522           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21523           hardcode_libdir_separator_GCJ=
21524           fi
21525         esac
21526         shared_flag='-shared'
21527       else
21528         # not using gcc
21529         if test "$host_cpu" = ia64; then
21530         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21531         # chokes on -Wl,-G. The following line is correct:
21532           shared_flag='-G'
21533         else
21534         if test "$aix_use_runtimelinking" = yes; then
21535             shared_flag='${wl}-G'
21536           else
21537             shared_flag='${wl}-bM:SRE'
21538         fi
21539         fi
21540       fi
21541
21542       # It seems that -bexpall does not export symbols beginning with
21543       # underscore (_), so it is better to generate a list of symbols to export.
21544       always_export_symbols_GCJ=yes
21545       if test "$aix_use_runtimelinking" = yes; then
21546         # Warning - without using the other runtime loading flags (-brtl),
21547         # -berok will link without error, but may produce a broken library.
21548         allow_undefined_flag_GCJ='-berok'
21549        # Determine the default libpath from the value encoded in an empty executable.
21550        cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h.  */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h.  */
21556
21557 int
21558 main ()
21559 {
21560
21561   ;
21562   return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext conftest$ac_exeext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21567   (eval $ac_link) 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } &&
21574          { ac_try='test -z "$ac_c_werror_flag"
21575                          || test ! -s conftest.err'
21576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577   (eval $ac_try) 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); }; } &&
21581          { ac_try='test -s conftest$ac_exeext'
21582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583   (eval $ac_try) 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); }; }; then
21587
21588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21589 }'`
21590 # Check for a 64-bit object if we didn't find anything.
21591 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; }
21592 }'`; fi
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597 fi
21598 rm -f conftest.err conftest.$ac_objext \
21599       conftest$ac_exeext conftest.$ac_ext
21600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21601
21602        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21603         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"
21604        else
21605         if test "$host_cpu" = ia64; then
21606           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21607           allow_undefined_flag_GCJ="-z nodefs"
21608           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"
21609         else
21610          # Determine the default libpath from the value encoded in an empty executable.
21611          cat >conftest.$ac_ext <<_ACEOF
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617
21618 int
21619 main ()
21620 {
21621
21622   ;
21623   return 0;
21624 }
21625 _ACEOF
21626 rm -f conftest.$ac_objext conftest$ac_exeext
21627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21628   (eval $ac_link) 2>conftest.er1
21629   ac_status=$?
21630   grep -v '^ *+' conftest.er1 >conftest.err
21631   rm -f conftest.er1
21632   cat conftest.err >&5
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } &&
21635          { ac_try='test -z "$ac_c_werror_flag"
21636                          || test ! -s conftest.err'
21637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638   (eval $ac_try) 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); }; } &&
21642          { ac_try='test -s conftest$ac_exeext'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }; then
21648
21649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21650 }'`
21651 # Check for a 64-bit object if we didn't find anything.
21652 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; }
21653 }'`; fi
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658 fi
21659 rm -f conftest.err conftest.$ac_objext \
21660       conftest$ac_exeext conftest.$ac_ext
21661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21662
21663          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21664           # Warning - without using the other run time loading flags,
21665           # -berok will link without error, but may produce a broken library.
21666           no_undefined_flag_GCJ=' ${wl}-bernotok'
21667           allow_undefined_flag_GCJ=' ${wl}-berok'
21668           # -bexpall does not export symbols beginning with underscore (_)
21669           always_export_symbols_GCJ=yes
21670           # Exported symbols can be pulled into shared objects from archives
21671           whole_archive_flag_spec_GCJ=' '
21672           archive_cmds_need_lc_GCJ=yes
21673           # This is similar to how AIX traditionally builds it's shared libraries.
21674           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'
21675         fi
21676       fi
21677       ;;
21678
21679     amigaos*)
21680       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)'
21681       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21682       hardcode_minus_L_GCJ=yes
21683       # see comment about different semantics on the GNU ld section
21684       ld_shlibs_GCJ=no
21685       ;;
21686
21687     bsdi[45]*)
21688       export_dynamic_flag_spec_GCJ=-rdynamic
21689       ;;
21690
21691     cygwin* | mingw* | pw32*)
21692       # When not using gcc, we currently assume that we are using
21693       # Microsoft Visual C++.
21694       # hardcode_libdir_flag_spec is actually meaningless, as there is
21695       # no search path for DLLs.
21696       hardcode_libdir_flag_spec_GCJ=' '
21697       allow_undefined_flag_GCJ=unsupported
21698       # Tell ltmain to make .lib files, not .a files.
21699       libext=lib
21700       # Tell ltmain to make .dll files, not .so files.
21701       shrext_cmds=".dll"
21702       # FIXME: Setting linknames here is a bad hack.
21703       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21704       # The linker will automatically build a .lib file if we build a DLL.
21705       old_archive_From_new_cmds_GCJ='true'
21706       # FIXME: Should let the user specify the lib program.
21707       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21708       fix_srcfile_path='`cygpath -w "$srcfile"`'
21709       enable_shared_with_static_runtimes_GCJ=yes
21710       ;;
21711
21712     darwin* | rhapsody*)
21713       case "$host_os" in
21714         rhapsody* | darwin1.[012])
21715          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21716          ;;
21717        *) # Darwin 1.3 on
21718          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21719            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21720          else
21721            case ${MACOSX_DEPLOYMENT_TARGET} in
21722              10.[012])
21723                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21724                ;;
21725              10.*)
21726                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21727                ;;
21728            esac
21729          fi
21730          ;;
21731       esac
21732       archive_cmds_need_lc_GCJ=no
21733       hardcode_direct_GCJ=no
21734       hardcode_automatic_GCJ=yes
21735       hardcode_shlibpath_var_GCJ=unsupported
21736       whole_archive_flag_spec_GCJ=''
21737       link_all_deplibs_GCJ=yes
21738     if test "$GCC" = yes ; then
21739         output_verbose_link_cmd='echo'
21740         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21741       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21742       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21743       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}'
21744       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}'
21745     else
21746       case "$cc_basename" in
21747         xlc*)
21748          output_verbose_link_cmd='echo'
21749          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21750          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21751           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21752          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}'
21753           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}'
21754           ;;
21755        *)
21756          ld_shlibs_GCJ=no
21757           ;;
21758       esac
21759     fi
21760       ;;
21761
21762     dgux*)
21763       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21764       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21765       hardcode_shlibpath_var_GCJ=no
21766       ;;
21767
21768     freebsd1*)
21769       ld_shlibs_GCJ=no
21770       ;;
21771
21772     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21773     # support.  Future versions do this automatically, but an explicit c++rt0.o
21774     # does not break anything, and helps significantly (at the cost of a little
21775     # extra space).
21776     freebsd2.2*)
21777       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21778       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21779       hardcode_direct_GCJ=yes
21780       hardcode_shlibpath_var_GCJ=no
21781       ;;
21782
21783     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21784     freebsd2*)
21785       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21786       hardcode_direct_GCJ=yes
21787       hardcode_minus_L_GCJ=yes
21788       hardcode_shlibpath_var_GCJ=no
21789       ;;
21790
21791     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21792     freebsd* | kfreebsd*-gnu)
21793       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21794       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21795       hardcode_direct_GCJ=yes
21796       hardcode_shlibpath_var_GCJ=no
21797       ;;
21798
21799     hpux9*)
21800       if test "$GCC" = yes; then
21801         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'
21802       else
21803         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'
21804       fi
21805       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21806       hardcode_libdir_separator_GCJ=:
21807       hardcode_direct_GCJ=yes
21808
21809       # hardcode_minus_L: Not really in the search PATH,
21810       # but as the default location of the library.
21811       hardcode_minus_L_GCJ=yes
21812       export_dynamic_flag_spec_GCJ='${wl}-E'
21813       ;;
21814
21815     hpux10* | hpux11*)
21816       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21817         case "$host_cpu" in
21818         hppa*64*|ia64*)
21819           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21820           ;;
21821         *)
21822           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21823           ;;
21824         esac
21825       else
21826         case "$host_cpu" in
21827         hppa*64*|ia64*)
21828           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21829           ;;
21830         *)
21831           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21832           ;;
21833         esac
21834       fi
21835       if test "$with_gnu_ld" = no; then
21836         case "$host_cpu" in
21837         hppa*64*)
21838           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21839           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21840           hardcode_libdir_separator_GCJ=:
21841           hardcode_direct_GCJ=no
21842           hardcode_shlibpath_var_GCJ=no
21843           ;;
21844         ia64*)
21845           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21846           hardcode_direct_GCJ=no
21847           hardcode_shlibpath_var_GCJ=no
21848
21849           # hardcode_minus_L: Not really in the search PATH,
21850           # but as the default location of the library.
21851           hardcode_minus_L_GCJ=yes
21852           ;;
21853         *)
21854           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21855           hardcode_libdir_separator_GCJ=:
21856           hardcode_direct_GCJ=yes
21857           export_dynamic_flag_spec_GCJ='${wl}-E'
21858
21859           # hardcode_minus_L: Not really in the search PATH,
21860           # but as the default location of the library.
21861           hardcode_minus_L_GCJ=yes
21862           ;;
21863         esac
21864       fi
21865       ;;
21866
21867     irix5* | irix6* | nonstopux*)
21868       if test "$GCC" = yes; then
21869         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'
21870       else
21871         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'
21872         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21873       fi
21874       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21875       hardcode_libdir_separator_GCJ=:
21876       link_all_deplibs_GCJ=yes
21877       ;;
21878
21879     netbsd*)
21880       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21881         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21882       else
21883         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21884       fi
21885       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21886       hardcode_direct_GCJ=yes
21887       hardcode_shlibpath_var_GCJ=no
21888       ;;
21889
21890     newsos6)
21891       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21892       hardcode_direct_GCJ=yes
21893       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21894       hardcode_libdir_separator_GCJ=:
21895       hardcode_shlibpath_var_GCJ=no
21896       ;;
21897
21898     openbsd*)
21899       hardcode_direct_GCJ=yes
21900       hardcode_shlibpath_var_GCJ=no
21901       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21902         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21903         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21904         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21905         export_dynamic_flag_spec_GCJ='${wl}-E'
21906       else
21907        case $host_os in
21908          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21909            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21910            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911            ;;
21912          *)
21913            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21914            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21915            ;;
21916        esac
21917       fi
21918       ;;
21919
21920     os2*)
21921       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21922       hardcode_minus_L_GCJ=yes
21923       allow_undefined_flag_GCJ=unsupported
21924       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'
21925       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21926       ;;
21927
21928     osf3*)
21929       if test "$GCC" = yes; then
21930         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21931         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'
21932       else
21933         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21934         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'
21935       fi
21936       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21937       hardcode_libdir_separator_GCJ=:
21938       ;;
21939
21940     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21941       if test "$GCC" = yes; then
21942         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21943         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'
21944         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21945       else
21946         allow_undefined_flag_GCJ=' -expect_unresolved \*'
21947         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'
21948         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~
21949         $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'
21950
21951         # Both c and cxx compiler support -rpath directly
21952         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21953       fi
21954       hardcode_libdir_separator_GCJ=:
21955       ;;
21956
21957     sco3.2v5*)
21958       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21959       hardcode_shlibpath_var_GCJ=no
21960       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21961       runpath_var=LD_RUN_PATH
21962       hardcode_runpath_var=yes
21963       ;;
21964
21965     solaris*)
21966       no_undefined_flag_GCJ=' -z text'
21967       if test "$GCC" = yes; then
21968         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21969         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21970           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21971       else
21972         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21973         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21974         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21975       fi
21976       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21977       hardcode_shlibpath_var_GCJ=no
21978       case $host_os in
21979       solaris2.[0-5] | solaris2.[0-5].*) ;;
21980       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21981         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21982       esac
21983       link_all_deplibs_GCJ=yes
21984       ;;
21985
21986     sunos4*)
21987       if test "x$host_vendor" = xsequent; then
21988         # Use $CC to link under sequent, because it throws in some extra .o
21989         # files that make .init and .fini sections work.
21990         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21991       else
21992         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21993       fi
21994       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21995       hardcode_direct_GCJ=yes
21996       hardcode_minus_L_GCJ=yes
21997       hardcode_shlibpath_var_GCJ=no
21998       ;;
21999
22000     sysv4)
22001       case $host_vendor in
22002         sni)
22003           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22004           hardcode_direct_GCJ=yes # is this really true???
22005         ;;
22006         siemens)
22007           ## LD is ld it makes a PLAMLIB
22008           ## CC just makes a GrossModule.
22009           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22010           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22011           hardcode_direct_GCJ=no
22012         ;;
22013         motorola)
22014           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22015           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22016         ;;
22017       esac
22018       runpath_var='LD_RUN_PATH'
22019       hardcode_shlibpath_var_GCJ=no
22020       ;;
22021
22022     sysv4.3*)
22023       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22024       hardcode_shlibpath_var_GCJ=no
22025       export_dynamic_flag_spec_GCJ='-Bexport'
22026       ;;
22027
22028     sysv4*MP*)
22029       if test -d /usr/nec; then
22030         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031         hardcode_shlibpath_var_GCJ=no
22032         runpath_var=LD_RUN_PATH
22033         hardcode_runpath_var=yes
22034         ld_shlibs_GCJ=yes
22035       fi
22036       ;;
22037
22038     sysv4.2uw2*)
22039       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22040       hardcode_direct_GCJ=yes
22041       hardcode_minus_L_GCJ=no
22042       hardcode_shlibpath_var_GCJ=no
22043       hardcode_runpath_var=yes
22044       runpath_var=LD_RUN_PATH
22045       ;;
22046
22047    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22048       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22049       if test "$GCC" = yes; then
22050         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22051       else
22052         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22053       fi
22054       runpath_var='LD_RUN_PATH'
22055       hardcode_shlibpath_var_GCJ=no
22056       ;;
22057
22058     sysv5*)
22059       no_undefined_flag_GCJ=' -z text'
22060       # $CC -shared without GNU ld will not create a library from C++
22061       # object files and a static libstdc++, better avoid it by now
22062       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22063       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22064                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22065       hardcode_libdir_flag_spec_GCJ=
22066       hardcode_shlibpath_var_GCJ=no
22067       runpath_var='LD_RUN_PATH'
22068       ;;
22069
22070     uts4*)
22071       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22072       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22073       hardcode_shlibpath_var_GCJ=no
22074       ;;
22075
22076     *)
22077       ld_shlibs_GCJ=no
22078       ;;
22079     esac
22080   fi
22081
22082 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22083 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22084 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22085
22086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22087 if test "$GCC" = yes; then
22088   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22089 fi
22090
22091 #
22092 # Do we need to explicitly link libc?
22093 #
22094 case "x$archive_cmds_need_lc_GCJ" in
22095 x|xyes)
22096   # Assume -lc should be added
22097   archive_cmds_need_lc_GCJ=yes
22098
22099   if test "$enable_shared" = yes && test "$GCC" = yes; then
22100     case $archive_cmds_GCJ in
22101     *'~'*)
22102       # FIXME: we may have to deal with multi-command sequences.
22103       ;;
22104     '$CC '*)
22105       # Test whether the compiler implicitly links with -lc since on some
22106       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22107       # to ld, don't add -lc before -lgcc.
22108       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22109 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22110       $rm conftest*
22111       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22112
22113       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22114   (eval $ac_compile) 2>&5
22115   ac_status=$?
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); } 2>conftest.err; then
22118         soname=conftest
22119         lib=conftest
22120         libobjs=conftest.$ac_objext
22121         deplibs=
22122         wl=$lt_prog_compiler_wl_GCJ
22123         compiler_flags=-v
22124         linker_flags=-v
22125         verstring=
22126         output_objdir=.
22127         libname=conftest
22128         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22129         allow_undefined_flag_GCJ=
22130         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22131   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }
22135         then
22136           archive_cmds_need_lc_GCJ=no
22137         else
22138           archive_cmds_need_lc_GCJ=yes
22139         fi
22140         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22141       else
22142         cat conftest.err 1>&5
22143       fi
22144       $rm conftest*
22145       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22146 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22147       ;;
22148     esac
22149   fi
22150   ;;
22151 esac
22152
22153 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22154 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22155 library_names_spec=
22156 libname_spec='lib$name'
22157 soname_spec=
22158 shrext_cmds=".so"
22159 postinstall_cmds=
22160 postuninstall_cmds=
22161 finish_cmds=
22162 finish_eval=
22163 shlibpath_var=
22164 shlibpath_overrides_runpath=unknown
22165 version_type=none
22166 dynamic_linker="$host_os ld.so"
22167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22168 if test "$GCC" = yes; then
22169   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22170   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22171     # if the path contains ";" then we assume it to be the separator
22172     # otherwise default to the standard path separator (i.e. ":") - it is
22173     # assumed that no part of a normal pathname contains ";" but that should
22174     # okay in the real world where ";" in dirpaths is itself problematic.
22175     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22176   else
22177     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22178   fi
22179 else
22180   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22181 fi
22182 need_lib_prefix=unknown
22183 hardcode_into_libs=no
22184
22185 # when you set need_version to no, make sure it does not cause -set_version
22186 # flags to be left without arguments
22187 need_version=unknown
22188
22189 case $host_os in
22190 aix3*)
22191   version_type=linux
22192   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22193   shlibpath_var=LIBPATH
22194
22195   # AIX 3 has no versioning support, so we append a major version to the name.
22196   soname_spec='${libname}${release}${shared_ext}$major'
22197   ;;
22198
22199 aix4* | aix5*)
22200   version_type=linux
22201   need_lib_prefix=no
22202   need_version=no
22203   hardcode_into_libs=yes
22204   if test "$host_cpu" = ia64; then
22205     # AIX 5 supports IA64
22206     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22207     shlibpath_var=LD_LIBRARY_PATH
22208   else
22209     # With GCC up to 2.95.x, collect2 would create an import file
22210     # for dependence libraries.  The import file would start with
22211     # the line `#! .'.  This would cause the generated library to
22212     # depend on `.', always an invalid library.  This was fixed in
22213     # development snapshots of GCC prior to 3.0.
22214     case $host_os in
22215       aix4 | aix4.[01] | aix4.[01].*)
22216       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22217            echo ' yes '
22218            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22219         :
22220       else
22221         can_build_shared=no
22222       fi
22223       ;;
22224     esac
22225     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22226     # soname into executable. Probably we can add versioning support to
22227     # collect2, so additional links can be useful in future.
22228     if test "$aix_use_runtimelinking" = yes; then
22229       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22230       # instead of lib<name>.a to let people know that these are not
22231       # typical AIX shared libraries.
22232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22233     else
22234       # We preserve .a as extension for shared libraries through AIX4.2
22235       # and later when we are not doing run time linking.
22236       library_names_spec='${libname}${release}.a $libname.a'
22237       soname_spec='${libname}${release}${shared_ext}$major'
22238     fi
22239     shlibpath_var=LIBPATH
22240   fi
22241   ;;
22242
22243 amigaos*)
22244   library_names_spec='$libname.ixlibrary $libname.a'
22245   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22246   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'
22247   ;;
22248
22249 beos*)
22250   library_names_spec='${libname}${shared_ext}'
22251   dynamic_linker="$host_os ld.so"
22252   shlibpath_var=LIBRARY_PATH
22253   ;;
22254
22255 bsdi[45]*)
22256   version_type=linux
22257   need_version=no
22258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22259   soname_spec='${libname}${release}${shared_ext}$major'
22260   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22261   shlibpath_var=LD_LIBRARY_PATH
22262   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22263   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22264   # the default ld.so.conf also contains /usr/contrib/lib and
22265   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22266   # libtool to hard-code these into programs
22267   ;;
22268
22269 cygwin* | mingw* | pw32*)
22270   version_type=windows
22271   shrext_cmds=".dll"
22272   need_version=no
22273   need_lib_prefix=no
22274
22275   case $GCC,$host_os in
22276   yes,cygwin* | yes,mingw* | yes,pw32*)
22277     library_names_spec='$libname.dll.a'
22278     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22279     postinstall_cmds='base_file=`basename \${file}`~
22280       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22281       dldir=$destdir/`dirname \$dlpath`~
22282       test -d \$dldir || mkdir -p \$dldir~
22283       $install_prog $dir/$dlname \$dldir/$dlname'
22284     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22285       dlpath=$dir/\$dldll~
22286        $rm \$dlpath'
22287     shlibpath_overrides_runpath=yes
22288
22289     case $host_os in
22290     cygwin*)
22291       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22292       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22293       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22294       ;;
22295     mingw*)
22296       # MinGW DLLs use traditional 'lib' prefix
22297       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22298       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22299       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22300         # It is most probably a Windows format PATH printed by
22301         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22302         # path with ; separators, and with drive letters. We can handle the
22303         # drive letters (cygwin fileutils understands them), so leave them,
22304         # especially as we might pass files found there to a mingw objdump,
22305         # which wouldn't understand a cygwinified path. Ahh.
22306         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22307       else
22308         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22309       fi
22310       ;;
22311     pw32*)
22312       # pw32 DLLs use 'pw' prefix rather than 'lib'
22313       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22314       ;;
22315     esac
22316     ;;
22317
22318   *)
22319     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22320     ;;
22321   esac
22322   dynamic_linker='Win32 ld.exe'
22323   # FIXME: first we should search . and the directory the executable is in
22324   shlibpath_var=PATH
22325   ;;
22326
22327 darwin* | rhapsody*)
22328   dynamic_linker="$host_os dyld"
22329   version_type=darwin
22330   need_lib_prefix=no
22331   need_version=no
22332   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22333   soname_spec='${libname}${release}${major}$shared_ext'
22334   shlibpath_overrides_runpath=yes
22335   shlibpath_var=DYLD_LIBRARY_PATH
22336   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22337   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22338   if test "$GCC" = yes; then
22339     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"`
22340   else
22341     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22342   fi
22343   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22344   ;;
22345
22346 dgux*)
22347   version_type=linux
22348   need_lib_prefix=no
22349   need_version=no
22350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22351   soname_spec='${libname}${release}${shared_ext}$major'
22352   shlibpath_var=LD_LIBRARY_PATH
22353   ;;
22354
22355 freebsd1*)
22356   dynamic_linker=no
22357   ;;
22358
22359 kfreebsd*-gnu)
22360   version_type=linux
22361   need_lib_prefix=no
22362   need_version=no
22363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22364   soname_spec='${libname}${release}${shared_ext}$major'
22365   shlibpath_var=LD_LIBRARY_PATH
22366   shlibpath_overrides_runpath=no
22367   hardcode_into_libs=yes
22368   dynamic_linker='GNU ld.so'
22369   ;;
22370
22371 freebsd*)
22372   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22373   version_type=freebsd-$objformat
22374   case $version_type in
22375     freebsd-elf*)
22376       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22377       need_version=no
22378       need_lib_prefix=no
22379       ;;
22380     freebsd-*)
22381       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22382       need_version=yes
22383       ;;
22384   esac
22385   shlibpath_var=LD_LIBRARY_PATH
22386   case $host_os in
22387   freebsd2*)
22388     shlibpath_overrides_runpath=yes
22389     ;;
22390   freebsd3.01* | freebsdelf3.01*)
22391     shlibpath_overrides_runpath=yes
22392     hardcode_into_libs=yes
22393     ;;
22394   *) # from 3.2 on
22395     shlibpath_overrides_runpath=no
22396     hardcode_into_libs=yes
22397     ;;
22398   esac
22399   ;;
22400
22401 gnu*)
22402   version_type=linux
22403   need_lib_prefix=no
22404   need_version=no
22405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22406   soname_spec='${libname}${release}${shared_ext}$major'
22407   shlibpath_var=LD_LIBRARY_PATH
22408   hardcode_into_libs=yes
22409   ;;
22410
22411 hpux9* | hpux10* | hpux11*)
22412   # Give a soname corresponding to the major version so that dld.sl refuses to
22413   # link against other versions.
22414   version_type=sunos
22415   need_lib_prefix=no
22416   need_version=no
22417   case "$host_cpu" in
22418   ia64*)
22419     shrext_cmds='.so'
22420     hardcode_into_libs=yes
22421     dynamic_linker="$host_os dld.so"
22422     shlibpath_var=LD_LIBRARY_PATH
22423     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425     soname_spec='${libname}${release}${shared_ext}$major'
22426     if test "X$HPUX_IA64_MODE" = X32; then
22427       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22428     else
22429       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22430     fi
22431     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22432     ;;
22433    hppa*64*)
22434      shrext_cmds='.sl'
22435      hardcode_into_libs=yes
22436      dynamic_linker="$host_os dld.sl"
22437      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22438      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22439      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440      soname_spec='${libname}${release}${shared_ext}$major'
22441      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22442      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22443      ;;
22444    *)
22445     shrext_cmds='.sl'
22446     dynamic_linker="$host_os dld.sl"
22447     shlibpath_var=SHLIB_PATH
22448     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22450     soname_spec='${libname}${release}${shared_ext}$major'
22451     ;;
22452   esac
22453   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22454   postinstall_cmds='chmod 555 $lib'
22455   ;;
22456
22457 irix5* | irix6* | nonstopux*)
22458   case $host_os in
22459     nonstopux*) version_type=nonstopux ;;
22460     *)
22461         if test "$lt_cv_prog_gnu_ld" = yes; then
22462                 version_type=linux
22463         else
22464                 version_type=irix
22465         fi ;;
22466   esac
22467   need_lib_prefix=no
22468   need_version=no
22469   soname_spec='${libname}${release}${shared_ext}$major'
22470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22471   case $host_os in
22472   irix5* | nonstopux*)
22473     libsuff= shlibsuff=
22474     ;;
22475   *)
22476     case $LD in # libtool.m4 will add one of these switches to LD
22477     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22478       libsuff= shlibsuff= libmagic=32-bit;;
22479     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22480       libsuff=32 shlibsuff=N32 libmagic=N32;;
22481     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22482       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22483     *) libsuff= shlibsuff= libmagic=never-match;;
22484     esac
22485     ;;
22486   esac
22487   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22488   shlibpath_overrides_runpath=no
22489   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22490   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22491   hardcode_into_libs=yes
22492   ;;
22493
22494 # No shared lib support for Linux oldld, aout, or coff.
22495 linux*oldld* | linux*aout* | linux*coff*)
22496   dynamic_linker=no
22497   ;;
22498
22499 # This must be Linux ELF.
22500 linux*)
22501   version_type=linux
22502   need_lib_prefix=no
22503   need_version=no
22504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505   soname_spec='${libname}${release}${shared_ext}$major'
22506   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22507   shlibpath_var=LD_LIBRARY_PATH
22508   shlibpath_overrides_runpath=no
22509   # This implies no fast_install, which is unacceptable.
22510   # Some rework will be needed to allow for fast_install
22511   # before this can be enabled.
22512   hardcode_into_libs=yes
22513
22514   # Append ld.so.conf contents to the search path
22515   if test -f /etc/ld.so.conf; then
22516     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22517     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22518   fi
22519
22520   # We used to test for /lib/ld.so.1 and disable shared libraries on
22521   # powerpc, because MkLinux only supported shared libraries with the
22522   # GNU dynamic linker.  Since this was broken with cross compilers,
22523   # most powerpc-linux boxes support dynamic linking these days and
22524   # people can always --disable-shared, the test was removed, and we
22525   # assume the GNU/Linux dynamic linker is in use.
22526   dynamic_linker='GNU/Linux ld.so'
22527   ;;
22528
22529 knetbsd*-gnu)
22530   version_type=linux
22531   need_lib_prefix=no
22532   need_version=no
22533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22534   soname_spec='${libname}${release}${shared_ext}$major'
22535   shlibpath_var=LD_LIBRARY_PATH
22536   shlibpath_overrides_runpath=no
22537   hardcode_into_libs=yes
22538   dynamic_linker='GNU ld.so'
22539   ;;
22540
22541 netbsd*)
22542   version_type=sunos
22543   need_lib_prefix=no
22544   need_version=no
22545   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22547     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22548     dynamic_linker='NetBSD (a.out) ld.so'
22549   else
22550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22551     soname_spec='${libname}${release}${shared_ext}$major'
22552     dynamic_linker='NetBSD ld.elf_so'
22553   fi
22554   shlibpath_var=LD_LIBRARY_PATH
22555   shlibpath_overrides_runpath=yes
22556   hardcode_into_libs=yes
22557   ;;
22558
22559 newsos6)
22560   version_type=linux
22561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562   shlibpath_var=LD_LIBRARY_PATH
22563   shlibpath_overrides_runpath=yes
22564   ;;
22565
22566 nto-qnx*)
22567   version_type=linux
22568   need_lib_prefix=no
22569   need_version=no
22570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22571   soname_spec='${libname}${release}${shared_ext}$major'
22572   shlibpath_var=LD_LIBRARY_PATH
22573   shlibpath_overrides_runpath=yes
22574   ;;
22575
22576 openbsd*)
22577   version_type=sunos
22578   need_lib_prefix=no
22579   need_version=no
22580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22581   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22582   shlibpath_var=LD_LIBRARY_PATH
22583   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22584     case $host_os in
22585       openbsd2.[89] | openbsd2.[89].*)
22586         shlibpath_overrides_runpath=no
22587         ;;
22588       *)
22589         shlibpath_overrides_runpath=yes
22590         ;;
22591       esac
22592   else
22593     shlibpath_overrides_runpath=yes
22594   fi
22595   ;;
22596
22597 os2*)
22598   libname_spec='$name'
22599   shrext_cmds=".dll"
22600   need_lib_prefix=no
22601   library_names_spec='$libname${shared_ext} $libname.a'
22602   dynamic_linker='OS/2 ld.exe'
22603   shlibpath_var=LIBPATH
22604   ;;
22605
22606 osf3* | osf4* | osf5*)
22607   version_type=osf
22608   need_lib_prefix=no
22609   need_version=no
22610   soname_spec='${libname}${release}${shared_ext}$major'
22611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612   shlibpath_var=LD_LIBRARY_PATH
22613   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22614   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22615   ;;
22616
22617 sco3.2v5*)
22618   version_type=osf
22619   soname_spec='${libname}${release}${shared_ext}$major'
22620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621   shlibpath_var=LD_LIBRARY_PATH
22622   ;;
22623
22624 solaris*)
22625   version_type=linux
22626   need_lib_prefix=no
22627   need_version=no
22628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22629   soname_spec='${libname}${release}${shared_ext}$major'
22630   shlibpath_var=LD_LIBRARY_PATH
22631   shlibpath_overrides_runpath=yes
22632   hardcode_into_libs=yes
22633   # ldd complains unless libraries are executable
22634   postinstall_cmds='chmod +x $lib'
22635   ;;
22636
22637 sunos4*)
22638   version_type=sunos
22639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22640   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22641   shlibpath_var=LD_LIBRARY_PATH
22642   shlibpath_overrides_runpath=yes
22643   if test "$with_gnu_ld" = yes; then
22644     need_lib_prefix=no
22645   fi
22646   need_version=yes
22647   ;;
22648
22649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22650   version_type=linux
22651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22652   soname_spec='${libname}${release}${shared_ext}$major'
22653   shlibpath_var=LD_LIBRARY_PATH
22654   case $host_vendor in
22655     sni)
22656       shlibpath_overrides_runpath=no
22657       need_lib_prefix=no
22658       export_dynamic_flag_spec='${wl}-Blargedynsym'
22659       runpath_var=LD_RUN_PATH
22660       ;;
22661     siemens)
22662       need_lib_prefix=no
22663       ;;
22664     motorola)
22665       need_lib_prefix=no
22666       need_version=no
22667       shlibpath_overrides_runpath=no
22668       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22669       ;;
22670   esac
22671   ;;
22672
22673 sysv4*MP*)
22674   if test -d /usr/nec ;then
22675     version_type=linux
22676     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22677     soname_spec='$libname${shared_ext}.$major'
22678     shlibpath_var=LD_LIBRARY_PATH
22679   fi
22680   ;;
22681
22682 uts4*)
22683   version_type=linux
22684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22685   soname_spec='${libname}${release}${shared_ext}$major'
22686   shlibpath_var=LD_LIBRARY_PATH
22687   ;;
22688
22689 *)
22690   dynamic_linker=no
22691   ;;
22692 esac
22693 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22694 echo "${ECHO_T}$dynamic_linker" >&6
22695 test "$dynamic_linker" = no && can_build_shared=no
22696
22697 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22698 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22699 hardcode_action_GCJ=
22700 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22701    test -n "$runpath_var_GCJ" || \
22702    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22703
22704   # We can hardcode non-existant directories.
22705   if test "$hardcode_direct_GCJ" != no &&
22706      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22707      # have to relink, otherwise we might link with an installed library
22708      # when we should be linking with a yet-to-be-installed one
22709      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22710      test "$hardcode_minus_L_GCJ" != no; then
22711     # Linking always hardcodes the temporary library directory.
22712     hardcode_action_GCJ=relink
22713   else
22714     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22715     hardcode_action_GCJ=immediate
22716   fi
22717 else
22718   # We cannot hardcode anything, or else we can only hardcode existing
22719   # directories.
22720   hardcode_action_GCJ=unsupported
22721 fi
22722 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22723 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22724
22725 if test "$hardcode_action_GCJ" = relink; then
22726   # Fast installation is not supported
22727   enable_fast_install=no
22728 elif test "$shlibpath_overrides_runpath" = yes ||
22729      test "$enable_shared" = no; then
22730   # Fast installation is not necessary
22731   enable_fast_install=needless
22732 fi
22733
22734 striplib=
22735 old_striplib=
22736 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22737 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22738 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22739   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22740   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22741   echo "$as_me:$LINENO: result: yes" >&5
22742 echo "${ECHO_T}yes" >&6
22743 else
22744 # FIXME - insert some real tests, host_os isn't really good enough
22745   case $host_os in
22746    darwin*)
22747        if test -n "$STRIP" ; then
22748          striplib="$STRIP -x"
22749          echo "$as_me:$LINENO: result: yes" >&5
22750 echo "${ECHO_T}yes" >&6
22751        else
22752   echo "$as_me:$LINENO: result: no" >&5
22753 echo "${ECHO_T}no" >&6
22754 fi
22755        ;;
22756    *)
22757   echo "$as_me:$LINENO: result: no" >&5
22758 echo "${ECHO_T}no" >&6
22759     ;;
22760   esac
22761 fi
22762
22763 if test "x$enable_dlopen" != xyes; then
22764   enable_dlopen=unknown
22765   enable_dlopen_self=unknown
22766   enable_dlopen_self_static=unknown
22767 else
22768   lt_cv_dlopen=no
22769   lt_cv_dlopen_libs=
22770
22771   case $host_os in
22772   beos*)
22773     lt_cv_dlopen="load_add_on"
22774     lt_cv_dlopen_libs=
22775     lt_cv_dlopen_self=yes
22776     ;;
22777
22778   mingw* | pw32*)
22779     lt_cv_dlopen="LoadLibrary"
22780     lt_cv_dlopen_libs=
22781    ;;
22782
22783   cygwin*)
22784     lt_cv_dlopen="dlopen"
22785     lt_cv_dlopen_libs=
22786    ;;
22787
22788   darwin*)
22789   # if libdl is installed we need to link against it
22790     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22791 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22792 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22793   echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795   ac_check_lib_save_LIBS=$LIBS
22796 LIBS="-ldl  $LIBS"
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h.  */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h.  */
22803
22804 /* Override any gcc2 internal prototype to avoid an error.  */
22805 #ifdef __cplusplus
22806 extern "C"
22807 #endif
22808 /* We use char because int might match the return type of a gcc2
22809    builtin and then its argument prototype would still apply.  */
22810 char dlopen ();
22811 int
22812 main ()
22813 {
22814 dlopen ();
22815   ;
22816   return 0;
22817 }
22818 _ACEOF
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22821   (eval $ac_link) 2>conftest.er1
22822   ac_status=$?
22823   grep -v '^ *+' conftest.er1 >conftest.err
22824   rm -f conftest.er1
22825   cat conftest.err >&5
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); } &&
22828          { ac_try='test -z "$ac_c_werror_flag"
22829                          || test ! -s conftest.err'
22830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831   (eval $ac_try) 2>&5
22832   ac_status=$?
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); }; } &&
22835          { ac_try='test -s conftest$ac_exeext'
22836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837   (eval $ac_try) 2>&5
22838   ac_status=$?
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); }; }; then
22841   ac_cv_lib_dl_dlopen=yes
22842 else
22843   echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846 ac_cv_lib_dl_dlopen=no
22847 fi
22848 rm -f conftest.err conftest.$ac_objext \
22849       conftest$ac_exeext conftest.$ac_ext
22850 LIBS=$ac_check_lib_save_LIBS
22851 fi
22852 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22853 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22854 if test $ac_cv_lib_dl_dlopen = yes; then
22855   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22856 else
22857
22858     lt_cv_dlopen="dyld"
22859     lt_cv_dlopen_libs=
22860     lt_cv_dlopen_self=yes
22861
22862 fi
22863
22864    ;;
22865
22866   *)
22867     echo "$as_me:$LINENO: checking for shl_load" >&5
22868 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22869 if test "${ac_cv_func_shl_load+set}" = set; then
22870   echo $ECHO_N "(cached) $ECHO_C" >&6
22871 else
22872   cat >conftest.$ac_ext <<_ACEOF
22873 /* confdefs.h.  */
22874 _ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h.  */
22878 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22880 #define shl_load innocuous_shl_load
22881
22882 /* System header to define __stub macros and hopefully few prototypes,
22883     which can conflict with char shl_load (); below.
22884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22885     <limits.h> exists even on freestanding compilers.  */
22886
22887 #ifdef __STDC__
22888 # include <limits.h>
22889 #else
22890 # include <assert.h>
22891 #endif
22892
22893 #undef shl_load
22894
22895 /* Override any gcc2 internal prototype to avoid an error.  */
22896 #ifdef __cplusplus
22897 extern "C"
22898 {
22899 #endif
22900 /* We use char because int might match the return type of a gcc2
22901    builtin and then its argument prototype would still apply.  */
22902 char shl_load ();
22903 /* The GNU C library defines this for functions which it implements
22904     to always fail with ENOSYS.  Some functions are actually named
22905     something starting with __ and the normal name is an alias.  */
22906 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22907 choke me
22908 #else
22909 char (*f) () = shl_load;
22910 #endif
22911 #ifdef __cplusplus
22912 }
22913 #endif
22914
22915 int
22916 main ()
22917 {
22918 return f != shl_load;
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22925   (eval $ac_link) 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } &&
22932          { ac_try='test -z "$ac_c_werror_flag"
22933                          || test ! -s conftest.err'
22934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935   (eval $ac_try) 2>&5
22936   ac_status=$?
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); }; } &&
22939          { ac_try='test -s conftest$ac_exeext'
22940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941   (eval $ac_try) 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); }; }; then
22945   ac_cv_func_shl_load=yes
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950 ac_cv_func_shl_load=no
22951 fi
22952 rm -f conftest.err conftest.$ac_objext \
22953       conftest$ac_exeext conftest.$ac_ext
22954 fi
22955 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22956 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22957 if test $ac_cv_func_shl_load = yes; then
22958   lt_cv_dlopen="shl_load"
22959 else
22960   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22961 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22962 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22963   echo $ECHO_N "(cached) $ECHO_C" >&6
22964 else
22965   ac_check_lib_save_LIBS=$LIBS
22966 LIBS="-ldld  $LIBS"
22967 cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h.  */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h.  */
22973
22974 /* Override any gcc2 internal prototype to avoid an error.  */
22975 #ifdef __cplusplus
22976 extern "C"
22977 #endif
22978 /* We use char because int might match the return type of a gcc2
22979    builtin and then its argument prototype would still apply.  */
22980 char shl_load ();
22981 int
22982 main ()
22983 {
22984 shl_load ();
22985   ;
22986   return 0;
22987 }
22988 _ACEOF
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22991   (eval $ac_link) 2>conftest.er1
22992   ac_status=$?
22993   grep -v '^ *+' conftest.er1 >conftest.err
22994   rm -f conftest.er1
22995   cat conftest.err >&5
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); } &&
22998          { ac_try='test -z "$ac_c_werror_flag"
22999                          || test ! -s conftest.err'
23000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; } &&
23005          { ac_try='test -s conftest$ac_exeext'
23006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007   (eval $ac_try) 2>&5
23008   ac_status=$?
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); }; }; then
23011   ac_cv_lib_dld_shl_load=yes
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016 ac_cv_lib_dld_shl_load=no
23017 fi
23018 rm -f conftest.err conftest.$ac_objext \
23019       conftest$ac_exeext conftest.$ac_ext
23020 LIBS=$ac_check_lib_save_LIBS
23021 fi
23022 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23023 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23024 if test $ac_cv_lib_dld_shl_load = yes; then
23025   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23026 else
23027   echo "$as_me:$LINENO: checking for dlopen" >&5
23028 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23029 if test "${ac_cv_func_dlopen+set}" = set; then
23030   echo $ECHO_N "(cached) $ECHO_C" >&6
23031 else
23032   cat >conftest.$ac_ext <<_ACEOF
23033 /* confdefs.h.  */
23034 _ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h.  */
23038 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23040 #define dlopen innocuous_dlopen
23041
23042 /* System header to define __stub macros and hopefully few prototypes,
23043     which can conflict with char dlopen (); below.
23044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23045     <limits.h> exists even on freestanding compilers.  */
23046
23047 #ifdef __STDC__
23048 # include <limits.h>
23049 #else
23050 # include <assert.h>
23051 #endif
23052
23053 #undef dlopen
23054
23055 /* Override any gcc2 internal prototype to avoid an error.  */
23056 #ifdef __cplusplus
23057 extern "C"
23058 {
23059 #endif
23060 /* We use char because int might match the return type of a gcc2
23061    builtin and then its argument prototype would still apply.  */
23062 char dlopen ();
23063 /* The GNU C library defines this for functions which it implements
23064     to always fail with ENOSYS.  Some functions are actually named
23065     something starting with __ and the normal name is an alias.  */
23066 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23067 choke me
23068 #else
23069 char (*f) () = dlopen;
23070 #endif
23071 #ifdef __cplusplus
23072 }
23073 #endif
23074
23075 int
23076 main ()
23077 {
23078 return f != dlopen;
23079   ;
23080   return 0;
23081 }
23082 _ACEOF
23083 rm -f conftest.$ac_objext conftest$ac_exeext
23084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23085   (eval $ac_link) 2>conftest.er1
23086   ac_status=$?
23087   grep -v '^ *+' conftest.er1 >conftest.err
23088   rm -f conftest.er1
23089   cat conftest.err >&5
23090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091   (exit $ac_status); } &&
23092          { ac_try='test -z "$ac_c_werror_flag"
23093                          || test ! -s conftest.err'
23094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); }; } &&
23099          { ac_try='test -s conftest$ac_exeext'
23100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101   (eval $ac_try) 2>&5
23102   ac_status=$?
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); }; }; then
23105   ac_cv_func_dlopen=yes
23106 else
23107   echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23109
23110 ac_cv_func_dlopen=no
23111 fi
23112 rm -f conftest.err conftest.$ac_objext \
23113       conftest$ac_exeext conftest.$ac_ext
23114 fi
23115 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23116 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23117 if test $ac_cv_func_dlopen = yes; then
23118   lt_cv_dlopen="dlopen"
23119 else
23120   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23121 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23123   echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125   ac_check_lib_save_LIBS=$LIBS
23126 LIBS="-ldl  $LIBS"
23127 cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133
23134 /* Override any gcc2 internal prototype to avoid an error.  */
23135 #ifdef __cplusplus
23136 extern "C"
23137 #endif
23138 /* We use char because int might match the return type of a gcc2
23139    builtin and then its argument prototype would still apply.  */
23140 char dlopen ();
23141 int
23142 main ()
23143 {
23144 dlopen ();
23145   ;
23146   return 0;
23147 }
23148 _ACEOF
23149 rm -f conftest.$ac_objext conftest$ac_exeext
23150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23151   (eval $ac_link) 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } &&
23158          { ac_try='test -z "$ac_c_werror_flag"
23159                          || test ! -s conftest.err'
23160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161   (eval $ac_try) 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; } &&
23165          { ac_try='test -s conftest$ac_exeext'
23166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); }; }; then
23171   ac_cv_lib_dl_dlopen=yes
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176 ac_cv_lib_dl_dlopen=no
23177 fi
23178 rm -f conftest.err conftest.$ac_objext \
23179       conftest$ac_exeext conftest.$ac_ext
23180 LIBS=$ac_check_lib_save_LIBS
23181 fi
23182 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23183 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23184 if test $ac_cv_lib_dl_dlopen = yes; then
23185   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23186 else
23187   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23188 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23189 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23190   echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192   ac_check_lib_save_LIBS=$LIBS
23193 LIBS="-lsvld  $LIBS"
23194 cat >conftest.$ac_ext <<_ACEOF
23195 /* confdefs.h.  */
23196 _ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h.  */
23200
23201 /* Override any gcc2 internal prototype to avoid an error.  */
23202 #ifdef __cplusplus
23203 extern "C"
23204 #endif
23205 /* We use char because int might match the return type of a gcc2
23206    builtin and then its argument prototype would still apply.  */
23207 char dlopen ();
23208 int
23209 main ()
23210 {
23211 dlopen ();
23212   ;
23213   return 0;
23214 }
23215 _ACEOF
23216 rm -f conftest.$ac_objext conftest$ac_exeext
23217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23218   (eval $ac_link) 2>conftest.er1
23219   ac_status=$?
23220   grep -v '^ *+' conftest.er1 >conftest.err
23221   rm -f conftest.er1
23222   cat conftest.err >&5
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } &&
23225          { ac_try='test -z "$ac_c_werror_flag"
23226                          || test ! -s conftest.err'
23227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; } &&
23232          { ac_try='test -s conftest$ac_exeext'
23233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234   (eval $ac_try) 2>&5
23235   ac_status=$?
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); }; }; then
23238   ac_cv_lib_svld_dlopen=yes
23239 else
23240   echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23242
23243 ac_cv_lib_svld_dlopen=no
23244 fi
23245 rm -f conftest.err conftest.$ac_objext \
23246       conftest$ac_exeext conftest.$ac_ext
23247 LIBS=$ac_check_lib_save_LIBS
23248 fi
23249 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23250 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23251 if test $ac_cv_lib_svld_dlopen = yes; then
23252   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23253 else
23254   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23255 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23256 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23257   echo $ECHO_N "(cached) $ECHO_C" >&6
23258 else
23259   ac_check_lib_save_LIBS=$LIBS
23260 LIBS="-ldld  $LIBS"
23261 cat >conftest.$ac_ext <<_ACEOF
23262 /* confdefs.h.  */
23263 _ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h.  */
23267
23268 /* Override any gcc2 internal prototype to avoid an error.  */
23269 #ifdef __cplusplus
23270 extern "C"
23271 #endif
23272 /* We use char because int might match the return type of a gcc2
23273    builtin and then its argument prototype would still apply.  */
23274 char dld_link ();
23275 int
23276 main ()
23277 {
23278 dld_link ();
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23285   (eval $ac_link) 2>conftest.er1
23286   ac_status=$?
23287   grep -v '^ *+' conftest.er1 >conftest.err
23288   rm -f conftest.er1
23289   cat conftest.err >&5
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); } &&
23292          { ac_try='test -z "$ac_c_werror_flag"
23293                          || test ! -s conftest.err'
23294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295   (eval $ac_try) 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; } &&
23299          { ac_try='test -s conftest$ac_exeext'
23300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301   (eval $ac_try) 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); }; }; then
23305   ac_cv_lib_dld_dld_link=yes
23306 else
23307   echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_cv_lib_dld_dld_link=no
23311 fi
23312 rm -f conftest.err conftest.$ac_objext \
23313       conftest$ac_exeext conftest.$ac_ext
23314 LIBS=$ac_check_lib_save_LIBS
23315 fi
23316 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23317 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23318 if test $ac_cv_lib_dld_dld_link = yes; then
23319   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23320 fi
23321
23322
23323 fi
23324
23325
23326 fi
23327
23328
23329 fi
23330
23331
23332 fi
23333
23334
23335 fi
23336
23337     ;;
23338   esac
23339
23340   if test "x$lt_cv_dlopen" != xno; then
23341     enable_dlopen=yes
23342   else
23343     enable_dlopen=no
23344   fi
23345
23346   case $lt_cv_dlopen in
23347   dlopen)
23348     save_CPPFLAGS="$CPPFLAGS"
23349     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23350
23351     save_LDFLAGS="$LDFLAGS"
23352     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23353
23354     save_LIBS="$LIBS"
23355     LIBS="$lt_cv_dlopen_libs $LIBS"
23356
23357     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23358 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23359 if test "${lt_cv_dlopen_self+set}" = set; then
23360   echo $ECHO_N "(cached) $ECHO_C" >&6
23361 else
23362           if test "$cross_compiling" = yes; then :
23363   lt_cv_dlopen_self=cross
23364 else
23365   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23366   lt_status=$lt_dlunknown
23367   cat > conftest.$ac_ext <<EOF
23368 #line 23368 "configure"
23369 #include "confdefs.h"
23370
23371 #if HAVE_DLFCN_H
23372 #include <dlfcn.h>
23373 #endif
23374
23375 #include <stdio.h>
23376
23377 #ifdef RTLD_GLOBAL
23378 #  define LT_DLGLOBAL           RTLD_GLOBAL
23379 #else
23380 #  ifdef DL_GLOBAL
23381 #    define LT_DLGLOBAL         DL_GLOBAL
23382 #  else
23383 #    define LT_DLGLOBAL         0
23384 #  endif
23385 #endif
23386
23387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23388    find out it does not work in some platform. */
23389 #ifndef LT_DLLAZY_OR_NOW
23390 #  ifdef RTLD_LAZY
23391 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23392 #  else
23393 #    ifdef DL_LAZY
23394 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23395 #    else
23396 #      ifdef RTLD_NOW
23397 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23398 #      else
23399 #        ifdef DL_NOW
23400 #          define LT_DLLAZY_OR_NOW      DL_NOW
23401 #        else
23402 #          define LT_DLLAZY_OR_NOW      0
23403 #        endif
23404 #      endif
23405 #    endif
23406 #  endif
23407 #endif
23408
23409 #ifdef __cplusplus
23410 extern "C" void exit (int);
23411 #endif
23412
23413 void fnord() { int i=42;}
23414 int main ()
23415 {
23416   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23417   int status = $lt_dlunknown;
23418
23419   if (self)
23420     {
23421       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23422       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23423       /* dlclose (self); */
23424     }
23425
23426     exit (status);
23427 }
23428 EOF
23429   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23430   (eval $ac_link) 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23434     (./conftest; exit; ) 2>/dev/null
23435     lt_status=$?
23436     case x$lt_status in
23437       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23438       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23439       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23440     esac
23441   else :
23442     # compilation failed
23443     lt_cv_dlopen_self=no
23444   fi
23445 fi
23446 rm -fr conftest*
23447
23448
23449 fi
23450 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23451 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23452
23453     if test "x$lt_cv_dlopen_self" = xyes; then
23454       LDFLAGS="$LDFLAGS $link_static_flag"
23455       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23456 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23457 if test "${lt_cv_dlopen_self_static+set}" = set; then
23458   echo $ECHO_N "(cached) $ECHO_C" >&6
23459 else
23460           if test "$cross_compiling" = yes; then :
23461   lt_cv_dlopen_self_static=cross
23462 else
23463   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23464   lt_status=$lt_dlunknown
23465   cat > conftest.$ac_ext <<EOF
23466 #line 23466 "configure"
23467 #include "confdefs.h"
23468
23469 #if HAVE_DLFCN_H
23470 #include <dlfcn.h>
23471 #endif
23472
23473 #include <stdio.h>
23474
23475 #ifdef RTLD_GLOBAL
23476 #  define LT_DLGLOBAL           RTLD_GLOBAL
23477 #else
23478 #  ifdef DL_GLOBAL
23479 #    define LT_DLGLOBAL         DL_GLOBAL
23480 #  else
23481 #    define LT_DLGLOBAL         0
23482 #  endif
23483 #endif
23484
23485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23486    find out it does not work in some platform. */
23487 #ifndef LT_DLLAZY_OR_NOW
23488 #  ifdef RTLD_LAZY
23489 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23490 #  else
23491 #    ifdef DL_LAZY
23492 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23493 #    else
23494 #      ifdef RTLD_NOW
23495 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23496 #      else
23497 #        ifdef DL_NOW
23498 #          define LT_DLLAZY_OR_NOW      DL_NOW
23499 #        else
23500 #          define LT_DLLAZY_OR_NOW      0
23501 #        endif
23502 #      endif
23503 #    endif
23504 #  endif
23505 #endif
23506
23507 #ifdef __cplusplus
23508 extern "C" void exit (int);
23509 #endif
23510
23511 void fnord() { int i=42;}
23512 int main ()
23513 {
23514   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23515   int status = $lt_dlunknown;
23516
23517   if (self)
23518     {
23519       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23520       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23521       /* dlclose (self); */
23522     }
23523
23524     exit (status);
23525 }
23526 EOF
23527   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23528   (eval $ac_link) 2>&5
23529   ac_status=$?
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23532     (./conftest; exit; ) 2>/dev/null
23533     lt_status=$?
23534     case x$lt_status in
23535       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23536       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23537       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23538     esac
23539   else :
23540     # compilation failed
23541     lt_cv_dlopen_self_static=no
23542   fi
23543 fi
23544 rm -fr conftest*
23545
23546
23547 fi
23548 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23549 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23550     fi
23551
23552     CPPFLAGS="$save_CPPFLAGS"
23553     LDFLAGS="$save_LDFLAGS"
23554     LIBS="$save_LIBS"
23555     ;;
23556   esac
23557
23558   case $lt_cv_dlopen_self in
23559   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23560   *) enable_dlopen_self=unknown ;;
23561   esac
23562
23563   case $lt_cv_dlopen_self_static in
23564   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23565   *) enable_dlopen_self_static=unknown ;;
23566   esac
23567 fi
23568
23569
23570 # The else clause should only fire when bootstrapping the
23571 # libtool distribution, otherwise you forgot to ship ltmain.sh
23572 # with your package, and you will get complaints that there are
23573 # no rules to generate ltmain.sh.
23574 if test -f "$ltmain"; then
23575   # See if we are running on zsh, and set the options which allow our commands through
23576   # without removal of \ escapes.
23577   if test -n "${ZSH_VERSION+set}" ; then
23578     setopt NO_GLOB_SUBST
23579   fi
23580   # Now quote all the things that may contain metacharacters while being
23581   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23582   # variables and quote the copies for generation of the libtool script.
23583   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23584     SED SHELL STRIP \
23585     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23586     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23587     deplibs_check_method reload_flag reload_cmds need_locks \
23588     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23589     lt_cv_sys_global_symbol_to_c_name_address \
23590     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23591     old_postinstall_cmds old_postuninstall_cmds \
23592     compiler_GCJ \
23593     CC_GCJ \
23594     LD_GCJ \
23595     lt_prog_compiler_wl_GCJ \
23596     lt_prog_compiler_pic_GCJ \
23597     lt_prog_compiler_static_GCJ \
23598     lt_prog_compiler_no_builtin_flag_GCJ \
23599     export_dynamic_flag_spec_GCJ \
23600     thread_safe_flag_spec_GCJ \
23601     whole_archive_flag_spec_GCJ \
23602     enable_shared_with_static_runtimes_GCJ \
23603     old_archive_cmds_GCJ \
23604     old_archive_from_new_cmds_GCJ \
23605     predep_objects_GCJ \
23606     postdep_objects_GCJ \
23607     predeps_GCJ \
23608     postdeps_GCJ \
23609     compiler_lib_search_path_GCJ \
23610     archive_cmds_GCJ \
23611     archive_expsym_cmds_GCJ \
23612     postinstall_cmds_GCJ \
23613     postuninstall_cmds_GCJ \
23614     old_archive_from_expsyms_cmds_GCJ \
23615     allow_undefined_flag_GCJ \
23616     no_undefined_flag_GCJ \
23617     export_symbols_cmds_GCJ \
23618     hardcode_libdir_flag_spec_GCJ \
23619     hardcode_libdir_flag_spec_ld_GCJ \
23620     hardcode_libdir_separator_GCJ \
23621     hardcode_automatic_GCJ \
23622     module_cmds_GCJ \
23623     module_expsym_cmds_GCJ \
23624     lt_cv_prog_compiler_c_o_GCJ \
23625     exclude_expsyms_GCJ \
23626     include_expsyms_GCJ; do
23627
23628     case $var in
23629     old_archive_cmds_GCJ | \
23630     old_archive_from_new_cmds_GCJ | \
23631     archive_cmds_GCJ | \
23632     archive_expsym_cmds_GCJ | \
23633     module_cmds_GCJ | \
23634     module_expsym_cmds_GCJ | \
23635     old_archive_from_expsyms_cmds_GCJ | \
23636     export_symbols_cmds_GCJ | \
23637     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23638     postinstall_cmds | postuninstall_cmds | \
23639     old_postinstall_cmds | old_postuninstall_cmds | \
23640     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23641       # Double-quote double-evaled strings.
23642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23643       ;;
23644     *)
23645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23646       ;;
23647     esac
23648   done
23649
23650   case $lt_echo in
23651   *'\$0 --fallback-echo"')
23652     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23653     ;;
23654   esac
23655
23656 cfgfile="$ofile"
23657
23658   cat <<__EOF__ >> "$cfgfile"
23659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23660
23661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23662
23663 # Shell to use when invoking shell scripts.
23664 SHELL=$lt_SHELL
23665
23666 # Whether or not to build shared libraries.
23667 build_libtool_libs=$enable_shared
23668
23669 # Whether or not to build static libraries.
23670 build_old_libs=$enable_static
23671
23672 # Whether or not to add -lc for building shared libraries.
23673 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23674
23675 # Whether or not to disallow shared libs when runtime libs are static
23676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23677
23678 # Whether or not to optimize for fast installation.
23679 fast_install=$enable_fast_install
23680
23681 # The host system.
23682 host_alias=$host_alias
23683 host=$host
23684
23685 # An echo program that does not interpret backslashes.
23686 echo=$lt_echo
23687
23688 # The archiver.
23689 AR=$lt_AR
23690 AR_FLAGS=$lt_AR_FLAGS
23691
23692 # A C compiler.
23693 LTCC=$lt_LTCC
23694
23695 # A language-specific compiler.
23696 CC=$lt_compiler_GCJ
23697
23698 # Is the compiler the GNU C compiler?
23699 with_gcc=$GCC_GCJ
23700
23701 # An ERE matcher.
23702 EGREP=$lt_EGREP
23703
23704 # The linker used to build libraries.
23705 LD=$lt_LD_GCJ
23706
23707 # Whether we need hard or soft links.
23708 LN_S=$lt_LN_S
23709
23710 # A BSD-compatible nm program.
23711 NM=$lt_NM
23712
23713 # A symbol stripping program
23714 STRIP=$lt_STRIP
23715
23716 # Used to examine libraries when file_magic_cmd begins "file"
23717 MAGIC_CMD=$MAGIC_CMD
23718
23719 # Used on cygwin: DLL creation program.
23720 DLLTOOL="$DLLTOOL"
23721
23722 # Used on cygwin: object dumper.
23723 OBJDUMP="$OBJDUMP"
23724
23725 # Used on cygwin: assembler.
23726 AS="$AS"
23727
23728 # The name of the directory that contains temporary libtool files.
23729 objdir=$objdir
23730
23731 # How to create reloadable object files.
23732 reload_flag=$lt_reload_flag
23733 reload_cmds=$lt_reload_cmds
23734
23735 # How to pass a linker flag through the compiler.
23736 wl=$lt_lt_prog_compiler_wl_GCJ
23737
23738 # Object file suffix (normally "o").
23739 objext="$ac_objext"
23740
23741 # Old archive suffix (normally "a").
23742 libext="$libext"
23743
23744 # Shared library suffix (normally ".so").
23745 shrext_cmds='$shrext_cmds'
23746
23747 # Executable file suffix (normally "").
23748 exeext="$exeext"
23749
23750 # Additional compiler flags for building library objects.
23751 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23752 pic_mode=$pic_mode
23753
23754 # What is the maximum length of a command?
23755 max_cmd_len=$lt_cv_sys_max_cmd_len
23756
23757 # Does compiler simultaneously support -c and -o options?
23758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23759
23760 # Must we lock files when doing compilation ?
23761 need_locks=$lt_need_locks
23762
23763 # Do we need the lib prefix for modules?
23764 need_lib_prefix=$need_lib_prefix
23765
23766 # Do we need a version for libraries?
23767 need_version=$need_version
23768
23769 # Whether dlopen is supported.
23770 dlopen_support=$enable_dlopen
23771
23772 # Whether dlopen of programs is supported.
23773 dlopen_self=$enable_dlopen_self
23774
23775 # Whether dlopen of statically linked programs is supported.
23776 dlopen_self_static=$enable_dlopen_self_static
23777
23778 # Compiler flag to prevent dynamic linking.
23779 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23780
23781 # Compiler flag to turn off builtin functions.
23782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23783
23784 # Compiler flag to allow reflexive dlopens.
23785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23786
23787 # Compiler flag to generate shared objects directly from archives.
23788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23789
23790 # Compiler flag to generate thread-safe objects.
23791 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23792
23793 # Library versioning type.
23794 version_type=$version_type
23795
23796 # Format of library name prefix.
23797 libname_spec=$lt_libname_spec
23798
23799 # List of archive names.  First name is the real one, the rest are links.
23800 # The last name is the one that the linker finds with -lNAME.
23801 library_names_spec=$lt_library_names_spec
23802
23803 # The coded name of the library, if different from the real name.
23804 soname_spec=$lt_soname_spec
23805
23806 # Commands used to build and install an old-style archive.
23807 RANLIB=$lt_RANLIB
23808 old_archive_cmds=$lt_old_archive_cmds_GCJ
23809 old_postinstall_cmds=$lt_old_postinstall_cmds
23810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23811
23812 # Create an old-style archive from a shared archive.
23813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23814
23815 # Create a temporary old-style archive to link instead of a shared archive.
23816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23817
23818 # Commands used to build and install a shared archive.
23819 archive_cmds=$lt_archive_cmds_GCJ
23820 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23821 postinstall_cmds=$lt_postinstall_cmds
23822 postuninstall_cmds=$lt_postuninstall_cmds
23823
23824 # Commands used to build a loadable module (assumed same as above if empty)
23825 module_cmds=$lt_module_cmds_GCJ
23826 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23827
23828 # Commands to strip libraries.
23829 old_striplib=$lt_old_striplib
23830 striplib=$lt_striplib
23831
23832 # Dependencies to place before the objects being linked to create a
23833 # shared library.
23834 predep_objects=$lt_predep_objects_GCJ
23835
23836 # Dependencies to place after the objects being linked to create a
23837 # shared library.
23838 postdep_objects=$lt_postdep_objects_GCJ
23839
23840 # Dependencies to place before the objects being linked to create a
23841 # shared library.
23842 predeps=$lt_predeps_GCJ
23843
23844 # Dependencies to place after the objects being linked to create a
23845 # shared library.
23846 postdeps=$lt_postdeps_GCJ
23847
23848 # The library search path used internally by the compiler when linking
23849 # a shared library.
23850 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23851
23852 # Method to check whether dependent libraries are shared objects.
23853 deplibs_check_method=$lt_deplibs_check_method
23854
23855 # Command to use when deplibs_check_method == file_magic.
23856 file_magic_cmd=$lt_file_magic_cmd
23857
23858 # Flag that allows shared libraries with undefined symbols to be built.
23859 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23860
23861 # Flag that forces no undefined symbols.
23862 no_undefined_flag=$lt_no_undefined_flag_GCJ
23863
23864 # Commands used to finish a libtool library installation in a directory.
23865 finish_cmds=$lt_finish_cmds
23866
23867 # Same as above, but a single script fragment to be evaled but not shown.
23868 finish_eval=$lt_finish_eval
23869
23870 # Take the output of nm and produce a listing of raw symbols and C names.
23871 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23872
23873 # Transform the output of nm in a proper C declaration
23874 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23875
23876 # Transform the output of nm in a C name address pair
23877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23878
23879 # This is the shared library runtime path variable.
23880 runpath_var=$runpath_var
23881
23882 # This is the shared library path variable.
23883 shlibpath_var=$shlibpath_var
23884
23885 # Is shlibpath searched before the hard-coded library search path?
23886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23887
23888 # How to hardcode a shared library path into an executable.
23889 hardcode_action=$hardcode_action_GCJ
23890
23891 # Whether we should hardcode library paths into libraries.
23892 hardcode_into_libs=$hardcode_into_libs
23893
23894 # Flag to hardcode \$libdir into a binary during linking.
23895 # This must work even if \$libdir does not exist.
23896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23897
23898 # If ld is used when linking, flag to hardcode \$libdir into
23899 # a binary during linking. This must work even if \$libdir does
23900 # not exist.
23901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23902
23903 # Whether we need a single -rpath flag with a separated argument.
23904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23905
23906 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23907 # resulting binary.
23908 hardcode_direct=$hardcode_direct_GCJ
23909
23910 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23911 # resulting binary.
23912 hardcode_minus_L=$hardcode_minus_L_GCJ
23913
23914 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23915 # the resulting binary.
23916 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23917
23918 # Set to yes if building a shared library automatically hardcodes DIR into the library
23919 # and all subsequent libraries and executables linked against it.
23920 hardcode_automatic=$hardcode_automatic_GCJ
23921
23922 # Variables whose values should be saved in libtool wrapper scripts and
23923 # restored at relink time.
23924 variables_saved_for_relink="$variables_saved_for_relink"
23925
23926 # Whether libtool must link a program against all its dependency libraries.
23927 link_all_deplibs=$link_all_deplibs_GCJ
23928
23929 # Compile-time system search path for libraries
23930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23931
23932 # Run-time system search path for libraries
23933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23934
23935 # Fix the shell variable \$srcfile for the compiler.
23936 fix_srcfile_path="$fix_srcfile_path_GCJ"
23937
23938 # Set to yes if exported symbols are required.
23939 always_export_symbols=$always_export_symbols_GCJ
23940
23941 # The commands to list exported symbols.
23942 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23943
23944 # The commands to extract the exported symbol list from a shared archive.
23945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23946
23947 # Symbols that should not be listed in the preloaded symbols.
23948 exclude_expsyms=$lt_exclude_expsyms_GCJ
23949
23950 # Symbols that must always be exported.
23951 include_expsyms=$lt_include_expsyms_GCJ
23952
23953 # ### END LIBTOOL TAG CONFIG: $tagname
23954
23955 __EOF__
23956
23957
23958 else
23959   # If there is no Makefile yet, we rely on a make rule to execute
23960   # `config.status --recheck' to rerun these tests and create the
23961   # libtool script then.
23962   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23963   if test -f "$ltmain_in"; then
23964     test -f Makefile && make "$ltmain"
23965   fi
23966 fi
23967
23968
23969 ac_ext=c
23970 ac_cpp='$CPP $CPPFLAGS'
23971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23974
23975 CC="$lt_save_CC"
23976
23977         else
23978           tagname=""
23979         fi
23980         ;;
23981
23982       RC)
23983         ac_ext=c
23984 ac_cpp='$CPP $CPPFLAGS'
23985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23988
23989
23990 # Source file extension for RC test sources.
23991 ac_ext=rc
23992
23993 # Object file extension for compiled RC test sources.
23994 objext=o
23995 objext_RC=$objext
23996
23997 # Code to be used in simple compile tests
23998 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23999
24000 # Code to be used in simple link tests
24001 lt_simple_link_test_code="$lt_simple_compile_test_code"
24002
24003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24004
24005 # If no C compiler was specified, use CC.
24006 LTCC=${LTCC-"$CC"}
24007
24008 # Allow CC to be a program name with arguments.
24009 compiler=$CC
24010
24011
24012 # Allow CC to be a program name with arguments.
24013 lt_save_CC="$CC"
24014 CC=${RC-"windres"}
24015 compiler=$CC
24016 compiler_RC=$CC
24017 lt_cv_prog_compiler_c_o_RC=yes
24018
24019 # The else clause should only fire when bootstrapping the
24020 # libtool distribution, otherwise you forgot to ship ltmain.sh
24021 # with your package, and you will get complaints that there are
24022 # no rules to generate ltmain.sh.
24023 if test -f "$ltmain"; then
24024   # See if we are running on zsh, and set the options which allow our commands through
24025   # without removal of \ escapes.
24026   if test -n "${ZSH_VERSION+set}" ; then
24027     setopt NO_GLOB_SUBST
24028   fi
24029   # Now quote all the things that may contain metacharacters while being
24030   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24031   # variables and quote the copies for generation of the libtool script.
24032   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24033     SED SHELL STRIP \
24034     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24035     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24036     deplibs_check_method reload_flag reload_cmds need_locks \
24037     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24038     lt_cv_sys_global_symbol_to_c_name_address \
24039     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24040     old_postinstall_cmds old_postuninstall_cmds \
24041     compiler_RC \
24042     CC_RC \
24043     LD_RC \
24044     lt_prog_compiler_wl_RC \
24045     lt_prog_compiler_pic_RC \
24046     lt_prog_compiler_static_RC \
24047     lt_prog_compiler_no_builtin_flag_RC \
24048     export_dynamic_flag_spec_RC \
24049     thread_safe_flag_spec_RC \
24050     whole_archive_flag_spec_RC \
24051     enable_shared_with_static_runtimes_RC \
24052     old_archive_cmds_RC \
24053     old_archive_from_new_cmds_RC \
24054     predep_objects_RC \
24055     postdep_objects_RC \
24056     predeps_RC \
24057     postdeps_RC \
24058     compiler_lib_search_path_RC \
24059     archive_cmds_RC \
24060     archive_expsym_cmds_RC \
24061     postinstall_cmds_RC \
24062     postuninstall_cmds_RC \
24063     old_archive_from_expsyms_cmds_RC \
24064     allow_undefined_flag_RC \
24065     no_undefined_flag_RC \
24066     export_symbols_cmds_RC \
24067     hardcode_libdir_flag_spec_RC \
24068     hardcode_libdir_flag_spec_ld_RC \
24069     hardcode_libdir_separator_RC \
24070     hardcode_automatic_RC \
24071     module_cmds_RC \
24072     module_expsym_cmds_RC \
24073     lt_cv_prog_compiler_c_o_RC \
24074     exclude_expsyms_RC \
24075     include_expsyms_RC; do
24076
24077     case $var in
24078     old_archive_cmds_RC | \
24079     old_archive_from_new_cmds_RC | \
24080     archive_cmds_RC | \
24081     archive_expsym_cmds_RC | \
24082     module_cmds_RC | \
24083     module_expsym_cmds_RC | \
24084     old_archive_from_expsyms_cmds_RC | \
24085     export_symbols_cmds_RC | \
24086     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24087     postinstall_cmds | postuninstall_cmds | \
24088     old_postinstall_cmds | old_postuninstall_cmds | \
24089     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24090       # Double-quote double-evaled strings.
24091       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24092       ;;
24093     *)
24094       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24095       ;;
24096     esac
24097   done
24098
24099   case $lt_echo in
24100   *'\$0 --fallback-echo"')
24101     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24102     ;;
24103   esac
24104
24105 cfgfile="$ofile"
24106
24107   cat <<__EOF__ >> "$cfgfile"
24108 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24109
24110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24111
24112 # Shell to use when invoking shell scripts.
24113 SHELL=$lt_SHELL
24114
24115 # Whether or not to build shared libraries.
24116 build_libtool_libs=$enable_shared
24117
24118 # Whether or not to build static libraries.
24119 build_old_libs=$enable_static
24120
24121 # Whether or not to add -lc for building shared libraries.
24122 build_libtool_need_lc=$archive_cmds_need_lc_RC
24123
24124 # Whether or not to disallow shared libs when runtime libs are static
24125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24126
24127 # Whether or not to optimize for fast installation.
24128 fast_install=$enable_fast_install
24129
24130 # The host system.
24131 host_alias=$host_alias
24132 host=$host
24133
24134 # An echo program that does not interpret backslashes.
24135 echo=$lt_echo
24136
24137 # The archiver.
24138 AR=$lt_AR
24139 AR_FLAGS=$lt_AR_FLAGS
24140
24141 # A C compiler.
24142 LTCC=$lt_LTCC
24143
24144 # A language-specific compiler.
24145 CC=$lt_compiler_RC
24146
24147 # Is the compiler the GNU C compiler?
24148 with_gcc=$GCC_RC
24149
24150 # An ERE matcher.
24151 EGREP=$lt_EGREP
24152
24153 # The linker used to build libraries.
24154 LD=$lt_LD_RC
24155
24156 # Whether we need hard or soft links.
24157 LN_S=$lt_LN_S
24158
24159 # A BSD-compatible nm program.
24160 NM=$lt_NM
24161
24162 # A symbol stripping program
24163 STRIP=$lt_STRIP
24164
24165 # Used to examine libraries when file_magic_cmd begins "file"
24166 MAGIC_CMD=$MAGIC_CMD
24167
24168 # Used on cygwin: DLL creation program.
24169 DLLTOOL="$DLLTOOL"
24170
24171 # Used on cygwin: object dumper.
24172 OBJDUMP="$OBJDUMP"
24173
24174 # Used on cygwin: assembler.
24175 AS="$AS"
24176
24177 # The name of the directory that contains temporary libtool files.
24178 objdir=$objdir
24179
24180 # How to create reloadable object files.
24181 reload_flag=$lt_reload_flag
24182 reload_cmds=$lt_reload_cmds
24183
24184 # How to pass a linker flag through the compiler.
24185 wl=$lt_lt_prog_compiler_wl_RC
24186
24187 # Object file suffix (normally "o").
24188 objext="$ac_objext"
24189
24190 # Old archive suffix (normally "a").
24191 libext="$libext"
24192
24193 # Shared library suffix (normally ".so").
24194 shrext_cmds='$shrext_cmds'
24195
24196 # Executable file suffix (normally "").
24197 exeext="$exeext"
24198
24199 # Additional compiler flags for building library objects.
24200 pic_flag=$lt_lt_prog_compiler_pic_RC
24201 pic_mode=$pic_mode
24202
24203 # What is the maximum length of a command?
24204 max_cmd_len=$lt_cv_sys_max_cmd_len
24205
24206 # Does compiler simultaneously support -c and -o options?
24207 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24208
24209 # Must we lock files when doing compilation ?
24210 need_locks=$lt_need_locks
24211
24212 # Do we need the lib prefix for modules?
24213 need_lib_prefix=$need_lib_prefix
24214
24215 # Do we need a version for libraries?
24216 need_version=$need_version
24217
24218 # Whether dlopen is supported.
24219 dlopen_support=$enable_dlopen
24220
24221 # Whether dlopen of programs is supported.
24222 dlopen_self=$enable_dlopen_self
24223
24224 # Whether dlopen of statically linked programs is supported.
24225 dlopen_self_static=$enable_dlopen_self_static
24226
24227 # Compiler flag to prevent dynamic linking.
24228 link_static_flag=$lt_lt_prog_compiler_static_RC
24229
24230 # Compiler flag to turn off builtin functions.
24231 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24232
24233 # Compiler flag to allow reflexive dlopens.
24234 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24235
24236 # Compiler flag to generate shared objects directly from archives.
24237 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24238
24239 # Compiler flag to generate thread-safe objects.
24240 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24241
24242 # Library versioning type.
24243 version_type=$version_type
24244
24245 # Format of library name prefix.
24246 libname_spec=$lt_libname_spec
24247
24248 # List of archive names.  First name is the real one, the rest are links.
24249 # The last name is the one that the linker finds with -lNAME.
24250 library_names_spec=$lt_library_names_spec
24251
24252 # The coded name of the library, if different from the real name.
24253 soname_spec=$lt_soname_spec
24254
24255 # Commands used to build and install an old-style archive.
24256 RANLIB=$lt_RANLIB
24257 old_archive_cmds=$lt_old_archive_cmds_RC
24258 old_postinstall_cmds=$lt_old_postinstall_cmds
24259 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24260
24261 # Create an old-style archive from a shared archive.
24262 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24263
24264 # Create a temporary old-style archive to link instead of a shared archive.
24265 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24266
24267 # Commands used to build and install a shared archive.
24268 archive_cmds=$lt_archive_cmds_RC
24269 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24270 postinstall_cmds=$lt_postinstall_cmds
24271 postuninstall_cmds=$lt_postuninstall_cmds
24272
24273 # Commands used to build a loadable module (assumed same as above if empty)
24274 module_cmds=$lt_module_cmds_RC
24275 module_expsym_cmds=$lt_module_expsym_cmds_RC
24276
24277 # Commands to strip libraries.
24278 old_striplib=$lt_old_striplib
24279 striplib=$lt_striplib
24280
24281 # Dependencies to place before the objects being linked to create a
24282 # shared library.
24283 predep_objects=$lt_predep_objects_RC
24284
24285 # Dependencies to place after the objects being linked to create a
24286 # shared library.
24287 postdep_objects=$lt_postdep_objects_RC
24288
24289 # Dependencies to place before the objects being linked to create a
24290 # shared library.
24291 predeps=$lt_predeps_RC
24292
24293 # Dependencies to place after the objects being linked to create a
24294 # shared library.
24295 postdeps=$lt_postdeps_RC
24296
24297 # The library search path used internally by the compiler when linking
24298 # a shared library.
24299 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24300
24301 # Method to check whether dependent libraries are shared objects.
24302 deplibs_check_method=$lt_deplibs_check_method
24303
24304 # Command to use when deplibs_check_method == file_magic.
24305 file_magic_cmd=$lt_file_magic_cmd
24306
24307 # Flag that allows shared libraries with undefined symbols to be built.
24308 allow_undefined_flag=$lt_allow_undefined_flag_RC
24309
24310 # Flag that forces no undefined symbols.
24311 no_undefined_flag=$lt_no_undefined_flag_RC
24312
24313 # Commands used to finish a libtool library installation in a directory.
24314 finish_cmds=$lt_finish_cmds
24315
24316 # Same as above, but a single script fragment to be evaled but not shown.
24317 finish_eval=$lt_finish_eval
24318
24319 # Take the output of nm and produce a listing of raw symbols and C names.
24320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24321
24322 # Transform the output of nm in a proper C declaration
24323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24324
24325 # Transform the output of nm in a C name address pair
24326 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24327
24328 # This is the shared library runtime path variable.
24329 runpath_var=$runpath_var
24330
24331 # This is the shared library path variable.
24332 shlibpath_var=$shlibpath_var
24333
24334 # Is shlibpath searched before the hard-coded library search path?
24335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24336
24337 # How to hardcode a shared library path into an executable.
24338 hardcode_action=$hardcode_action_RC
24339
24340 # Whether we should hardcode library paths into libraries.
24341 hardcode_into_libs=$hardcode_into_libs
24342
24343 # Flag to hardcode \$libdir into a binary during linking.
24344 # This must work even if \$libdir does not exist.
24345 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24346
24347 # If ld is used when linking, flag to hardcode \$libdir into
24348 # a binary during linking. This must work even if \$libdir does
24349 # not exist.
24350 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24351
24352 # Whether we need a single -rpath flag with a separated argument.
24353 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24354
24355 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24356 # resulting binary.
24357 hardcode_direct=$hardcode_direct_RC
24358
24359 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24360 # resulting binary.
24361 hardcode_minus_L=$hardcode_minus_L_RC
24362
24363 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24364 # the resulting binary.
24365 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24366
24367 # Set to yes if building a shared library automatically hardcodes DIR into the library
24368 # and all subsequent libraries and executables linked against it.
24369 hardcode_automatic=$hardcode_automatic_RC
24370
24371 # Variables whose values should be saved in libtool wrapper scripts and
24372 # restored at relink time.
24373 variables_saved_for_relink="$variables_saved_for_relink"
24374
24375 # Whether libtool must link a program against all its dependency libraries.
24376 link_all_deplibs=$link_all_deplibs_RC
24377
24378 # Compile-time system search path for libraries
24379 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24380
24381 # Run-time system search path for libraries
24382 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24383
24384 # Fix the shell variable \$srcfile for the compiler.
24385 fix_srcfile_path="$fix_srcfile_path_RC"
24386
24387 # Set to yes if exported symbols are required.
24388 always_export_symbols=$always_export_symbols_RC
24389
24390 # The commands to list exported symbols.
24391 export_symbols_cmds=$lt_export_symbols_cmds_RC
24392
24393 # The commands to extract the exported symbol list from a shared archive.
24394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24395
24396 # Symbols that should not be listed in the preloaded symbols.
24397 exclude_expsyms=$lt_exclude_expsyms_RC
24398
24399 # Symbols that must always be exported.
24400 include_expsyms=$lt_include_expsyms_RC
24401
24402 # ### END LIBTOOL TAG CONFIG: $tagname
24403
24404 __EOF__
24405
24406
24407 else
24408   # If there is no Makefile yet, we rely on a make rule to execute
24409   # `config.status --recheck' to rerun these tests and create the
24410   # libtool script then.
24411   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24412   if test -f "$ltmain_in"; then
24413     test -f Makefile && make "$ltmain"
24414   fi
24415 fi
24416
24417
24418 ac_ext=c
24419 ac_cpp='$CPP $CPPFLAGS'
24420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24423
24424 CC="$lt_save_CC"
24425
24426         ;;
24427
24428       *)
24429         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24430 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24431    { (exit 1); exit 1; }; }
24432         ;;
24433       esac
24434
24435       # Append the new tag name to the list of available tags.
24436       if test -n "$tagname" ; then
24437       available_tags="$available_tags $tagname"
24438     fi
24439     fi
24440   done
24441   IFS="$lt_save_ifs"
24442
24443   # Now substitute the updated list of available tags.
24444   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24445     mv "${ofile}T" "$ofile"
24446     chmod +x "$ofile"
24447   else
24448     rm -f "${ofile}T"
24449     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24450 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24451    { (exit 1); exit 1; }; }
24452   fi
24453 fi
24454
24455
24456
24457 # This can be used to rebuild libtool when needed
24458 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24459
24460 # Always use our own libtool.
24461 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24462
24463 # Prevent multiple expansion
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485 etags_version=`$ETAGS --version 2>&1`
24486 case "$etags_version" in
24487         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24488         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24489         *) ETAGSFLAGS="" ;;
24490 esac
24491 ETAGSFLAGS=$ETAGSFLAGS
24492
24493
24494 echo "$as_me:$LINENO: checking tool compatibility" >&5
24495 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24496
24497 ICC=no
24498 IXX=no
24499 case $CC in
24500   icc*|icpc*)
24501     ICC=yes
24502     IXX=yes
24503     ;;
24504    *)
24505     ;;
24506 esac
24507
24508 if test "$GCC" != "yes" && test "$ICC" != "yes"
24509 then
24510   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24511 echo "$as_me: error: gcc|icc required but not found" >&2;}
24512    { (exit 1); exit 1; }; }
24513 fi
24514
24515 if test "$GXX" != "yes" && test "$IXX" != "yes"
24516 then
24517   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24518 echo "$as_me: error: g++|icc required but not found" >&2;}
24519    { (exit 1); exit 1; }; }
24520 fi
24521
24522 if test "$GCC" = "yes"
24523 then
24524   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24525   if test "$gccmajor" -lt "3"
24526   then
24527     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24528 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24529    { (exit 1); exit 1; }; }
24530   fi
24531 fi
24532
24533 if test -z "$llvm_cv_gnu_make_command"
24534 then
24535   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24536 echo "$as_me: error: GNU Make required but not found" >&2;}
24537    { (exit 1); exit 1; }; }
24538 fi
24539
24540 echo "$as_me:$LINENO: result: ok" >&5
24541 echo "${ECHO_T}ok" >&6
24542
24543
24544
24545 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24546 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24547 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24548   echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550   ac_check_lib_save_LIBS=$LIBS
24551 LIBS="-lelf  $LIBS"
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h.  */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h.  */
24558
24559 /* Override any gcc2 internal prototype to avoid an error.  */
24560 #ifdef __cplusplus
24561 extern "C"
24562 #endif
24563 /* We use char because int might match the return type of a gcc2
24564    builtin and then its argument prototype would still apply.  */
24565 char elf_begin ();
24566 int
24567 main ()
24568 {
24569 elf_begin ();
24570   ;
24571   return 0;
24572 }
24573 _ACEOF
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576   (eval $ac_link) 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } &&
24583          { ac_try='test -z "$ac_c_werror_flag"
24584                          || test ! -s conftest.err'
24585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586   (eval $ac_try) 2>&5
24587   ac_status=$?
24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); }; } &&
24590          { ac_try='test -s conftest$ac_exeext'
24591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592   (eval $ac_try) 2>&5
24593   ac_status=$?
24594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595   (exit $ac_status); }; }; then
24596   ac_cv_lib_elf_elf_begin=yes
24597 else
24598   echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24600
24601 ac_cv_lib_elf_elf_begin=no
24602 fi
24603 rm -f conftest.err conftest.$ac_objext \
24604       conftest$ac_exeext conftest.$ac_ext
24605 LIBS=$ac_check_lib_save_LIBS
24606 fi
24607 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24608 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24609 if test $ac_cv_lib_elf_elf_begin = yes; then
24610   cat >>confdefs.h <<_ACEOF
24611 #define HAVE_LIBELF 1
24612 _ACEOF
24613
24614   LIBS="-lelf $LIBS"
24615
24616 fi
24617
24618
24619 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24620 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24621 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24622   echo $ECHO_N "(cached) $ECHO_C" >&6
24623 else
24624   ac_func_search_save_LIBS=$LIBS
24625 ac_cv_search_lt_dlopen=no
24626 cat >conftest.$ac_ext <<_ACEOF
24627 /* confdefs.h.  */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h.  */
24632
24633 /* Override any gcc2 internal prototype to avoid an error.  */
24634 #ifdef __cplusplus
24635 extern "C"
24636 #endif
24637 /* We use char because int might match the return type of a gcc2
24638    builtin and then its argument prototype would still apply.  */
24639 char lt_dlopen ();
24640 int
24641 main ()
24642 {
24643 lt_dlopen ();
24644   ;
24645   return 0;
24646 }
24647 _ACEOF
24648 rm -f conftest.$ac_objext conftest$ac_exeext
24649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24650   (eval $ac_link) 2>conftest.er1
24651   ac_status=$?
24652   grep -v '^ *+' conftest.er1 >conftest.err
24653   rm -f conftest.er1
24654   cat conftest.err >&5
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); } &&
24657          { ac_try='test -z "$ac_c_werror_flag"
24658                          || test ! -s conftest.err'
24659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24660   (eval $ac_try) 2>&5
24661   ac_status=$?
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); }; } &&
24664          { ac_try='test -s conftest$ac_exeext'
24665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666   (eval $ac_try) 2>&5
24667   ac_status=$?
24668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669   (exit $ac_status); }; }; then
24670   ac_cv_search_lt_dlopen="none required"
24671 else
24672   echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 fi
24676 rm -f conftest.err conftest.$ac_objext \
24677       conftest$ac_exeext conftest.$ac_ext
24678 if test "$ac_cv_search_lt_dlopen" = no; then
24679   for ac_lib in ltdl; do
24680     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24681     cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h.  */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h.  */
24687
24688 /* Override any gcc2 internal prototype to avoid an error.  */
24689 #ifdef __cplusplus
24690 extern "C"
24691 #endif
24692 /* We use char because int might match the return type of a gcc2
24693    builtin and then its argument prototype would still apply.  */
24694 char lt_dlopen ();
24695 int
24696 main ()
24697 {
24698 lt_dlopen ();
24699   ;
24700   return 0;
24701 }
24702 _ACEOF
24703 rm -f conftest.$ac_objext conftest$ac_exeext
24704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705   (eval $ac_link) 2>conftest.er1
24706   ac_status=$?
24707   grep -v '^ *+' conftest.er1 >conftest.err
24708   rm -f conftest.er1
24709   cat conftest.err >&5
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); } &&
24712          { ac_try='test -z "$ac_c_werror_flag"
24713                          || test ! -s conftest.err'
24714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715   (eval $ac_try) 2>&5
24716   ac_status=$?
24717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718   (exit $ac_status); }; } &&
24719          { ac_try='test -s conftest$ac_exeext'
24720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721   (eval $ac_try) 2>&5
24722   ac_status=$?
24723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724   (exit $ac_status); }; }; then
24725   ac_cv_search_lt_dlopen="-l$ac_lib"
24726 break
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731 fi
24732 rm -f conftest.err conftest.$ac_objext \
24733       conftest$ac_exeext conftest.$ac_ext
24734   done
24735 fi
24736 LIBS=$ac_func_search_save_LIBS
24737 fi
24738 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24739 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24740 if test "$ac_cv_search_lt_dlopen" != no; then
24741   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24742
24743 cat >>confdefs.h <<\_ACEOF
24744 #define HAVE_LT_DLOPEN 1
24745 _ACEOF
24746
24747 else
24748   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24749                            not be available" >&5
24750 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24751                            not be available" >&2;}
24752 fi
24753
24754
24755 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24756 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24757 if test "${ac_cv_search_dlopen+set}" = set; then
24758   echo $ECHO_N "(cached) $ECHO_C" >&6
24759 else
24760   ac_func_search_save_LIBS=$LIBS
24761 ac_cv_search_dlopen=no
24762 cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h.  */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h.  */
24768
24769 /* Override any gcc2 internal prototype to avoid an error.  */
24770 #ifdef __cplusplus
24771 extern "C"
24772 #endif
24773 /* We use char because int might match the return type of a gcc2
24774    builtin and then its argument prototype would still apply.  */
24775 char dlopen ();
24776 int
24777 main ()
24778 {
24779 dlopen ();
24780   ;
24781   return 0;
24782 }
24783 _ACEOF
24784 rm -f conftest.$ac_objext conftest$ac_exeext
24785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24786   (eval $ac_link) 2>conftest.er1
24787   ac_status=$?
24788   grep -v '^ *+' conftest.er1 >conftest.err
24789   rm -f conftest.er1
24790   cat conftest.err >&5
24791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792   (exit $ac_status); } &&
24793          { ac_try='test -z "$ac_c_werror_flag"
24794                          || test ! -s conftest.err'
24795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796   (eval $ac_try) 2>&5
24797   ac_status=$?
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); }; } &&
24800          { ac_try='test -s conftest$ac_exeext'
24801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802   (eval $ac_try) 2>&5
24803   ac_status=$?
24804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805   (exit $ac_status); }; }; then
24806   ac_cv_search_dlopen="none required"
24807 else
24808   echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24810
24811 fi
24812 rm -f conftest.err conftest.$ac_objext \
24813       conftest$ac_exeext conftest.$ac_ext
24814 if test "$ac_cv_search_dlopen" = no; then
24815   for ac_lib in dl; do
24816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24817     cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h.  */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h.  */
24823
24824 /* Override any gcc2 internal prototype to avoid an error.  */
24825 #ifdef __cplusplus
24826 extern "C"
24827 #endif
24828 /* We use char because int might match the return type of a gcc2
24829    builtin and then its argument prototype would still apply.  */
24830 char dlopen ();
24831 int
24832 main ()
24833 {
24834 dlopen ();
24835   ;
24836   return 0;
24837 }
24838 _ACEOF
24839 rm -f conftest.$ac_objext conftest$ac_exeext
24840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24841   (eval $ac_link) 2>conftest.er1
24842   ac_status=$?
24843   grep -v '^ *+' conftest.er1 >conftest.err
24844   rm -f conftest.er1
24845   cat conftest.err >&5
24846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847   (exit $ac_status); } &&
24848          { ac_try='test -z "$ac_c_werror_flag"
24849                          || test ! -s conftest.err'
24850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851   (eval $ac_try) 2>&5
24852   ac_status=$?
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); }; } &&
24855          { ac_try='test -s conftest$ac_exeext'
24856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); }; }; then
24861   ac_cv_search_dlopen="-l$ac_lib"
24862 break
24863 else
24864   echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24866
24867 fi
24868 rm -f conftest.err conftest.$ac_objext \
24869       conftest$ac_exeext conftest.$ac_ext
24870   done
24871 fi
24872 LIBS=$ac_func_search_save_LIBS
24873 fi
24874 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24875 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24876 if test "$ac_cv_search_dlopen" != no; then
24877   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24878
24879 cat >>confdefs.h <<\_ACEOF
24880 #define HAVE_DLOPEN 1
24881 _ACEOF
24882
24883 else
24884   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24885 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24886 fi
24887
24888
24889 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24890 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24891 if test "${ac_cv_search_mallinfo+set}" = set; then
24892   echo $ECHO_N "(cached) $ECHO_C" >&6
24893 else
24894   ac_func_search_save_LIBS=$LIBS
24895 ac_cv_search_mallinfo=no
24896 cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 /* Override any gcc2 internal prototype to avoid an error.  */
24904 #ifdef __cplusplus
24905 extern "C"
24906 #endif
24907 /* We use char because int might match the return type of a gcc2
24908    builtin and then its argument prototype would still apply.  */
24909 char mallinfo ();
24910 int
24911 main ()
24912 {
24913 mallinfo ();
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920   (eval $ac_link) 2>conftest.er1
24921   ac_status=$?
24922   grep -v '^ *+' conftest.er1 >conftest.err
24923   rm -f conftest.er1
24924   cat conftest.err >&5
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); } &&
24927          { ac_try='test -z "$ac_c_werror_flag"
24928                          || test ! -s conftest.err'
24929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930   (eval $ac_try) 2>&5
24931   ac_status=$?
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); }; } &&
24934          { ac_try='test -s conftest$ac_exeext'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ac_cv_search_mallinfo="none required"
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945 fi
24946 rm -f conftest.err conftest.$ac_objext \
24947       conftest$ac_exeext conftest.$ac_ext
24948 if test "$ac_cv_search_mallinfo" = no; then
24949   for ac_lib in malloc; do
24950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24951     cat >conftest.$ac_ext <<_ACEOF
24952 /* confdefs.h.  */
24953 _ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h.  */
24957
24958 /* Override any gcc2 internal prototype to avoid an error.  */
24959 #ifdef __cplusplus
24960 extern "C"
24961 #endif
24962 /* We use char because int might match the return type of a gcc2
24963    builtin and then its argument prototype would still apply.  */
24964 char mallinfo ();
24965 int
24966 main ()
24967 {
24968 mallinfo ();
24969   ;
24970   return 0;
24971 }
24972 _ACEOF
24973 rm -f conftest.$ac_objext conftest$ac_exeext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975   (eval $ac_link) 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } &&
24982          { ac_try='test -z "$ac_c_werror_flag"
24983                          || test ! -s conftest.err'
24984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985   (eval $ac_try) 2>&5
24986   ac_status=$?
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); }; } &&
24989          { ac_try='test -s conftest$ac_exeext'
24990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); }; }; then
24995   ac_cv_search_mallinfo="-l$ac_lib"
24996 break
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001 fi
25002 rm -f conftest.err conftest.$ac_objext \
25003       conftest$ac_exeext conftest.$ac_ext
25004   done
25005 fi
25006 LIBS=$ac_func_search_save_LIBS
25007 fi
25008 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25009 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25010 if test "$ac_cv_search_mallinfo" != no; then
25011   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25012
25013 cat >>confdefs.h <<\_ACEOF
25014 #define HAVE_MALLINFO 1
25015 _ACEOF
25016
25017 fi
25018
25019
25020 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25021 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25022 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25023   echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025   ac_func_search_save_LIBS=$LIBS
25026 ac_cv_search_pthread_mutex_lock=no
25027 cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033
25034 /* Override any gcc2 internal prototype to avoid an error.  */
25035 #ifdef __cplusplus
25036 extern "C"
25037 #endif
25038 /* We use char because int might match the return type of a gcc2
25039    builtin and then its argument prototype would still apply.  */
25040 char pthread_mutex_lock ();
25041 int
25042 main ()
25043 {
25044 pthread_mutex_lock ();
25045   ;
25046   return 0;
25047 }
25048 _ACEOF
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25051   (eval $ac_link) 2>conftest.er1
25052   ac_status=$?
25053   grep -v '^ *+' conftest.er1 >conftest.err
25054   rm -f conftest.er1
25055   cat conftest.err >&5
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); } &&
25058          { ac_try='test -z "$ac_c_werror_flag"
25059                          || test ! -s conftest.err'
25060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061   (eval $ac_try) 2>&5
25062   ac_status=$?
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); }; } &&
25065          { ac_try='test -s conftest$ac_exeext'
25066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); }; }; then
25071   ac_cv_search_pthread_mutex_lock="none required"
25072 else
25073   echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25075
25076 fi
25077 rm -f conftest.err conftest.$ac_objext \
25078       conftest$ac_exeext conftest.$ac_ext
25079 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25080   for ac_lib in pthread; do
25081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25082     cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088
25089 /* Override any gcc2 internal prototype to avoid an error.  */
25090 #ifdef __cplusplus
25091 extern "C"
25092 #endif
25093 /* We use char because int might match the return type of a gcc2
25094    builtin and then its argument prototype would still apply.  */
25095 char pthread_mutex_lock ();
25096 int
25097 main ()
25098 {
25099 pthread_mutex_lock ();
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106   (eval $ac_link) 2>conftest.er1
25107   ac_status=$?
25108   grep -v '^ *+' conftest.er1 >conftest.err
25109   rm -f conftest.er1
25110   cat conftest.err >&5
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } &&
25113          { ac_try='test -z "$ac_c_werror_flag"
25114                          || test ! -s conftest.err'
25115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116   (eval $ac_try) 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; } &&
25120          { ac_try='test -s conftest$ac_exeext'
25121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122   (eval $ac_try) 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; }; then
25126   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25127 break
25128 else
25129   echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25131
25132 fi
25133 rm -f conftest.err conftest.$ac_objext \
25134       conftest$ac_exeext conftest.$ac_ext
25135   done
25136 fi
25137 LIBS=$ac_func_search_save_LIBS
25138 fi
25139 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25140 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25141 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25142   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25143
25144 cat >>confdefs.h <<\_ACEOF
25145 #define HAVE_PTHREAD_MUTEX_LOCK 1
25146 _ACEOF
25147
25148 fi
25149
25150
25151
25152 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25154 if test "${ac_cv_header_stdc+set}" = set; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 else
25157   cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h.  */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h.  */
25163 #include <stdlib.h>
25164 #include <stdarg.h>
25165 #include <string.h>
25166 #include <float.h>
25167
25168 int
25169 main ()
25170 {
25171
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 rm -f conftest.$ac_objext
25177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25178   (eval $ac_compile) 2>conftest.er1
25179   ac_status=$?
25180   grep -v '^ *+' conftest.er1 >conftest.err
25181   rm -f conftest.er1
25182   cat conftest.err >&5
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); } &&
25185          { ac_try='test -z "$ac_c_werror_flag"
25186                          || test ! -s conftest.err'
25187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188   (eval $ac_try) 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); }; } &&
25192          { ac_try='test -s conftest.$ac_objext'
25193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194   (eval $ac_try) 2>&5
25195   ac_status=$?
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); }; }; then
25198   ac_cv_header_stdc=yes
25199 else
25200   echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25202
25203 ac_cv_header_stdc=no
25204 fi
25205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25206
25207 if test $ac_cv_header_stdc = yes; then
25208   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25209   cat >conftest.$ac_ext <<_ACEOF
25210 /* confdefs.h.  */
25211 _ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h.  */
25215 #include <string.h>
25216
25217 _ACEOF
25218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25219   $EGREP "memchr" >/dev/null 2>&1; then
25220   :
25221 else
25222   ac_cv_header_stdc=no
25223 fi
25224 rm -f conftest*
25225
25226 fi
25227
25228 if test $ac_cv_header_stdc = yes; then
25229   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25230   cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h.  */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h.  */
25236 #include <stdlib.h>
25237
25238 _ACEOF
25239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25240   $EGREP "free" >/dev/null 2>&1; then
25241   :
25242 else
25243   ac_cv_header_stdc=no
25244 fi
25245 rm -f conftest*
25246
25247 fi
25248
25249 if test $ac_cv_header_stdc = yes; then
25250   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25251   if test "$cross_compiling" = yes; then
25252   :
25253 else
25254   cat >conftest.$ac_ext <<_ACEOF
25255 /* confdefs.h.  */
25256 _ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h.  */
25260 #include <ctype.h>
25261 #if ((' ' & 0x0FF) == 0x020)
25262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25264 #else
25265 # define ISLOWER(c) \
25266                    (('a' <= (c) && (c) <= 'i') \
25267                      || ('j' <= (c) && (c) <= 'r') \
25268                      || ('s' <= (c) && (c) <= 'z'))
25269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25270 #endif
25271
25272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25273 int
25274 main ()
25275 {
25276   int i;
25277   for (i = 0; i < 256; i++)
25278     if (XOR (islower (i), ISLOWER (i))
25279         || toupper (i) != TOUPPER (i))
25280       exit(2);
25281   exit (0);
25282 }
25283 _ACEOF
25284 rm -f conftest$ac_exeext
25285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25286   (eval $ac_link) 2>&5
25287   ac_status=$?
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291   (eval $ac_try) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); }; }; then
25295   :
25296 else
25297   echo "$as_me: program exited with status $ac_status" >&5
25298 echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25300
25301 ( exit $ac_status )
25302 ac_cv_header_stdc=no
25303 fi
25304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25305 fi
25306 fi
25307 fi
25308 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25309 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25310 if test $ac_cv_header_stdc = yes; then
25311
25312 cat >>confdefs.h <<\_ACEOF
25313 #define STDC_HEADERS 1
25314 _ACEOF
25315
25316 fi
25317
25318
25319 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25320 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25321 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25322   echo $ECHO_N "(cached) $ECHO_C" >&6
25323 else
25324   cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h.  */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h.  */
25330 #include <sys/types.h>
25331 #include <sys/wait.h>
25332 #ifndef WEXITSTATUS
25333 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25334 #endif
25335 #ifndef WIFEXITED
25336 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25337 #endif
25338
25339 int
25340 main ()
25341 {
25342   int s;
25343   wait (&s);
25344   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25345   ;
25346   return 0;
25347 }
25348 _ACEOF
25349 rm -f conftest.$ac_objext
25350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25351   (eval $ac_compile) 2>conftest.er1
25352   ac_status=$?
25353   grep -v '^ *+' conftest.er1 >conftest.err
25354   rm -f conftest.er1
25355   cat conftest.err >&5
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); } &&
25358          { ac_try='test -z "$ac_c_werror_flag"
25359                          || test ! -s conftest.err'
25360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361   (eval $ac_try) 2>&5
25362   ac_status=$?
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); }; } &&
25365          { ac_try='test -s conftest.$ac_objext'
25366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367   (eval $ac_try) 2>&5
25368   ac_status=$?
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); }; }; then
25371   ac_cv_header_sys_wait_h=yes
25372 else
25373   echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25375
25376 ac_cv_header_sys_wait_h=no
25377 fi
25378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25379 fi
25380 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25381 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25382 if test $ac_cv_header_sys_wait_h = yes; then
25383
25384 cat >>confdefs.h <<\_ACEOF
25385 #define HAVE_SYS_WAIT_H 1
25386 _ACEOF
25387
25388 fi
25389
25390
25391
25392
25393
25394
25395 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25396 do
25397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25399   echo "$as_me:$LINENO: checking for $ac_header" >&5
25400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 fi
25404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25406 else
25407   # Is the header compilable?
25408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416 $ac_includes_default
25417 #include <$ac_header>
25418 _ACEOF
25419 rm -f conftest.$ac_objext
25420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25421   (eval $ac_compile) 2>conftest.er1
25422   ac_status=$?
25423   grep -v '^ *+' conftest.er1 >conftest.err
25424   rm -f conftest.er1
25425   cat conftest.err >&5
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); } &&
25428          { ac_try='test -z "$ac_c_werror_flag"
25429                          || test ! -s conftest.err'
25430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431   (eval $ac_try) 2>&5
25432   ac_status=$?
25433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434   (exit $ac_status); }; } &&
25435          { ac_try='test -s conftest.$ac_objext'
25436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437   (eval $ac_try) 2>&5
25438   ac_status=$?
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); }; }; then
25441   ac_header_compiler=yes
25442 else
25443   echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 ac_header_compiler=no
25447 fi
25448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25450 echo "${ECHO_T}$ac_header_compiler" >&6
25451
25452 # Is the header present?
25453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25455 cat >conftest.$ac_ext <<_ACEOF
25456 /* confdefs.h.  */
25457 _ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h.  */
25461 #include <$ac_header>
25462 _ACEOF
25463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25465   ac_status=$?
25466   grep -v '^ *+' conftest.er1 >conftest.err
25467   rm -f conftest.er1
25468   cat conftest.err >&5
25469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470   (exit $ac_status); } >/dev/null; then
25471   if test -s conftest.err; then
25472     ac_cpp_err=$ac_c_preproc_warn_flag
25473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25474   else
25475     ac_cpp_err=
25476   fi
25477 else
25478   ac_cpp_err=yes
25479 fi
25480 if test -z "$ac_cpp_err"; then
25481   ac_header_preproc=yes
25482 else
25483   echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25485
25486   ac_header_preproc=no
25487 fi
25488 rm -f conftest.err conftest.$ac_ext
25489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25490 echo "${ECHO_T}$ac_header_preproc" >&6
25491
25492 # So?  What about this header?
25493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25494   yes:no: )
25495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25499     ac_header_preproc=yes
25500     ;;
25501   no:yes:* )
25502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25514     (
25515       cat <<\_ASBOX
25516 ## ----------------------------------- ##
25517 ## Report this to llvmbugs@cs.uiuc.edu ##
25518 ## ----------------------------------- ##
25519 _ASBOX
25520     ) |
25521       sed "s/^/$as_me: WARNING:     /" >&2
25522     ;;
25523 esac
25524 echo "$as_me:$LINENO: checking for $ac_header" >&5
25525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25527   echo $ECHO_N "(cached) $ECHO_C" >&6
25528 else
25529   eval "$as_ac_Header=\$ac_header_preproc"
25530 fi
25531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25533
25534 fi
25535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25536   cat >>confdefs.h <<_ACEOF
25537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25538 _ACEOF
25539
25540 fi
25541
25542 done
25543
25544
25545
25546
25547
25548
25549 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25550 do
25551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25553   echo "$as_me:$LINENO: checking for $ac_header" >&5
25554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25556   echo $ECHO_N "(cached) $ECHO_C" >&6
25557 fi
25558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25560 else
25561   # Is the header compilable?
25562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25564 cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h.  */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h.  */
25570 $ac_includes_default
25571 #include <$ac_header>
25572 _ACEOF
25573 rm -f conftest.$ac_objext
25574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25575   (eval $ac_compile) 2>conftest.er1
25576   ac_status=$?
25577   grep -v '^ *+' conftest.er1 >conftest.err
25578   rm -f conftest.er1
25579   cat conftest.err >&5
25580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581   (exit $ac_status); } &&
25582          { ac_try='test -z "$ac_c_werror_flag"
25583                          || test ! -s conftest.err'
25584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585   (eval $ac_try) 2>&5
25586   ac_status=$?
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); }; } &&
25589          { ac_try='test -s conftest.$ac_objext'
25590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591   (eval $ac_try) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; }; then
25595   ac_header_compiler=yes
25596 else
25597   echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600 ac_header_compiler=no
25601 fi
25602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25604 echo "${ECHO_T}$ac_header_compiler" >&6
25605
25606 # Is the header present?
25607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25609 cat >conftest.$ac_ext <<_ACEOF
25610 /* confdefs.h.  */
25611 _ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h.  */
25615 #include <$ac_header>
25616 _ACEOF
25617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25619   ac_status=$?
25620   grep -v '^ *+' conftest.er1 >conftest.err
25621   rm -f conftest.er1
25622   cat conftest.err >&5
25623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624   (exit $ac_status); } >/dev/null; then
25625   if test -s conftest.err; then
25626     ac_cpp_err=$ac_c_preproc_warn_flag
25627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25628   else
25629     ac_cpp_err=
25630   fi
25631 else
25632   ac_cpp_err=yes
25633 fi
25634 if test -z "$ac_cpp_err"; then
25635   ac_header_preproc=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640   ac_header_preproc=no
25641 fi
25642 rm -f conftest.err conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25644 echo "${ECHO_T}$ac_header_preproc" >&6
25645
25646 # So?  What about this header?
25647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25648   yes:no: )
25649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25653     ac_header_preproc=yes
25654     ;;
25655   no:yes:* )
25656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25668     (
25669       cat <<\_ASBOX
25670 ## ----------------------------------- ##
25671 ## Report this to llvmbugs@cs.uiuc.edu ##
25672 ## ----------------------------------- ##
25673 _ASBOX
25674     ) |
25675       sed "s/^/$as_me: WARNING:     /" >&2
25676     ;;
25677 esac
25678 echo "$as_me:$LINENO: checking for $ac_header" >&5
25679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 else
25683   eval "$as_ac_Header=\$ac_header_preproc"
25684 fi
25685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25687
25688 fi
25689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25690   cat >>confdefs.h <<_ACEOF
25691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25692 _ACEOF
25693
25694 fi
25695
25696 done
25697
25698
25699
25700
25701 for ac_header in malloc.h unistd.h windows.h
25702 do
25703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25705   echo "$as_me:$LINENO: checking for $ac_header" >&5
25706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25708   echo $ECHO_N "(cached) $ECHO_C" >&6
25709 fi
25710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25712 else
25713   # Is the header compilable?
25714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25716 cat >conftest.$ac_ext <<_ACEOF
25717 /* confdefs.h.  */
25718 _ACEOF
25719 cat confdefs.h >>conftest.$ac_ext
25720 cat >>conftest.$ac_ext <<_ACEOF
25721 /* end confdefs.h.  */
25722 $ac_includes_default
25723 #include <$ac_header>
25724 _ACEOF
25725 rm -f conftest.$ac_objext
25726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727   (eval $ac_compile) 2>conftest.er1
25728   ac_status=$?
25729   grep -v '^ *+' conftest.er1 >conftest.err
25730   rm -f conftest.er1
25731   cat conftest.err >&5
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); } &&
25734          { ac_try='test -z "$ac_c_werror_flag"
25735                          || test ! -s conftest.err'
25736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737   (eval $ac_try) 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); }; } &&
25741          { ac_try='test -s conftest.$ac_objext'
25742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743   (eval $ac_try) 2>&5
25744   ac_status=$?
25745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746   (exit $ac_status); }; }; then
25747   ac_header_compiler=yes
25748 else
25749   echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25751
25752 ac_header_compiler=no
25753 fi
25754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25756 echo "${ECHO_T}$ac_header_compiler" >&6
25757
25758 # Is the header present?
25759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25761 cat >conftest.$ac_ext <<_ACEOF
25762 /* confdefs.h.  */
25763 _ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h.  */
25767 #include <$ac_header>
25768 _ACEOF
25769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25771   ac_status=$?
25772   grep -v '^ *+' conftest.er1 >conftest.err
25773   rm -f conftest.er1
25774   cat conftest.err >&5
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); } >/dev/null; then
25777   if test -s conftest.err; then
25778     ac_cpp_err=$ac_c_preproc_warn_flag
25779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25780   else
25781     ac_cpp_err=
25782   fi
25783 else
25784   ac_cpp_err=yes
25785 fi
25786 if test -z "$ac_cpp_err"; then
25787   ac_header_preproc=yes
25788 else
25789   echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25791
25792   ac_header_preproc=no
25793 fi
25794 rm -f conftest.err conftest.$ac_ext
25795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25796 echo "${ECHO_T}$ac_header_preproc" >&6
25797
25798 # So?  What about this header?
25799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25800   yes:no: )
25801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25805     ac_header_preproc=yes
25806     ;;
25807   no:yes:* )
25808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25820     (
25821       cat <<\_ASBOX
25822 ## ----------------------------------- ##
25823 ## Report this to llvmbugs@cs.uiuc.edu ##
25824 ## ----------------------------------- ##
25825 _ASBOX
25826     ) |
25827       sed "s/^/$as_me: WARNING:     /" >&2
25828     ;;
25829 esac
25830 echo "$as_me:$LINENO: checking for $ac_header" >&5
25831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   eval "$as_ac_Header=\$ac_header_preproc"
25836 fi
25837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25839
25840 fi
25841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25842   cat >>confdefs.h <<_ACEOF
25843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25844 _ACEOF
25845
25846 fi
25847
25848 done
25849
25850 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25852 if test "${ac_cv_header_time+set}" = set; then
25853   echo $ECHO_N "(cached) $ECHO_C" >&6
25854 else
25855   cat >conftest.$ac_ext <<_ACEOF
25856 /* confdefs.h.  */
25857 _ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h.  */
25861 #include <sys/types.h>
25862 #include <sys/time.h>
25863 #include <time.h>
25864
25865 int
25866 main ()
25867 {
25868 if ((struct tm *) 0)
25869 return 0;
25870   ;
25871   return 0;
25872 }
25873 _ACEOF
25874 rm -f conftest.$ac_objext
25875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25876   (eval $ac_compile) 2>conftest.er1
25877   ac_status=$?
25878   grep -v '^ *+' conftest.er1 >conftest.err
25879   rm -f conftest.er1
25880   cat conftest.err >&5
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } &&
25883          { ac_try='test -z "$ac_c_werror_flag"
25884                          || test ! -s conftest.err'
25885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886   (eval $ac_try) 2>&5
25887   ac_status=$?
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); }; } &&
25890          { ac_try='test -s conftest.$ac_objext'
25891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892   (eval $ac_try) 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; }; then
25896   ac_cv_header_time=yes
25897 else
25898   echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25900
25901 ac_cv_header_time=no
25902 fi
25903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25904 fi
25905 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25906 echo "${ECHO_T}$ac_cv_header_time" >&6
25907 if test $ac_cv_header_time = yes; then
25908
25909 cat >>confdefs.h <<\_ACEOF
25910 #define TIME_WITH_SYS_TIME 1
25911 _ACEOF
25912
25913 fi
25914
25915 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25916 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25917 if test "${ac_cv_header_mmap_anon+set}" = set; then
25918   echo $ECHO_N "(cached) $ECHO_C" >&6
25919 else
25920    ac_ext=c
25921 ac_cpp='$CPP $CPPFLAGS'
25922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25925
25926   cat >conftest.$ac_ext <<_ACEOF
25927 /* confdefs.h.  */
25928 _ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h.  */
25932 #include <sys/mman.h>
25933 #include <unistd.h>
25934 #include <fcntl.h>
25935 int
25936 main ()
25937 {
25938 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest.$ac_objext
25944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25945   (eval $ac_compile) 2>conftest.er1
25946   ac_status=$?
25947   grep -v '^ *+' conftest.er1 >conftest.err
25948   rm -f conftest.er1
25949   cat conftest.err >&5
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); } &&
25952          { ac_try='test -z "$ac_c_werror_flag"
25953                          || test ! -s conftest.err'
25954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955   (eval $ac_try) 2>&5
25956   ac_status=$?
25957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958   (exit $ac_status); }; } &&
25959          { ac_try='test -s conftest.$ac_objext'
25960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961   (eval $ac_try) 2>&5
25962   ac_status=$?
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); }; }; then
25965   ac_cv_header_mmap_anon=yes
25966 else
25967   echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25969
25970 ac_cv_header_mmap_anon=no
25971 fi
25972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25973   ac_ext=c
25974 ac_cpp='$CPP $CPPFLAGS'
25975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25978
25979
25980 fi
25981 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25982 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25983 if test "$ac_cv_header_mmap_anon" = yes; then
25984
25985 cat >>confdefs.h <<\_ACEOF
25986 #define HAVE_MMAP_ANONYMOUS
25987 _ACEOF
25988
25989 fi
25990
25991
25992
25993
25994 for ac_header in inttypes.h stdint.h
25995 do
25996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25998   echo "$as_me:$LINENO: checking for $ac_header" >&5
25999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26001   echo $ECHO_N "(cached) $ECHO_C" >&6
26002 fi
26003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26005 else
26006   # Is the header compilable?
26007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26009 cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h.  */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h.  */
26015 $ac_includes_default
26016 #include <$ac_header>
26017 _ACEOF
26018 rm -f conftest.$ac_objext
26019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26020   (eval $ac_compile) 2>conftest.er1
26021   ac_status=$?
26022   grep -v '^ *+' conftest.er1 >conftest.err
26023   rm -f conftest.er1
26024   cat conftest.err >&5
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); } &&
26027          { ac_try='test -z "$ac_c_werror_flag"
26028                          || test ! -s conftest.err'
26029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030   (eval $ac_try) 2>&5
26031   ac_status=$?
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); }; } &&
26034          { ac_try='test -s conftest.$ac_objext'
26035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036   (eval $ac_try) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); }; }; then
26040   ac_header_compiler=yes
26041 else
26042   echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.$ac_ext >&5
26044
26045 ac_header_compiler=no
26046 fi
26047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26049 echo "${ECHO_T}$ac_header_compiler" >&6
26050
26051 # Is the header present?
26052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26054 cat >conftest.$ac_ext <<_ACEOF
26055 /* confdefs.h.  */
26056 _ACEOF
26057 cat confdefs.h >>conftest.$ac_ext
26058 cat >>conftest.$ac_ext <<_ACEOF
26059 /* end confdefs.h.  */
26060 #include <$ac_header>
26061 _ACEOF
26062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26064   ac_status=$?
26065   grep -v '^ *+' conftest.er1 >conftest.err
26066   rm -f conftest.er1
26067   cat conftest.err >&5
26068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069   (exit $ac_status); } >/dev/null; then
26070   if test -s conftest.err; then
26071     ac_cpp_err=$ac_c_preproc_warn_flag
26072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26073   else
26074     ac_cpp_err=
26075   fi
26076 else
26077   ac_cpp_err=yes
26078 fi
26079 if test -z "$ac_cpp_err"; then
26080   ac_header_preproc=yes
26081 else
26082   echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085   ac_header_preproc=no
26086 fi
26087 rm -f conftest.err conftest.$ac_ext
26088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26089 echo "${ECHO_T}$ac_header_preproc" >&6
26090
26091 # So?  What about this header?
26092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26093   yes:no: )
26094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26098     ac_header_preproc=yes
26099     ;;
26100   no:yes:* )
26101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26113     (
26114       cat <<\_ASBOX
26115 ## ----------------------------------- ##
26116 ## Report this to llvmbugs@cs.uiuc.edu ##
26117 ## ----------------------------------- ##
26118 _ASBOX
26119     ) |
26120       sed "s/^/$as_me: WARNING:     /" >&2
26121     ;;
26122 esac
26123 echo "$as_me:$LINENO: checking for $ac_header" >&5
26124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26126   echo $ECHO_N "(cached) $ECHO_C" >&6
26127 else
26128   eval "$as_ac_Header=\$ac_header_preproc"
26129 fi
26130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26132
26133 fi
26134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26135   cat >>confdefs.h <<_ACEOF
26136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26137 _ACEOF
26138
26139 fi
26140
26141 done
26142
26143
26144
26145 echo "$as_me:$LINENO: checking for pid_t" >&5
26146 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26147 if test "${ac_cv_type_pid_t+set}" = set; then
26148   echo $ECHO_N "(cached) $ECHO_C" >&6
26149 else
26150   cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h.  */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h.  */
26156 $ac_includes_default
26157 int
26158 main ()
26159 {
26160 if ((pid_t *) 0)
26161   return 0;
26162 if (sizeof (pid_t))
26163   return 0;
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest.$ac_objext
26169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26170   (eval $ac_compile) 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } &&
26177          { ac_try='test -z "$ac_c_werror_flag"
26178                          || test ! -s conftest.err'
26179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180   (eval $ac_try) 2>&5
26181   ac_status=$?
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); }; } &&
26184          { ac_try='test -s conftest.$ac_objext'
26185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186   (eval $ac_try) 2>&5
26187   ac_status=$?
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); }; }; then
26190   ac_cv_type_pid_t=yes
26191 else
26192   echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26194
26195 ac_cv_type_pid_t=no
26196 fi
26197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26198 fi
26199 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26200 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26201 if test $ac_cv_type_pid_t = yes; then
26202   :
26203 else
26204
26205 cat >>confdefs.h <<_ACEOF
26206 #define pid_t int
26207 _ACEOF
26208
26209 fi
26210
26211 echo "$as_me:$LINENO: checking for size_t" >&5
26212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26213 if test "${ac_cv_type_size_t+set}" = set; then
26214   echo $ECHO_N "(cached) $ECHO_C" >&6
26215 else
26216   cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h.  */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h.  */
26222 $ac_includes_default
26223 int
26224 main ()
26225 {
26226 if ((size_t *) 0)
26227   return 0;
26228 if (sizeof (size_t))
26229   return 0;
26230   ;
26231   return 0;
26232 }
26233 _ACEOF
26234 rm -f conftest.$ac_objext
26235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26236   (eval $ac_compile) 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } &&
26243          { ac_try='test -z "$ac_c_werror_flag"
26244                          || test ! -s conftest.err'
26245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246   (eval $ac_try) 2>&5
26247   ac_status=$?
26248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); }; } &&
26250          { ac_try='test -s conftest.$ac_objext'
26251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252   (eval $ac_try) 2>&5
26253   ac_status=$?
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); }; }; then
26256   ac_cv_type_size_t=yes
26257 else
26258   echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26260
26261 ac_cv_type_size_t=no
26262 fi
26263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264 fi
26265 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26266 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26267 if test $ac_cv_type_size_t = yes; then
26268   :
26269 else
26270
26271 cat >>confdefs.h <<_ACEOF
26272 #define size_t unsigned
26273 _ACEOF
26274
26275 fi
26276
26277 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26278 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26279 if test "${ac_cv_type_signal+set}" = set; then
26280   echo $ECHO_N "(cached) $ECHO_C" >&6
26281 else
26282   cat >conftest.$ac_ext <<_ACEOF
26283 /* confdefs.h.  */
26284 _ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h.  */
26288 #include <sys/types.h>
26289 #include <signal.h>
26290 #ifdef signal
26291 # undef signal
26292 #endif
26293 #ifdef __cplusplus
26294 extern "C" void (*signal (int, void (*)(int)))(int);
26295 #else
26296 void (*signal ()) ();
26297 #endif
26298
26299 int
26300 main ()
26301 {
26302 int i;
26303   ;
26304   return 0;
26305 }
26306 _ACEOF
26307 rm -f conftest.$ac_objext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309   (eval $ac_compile) 2>conftest.er1
26310   ac_status=$?
26311   grep -v '^ *+' conftest.er1 >conftest.err
26312   rm -f conftest.er1
26313   cat conftest.err >&5
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); } &&
26316          { ac_try='test -z "$ac_c_werror_flag"
26317                          || test ! -s conftest.err'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; } &&
26323          { ac_try='test -s conftest.$ac_objext'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; }; then
26329   ac_cv_type_signal=void
26330 else
26331   echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26333
26334 ac_cv_type_signal=int
26335 fi
26336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337 fi
26338 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26339 echo "${ECHO_T}$ac_cv_type_signal" >&6
26340
26341 cat >>confdefs.h <<_ACEOF
26342 #define RETSIGTYPE $ac_cv_type_signal
26343 _ACEOF
26344
26345
26346 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26347 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26348 if test "${ac_cv_struct_tm+set}" = set; then
26349   echo $ECHO_N "(cached) $ECHO_C" >&6
26350 else
26351   cat >conftest.$ac_ext <<_ACEOF
26352 /* confdefs.h.  */
26353 _ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h.  */
26357 #include <sys/types.h>
26358 #include <time.h>
26359
26360 int
26361 main ()
26362 {
26363 struct tm *tp; tp->tm_sec;
26364   ;
26365   return 0;
26366 }
26367 _ACEOF
26368 rm -f conftest.$ac_objext
26369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26370   (eval $ac_compile) 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } &&
26377          { ac_try='test -z "$ac_c_werror_flag"
26378                          || test ! -s conftest.err'
26379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380   (eval $ac_try) 2>&5
26381   ac_status=$?
26382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383   (exit $ac_status); }; } &&
26384          { ac_try='test -s conftest.$ac_objext'
26385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386   (eval $ac_try) 2>&5
26387   ac_status=$?
26388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); }; }; then
26390   ac_cv_struct_tm=time.h
26391 else
26392   echo "$as_me: failed program was:" >&5
26393 sed 's/^/| /' conftest.$ac_ext >&5
26394
26395 ac_cv_struct_tm=sys/time.h
26396 fi
26397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26398 fi
26399 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26400 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26401 if test $ac_cv_struct_tm = sys/time.h; then
26402
26403 cat >>confdefs.h <<\_ACEOF
26404 #define TM_IN_SYS_TIME 1
26405 _ACEOF
26406
26407 fi
26408
26409 echo "$as_me:$LINENO: checking for int64_t" >&5
26410 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26411 if test "${ac_cv_type_int64_t+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   cat >conftest.$ac_ext <<_ACEOF
26415 /* confdefs.h.  */
26416 _ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h.  */
26420 $ac_includes_default
26421 int
26422 main ()
26423 {
26424 if ((int64_t *) 0)
26425   return 0;
26426 if (sizeof (int64_t))
26427   return 0;
26428   ;
26429   return 0;
26430 }
26431 _ACEOF
26432 rm -f conftest.$ac_objext
26433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26434   (eval $ac_compile) 2>conftest.er1
26435   ac_status=$?
26436   grep -v '^ *+' conftest.er1 >conftest.err
26437   rm -f conftest.er1
26438   cat conftest.err >&5
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } &&
26441          { ac_try='test -z "$ac_c_werror_flag"
26442                          || test ! -s conftest.err'
26443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444   (eval $ac_try) 2>&5
26445   ac_status=$?
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); }; } &&
26448          { ac_try='test -s conftest.$ac_objext'
26449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450   (eval $ac_try) 2>&5
26451   ac_status=$?
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); }; }; then
26454   ac_cv_type_int64_t=yes
26455 else
26456   echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459 ac_cv_type_int64_t=no
26460 fi
26461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26462 fi
26463 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26464 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26465 if test $ac_cv_type_int64_t = yes; then
26466
26467 cat >>confdefs.h <<_ACEOF
26468 #define HAVE_INT64_T 1
26469 _ACEOF
26470
26471
26472 else
26473   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26474 echo "$as_me: error: Type int64_t required but not found" >&2;}
26475    { (exit 1); exit 1; }; }
26476 fi
26477
26478 echo "$as_me:$LINENO: checking for uint64_t" >&5
26479 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26480 if test "${ac_cv_type_uint64_t+set}" = set; then
26481   echo $ECHO_N "(cached) $ECHO_C" >&6
26482 else
26483   cat >conftest.$ac_ext <<_ACEOF
26484 /* confdefs.h.  */
26485 _ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h.  */
26489 $ac_includes_default
26490 int
26491 main ()
26492 {
26493 if ((uint64_t *) 0)
26494   return 0;
26495 if (sizeof (uint64_t))
26496   return 0;
26497   ;
26498   return 0;
26499 }
26500 _ACEOF
26501 rm -f conftest.$ac_objext
26502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26503   (eval $ac_compile) 2>conftest.er1
26504   ac_status=$?
26505   grep -v '^ *+' conftest.er1 >conftest.err
26506   rm -f conftest.er1
26507   cat conftest.err >&5
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); } &&
26510          { ac_try='test -z "$ac_c_werror_flag"
26511                          || test ! -s conftest.err'
26512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513   (eval $ac_try) 2>&5
26514   ac_status=$?
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); }; } &&
26517          { ac_try='test -s conftest.$ac_objext'
26518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519   (eval $ac_try) 2>&5
26520   ac_status=$?
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); }; }; then
26523   ac_cv_type_uint64_t=yes
26524 else
26525   echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26527
26528 ac_cv_type_uint64_t=no
26529 fi
26530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26531 fi
26532 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26533 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26534 if test $ac_cv_type_uint64_t = yes; then
26535
26536 cat >>confdefs.h <<_ACEOF
26537 #define HAVE_UINT64_T 1
26538 _ACEOF
26539
26540
26541 else
26542   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26543 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26544 if test "${ac_cv_type_u_int64_t+set}" = set; then
26545   echo $ECHO_N "(cached) $ECHO_C" >&6
26546 else
26547   cat >conftest.$ac_ext <<_ACEOF
26548 /* confdefs.h.  */
26549 _ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h.  */
26553 $ac_includes_default
26554 int
26555 main ()
26556 {
26557 if ((u_int64_t *) 0)
26558   return 0;
26559 if (sizeof (u_int64_t))
26560   return 0;
26561   ;
26562   return 0;
26563 }
26564 _ACEOF
26565 rm -f conftest.$ac_objext
26566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26567   (eval $ac_compile) 2>conftest.er1
26568   ac_status=$?
26569   grep -v '^ *+' conftest.er1 >conftest.err
26570   rm -f conftest.er1
26571   cat conftest.err >&5
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); } &&
26574          { ac_try='test -z "$ac_c_werror_flag"
26575                          || test ! -s conftest.err'
26576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577   (eval $ac_try) 2>&5
26578   ac_status=$?
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); }; } &&
26581          { ac_try='test -s conftest.$ac_objext'
26582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583   (eval $ac_try) 2>&5
26584   ac_status=$?
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); }; }; then
26587   ac_cv_type_u_int64_t=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592 ac_cv_type_u_int64_t=no
26593 fi
26594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26595 fi
26596 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26597 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26598 if test $ac_cv_type_u_int64_t = yes; then
26599
26600 cat >>confdefs.h <<_ACEOF
26601 #define HAVE_U_INT64_T 1
26602 _ACEOF
26603
26604
26605 else
26606   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26607 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26608    { (exit 1); exit 1; }; }
26609 fi
26610
26611 fi
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
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 for ac_func in strdup strtoq strtoll
26726 do
26727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26728 echo "$as_me:$LINENO: checking for $ac_func" >&5
26729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26730 if eval "test \"\${$as_ac_var+set}\" = set"; then
26731   echo $ECHO_N "(cached) $ECHO_C" >&6
26732 else
26733   cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h.  */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h.  */
26739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26741 #define $ac_func innocuous_$ac_func
26742
26743 /* System header to define __stub macros and hopefully few prototypes,
26744     which can conflict with char $ac_func (); below.
26745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26746     <limits.h> exists even on freestanding compilers.  */
26747
26748 #ifdef __STDC__
26749 # include <limits.h>
26750 #else
26751 # include <assert.h>
26752 #endif
26753
26754 #undef $ac_func
26755
26756 /* Override any gcc2 internal prototype to avoid an error.  */
26757 #ifdef __cplusplus
26758 extern "C"
26759 {
26760 #endif
26761 /* We use char because int might match the return type of a gcc2
26762    builtin and then its argument prototype would still apply.  */
26763 char $ac_func ();
26764 /* The GNU C library defines this for functions which it implements
26765     to always fail with ENOSYS.  Some functions are actually named
26766     something starting with __ and the normal name is an alias.  */
26767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26768 choke me
26769 #else
26770 char (*f) () = $ac_func;
26771 #endif
26772 #ifdef __cplusplus
26773 }
26774 #endif
26775
26776 int
26777 main ()
26778 {
26779 return f != $ac_func;
26780   ;
26781   return 0;
26782 }
26783 _ACEOF
26784 rm -f conftest.$ac_objext conftest$ac_exeext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26786   (eval $ac_link) 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } &&
26793          { ac_try='test -z "$ac_c_werror_flag"
26794                          || test ! -s conftest.err'
26795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796   (eval $ac_try) 2>&5
26797   ac_status=$?
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); }; } &&
26800          { ac_try='test -s conftest$ac_exeext'
26801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802   (eval $ac_try) 2>&5
26803   ac_status=$?
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); }; }; then
26806   eval "$as_ac_var=yes"
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811 eval "$as_ac_var=no"
26812 fi
26813 rm -f conftest.err conftest.$ac_objext \
26814       conftest$ac_exeext conftest.$ac_ext
26815 fi
26816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26818 if test `eval echo '${'$as_ac_var'}'` = yes; then
26819   cat >>confdefs.h <<_ACEOF
26820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26821 _ACEOF
26822
26823 fi
26824 done
26825
26826 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26827 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26828 if test "${llvm_cv_c_printf_a+set}" = set; then
26829   echo $ECHO_N "(cached) $ECHO_C" >&6
26830 else
26831   ac_ext=c
26832 ac_cpp='$CPP $CPPFLAGS'
26833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26836
26837  if test "$cross_compiling" = yes; then
26838   llvmac_cv_c_printf_a=no
26839 else
26840   cat >conftest.$ac_ext <<_ACEOF
26841
26842   /* confdefs.h.  */
26843 _ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h.  */
26847
26848 #include <stdio.h>
26849 #include <stdlib.h>
26850
26851 int
26852 main ()
26853 {
26854
26855 volatile double A, B;
26856 char Buffer[100];
26857 A = 1;
26858 A /= 10.0;
26859 sprintf(Buffer, "%a", A);
26860 B = atof(Buffer);
26861 if (A != B)
26862   return (1);
26863 if (A != 0x1.999999999999ap-4)
26864   return (1);
26865 return (0);
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 rm -f conftest$ac_exeext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26872   (eval $ac_link) 2>&5
26873   ac_status=$?
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877   (eval $ac_try) 2>&5
26878   ac_status=$?
26879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880   (exit $ac_status); }; }; then
26881   llvm_cv_c_printf_a=yes
26882 else
26883   echo "$as_me: program exited with status $ac_status" >&5
26884 echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887 ( exit $ac_status )
26888 llvmac_cv_c_printf_a=no
26889 fi
26890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26891 fi
26892  ac_ext=c
26893 ac_cpp='$CPP $CPPFLAGS'
26894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26897
26898 fi
26899 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26900 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26901  if test "$llvm_cv_c_printf_a" = "yes"; then
26902
26903 cat >>confdefs.h <<\_ACEOF
26904 #define HAVE_PRINTF_A 1
26905 _ACEOF
26906
26907  fi
26908
26909 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26910 # for constant arguments.  Useless!
26911 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26912 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26913 if test "${ac_cv_working_alloca_h+set}" = set; then
26914   echo $ECHO_N "(cached) $ECHO_C" >&6
26915 else
26916   cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h.  */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h.  */
26922 #include <alloca.h>
26923 int
26924 main ()
26925 {
26926 char *p = (char *) alloca (2 * sizeof (int));
26927   ;
26928   return 0;
26929 }
26930 _ACEOF
26931 rm -f conftest.$ac_objext conftest$ac_exeext
26932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26933   (eval $ac_link) 2>conftest.er1
26934   ac_status=$?
26935   grep -v '^ *+' conftest.er1 >conftest.err
26936   rm -f conftest.er1
26937   cat conftest.err >&5
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } &&
26940          { ac_try='test -z "$ac_c_werror_flag"
26941                          || test ! -s conftest.err'
26942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943   (eval $ac_try) 2>&5
26944   ac_status=$?
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); }; } &&
26947          { ac_try='test -s conftest$ac_exeext'
26948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949   (eval $ac_try) 2>&5
26950   ac_status=$?
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); }; }; then
26953   ac_cv_working_alloca_h=yes
26954 else
26955   echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26957
26958 ac_cv_working_alloca_h=no
26959 fi
26960 rm -f conftest.err conftest.$ac_objext \
26961       conftest$ac_exeext conftest.$ac_ext
26962 fi
26963 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26964 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26965 if test $ac_cv_working_alloca_h = yes; then
26966
26967 cat >>confdefs.h <<\_ACEOF
26968 #define HAVE_ALLOCA_H 1
26969 _ACEOF
26970
26971 fi
26972
26973 echo "$as_me:$LINENO: checking for alloca" >&5
26974 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26975 if test "${ac_cv_func_alloca_works+set}" = set; then
26976   echo $ECHO_N "(cached) $ECHO_C" >&6
26977 else
26978   cat >conftest.$ac_ext <<_ACEOF
26979 /* confdefs.h.  */
26980 _ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h.  */
26984 #ifdef __GNUC__
26985 # define alloca __builtin_alloca
26986 #else
26987 # ifdef _MSC_VER
26988 #  include <malloc.h>
26989 #  define alloca _alloca
26990 # else
26991 #  if HAVE_ALLOCA_H
26992 #   include <alloca.h>
26993 #  else
26994 #   ifdef _AIX
26995  #pragma alloca
26996 #   else
26997 #    ifndef alloca /* predefined by HP cc +Olibcalls */
26998 char *alloca ();
26999 #    endif
27000 #   endif
27001 #  endif
27002 # endif
27003 #endif
27004
27005 int
27006 main ()
27007 {
27008 char *p = (char *) alloca (1);
27009   ;
27010   return 0;
27011 }
27012 _ACEOF
27013 rm -f conftest.$ac_objext conftest$ac_exeext
27014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27015   (eval $ac_link) 2>conftest.er1
27016   ac_status=$?
27017   grep -v '^ *+' conftest.er1 >conftest.err
27018   rm -f conftest.er1
27019   cat conftest.err >&5
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); } &&
27022          { ac_try='test -z "$ac_c_werror_flag"
27023                          || test ! -s conftest.err'
27024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025   (eval $ac_try) 2>&5
27026   ac_status=$?
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); }; } &&
27029          { ac_try='test -s conftest$ac_exeext'
27030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031   (eval $ac_try) 2>&5
27032   ac_status=$?
27033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034   (exit $ac_status); }; }; then
27035   ac_cv_func_alloca_works=yes
27036 else
27037   echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27039
27040 ac_cv_func_alloca_works=no
27041 fi
27042 rm -f conftest.err conftest.$ac_objext \
27043       conftest$ac_exeext conftest.$ac_ext
27044 fi
27045 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27046 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27047
27048 if test $ac_cv_func_alloca_works = yes; then
27049
27050 cat >>confdefs.h <<\_ACEOF
27051 #define HAVE_ALLOCA 1
27052 _ACEOF
27053
27054 else
27055   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27056 # that cause trouble.  Some versions do not even contain alloca or
27057 # contain a buggy version.  If you still want to use their alloca,
27058 # use ar to extract alloca.o from them instead of compiling alloca.c.
27059
27060 ALLOCA=alloca.$ac_objext
27061
27062 cat >>confdefs.h <<\_ACEOF
27063 #define C_ALLOCA 1
27064 _ACEOF
27065
27066
27067 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27068 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27069 if test "${ac_cv_os_cray+set}" = set; then
27070   echo $ECHO_N "(cached) $ECHO_C" >&6
27071 else
27072   cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078 #if defined(CRAY) && ! defined(CRAY2)
27079 webecray
27080 #else
27081 wenotbecray
27082 #endif
27083
27084 _ACEOF
27085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27086   $EGREP "webecray" >/dev/null 2>&1; then
27087   ac_cv_os_cray=yes
27088 else
27089   ac_cv_os_cray=no
27090 fi
27091 rm -f conftest*
27092
27093 fi
27094 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27095 echo "${ECHO_T}$ac_cv_os_cray" >&6
27096 if test $ac_cv_os_cray = yes; then
27097   for ac_func in _getb67 GETB67 getb67; do
27098     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27099 echo "$as_me:$LINENO: checking for $ac_func" >&5
27100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27101 if eval "test \"\${$as_ac_var+set}\" = set"; then
27102   echo $ECHO_N "(cached) $ECHO_C" >&6
27103 else
27104   cat >conftest.$ac_ext <<_ACEOF
27105 /* confdefs.h.  */
27106 _ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h.  */
27110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27112 #define $ac_func innocuous_$ac_func
27113
27114 /* System header to define __stub macros and hopefully few prototypes,
27115     which can conflict with char $ac_func (); below.
27116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27117     <limits.h> exists even on freestanding compilers.  */
27118
27119 #ifdef __STDC__
27120 # include <limits.h>
27121 #else
27122 # include <assert.h>
27123 #endif
27124
27125 #undef $ac_func
27126
27127 /* Override any gcc2 internal prototype to avoid an error.  */
27128 #ifdef __cplusplus
27129 extern "C"
27130 {
27131 #endif
27132 /* We use char because int might match the return type of a gcc2
27133    builtin and then its argument prototype would still apply.  */
27134 char $ac_func ();
27135 /* The GNU C library defines this for functions which it implements
27136     to always fail with ENOSYS.  Some functions are actually named
27137     something starting with __ and the normal name is an alias.  */
27138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27139 choke me
27140 #else
27141 char (*f) () = $ac_func;
27142 #endif
27143 #ifdef __cplusplus
27144 }
27145 #endif
27146
27147 int
27148 main ()
27149 {
27150 return f != $ac_func;
27151   ;
27152   return 0;
27153 }
27154 _ACEOF
27155 rm -f conftest.$ac_objext conftest$ac_exeext
27156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27157   (eval $ac_link) 2>conftest.er1
27158   ac_status=$?
27159   grep -v '^ *+' conftest.er1 >conftest.err
27160   rm -f conftest.er1
27161   cat conftest.err >&5
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); } &&
27164          { ac_try='test -z "$ac_c_werror_flag"
27165                          || test ! -s conftest.err'
27166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167   (eval $ac_try) 2>&5
27168   ac_status=$?
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); }; } &&
27171          { ac_try='test -s conftest$ac_exeext'
27172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173   (eval $ac_try) 2>&5
27174   ac_status=$?
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); }; }; then
27177   eval "$as_ac_var=yes"
27178 else
27179   echo "$as_me: failed program was:" >&5
27180 sed 's/^/| /' conftest.$ac_ext >&5
27181
27182 eval "$as_ac_var=no"
27183 fi
27184 rm -f conftest.err conftest.$ac_objext \
27185       conftest$ac_exeext conftest.$ac_ext
27186 fi
27187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27189 if test `eval echo '${'$as_ac_var'}'` = yes; then
27190
27191 cat >>confdefs.h <<_ACEOF
27192 #define CRAY_STACKSEG_END $ac_func
27193 _ACEOF
27194
27195     break
27196 fi
27197
27198   done
27199 fi
27200
27201 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27202 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27203 if test "${ac_cv_c_stack_direction+set}" = set; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206   if test "$cross_compiling" = yes; then
27207   ac_cv_c_stack_direction=0
27208 else
27209   cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 int
27216 find_stack_direction ()
27217 {
27218   static char *addr = 0;
27219   auto char dummy;
27220   if (addr == 0)
27221     {
27222       addr = &dummy;
27223       return find_stack_direction ();
27224     }
27225   else
27226     return (&dummy > addr) ? 1 : -1;
27227 }
27228
27229 int
27230 main ()
27231 {
27232   exit (find_stack_direction () < 0);
27233 }
27234 _ACEOF
27235 rm -f conftest$ac_exeext
27236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27237   (eval $ac_link) 2>&5
27238   ac_status=$?
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242   (eval $ac_try) 2>&5
27243   ac_status=$?
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); }; }; then
27246   ac_cv_c_stack_direction=1
27247 else
27248   echo "$as_me: program exited with status $ac_status" >&5
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27251
27252 ( exit $ac_status )
27253 ac_cv_c_stack_direction=-1
27254 fi
27255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27256 fi
27257 fi
27258 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27259 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27260
27261 cat >>confdefs.h <<_ACEOF
27262 #define STACK_DIRECTION $ac_cv_c_stack_direction
27263 _ACEOF
27264
27265
27266 fi
27267
27268
27269 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27270 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27271 if test "${ac_cv_func_rand48+set}" = set; then
27272   echo $ECHO_N "(cached) $ECHO_C" >&6
27273 else
27274   ac_ext=cc
27275 ac_cpp='$CXXCPP $CPPFLAGS'
27276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27279
27280    cat >conftest.$ac_ext <<_ACEOF
27281 /* confdefs.h.  */
27282 _ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h.  */
27286 #include <stdlib.h>
27287 int
27288 main ()
27289 {
27290 srand48(0);lrand48();drand48();
27291   ;
27292   return 0;
27293 }
27294 _ACEOF
27295 rm -f conftest.$ac_objext
27296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27297   (eval $ac_compile) 2>conftest.er1
27298   ac_status=$?
27299   grep -v '^ *+' conftest.er1 >conftest.err
27300   rm -f conftest.er1
27301   cat conftest.err >&5
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); } &&
27304          { ac_try='test -z "$ac_cxx_werror_flag"
27305                          || test ! -s conftest.err'
27306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307   (eval $ac_try) 2>&5
27308   ac_status=$?
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); }; } &&
27311          { ac_try='test -s conftest.$ac_objext'
27312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313   (eval $ac_try) 2>&5
27314   ac_status=$?
27315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); }; }; then
27317   ac_cv_func_rand48=yes
27318 else
27319   echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322 ac_cv_func_rand48=no
27323 fi
27324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27325   ac_ext=c
27326 ac_cpp='$CPP $CPPFLAGS'
27327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27330
27331 fi
27332 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27333 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27334
27335 if test "$ac_cv_func_rand48" = "yes" ; then
27336
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE_RAND48 1
27339 _ACEOF
27340
27341 fi
27342
27343
27344 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27345 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27346 if test "${ac_cv_cxx_namespaces+set}" = set; then
27347   echo $ECHO_N "(cached) $ECHO_C" >&6
27348 else
27349   ac_ext=cc
27350 ac_cpp='$CXXCPP $CPPFLAGS'
27351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27354
27355  cat >conftest.$ac_ext <<_ACEOF
27356 /* confdefs.h.  */
27357 _ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h.  */
27361 namespace Outer { namespace Inner { int i = 0; }}
27362 int
27363 main ()
27364 {
27365 using namespace Outer::Inner; return i;
27366   ;
27367   return 0;
27368 }
27369 _ACEOF
27370 rm -f conftest.$ac_objext
27371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27372   (eval $ac_compile) 2>conftest.er1
27373   ac_status=$?
27374   grep -v '^ *+' conftest.er1 >conftest.err
27375   rm -f conftest.er1
27376   cat conftest.err >&5
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); } &&
27379          { ac_try='test -z "$ac_cxx_werror_flag"
27380                          || test ! -s conftest.err'
27381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382   (eval $ac_try) 2>&5
27383   ac_status=$?
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); }; } &&
27386          { ac_try='test -s conftest.$ac_objext'
27387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27388   (eval $ac_try) 2>&5
27389   ac_status=$?
27390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391   (exit $ac_status); }; }; then
27392   ac_cv_cxx_namespaces=yes
27393 else
27394   echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27396
27397 ac_cv_cxx_namespaces=no
27398 fi
27399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27400  ac_ext=c
27401 ac_cpp='$CPP $CPPFLAGS'
27402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27405
27406
27407 fi
27408 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27409 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27410 if test "$ac_cv_cxx_namespaces" = yes; then
27411
27412 cat >>confdefs.h <<\_ACEOF
27413 #define HAVE_NAMESPACES
27414 _ACEOF
27415
27416 fi
27417
27418 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27419 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27420 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27421   echo $ECHO_N "(cached) $ECHO_C" >&6
27422 else
27423
27424   ac_ext=cc
27425 ac_cpp='$CXXCPP $CPPFLAGS'
27426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27429
27430   cat >conftest.$ac_ext <<_ACEOF
27431 /* confdefs.h.  */
27432 _ACEOF
27433 cat confdefs.h >>conftest.$ac_ext
27434 cat >>conftest.$ac_ext <<_ACEOF
27435 /* end confdefs.h.  */
27436 #include <ext/hash_map>
27437 #ifdef HAVE_NAMESPACES
27438 using namespace std;
27439 #endif
27440 int
27441 main ()
27442 {
27443 hash_map<int, int> t;
27444   ;
27445   return 0;
27446 }
27447 _ACEOF
27448 rm -f conftest.$ac_objext
27449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27450   (eval $ac_compile) 2>conftest.er1
27451   ac_status=$?
27452   grep -v '^ *+' conftest.er1 >conftest.err
27453   rm -f conftest.er1
27454   cat conftest.err >&5
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); } &&
27457          { ac_try='test -z "$ac_cxx_werror_flag"
27458                          || test ! -s conftest.err'
27459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460   (eval $ac_try) 2>&5
27461   ac_status=$?
27462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463   (exit $ac_status); }; } &&
27464          { ac_try='test -s conftest.$ac_objext'
27465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466   (eval $ac_try) 2>&5
27467   ac_status=$?
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); }; }; then
27470   ac_cv_cxx_have_std_ext_hash_map=yes
27471 else
27472   echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27474
27475 ac_cv_cxx_have_std_ext_hash_map=no
27476 fi
27477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27478   ac_ext=c
27479 ac_cpp='$CPP $CPPFLAGS'
27480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27483
27484 fi
27485 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27486 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27487  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27488  then
27489
27490 cat >>confdefs.h <<\_ACEOF
27491 #define HAVE_STD_EXT_HASH_MAP 1
27492 _ACEOF
27493
27494  else
27495
27496 cat >>confdefs.h <<\_ACEOF
27497 #define HAVE_STD_EXT_HASH_MAP 0
27498 _ACEOF
27499
27500  fi
27501
27502  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27503 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27504 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27505   echo $ECHO_N "(cached) $ECHO_C" >&6
27506 else
27507
27508   ac_ext=cc
27509 ac_cpp='$CXXCPP $CPPFLAGS'
27510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27513
27514   cat >conftest.$ac_ext <<_ACEOF
27515 /* confdefs.h.  */
27516 _ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h.  */
27520 #include <ext/hash_map>
27521 #ifdef HAVE_NAMESPACES
27522 using namespace __gnu_cxx;
27523 #endif
27524 int
27525 main ()
27526 {
27527 hash_map<int,int> t;
27528   ;
27529   return 0;
27530 }
27531 _ACEOF
27532 rm -f conftest.$ac_objext
27533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27534   (eval $ac_compile) 2>conftest.er1
27535   ac_status=$?
27536   grep -v '^ *+' conftest.er1 >conftest.err
27537   rm -f conftest.er1
27538   cat conftest.err >&5
27539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540   (exit $ac_status); } &&
27541          { ac_try='test -z "$ac_cxx_werror_flag"
27542                          || test ! -s conftest.err'
27543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544   (eval $ac_try) 2>&5
27545   ac_status=$?
27546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547   (exit $ac_status); }; } &&
27548          { ac_try='test -s conftest.$ac_objext'
27549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550   (eval $ac_try) 2>&5
27551   ac_status=$?
27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553   (exit $ac_status); }; }; then
27554   ac_cv_cxx_have_gnu_ext_hash_map=yes
27555 else
27556   echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27558
27559 ac_cv_cxx_have_gnu_ext_hash_map=no
27560 fi
27561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27562   ac_ext=c
27563 ac_cpp='$CPP $CPPFLAGS'
27564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27567
27568 fi
27569 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27570 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27571  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27572  then
27573
27574 cat >>confdefs.h <<\_ACEOF
27575 #define HAVE_GNU_EXT_HASH_MAP 1
27576 _ACEOF
27577
27578  else
27579
27580 cat >>confdefs.h <<\_ACEOF
27581 #define HAVE_GNU_EXT_HASH_MAP 0
27582 _ACEOF
27583
27584  fi
27585
27586  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27587 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27588 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27589   echo $ECHO_N "(cached) $ECHO_C" >&6
27590 else
27591
27592   ac_ext=cc
27593 ac_cpp='$CXXCPP $CPPFLAGS'
27594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27597
27598   cat >conftest.$ac_ext <<_ACEOF
27599 /* confdefs.h.  */
27600 _ACEOF
27601 cat confdefs.h >>conftest.$ac_ext
27602 cat >>conftest.$ac_ext <<_ACEOF
27603 /* end confdefs.h.  */
27604 #include <hash_map>
27605 int
27606 main ()
27607 {
27608 hash_map<int,int> t;
27609   ;
27610   return 0;
27611 }
27612 _ACEOF
27613 rm -f conftest.$ac_objext
27614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27615   (eval $ac_compile) 2>conftest.er1
27616   ac_status=$?
27617   grep -v '^ *+' conftest.er1 >conftest.err
27618   rm -f conftest.er1
27619   cat conftest.err >&5
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); } &&
27622          { ac_try='test -z "$ac_cxx_werror_flag"
27623                          || test ! -s conftest.err'
27624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625   (eval $ac_try) 2>&5
27626   ac_status=$?
27627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628   (exit $ac_status); }; } &&
27629          { ac_try='test -s conftest.$ac_objext'
27630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631   (eval $ac_try) 2>&5
27632   ac_status=$?
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); }; }; then
27635   ac_cv_cxx_have_global_hash_map=yes
27636 else
27637   echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27639
27640 ac_cv_cxx_have_global_hash_map=no
27641 fi
27642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27643   ac_ext=c
27644 ac_cpp='$CPP $CPPFLAGS'
27645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27648
27649 fi
27650 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27651 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27652  if test "$ac_cv_cxx_have_global_hash_map" = yes
27653  then
27654
27655 cat >>confdefs.h <<\_ACEOF
27656 #define HAVE_GLOBAL_HASH_MAP 1
27657 _ACEOF
27658
27659  else
27660
27661 cat >>confdefs.h <<\_ACEOF
27662 #define HAVE_GLOBAL_HASH_MAP 0
27663 _ACEOF
27664
27665  fi
27666
27667 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27668 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27669 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27670   echo $ECHO_N "(cached) $ECHO_C" >&6
27671 else
27672
27673   ac_ext=cc
27674 ac_cpp='$CXXCPP $CPPFLAGS'
27675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27678
27679   cat >conftest.$ac_ext <<_ACEOF
27680 /* confdefs.h.  */
27681 _ACEOF
27682 cat confdefs.h >>conftest.$ac_ext
27683 cat >>conftest.$ac_ext <<_ACEOF
27684 /* end confdefs.h.  */
27685 #include <ext/hash_set>
27686 #ifdef HAVE_NAMESPACES
27687 using namespace std;
27688 #endif
27689 int
27690 main ()
27691 {
27692 hash_set<int> t;
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext
27698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27699   (eval $ac_compile) 2>conftest.er1
27700   ac_status=$?
27701   grep -v '^ *+' conftest.er1 >conftest.err
27702   rm -f conftest.er1
27703   cat conftest.err >&5
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); } &&
27706          { ac_try='test -z "$ac_cxx_werror_flag"
27707                          || test ! -s conftest.err'
27708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709   (eval $ac_try) 2>&5
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); }; } &&
27713          { ac_try='test -s conftest.$ac_objext'
27714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715   (eval $ac_try) 2>&5
27716   ac_status=$?
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); }; }; then
27719   ac_cv_cxx_have_std_ext_hash_set=yes
27720 else
27721   echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27723
27724 ac_cv_cxx_have_std_ext_hash_set=no
27725 fi
27726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27727   ac_ext=c
27728 ac_cpp='$CPP $CPPFLAGS'
27729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27732
27733 fi
27734 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27735 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27736  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27737  then
27738
27739 cat >>confdefs.h <<\_ACEOF
27740 #define HAVE_STD_EXT_HASH_SET 1
27741 _ACEOF
27742
27743  else
27744
27745 cat >>confdefs.h <<\_ACEOF
27746 #define HAVE_STD_EXT_HASH_SET 0
27747 _ACEOF
27748
27749  fi
27750
27751  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27752 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27753 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27754   echo $ECHO_N "(cached) $ECHO_C" >&6
27755 else
27756
27757   ac_ext=cc
27758 ac_cpp='$CXXCPP $CPPFLAGS'
27759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27762
27763   cat >conftest.$ac_ext <<_ACEOF
27764 /* confdefs.h.  */
27765 _ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h.  */
27769 #include <ext/hash_set>
27770 #ifdef HAVE_NAMESPACES
27771 using namespace __gnu_cxx;
27772 #endif
27773 int
27774 main ()
27775 {
27776 hash_set<int> t;
27777   ;
27778   return 0;
27779 }
27780 _ACEOF
27781 rm -f conftest.$ac_objext
27782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27783   (eval $ac_compile) 2>conftest.er1
27784   ac_status=$?
27785   grep -v '^ *+' conftest.er1 >conftest.err
27786   rm -f conftest.er1
27787   cat conftest.err >&5
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); } &&
27790          { ac_try='test -z "$ac_cxx_werror_flag"
27791                          || test ! -s conftest.err'
27792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793   (eval $ac_try) 2>&5
27794   ac_status=$?
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); }; } &&
27797          { ac_try='test -s conftest.$ac_objext'
27798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27799   (eval $ac_try) 2>&5
27800   ac_status=$?
27801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); }; }; then
27803   ac_cv_cxx_have_gnu_ext_hash_set=yes
27804 else
27805   echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27807
27808 ac_cv_cxx_have_gnu_ext_hash_set=no
27809 fi
27810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27811   ac_ext=c
27812 ac_cpp='$CPP $CPPFLAGS'
27813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27816
27817 fi
27818 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27819 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27820  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27821  then
27822
27823 cat >>confdefs.h <<\_ACEOF
27824 #define HAVE_GNU_EXT_HASH_SET 1
27825 _ACEOF
27826
27827  else
27828
27829 cat >>confdefs.h <<\_ACEOF
27830 #define HAVE_GNU_EXT_HASH_SET 0
27831 _ACEOF
27832
27833  fi
27834
27835  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27836 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27837 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27838   echo $ECHO_N "(cached) $ECHO_C" >&6
27839 else
27840
27841   ac_ext=cc
27842 ac_cpp='$CXXCPP $CPPFLAGS'
27843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27846
27847   cat >conftest.$ac_ext <<_ACEOF
27848 /* confdefs.h.  */
27849 _ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h.  */
27853 #include <hash_set>
27854 int
27855 main ()
27856 {
27857 hash_set<int> t; return 0;
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext
27863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27864   (eval $ac_compile) 2>conftest.er1
27865   ac_status=$?
27866   grep -v '^ *+' conftest.er1 >conftest.err
27867   rm -f conftest.er1
27868   cat conftest.err >&5
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); } &&
27871          { ac_try='test -z "$ac_cxx_werror_flag"
27872                          || test ! -s conftest.err'
27873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874   (eval $ac_try) 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; } &&
27878          { ac_try='test -s conftest.$ac_objext'
27879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880   (eval $ac_try) 2>&5
27881   ac_status=$?
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); }; }; then
27884   ac_cv_cxx_have_global_hash_set=yes
27885 else
27886   echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27888
27889 ac_cv_cxx_have_global_hash_set=no
27890 fi
27891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27892   ac_ext=c
27893 ac_cpp='$CPP $CPPFLAGS'
27894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27897
27898 fi
27899 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27900 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
27901  if test "$ac_cv_cxx_have_global_hash_set" = yes
27902  then
27903
27904 cat >>confdefs.h <<\_ACEOF
27905 #define HAVE_GLOBAL_HASH_SET 1
27906 _ACEOF
27907
27908  else
27909
27910 cat >>confdefs.h <<\_ACEOF
27911 #define HAVE_GLOBAL_HASH_SET 0
27912 _ACEOF
27913
27914  fi
27915
27916 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27917 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27918 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921
27922   ac_ext=cc
27923 ac_cpp='$CXXCPP $CPPFLAGS'
27924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27927
27928   cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934 #include <iterator>
27935 #ifdef HAVE_NAMESPACES
27936 using namespace std;
27937 #endif
27938 int
27939 main ()
27940 {
27941 iterator<int,int,int> t; return 0;
27942   ;
27943   return 0;
27944 }
27945 _ACEOF
27946 rm -f conftest.$ac_objext
27947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27948   (eval $ac_compile) 2>conftest.er1
27949   ac_status=$?
27950   grep -v '^ *+' conftest.er1 >conftest.err
27951   rm -f conftest.er1
27952   cat conftest.err >&5
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); } &&
27955          { ac_try='test -z "$ac_cxx_werror_flag"
27956                          || test ! -s conftest.err'
27957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958   (eval $ac_try) 2>&5
27959   ac_status=$?
27960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961   (exit $ac_status); }; } &&
27962          { ac_try='test -s conftest.$ac_objext'
27963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964   (eval $ac_try) 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); }; }; then
27968   ac_cv_cxx_have_std_iterator=yes
27969 else
27970   echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27972
27973 ac_cv_cxx_have_std_iterator=no
27974 fi
27975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27976   ac_ext=c
27977 ac_cpp='$CPP $CPPFLAGS'
27978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27981
27982
27983 fi
27984 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27985 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
27986 if test "$ac_cv_cxx_have_std_iterator" = yes
27987 then
27988
27989 cat >>confdefs.h <<\_ACEOF
27990 #define HAVE_STD_ITERATOR 1
27991 _ACEOF
27992
27993 else
27994
27995 cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_STD_ITERATOR 0
27997 _ACEOF
27998
27999 fi
28000
28001 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28002 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28003 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28004   echo $ECHO_N "(cached) $ECHO_C" >&6
28005 else
28006
28007   ac_ext=cc
28008 ac_cpp='$CXXCPP $CPPFLAGS'
28009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28012
28013   cat >conftest.$ac_ext <<_ACEOF
28014 /* confdefs.h.  */
28015 _ACEOF
28016 cat confdefs.h >>conftest.$ac_ext
28017 cat >>conftest.$ac_ext <<_ACEOF
28018 /* end confdefs.h.  */
28019 #include <iterator>
28020 #ifdef HAVE_NAMESPACES
28021 using namespace std;
28022 #endif
28023 int
28024 main ()
28025 {
28026 bidirectional_iterator<int,int> t; return 0;
28027   ;
28028   return 0;
28029 }
28030 _ACEOF
28031 rm -f conftest.$ac_objext
28032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28033   (eval $ac_compile) 2>conftest.er1
28034   ac_status=$?
28035   grep -v '^ *+' conftest.er1 >conftest.err
28036   rm -f conftest.er1
28037   cat conftest.err >&5
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); } &&
28040          { ac_try='test -z "$ac_cxx_werror_flag"
28041                          || test ! -s conftest.err'
28042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28043   (eval $ac_try) 2>&5
28044   ac_status=$?
28045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046   (exit $ac_status); }; } &&
28047          { ac_try='test -s conftest.$ac_objext'
28048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28049   (eval $ac_try) 2>&5
28050   ac_status=$?
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); }; }; then
28053   ac_cv_cxx_have_bi_iterator=yes
28054 else
28055   echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28057
28058 ac_cv_cxx_have_bi_iterator=no
28059 fi
28060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28061   ac_ext=c
28062 ac_cpp='$CPP $CPPFLAGS'
28063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28066
28067
28068 fi
28069 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28070 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28071 if test "$ac_cv_cxx_have_bi_iterator" = yes
28072 then
28073
28074 cat >>confdefs.h <<\_ACEOF
28075 #define HAVE_BI_ITERATOR 1
28076 _ACEOF
28077
28078 else
28079
28080 cat >>confdefs.h <<\_ACEOF
28081 #define HAVE_BI_ITERATOR 0
28082 _ACEOF
28083
28084 fi
28085
28086 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28087 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28088 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28089   echo $ECHO_N "(cached) $ECHO_C" >&6
28090 else
28091
28092   ac_ext=cc
28093 ac_cpp='$CXXCPP $CPPFLAGS'
28094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28097
28098   cat >conftest.$ac_ext <<_ACEOF
28099 /* confdefs.h.  */
28100 _ACEOF
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h.  */
28104 #include <iterator>
28105 #ifdef HAVE_NAMESPACES
28106 using namespace std;
28107 #endif
28108 int
28109 main ()
28110 {
28111 forward_iterator<int,int> t; return 0;
28112   ;
28113   return 0;
28114 }
28115 _ACEOF
28116 rm -f conftest.$ac_objext
28117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28118   (eval $ac_compile) 2>conftest.er1
28119   ac_status=$?
28120   grep -v '^ *+' conftest.er1 >conftest.err
28121   rm -f conftest.er1
28122   cat conftest.err >&5
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); } &&
28125          { ac_try='test -z "$ac_cxx_werror_flag"
28126                          || test ! -s conftest.err'
28127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128   (eval $ac_try) 2>&5
28129   ac_status=$?
28130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131   (exit $ac_status); }; } &&
28132          { ac_try='test -s conftest.$ac_objext'
28133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134   (eval $ac_try) 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); }; }; then
28138   ac_cv_cxx_have_fwd_iterator=yes
28139 else
28140   echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28142
28143 ac_cv_cxx_have_fwd_iterator=no
28144 fi
28145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28146   ac_ext=c
28147 ac_cpp='$CPP $CPPFLAGS'
28148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28151
28152
28153 fi
28154 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28155 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28156 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28157 then
28158
28159 cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_FWD_ITERATOR 1
28161 _ACEOF
28162
28163 else
28164
28165 cat >>confdefs.h <<\_ACEOF
28166 #define HAVE_FWD_ITERATOR 0
28167 _ACEOF
28168
28169 fi
28170
28171
28172 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28173 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28174 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28175   echo $ECHO_N "(cached) $ECHO_C" >&6
28176 else
28177   ac_ext=cc
28178 ac_cpp='$CXXCPP $CPPFLAGS'
28179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28182
28183    cat >conftest.$ac_ext <<_ACEOF
28184 /* confdefs.h.  */
28185 _ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h.  */
28189 #include <math.h>
28190 int
28191 main ()
28192 {
28193 float f; isnan(f);
28194   ;
28195   return 0;
28196 }
28197 _ACEOF
28198 rm -f conftest.$ac_objext
28199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28200   (eval $ac_compile) 2>conftest.er1
28201   ac_status=$?
28202   grep -v '^ *+' conftest.er1 >conftest.err
28203   rm -f conftest.er1
28204   cat conftest.err >&5
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); } &&
28207          { ac_try='test -z "$ac_cxx_werror_flag"
28208                          || test ! -s conftest.err'
28209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210   (eval $ac_try) 2>&5
28211   ac_status=$?
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); }; } &&
28214          { ac_try='test -s conftest.$ac_objext'
28215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216   (eval $ac_try) 2>&5
28217   ac_status=$?
28218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); }; }; then
28220   ac_cv_func_isnan_in_math_h=yes
28221 else
28222   echo "$as_me: failed program was:" >&5
28223 sed 's/^/| /' conftest.$ac_ext >&5
28224
28225 ac_cv_func_isnan_in_math_h=no
28226 fi
28227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28228   ac_ext=c
28229 ac_cpp='$CPP $CPPFLAGS'
28230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28233
28234 fi
28235 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28236 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28237
28238
28239 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28240
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_ISNAN_IN_MATH_H 1
28243 _ACEOF
28244
28245 fi
28246
28247 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28248 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28249 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28250   echo $ECHO_N "(cached) $ECHO_C" >&6
28251 else
28252   ac_ext=cc
28253 ac_cpp='$CXXCPP $CPPFLAGS'
28254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28257
28258    cat >conftest.$ac_ext <<_ACEOF
28259 /* confdefs.h.  */
28260 _ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h.  */
28264 #include <cmath>
28265 int
28266 main ()
28267 {
28268 float f; isnan(f);
28269   ;
28270   return 0;
28271 }
28272 _ACEOF
28273 rm -f conftest.$ac_objext
28274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28275   (eval $ac_compile) 2>conftest.er1
28276   ac_status=$?
28277   grep -v '^ *+' conftest.er1 >conftest.err
28278   rm -f conftest.er1
28279   cat conftest.err >&5
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); } &&
28282          { ac_try='test -z "$ac_cxx_werror_flag"
28283                          || test ! -s conftest.err'
28284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285   (eval $ac_try) 2>&5
28286   ac_status=$?
28287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288   (exit $ac_status); }; } &&
28289          { ac_try='test -s conftest.$ac_objext'
28290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291   (eval $ac_try) 2>&5
28292   ac_status=$?
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); }; }; then
28295   ac_cv_func_isnan_in_cmath=yes
28296 else
28297   echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28299
28300 ac_cv_func_isnan_in_cmath=no
28301 fi
28302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28303   ac_ext=c
28304 ac_cpp='$CPP $CPPFLAGS'
28305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28308
28309 fi
28310 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28311 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28312
28313 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28314
28315 cat >>confdefs.h <<\_ACEOF
28316 #define HAVE_ISNAN_IN_CMATH 1
28317 _ACEOF
28318
28319 fi
28320
28321 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28322 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28323 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28324   echo $ECHO_N "(cached) $ECHO_C" >&6
28325 else
28326   ac_ext=cc
28327 ac_cpp='$CXXCPP $CPPFLAGS'
28328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28331
28332    cat >conftest.$ac_ext <<_ACEOF
28333 /* confdefs.h.  */
28334 _ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h.  */
28338 #include <cmath>
28339 int
28340 main ()
28341 {
28342 float f; std::isnan(f);
28343   ;
28344   return 0;
28345 }
28346 _ACEOF
28347 rm -f conftest.$ac_objext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349   (eval $ac_compile) 2>conftest.er1
28350   ac_status=$?
28351   grep -v '^ *+' conftest.er1 >conftest.err
28352   rm -f conftest.er1
28353   cat conftest.err >&5
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); } &&
28356          { ac_try='test -z "$ac_cxx_werror_flag"
28357                          || test ! -s conftest.err'
28358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359   (eval $ac_try) 2>&5
28360   ac_status=$?
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); }; } &&
28363          { ac_try='test -s conftest.$ac_objext'
28364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365   (eval $ac_try) 2>&5
28366   ac_status=$?
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); }; }; then
28369   ac_cv_func_std_isnan_in_cmath=yes
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374 ac_cv_func_std_isnan_in_cmath=no
28375 fi
28376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28377   ac_ext=c
28378 ac_cpp='$CPP $CPPFLAGS'
28379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382
28383 fi
28384 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28385 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28386
28387 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28388
28389 cat >>confdefs.h <<\_ACEOF
28390 #define HAVE_STD_ISNAN_IN_CMATH 1
28391 _ACEOF
28392
28393 fi
28394
28395
28396 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28397 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28398 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28399   echo $ECHO_N "(cached) $ECHO_C" >&6
28400 else
28401   ac_ext=cc
28402 ac_cpp='$CXXCPP $CPPFLAGS'
28403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28406
28407    cat >conftest.$ac_ext <<_ACEOF
28408 /* confdefs.h.  */
28409 _ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h.  */
28413 #include <math.h>
28414 int
28415 main ()
28416 {
28417 float f; isinf(f);
28418   ;
28419   return 0;
28420 }
28421 _ACEOF
28422 rm -f conftest.$ac_objext
28423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28424   (eval $ac_compile) 2>conftest.er1
28425   ac_status=$?
28426   grep -v '^ *+' conftest.er1 >conftest.err
28427   rm -f conftest.er1
28428   cat conftest.err >&5
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); } &&
28431          { ac_try='test -z "$ac_cxx_werror_flag"
28432                          || test ! -s conftest.err'
28433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434   (eval $ac_try) 2>&5
28435   ac_status=$?
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); }; } &&
28438          { ac_try='test -s conftest.$ac_objext'
28439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440   (eval $ac_try) 2>&5
28441   ac_status=$?
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); }; }; then
28444   ac_cv_func_isinf_in_math_h=yes
28445 else
28446   echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28448
28449 ac_cv_func_isinf_in_math_h=no
28450 fi
28451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28452   ac_ext=c
28453 ac_cpp='$CPP $CPPFLAGS'
28454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28457
28458 fi
28459 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28460 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28461
28462 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28463
28464 cat >>confdefs.h <<\_ACEOF
28465 #define HAVE_ISINF_IN_MATH_H 1
28466 _ACEOF
28467
28468 fi
28469
28470 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28471 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28472 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28473   echo $ECHO_N "(cached) $ECHO_C" >&6
28474 else
28475   ac_ext=cc
28476 ac_cpp='$CXXCPP $CPPFLAGS'
28477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28480
28481    cat >conftest.$ac_ext <<_ACEOF
28482 /* confdefs.h.  */
28483 _ACEOF
28484 cat confdefs.h >>conftest.$ac_ext
28485 cat >>conftest.$ac_ext <<_ACEOF
28486 /* end confdefs.h.  */
28487 #include <cmath>
28488 int
28489 main ()
28490 {
28491 float f; isinf(f);
28492   ;
28493   return 0;
28494 }
28495 _ACEOF
28496 rm -f conftest.$ac_objext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28498   (eval $ac_compile) 2>conftest.er1
28499   ac_status=$?
28500   grep -v '^ *+' conftest.er1 >conftest.err
28501   rm -f conftest.er1
28502   cat conftest.err >&5
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); } &&
28505          { ac_try='test -z "$ac_cxx_werror_flag"
28506                          || test ! -s conftest.err'
28507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508   (eval $ac_try) 2>&5
28509   ac_status=$?
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); }; } &&
28512          { ac_try='test -s conftest.$ac_objext'
28513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514   (eval $ac_try) 2>&5
28515   ac_status=$?
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); }; }; then
28518   ac_cv_func_isinf_in_cmath=yes
28519 else
28520   echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523 ac_cv_func_isinf_in_cmath=no
28524 fi
28525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28526   ac_ext=c
28527 ac_cpp='$CPP $CPPFLAGS'
28528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28531
28532 fi
28533 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28534 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28535
28536 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28537
28538 cat >>confdefs.h <<\_ACEOF
28539 #define HAVE_ISINF_IN_CMATH 1
28540 _ACEOF
28541
28542 fi
28543
28544 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28545 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28546 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28547   echo $ECHO_N "(cached) $ECHO_C" >&6
28548 else
28549   ac_ext=cc
28550 ac_cpp='$CXXCPP $CPPFLAGS'
28551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28554
28555    cat >conftest.$ac_ext <<_ACEOF
28556 /* confdefs.h.  */
28557 _ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h.  */
28561 #include <cmath>
28562 int
28563 main ()
28564 {
28565 float f; std::isinf(f)}
28566   ;
28567   return 0;
28568 }
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28572   (eval $ac_compile) 2>conftest.er1
28573   ac_status=$?
28574   grep -v '^ *+' conftest.er1 >conftest.err
28575   rm -f conftest.er1
28576   cat conftest.err >&5
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); } &&
28579          { ac_try='test -z "$ac_cxx_werror_flag"
28580                          || test ! -s conftest.err'
28581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582   (eval $ac_try) 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; } &&
28586          { ac_try='test -s conftest.$ac_objext'
28587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588   (eval $ac_try) 2>&5
28589   ac_status=$?
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); }; }; then
28592   ac_cv_func_std_isinf_in_cmath=yes
28593 else
28594   echo "$as_me: failed program was:" >&5
28595 sed 's/^/| /' conftest.$ac_ext >&5
28596
28597 ac_cv_func_std_isinf_in_cmath=no
28598 fi
28599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28600   ac_ext=c
28601 ac_cpp='$CPP $CPPFLAGS'
28602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28605
28606 fi
28607 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28608 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28609
28610 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28611
28612 cat >>confdefs.h <<\_ACEOF
28613 #define HAVE_STD_ISINF_IN_CMATH 1
28614 _ACEOF
28615
28616 fi
28617
28618 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28619 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28620 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28621   echo $ECHO_N "(cached) $ECHO_C" >&6
28622 else
28623   ac_ext=cc
28624 ac_cpp='$CXXCPP $CPPFLAGS'
28625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28628
28629    cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h.  */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h.  */
28635 #include <ieeefp.h>
28636 int
28637 main ()
28638 {
28639 float f; finite(f);
28640   ;
28641   return 0;
28642 }
28643 _ACEOF
28644 rm -f conftest.$ac_objext
28645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28646   (eval $ac_compile) 2>conftest.er1
28647   ac_status=$?
28648   grep -v '^ *+' conftest.er1 >conftest.err
28649   rm -f conftest.er1
28650   cat conftest.err >&5
28651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652   (exit $ac_status); } &&
28653          { ac_try='test -z "$ac_cxx_werror_flag"
28654                          || test ! -s conftest.err'
28655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656   (eval $ac_try) 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; } &&
28660          { ac_try='test -s conftest.$ac_objext'
28661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662   (eval $ac_try) 2>&5
28663   ac_status=$?
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); }; }; then
28666   ac_cv_func_finite_in_ieeefp_h=yes
28667 else
28668   echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28670
28671 ac_cv_func_finite_in_ieeefp_h=no
28672 fi
28673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28674   ac_ext=c
28675 ac_cpp='$CPP $CPPFLAGS'
28676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28679
28680 fi
28681 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28682 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28683
28684 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28685
28686 cat >>confdefs.h <<\_ACEOF
28687 #define HAVE_FINITE_IN_IEEEFP_H 1
28688 _ACEOF
28689
28690 fi
28691
28692
28693
28694
28695
28696 for ac_header in stdlib.h unistd.h
28697 do
28698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28700   echo "$as_me:$LINENO: checking for $ac_header" >&5
28701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28703   echo $ECHO_N "(cached) $ECHO_C" >&6
28704 fi
28705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28707 else
28708   # Is the header compilable?
28709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28711 cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h.  */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h.  */
28717 $ac_includes_default
28718 #include <$ac_header>
28719 _ACEOF
28720 rm -f conftest.$ac_objext
28721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28722   (eval $ac_compile) 2>conftest.er1
28723   ac_status=$?
28724   grep -v '^ *+' conftest.er1 >conftest.err
28725   rm -f conftest.er1
28726   cat conftest.err >&5
28727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728   (exit $ac_status); } &&
28729          { ac_try='test -z "$ac_c_werror_flag"
28730                          || test ! -s conftest.err'
28731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732   (eval $ac_try) 2>&5
28733   ac_status=$?
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); }; } &&
28736          { ac_try='test -s conftest.$ac_objext'
28737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738   (eval $ac_try) 2>&5
28739   ac_status=$?
28740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741   (exit $ac_status); }; }; then
28742   ac_header_compiler=yes
28743 else
28744   echo "$as_me: failed program was:" >&5
28745 sed 's/^/| /' conftest.$ac_ext >&5
28746
28747 ac_header_compiler=no
28748 fi
28749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28751 echo "${ECHO_T}$ac_header_compiler" >&6
28752
28753 # Is the header present?
28754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28756 cat >conftest.$ac_ext <<_ACEOF
28757 /* confdefs.h.  */
28758 _ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h.  */
28762 #include <$ac_header>
28763 _ACEOF
28764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28766   ac_status=$?
28767   grep -v '^ *+' conftest.er1 >conftest.err
28768   rm -f conftest.er1
28769   cat conftest.err >&5
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); } >/dev/null; then
28772   if test -s conftest.err; then
28773     ac_cpp_err=$ac_c_preproc_warn_flag
28774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28775   else
28776     ac_cpp_err=
28777   fi
28778 else
28779   ac_cpp_err=yes
28780 fi
28781 if test -z "$ac_cpp_err"; then
28782   ac_header_preproc=yes
28783 else
28784   echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787   ac_header_preproc=no
28788 fi
28789 rm -f conftest.err conftest.$ac_ext
28790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28791 echo "${ECHO_T}$ac_header_preproc" >&6
28792
28793 # So?  What about this header?
28794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28795   yes:no: )
28796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28800     ac_header_preproc=yes
28801     ;;
28802   no:yes:* )
28803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28815     (
28816       cat <<\_ASBOX
28817 ## ----------------------------------- ##
28818 ## Report this to llvmbugs@cs.uiuc.edu ##
28819 ## ----------------------------------- ##
28820 _ASBOX
28821     ) |
28822       sed "s/^/$as_me: WARNING:     /" >&2
28823     ;;
28824 esac
28825 echo "$as_me:$LINENO: checking for $ac_header" >&5
28826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28828   echo $ECHO_N "(cached) $ECHO_C" >&6
28829 else
28830   eval "$as_ac_Header=\$ac_header_preproc"
28831 fi
28832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28834
28835 fi
28836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28837   cat >>confdefs.h <<_ACEOF
28838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28839 _ACEOF
28840
28841 fi
28842
28843 done
28844
28845
28846 for ac_func in getpagesize
28847 do
28848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28849 echo "$as_me:$LINENO: checking for $ac_func" >&5
28850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28851 if eval "test \"\${$as_ac_var+set}\" = set"; then
28852   echo $ECHO_N "(cached) $ECHO_C" >&6
28853 else
28854   cat >conftest.$ac_ext <<_ACEOF
28855 /* confdefs.h.  */
28856 _ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h.  */
28860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28862 #define $ac_func innocuous_$ac_func
28863
28864 /* System header to define __stub macros and hopefully few prototypes,
28865     which can conflict with char $ac_func (); below.
28866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28867     <limits.h> exists even on freestanding compilers.  */
28868
28869 #ifdef __STDC__
28870 # include <limits.h>
28871 #else
28872 # include <assert.h>
28873 #endif
28874
28875 #undef $ac_func
28876
28877 /* Override any gcc2 internal prototype to avoid an error.  */
28878 #ifdef __cplusplus
28879 extern "C"
28880 {
28881 #endif
28882 /* We use char because int might match the return type of a gcc2
28883    builtin and then its argument prototype would still apply.  */
28884 char $ac_func ();
28885 /* The GNU C library defines this for functions which it implements
28886     to always fail with ENOSYS.  Some functions are actually named
28887     something starting with __ and the normal name is an alias.  */
28888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28889 choke me
28890 #else
28891 char (*f) () = $ac_func;
28892 #endif
28893 #ifdef __cplusplus
28894 }
28895 #endif
28896
28897 int
28898 main ()
28899 {
28900 return f != $ac_func;
28901   ;
28902   return 0;
28903 }
28904 _ACEOF
28905 rm -f conftest.$ac_objext conftest$ac_exeext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28907   (eval $ac_link) 2>conftest.er1
28908   ac_status=$?
28909   grep -v '^ *+' conftest.er1 >conftest.err
28910   rm -f conftest.er1
28911   cat conftest.err >&5
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); } &&
28914          { ac_try='test -z "$ac_c_werror_flag"
28915                          || test ! -s conftest.err'
28916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917   (eval $ac_try) 2>&5
28918   ac_status=$?
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); }; } &&
28921          { ac_try='test -s conftest$ac_exeext'
28922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923   (eval $ac_try) 2>&5
28924   ac_status=$?
28925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926   (exit $ac_status); }; }; then
28927   eval "$as_ac_var=yes"
28928 else
28929   echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28931
28932 eval "$as_ac_var=no"
28933 fi
28934 rm -f conftest.err conftest.$ac_objext \
28935       conftest$ac_exeext conftest.$ac_ext
28936 fi
28937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28939 if test `eval echo '${'$as_ac_var'}'` = yes; then
28940   cat >>confdefs.h <<_ACEOF
28941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28942 _ACEOF
28943
28944 fi
28945 done
28946
28947 echo "$as_me:$LINENO: checking for working mmap" >&5
28948 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28950   echo $ECHO_N "(cached) $ECHO_C" >&6
28951 else
28952   if test "$cross_compiling" = yes; then
28953   ac_cv_func_mmap_fixed_mapped=no
28954 else
28955   cat >conftest.$ac_ext <<_ACEOF
28956 /* confdefs.h.  */
28957 _ACEOF
28958 cat confdefs.h >>conftest.$ac_ext
28959 cat >>conftest.$ac_ext <<_ACEOF
28960 /* end confdefs.h.  */
28961 $ac_includes_default
28962 /* malloc might have been renamed as rpl_malloc. */
28963 #undef malloc
28964
28965 /* Thanks to Mike Haertel and Jim Avera for this test.
28966    Here is a matrix of mmap possibilities:
28967         mmap private not fixed
28968         mmap private fixed at somewhere currently unmapped
28969         mmap private fixed at somewhere already mapped
28970         mmap shared not fixed
28971         mmap shared fixed at somewhere currently unmapped
28972         mmap shared fixed at somewhere already mapped
28973    For private mappings, we should verify that changes cannot be read()
28974    back from the file, nor mmap's back from the file at a different
28975    address.  (There have been systems where private was not correctly
28976    implemented like the infamous i386 svr4.0, and systems where the
28977    VM page cache was not coherent with the file system buffer cache
28978    like early versions of FreeBSD and possibly contemporary NetBSD.)
28979    For shared mappings, we should conversely verify that changes get
28980    propagated back to all the places they're supposed to be.
28981
28982    Grep wants private fixed already mapped.
28983    The main things grep needs to know about mmap are:
28984    * does it exist and is it safe to write into the mmap'd area
28985    * how to use it (BSD variants)  */
28986
28987 #include <fcntl.h>
28988 #include <sys/mman.h>
28989
28990 #if !STDC_HEADERS && !HAVE_STDLIB_H
28991 char *malloc ();
28992 #endif
28993
28994 /* This mess was copied from the GNU getpagesize.h.  */
28995 #if !HAVE_GETPAGESIZE
28996 /* Assume that all systems that can run configure have sys/param.h.  */
28997 # if !HAVE_SYS_PARAM_H
28998 #  define HAVE_SYS_PARAM_H 1
28999 # endif
29000
29001 # ifdef _SC_PAGESIZE
29002 #  define getpagesize() sysconf(_SC_PAGESIZE)
29003 # else /* no _SC_PAGESIZE */
29004 #  if HAVE_SYS_PARAM_H
29005 #   include <sys/param.h>
29006 #   ifdef EXEC_PAGESIZE
29007 #    define getpagesize() EXEC_PAGESIZE
29008 #   else /* no EXEC_PAGESIZE */
29009 #    ifdef NBPG
29010 #     define getpagesize() NBPG * CLSIZE
29011 #     ifndef CLSIZE
29012 #      define CLSIZE 1
29013 #     endif /* no CLSIZE */
29014 #    else /* no NBPG */
29015 #     ifdef NBPC
29016 #      define getpagesize() NBPC
29017 #     else /* no NBPC */
29018 #      ifdef PAGESIZE
29019 #       define getpagesize() PAGESIZE
29020 #      endif /* PAGESIZE */
29021 #     endif /* no NBPC */
29022 #    endif /* no NBPG */
29023 #   endif /* no EXEC_PAGESIZE */
29024 #  else /* no HAVE_SYS_PARAM_H */
29025 #   define getpagesize() 8192   /* punt totally */
29026 #  endif /* no HAVE_SYS_PARAM_H */
29027 # endif /* no _SC_PAGESIZE */
29028
29029 #endif /* no HAVE_GETPAGESIZE */
29030
29031 int
29032 main ()
29033 {
29034   char *data, *data2, *data3;
29035   int i, pagesize;
29036   int fd;
29037
29038   pagesize = getpagesize ();
29039
29040   /* First, make a file with some known garbage in it. */
29041   data = (char *) malloc (pagesize);
29042   if (!data)
29043     exit (1);
29044   for (i = 0; i < pagesize; ++i)
29045     *(data + i) = rand ();
29046   umask (0);
29047   fd = creat ("conftest.mmap", 0600);
29048   if (fd < 0)
29049     exit (1);
29050   if (write (fd, data, pagesize) != pagesize)
29051     exit (1);
29052   close (fd);
29053
29054   /* Next, try to mmap the file at a fixed address which already has
29055      something else allocated at it.  If we can, also make sure that
29056      we see the same garbage.  */
29057   fd = open ("conftest.mmap", O_RDWR);
29058   if (fd < 0)
29059     exit (1);
29060   data2 = (char *) malloc (2 * pagesize);
29061   if (!data2)
29062     exit (1);
29063   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29064   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29065                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29066     exit (1);
29067   for (i = 0; i < pagesize; ++i)
29068     if (*(data + i) != *(data2 + i))
29069       exit (1);
29070
29071   /* Finally, make sure that changes to the mapped area do not
29072      percolate back to the file as seen by read().  (This is a bug on
29073      some variants of i386 svr4.0.)  */
29074   for (i = 0; i < pagesize; ++i)
29075     *(data2 + i) = *(data2 + i) + 1;
29076   data3 = (char *) malloc (pagesize);
29077   if (!data3)
29078     exit (1);
29079   if (read (fd, data3, pagesize) != pagesize)
29080     exit (1);
29081   for (i = 0; i < pagesize; ++i)
29082     if (*(data + i) != *(data3 + i))
29083       exit (1);
29084   close (fd);
29085   exit (0);
29086 }
29087 _ACEOF
29088 rm -f conftest$ac_exeext
29089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29090   (eval $ac_link) 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095   (eval $ac_try) 2>&5
29096   ac_status=$?
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); }; }; then
29099   ac_cv_func_mmap_fixed_mapped=yes
29100 else
29101   echo "$as_me: program exited with status $ac_status" >&5
29102 echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29104
29105 ( exit $ac_status )
29106 ac_cv_func_mmap_fixed_mapped=no
29107 fi
29108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29109 fi
29110 fi
29111 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29112 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29113 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29114
29115 cat >>confdefs.h <<\_ACEOF
29116 #define HAVE_MMAP 1
29117 _ACEOF
29118
29119 fi
29120 rm -f conftest.mmap
29121
29122 echo "$as_me:$LINENO: checking for mmap of files" >&5
29123 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29124 if test "${ac_cv_func_mmap_file+set}" = set; then
29125   echo $ECHO_N "(cached) $ECHO_C" >&6
29126 else
29127    ac_ext=c
29128 ac_cpp='$CPP $CPPFLAGS'
29129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29132
29133   if test "$cross_compiling" = yes; then
29134   ac_cv_func_mmap_file=no
29135 else
29136   cat >conftest.$ac_ext <<_ACEOF
29137
29138     /* confdefs.h.  */
29139 _ACEOF
29140 cat confdefs.h >>conftest.$ac_ext
29141 cat >>conftest.$ac_ext <<_ACEOF
29142 /* end confdefs.h.  */
29143
29144 #include <sys/types.h>
29145 #include <sys/mman.h>
29146 #include <fcntl.h>
29147
29148 int
29149 main ()
29150 {
29151
29152   int fd;
29153   fd = creat ("foo",0777);
29154   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29155   unlink ("foo");
29156   return (fd != (int) MAP_FAILED);
29157   ;
29158   return 0;
29159 }
29160 _ACEOF
29161 rm -f conftest$ac_exeext
29162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29163   (eval $ac_link) 2>&5
29164   ac_status=$?
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29168   (eval $ac_try) 2>&5
29169   ac_status=$?
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); }; }; then
29172   ac_cv_func_mmap_file=yes
29173 else
29174   echo "$as_me: program exited with status $ac_status" >&5
29175 echo "$as_me: failed program was:" >&5
29176 sed 's/^/| /' conftest.$ac_ext >&5
29177
29178 ( exit $ac_status )
29179 ac_cv_func_mmap_file=no
29180 fi
29181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29182 fi
29183   ac_ext=c
29184 ac_cpp='$CPP $CPPFLAGS'
29185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29188
29189
29190 fi
29191 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29192 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29193 if test "$ac_cv_func_mmap_file" = yes; then
29194
29195 cat >>confdefs.h <<\_ACEOF
29196 #define HAVE_MMAP_FILE
29197 _ACEOF
29198
29199    MMAP_FILE=yes
29200
29201 fi
29202
29203 echo "$as_me:$LINENO: checking for mprotect" >&5
29204 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29205 if test "${ac_cv_func_mprotect+set}" = set; then
29206   echo $ECHO_N "(cached) $ECHO_C" >&6
29207 else
29208   cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h.  */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h.  */
29214 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29216 #define mprotect innocuous_mprotect
29217
29218 /* System header to define __stub macros and hopefully few prototypes,
29219     which can conflict with char mprotect (); below.
29220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29221     <limits.h> exists even on freestanding compilers.  */
29222
29223 #ifdef __STDC__
29224 # include <limits.h>
29225 #else
29226 # include <assert.h>
29227 #endif
29228
29229 #undef mprotect
29230
29231 /* Override any gcc2 internal prototype to avoid an error.  */
29232 #ifdef __cplusplus
29233 extern "C"
29234 {
29235 #endif
29236 /* We use char because int might match the return type of a gcc2
29237    builtin and then its argument prototype would still apply.  */
29238 char mprotect ();
29239 /* The GNU C library defines this for functions which it implements
29240     to always fail with ENOSYS.  Some functions are actually named
29241     something starting with __ and the normal name is an alias.  */
29242 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29243 choke me
29244 #else
29245 char (*f) () = mprotect;
29246 #endif
29247 #ifdef __cplusplus
29248 }
29249 #endif
29250
29251 int
29252 main ()
29253 {
29254 return f != mprotect;
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext conftest$ac_exeext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29261   (eval $ac_link) 2>conftest.er1
29262   ac_status=$?
29263   grep -v '^ *+' conftest.er1 >conftest.err
29264   rm -f conftest.er1
29265   cat conftest.err >&5
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); } &&
29268          { ac_try='test -z "$ac_c_werror_flag"
29269                          || test ! -s conftest.err'
29270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271   (eval $ac_try) 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; } &&
29275          { ac_try='test -s conftest$ac_exeext'
29276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277   (eval $ac_try) 2>&5
29278   ac_status=$?
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); }; }; then
29281   ac_cv_func_mprotect=yes
29282 else
29283   echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29285
29286 ac_cv_func_mprotect=no
29287 fi
29288 rm -f conftest.err conftest.$ac_objext \
29289       conftest$ac_exeext conftest.$ac_ext
29290 fi
29291 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29292 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29293 if test $ac_cv_func_mprotect = yes; then
29294   :
29295 else
29296   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29297 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29298    { (exit 1); exit 1; }; }
29299 fi
29300
29301
29302 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29303 then
29304   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29305 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29306 fi
29307 if test "$ac_cv_func_mmap_file" = "no"
29308 then
29309   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29310 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29311 fi
29312
29313
29314 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29315 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29316 if test "${llvm_cv_llvmgcc+set}" = set; then
29317   echo $ECHO_N "(cached) $ECHO_C" >&6
29318 else
29319   llvm_cv_llvmgcc='llvmgcc_not_found'
29320 if test -d "$LLVMGCCDIR" ; then
29321   if test -x "$LLVMGCCDIR/bin/gcc" ; then
29322     llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29323   fi
29324 fi
29325 fi
29326 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29327 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29328
29329 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29330 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29331 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29332   echo $ECHO_N "(cached) $ECHO_C" >&6
29333 else
29334   llvm_cv_llvmgcc_sanity="no"
29335 if test -x "$llvm_cv_llvmgcc" ; then
29336   cp /dev/null conftest.c
29337   "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29338   if test $? -eq 0 ; then
29339     llvm_cv_llvmgcc_sanity="yes"
29340   fi
29341   rm conftest.c
29342 fi
29343 fi
29344 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29345 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29346
29347 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29348   LLVMGCC="$llvm_cv_llvmgcc"
29349
29350   llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29351   LLVMCC1=$llvmcc1path
29352
29353   llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29354   LLVMCC1PLUS=$llvmcc1pluspath
29355
29356 fi
29357
29358 SHLIBEXT=$libltdl_cv_shlibext
29359
29360
29361 # Translate the various configuration directories and other basic
29362 # information into substitutions that will end up in Makefile.config.in
29363 # that these configured values can be used by the makefiles
29364 eval LLVM_PREFIX="${prefix}";
29365 eval LLVM_BINDIR="${prefix}/bin";
29366 eval LLVM_LIBDIR="${prefix}/lib";
29367 eval LLVM_DATADIR="${prefix}/share/llvm";
29368 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29369 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29370 eval LLVM_INCLUDEDIR="${prefix}/include";
29371 eval LLVM_INFODIR="${prefix}/info";
29372 eval LLVM_MANDIR="${prefix}/man";
29373 LLVM_CONFIGTIME=`date`
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385 # Place the various directores into the config.h file as #defines so that we
29386 # can know about the installation paths within LLVM.
29387
29388 cat >>confdefs.h <<_ACEOF
29389 #define LLVM_PREFIX "$LLVM_PREFIX"
29390 _ACEOF
29391
29392
29393 cat >>confdefs.h <<_ACEOF
29394 #define LLVM_BINDIR "$LLVM_BINDIR"
29395 _ACEOF
29396
29397
29398 cat >>confdefs.h <<_ACEOF
29399 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29400 _ACEOF
29401
29402
29403 cat >>confdefs.h <<_ACEOF
29404 #define LLVM_DATADIR "$LLVM_DATADIR"
29405 _ACEOF
29406
29407
29408 cat >>confdefs.h <<_ACEOF
29409 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29410 _ACEOF
29411
29412
29413 cat >>confdefs.h <<_ACEOF
29414 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29415 _ACEOF
29416
29417
29418 cat >>confdefs.h <<_ACEOF
29419 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29420 _ACEOF
29421
29422
29423 cat >>confdefs.h <<_ACEOF
29424 #define LLVM_INFODIR "$LLVM_INFODIR"
29425 _ACEOF
29426
29427
29428 cat >>confdefs.h <<_ACEOF
29429 #define LLVM_MANDIR "$LLVM_MANDIR"
29430 _ACEOF
29431
29432
29433 cat >>confdefs.h <<_ACEOF
29434 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29435 _ACEOF
29436
29437
29438
29439           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29440
29441
29442           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29443
29444           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29445
29446           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29447
29448           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29449
29450           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29451
29452
29453           ac_config_files="$ac_config_files Makefile.config"
29454
29455
29456                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29457
29458
29459           ac_config_files="$ac_config_files docs/doxygen.cfg"
29460
29461
29462           ac_config_commands="$ac_config_commands Makefile"
29463
29464
29465           ac_config_commands="$ac_config_commands Makefile.common"
29466
29467
29468           ac_config_commands="$ac_config_commands examples/Makefile"
29469
29470
29471           ac_config_commands="$ac_config_commands lib/Makefile"
29472
29473
29474           ac_config_commands="$ac_config_commands runtime/Makefile"
29475
29476
29477           ac_config_commands="$ac_config_commands test/Makefile"
29478
29479
29480           ac_config_commands="$ac_config_commands test/Makefile.tests"
29481
29482
29483           ac_config_commands="$ac_config_commands tools/Makefile"
29484
29485
29486           ac_config_commands="$ac_config_commands utils/Makefile"
29487
29488
29489           ac_config_commands="$ac_config_commands projects/Makefile"
29490
29491
29492
29493 cat >confcache <<\_ACEOF
29494 # This file is a shell script that caches the results of configure
29495 # tests run on this system so they can be shared between configure
29496 # scripts and configure runs, see configure's option --config-cache.
29497 # It is not useful on other systems.  If it contains results you don't
29498 # want to keep, you may remove or edit it.
29499 #
29500 # config.status only pays attention to the cache file if you give it
29501 # the --recheck option to rerun configure.
29502 #
29503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29505 # following values.
29506
29507 _ACEOF
29508
29509 # The following way of writing the cache mishandles newlines in values,
29510 # but we know of no workaround that is simple, portable, and efficient.
29511 # So, don't put newlines in cache variables' values.
29512 # Ultrix sh set writes to stderr and can't be redirected directly,
29513 # and sets the high bit in the cache file unless we assign to the vars.
29514 {
29515   (set) 2>&1 |
29516     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29517     *ac_space=\ *)
29518       # `set' does not quote correctly, so add quotes (double-quote
29519       # substitution turns \\\\ into \\, and sed turns \\ into \).
29520       sed -n \
29521         "s/'/'\\\\''/g;
29522           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29523       ;;
29524     *)
29525       # `set' quotes correctly as required by POSIX, so do not add quotes.
29526       sed -n \
29527         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29528       ;;
29529     esac;
29530 } |
29531   sed '
29532      t clear
29533      : clear
29534      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29535      t end
29536      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29537      : end' >>confcache
29538 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29539   if test -w $cache_file; then
29540     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29541     cat confcache >$cache_file
29542   else
29543     echo "not updating unwritable cache $cache_file"
29544   fi
29545 fi
29546 rm -f confcache
29547
29548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29549 # Let make expand exec_prefix.
29550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29551
29552 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29553 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29554 # trailing colons and then remove the whole line if VPATH becomes empty
29555 # (actually we leave an empty line to preserve line numbers).
29556 if test "x$srcdir" = x.; then
29557   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29558 s/:*\$(srcdir):*/:/;
29559 s/:*\${srcdir}:*/:/;
29560 s/:*@srcdir@:*/:/;
29561 s/^\([^=]*=[     ]*\):*/\1/;
29562 s/:*$//;
29563 s/^[^=]*=[       ]*$//;
29564 }'
29565 fi
29566
29567 DEFS=-DHAVE_CONFIG_H
29568
29569 ac_libobjs=
29570 ac_ltlibobjs=
29571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29572   # 1. Remove the extension, and $U if already installed.
29573   ac_i=`echo "$ac_i" |
29574          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29575   # 2. Add them.
29576   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29577   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29578 done
29579 LIBOBJS=$ac_libobjs
29580
29581 LTLIBOBJS=$ac_ltlibobjs
29582
29583
29584 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29585   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29586 Usually this means the macro was only invoked conditionally." >&5
29587 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29588 Usually this means the macro was only invoked conditionally." >&2;}
29589    { (exit 1); exit 1; }; }
29590 fi
29591 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29592   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29593 Usually this means the macro was only invoked conditionally." >&5
29594 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29595 Usually this means the macro was only invoked conditionally." >&2;}
29596    { (exit 1); exit 1; }; }
29597 fi
29598
29599 : ${CONFIG_STATUS=./config.status}
29600 ac_clean_files_save=$ac_clean_files
29601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29602 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29604 cat >$CONFIG_STATUS <<_ACEOF
29605 #! $SHELL
29606 # Generated by $as_me.
29607 # Run this file to recreate the current configuration.
29608 # Compiler output produced by configure, useful for debugging
29609 # configure, is in config.log if it exists.
29610
29611 debug=false
29612 ac_cs_recheck=false
29613 ac_cs_silent=false
29614 SHELL=\${CONFIG_SHELL-$SHELL}
29615 _ACEOF
29616
29617 cat >>$CONFIG_STATUS <<\_ACEOF
29618 ## --------------------- ##
29619 ## M4sh Initialization.  ##
29620 ## --------------------- ##
29621
29622 # Be Bourne compatible
29623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29624   emulate sh
29625   NULLCMD=:
29626   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29627   # is contrary to our usage.  Disable this feature.
29628   alias -g '${1+"$@"}'='"$@"'
29629 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29630   set -o posix
29631 fi
29632 DUALCASE=1; export DUALCASE # for MKS sh
29633
29634 # Support unset when possible.
29635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29636   as_unset=unset
29637 else
29638   as_unset=false
29639 fi
29640
29641
29642 # Work around bugs in pre-3.0 UWIN ksh.
29643 $as_unset ENV MAIL MAILPATH
29644 PS1='$ '
29645 PS2='> '
29646 PS4='+ '
29647
29648 # NLS nuisances.
29649 for as_var in \
29650   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29651   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29652   LC_TELEPHONE LC_TIME
29653 do
29654   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29655     eval $as_var=C; export $as_var
29656   else
29657     $as_unset $as_var
29658   fi
29659 done
29660
29661 # Required to use basename.
29662 if expr a : '\(a\)' >/dev/null 2>&1; then
29663   as_expr=expr
29664 else
29665   as_expr=false
29666 fi
29667
29668 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29669   as_basename=basename
29670 else
29671   as_basename=false
29672 fi
29673
29674
29675 # Name of the executable.
29676 as_me=`$as_basename "$0" ||
29677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29678          X"$0" : 'X\(//\)$' \| \
29679          X"$0" : 'X\(/\)$' \| \
29680          .     : '\(.\)' 2>/dev/null ||
29681 echo X/"$0" |
29682     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29683           /^X\/\(\/\/\)$/{ s//\1/; q; }
29684           /^X\/\(\/\).*/{ s//\1/; q; }
29685           s/.*/./; q'`
29686
29687
29688 # PATH needs CR, and LINENO needs CR and PATH.
29689 # Avoid depending upon Character Ranges.
29690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29693 as_cr_digits='0123456789'
29694 as_cr_alnum=$as_cr_Letters$as_cr_digits
29695
29696 # The user is always right.
29697 if test "${PATH_SEPARATOR+set}" != set; then
29698   echo "#! /bin/sh" >conf$$.sh
29699   echo  "exit 0"   >>conf$$.sh
29700   chmod +x conf$$.sh
29701   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29702     PATH_SEPARATOR=';'
29703   else
29704     PATH_SEPARATOR=:
29705   fi
29706   rm -f conf$$.sh
29707 fi
29708
29709
29710   as_lineno_1=$LINENO
29711   as_lineno_2=$LINENO
29712   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29713   test "x$as_lineno_1" != "x$as_lineno_2" &&
29714   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29715   # Find who we are.  Look in the path if we contain no path at all
29716   # relative or not.
29717   case $0 in
29718     *[\\/]* ) as_myself=$0 ;;
29719     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29720 for as_dir in $PATH
29721 do
29722   IFS=$as_save_IFS
29723   test -z "$as_dir" && as_dir=.
29724   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29725 done
29726
29727        ;;
29728   esac
29729   # We did not find ourselves, most probably we were run as `sh COMMAND'
29730   # in which case we are not to be found in the path.
29731   if test "x$as_myself" = x; then
29732     as_myself=$0
29733   fi
29734   if test ! -f "$as_myself"; then
29735     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29736 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29737    { (exit 1); exit 1; }; }
29738   fi
29739   case $CONFIG_SHELL in
29740   '')
29741     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29742 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29743 do
29744   IFS=$as_save_IFS
29745   test -z "$as_dir" && as_dir=.
29746   for as_base in sh bash ksh sh5; do
29747          case $as_dir in
29748          /*)
29749            if ("$as_dir/$as_base" -c '
29750   as_lineno_1=$LINENO
29751   as_lineno_2=$LINENO
29752   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29753   test "x$as_lineno_1" != "x$as_lineno_2" &&
29754   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29755              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29756              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29757              CONFIG_SHELL=$as_dir/$as_base
29758              export CONFIG_SHELL
29759              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29760            fi;;
29761          esac
29762        done
29763 done
29764 ;;
29765   esac
29766
29767   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29768   # uniformly replaced by the line number.  The first 'sed' inserts a
29769   # line-number line before each line; the second 'sed' does the real
29770   # work.  The second script uses 'N' to pair each line-number line
29771   # with the numbered line, and appends trailing '-' during
29772   # substitution so that $LINENO is not a special case at line end.
29773   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29774   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29775   sed '=' <$as_myself |
29776     sed '
29777       N
29778       s,$,-,
29779       : loop
29780       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29781       t loop
29782       s,-$,,
29783       s,^['$as_cr_digits']*\n,,
29784     ' >$as_me.lineno &&
29785   chmod +x $as_me.lineno ||
29786     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29787 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29788    { (exit 1); exit 1; }; }
29789
29790   # Don't try to exec as it changes $[0], causing all sort of problems
29791   # (the dirname of $[0] is not the place where we might find the
29792   # original and so on.  Autoconf is especially sensible to this).
29793   . ./$as_me.lineno
29794   # Exit status is that of the last command.
29795   exit
29796 }
29797
29798
29799 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29800   *c*,-n*) ECHO_N= ECHO_C='
29801 ' ECHO_T='      ' ;;
29802   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29803   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29804 esac
29805
29806 if expr a : '\(a\)' >/dev/null 2>&1; then
29807   as_expr=expr
29808 else
29809   as_expr=false
29810 fi
29811
29812 rm -f conf$$ conf$$.exe conf$$.file
29813 echo >conf$$.file
29814 if ln -s conf$$.file conf$$ 2>/dev/null; then
29815   # We could just check for DJGPP; but this test a) works b) is more generic
29816   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29817   if test -f conf$$.exe; then
29818     # Don't use ln at all; we don't have any links
29819     as_ln_s='cp -p'
29820   else
29821     as_ln_s='ln -s'
29822   fi
29823 elif ln conf$$.file conf$$ 2>/dev/null; then
29824   as_ln_s=ln
29825 else
29826   as_ln_s='cp -p'
29827 fi
29828 rm -f conf$$ conf$$.exe conf$$.file
29829
29830 if mkdir -p . 2>/dev/null; then
29831   as_mkdir_p=:
29832 else
29833   test -d ./-p && rmdir ./-p
29834   as_mkdir_p=false
29835 fi
29836
29837 as_executable_p="test -f"
29838
29839 # Sed expression to map a string onto a valid CPP name.
29840 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29841
29842 # Sed expression to map a string onto a valid variable name.
29843 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29844
29845
29846 # IFS
29847 # We need space, tab and new line, in precisely that order.
29848 as_nl='
29849 '
29850 IFS="   $as_nl"
29851
29852 # CDPATH.
29853 $as_unset CDPATH
29854
29855 exec 6>&1
29856
29857 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29858 # report actual input values of CONFIG_FILES etc. instead of their
29859 # values after options handling.  Logging --version etc. is OK.
29860 exec 5>>config.log
29861 {
29862   echo
29863   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29864 ## Running $as_me. ##
29865 _ASBOX
29866 } >&5
29867 cat >&5 <<_CSEOF
29868
29869 This file was extended by llvm $as_me 1.4, which was
29870 generated by GNU Autoconf 2.59.  Invocation command line was
29871
29872   CONFIG_FILES    = $CONFIG_FILES
29873   CONFIG_HEADERS  = $CONFIG_HEADERS
29874   CONFIG_LINKS    = $CONFIG_LINKS
29875   CONFIG_COMMANDS = $CONFIG_COMMANDS
29876   $ $0 $@
29877
29878 _CSEOF
29879 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29880 echo >&5
29881 _ACEOF
29882
29883 # Files that config.status was made for.
29884 if test -n "$ac_config_files"; then
29885   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29886 fi
29887
29888 if test -n "$ac_config_headers"; then
29889   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29890 fi
29891
29892 if test -n "$ac_config_links"; then
29893   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29894 fi
29895
29896 if test -n "$ac_config_commands"; then
29897   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29898 fi
29899
29900 cat >>$CONFIG_STATUS <<\_ACEOF
29901
29902 ac_cs_usage="\
29903 \`$as_me' instantiates files from templates according to the
29904 current configuration.
29905
29906 Usage: $0 [OPTIONS] [FILE]...
29907
29908   -h, --help       print this help, then exit
29909   -V, --version    print version number, then exit
29910   -q, --quiet      do not print progress messages
29911   -d, --debug      don't remove temporary files
29912       --recheck    update $as_me by reconfiguring in the same conditions
29913   --file=FILE[:TEMPLATE]
29914                    instantiate the configuration file FILE
29915   --header=FILE[:TEMPLATE]
29916                    instantiate the configuration header FILE
29917
29918 Configuration files:
29919 $config_files
29920
29921 Configuration headers:
29922 $config_headers
29923
29924 Configuration links:
29925 $config_links
29926
29927 Configuration commands:
29928 $config_commands
29929
29930 Report bugs to <bug-autoconf@gnu.org>."
29931 _ACEOF
29932
29933 cat >>$CONFIG_STATUS <<_ACEOF
29934 ac_cs_version="\\
29935 llvm config.status 1.4
29936 configured by $0, generated by GNU Autoconf 2.59,
29937   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29938
29939 Copyright (C) 2003 Free Software Foundation, Inc.
29940 This config.status script is free software; the Free Software Foundation
29941 gives unlimited permission to copy, distribute and modify it."
29942 srcdir=$srcdir
29943 INSTALL="$INSTALL"
29944 _ACEOF
29945
29946 cat >>$CONFIG_STATUS <<\_ACEOF
29947 # If no file are specified by the user, then we need to provide default
29948 # value.  By we need to know if files were specified by the user.
29949 ac_need_defaults=:
29950 while test $# != 0
29951 do
29952   case $1 in
29953   --*=*)
29954     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29955     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29956     ac_shift=:
29957     ;;
29958   -*)
29959     ac_option=$1
29960     ac_optarg=$2
29961     ac_shift=shift
29962     ;;
29963   *) # This is not an option, so the user has probably given explicit
29964      # arguments.
29965      ac_option=$1
29966      ac_need_defaults=false;;
29967   esac
29968
29969   case $ac_option in
29970   # Handling of the options.
29971 _ACEOF
29972 cat >>$CONFIG_STATUS <<\_ACEOF
29973   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29974     ac_cs_recheck=: ;;
29975   --version | --vers* | -V )
29976     echo "$ac_cs_version"; exit 0 ;;
29977   --he | --h)
29978     # Conflict between --help and --header
29979     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29980 Try \`$0 --help' for more information." >&5
29981 echo "$as_me: error: ambiguous option: $1
29982 Try \`$0 --help' for more information." >&2;}
29983    { (exit 1); exit 1; }; };;
29984   --help | --hel | -h )
29985     echo "$ac_cs_usage"; exit 0 ;;
29986   --debug | --d* | -d )
29987     debug=: ;;
29988   --file | --fil | --fi | --f )
29989     $ac_shift
29990     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29991     ac_need_defaults=false;;
29992   --header | --heade | --head | --hea )
29993     $ac_shift
29994     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29995     ac_need_defaults=false;;
29996   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29997   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29998     ac_cs_silent=: ;;
29999
30000   # This is an error.
30001   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30002 Try \`$0 --help' for more information." >&5
30003 echo "$as_me: error: unrecognized option: $1
30004 Try \`$0 --help' for more information." >&2;}
30005    { (exit 1); exit 1; }; } ;;
30006
30007   *) ac_config_targets="$ac_config_targets $1" ;;
30008
30009   esac
30010   shift
30011 done
30012
30013 ac_configure_extra_args=
30014
30015 if $ac_cs_silent; then
30016   exec 6>/dev/null
30017   ac_configure_extra_args="$ac_configure_extra_args --silent"
30018 fi
30019
30020 _ACEOF
30021 cat >>$CONFIG_STATUS <<_ACEOF
30022 if \$ac_cs_recheck; then
30023   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30024   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30025 fi
30026
30027 _ACEOF
30028
30029 cat >>$CONFIG_STATUS <<_ACEOF
30030 #
30031 # INIT-COMMANDS section.
30032 #
30033
30034 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30035 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30036 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30037 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30038 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30039 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30040 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30041 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30042 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30043 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30044
30045 _ACEOF
30046
30047
30048
30049 cat >>$CONFIG_STATUS <<\_ACEOF
30050 for ac_config_target in $ac_config_targets
30051 do
30052   case "$ac_config_target" in
30053   # Handling of arguments.
30054   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30055   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30056   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30057   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30058   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30059   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30060   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30061   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30062   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30063   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30064   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30065   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30066   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30067   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30068   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30069   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30070   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30071   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30072   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30073   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30074   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30075   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30076   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30077   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30079    { (exit 1); exit 1; }; };;
30080   esac
30081 done
30082
30083 # If the user did not use the arguments to specify the items to instantiate,
30084 # then the envvar interface is used.  Set only those that are not.
30085 # We use the long form for the default assignment because of an extremely
30086 # bizarre bug on SunOS 4.1.3.
30087 if $ac_need_defaults; then
30088   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30089   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30090   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30091   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30092 fi
30093
30094 # Have a temporary directory for convenience.  Make it in the build tree
30095 # simply because there is no reason to put it here, and in addition,
30096 # creating and moving files from /tmp can sometimes cause problems.
30097 # Create a temporary directory, and hook for its removal unless debugging.
30098 $debug ||
30099 {
30100   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30101   trap '{ (exit 1); exit 1; }' 1 2 13 15
30102 }
30103
30104 # Create a (secure) tmp directory for tmp files.
30105
30106 {
30107   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30108   test -n "$tmp" && test -d "$tmp"
30109 }  ||
30110 {
30111   tmp=./confstat$$-$RANDOM
30112   (umask 077 && mkdir $tmp)
30113 } ||
30114 {
30115    echo "$me: cannot create a temporary directory in ." >&2
30116    { (exit 1); exit 1; }
30117 }
30118
30119 _ACEOF
30120
30121 cat >>$CONFIG_STATUS <<_ACEOF
30122
30123 #
30124 # CONFIG_FILES section.
30125 #
30126
30127 # No need to generate the scripts if there are no CONFIG_FILES.
30128 # This happens for instance when ./config.status config.h
30129 if test -n "\$CONFIG_FILES"; then
30130   # Protect against being on the right side of a sed subst in config.status.
30131   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30132    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30133 s,@SHELL@,$SHELL,;t t
30134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30140 s,@exec_prefix@,$exec_prefix,;t t
30141 s,@prefix@,$prefix,;t t
30142 s,@program_transform_name@,$program_transform_name,;t t
30143 s,@bindir@,$bindir,;t t
30144 s,@sbindir@,$sbindir,;t t
30145 s,@libexecdir@,$libexecdir,;t t
30146 s,@datadir@,$datadir,;t t
30147 s,@sysconfdir@,$sysconfdir,;t t
30148 s,@sharedstatedir@,$sharedstatedir,;t t
30149 s,@localstatedir@,$localstatedir,;t t
30150 s,@libdir@,$libdir,;t t
30151 s,@includedir@,$includedir,;t t
30152 s,@oldincludedir@,$oldincludedir,;t t
30153 s,@infodir@,$infodir,;t t
30154 s,@mandir@,$mandir,;t t
30155 s,@build_alias@,$build_alias,;t t
30156 s,@host_alias@,$host_alias,;t t
30157 s,@target_alias@,$target_alias,;t t
30158 s,@DEFS@,$DEFS,;t t
30159 s,@ECHO_C@,$ECHO_C,;t t
30160 s,@ECHO_N@,$ECHO_N,;t t
30161 s,@ECHO_T@,$ECHO_T,;t t
30162 s,@LIBS@,$LIBS,;t t
30163 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30164 s,@subdirs@,$subdirs,;t t
30165 s,@build@,$build,;t t
30166 s,@build_cpu@,$build_cpu,;t t
30167 s,@build_vendor@,$build_vendor,;t t
30168 s,@build_os@,$build_os,;t t
30169 s,@host@,$host,;t t
30170 s,@host_cpu@,$host_cpu,;t t
30171 s,@host_vendor@,$host_vendor,;t t
30172 s,@host_os@,$host_os,;t t
30173 s,@target@,$target,;t t
30174 s,@target_cpu@,$target_cpu,;t t
30175 s,@target_vendor@,$target_vendor,;t t
30176 s,@target_os@,$target_os,;t t
30177 s,@OS@,$OS,;t t
30178 s,@ARCH@,$ARCH,;t t
30179 s,@ENDIAN@,$ENDIAN,;t t
30180 s,@CC@,$CC,;t t
30181 s,@CFLAGS@,$CFLAGS,;t t
30182 s,@LDFLAGS@,$LDFLAGS,;t t
30183 s,@CPPFLAGS@,$CPPFLAGS,;t t
30184 s,@ac_ct_CC@,$ac_ct_CC,;t t
30185 s,@EXEEXT@,$EXEEXT,;t t
30186 s,@OBJEXT@,$OBJEXT,;t t
30187 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30188 s,@JIT@,$JIT,;t t
30189 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30190 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30191 s,@CPP@,$CPP,;t t
30192 s,@CXX@,$CXX,;t t
30193 s,@CXXFLAGS@,$CXXFLAGS,;t t
30194 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30195 s,@LEX@,$LEX,;t t
30196 s,@LEXLIB@,$LEXLIB,;t t
30197 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30198 s,@FLEX@,$FLEX,;t t
30199 s,@YACC@,$YACC,;t t
30200 s,@BISON@,$BISON,;t t
30201 s,@ifGNUmake@,$ifGNUmake,;t t
30202 s,@LN_S@,$LN_S,;t t
30203 s,@DATE@,$DATE,;t t
30204 s,@FIND@,$FIND,;t t
30205 s,@GREP@,$GREP,;t t
30206 s,@MKDIR@,$MKDIR,;t t
30207 s,@MV@,$MV,;t t
30208 s,@PAX@,$PAX,;t t
30209 s,@RANLIB@,$RANLIB,;t t
30210 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30211 s,@RM@,$RM,;t t
30212 s,@SED@,$SED,;t t
30213 s,@TAR@,$TAR,;t t
30214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30217 s,@BZIP2@,$BZIP2,;t t
30218 s,@DOT@,$DOT,;t t
30219 s,@DOXYGEN@,$DOXYGEN,;t t
30220 s,@ETAGS@,$ETAGS,;t t
30221 s,@GROFF@,$GROFF,;t t
30222 s,@GZIP@,$GZIP,;t t
30223 s,@POD2HTML@,$POD2HTML,;t t
30224 s,@POD2MAN@,$POD2MAN,;t t
30225 s,@RUNTEST@,$RUNTEST,;t t
30226 s,@TCLSH@,$TCLSH,;t t
30227 s,@ZIP@,$ZIP,;t t
30228 s,@EGREP@,$EGREP,;t t
30229 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30230 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30231 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30232 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30233 s,@LIBADD_DL@,$LIBADD_DL,;t t
30234 s,@ECHO@,$ECHO,;t t
30235 s,@AR@,$AR,;t t
30236 s,@ac_ct_AR@,$ac_ct_AR,;t t
30237 s,@STRIP@,$STRIP,;t t
30238 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30239 s,@CXXCPP@,$CXXCPP,;t t
30240 s,@F77@,$F77,;t t
30241 s,@FFLAGS@,$FFLAGS,;t t
30242 s,@ac_ct_F77@,$ac_ct_F77,;t t
30243 s,@LIBTOOL@,$LIBTOOL,;t t
30244 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30245 s,@ALLOCA@,$ALLOCA,;t t
30246 s,@MMAP_FILE@,$MMAP_FILE,;t t
30247 s,@LLVMGCC@,$LLVMGCC,;t t
30248 s,@LLVMCC1@,$LLVMCC1,;t t
30249 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30250 s,@SHLIBEXT@,$SHLIBEXT,;t t
30251 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30252 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30253 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30254 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30255 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30256 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30257 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30258 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30259 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30260 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30261 s,@LIBOBJS@,$LIBOBJS,;t t
30262 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30263 CEOF
30264
30265 _ACEOF
30266
30267   cat >>$CONFIG_STATUS <<\_ACEOF
30268   # Split the substitutions into bite-sized pieces for seds with
30269   # small command number limits, like on Digital OSF/1 and HP-UX.
30270   ac_max_sed_lines=48
30271   ac_sed_frag=1 # Number of current file.
30272   ac_beg=1 # First line for current file.
30273   ac_end=$ac_max_sed_lines # Line after last line for current file.
30274   ac_more_lines=:
30275   ac_sed_cmds=
30276   while $ac_more_lines; do
30277     if test $ac_beg -gt 1; then
30278       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30279     else
30280       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30281     fi
30282     if test ! -s $tmp/subs.frag; then
30283       ac_more_lines=false
30284     else
30285       # The purpose of the label and of the branching condition is to
30286       # speed up the sed processing (if there are no `@' at all, there
30287       # is no need to browse any of the substitutions).
30288       # These are the two extra sed commands mentioned above.
30289       (echo ':t
30290   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30291       if test -z "$ac_sed_cmds"; then
30292         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30293       else
30294         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30295       fi
30296       ac_sed_frag=`expr $ac_sed_frag + 1`
30297       ac_beg=$ac_end
30298       ac_end=`expr $ac_end + $ac_max_sed_lines`
30299     fi
30300   done
30301   if test -z "$ac_sed_cmds"; then
30302     ac_sed_cmds=cat
30303   fi
30304 fi # test -n "$CONFIG_FILES"
30305
30306 _ACEOF
30307 cat >>$CONFIG_STATUS <<\_ACEOF
30308 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30309   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30310   case $ac_file in
30311   - | *:- | *:-:* ) # input from stdin
30312         cat >$tmp/stdin
30313         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30314         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30315   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30316         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30317   * )   ac_file_in=$ac_file.in ;;
30318   esac
30319
30320   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30321   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30323          X"$ac_file" : 'X\(//\)[^/]' \| \
30324          X"$ac_file" : 'X\(//\)$' \| \
30325          X"$ac_file" : 'X\(/\)' \| \
30326          .     : '\(.\)' 2>/dev/null ||
30327 echo X"$ac_file" |
30328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30330           /^X\(\/\/\)$/{ s//\1/; q; }
30331           /^X\(\/\).*/{ s//\1/; q; }
30332           s/.*/./; q'`
30333   { if $as_mkdir_p; then
30334     mkdir -p "$ac_dir"
30335   else
30336     as_dir="$ac_dir"
30337     as_dirs=
30338     while test ! -d "$as_dir"; do
30339       as_dirs="$as_dir $as_dirs"
30340       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30342          X"$as_dir" : 'X\(//\)[^/]' \| \
30343          X"$as_dir" : 'X\(//\)$' \| \
30344          X"$as_dir" : 'X\(/\)' \| \
30345          .     : '\(.\)' 2>/dev/null ||
30346 echo X"$as_dir" |
30347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30349           /^X\(\/\/\)$/{ s//\1/; q; }
30350           /^X\(\/\).*/{ s//\1/; q; }
30351           s/.*/./; q'`
30352     done
30353     test ! -n "$as_dirs" || mkdir $as_dirs
30354   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30355 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30356    { (exit 1); exit 1; }; }; }
30357
30358   ac_builddir=.
30359
30360 if test "$ac_dir" != .; then
30361   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30362   # A "../" for each directory in $ac_dir_suffix.
30363   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30364 else
30365   ac_dir_suffix= ac_top_builddir=
30366 fi
30367
30368 case $srcdir in
30369   .)  # No --srcdir option.  We are building in place.
30370     ac_srcdir=.
30371     if test -z "$ac_top_builddir"; then
30372        ac_top_srcdir=.
30373     else
30374        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30375     fi ;;
30376   [\\/]* | ?:[\\/]* )  # Absolute path.
30377     ac_srcdir=$srcdir$ac_dir_suffix;
30378     ac_top_srcdir=$srcdir ;;
30379   *) # Relative path.
30380     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30381     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30382 esac
30383
30384 # Do not use `cd foo && pwd` to compute absolute paths, because
30385 # the directories may not exist.
30386 case `pwd` in
30387 .) ac_abs_builddir="$ac_dir";;
30388 *)
30389   case "$ac_dir" in
30390   .) ac_abs_builddir=`pwd`;;
30391   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30392   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30393   esac;;
30394 esac
30395 case $ac_abs_builddir in
30396 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30397 *)
30398   case ${ac_top_builddir}. in
30399   .) ac_abs_top_builddir=$ac_abs_builddir;;
30400   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30401   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30402   esac;;
30403 esac
30404 case $ac_abs_builddir in
30405 .) ac_abs_srcdir=$ac_srcdir;;
30406 *)
30407   case $ac_srcdir in
30408   .) ac_abs_srcdir=$ac_abs_builddir;;
30409   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30410   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30411   esac;;
30412 esac
30413 case $ac_abs_builddir in
30414 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30415 *)
30416   case $ac_top_srcdir in
30417   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30418   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30419   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30420   esac;;
30421 esac
30422
30423
30424   case $INSTALL in
30425   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30426   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30427   esac
30428
30429   if test x"$ac_file" != x-; then
30430     { echo "$as_me:$LINENO: creating $ac_file" >&5
30431 echo "$as_me: creating $ac_file" >&6;}
30432     rm -f "$ac_file"
30433   fi
30434   # Let's still pretend it is `configure' which instantiates (i.e., don't
30435   # use $as_me), people would be surprised to read:
30436   #    /* config.h.  Generated by config.status.  */
30437   if test x"$ac_file" = x-; then
30438     configure_input=
30439   else
30440     configure_input="$ac_file.  "
30441   fi
30442   configure_input=$configure_input"Generated from `echo $ac_file_in |
30443                                      sed 's,.*/,,'` by configure."
30444
30445   # First look for the input files in the build tree, otherwise in the
30446   # src tree.
30447   ac_file_inputs=`IFS=:
30448     for f in $ac_file_in; do
30449       case $f in
30450       -) echo $tmp/stdin ;;
30451       [\\/$]*)
30452          # Absolute (can't be DOS-style, as IFS=:)
30453          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30454 echo "$as_me: error: cannot find input file: $f" >&2;}
30455    { (exit 1); exit 1; }; }
30456          echo "$f";;
30457       *) # Relative
30458          if test -f "$f"; then
30459            # Build tree
30460            echo "$f"
30461          elif test -f "$srcdir/$f"; then
30462            # Source tree
30463            echo "$srcdir/$f"
30464          else
30465            # /dev/null tree
30466            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30467 echo "$as_me: error: cannot find input file: $f" >&2;}
30468    { (exit 1); exit 1; }; }
30469          fi;;
30470       esac
30471     done` || { (exit 1); exit 1; }
30472 _ACEOF
30473 cat >>$CONFIG_STATUS <<_ACEOF
30474   sed "$ac_vpsub
30475 $extrasub
30476 _ACEOF
30477 cat >>$CONFIG_STATUS <<\_ACEOF
30478 :t
30479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30480 s,@configure_input@,$configure_input,;t t
30481 s,@srcdir@,$ac_srcdir,;t t
30482 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30483 s,@top_srcdir@,$ac_top_srcdir,;t t
30484 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30485 s,@builddir@,$ac_builddir,;t t
30486 s,@abs_builddir@,$ac_abs_builddir,;t t
30487 s,@top_builddir@,$ac_top_builddir,;t t
30488 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30489 s,@INSTALL@,$ac_INSTALL,;t t
30490 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30491   rm -f $tmp/stdin
30492   if test x"$ac_file" != x-; then
30493     mv $tmp/out $ac_file
30494   else
30495     cat $tmp/out
30496     rm -f $tmp/out
30497   fi
30498
30499 done
30500 _ACEOF
30501 cat >>$CONFIG_STATUS <<\_ACEOF
30502
30503 #
30504 # CONFIG_HEADER section.
30505 #
30506
30507 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30508 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30509 #
30510 # ac_d sets the value in "#define NAME VALUE" lines.
30511 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30512 ac_dB='[         ].*$,\1#\2'
30513 ac_dC=' '
30514 ac_dD=',;t'
30515 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30516 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30517 ac_uB='$,\1#\2define\3'
30518 ac_uC=' '
30519 ac_uD=',;t'
30520
30521 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30522   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30523   case $ac_file in
30524   - | *:- | *:-:* ) # input from stdin
30525         cat >$tmp/stdin
30526         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30527         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30528   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30529         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30530   * )   ac_file_in=$ac_file.in ;;
30531   esac
30532
30533   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30534 echo "$as_me: creating $ac_file" >&6;}
30535
30536   # First look for the input files in the build tree, otherwise in the
30537   # src tree.
30538   ac_file_inputs=`IFS=:
30539     for f in $ac_file_in; do
30540       case $f in
30541       -) echo $tmp/stdin ;;
30542       [\\/$]*)
30543          # Absolute (can't be DOS-style, as IFS=:)
30544          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30545 echo "$as_me: error: cannot find input file: $f" >&2;}
30546    { (exit 1); exit 1; }; }
30547          # Do quote $f, to prevent DOS paths from being IFS'd.
30548          echo "$f";;
30549       *) # Relative
30550          if test -f "$f"; then
30551            # Build tree
30552            echo "$f"
30553          elif test -f "$srcdir/$f"; then
30554            # Source tree
30555            echo "$srcdir/$f"
30556          else
30557            # /dev/null tree
30558            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30559 echo "$as_me: error: cannot find input file: $f" >&2;}
30560    { (exit 1); exit 1; }; }
30561          fi;;
30562       esac
30563     done` || { (exit 1); exit 1; }
30564   # Remove the trailing spaces.
30565   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30566
30567 _ACEOF
30568
30569 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30570 # `conftest.undefs', that substitutes the proper values into
30571 # config.h.in to produce config.h.  The first handles `#define'
30572 # templates, and the second `#undef' templates.
30573 # And first: Protect against being on the right side of a sed subst in
30574 # config.status.  Protect against being in an unquoted here document
30575 # in config.status.
30576 rm -f conftest.defines conftest.undefs
30577 # Using a here document instead of a string reduces the quoting nightmare.
30578 # Putting comments in sed scripts is not portable.
30579 #
30580 # `end' is used to avoid that the second main sed command (meant for
30581 # 0-ary CPP macros) applies to n-ary macro definitions.
30582 # See the Autoconf documentation for `clear'.
30583 cat >confdef2sed.sed <<\_ACEOF
30584 s/[\\&,]/\\&/g
30585 s,[\\$`],\\&,g
30586 t clear
30587 : clear
30588 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30589 t end
30590 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30591 : end
30592 _ACEOF
30593 # If some macros were called several times there might be several times
30594 # the same #defines, which is useless.  Nevertheless, we may not want to
30595 # sort them, since we want the *last* AC-DEFINE to be honored.
30596 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30597 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30598 rm -f confdef2sed.sed
30599
30600 # This sed command replaces #undef with comments.  This is necessary, for
30601 # example, in the case of _POSIX_SOURCE, which is predefined and required
30602 # on some systems where configure will not decide to define it.
30603 cat >>conftest.undefs <<\_ACEOF
30604 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30605 _ACEOF
30606
30607 # Break up conftest.defines because some shells have a limit on the size
30608 # of here documents, and old seds have small limits too (100 cmds).
30609 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30610 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30611 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30612 echo '  :' >>$CONFIG_STATUS
30613 rm -f conftest.tail
30614 while grep . conftest.defines >/dev/null
30615 do
30616   # Write a limited-size here document to $tmp/defines.sed.
30617   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30618   # Speed up: don't consider the non `#define' lines.
30619   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30620   # Work around the forget-to-reset-the-flag bug.
30621   echo 't clr' >>$CONFIG_STATUS
30622   echo ': clr' >>$CONFIG_STATUS
30623   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30624   echo 'CEOF
30625   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30626   rm -f $tmp/in
30627   mv $tmp/out $tmp/in
30628 ' >>$CONFIG_STATUS
30629   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30630   rm -f conftest.defines
30631   mv conftest.tail conftest.defines
30632 done
30633 rm -f conftest.defines
30634 echo '  fi # grep' >>$CONFIG_STATUS
30635 echo >>$CONFIG_STATUS
30636
30637 # Break up conftest.undefs because some shells have a limit on the size
30638 # of here documents, and old seds have small limits too (100 cmds).
30639 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30640 rm -f conftest.tail
30641 while grep . conftest.undefs >/dev/null
30642 do
30643   # Write a limited-size here document to $tmp/undefs.sed.
30644   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30645   # Speed up: don't consider the non `#undef'
30646   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30647   # Work around the forget-to-reset-the-flag bug.
30648   echo 't clr' >>$CONFIG_STATUS
30649   echo ': clr' >>$CONFIG_STATUS
30650   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30651   echo 'CEOF
30652   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30653   rm -f $tmp/in
30654   mv $tmp/out $tmp/in
30655 ' >>$CONFIG_STATUS
30656   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30657   rm -f conftest.undefs
30658   mv conftest.tail conftest.undefs
30659 done
30660 rm -f conftest.undefs
30661
30662 cat >>$CONFIG_STATUS <<\_ACEOF
30663   # Let's still pretend it is `configure' which instantiates (i.e., don't
30664   # use $as_me), people would be surprised to read:
30665   #    /* config.h.  Generated by config.status.  */
30666   if test x"$ac_file" = x-; then
30667     echo "/* Generated by configure.  */" >$tmp/config.h
30668   else
30669     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30670   fi
30671   cat $tmp/in >>$tmp/config.h
30672   rm -f $tmp/in
30673   if test x"$ac_file" != x-; then
30674     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30675       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30676 echo "$as_me: $ac_file is unchanged" >&6;}
30677     else
30678       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30680          X"$ac_file" : 'X\(//\)[^/]' \| \
30681          X"$ac_file" : 'X\(//\)$' \| \
30682          X"$ac_file" : 'X\(/\)' \| \
30683          .     : '\(.\)' 2>/dev/null ||
30684 echo X"$ac_file" |
30685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30687           /^X\(\/\/\)$/{ s//\1/; q; }
30688           /^X\(\/\).*/{ s//\1/; q; }
30689           s/.*/./; q'`
30690       { if $as_mkdir_p; then
30691     mkdir -p "$ac_dir"
30692   else
30693     as_dir="$ac_dir"
30694     as_dirs=
30695     while test ! -d "$as_dir"; do
30696       as_dirs="$as_dir $as_dirs"
30697       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30699          X"$as_dir" : 'X\(//\)[^/]' \| \
30700          X"$as_dir" : 'X\(//\)$' \| \
30701          X"$as_dir" : 'X\(/\)' \| \
30702          .     : '\(.\)' 2>/dev/null ||
30703 echo X"$as_dir" |
30704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30706           /^X\(\/\/\)$/{ s//\1/; q; }
30707           /^X\(\/\).*/{ s//\1/; q; }
30708           s/.*/./; q'`
30709     done
30710     test ! -n "$as_dirs" || mkdir $as_dirs
30711   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30713    { (exit 1); exit 1; }; }; }
30714
30715       rm -f $ac_file
30716       mv $tmp/config.h $ac_file
30717     fi
30718   else
30719     cat $tmp/config.h
30720     rm -f $tmp/config.h
30721   fi
30722 done
30723 _ACEOF
30724 cat >>$CONFIG_STATUS <<\_ACEOF
30725
30726 #
30727 # CONFIG_LINKS section.
30728 #
30729
30730 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30731   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30732   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30733
30734   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30735 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30736
30737   if test ! -r $srcdir/$ac_source; then
30738     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30739 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30740    { (exit 1); exit 1; }; }
30741   fi
30742   rm -f $ac_dest
30743
30744   # Make relative symlinks.
30745   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30746 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30747          X"$ac_dest" : 'X\(//\)[^/]' \| \
30748          X"$ac_dest" : 'X\(//\)$' \| \
30749          X"$ac_dest" : 'X\(/\)' \| \
30750          .     : '\(.\)' 2>/dev/null ||
30751 echo X"$ac_dest" |
30752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30753           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30754           /^X\(\/\/\)$/{ s//\1/; q; }
30755           /^X\(\/\).*/{ s//\1/; q; }
30756           s/.*/./; q'`
30757   { if $as_mkdir_p; then
30758     mkdir -p "$ac_dest_dir"
30759   else
30760     as_dir="$ac_dest_dir"
30761     as_dirs=
30762     while test ! -d "$as_dir"; do
30763       as_dirs="$as_dir $as_dirs"
30764       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30766          X"$as_dir" : 'X\(//\)[^/]' \| \
30767          X"$as_dir" : 'X\(//\)$' \| \
30768          X"$as_dir" : 'X\(/\)' \| \
30769          .     : '\(.\)' 2>/dev/null ||
30770 echo X"$as_dir" |
30771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30772           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30773           /^X\(\/\/\)$/{ s//\1/; q; }
30774           /^X\(\/\).*/{ s//\1/; q; }
30775           s/.*/./; q'`
30776     done
30777     test ! -n "$as_dirs" || mkdir $as_dirs
30778   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30779 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30780    { (exit 1); exit 1; }; }; }
30781
30782   ac_builddir=.
30783
30784 if test "$ac_dest_dir" != .; then
30785   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30786   # A "../" for each directory in $ac_dir_suffix.
30787   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30788 else
30789   ac_dir_suffix= ac_top_builddir=
30790 fi
30791
30792 case $srcdir in
30793   .)  # No --srcdir option.  We are building in place.
30794     ac_srcdir=.
30795     if test -z "$ac_top_builddir"; then
30796        ac_top_srcdir=.
30797     else
30798        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30799     fi ;;
30800   [\\/]* | ?:[\\/]* )  # Absolute path.
30801     ac_srcdir=$srcdir$ac_dir_suffix;
30802     ac_top_srcdir=$srcdir ;;
30803   *) # Relative path.
30804     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30805     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30806 esac
30807
30808 # Do not use `cd foo && pwd` to compute absolute paths, because
30809 # the directories may not exist.
30810 case `pwd` in
30811 .) ac_abs_builddir="$ac_dest_dir";;
30812 *)
30813   case "$ac_dest_dir" in
30814   .) ac_abs_builddir=`pwd`;;
30815   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30816   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30817   esac;;
30818 esac
30819 case $ac_abs_builddir in
30820 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30821 *)
30822   case ${ac_top_builddir}. in
30823   .) ac_abs_top_builddir=$ac_abs_builddir;;
30824   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30825   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30826   esac;;
30827 esac
30828 case $ac_abs_builddir in
30829 .) ac_abs_srcdir=$ac_srcdir;;
30830 *)
30831   case $ac_srcdir in
30832   .) ac_abs_srcdir=$ac_abs_builddir;;
30833   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30834   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30835   esac;;
30836 esac
30837 case $ac_abs_builddir in
30838 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30839 *)
30840   case $ac_top_srcdir in
30841   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30842   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30843   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30844   esac;;
30845 esac
30846
30847
30848   case $srcdir in
30849   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30850       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30851   esac
30852
30853   # Try a symlink, then a hard link, then a copy.
30854   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30855     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30856     cp -p $srcdir/$ac_source $ac_dest ||
30857     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30858 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30859    { (exit 1); exit 1; }; }
30860 done
30861 _ACEOF
30862 cat >>$CONFIG_STATUS <<\_ACEOF
30863
30864 #
30865 # CONFIG_COMMANDS section.
30866 #
30867 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30868   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30869   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30870   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30871 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30872          X"$ac_dest" : 'X\(//\)[^/]' \| \
30873          X"$ac_dest" : 'X\(//\)$' \| \
30874          X"$ac_dest" : 'X\(/\)' \| \
30875          .     : '\(.\)' 2>/dev/null ||
30876 echo X"$ac_dest" |
30877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30879           /^X\(\/\/\)$/{ s//\1/; q; }
30880           /^X\(\/\).*/{ s//\1/; q; }
30881           s/.*/./; q'`
30882   { if $as_mkdir_p; then
30883     mkdir -p "$ac_dir"
30884   else
30885     as_dir="$ac_dir"
30886     as_dirs=
30887     while test ! -d "$as_dir"; do
30888       as_dirs="$as_dir $as_dirs"
30889       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30891          X"$as_dir" : 'X\(//\)[^/]' \| \
30892          X"$as_dir" : 'X\(//\)$' \| \
30893          X"$as_dir" : 'X\(/\)' \| \
30894          .     : '\(.\)' 2>/dev/null ||
30895 echo X"$as_dir" |
30896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30897           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30898           /^X\(\/\/\)$/{ s//\1/; q; }
30899           /^X\(\/\).*/{ s//\1/; q; }
30900           s/.*/./; q'`
30901     done
30902     test ! -n "$as_dirs" || mkdir $as_dirs
30903   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30905    { (exit 1); exit 1; }; }; }
30906
30907   ac_builddir=.
30908
30909 if test "$ac_dir" != .; then
30910   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30911   # A "../" for each directory in $ac_dir_suffix.
30912   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30913 else
30914   ac_dir_suffix= ac_top_builddir=
30915 fi
30916
30917 case $srcdir in
30918   .)  # No --srcdir option.  We are building in place.
30919     ac_srcdir=.
30920     if test -z "$ac_top_builddir"; then
30921        ac_top_srcdir=.
30922     else
30923        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30924     fi ;;
30925   [\\/]* | ?:[\\/]* )  # Absolute path.
30926     ac_srcdir=$srcdir$ac_dir_suffix;
30927     ac_top_srcdir=$srcdir ;;
30928   *) # Relative path.
30929     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30930     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30931 esac
30932
30933 # Do not use `cd foo && pwd` to compute absolute paths, because
30934 # the directories may not exist.
30935 case `pwd` in
30936 .) ac_abs_builddir="$ac_dir";;
30937 *)
30938   case "$ac_dir" in
30939   .) ac_abs_builddir=`pwd`;;
30940   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30941   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30942   esac;;
30943 esac
30944 case $ac_abs_builddir in
30945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30946 *)
30947   case ${ac_top_builddir}. in
30948   .) ac_abs_top_builddir=$ac_abs_builddir;;
30949   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30950   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30951   esac;;
30952 esac
30953 case $ac_abs_builddir in
30954 .) ac_abs_srcdir=$ac_srcdir;;
30955 *)
30956   case $ac_srcdir in
30957   .) ac_abs_srcdir=$ac_abs_builddir;;
30958   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30959   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30960   esac;;
30961 esac
30962 case $ac_abs_builddir in
30963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30964 *)
30965   case $ac_top_srcdir in
30966   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30967   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30968   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30969   esac;;
30970 esac
30971
30972
30973   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30974 echo "$as_me: executing $ac_dest commands" >&6;}
30975   case $ac_dest in
30976     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30977     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
30978     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
30979     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
30980     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
30981     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30982     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
30983     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
30984     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
30985     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
30986   esac
30987 done
30988 _ACEOF
30989
30990 cat >>$CONFIG_STATUS <<\_ACEOF
30991
30992 { (exit 0); exit 0; }
30993 _ACEOF
30994 chmod +x $CONFIG_STATUS
30995 ac_clean_files=$ac_clean_files_save
30996
30997
30998 # configure is writing to config.log, and then calls config.status.
30999 # config.status does its own redirection, appending to config.log.
31000 # Unfortunately, on DOS this fails, as config.log is still kept open
31001 # by configure, so config.status won't be able to write to it; its
31002 # output is simply discarded.  So we exec the FD to /dev/null,
31003 # effectively closing config.log, so it can be properly (re)opened and
31004 # appended to by config.status.  When coming back to configure, we
31005 # need to make the FD available again.
31006 if test "$no_create" != yes; then
31007   ac_cs_success=:
31008   ac_config_status_args=
31009   test "$silent" = yes &&
31010     ac_config_status_args="$ac_config_status_args --quiet"
31011   exec 5>/dev/null
31012   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31013   exec 5>>config.log
31014   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31015   # would make configure fail if this is the last instruction.
31016   $ac_cs_success || { (exit 1); exit 1; }
31017 fi
31018
31019 #
31020 # CONFIG_SUBDIRS section.
31021 #
31022 if test "$no_recursion" != yes; then
31023
31024   # Remove --cache-file and --srcdir arguments so they do not pile up.
31025   ac_sub_configure_args=
31026   ac_prev=
31027   for ac_arg in $ac_configure_args; do
31028     if test -n "$ac_prev"; then
31029       ac_prev=
31030       continue
31031     fi
31032     case $ac_arg in
31033     -cache-file | --cache-file | --cache-fil | --cache-fi \
31034     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31035       ac_prev=cache_file ;;
31036     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31037     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31038     | --c=*)
31039       ;;
31040     --config-cache | -C)
31041       ;;
31042     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31043       ac_prev=srcdir ;;
31044     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31045       ;;
31046     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31047       ac_prev=prefix ;;
31048     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31049       ;;
31050     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31051     esac
31052   done
31053
31054   # Always prepend --prefix to ensure using the same prefix
31055   # in subdir configurations.
31056   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31057
31058   ac_popdir=`pwd`
31059   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31060
31061     # Do not complain, so a configure script can configure whichever
31062     # parts of a large source tree are present.
31063     test -d $srcdir/$ac_dir || continue
31064
31065     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31066 echo "$as_me: configuring in $ac_dir" >&6;}
31067     { if $as_mkdir_p; then
31068     mkdir -p "$ac_dir"
31069   else
31070     as_dir="$ac_dir"
31071     as_dirs=
31072     while test ! -d "$as_dir"; do
31073       as_dirs="$as_dir $as_dirs"
31074       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31076          X"$as_dir" : 'X\(//\)[^/]' \| \
31077          X"$as_dir" : 'X\(//\)$' \| \
31078          X"$as_dir" : 'X\(/\)' \| \
31079          .     : '\(.\)' 2>/dev/null ||
31080 echo X"$as_dir" |
31081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31082           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31083           /^X\(\/\/\)$/{ s//\1/; q; }
31084           /^X\(\/\).*/{ s//\1/; q; }
31085           s/.*/./; q'`
31086     done
31087     test ! -n "$as_dirs" || mkdir $as_dirs
31088   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31089 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31090    { (exit 1); exit 1; }; }; }
31091
31092     ac_builddir=.
31093
31094 if test "$ac_dir" != .; then
31095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31096   # A "../" for each directory in $ac_dir_suffix.
31097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31098 else
31099   ac_dir_suffix= ac_top_builddir=
31100 fi
31101
31102 case $srcdir in
31103   .)  # No --srcdir option.  We are building in place.
31104     ac_srcdir=.
31105     if test -z "$ac_top_builddir"; then
31106        ac_top_srcdir=.
31107     else
31108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31109     fi ;;
31110   [\\/]* | ?:[\\/]* )  # Absolute path.
31111     ac_srcdir=$srcdir$ac_dir_suffix;
31112     ac_top_srcdir=$srcdir ;;
31113   *) # Relative path.
31114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31116 esac
31117
31118 # Do not use `cd foo && pwd` to compute absolute paths, because
31119 # the directories may not exist.
31120 case `pwd` in
31121 .) ac_abs_builddir="$ac_dir";;
31122 *)
31123   case "$ac_dir" in
31124   .) ac_abs_builddir=`pwd`;;
31125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31127   esac;;
31128 esac
31129 case $ac_abs_builddir in
31130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31131 *)
31132   case ${ac_top_builddir}. in
31133   .) ac_abs_top_builddir=$ac_abs_builddir;;
31134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31136   esac;;
31137 esac
31138 case $ac_abs_builddir in
31139 .) ac_abs_srcdir=$ac_srcdir;;
31140 *)
31141   case $ac_srcdir in
31142   .) ac_abs_srcdir=$ac_abs_builddir;;
31143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31145   esac;;
31146 esac
31147 case $ac_abs_builddir in
31148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31149 *)
31150   case $ac_top_srcdir in
31151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31154   esac;;
31155 esac
31156
31157
31158     cd $ac_dir
31159
31160     # Check for guested configure; otherwise get Cygnus style configure.
31161     if test -f $ac_srcdir/configure.gnu; then
31162       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31163     elif test -f $ac_srcdir/configure; then
31164       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31165     elif test -f $ac_srcdir/configure.in; then
31166       ac_sub_configure=$ac_configure
31167     else
31168       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31170       ac_sub_configure=
31171     fi
31172
31173     # The recursion is here.
31174     if test -n "$ac_sub_configure"; then
31175       # Make the cache file name correct relative to the subdirectory.
31176       case $cache_file in
31177       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31178       *) # Relative path.
31179         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31180       esac
31181
31182       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31183 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31184       # The eval makes quoting arguments work.
31185       eval $ac_sub_configure $ac_sub_configure_args \
31186            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31187         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31188 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31189    { (exit 1); exit 1; }; }
31190     fi
31191
31192     cd $ac_popdir
31193   done
31194 fi
31195
31196
31197 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31198  { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31199 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31200  { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31201 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31202  { echo "$as_me:$LINENO: WARNING: ***** " >&5
31203 echo "$as_me: WARNING: ***** " >&2;}
31204  { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31205 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31206  { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31207 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31208  { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31209 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31210 fi