let configure recognize Alphas
[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/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.4:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039   --enable-doxygen        Build doxygen documentation (default is NO)
1040   --enable-ltdl-install   install libltdl
1041   --enable-shared[=PKGS]
1042                           build shared libraries [default=yes]
1043   --enable-static[=PKGS]
1044                           build static libraries [default=yes]
1045   --enable-fast-install[=PKGS]
1046                           optimize for fast installation [default=yes]
1047   --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049 Optional Packages:
1050   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1053                           searches PATH)
1054   --with-tclinclude       directory where tcl headers are
1055   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1056   --with-pic              try to use only PIC/non-PIC objects [default=use
1057                           both]
1058   --with-tags[=TAGS]
1059                           include additional configurations [automatic]
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd $ac_popdir
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 llvm configure 1.4
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180
1181 $LLVM_COPYRIGHT
1182 _ACEOF
1183   exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by llvm $as_me 1.4, which was
1191 generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193   $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224   IFS=$as_save_IFS
1225   test -z "$as_dir" && as_dir=.
1226   echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253   for ac_arg
1254   do
1255     case $ac_arg in
1256     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258     | -silent | --silent | --silen | --sile | --sil)
1259       continue ;;
1260     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     esac
1263     case $ac_pass in
1264     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265     2)
1266       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267       if test $ac_must_keep_next = true; then
1268         ac_must_keep_next=false # Got value, back to normal.
1269       else
1270         case $ac_arg in
1271           *=* | --config-cache | -C | -disable-* | --disable-* \
1272           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274           | -with-* | --with-* | -without-* | --without-* | --x)
1275             case "$ac_configure_args0 " in
1276               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277             esac
1278             ;;
1279           -* ) ac_must_keep_next=true ;;
1280         esac
1281       fi
1282       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283       # Get rid of the leading space.
1284       ac_sep=" "
1285       ;;
1286     esac
1287   done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log.  We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298   # Save into config.log some information that might help in debugging.
1299   {
1300     echo
1301
1302     cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307     echo
1308     # The following way of writing the cache mishandles newlines in values,
1309 {
1310   (set) 2>&1 |
1311     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312     *ac_space=\ *)
1313       sed -n \
1314         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316       ;;
1317     *)
1318       sed -n \
1319         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320       ;;
1321     esac;
1322 }
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330     echo
1331     for ac_var in $ac_subst_vars
1332     do
1333       eval ac_val=$`echo $ac_var`
1334       echo "$ac_var='"'"'$ac_val'"'"'"
1335     done | sort
1336     echo
1337
1338     if test -n "$ac_subst_files"; then
1339       cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344       echo
1345       for ac_var in $ac_subst_files
1346       do
1347         eval ac_val=$`echo $ac_var`
1348         echo "$ac_var='"'"'$ac_val'"'"'"
1349       done | sort
1350       echo
1351     fi
1352
1353     if test -s confdefs.h; then
1354       cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359       echo
1360       sed "/^$/d" confdefs.h | sort
1361       echo
1362     fi
1363     test "$ac_signal" != 0 &&
1364       echo "$as_me: caught signal $ac_signal"
1365     echo "$as_me: exit $exit_status"
1366   } >&5
1367   rm -f core *.core &&
1368   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369     exit $exit_status
1370      ' 0
1371 for ac_signal in 1 2 13 15; do
1372   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411   if test "x$prefix" != xNONE; then
1412     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413   else
1414     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415   fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418   if test -r "$ac_site_file"; then
1419     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421     sed 's/^/| /' "$ac_site_file" >&5
1422     . "$ac_site_file"
1423   fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427   # Some versions of bash will fail to source /dev/null (special
1428   # files actually), so we avoid doing that.
1429   if test -f "$cache_file"; then
1430     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432     case $cache_file in
1433       [\\/]* | ?:[\\/]* ) . $cache_file;;
1434       *)                      . ./$cache_file;;
1435     esac
1436   fi
1437 else
1438   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440   >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449   eval ac_new_set=\$ac_env_${ac_var}_set
1450   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451   eval ac_new_val="\$ac_env_${ac_var}_value"
1452   case $ac_old_set,$ac_new_set in
1453     set,)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,set)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,);;
1462     *)
1463       if test "x$ac_old_val" != "x$ac_new_val"; then
1464         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467 echo "$as_me:   former value:  $ac_old_val" >&2;}
1468         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469 echo "$as_me:   current value: $ac_new_val" >&2;}
1470         ac_cache_corrupted=:
1471       fi;;
1472   esac
1473   # Pass precious variables to config.status.
1474   if test "$ac_new_set" = set; then
1475     case $ac_new_val in
1476     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     *) ac_arg=$ac_var=$ac_new_val ;;
1479     esac
1480     case " $ac_configure_args " in
1481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483     esac
1484   fi
1485 done
1486 if $ac_cache_corrupted; then
1487   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
1535 ac_aux_dir=
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537   if test -f $ac_dir/install-sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install-sh -c"
1540     break
1541   elif test -f $ac_dir/install.sh; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/install.sh -c"
1544     break
1545   elif test -f $ac_dir/shtool; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/shtool install -c"
1548     break
1549   fi
1550 done
1551 if test -z "$ac_aux_dir"; then
1552   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554    { (exit 1); exit 1; }; }
1555 fi
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560
1561 if test ${srcdir} != "." ; then
1562   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565    { (exit 1); exit 1; }; }
1566   fi
1567 fi
1568
1569 for i in `ls ${srcdir}/projects`
1570 do
1571   if test -d ${srcdir}/projects/${i} ; then
1572     case ${i} in
1573       "CVS") ;;
1574       "sample")
1575
1576 subdirs="$subdirs projects/sample"
1577     ;;
1578       "Stacker")
1579
1580 subdirs="$subdirs projects/Stacker"
1581    ;;
1582       "llvm-test")
1583
1584 subdirs="$subdirs projects/llvm-test"
1585  ;;
1586       "llvm-reopt")
1587
1588 subdirs="$subdirs projects/llvm-reopt"
1589 ;;
1590       "llvm-gcc")
1591
1592 subdirs="$subdirs projects/llvm-gcc"
1593   ;;
1594       "llvm-java")
1595
1596 subdirs="$subdirs projects/llvm-java"
1597  ;;
1598       "llvm-tv")
1599
1600 subdirs="$subdirs projects/llvm-tv"
1601    ;;
1602       "llvm-fefw")
1603
1604 subdirs="$subdirs projects/llvm-fefw"
1605  ;;
1606       "poolalloc")
1607
1608 subdirs="$subdirs projects/poolalloc"
1609  ;;
1610       *)
1611         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1613         ;;
1614     esac
1615   fi
1616 done
1617
1618
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623    { (exit 1); exit 1; }; }
1624
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632   ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636    { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640    { (exit 1); exit 1; }; }
1641
1642 fi
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1645 build=$ac_cv_build
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658   ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662    { (exit 1); exit 1; }; }
1663
1664 fi
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1667 host=$ac_cv_host
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680   ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684    { (exit 1); exit 1; }; }
1685
1686 fi
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698   test "$program_prefix$program_suffix$program_transform_name" = \
1699     NONENONEs,x,x, &&
1700   program_prefix=${target_alias}-
1701
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   case $build in
1708   *-*-aix*)
1709     llvm_cv_os_type="AIX"
1710     llvm_cv_platform_type="Unix" ;;
1711   *-*-cygwin*)
1712     llvm_cv_os_type="Cygwin"
1713     llvm_cv_platform_type="Unix" ;;
1714   *-*-darwin*)
1715     llvm_cv_os_type="Darwin"
1716     llvm_cv_platform_type="Unix" ;;
1717   *-*-freebsd*)
1718     llvm_cv_os_type="FreeBSD"
1719     llvm_cv_platform_type="Unix" ;;
1720   *-*-interix*)
1721     llvm_cv_os_type="Interix"
1722     llvm_cv_platform_type="Unix" ;;
1723   *-*-linux*)
1724     llvm_cv_os_type="Linux"
1725     llvm_cv_platform_type="Unix" ;;
1726   *-*-solaris*)
1727     llvm_cv_os_type="SunOS"
1728     llvm_cv_platform_type="Unix" ;;
1729   *-*-win32*)
1730     llvm_cv_os_type="Win32"
1731     llvm_cv_platform_type="Win32" ;;
1732   *-*-mingw*)
1733     llvm_cv_os_type="MingW"
1734     llvm_cv_platform_type="Win32" ;;
1735   *)
1736     llvm_cv_os_type="Unknown"
1737     llvm_cv_platform_type="Unknown" ;;
1738 esac
1739 fi
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1742
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746    { (exit 1); exit 1; }; }
1747 fi
1748
1749 OS=$llvm_cv_os_type
1750
1751
1752 case $llvm_cv_platform_type in
1753   Unix)
1754
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1757 _ACEOF
1758
1759     LLVM_ON_UNIX=1
1760
1761     LLVM_ON_WIN32=0
1762
1763     ;;
1764   Win32)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=0
1771
1772     LLVM_ON_WIN32=1
1773
1774     ;;
1775 esac
1776
1777 case $target in
1778   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1779
1780   ;;
1781 esac
1782
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786   echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788   case $target in
1789   i?86-*)                 llvm_cv_target_arch="x86" ;;
1790   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1791   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1792   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1793   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1794   *)                      llvm_cv_target_arch="Unknown" ;;
1795 esac
1796 fi
1797 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1798 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1799
1800 if test "$llvm_cv_target_arch" = "Unknown" ; then
1801   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1802 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1803 fi
1804
1805 ARCH=$llvm_cv_target_arch
1806
1807
1808 ac_ext=c
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 if test -n "$ac_tool_prefix"; then
1814   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   if test -n "$CC"; then
1822   ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827   IFS=$as_save_IFS
1828   test -z "$as_dir" && as_dir=.
1829   for ac_exec_ext in '' $ac_executable_extensions; do
1830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833     break 2
1834   fi
1835 done
1836 done
1837
1838 fi
1839 fi
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842   echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845   echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 fi
1848
1849 fi
1850 if test -z "$ac_cv_prog_CC"; then
1851   ac_ct_CC=$CC
1852   # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$ac_ct_CC"; then
1860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_ac_ct_CC="gcc"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879 if test -n "$ac_ct_CC"; then
1880   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881 echo "${ECHO_T}$ac_ct_CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887   CC=$ac_ct_CC
1888 else
1889   CC="$ac_cv_prog_CC"
1890 fi
1891
1892 if test -z "$CC"; then
1893   if test -n "$ac_tool_prefix"; then
1894   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$CC"; then
1902   ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_CC="${ac_tool_prefix}cc"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922   echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929 fi
1930 if test -z "$ac_cv_prog_CC"; then
1931   ac_ct_CC=$CC
1932   # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   if test -n "$ac_ct_CC"; then
1940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945   IFS=$as_save_IFS
1946   test -z "$as_dir" && as_dir=.
1947   for ac_exec_ext in '' $ac_executable_extensions; do
1948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949     ac_cv_prog_ac_ct_CC="cc"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1962 else
1963   echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967   CC=$ac_ct_CC
1968 else
1969   CC="$ac_cv_prog_CC"
1970 fi
1971
1972 fi
1973 if test -z "$CC"; then
1974   # Extract the first word of "cc", so it can be a program name with args.
1975 set dummy cc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$CC"; then
1982   ac_cv_prog_CC="$CC" # Let the user override the test.
1983 else
1984   ac_prog_rejected=no
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993        ac_prog_rejected=yes
1994        continue
1995      fi
1996     ac_cv_prog_CC="cc"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002
2003 if test $ac_prog_rejected = yes; then
2004   # We found a bogon in the path, so make sure we never use it.
2005   set dummy $ac_cv_prog_CC
2006   shift
2007   if test $# != 0; then
2008     # We chose a different compiler from the bogus one.
2009     # However, it has the same basename, so the bogon will be chosen
2010     # first if we set CC to just the basename; use the full file name.
2011     shift
2012     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013   fi
2014 fi
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019   echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2021 else
2022   echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2024 fi
2025
2026 fi
2027 if test -z "$CC"; then
2028   if test -n "$ac_tool_prefix"; then
2029   for ac_prog in cl
2030   do
2031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   if test -n "$CC"; then
2039   ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050     break 2
2051   fi
2052 done
2053 done
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6
2061 else
2062   echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066     test -n "$CC" && break
2067   done
2068 fi
2069 if test -z "$CC"; then
2070   ac_ct_CC=$CC
2071   for ac_prog in cl
2072 do
2073   # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$ac_ct_CC"; then
2081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090     ac_cv_prog_ac_ct_CC="$ac_prog"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096
2097 fi
2098 fi
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2103 else
2104   echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2106 fi
2107
2108   test -n "$ac_ct_CC" && break
2109 done
2110
2111   CC=$ac_ct_CC
2112 fi
2113
2114 fi
2115
2116
2117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&2;}
2121    { (exit 1); exit 1; }; }
2122
2123 # Provide some information about the compiler.
2124 echo "$as_me:$LINENO:" \
2125      "checking for C compiler version" >&5
2126 ac_compiler=`set X $ac_compile; echo $2`
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2128   (eval $ac_compiler --version </dev/null >&5) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2133   (eval $ac_compiler -v </dev/null >&5) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }
2137 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2138   (eval $ac_compiler -V </dev/null >&5) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2167   (eval $ac_link_default) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; then
2171   # Find the output, starting from the most likely.  This scheme is
2172 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2173 # resort.
2174
2175 # Be careful to initialize this variable, since it used to be cached.
2176 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2177 ac_cv_exeext=
2178 # b.out is created by i960 compilers.
2179 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2180 do
2181   test -f "$ac_file" || continue
2182   case $ac_file in
2183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2184         ;;
2185     conftest.$ac_ext )
2186         # This is the source file.
2187         ;;
2188     [ab].out )
2189         # We found the default executable, but exeext='' is most
2190         # certainly right.
2191         break;;
2192     *.* )
2193         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194         # FIXME: I believe we export ac_cv_exeext for Libtool,
2195         # but it would be cool to find out if it's true.  Does anybody
2196         # maintain Libtool? --akim.
2197         export ac_cv_exeext
2198         break;;
2199     * )
2200         break;;
2201   esac
2202 done
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211    { (exit 77); exit 77; }; }
2212 fi
2213
2214 ac_exeext=$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6
2217
2218 # Check the compiler produces executables we can run.  If not, either
2219 # the compiler is broken, or we cross compile.
2220 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225   if { ac_try='./$ac_file'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; }; then
2231     cross_compiling=no
2232   else
2233     if test "$cross_compiling" = maybe; then
2234         cross_compiling=yes
2235     else
2236         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&2;}
2242    { (exit 1); exit 1; }; }
2243     fi
2244   fi
2245 fi
2246 echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6
2248
2249 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2250 ac_clean_files=$ac_clean_files_save
2251 # Check the compiler produces executables we can run.  If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2255 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256 echo "${ECHO_T}$cross_compiling" >&6
2257
2258 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261   (eval $ac_link) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; then
2265   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2267 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 # `rm'.
2269 for ac_file in conftest.exe conftest conftest.*; do
2270   test -f "$ac_file" || continue
2271   case $ac_file in
2272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2273     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274           export ac_cv_exeext
2275           break;;
2276     * ) break;;
2277   esac
2278 done
2279 else
2280   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&2;}
2284    { (exit 1); exit 1; }; }
2285 fi
2286
2287 rm -f conftest$ac_cv_exeext
2288 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289 echo "${ECHO_T}$ac_cv_exeext" >&6
2290
2291 rm -f conftest.$ac_ext
2292 EXEEXT=$ac_cv_exeext
2293 ac_exeext=$EXEEXT
2294 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2296 if test "${ac_cv_objext+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305
2306 int
2307 main ()
2308 {
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.o conftest.obj
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316   (eval $ac_compile) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; then
2320   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321   case $ac_file in
2322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2323     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324        break;;
2325   esac
2326 done
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&2;}
2335    { (exit 1); exit 1; }; }
2336 fi
2337
2338 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 fi
2340 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2341 echo "${ECHO_T}$ac_cv_objext" >&6
2342 OBJEXT=$ac_cv_objext
2343 ac_objext=$OBJEXT
2344 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2345 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2346 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355
2356 int
2357 main ()
2358 {
2359 #ifndef __GNUC__
2360        choke me
2361 #endif
2362
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369   (eval $ac_compile) 2>conftest.er1
2370   ac_status=$?
2371   grep -v '^ *+' conftest.er1 >conftest.err
2372   rm -f conftest.er1
2373   cat conftest.err >&5
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); } &&
2376          { ac_try='test -z "$ac_c_werror_flag"
2377                          || test ! -s conftest.err'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; } &&
2383          { ac_try='test -s conftest.$ac_objext'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; }; then
2389   ac_compiler_gnu=yes
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_compiler_gnu=no
2395 fi
2396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2397 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2398
2399 fi
2400 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402 GCC=`test $ac_compiler_gnu = yes && echo yes`
2403 ac_test_CFLAGS=${CFLAGS+set}
2404 ac_save_CFLAGS=$CFLAGS
2405 CFLAGS="-g"
2406 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408 if test "${ac_cv_prog_cc_g+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h.  */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h.  */
2417
2418 int
2419 main ()
2420 {
2421
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428   (eval $ac_compile) 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } &&
2435          { ac_try='test -z "$ac_c_werror_flag"
2436                          || test ! -s conftest.err'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; } &&
2442          { ac_try='test -s conftest.$ac_objext'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; }; then
2448   ac_cv_prog_cc_g=yes
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_cv_prog_cc_g=no
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460   CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462   if test "$GCC" = yes; then
2463     CFLAGS="-g -O2"
2464   else
2465     CFLAGS="-g"
2466   fi
2467 else
2468   if test "$GCC" = yes; then
2469     CFLAGS="-O2"
2470   else
2471     CFLAGS=
2472   fi
2473 fi
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   ac_cv_prog_cc_stdc=no
2480 ac_save_CC=$CC
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487 #include <stdarg.h>
2488 #include <stdio.h>
2489 #include <sys/types.h>
2490 #include <sys/stat.h>
2491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2492 struct buf { int x; };
2493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494 static char *e (p, i)
2495      char **p;
2496      int i;
2497 {
2498   return p[i];
2499 }
2500 static char *f (char * (*g) (char **, int), char **p, ...)
2501 {
2502   char *s;
2503   va_list v;
2504   va_start (v,p);
2505   s = g (p, va_arg (v,int));
2506   va_end (v);
2507   return s;
2508 }
2509
2510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2511    function prototypes and stuff, but not '\xHH' hex character constants.
2512    These don't provoke an error unfortunately, instead are silently treated
2513    as 'x'.  The following induces an error, until -std1 is added to get
2514    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2515    array size at least.  It's necessary to write '\x00'==0 to get something
2516    that's true only with -std1.  */
2517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2518
2519 int test (int i, double x);
2520 struct s1 {int (*f) (int a);};
2521 struct s2 {int (*f) (double a);};
2522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2523 int argc;
2524 char **argv;
2525 int
2526 main ()
2527 {
2528 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 # Don't try gcc -ansi; that turns off useful extensions and
2534 # breaks some systems' header files.
2535 # AIX                   -qlanglvl=ansi
2536 # Ultrix and OSF/1      -std1
2537 # HP-UX 10.20 and later -Ae
2538 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2539 # SVR4                  -Xc -D__EXTENSIONS__
2540 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541 do
2542   CC="$ac_save_CC $ac_arg"
2543   rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>conftest.er1
2546   ac_status=$?
2547   grep -v '^ *+' conftest.er1 >conftest.err
2548   rm -f conftest.er1
2549   cat conftest.err >&5
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); } &&
2552          { ac_try='test -z "$ac_c_werror_flag"
2553                          || test ! -s conftest.err'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; }; then
2565   ac_cv_prog_cc_stdc=$ac_arg
2566 break
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 fi
2572 rm -f conftest.err conftest.$ac_objext
2573 done
2574 rm -f conftest.$ac_ext conftest.$ac_objext
2575 CC=$ac_save_CC
2576
2577 fi
2578
2579 case "x$ac_cv_prog_cc_stdc" in
2580   x|xno)
2581     echo "$as_me:$LINENO: result: none needed" >&5
2582 echo "${ECHO_T}none needed" >&6 ;;
2583   *)
2584     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2585 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2586     CC="$CC $ac_cv_prog_cc_stdc" ;;
2587 esac
2588
2589 # Some people use a C++ compiler to compile C.  Since we use `exit',
2590 # in C++ we need to declare it.  In case someone uses the same compiler
2591 # for both compiling C and C++ we need to have the C++ compiler decide
2592 # the declaration of exit, since it's the most demanding environment.
2593 cat >conftest.$ac_ext <<_ACEOF
2594 #ifndef __cplusplus
2595   choke me
2596 #endif
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   for ac_declaration in \
2621    '' \
2622    'extern "C" void std::exit (int) throw (); using std::exit;' \
2623    'extern "C" void std::exit (int); using std::exit;' \
2624    'extern "C" void exit (int) throw ();' \
2625    'extern "C" void exit (int);' \
2626    'void exit (int);'
2627 do
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 $ac_declaration
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639 exit (42);
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_c_werror_flag"
2654                          || test ! -s conftest.err'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   :
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 continue
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674   cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h.  */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h.  */
2680 $ac_declaration
2681 int
2682 main ()
2683 {
2684 exit (42);
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691   (eval $ac_compile) 2>conftest.er1
2692   ac_status=$?
2693   grep -v '^ *+' conftest.er1 >conftest.err
2694   rm -f conftest.er1
2695   cat conftest.err >&5
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); } &&
2698          { ac_try='test -z "$ac_c_werror_flag"
2699                          || test ! -s conftest.err'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; } &&
2705          { ac_try='test -s conftest.$ac_objext'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   break
2712 else
2713   echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 fi
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 done
2719 rm -f conftest*
2720 if test -n "$ac_declaration"; then
2721   echo '#ifdef __cplusplus' >>confdefs.h
2722   echo $ac_declaration      >>confdefs.h
2723   echo '#endif'             >>confdefs.h
2724 fi
2725
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 fi
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2740 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2741 if test "${ac_cv_c_bigendian+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   # See if sys/param.h defines the BYTE_ORDER macro.
2745 cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #include <sys/types.h>
2752 #include <sys/param.h>
2753
2754 int
2755 main ()
2756 {
2757 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2758  bogus endian macros
2759 #endif
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_c_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   # It does; now see whether it defined to BIG_ENDIAN or not.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794 #include <sys/types.h>
2795 #include <sys/param.h>
2796
2797 int
2798 main ()
2799 {
2800 #if BYTE_ORDER != BIG_ENDIAN
2801  not big endian
2802 #endif
2803
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810   (eval $ac_compile) 2>conftest.er1
2811   ac_status=$?
2812   grep -v '^ *+' conftest.er1 >conftest.err
2813   rm -f conftest.er1
2814   cat conftest.err >&5
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); } &&
2817          { ac_try='test -z "$ac_c_werror_flag"
2818                          || test ! -s conftest.err'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; } &&
2824          { ac_try='test -s conftest.$ac_objext'
2825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826   (eval $ac_try) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; }; then
2830   ac_cv_c_bigendian=yes
2831 else
2832   echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835 ac_cv_c_bigendian=no
2836 fi
2837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838 else
2839   echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 # It does not; compile a test program.
2843 if test "$cross_compiling" = yes; then
2844   # try to guess the endianness by grepping values into an object file
2845   ac_cv_c_bigendian=unknown
2846   cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2853 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2854 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2855 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2856 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2857 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2858 int
2859 main ()
2860 {
2861  _ascii (); _ebcdic ();
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868   (eval $ac_compile) 2>conftest.er1
2869   ac_status=$?
2870   grep -v '^ *+' conftest.er1 >conftest.err
2871   rm -f conftest.er1
2872   cat conftest.err >&5
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); } &&
2875          { ac_try='test -z "$ac_c_werror_flag"
2876                          || test ! -s conftest.err'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; } &&
2882          { ac_try='test -s conftest.$ac_objext'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; }; then
2888   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2889   ac_cv_c_bigendian=yes
2890 fi
2891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2892   if test "$ac_cv_c_bigendian" = unknown; then
2893     ac_cv_c_bigendian=no
2894   else
2895     # finding both strings is unlikely to happen, but who knows?
2896     ac_cv_c_bigendian=unknown
2897   fi
2898 fi
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 fi
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 else
2906   cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 int
2913 main ()
2914 {
2915   /* Are we little or big endian?  From Harbison&Steele.  */
2916   union
2917   {
2918     long l;
2919     char c[sizeof (long)];
2920   } u;
2921   u.l = 1;
2922   exit (u.c[sizeof (long) - 1] == 1);
2923 }
2924 _ACEOF
2925 rm -f conftest$ac_exeext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927   (eval $ac_link) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; }; then
2936   ac_cv_c_bigendian=no
2937 else
2938   echo "$as_me: program exited with status $ac_status" >&5
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ( exit $ac_status )
2943 ac_cv_c_bigendian=yes
2944 fi
2945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2946 fi
2947 fi
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 fi
2950 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2951 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2952 case $ac_cv_c_bigendian in
2953   yes)
2954     ENDIAN=big
2955  ;;
2956   no)
2957     ENDIAN=little
2958  ;;
2959   *)
2960     { { echo "$as_me:$LINENO: error: unknown endianness
2961 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2962 echo "$as_me: error: unknown endianness
2963 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2964    { (exit 1); exit 1; }; } ;;
2965 esac
2966
2967
2968
2969 # Check whether --enable-optimized or --disable-optimized was given.
2970 if test "${enable_optimized+set}" = set; then
2971   enableval="$enable_optimized"
2972
2973 else
2974   enableval=no
2975 fi;
2976 if test ${enableval} = "no" ; then
2977   ENABLE_OPTIMIZED=
2978
2979 else
2980   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2981
2982 fi
2983
2984 # Check whether --enable-jit or --disable-jit was given.
2985 if test "${enable_jit+set}" = set; then
2986   enableval="$enable_jit"
2987
2988 else
2989   enableval=default
2990 fi;
2991 if test ${enableval} = "no"
2992 then
2993   JIT=
2994
2995 else
2996   case "$llvm_cv_target_arch" in
2997     x86)     JIT=TARGET_HAS_JIT=1
2998  ;;
2999     Sparc)   JIT=TARGET_HAS_JIT=1
3000  ;;
3001     PowerPC) JIT=TARGET_HAS_JIT=1
3002  ;;
3003     x86_64)  JIT=
3004  ;;
3005     *)       JIT=
3006  ;;
3007   esac
3008 fi
3009
3010 # Check whether --enable-doxygen or --disable-doxygen was given.
3011 if test "${enable_doxygen+set}" = set; then
3012   enableval="$enable_doxygen"
3013
3014 else
3015   enableval=default
3016 fi;
3017 case "$enableval" in
3018   yes) ENABLE_DOXYGEN=1
3019  ;;
3020   no)  ENABLE_DOXYGEN=0
3021  ;;
3022   default) ENABLE_DOXYGEN=0
3023  ;;
3024   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3025 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3026    { (exit 1); exit 1; }; } ;;
3027 esac
3028
3029
3030 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3031 if test "${with_llvmgccdir+set}" = set; then
3032   withval="$with_llvmgccdir"
3033
3034 else
3035   withval=default
3036 fi;
3037 case "$withval" in
3038   default) WITH_LLVMGCCDIR=default ;;
3039   /*)      WITH_LLVMGCCDIR=$withval ;;
3040   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3041 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3042    { (exit 1); exit 1; }; } ;;
3043 esac
3044
3045
3046 ac_ext=c
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3053 # On Suns, sometimes $CPP names a directory.
3054 if test -n "$CPP" && test -d "$CPP"; then
3055   CPP=
3056 fi
3057 if test -z "$CPP"; then
3058   if test "${ac_cv_prog_CPP+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061       # Double quotes because CPP needs to be expanded
3062     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3063     do
3064       ac_preproc_ok=false
3065 for ac_c_preproc_warn_flag in '' yes
3066 do
3067   # Use a header file that comes with gcc, so configuring glibc
3068   # with a fresh cross-compiler works.
3069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070   # <limits.h> exists even on freestanding compilers.
3071   # On the NeXT, cc -E runs the code through the compiler's parser,
3072   # not just through cpp. "Syntax error" is here to catch this case.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #ifdef __STDC__
3080 # include <limits.h>
3081 #else
3082 # include <assert.h>
3083 #endif
3084                      Syntax error
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } >/dev/null; then
3094   if test -s conftest.err; then
3095     ac_cpp_err=$ac_c_preproc_warn_flag
3096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097   else
3098     ac_cpp_err=
3099   fi
3100 else
3101   ac_cpp_err=yes
3102 fi
3103 if test -z "$ac_cpp_err"; then
3104   :
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109   # Broken: fails on valid input.
3110 continue
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113
3114   # OK, works on sane cases.  Now check whether non-existent headers
3115   # can be detected and how.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #include <ac_nonexistent.h>
3123 _ACEOF
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } >/dev/null; then
3132   if test -s conftest.err; then
3133     ac_cpp_err=$ac_c_preproc_warn_flag
3134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135   else
3136     ac_cpp_err=
3137   fi
3138 else
3139   ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142   # Broken: success on invalid input.
3143 continue
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148   # Passes both tests.
3149 ac_preproc_ok=:
3150 break
3151 fi
3152 rm -f conftest.err conftest.$ac_ext
3153
3154 done
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then
3158   break
3159 fi
3160
3161     done
3162     ac_cv_prog_CPP=$CPP
3163
3164 fi
3165   CPP=$ac_cv_prog_CPP
3166 else
3167   ac_cv_prog_CPP=$CPP
3168 fi
3169 echo "$as_me:$LINENO: result: $CPP" >&5
3170 echo "${ECHO_T}$CPP" >&6
3171 ac_preproc_ok=false
3172 for ac_c_preproc_warn_flag in '' yes
3173 do
3174   # Use a header file that comes with gcc, so configuring glibc
3175   # with a fresh cross-compiler works.
3176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177   # <limits.h> exists even on freestanding compilers.
3178   # On the NeXT, cc -E runs the code through the compiler's parser,
3179   # not just through cpp. "Syntax error" is here to catch this case.
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186 #ifdef __STDC__
3187 # include <limits.h>
3188 #else
3189 # include <assert.h>
3190 #endif
3191                      Syntax error
3192 _ACEOF
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } >/dev/null; then
3201   if test -s conftest.err; then
3202     ac_cpp_err=$ac_c_preproc_warn_flag
3203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204   else
3205     ac_cpp_err=
3206   fi
3207 else
3208   ac_cpp_err=yes
3209 fi
3210 if test -z "$ac_cpp_err"; then
3211   :
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216   # Broken: fails on valid input.
3217 continue
3218 fi
3219 rm -f conftest.err conftest.$ac_ext
3220
3221   # OK, works on sane cases.  Now check whether non-existent headers
3222   # can be detected and how.
3223   cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #include <ac_nonexistent.h>
3230 _ACEOF
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } >/dev/null; then
3239   if test -s conftest.err; then
3240     ac_cpp_err=$ac_c_preproc_warn_flag
3241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242   else
3243     ac_cpp_err=
3244   fi
3245 else
3246   ac_cpp_err=yes
3247 fi
3248 if test -z "$ac_cpp_err"; then
3249   # Broken: success on invalid input.
3250 continue
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255   # Passes both tests.
3256 ac_preproc_ok=:
3257 break
3258 fi
3259 rm -f conftest.err conftest.$ac_ext
3260
3261 done
3262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263 rm -f conftest.err conftest.$ac_ext
3264 if $ac_preproc_ok; then
3265   :
3266 else
3267   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3268 See \`config.log' for more details." >&5
3269 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3270 See \`config.log' for more details." >&2;}
3271    { (exit 1); exit 1; }; }
3272 fi
3273
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 if test -n "$ac_tool_prefix"; then
3286   for ac_prog in gcc
3287   do
3288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_CC+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   if test -n "$CC"; then
3296   ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_exec_ext in '' $ac_executable_extensions; do
3304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311
3312 fi
3313 fi
3314 CC=$ac_cv_prog_CC
3315 if test -n "$CC"; then
3316   echo "$as_me:$LINENO: result: $CC" >&5
3317 echo "${ECHO_T}$CC" >&6
3318 else
3319   echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 fi
3322
3323     test -n "$CC" && break
3324   done
3325 fi
3326 if test -z "$CC"; then
3327   ac_ct_CC=$CC
3328   for ac_prog in gcc
3329 do
3330   # Extract the first word of "$ac_prog", so it can be a program name with args.
3331 set dummy $ac_prog; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$ac_ct_CC"; then
3338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_ac_ct_CC="$ac_prog"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3359 echo "${ECHO_T}$ac_ct_CC" >&6
3360 else
3361   echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363 fi
3364
3365   test -n "$ac_ct_CC" && break
3366 done
3367
3368   CC=$ac_ct_CC
3369 fi
3370
3371
3372 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3373 See \`config.log' for more details." >&5
3374 echo "$as_me: error: no acceptable C compiler found in \$PATH
3375 See \`config.log' for more details." >&2;}
3376    { (exit 1); exit 1; }; }
3377
3378 # Provide some information about the compiler.
3379 echo "$as_me:$LINENO:" \
3380      "checking for C compiler version" >&5
3381 ac_compiler=`set X $ac_compile; echo $2`
3382 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3383   (eval $ac_compiler --version </dev/null >&5) 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }
3387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3388   (eval $ac_compiler -v </dev/null >&5) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }
3392 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3393   (eval $ac_compiler -V </dev/null >&5) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }
3397
3398 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3399 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3400 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413 #ifndef __GNUC__
3414        choke me
3415 #endif
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423   (eval $ac_compile) 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } &&
3430          { ac_try='test -z "$ac_c_werror_flag"
3431                          || test ! -s conftest.err'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; } &&
3437          { ac_try='test -s conftest.$ac_objext'
3438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439   (eval $ac_try) 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }; }; then
3443   ac_compiler_gnu=yes
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 ac_compiler_gnu=no
3449 fi
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453 fi
3454 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3455 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3456 GCC=`test $ac_compiler_gnu = yes && echo yes`
3457 ac_test_CFLAGS=${CFLAGS+set}
3458 ac_save_CFLAGS=$CFLAGS
3459 CFLAGS="-g"
3460 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3462 if test "${ac_cv_prog_cc_g+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482   (eval $ac_compile) 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } &&
3489          { ac_try='test -z "$ac_c_werror_flag"
3490                          || test ! -s conftest.err'
3491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492   (eval $ac_try) 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }; } &&
3496          { ac_try='test -s conftest.$ac_objext'
3497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; }; then
3502   ac_cv_prog_cc_g=yes
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 ac_cv_prog_cc_g=no
3508 fi
3509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3513 if test "$ac_test_CFLAGS" = set; then
3514   CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516   if test "$GCC" = yes; then
3517     CFLAGS="-g -O2"
3518   else
3519     CFLAGS="-g"
3520   fi
3521 else
3522   if test "$GCC" = yes; then
3523     CFLAGS="-O2"
3524   else
3525     CFLAGS=
3526   fi
3527 fi
3528 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3529 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3530 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   ac_cv_prog_cc_stdc=no
3534 ac_save_CC=$CC
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541 #include <stdarg.h>
3542 #include <stdio.h>
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3549      char **p;
3550      int i;
3551 {
3552   return p[i];
3553 }
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3555 {
3556   char *s;
3557   va_list v;
3558   va_start (v,p);
3559   s = g (p, va_arg (v,int));
3560   va_end (v);
3561   return s;
3562 }
3563
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3565    function prototypes and stuff, but not '\xHH' hex character constants.
3566    These don't provoke an error unfortunately, instead are silently treated
3567    as 'x'.  The following induces an error, until -std1 is added to get
3568    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3569    array size at least.  It's necessary to write '\x00'==0 to get something
3570    that's true only with -std1.  */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
3573 int test (int i, double x);
3574 struct s1 {int (*f) (int a);};
3575 struct s2 {int (*f) (double a);};
3576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577 int argc;
3578 char **argv;
3579 int
3580 main ()
3581 {
3582 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 # Don't try gcc -ansi; that turns off useful extensions and
3588 # breaks some systems' header files.
3589 # AIX                   -qlanglvl=ansi
3590 # Ultrix and OSF/1      -std1
3591 # HP-UX 10.20 and later -Ae
3592 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3593 # SVR4                  -Xc -D__EXTENSIONS__
3594 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 do
3596   CC="$ac_save_CC $ac_arg"
3597   rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          { ac_try='test -z "$ac_c_werror_flag"
3607                          || test ! -s conftest.err'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; } &&
3613          { ac_try='test -s conftest.$ac_objext'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   ac_cv_prog_cc_stdc=$ac_arg
3620 break
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 fi
3626 rm -f conftest.err conftest.$ac_objext
3627 done
3628 rm -f conftest.$ac_ext conftest.$ac_objext
3629 CC=$ac_save_CC
3630
3631 fi
3632
3633 case "x$ac_cv_prog_cc_stdc" in
3634   x|xno)
3635     echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6 ;;
3637   *)
3638     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3640     CC="$CC $ac_cv_prog_cc_stdc" ;;
3641 esac
3642
3643 # Some people use a C++ compiler to compile C.  Since we use `exit',
3644 # in C++ we need to declare it.  In case someone uses the same compiler
3645 # for both compiling C and C++ we need to have the C++ compiler decide
3646 # the declaration of exit, since it's the most demanding environment.
3647 cat >conftest.$ac_ext <<_ACEOF
3648 #ifndef __cplusplus
3649   choke me
3650 #endif
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654   (eval $ac_compile) 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } &&
3661          { ac_try='test -z "$ac_c_werror_flag"
3662                          || test ! -s conftest.err'
3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; } &&
3668          { ac_try='test -s conftest.$ac_objext'
3669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; }; then
3674   for ac_declaration in \
3675    '' \
3676    'extern "C" void std::exit (int) throw (); using std::exit;' \
3677    'extern "C" void std::exit (int); using std::exit;' \
3678    'extern "C" void exit (int) throw ();' \
3679    'extern "C" void exit (int);' \
3680    'void exit (int);'
3681 do
3682   cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688 $ac_declaration
3689 #include <stdlib.h>
3690 int
3691 main ()
3692 {
3693 exit (42);
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700   (eval $ac_compile) 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } &&
3707          { ac_try='test -z "$ac_c_werror_flag"
3708                          || test ! -s conftest.err'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; } &&
3714          { ac_try='test -s conftest.$ac_objext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   :
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 continue
3726 fi
3727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728   cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734 $ac_declaration
3735 int
3736 main ()
3737 {
3738 exit (42);
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745   (eval $ac_compile) 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } &&
3752          { ac_try='test -z "$ac_c_werror_flag"
3753                          || test ! -s conftest.err'
3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; } &&
3759          { ac_try='test -s conftest.$ac_objext'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; }; then
3765   break
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 fi
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 done
3773 rm -f conftest*
3774 if test -n "$ac_declaration"; then
3775   echo '#ifdef __cplusplus' >>confdefs.h
3776   echo $ac_declaration      >>confdefs.h
3777   echo '#endif'             >>confdefs.h
3778 fi
3779
3780 else
3781   echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 fi
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 ac_ext=cc
3793 ac_cpp='$CXXCPP $CPPFLAGS'
3794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3797 if test -n "$ac_tool_prefix"; then
3798   for ac_prog in $CCC g++
3799   do
3800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_CXX+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -n "$CXX"; then
3808   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for ac_exec_ext in '' $ac_executable_extensions; do
3816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822 done
3823
3824 fi
3825 fi
3826 CXX=$ac_cv_prog_CXX
3827 if test -n "$CXX"; then
3828   echo "$as_me:$LINENO: result: $CXX" >&5
3829 echo "${ECHO_T}$CXX" >&6
3830 else
3831   echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3833 fi
3834
3835     test -n "$CXX" && break
3836   done
3837 fi
3838 if test -z "$CXX"; then
3839   ac_ct_CXX=$CXX
3840   for ac_prog in $CCC g++
3841 do
3842   # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   if test -n "$ac_ct_CXX"; then
3850   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857   for ac_exec_ext in '' $ac_executable_extensions; do
3858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859     ac_cv_prog_ac_ct_CXX="$ac_prog"
3860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864 done
3865
3866 fi
3867 fi
3868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3869 if test -n "$ac_ct_CXX"; then
3870   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3871 echo "${ECHO_T}$ac_ct_CXX" >&6
3872 else
3873   echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875 fi
3876
3877   test -n "$ac_ct_CXX" && break
3878 done
3879 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3880
3881   CXX=$ac_ct_CXX
3882 fi
3883
3884
3885 # Provide some information about the compiler.
3886 echo "$as_me:$LINENO:" \
3887      "checking for C++ compiler version" >&5
3888 ac_compiler=`set X $ac_compile; echo $2`
3889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3890   (eval $ac_compiler --version </dev/null >&5) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }
3894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3895   (eval $ac_compiler -v </dev/null >&5) 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }
3899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3900   (eval $ac_compiler -V </dev/null >&5) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }
3904
3905 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920 #ifndef __GNUC__
3921        choke me
3922 #endif
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930   (eval $ac_compile) 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } &&
3937          { ac_try='test -z "$ac_cxx_werror_flag"
3938                          || test ! -s conftest.err'
3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940   (eval $ac_try) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; } &&
3944          { ac_try='test -s conftest.$ac_objext'
3945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946   (eval $ac_try) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }; }; then
3950   ac_compiler_gnu=yes
3951 else
3952   echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 ac_compiler_gnu=no
3956 fi
3957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3959
3960 fi
3961 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3962 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3963 GXX=`test $ac_compiler_gnu = yes && echo yes`
3964 ac_test_CXXFLAGS=${CXXFLAGS+set}
3965 ac_save_CXXFLAGS=$CXXFLAGS
3966 CXXFLAGS="-g"
3967 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3968 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3969 if test "${ac_cv_prog_cxx_g+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h.  */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h.  */
3978
3979 int
3980 main ()
3981 {
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989   (eval $ac_compile) 2>conftest.er1
3990   ac_status=$?
3991   grep -v '^ *+' conftest.er1 >conftest.err
3992   rm -f conftest.er1
3993   cat conftest.err >&5
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); } &&
3996          { ac_try='test -z "$ac_cxx_werror_flag"
3997                          || test ! -s conftest.err'
3998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999   (eval $ac_try) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; } &&
4003          { ac_try='test -s conftest.$ac_objext'
4004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005   (eval $ac_try) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; }; then
4009   ac_cv_prog_cxx_g=yes
4010 else
4011   echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 ac_cv_prog_cxx_g=no
4015 fi
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 fi
4018 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4020 if test "$ac_test_CXXFLAGS" = set; then
4021   CXXFLAGS=$ac_save_CXXFLAGS
4022 elif test $ac_cv_prog_cxx_g = yes; then
4023   if test "$GXX" = yes; then
4024     CXXFLAGS="-g -O2"
4025   else
4026     CXXFLAGS="-g"
4027   fi
4028 else
4029   if test "$GXX" = yes; then
4030     CXXFLAGS="-O2"
4031   else
4032     CXXFLAGS=
4033   fi
4034 fi
4035 for ac_declaration in \
4036    '' \
4037    'extern "C" void std::exit (int) throw (); using std::exit;' \
4038    'extern "C" void std::exit (int); using std::exit;' \
4039    'extern "C" void exit (int) throw ();' \
4040    'extern "C" void exit (int);' \
4041    'void exit (int);'
4042 do
4043   cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h.  */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h.  */
4049 $ac_declaration
4050 #include <stdlib.h>
4051 int
4052 main ()
4053 {
4054 exit (42);
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061   (eval $ac_compile) 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } &&
4068          { ac_try='test -z "$ac_cxx_werror_flag"
4069                          || test ! -s conftest.err'
4070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071   (eval $ac_try) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); }; } &&
4075          { ac_try='test -s conftest.$ac_objext'
4076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077   (eval $ac_try) 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   :
4082 else
4083   echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 continue
4087 fi
4088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089   cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 $ac_declaration
4096 int
4097 main ()
4098 {
4099 exit (42);
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106   (eval $ac_compile) 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } &&
4113          { ac_try='test -z "$ac_cxx_werror_flag"
4114                          || test ! -s conftest.err'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; } &&
4120          { ac_try='test -s conftest.$ac_objext'
4121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122   (eval $ac_try) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; }; then
4126   break
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 fi
4132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 done
4134 rm -f conftest*
4135 if test -n "$ac_declaration"; then
4136   echo '#ifdef __cplusplus' >>confdefs.h
4137   echo $ac_declaration      >>confdefs.h
4138   echo '#endif'             >>confdefs.h
4139 fi
4140
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147 echo "$as_me:$LINENO: checking " >&5
4148 echo $ECHO_N "checking ... $ECHO_C" >&6
4149 if test "${ac_cv_has_flex+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   for ac_prog in flex lex
4153 do
4154   # Extract the first word of "$ac_prog", so it can be a program name with args.
4155 set dummy $ac_prog; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_LEX+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test -n "$LEX"; then
4162   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167   IFS=$as_save_IFS
4168   test -z "$as_dir" && as_dir=.
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171     ac_cv_prog_LEX="$ac_prog"
4172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173     break 2
4174   fi
4175 done
4176 done
4177
4178 fi
4179 fi
4180 LEX=$ac_cv_prog_LEX
4181 if test -n "$LEX"; then
4182   echo "$as_me:$LINENO: result: $LEX" >&5
4183 echo "${ECHO_T}$LEX" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189   test -n "$LEX" && break
4190 done
4191 test -n "$LEX" || LEX=":"
4192
4193 if test -z "$LEXLIB"
4194 then
4195   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4196 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4197 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   ac_check_lib_save_LIBS=$LIBS
4201 LIBS="-lfl  $LIBS"
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208
4209 /* Override any gcc2 internal prototype to avoid an error.  */
4210 #ifdef __cplusplus
4211 extern "C"
4212 #endif
4213 /* We use char because int might match the return type of a gcc2
4214    builtin and then its argument prototype would still apply.  */
4215 char yywrap ();
4216 int
4217 main ()
4218 {
4219 yywrap ();
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226   (eval $ac_link) 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_c_werror_flag"
4234                          || test ! -s conftest.err'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; } &&
4240          { ac_try='test -s conftest$ac_exeext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_cv_lib_fl_yywrap=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_cv_lib_fl_yywrap=no
4252 fi
4253 rm -f conftest.err conftest.$ac_objext \
4254       conftest$ac_exeext conftest.$ac_ext
4255 LIBS=$ac_check_lib_save_LIBS
4256 fi
4257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4259 if test $ac_cv_lib_fl_yywrap = yes; then
4260   LEXLIB="-lfl"
4261 else
4262   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   ac_check_lib_save_LIBS=$LIBS
4268 LIBS="-ll  $LIBS"
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275
4276 /* Override any gcc2 internal prototype to avoid an error.  */
4277 #ifdef __cplusplus
4278 extern "C"
4279 #endif
4280 /* We use char because int might match the return type of a gcc2
4281    builtin and then its argument prototype would still apply.  */
4282 char yywrap ();
4283 int
4284 main ()
4285 {
4286 yywrap ();
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293   (eval $ac_link) 2>conftest.er1
4294   ac_status=$?
4295   grep -v '^ *+' conftest.er1 >conftest.err
4296   rm -f conftest.er1
4297   cat conftest.err >&5
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -z "$ac_c_werror_flag"
4301                          || test ! -s conftest.err'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; } &&
4307          { ac_try='test -s conftest$ac_exeext'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; }; then
4313   ac_cv_lib_l_yywrap=yes
4314 else
4315   echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318 ac_cv_lib_l_yywrap=no
4319 fi
4320 rm -f conftest.err conftest.$ac_objext \
4321       conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4323 fi
4324 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4325 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4326 if test $ac_cv_lib_l_yywrap = yes; then
4327   LEXLIB="-ll"
4328 fi
4329
4330 fi
4331
4332 fi
4333
4334 if test "x$LEX" != "x:"; then
4335   echo "$as_me:$LINENO: checking lex output file root" >&5
4336 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4337 if test "${ac_cv_prog_lex_root+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   # The minimal lex program is just a single line: %%.  But some broken lexes
4341 # (Solaris, I think it was) want two %% lines, so accommodate them.
4342 cat >conftest.l <<_ACEOF
4343 %%
4344 %%
4345 _ACEOF
4346 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4347   (eval $LEX conftest.l) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }
4351 if test -f lex.yy.c; then
4352   ac_cv_prog_lex_root=lex.yy
4353 elif test -f lexyy.c; then
4354   ac_cv_prog_lex_root=lexyy
4355 else
4356   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4357 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4358    { (exit 1); exit 1; }; }
4359 fi
4360 fi
4361 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4362 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4363 rm -f conftest.l
4364 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4365
4366 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4367 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4368 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   # POSIX says lex can declare yytext either as a pointer or an array; the
4372 # default is implementation-dependent. Figure out which it is, since
4373 # not all implementations provide the %pointer and %array declarations.
4374 ac_cv_prog_lex_yytext_pointer=no
4375 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4376 ac_save_LIBS=$LIBS
4377 LIBS="$LIBS $LEXLIB"
4378 cat >conftest.$ac_ext <<_ACEOF
4379 `cat $LEX_OUTPUT_ROOT.c`
4380 _ACEOF
4381 rm -f conftest.$ac_objext conftest$ac_exeext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383   (eval $ac_link) 2>conftest.er1
4384   ac_status=$?
4385   grep -v '^ *+' conftest.er1 >conftest.err
4386   rm -f conftest.er1
4387   cat conftest.err >&5
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } &&
4390          { ac_try='test -z "$ac_c_werror_flag"
4391                          || test ! -s conftest.err'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; } &&
4397          { ac_try='test -s conftest$ac_exeext'
4398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399   (eval $ac_try) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; }; then
4403   ac_cv_prog_lex_yytext_pointer=yes
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 fi
4409 rm -f conftest.err conftest.$ac_objext \
4410       conftest$ac_exeext conftest.$ac_ext
4411 LIBS=$ac_save_LIBS
4412 rm -f "${LEX_OUTPUT_ROOT}.c"
4413
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4416 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4417 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define YYTEXT_POINTER 1
4421 _ACEOF
4422
4423 fi
4424
4425 fi
4426
4427 fi
4428 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4429 echo "${ECHO_T}$ac_cv_has_flex" >&6
4430 if test "$LEX" != "flex"; then
4431   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4432 echo "$as_me: error: flex not found but required" >&2;}
4433    { (exit 1); exit 1; }; }
4434 else
4435   FLEX=flex
4436
4437 fi
4438
4439 echo "$as_me:$LINENO: checking " >&5
4440 echo $ECHO_N "checking ... $ECHO_C" >&6
4441 if test "${llvm_cv_has_bison+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   for ac_prog in 'bison -y' byacc
4445 do
4446   # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_YACC+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   if test -n "$YACC"; then
4454   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463     ac_cv_prog_YACC="$ac_prog"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469
4470 fi
4471 fi
4472 YACC=$ac_cv_prog_YACC
4473 if test -n "$YACC"; then
4474   echo "$as_me:$LINENO: result: $YACC" >&5
4475 echo "${ECHO_T}$YACC" >&6
4476 else
4477   echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479 fi
4480
4481   test -n "$YACC" && break
4482 done
4483 test -n "$YACC" || YACC="yacc"
4484
4485 fi
4486 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4487 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4488 if test "$YACC" != "bison -y"; then
4489   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4490 echo "$as_me: error: bison not found but required" >&2;}
4491    { (exit 1); exit 1; }; }
4492 else
4493   BISON=bison
4494
4495 fi
4496
4497 echo "$as_me:$LINENO: checking for GNU make" >&5
4498 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4499 if test "${llvm_cv_gnu_make_command+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   llvm_cv_gnu_make_command=''
4503  for a in "$MAKE" make gmake gnumake ; do
4504   if test -z "$a" ; then continue ; fi ;
4505   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4506   then
4507    llvm_cv_gnu_make_command=$a ;
4508    break;
4509   fi
4510  done
4511 fi
4512 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4513 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4514  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4515    ifGNUmake='' ;
4516  else
4517    ifGNUmake='#' ;
4518    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4519 echo "${ECHO_T}\"Not found\"" >&6;
4520  fi
4521
4522
4523 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4524 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4525 LN_S=$as_ln_s
4526 if test "$LN_S" = "ln -s"; then
4527   echo "$as_me:$LINENO: result: yes" >&5
4528 echo "${ECHO_T}yes" >&6
4529 else
4530   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4531 echo "${ECHO_T}no, using $LN_S" >&6
4532 fi
4533
4534 # Extract the first word of "cmp", so it can be a program name with args.
4535 set dummy cmp; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_path_CMP+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   case $CMP in
4542   [\\/]* | ?:[\\/]*)
4543   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4544   ;;
4545   *)
4546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551   for ac_exec_ext in '' $ac_executable_extensions; do
4552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555     break 2
4556   fi
4557 done
4558 done
4559
4560   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561   ;;
4562 esac
4563 fi
4564 CMP=$ac_cv_path_CMP
4565
4566 if test -n "$CMP"; then
4567   echo "$as_me:$LINENO: result: $CMP" >&5
4568 echo "${ECHO_T}$CMP" >&6
4569 else
4570   echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4572 fi
4573
4574 # Extract the first word of "cp", so it can be a program name with args.
4575 set dummy cp; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_path_CP+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   case $CP in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599
4600   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4601   ;;
4602 esac
4603 fi
4604 CP=$ac_cv_path_CP
4605
4606 if test -n "$CP"; then
4607   echo "$as_me:$LINENO: result: $CP" >&5
4608 echo "${ECHO_T}$CP" >&6
4609 else
4610   echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4612 fi
4613
4614 # Extract the first word of "date", so it can be a program name with args.
4615 set dummy date; ac_word=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_path_DATE+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   case $DATE in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639
4640   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4641   ;;
4642 esac
4643 fi
4644 DATE=$ac_cv_path_DATE
4645
4646 if test -n "$DATE"; then
4647   echo "$as_me:$LINENO: result: $DATE" >&5
4648 echo "${ECHO_T}$DATE" >&6
4649 else
4650   echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653
4654 # Extract the first word of "find", so it can be a program name with args.
4655 set dummy find; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_path_FIND+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   case $FIND in
4662   [\\/]* | ?:[\\/]*)
4663   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4664   ;;
4665   *)
4666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679
4680   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4681   ;;
4682 esac
4683 fi
4684 FIND=$ac_cv_path_FIND
4685
4686 if test -n "$FIND"; then
4687   echo "$as_me:$LINENO: result: $FIND" >&5
4688 echo "${ECHO_T}$FIND" >&6
4689 else
4690   echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692 fi
4693
4694 # Extract the first word of "grep", so it can be a program name with args.
4695 set dummy grep; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_GREP+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   case $GREP in
4702   [\\/]* | ?:[\\/]*)
4703   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4704   ;;
4705   *)
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719
4720   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4721   ;;
4722 esac
4723 fi
4724 GREP=$ac_cv_path_GREP
4725
4726 if test -n "$GREP"; then
4727   echo "$as_me:$LINENO: result: $GREP" >&5
4728 echo "${ECHO_T}$GREP" >&6
4729 else
4730   echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732 fi
4733
4734 # Extract the first word of "mkdir", so it can be a program name with args.
4735 set dummy mkdir; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_path_MKDIR+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $MKDIR in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759
4760   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4761   ;;
4762 esac
4763 fi
4764 MKDIR=$ac_cv_path_MKDIR
4765
4766 if test -n "$MKDIR"; then
4767   echo "$as_me:$LINENO: result: $MKDIR" >&5
4768 echo "${ECHO_T}$MKDIR" >&6
4769 else
4770   echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 # Extract the first word of "mv", so it can be a program name with args.
4775 set dummy mv; ac_word=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_path_MV+set}" = set; then
4779   echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781   case $MV in
4782   [\\/]* | ?:[\\/]*)
4783   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4784   ;;
4785   *)
4786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799
4800   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4801   ;;
4802 esac
4803 fi
4804 MV=$ac_cv_path_MV
4805
4806 if test -n "$MV"; then
4807   echo "$as_me:$LINENO: result: $MV" >&5
4808 echo "${ECHO_T}$MV" >&6
4809 else
4810   echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814 # Extract the first word of "pax", so it can be a program name with args.
4815 set dummy pax; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_path_PAX+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   case $PAX in
4822   [\\/]* | ?:[\\/]*)
4823   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4824   ;;
4825   *)
4826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839
4840   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4841   ;;
4842 esac
4843 fi
4844 PAX=$ac_cv_path_PAX
4845
4846 if test -n "$PAX"; then
4847   echo "$as_me:$LINENO: result: $PAX" >&5
4848 echo "${ECHO_T}$PAX" >&6
4849 else
4850   echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6
4852 fi
4853
4854 if test -n "$ac_tool_prefix"; then
4855   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4857 echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4859 if test "${ac_cv_prog_RANLIB+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -n "$RANLIB"; then
4863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874     break 2
4875   fi
4876 done
4877 done
4878
4879 fi
4880 fi
4881 RANLIB=$ac_cv_prog_RANLIB
4882 if test -n "$RANLIB"; then
4883   echo "$as_me:$LINENO: result: $RANLIB" >&5
4884 echo "${ECHO_T}$RANLIB" >&6
4885 else
4886   echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4888 fi
4889
4890 fi
4891 if test -z "$ac_cv_prog_RANLIB"; then
4892   ac_ct_RANLIB=$RANLIB
4893   # Extract the first word of "ranlib", so it can be a program name with args.
4894 set dummy ranlib; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$ac_ct_RANLIB"; then
4901   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910     ac_cv_prog_ac_ct_RANLIB="ranlib"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916
4917   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4918 fi
4919 fi
4920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4921 if test -n "$ac_ct_RANLIB"; then
4922   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4923 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929   RANLIB=$ac_ct_RANLIB
4930 else
4931   RANLIB="$ac_cv_prog_RANLIB"
4932 fi
4933
4934 # Extract the first word of "rm", so it can be a program name with args.
4935 set dummy rm; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_RM+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   case $RM in
4942   [\\/]* | ?:[\\/]*)
4943   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4944   ;;
4945   *)
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959
4960   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4961   ;;
4962 esac
4963 fi
4964 RM=$ac_cv_path_RM
4965
4966 if test -n "$RM"; then
4967   echo "$as_me:$LINENO: result: $RM" >&5
4968 echo "${ECHO_T}$RM" >&6
4969 else
4970   echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4972 fi
4973
4974 # Extract the first word of "sed", so it can be a program name with args.
4975 set dummy sed; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_path_SED+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   case $SED in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998 done
4999
5000   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5001   ;;
5002 esac
5003 fi
5004 SED=$ac_cv_path_SED
5005
5006 if test -n "$SED"; then
5007   echo "$as_me:$LINENO: result: $SED" >&5
5008 echo "${ECHO_T}$SED" >&6
5009 else
5010   echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5012 fi
5013
5014 # Extract the first word of "tar", so it can be a program name with args.
5015 set dummy tar; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_path_TAR+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   case $TAR in
5022   [\\/]* | ?:[\\/]*)
5023   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5024   ;;
5025   *)
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039
5040   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5041   ;;
5042 esac
5043 fi
5044 TAR=$ac_cv_path_TAR
5045
5046 if test -n "$TAR"; then
5047   echo "$as_me:$LINENO: result: $TAR" >&5
5048 echo "${ECHO_T}$TAR" >&6
5049 else
5050   echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 fi
5053
5054
5055 # Find a good install program.  We prefer a C program (faster),
5056 # so one script is as good as another.  But avoid the broken or
5057 # incompatible versions:
5058 # SysV /etc/install, /usr/sbin/install
5059 # SunOS /usr/etc/install
5060 # IRIX /sbin/install
5061 # AIX /bin/install
5062 # AmigaOS /C/install, which installs bootblocks on floppy discs
5063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5066 # OS/2's system install, which has a completely different semantic
5067 # ./install, which can be erroneously created by make from ./install.sh.
5068 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5069 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5070 if test -z "$INSTALL"; then
5071 if test "${ac_cv_path_install+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   # Account for people who put trailing slashes in PATH elements.
5080 case $as_dir/ in
5081   ./ | .// | /cC/* | \
5082   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5083   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5084   /usr/ucb/* ) ;;
5085   *)
5086     # OSF1 and SCO ODT 3.0 have their own names for install.
5087     # Don't use installbsd from OSF since it installs stuff as root
5088     # by default.
5089     for ac_prog in ginstall scoinst install; do
5090       for ac_exec_ext in '' $ac_executable_extensions; do
5091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5092           if test $ac_prog = install &&
5093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5094             # AIX install.  It has an incompatible calling convention.
5095             :
5096           elif test $ac_prog = install &&
5097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5098             # program-specific install script used by HP pwplus--don't use.
5099             :
5100           else
5101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5102             break 3
5103           fi
5104         fi
5105       done
5106     done
5107     ;;
5108 esac
5109 done
5110
5111
5112 fi
5113   if test "${ac_cv_path_install+set}" = set; then
5114     INSTALL=$ac_cv_path_install
5115   else
5116     # As a last resort, use the slow shell script.  We don't cache a
5117     # path for INSTALL within a source directory, because that will
5118     # break other packages using the cache if that directory is
5119     # removed, or if the path is relative.
5120     INSTALL=$ac_install_sh
5121   fi
5122 fi
5123 echo "$as_me:$LINENO: result: $INSTALL" >&5
5124 echo "${ECHO_T}$INSTALL" >&6
5125
5126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5127 # It thinks the first close brace ends the variable substitution.
5128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5129
5130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5131
5132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5133
5134
5135 # Extract the first word of "bzip2", so it can be a program name with args.
5136 set dummy bzip2; ac_word=$2
5137 echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139 if test "${ac_cv_path_BZIP2+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   case $BZIP2 in
5143   [\\/]* | ?:[\\/]*)
5144   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5145   ;;
5146   *)
5147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160
5161   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5162   ;;
5163 esac
5164 fi
5165 BZIP2=$ac_cv_path_BZIP2
5166
5167 if test -n "$BZIP2"; then
5168   echo "$as_me:$LINENO: result: $BZIP2" >&5
5169 echo "${ECHO_T}$BZIP2" >&6
5170 else
5171   echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173 fi
5174
5175 # Extract the first word of "dot", so it can be a program name with args.
5176 set dummy dot; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_path_DOT+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   case $DOT in
5183   [\\/]* | ?:[\\/]*)
5184   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5185   ;;
5186   *)
5187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192   for ac_exec_ext in '' $ac_executable_extensions; do
5193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199 done
5200
5201   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5202   ;;
5203 esac
5204 fi
5205 DOT=$ac_cv_path_DOT
5206
5207 if test -n "$DOT"; then
5208   echo "$as_me:$LINENO: result: $DOT" >&5
5209 echo "${ECHO_T}$DOT" >&6
5210 else
5211   echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 fi
5214
5215 # Extract the first word of "doxygen", so it can be a program name with args.
5216 set dummy doxygen; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   case $DOXYGEN in
5223   [\\/]* | ?:[\\/]*)
5224   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5225   ;;
5226   *)
5227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232   for ac_exec_ext in '' $ac_executable_extensions; do
5233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239 done
5240
5241   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5242   ;;
5243 esac
5244 fi
5245 DOXYGEN=$ac_cv_path_DOXYGEN
5246
5247 if test -n "$DOXYGEN"; then
5248   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5249 echo "${ECHO_T}$DOXYGEN" >&6
5250 else
5251   echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253 fi
5254
5255 # Extract the first word of "etags", so it can be a program name with args.
5256 set dummy etags; ac_word=$2
5257 echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259 if test "${ac_cv_path_ETAGS+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   case $ETAGS in
5263   [\\/]* | ?:[\\/]*)
5264   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5265   ;;
5266   *)
5267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270   IFS=$as_save_IFS
5271   test -z "$as_dir" && as_dir=.
5272   for ac_exec_ext in '' $ac_executable_extensions; do
5273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276     break 2
5277   fi
5278 done
5279 done
5280
5281   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5282   ;;
5283 esac
5284 fi
5285 ETAGS=$ac_cv_path_ETAGS
5286
5287 if test -n "$ETAGS"; then
5288   echo "$as_me:$LINENO: result: $ETAGS" >&5
5289 echo "${ECHO_T}$ETAGS" >&6
5290 else
5291   echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5293 fi
5294
5295 # Extract the first word of "groff", so it can be a program name with args.
5296 set dummy groff; ac_word=$2
5297 echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299 if test "${ac_cv_path_GROFF+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   case $GROFF in
5303   [\\/]* | ?:[\\/]*)
5304   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5305   ;;
5306   *)
5307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320
5321   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5322   ;;
5323 esac
5324 fi
5325 GROFF=$ac_cv_path_GROFF
5326
5327 if test -n "$GROFF"; then
5328   echo "$as_me:$LINENO: result: $GROFF" >&5
5329 echo "${ECHO_T}$GROFF" >&6
5330 else
5331   echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333 fi
5334
5335 # Extract the first word of "gzip", so it can be a program name with args.
5336 set dummy gzip; ac_word=$2
5337 echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339 if test "${ac_cv_path_GZIP+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   case $GZIP in
5343   [\\/]* | ?:[\\/]*)
5344   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5345   ;;
5346   *)
5347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350   IFS=$as_save_IFS
5351   test -z "$as_dir" && as_dir=.
5352   for ac_exec_ext in '' $ac_executable_extensions; do
5353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356     break 2
5357   fi
5358 done
5359 done
5360
5361   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5362   ;;
5363 esac
5364 fi
5365 GZIP=$ac_cv_path_GZIP
5366
5367 if test -n "$GZIP"; then
5368   echo "$as_me:$LINENO: result: $GZIP" >&5
5369 echo "${ECHO_T}$GZIP" >&6
5370 else
5371   echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5373 fi
5374
5375 # Extract the first word of "pod2html", so it can be a program name with args.
5376 set dummy pod2html; ac_word=$2
5377 echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379 if test "${ac_cv_path_POD2HTML+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   case $POD2HTML in
5383   [\\/]* | ?:[\\/]*)
5384   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5385   ;;
5386   *)
5387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392   for ac_exec_ext in '' $ac_executable_extensions; do
5393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399 done
5400
5401   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5402   ;;
5403 esac
5404 fi
5405 POD2HTML=$ac_cv_path_POD2HTML
5406
5407 if test -n "$POD2HTML"; then
5408   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5409 echo "${ECHO_T}$POD2HTML" >&6
5410 else
5411   echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5413 fi
5414
5415 # Extract the first word of "pod2man", so it can be a program name with args.
5416 set dummy pod2man; ac_word=$2
5417 echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419 if test "${ac_cv_path_POD2MAN+set}" = set; then
5420   echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422   case $POD2MAN in
5423   [\\/]* | ?:[\\/]*)
5424   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5425   ;;
5426   *)
5427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
5431   test -z "$as_dir" && as_dir=.
5432   for ac_exec_ext in '' $ac_executable_extensions; do
5433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436     break 2
5437   fi
5438 done
5439 done
5440
5441   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5442   ;;
5443 esac
5444 fi
5445 POD2MAN=$ac_cv_path_POD2MAN
5446
5447 if test -n "$POD2MAN"; then
5448   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5449 echo "${ECHO_T}$POD2MAN" >&6
5450 else
5451   echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6
5453 fi
5454
5455 # Extract the first word of "runtest", so it can be a program name with args.
5456 set dummy runtest; ac_word=$2
5457 echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459 if test "${ac_cv_path_RUNTEST+set}" = set; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   case $RUNTEST in
5463   [\\/]* | ?:[\\/]*)
5464   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5465   ;;
5466   *)
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472   for ac_exec_ext in '' $ac_executable_extensions; do
5473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476     break 2
5477   fi
5478 done
5479 done
5480
5481   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5482   ;;
5483 esac
5484 fi
5485 RUNTEST=$ac_cv_path_RUNTEST
5486
5487 if test -n "$RUNTEST"; then
5488   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5489 echo "${ECHO_T}$RUNTEST" >&6
5490 else
5491   echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5493 fi
5494
5495
5496 no_itcl=true
5497 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5498 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5499
5500 # Check whether --with-tclinclude or --without-tclinclude was given.
5501 if test "${with_tclinclude+set}" = set; then
5502   withval="$with_tclinclude"
5503   with_tclinclude=${withval}
5504 else
5505   with_tclinclude=''
5506 fi;
5507 if test "${ac_cv_path_tclsh+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510
5511 if test x"${with_tclinclude}" != x ; then
5512   if test -f ${with_tclinclude}/tclsh ; then
5513     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5514   elif test -f ${with_tclinclude}/src/tclsh ; then
5515     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5516   else
5517     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5518 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5519    { (exit 1); exit 1; }; }
5520   fi
5521 fi
5522
5523 if test x"${ac_cv_path_tclsh}" = x ; then
5524   echo "$as_me:$LINENO: result: none" >&5
5525 echo "${ECHO_T}none" >&6
5526   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
5527 do
5528   # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5532 if test "${ac_cv_path_TCLSH+set}" = set; then
5533   echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535   case $TCLSH in
5536   [\\/]* | ?:[\\/]*)
5537   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5538   ;;
5539   *)
5540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543   IFS=$as_save_IFS
5544   test -z "$as_dir" && as_dir=.
5545   for ac_exec_ext in '' $ac_executable_extensions; do
5546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549     break 2
5550   fi
5551 done
5552 done
5553
5554   ;;
5555 esac
5556 fi
5557 TCLSH=$ac_cv_path_TCLSH
5558
5559 if test -n "$TCLSH"; then
5560   echo "$as_me:$LINENO: result: $TCLSH" >&5
5561 echo "${ECHO_T}$TCLSH" >&6
5562 else
5563   echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6
5565 fi
5566
5567   test -n "$TCLSH" && break
5568 done
5569
5570   if test x"${TCLSH}" = x ; then
5571     ac_cv_path_tclsh='';
5572   else
5573     ac_cv_path_tclsh="${TCLSH}";
5574   fi
5575 else
5576   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5577 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5578   TCLSH="${ac_cv_path_tclsh}"
5579
5580 fi
5581
5582 fi
5583
5584 # Extract the first word of "zip", so it can be a program name with args.
5585 set dummy zip; ac_word=$2
5586 echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588 if test "${ac_cv_path_ZIP+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   case $ZIP in
5592   [\\/]* | ?:[\\/]*)
5593   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5594   ;;
5595   *)
5596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601   for ac_exec_ext in '' $ac_executable_extensions; do
5602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608 done
5609
5610   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5611   ;;
5612 esac
5613 fi
5614 ZIP=$ac_cv_path_ZIP
5615
5616 if test -n "$ZIP"; then
5617   echo "$as_me:$LINENO: result: $ZIP" >&5
5618 echo "${ECHO_T}$ZIP" >&6
5619 else
5620   echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5622 fi
5623
5624
5625 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5626 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5627 if test "${llvm_cv_link_use_r+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630    ac_ext=c
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635
5636   oldcflags="$CFLAGS"
5637   CFLAGS="$CFLAGS -Wl,-R."
5638   cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644
5645 int
5646 main ()
5647 {
5648 int main() { return 0; }
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -z "$ac_c_werror_flag"
5663                          || test ! -s conftest.err'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; } &&
5669          { ac_try='test -s conftest$ac_exeext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   llvm_cv_link_use_r=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 llvm_cv_link_use_r=no
5681 fi
5682 rm -f conftest.err conftest.$ac_objext \
5683       conftest$ac_exeext conftest.$ac_ext
5684   CFLAGS="$oldcflags"
5685   ac_ext=c
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690
5691
5692 fi
5693 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5694 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5695 if test "$llvm_cv_link_use_r" = yes ; then
5696
5697 cat >>confdefs.h <<\_ACEOF
5698 #define HAVE_LINK_R 1
5699 _ACEOF
5700
5701   fi
5702
5703
5704
5705
5706 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5707 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5708 if test "${ac_cv_c_const+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717
5718 int
5719 main ()
5720 {
5721 /* FIXME: Include the comments suggested by Paul. */
5722 #ifndef __cplusplus
5723   /* Ultrix mips cc rejects this.  */
5724   typedef int charset[2];
5725   const charset x;
5726   /* SunOS 4.1.1 cc rejects this.  */
5727   char const *const *ccp;
5728   char **p;
5729   /* NEC SVR4.0.2 mips cc rejects this.  */
5730   struct point {int x, y;};
5731   static struct point const zero = {0,0};
5732   /* AIX XL C 1.02.0.0 rejects this.
5733      It does not let you subtract one const X* pointer from another in
5734      an arm of an if-expression whose if-part is not a constant
5735      expression */
5736   const char *g = "string";
5737   ccp = &g + (g ? g-g : 0);
5738   /* HPUX 7.0 cc rejects these. */
5739   ++ccp;
5740   p = (char**) ccp;
5741   ccp = (char const *const *) p;
5742   { /* SCO 3.2v4 cc rejects this.  */
5743     char *t;
5744     char const *s = 0 ? (char *) 0 : (char const *) 0;
5745
5746     *t++ = 0;
5747   }
5748   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5749     int x[] = {25, 17};
5750     const int *foo = &x[0];
5751     ++foo;
5752   }
5753   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5754     typedef const int *iptr;
5755     iptr p = 0;
5756     ++p;
5757   }
5758   { /* AIX XL C 1.02.0.0 rejects this saying
5759        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5760     struct s { int j; const int *ap[3]; };
5761     struct s *b; b->j = 5;
5762   }
5763   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5764     const int foo = 10;
5765   }
5766 #endif
5767
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774   (eval $ac_compile) 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } &&
5781          { ac_try='test -z "$ac_c_werror_flag"
5782                          || test ! -s conftest.err'
5783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784   (eval $ac_try) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; } &&
5788          { ac_try='test -s conftest.$ac_objext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   ac_cv_c_const=yes
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 ac_cv_c_const=no
5800 fi
5801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5802 fi
5803 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5804 echo "${ECHO_T}$ac_cv_c_const" >&6
5805 if test $ac_cv_c_const = no; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define const
5809 _ACEOF
5810
5811 fi
5812
5813
5814 echo "$as_me:$LINENO: checking for egrep" >&5
5815 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5816 if test "${ac_cv_prog_egrep+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5820     then ac_cv_prog_egrep='grep -E'
5821     else ac_cv_prog_egrep='egrep'
5822     fi
5823 fi
5824 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5825 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5826  EGREP=$ac_cv_prog_egrep
5827
5828
5829 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5831 if test "${ac_cv_header_stdc+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840 #include <stdlib.h>
5841 #include <stdarg.h>
5842 #include <string.h>
5843 #include <float.h>
5844
5845 int
5846 main ()
5847 {
5848
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855   (eval $ac_compile) 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -z "$ac_c_werror_flag"
5863                          || test ! -s conftest.err'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; } &&
5869          { ac_try='test -s conftest.$ac_objext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   ac_cv_header_stdc=yes
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 ac_cv_header_stdc=no
5881 fi
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883
5884 if test $ac_cv_header_stdc = yes; then
5885   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886   cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892 #include <string.h>
5893
5894 _ACEOF
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896   $EGREP "memchr" >/dev/null 2>&1; then
5897   :
5898 else
5899   ac_cv_header_stdc=no
5900 fi
5901 rm -f conftest*
5902
5903 fi
5904
5905 if test $ac_cv_header_stdc = yes; then
5906   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5907   cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h.  */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h.  */
5913 #include <stdlib.h>
5914
5915 _ACEOF
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917   $EGREP "free" >/dev/null 2>&1; then
5918   :
5919 else
5920   ac_cv_header_stdc=no
5921 fi
5922 rm -f conftest*
5923
5924 fi
5925
5926 if test $ac_cv_header_stdc = yes; then
5927   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5928   if test "$cross_compiling" = yes; then
5929   :
5930 else
5931   cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937 #include <ctype.h>
5938 #if ((' ' & 0x0FF) == 0x020)
5939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5941 #else
5942 # define ISLOWER(c) \
5943                    (('a' <= (c) && (c) <= 'i') \
5944                      || ('j' <= (c) && (c) <= 'r') \
5945                      || ('s' <= (c) && (c) <= 'z'))
5946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5947 #endif
5948
5949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5950 int
5951 main ()
5952 {
5953   int i;
5954   for (i = 0; i < 256; i++)
5955     if (XOR (islower (i), ISLOWER (i))
5956         || toupper (i) != TOUPPER (i))
5957       exit(2);
5958   exit (0);
5959 }
5960 _ACEOF
5961 rm -f conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963   (eval $ac_link) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968   (eval $ac_try) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; }; then
5972   :
5973 else
5974   echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 ( exit $ac_status )
5979 ac_cv_header_stdc=no
5980 fi
5981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5982 fi
5983 fi
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5987 if test $ac_cv_header_stdc = yes; then
5988
5989 cat >>confdefs.h <<\_ACEOF
5990 #define STDC_HEADERS 1
5991 _ACEOF
5992
5993 fi
5994
5995
5996
5997
5998
5999
6000 ac_header_dirent=no
6001 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6002   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6003 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6004 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008   cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 #include <sys/types.h>
6015 #include <$ac_hdr>
6016
6017 int
6018 main ()
6019 {
6020 if ((DIR *) 0)
6021 return 0;
6022   ;
6023   return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028   (eval $ac_compile) 2>conftest.er1
6029   ac_status=$?
6030   grep -v '^ *+' conftest.er1 >conftest.err
6031   rm -f conftest.er1
6032   cat conftest.err >&5
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); } &&
6035          { ac_try='test -z "$ac_c_werror_flag"
6036                          || test ! -s conftest.err'
6037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038   (eval $ac_try) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; } &&
6042          { ac_try='test -s conftest.$ac_objext'
6043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044   (eval $ac_try) 2>&5
6045   ac_status=$?
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); }; }; then
6048   eval "$as_ac_Header=yes"
6049 else
6050   echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 eval "$as_ac_Header=no"
6054 fi
6055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056 fi
6057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6060   cat >>confdefs.h <<_ACEOF
6061 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6062 _ACEOF
6063
6064 ac_header_dirent=$ac_hdr; break
6065 fi
6066
6067 done
6068 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6069 if test $ac_header_dirent = dirent.h; then
6070   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6071 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6072 if test "${ac_cv_search_opendir+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   ac_func_search_save_LIBS=$LIBS
6076 ac_cv_search_opendir=no
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083
6084 /* Override any gcc2 internal prototype to avoid an error.  */
6085 #ifdef __cplusplus
6086 extern "C"
6087 #endif
6088 /* We use char because int might match the return type of a gcc2
6089    builtin and then its argument prototype would still apply.  */
6090 char opendir ();
6091 int
6092 main ()
6093 {
6094 opendir ();
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101   (eval $ac_link) 2>conftest.er1
6102   ac_status=$?
6103   grep -v '^ *+' conftest.er1 >conftest.err
6104   rm -f conftest.er1
6105   cat conftest.err >&5
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); } &&
6108          { ac_try='test -z "$ac_c_werror_flag"
6109                          || test ! -s conftest.err'
6110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111   (eval $ac_try) 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; } &&
6115          { ac_try='test -s conftest$ac_exeext'
6116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117   (eval $ac_try) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; }; then
6121   ac_cv_search_opendir="none required"
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 fi
6127 rm -f conftest.err conftest.$ac_objext \
6128       conftest$ac_exeext conftest.$ac_ext
6129 if test "$ac_cv_search_opendir" = no; then
6130   for ac_lib in dir; do
6131     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6132     cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138
6139 /* Override any gcc2 internal prototype to avoid an error.  */
6140 #ifdef __cplusplus
6141 extern "C"
6142 #endif
6143 /* We use char because int might match the return type of a gcc2
6144    builtin and then its argument prototype would still apply.  */
6145 char opendir ();
6146 int
6147 main ()
6148 {
6149 opendir ();
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156   (eval $ac_link) 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } &&
6163          { ac_try='test -z "$ac_c_werror_flag"
6164                          || test ! -s conftest.err'
6165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166   (eval $ac_try) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; } &&
6170          { ac_try='test -s conftest$ac_exeext'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_search_opendir="-l$ac_lib"
6177 break
6178 else
6179   echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182 fi
6183 rm -f conftest.err conftest.$ac_objext \
6184       conftest$ac_exeext conftest.$ac_ext
6185   done
6186 fi
6187 LIBS=$ac_func_search_save_LIBS
6188 fi
6189 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6190 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6191 if test "$ac_cv_search_opendir" != no; then
6192   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6193
6194 fi
6195
6196 else
6197   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6198 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6199 if test "${ac_cv_search_opendir+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   ac_func_search_save_LIBS=$LIBS
6203 ac_cv_search_opendir=no
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210
6211 /* Override any gcc2 internal prototype to avoid an error.  */
6212 #ifdef __cplusplus
6213 extern "C"
6214 #endif
6215 /* We use char because int might match the return type of a gcc2
6216    builtin and then its argument prototype would still apply.  */
6217 char opendir ();
6218 int
6219 main ()
6220 {
6221 opendir ();
6222   ;
6223   return 0;
6224 }
6225 _ACEOF
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228   (eval $ac_link) 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -z "$ac_c_werror_flag"
6236                          || test ! -s conftest.err'
6237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238   (eval $ac_try) 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; } &&
6242          { ac_try='test -s conftest$ac_exeext'
6243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244   (eval $ac_try) 2>&5
6245   ac_status=$?
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); }; }; then
6248   ac_cv_search_opendir="none required"
6249 else
6250   echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 fi
6254 rm -f conftest.err conftest.$ac_objext \
6255       conftest$ac_exeext conftest.$ac_ext
6256 if test "$ac_cv_search_opendir" = no; then
6257   for ac_lib in x; do
6258     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6259     cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265
6266 /* Override any gcc2 internal prototype to avoid an error.  */
6267 #ifdef __cplusplus
6268 extern "C"
6269 #endif
6270 /* We use char because int might match the return type of a gcc2
6271    builtin and then its argument prototype would still apply.  */
6272 char opendir ();
6273 int
6274 main ()
6275 {
6276 opendir ();
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283   (eval $ac_link) 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -z "$ac_c_werror_flag"
6291                          || test ! -s conftest.err'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; } &&
6297          { ac_try='test -s conftest$ac_exeext'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; }; then
6303   ac_cv_search_opendir="-l$ac_lib"
6304 break
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 fi
6310 rm -f conftest.err conftest.$ac_objext \
6311       conftest$ac_exeext conftest.$ac_ext
6312   done
6313 fi
6314 LIBS=$ac_func_search_save_LIBS
6315 fi
6316 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6317 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6318 if test "$ac_cv_search_opendir" != no; then
6319   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6320
6321 fi
6322
6323 fi
6324
6325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6336                   inttypes.h stdint.h unistd.h
6337 do
6338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6339 echo "$as_me:$LINENO: checking for $ac_header" >&5
6340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h.  */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h.  */
6350 $ac_includes_default
6351
6352 #include <$ac_header>
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356   (eval $ac_compile) 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -z "$ac_c_werror_flag"
6364                          || test ! -s conftest.err'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; } &&
6370          { ac_try='test -s conftest.$ac_objext'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   eval "$as_ac_Header=yes"
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 eval "$as_ac_Header=no"
6382 fi
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384 fi
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388   cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 _ACEOF
6391
6392 fi
6393
6394 done
6395
6396
6397
6398 for ac_header in dlfcn.h
6399 do
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402   echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 fi
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409 else
6410   # Is the header compilable?
6411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h.  */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h.  */
6419 $ac_includes_default
6420 #include <$ac_header>
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424   (eval $ac_compile) 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -z "$ac_c_werror_flag"
6432                          || test ! -s conftest.err'
6433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434   (eval $ac_try) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; } &&
6438          { ac_try='test -s conftest.$ac_objext'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; }; then
6444   ac_header_compiler=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_header_compiler=no
6450 fi
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6454
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } >/dev/null; then
6474   if test -s conftest.err; then
6475     ac_cpp_err=$ac_c_preproc_warn_flag
6476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477   else
6478     ac_cpp_err=
6479   fi
6480 else
6481   ac_cpp_err=yes
6482 fi
6483 if test -z "$ac_cpp_err"; then
6484   ac_header_preproc=yes
6485 else
6486   echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489   ac_header_preproc=no
6490 fi
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6494
6495 # So?  What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497   yes:no: )
6498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502     ac_header_preproc=yes
6503     ;;
6504   no:yes:* )
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6517     (
6518       cat <<\_ASBOX
6519 ## ----------------------------------- ##
6520 ## Report this to llvmbugs@cs.uiuc.edu ##
6521 ## ----------------------------------- ##
6522 _ASBOX
6523     ) |
6524       sed "s/^/$as_me: WARNING:     /" >&2
6525     ;;
6526 esac
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   eval "$as_ac_Header=\$ac_header_preproc"
6533 fi
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536
6537 fi
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539   cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542
6543 fi
6544
6545 done
6546
6547 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6548 if test "${enable_ltdl_install+set}" = set; then
6549   enableval="$enable_ltdl_install"
6550
6551 fi;
6552
6553
6554
6555 if test x"${enable_ltdl_install-no}" != xno; then
6556   INSTALL_LTDL_TRUE=
6557   INSTALL_LTDL_FALSE='#'
6558 else
6559   INSTALL_LTDL_TRUE='#'
6560   INSTALL_LTDL_FALSE=
6561 fi
6562
6563
6564
6565 if test x"${enable_ltdl_convenience-no}" != xno; then
6566   CONVENIENCE_LTDL_TRUE=
6567   CONVENIENCE_LTDL_FALSE='#'
6568 else
6569   CONVENIENCE_LTDL_TRUE='#'
6570   CONVENIENCE_LTDL_FALSE=
6571 fi
6572
6573
6574 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6576 library_names_spec=
6577 libname_spec='lib$name'
6578 soname_spec=
6579 shrext_cmds=".so"
6580 postinstall_cmds=
6581 postuninstall_cmds=
6582 finish_cmds=
6583 finish_eval=
6584 shlibpath_var=
6585 shlibpath_overrides_runpath=unknown
6586 version_type=none
6587 dynamic_linker="$host_os ld.so"
6588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6589 if test "$GCC" = yes; then
6590   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6591   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6592     # if the path contains ";" then we assume it to be the separator
6593     # otherwise default to the standard path separator (i.e. ":") - it is
6594     # assumed that no part of a normal pathname contains ";" but that should
6595     # okay in the real world where ";" in dirpaths is itself problematic.
6596     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6597   else
6598     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6599   fi
6600 else
6601   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6602 fi
6603 need_lib_prefix=unknown
6604 hardcode_into_libs=no
6605
6606 # when you set need_version to no, make sure it does not cause -set_version
6607 # flags to be left without arguments
6608 need_version=unknown
6609
6610 case $host_os in
6611 aix3*)
6612   version_type=linux
6613   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6614   shlibpath_var=LIBPATH
6615
6616   # AIX 3 has no versioning support, so we append a major version to the name.
6617   soname_spec='${libname}${release}${shared_ext}$major'
6618   ;;
6619
6620 aix4* | aix5*)
6621   version_type=linux
6622   need_lib_prefix=no
6623   need_version=no
6624   hardcode_into_libs=yes
6625   if test "$host_cpu" = ia64; then
6626     # AIX 5 supports IA64
6627     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6628     shlibpath_var=LD_LIBRARY_PATH
6629   else
6630     # With GCC up to 2.95.x, collect2 would create an import file
6631     # for dependence libraries.  The import file would start with
6632     # the line `#! .'.  This would cause the generated library to
6633     # depend on `.', always an invalid library.  This was fixed in
6634     # development snapshots of GCC prior to 3.0.
6635     case $host_os in
6636       aix4 | aix4.[01] | aix4.[01].*)
6637       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6638            echo ' yes '
6639            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6640         :
6641       else
6642         can_build_shared=no
6643       fi
6644       ;;
6645     esac
6646     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6647     # soname into executable. Probably we can add versioning support to
6648     # collect2, so additional links can be useful in future.
6649     if test "$aix_use_runtimelinking" = yes; then
6650       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6651       # instead of lib<name>.a to let people know that these are not
6652       # typical AIX shared libraries.
6653       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6654     else
6655       # We preserve .a as extension for shared libraries through AIX4.2
6656       # and later when we are not doing run time linking.
6657       library_names_spec='${libname}${release}.a $libname.a'
6658       soname_spec='${libname}${release}${shared_ext}$major'
6659     fi
6660     shlibpath_var=LIBPATH
6661   fi
6662   ;;
6663
6664 amigaos*)
6665   library_names_spec='$libname.ixlibrary $libname.a'
6666   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6667   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'
6668   ;;
6669
6670 beos*)
6671   library_names_spec='${libname}${shared_ext}'
6672   dynamic_linker="$host_os ld.so"
6673   shlibpath_var=LIBRARY_PATH
6674   ;;
6675
6676 bsdi[45]*)
6677   version_type=linux
6678   need_version=no
6679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6680   soname_spec='${libname}${release}${shared_ext}$major'
6681   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6682   shlibpath_var=LD_LIBRARY_PATH
6683   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6684   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6685   # the default ld.so.conf also contains /usr/contrib/lib and
6686   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6687   # libtool to hard-code these into programs
6688   ;;
6689
6690 cygwin* | mingw* | pw32*)
6691   version_type=windows
6692   shrext_cmds=".dll"
6693   need_version=no
6694   need_lib_prefix=no
6695
6696   case $GCC,$host_os in
6697   yes,cygwin* | yes,mingw* | yes,pw32*)
6698     library_names_spec='$libname.dll.a'
6699     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6700     postinstall_cmds='base_file=`basename \${file}`~
6701       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6702       dldir=$destdir/`dirname \$dlpath`~
6703       test -d \$dldir || mkdir -p \$dldir~
6704       $install_prog $dir/$dlname \$dldir/$dlname'
6705     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6706       dlpath=$dir/\$dldll~
6707        $rm \$dlpath'
6708     shlibpath_overrides_runpath=yes
6709
6710     case $host_os in
6711     cygwin*)
6712       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6713       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6714       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6715       ;;
6716     mingw*)
6717       # MinGW DLLs use traditional 'lib' prefix
6718       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6719       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6720       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6721         # It is most probably a Windows format PATH printed by
6722         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6723         # path with ; separators, and with drive letters. We can handle the
6724         # drive letters (cygwin fileutils understands them), so leave them,
6725         # especially as we might pass files found there to a mingw objdump,
6726         # which wouldn't understand a cygwinified path. Ahh.
6727         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6728       else
6729         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6730       fi
6731       ;;
6732     pw32*)
6733       # pw32 DLLs use 'pw' prefix rather than 'lib'
6734       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6735       ;;
6736     esac
6737     ;;
6738
6739   *)
6740     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6741     ;;
6742   esac
6743   dynamic_linker='Win32 ld.exe'
6744   # FIXME: first we should search . and the directory the executable is in
6745   shlibpath_var=PATH
6746   ;;
6747
6748 darwin* | rhapsody*)
6749   dynamic_linker="$host_os dyld"
6750   version_type=darwin
6751   need_lib_prefix=no
6752   need_version=no
6753   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6754   soname_spec='${libname}${release}${major}$shared_ext'
6755   shlibpath_overrides_runpath=yes
6756   shlibpath_var=DYLD_LIBRARY_PATH
6757   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6758   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6759   if test "$GCC" = yes; then
6760     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"`
6761   else
6762     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6763   fi
6764   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6765   ;;
6766
6767 dgux*)
6768   version_type=linux
6769   need_lib_prefix=no
6770   need_version=no
6771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6772   soname_spec='${libname}${release}${shared_ext}$major'
6773   shlibpath_var=LD_LIBRARY_PATH
6774   ;;
6775
6776 freebsd1*)
6777   dynamic_linker=no
6778   ;;
6779
6780 kfreebsd*-gnu)
6781   version_type=linux
6782   need_lib_prefix=no
6783   need_version=no
6784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6785   soname_spec='${libname}${release}${shared_ext}$major'
6786   shlibpath_var=LD_LIBRARY_PATH
6787   shlibpath_overrides_runpath=no
6788   hardcode_into_libs=yes
6789   dynamic_linker='GNU ld.so'
6790   ;;
6791
6792 freebsd*)
6793   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6794   version_type=freebsd-$objformat
6795   case $version_type in
6796     freebsd-elf*)
6797       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6798       need_version=no
6799       need_lib_prefix=no
6800       ;;
6801     freebsd-*)
6802       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6803       need_version=yes
6804       ;;
6805   esac
6806   shlibpath_var=LD_LIBRARY_PATH
6807   case $host_os in
6808   freebsd2*)
6809     shlibpath_overrides_runpath=yes
6810     ;;
6811   freebsd3.01* | freebsdelf3.01*)
6812     shlibpath_overrides_runpath=yes
6813     hardcode_into_libs=yes
6814     ;;
6815   *) # from 3.2 on
6816     shlibpath_overrides_runpath=no
6817     hardcode_into_libs=yes
6818     ;;
6819   esac
6820   ;;
6821
6822 gnu*)
6823   version_type=linux
6824   need_lib_prefix=no
6825   need_version=no
6826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6827   soname_spec='${libname}${release}${shared_ext}$major'
6828   shlibpath_var=LD_LIBRARY_PATH
6829   hardcode_into_libs=yes
6830   ;;
6831
6832 hpux9* | hpux10* | hpux11*)
6833   # Give a soname corresponding to the major version so that dld.sl refuses to
6834   # link against other versions.
6835   version_type=sunos
6836   need_lib_prefix=no
6837   need_version=no
6838   case "$host_cpu" in
6839   ia64*)
6840     shrext_cmds='.so'
6841     hardcode_into_libs=yes
6842     dynamic_linker="$host_os dld.so"
6843     shlibpath_var=LD_LIBRARY_PATH
6844     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6846     soname_spec='${libname}${release}${shared_ext}$major'
6847     if test "X$HPUX_IA64_MODE" = X32; then
6848       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6849     else
6850       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6851     fi
6852     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6853     ;;
6854    hppa*64*)
6855      shrext_cmds='.sl'
6856      hardcode_into_libs=yes
6857      dynamic_linker="$host_os dld.sl"
6858      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6859      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6860      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6861      soname_spec='${libname}${release}${shared_ext}$major'
6862      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6863      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6864      ;;
6865    *)
6866     shrext_cmds='.sl'
6867     dynamic_linker="$host_os dld.sl"
6868     shlibpath_var=SHLIB_PATH
6869     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6871     soname_spec='${libname}${release}${shared_ext}$major'
6872     ;;
6873   esac
6874   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6875   postinstall_cmds='chmod 555 $lib'
6876   ;;
6877
6878 irix5* | irix6* | nonstopux*)
6879   case $host_os in
6880     nonstopux*) version_type=nonstopux ;;
6881     *)
6882         if test "$lt_cv_prog_gnu_ld" = yes; then
6883                 version_type=linux
6884         else
6885                 version_type=irix
6886         fi ;;
6887   esac
6888   need_lib_prefix=no
6889   need_version=no
6890   soname_spec='${libname}${release}${shared_ext}$major'
6891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6892   case $host_os in
6893   irix5* | nonstopux*)
6894     libsuff= shlibsuff=
6895     ;;
6896   *)
6897     case $LD in # libtool.m4 will add one of these switches to LD
6898     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6899       libsuff= shlibsuff= libmagic=32-bit;;
6900     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6901       libsuff=32 shlibsuff=N32 libmagic=N32;;
6902     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6903       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6904     *) libsuff= shlibsuff= libmagic=never-match;;
6905     esac
6906     ;;
6907   esac
6908   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6909   shlibpath_overrides_runpath=no
6910   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6911   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6912   hardcode_into_libs=yes
6913   ;;
6914
6915 # No shared lib support for Linux oldld, aout, or coff.
6916 linux*oldld* | linux*aout* | linux*coff*)
6917   dynamic_linker=no
6918   ;;
6919
6920 # This must be Linux ELF.
6921 linux*)
6922   version_type=linux
6923   need_lib_prefix=no
6924   need_version=no
6925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926   soname_spec='${libname}${release}${shared_ext}$major'
6927   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6928   shlibpath_var=LD_LIBRARY_PATH
6929   shlibpath_overrides_runpath=no
6930   # This implies no fast_install, which is unacceptable.
6931   # Some rework will be needed to allow for fast_install
6932   # before this can be enabled.
6933   hardcode_into_libs=yes
6934
6935   # Append ld.so.conf contents to the search path
6936   if test -f /etc/ld.so.conf; then
6937     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6938     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6939   fi
6940
6941   # We used to test for /lib/ld.so.1 and disable shared libraries on
6942   # powerpc, because MkLinux only supported shared libraries with the
6943   # GNU dynamic linker.  Since this was broken with cross compilers,
6944   # most powerpc-linux boxes support dynamic linking these days and
6945   # people can always --disable-shared, the test was removed, and we
6946   # assume the GNU/Linux dynamic linker is in use.
6947   dynamic_linker='GNU/Linux ld.so'
6948   ;;
6949
6950 knetbsd*-gnu)
6951   version_type=linux
6952   need_lib_prefix=no
6953   need_version=no
6954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6955   soname_spec='${libname}${release}${shared_ext}$major'
6956   shlibpath_var=LD_LIBRARY_PATH
6957   shlibpath_overrides_runpath=no
6958   hardcode_into_libs=yes
6959   dynamic_linker='GNU ld.so'
6960   ;;
6961
6962 netbsd*)
6963   version_type=sunos
6964   need_lib_prefix=no
6965   need_version=no
6966   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6968     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6969     dynamic_linker='NetBSD (a.out) ld.so'
6970   else
6971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6972     soname_spec='${libname}${release}${shared_ext}$major'
6973     dynamic_linker='NetBSD ld.elf_so'
6974   fi
6975   shlibpath_var=LD_LIBRARY_PATH
6976   shlibpath_overrides_runpath=yes
6977   hardcode_into_libs=yes
6978   ;;
6979
6980 newsos6)
6981   version_type=linux
6982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983   shlibpath_var=LD_LIBRARY_PATH
6984   shlibpath_overrides_runpath=yes
6985   ;;
6986
6987 nto-qnx*)
6988   version_type=linux
6989   need_lib_prefix=no
6990   need_version=no
6991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6992   soname_spec='${libname}${release}${shared_ext}$major'
6993   shlibpath_var=LD_LIBRARY_PATH
6994   shlibpath_overrides_runpath=yes
6995   ;;
6996
6997 openbsd*)
6998   version_type=sunos
6999   need_lib_prefix=no
7000   need_version=no
7001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7002   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7003   shlibpath_var=LD_LIBRARY_PATH
7004   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7005     case $host_os in
7006       openbsd2.[89] | openbsd2.[89].*)
7007         shlibpath_overrides_runpath=no
7008         ;;
7009       *)
7010         shlibpath_overrides_runpath=yes
7011         ;;
7012       esac
7013   else
7014     shlibpath_overrides_runpath=yes
7015   fi
7016   ;;
7017
7018 os2*)
7019   libname_spec='$name'
7020   shrext_cmds=".dll"
7021   need_lib_prefix=no
7022   library_names_spec='$libname${shared_ext} $libname.a'
7023   dynamic_linker='OS/2 ld.exe'
7024   shlibpath_var=LIBPATH
7025   ;;
7026
7027 osf3* | osf4* | osf5*)
7028   version_type=osf
7029   need_lib_prefix=no
7030   need_version=no
7031   soname_spec='${libname}${release}${shared_ext}$major'
7032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033   shlibpath_var=LD_LIBRARY_PATH
7034   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7035   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7036   ;;
7037
7038 sco3.2v5*)
7039   version_type=osf
7040   soname_spec='${libname}${release}${shared_ext}$major'
7041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042   shlibpath_var=LD_LIBRARY_PATH
7043   ;;
7044
7045 solaris*)
7046   version_type=linux
7047   need_lib_prefix=no
7048   need_version=no
7049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7050   soname_spec='${libname}${release}${shared_ext}$major'
7051   shlibpath_var=LD_LIBRARY_PATH
7052   shlibpath_overrides_runpath=yes
7053   hardcode_into_libs=yes
7054   # ldd complains unless libraries are executable
7055   postinstall_cmds='chmod +x $lib'
7056   ;;
7057
7058 sunos4*)
7059   version_type=sunos
7060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7061   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7062   shlibpath_var=LD_LIBRARY_PATH
7063   shlibpath_overrides_runpath=yes
7064   if test "$with_gnu_ld" = yes; then
7065     need_lib_prefix=no
7066   fi
7067   need_version=yes
7068   ;;
7069
7070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7071   version_type=linux
7072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7073   soname_spec='${libname}${release}${shared_ext}$major'
7074   shlibpath_var=LD_LIBRARY_PATH
7075   case $host_vendor in
7076     sni)
7077       shlibpath_overrides_runpath=no
7078       need_lib_prefix=no
7079       export_dynamic_flag_spec='${wl}-Blargedynsym'
7080       runpath_var=LD_RUN_PATH
7081       ;;
7082     siemens)
7083       need_lib_prefix=no
7084       ;;
7085     motorola)
7086       need_lib_prefix=no
7087       need_version=no
7088       shlibpath_overrides_runpath=no
7089       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7090       ;;
7091   esac
7092   ;;
7093
7094 sysv4*MP*)
7095   if test -d /usr/nec ;then
7096     version_type=linux
7097     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7098     soname_spec='$libname${shared_ext}.$major'
7099     shlibpath_var=LD_LIBRARY_PATH
7100   fi
7101   ;;
7102
7103 uts4*)
7104   version_type=linux
7105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7106   soname_spec='${libname}${release}${shared_ext}$major'
7107   shlibpath_var=LD_LIBRARY_PATH
7108   ;;
7109
7110 *)
7111   dynamic_linker=no
7112   ;;
7113 esac
7114 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7115 echo "${ECHO_T}$dynamic_linker" >&6
7116 test "$dynamic_linker" = no && can_build_shared=no
7117
7118
7119 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7120 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7121 if test "${libltdl_cv_shlibext+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124
7125 module=yes
7126 eval libltdl_cv_shlibext=$shrext_cmds
7127
7128 fi
7129 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7130 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7131 if test -n "$libltdl_cv_shlibext"; then
7132
7133 cat >>confdefs.h <<_ACEOF
7134 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7135 _ACEOF
7136
7137 fi
7138
7139
7140 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7141 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7142 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   libltdl_cv_shlibpath_var="$shlibpath_var"
7146 fi
7147 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7148 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7149 if test -n "$libltdl_cv_shlibpath_var"; then
7150
7151 cat >>confdefs.h <<_ACEOF
7152 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7153 _ACEOF
7154
7155 fi
7156
7157
7158 echo "$as_me:$LINENO: checking for the default library search path" >&5
7159 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7160 if test "${libltdl_cv_sys_search_path+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7164 fi
7165 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7166 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7167 if test -n "$libltdl_cv_sys_search_path"; then
7168   sys_search_path=
7169   for dir in $libltdl_cv_sys_search_path; do
7170     if test -z "$sys_search_path"; then
7171       sys_search_path="$dir"
7172     else
7173       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7174     fi
7175   done
7176
7177 cat >>confdefs.h <<_ACEOF
7178 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7179 _ACEOF
7180
7181 fi
7182
7183 echo "$as_me:$LINENO: checking for objdir" >&5
7184 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7185 if test "${libltdl_cv_objdir+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   libltdl_cv_objdir="$objdir"
7189   if test -n "$objdir"; then
7190     :
7191   else
7192     rm -f .libs 2>/dev/null
7193     mkdir .libs 2>/dev/null
7194     if test -d .libs; then
7195       libltdl_cv_objdir=.libs
7196     else
7197       # MS-DOS does not allow filenames that begin with a dot.
7198       libltdl_cv_objdir=_libs
7199     fi
7200   rmdir .libs 2>/dev/null
7201   fi
7202
7203 fi
7204 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7205 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7206
7207 cat >>confdefs.h <<_ACEOF
7208 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7209 _ACEOF
7210
7211
7212 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7213 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7214 if test "${lt_cv_path_NM+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217   if test -n "$NM"; then
7218   # Let the user override the test.
7219   lt_cv_path_NM="$NM"
7220 else
7221   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7223     IFS="$lt_save_ifs"
7224     test -z "$ac_dir" && ac_dir=.
7225     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7226     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7227       # Check to see if the nm accepts a BSD-compat flag.
7228       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7229       #   nm: unknown option "B" ignored
7230       # Tru64's nm complains that /dev/null is an invalid object file
7231       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7232       */dev/null* | *'Invalid file or object type'*)
7233         lt_cv_path_NM="$tmp_nm -B"
7234         break
7235         ;;
7236       *)
7237         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7238         */dev/null*)
7239           lt_cv_path_NM="$tmp_nm -p"
7240           break
7241           ;;
7242         *)
7243           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7244           continue # so that we can try to find one that supports BSD flags
7245           ;;
7246         esac
7247       esac
7248     fi
7249   done
7250   IFS="$lt_save_ifs"
7251   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7252 fi
7253 fi
7254 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7255 echo "${ECHO_T}$lt_cv_path_NM" >&6
7256 NM="$lt_cv_path_NM"
7257
7258
7259
7260
7261
7262 # Check for command to grab the raw symbol name followed by C symbol from nm.
7263 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7264 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7265 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268
7269 # These are sane defaults that work on at least a few old systems.
7270 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7271
7272 # Character class describing NM global symbol codes.
7273 symcode='[BCDEGRST]'
7274
7275 # Regexp to match symbols that can be accessed directly from C.
7276 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7277
7278 # Transform the above into a raw symbol and a C symbol.
7279 symxfrm='\1 \2\3 \3'
7280
7281 # Transform an extracted symbol line into a proper C declaration
7282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7283
7284 # Transform an extracted symbol line into symbol name and symbol address
7285 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'"
7286
7287 # Define system-specific variables.
7288 case $host_os in
7289 aix*)
7290   symcode='[BCDT]'
7291   ;;
7292 cygwin* | mingw* | pw32*)
7293   symcode='[ABCDGISTW]'
7294   ;;
7295 hpux*) # Its linker distinguishes data from code symbols
7296   if test "$host_cpu" = ia64; then
7297     symcode='[ABCDEGRST]'
7298   fi
7299   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7300   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'"
7301   ;;
7302 linux*)
7303   if test "$host_cpu" = ia64; then
7304     symcode='[ABCDGIRSTW]'
7305     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306     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'"
7307   fi
7308   ;;
7309 irix* | nonstopux*)
7310   symcode='[BCDEGRST]'
7311   ;;
7312 osf*)
7313   symcode='[BCDEGQRST]'
7314   ;;
7315 solaris* | sysv5*)
7316   symcode='[BDRT]'
7317   ;;
7318 sysv4)
7319   symcode='[DFNSTU]'
7320   ;;
7321 esac
7322
7323 # Handle CRLF in mingw tool chain
7324 opt_cr=
7325 case $build_os in
7326 mingw*)
7327   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7328   ;;
7329 esac
7330
7331 # If we're using GNU nm, then use its standard symbol codes.
7332 case `$NM -V 2>&1` in
7333 *GNU* | *'with BFD'*)
7334   symcode='[ABCDGIRSTW]' ;;
7335 esac
7336
7337 # Try without a prefix undercore, then with it.
7338 for ac_symprfx in "" "_"; do
7339
7340   # Write the raw and C identifiers.
7341   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7342
7343   # Check to see that the pipe works correctly.
7344   pipe_works=no
7345
7346   rm -f conftest*
7347   cat > conftest.$ac_ext <<EOF
7348 #ifdef __cplusplus
7349 extern "C" {
7350 #endif
7351 char nm_test_var;
7352 void nm_test_func(){}
7353 #ifdef __cplusplus
7354 }
7355 #endif
7356 int main(){nm_test_var='a';nm_test_func();return(0);}
7357 EOF
7358
7359   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360   (eval $ac_compile) 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); }; then
7364     # Now try to grab the symbols.
7365     nlist=conftest.nm
7366     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7367   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } && test -s "$nlist"; then
7371       # Try sorting and uniquifying the output.
7372       if sort "$nlist" | uniq > "$nlist"T; then
7373         mv -f "$nlist"T "$nlist"
7374       else
7375         rm -f "$nlist"T
7376       fi
7377
7378       # Make sure that we snagged all the symbols we need.
7379       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7380         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7381           cat <<EOF > conftest.$ac_ext
7382 #ifdef __cplusplus
7383 extern "C" {
7384 #endif
7385
7386 EOF
7387           # Now generate the symbol file.
7388           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7389
7390           cat <<EOF >> conftest.$ac_ext
7391 #if defined (__STDC__) && __STDC__
7392 # define lt_ptr_t void *
7393 #else
7394 # define lt_ptr_t char *
7395 # define const
7396 #endif
7397
7398 /* The mapping between symbol names and symbols. */
7399 const struct {
7400   const char *name;
7401   lt_ptr_t address;
7402 }
7403 lt_preloaded_symbols[] =
7404 {
7405 EOF
7406           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7407           cat <<\EOF >> conftest.$ac_ext
7408   {0, (lt_ptr_t) 0}
7409 };
7410
7411 #ifdef __cplusplus
7412 }
7413 #endif
7414 EOF
7415           # Now try linking the two files.
7416           mv conftest.$ac_objext conftstm.$ac_objext
7417           lt_save_LIBS="$LIBS"
7418           lt_save_CFLAGS="$CFLAGS"
7419           LIBS="conftstm.$ac_objext"
7420           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7421           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7422   (eval $ac_link) 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7426             pipe_works=yes
7427           fi
7428           LIBS="$lt_save_LIBS"
7429           CFLAGS="$lt_save_CFLAGS"
7430         else
7431           echo "cannot find nm_test_func in $nlist" >&5
7432         fi
7433       else
7434         echo "cannot find nm_test_var in $nlist" >&5
7435       fi
7436     else
7437       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7438     fi
7439   else
7440     echo "$progname: failed program was:" >&5
7441     cat conftest.$ac_ext >&5
7442   fi
7443   rm -f conftest* conftst*
7444
7445   # Do not use the global_symbol_pipe unless it works.
7446   if test "$pipe_works" = yes; then
7447     break
7448   else
7449     lt_cv_sys_global_symbol_pipe=
7450   fi
7451 done
7452
7453 fi
7454
7455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7456   lt_cv_sys_global_symbol_to_cdecl=
7457 fi
7458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7459   echo "$as_me:$LINENO: result: failed" >&5
7460 echo "${ECHO_T}failed" >&6
7461 else
7462   echo "$as_me:$LINENO: result: ok" >&5
7463 echo "${ECHO_T}ok" >&6
7464 fi
7465
7466
7467 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7468 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7469 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7473     libltdl_cv_preloaded_symbols=yes
7474   else
7475     libltdl_cv_preloaded_symbols=no
7476   fi
7477
7478 fi
7479 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7480 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7481 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_PRELOADED_SYMBOLS 1
7485 _ACEOF
7486
7487 fi
7488
7489 LIBADD_DL=
7490
7491 ac_ext=c
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496
7497
7498 echo "$as_me:$LINENO: checking for shl_load" >&5
7499 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7500 if test "${ac_cv_func_shl_load+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h.  */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h.  */
7509 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7511 #define shl_load innocuous_shl_load
7512
7513 /* System header to define __stub macros and hopefully few prototypes,
7514     which can conflict with char shl_load (); below.
7515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7516     <limits.h> exists even on freestanding compilers.  */
7517
7518 #ifdef __STDC__
7519 # include <limits.h>
7520 #else
7521 # include <assert.h>
7522 #endif
7523
7524 #undef shl_load
7525
7526 /* Override any gcc2 internal prototype to avoid an error.  */
7527 #ifdef __cplusplus
7528 extern "C"
7529 {
7530 #endif
7531 /* We use char because int might match the return type of a gcc2
7532    builtin and then its argument prototype would still apply.  */
7533 char shl_load ();
7534 /* The GNU C library defines this for functions which it implements
7535     to always fail with ENOSYS.  Some functions are actually named
7536     something starting with __ and the normal name is an alias.  */
7537 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7538 choke me
7539 #else
7540 char (*f) () = shl_load;
7541 #endif
7542 #ifdef __cplusplus
7543 }
7544 #endif
7545
7546 int
7547 main ()
7548 {
7549 return f != shl_load;
7550   ;
7551   return 0;
7552 }
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556   (eval $ac_link) 2>conftest.er1
7557   ac_status=$?
7558   grep -v '^ *+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } &&
7563          { ac_try='test -z "$ac_c_werror_flag"
7564                          || test ! -s conftest.err'
7565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566   (eval $ac_try) 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }; } &&
7570          { ac_try='test -s conftest$ac_exeext'
7571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572   (eval $ac_try) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); }; }; then
7576   ac_cv_func_shl_load=yes
7577 else
7578   echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581 ac_cv_func_shl_load=no
7582 fi
7583 rm -f conftest.err conftest.$ac_objext \
7584       conftest$ac_exeext conftest.$ac_ext
7585 fi
7586 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7587 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7588 if test $ac_cv_func_shl_load = yes; then
7589
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_SHL_LOAD 1
7592 _ACEOF
7593
7594 else
7595   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7596 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7597 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   ac_check_lib_save_LIBS=$LIBS
7601 LIBS="-ldld  $LIBS"
7602 cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608
7609 /* Override any gcc2 internal prototype to avoid an error.  */
7610 #ifdef __cplusplus
7611 extern "C"
7612 #endif
7613 /* We use char because int might match the return type of a gcc2
7614    builtin and then its argument prototype would still apply.  */
7615 char shl_load ();
7616 int
7617 main ()
7618 {
7619 shl_load ();
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>conftest.er1
7627   ac_status=$?
7628   grep -v '^ *+' conftest.er1 >conftest.err
7629   rm -f conftest.er1
7630   cat conftest.err >&5
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); } &&
7633          { ac_try='test -z "$ac_c_werror_flag"
7634                          || test ! -s conftest.err'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; } &&
7640          { ac_try='test -s conftest$ac_exeext'
7641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642   (eval $ac_try) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; }; then
7646   ac_cv_lib_dld_shl_load=yes
7647 else
7648   echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 ac_cv_lib_dld_shl_load=no
7652 fi
7653 rm -f conftest.err conftest.$ac_objext \
7654       conftest$ac_exeext conftest.$ac_ext
7655 LIBS=$ac_check_lib_save_LIBS
7656 fi
7657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7658 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7659 if test $ac_cv_lib_dld_shl_load = yes; then
7660
7661 cat >>confdefs.h <<\_ACEOF
7662 #define HAVE_SHL_LOAD 1
7663 _ACEOF
7664
7665         LIBADD_DL="$LIBADD_DL -ldld"
7666 else
7667   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   ac_check_lib_save_LIBS=$LIBS
7673 LIBS="-ldl  $LIBS"
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h.  */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h.  */
7680
7681 /* Override any gcc2 internal prototype to avoid an error.  */
7682 #ifdef __cplusplus
7683 extern "C"
7684 #endif
7685 /* We use char because int might match the return type of a gcc2
7686    builtin and then its argument prototype would still apply.  */
7687 char dlopen ();
7688 int
7689 main ()
7690 {
7691 dlopen ();
7692   ;
7693   return 0;
7694 }
7695 _ACEOF
7696 rm -f conftest.$ac_objext conftest$ac_exeext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7698   (eval $ac_link) 2>conftest.er1
7699   ac_status=$?
7700   grep -v '^ *+' conftest.er1 >conftest.err
7701   rm -f conftest.er1
7702   cat conftest.err >&5
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); } &&
7705          { ac_try='test -z "$ac_c_werror_flag"
7706                          || test ! -s conftest.err'
7707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708   (eval $ac_try) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; } &&
7712          { ac_try='test -s conftest$ac_exeext'
7713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714   (eval $ac_try) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); }; }; then
7718   ac_cv_lib_dl_dlopen=yes
7719 else
7720   echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_cv_lib_dl_dlopen=no
7724 fi
7725 rm -f conftest.err conftest.$ac_objext \
7726       conftest$ac_exeext conftest.$ac_ext
7727 LIBS=$ac_check_lib_save_LIBS
7728 fi
7729 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7730 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7731 if test $ac_cv_lib_dl_dlopen = yes; then
7732
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_LIBDL 1
7735 _ACEOF
7736
7737                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745 #if HAVE_DLFCN_H
7746 #  include <dlfcn.h>
7747 #endif
7748
7749 int
7750 main ()
7751 {
7752 dlopen(0, 0);
7753   ;
7754   return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759   (eval $ac_link) 2>conftest.er1
7760   ac_status=$?
7761   grep -v '^ *+' conftest.er1 >conftest.err
7762   rm -f conftest.er1
7763   cat conftest.err >&5
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } &&
7766          { ac_try='test -z "$ac_c_werror_flag"
7767                          || test ! -s conftest.err'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; } &&
7773          { ac_try='test -s conftest$ac_exeext'
7774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775   (eval $ac_try) 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; }; then
7779
7780 cat >>confdefs.h <<\_ACEOF
7781 #define HAVE_LIBDL 1
7782 _ACEOF
7783  libltdl_cv_func_dlopen="yes"
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7789 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7790 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lsvld  $LIBS"
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801
7802 /* Override any gcc2 internal prototype to avoid an error.  */
7803 #ifdef __cplusplus
7804 extern "C"
7805 #endif
7806 /* We use char because int might match the return type of a gcc2
7807    builtin and then its argument prototype would still apply.  */
7808 char dlopen ();
7809 int
7810 main ()
7811 {
7812 dlopen ();
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819   (eval $ac_link) 2>conftest.er1
7820   ac_status=$?
7821   grep -v '^ *+' conftest.er1 >conftest.err
7822   rm -f conftest.er1
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -z "$ac_c_werror_flag"
7827                          || test ! -s conftest.err'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; } &&
7833          { ac_try='test -s conftest$ac_exeext'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   ac_cv_lib_svld_dlopen=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 ac_cv_lib_svld_dlopen=no
7845 fi
7846 rm -f conftest.err conftest.$ac_objext \
7847       conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7849 fi
7850 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7851 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7852 if test $ac_cv_lib_svld_dlopen = yes; then
7853
7854 cat >>confdefs.h <<\_ACEOF
7855 #define HAVE_LIBDL 1
7856 _ACEOF
7857
7858                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7859 else
7860   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   ac_check_lib_save_LIBS=$LIBS
7866 LIBS="-ldld  $LIBS"
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873
7874 /* Override any gcc2 internal prototype to avoid an error.  */
7875 #ifdef __cplusplus
7876 extern "C"
7877 #endif
7878 /* We use char because int might match the return type of a gcc2
7879    builtin and then its argument prototype would still apply.  */
7880 char dld_link ();
7881 int
7882 main ()
7883 {
7884 dld_link ();
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891   (eval $ac_link) 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -z "$ac_c_werror_flag"
7899                          || test ! -s conftest.err'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; } &&
7905          { ac_try='test -s conftest$ac_exeext'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; }; then
7911   ac_cv_lib_dld_dld_link=yes
7912 else
7913   echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 ac_cv_lib_dld_dld_link=no
7917 fi
7918 rm -f conftest.err conftest.$ac_objext \
7919       conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7921 fi
7922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7924 if test $ac_cv_lib_dld_dld_link = yes; then
7925
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_DLD 1
7928 _ACEOF
7929
7930                 LIBADD_DL="$LIBADD_DL -ldld"
7931 else
7932   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7933 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7934 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937   cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7945 #define _dyld_func_lookup innocuous__dyld_func_lookup
7946
7947 /* System header to define __stub macros and hopefully few prototypes,
7948     which can conflict with char _dyld_func_lookup (); below.
7949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950     <limits.h> exists even on freestanding compilers.  */
7951
7952 #ifdef __STDC__
7953 # include <limits.h>
7954 #else
7955 # include <assert.h>
7956 #endif
7957
7958 #undef _dyld_func_lookup
7959
7960 /* Override any gcc2 internal prototype to avoid an error.  */
7961 #ifdef __cplusplus
7962 extern "C"
7963 {
7964 #endif
7965 /* We use char because int might match the return type of a gcc2
7966    builtin and then its argument prototype would still apply.  */
7967 char _dyld_func_lookup ();
7968 /* The GNU C library defines this for functions which it implements
7969     to always fail with ENOSYS.  Some functions are actually named
7970     something starting with __ and the normal name is an alias.  */
7971 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7972 choke me
7973 #else
7974 char (*f) () = _dyld_func_lookup;
7975 #endif
7976 #ifdef __cplusplus
7977 }
7978 #endif
7979
7980 int
7981 main ()
7982 {
7983 return f != _dyld_func_lookup;
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990   (eval $ac_link) 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } &&
7997          { ac_try='test -z "$ac_c_werror_flag"
7998                          || test ! -s conftest.err'
7999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000   (eval $ac_try) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; } &&
8004          { ac_try='test -s conftest$ac_exeext'
8005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006   (eval $ac_try) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; }; then
8010   ac_cv_func__dyld_func_lookup=yes
8011 else
8012   echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015 ac_cv_func__dyld_func_lookup=no
8016 fi
8017 rm -f conftest.err conftest.$ac_objext \
8018       conftest$ac_exeext conftest.$ac_ext
8019 fi
8020 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8021 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8022 if test $ac_cv_func__dyld_func_lookup = yes; then
8023
8024 cat >>confdefs.h <<\_ACEOF
8025 #define HAVE_DYLD 1
8026 _ACEOF
8027
8028 fi
8029
8030
8031 fi
8032
8033
8034 fi
8035
8036
8037 fi
8038 rm -f conftest.err conftest.$ac_objext \
8039       conftest$ac_exeext conftest.$ac_ext
8040
8041 fi
8042
8043
8044 fi
8045
8046
8047 fi
8048
8049
8050 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8051 then
8052   lt_save_LIBS="$LIBS"
8053   LIBS="$LIBS $LIBADD_DL"
8054
8055 for ac_func in dlerror
8056 do
8057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8058 echo "$as_me:$LINENO: checking for $ac_func" >&5
8059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8060 if eval "test \"\${$as_ac_var+set}\" = set"; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8071 #define $ac_func innocuous_$ac_func
8072
8073 /* System header to define __stub macros and hopefully few prototypes,
8074     which can conflict with char $ac_func (); below.
8075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8076     <limits.h> exists even on freestanding compilers.  */
8077
8078 #ifdef __STDC__
8079 # include <limits.h>
8080 #else
8081 # include <assert.h>
8082 #endif
8083
8084 #undef $ac_func
8085
8086 /* Override any gcc2 internal prototype to avoid an error.  */
8087 #ifdef __cplusplus
8088 extern "C"
8089 {
8090 #endif
8091 /* We use char because int might match the return type of a gcc2
8092    builtin and then its argument prototype would still apply.  */
8093 char $ac_func ();
8094 /* The GNU C library defines this for functions which it implements
8095     to always fail with ENOSYS.  Some functions are actually named
8096     something starting with __ and the normal name is an alias.  */
8097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8098 choke me
8099 #else
8100 char (*f) () = $ac_func;
8101 #endif
8102 #ifdef __cplusplus
8103 }
8104 #endif
8105
8106 int
8107 main ()
8108 {
8109 return f != $ac_func;
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116   (eval $ac_link) 2>conftest.er1
8117   ac_status=$?
8118   grep -v '^ *+' conftest.er1 >conftest.err
8119   rm -f conftest.er1
8120   cat conftest.err >&5
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } &&
8123          { ac_try='test -z "$ac_c_werror_flag"
8124                          || test ! -s conftest.err'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest$ac_exeext'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   eval "$as_ac_var=yes"
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 eval "$as_ac_var=no"
8142 fi
8143 rm -f conftest.err conftest.$ac_objext \
8144       conftest$ac_exeext conftest.$ac_ext
8145 fi
8146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8148 if test `eval echo '${'$as_ac_var'}'` = yes; then
8149   cat >>confdefs.h <<_ACEOF
8150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8151 _ACEOF
8152
8153 fi
8154 done
8155
8156   LIBS="$lt_save_LIBS"
8157 fi
8158 ac_ext=c
8159 ac_cpp='$CPP $CPPFLAGS'
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165
8166 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8167 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8168 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   ac_cv_sys_symbol_underscore=no
8172   cat > conftest.$ac_ext <<EOF
8173 void nm_test_func(){}
8174 int main(){nm_test_func;return 0;}
8175 EOF
8176   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177   (eval $ac_compile) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; then
8181     # Now try to grab the symbols.
8182     ac_nlist=conftest.nm
8183     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8184   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } && test -s "$ac_nlist"; then
8188       # See whether the symbols have a leading underscore.
8189       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8190         ac_cv_sys_symbol_underscore=yes
8191       else
8192         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8193           :
8194         else
8195           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8196         fi
8197       fi
8198     else
8199       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8200     fi
8201   else
8202     echo "configure: failed program was:" >&5
8203     cat conftest.c >&5
8204   fi
8205   rm -rf conftest*
8206
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8209 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8210
8211
8212 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8213   if test x"$libltdl_cv_func_dlopen" = xyes ||
8214      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8215         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8216 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8217 if test "${libltdl_cv_need_uscore+set}" = set; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   libltdl_cv_need_uscore=unknown
8221           save_LIBS="$LIBS"
8222           LIBS="$LIBS $LIBADD_DL"
8223           if test "$cross_compiling" = yes; then :
8224   libltdl_cv_need_uscore=cross
8225 else
8226   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8227   lt_status=$lt_dlunknown
8228   cat > conftest.$ac_ext <<EOF
8229 #line 8228 "configure"
8230 #include "confdefs.h"
8231
8232 #if HAVE_DLFCN_H
8233 #include <dlfcn.h>
8234 #endif
8235
8236 #include <stdio.h>
8237
8238 #ifdef RTLD_GLOBAL
8239 #  define LT_DLGLOBAL           RTLD_GLOBAL
8240 #else
8241 #  ifdef DL_GLOBAL
8242 #    define LT_DLGLOBAL         DL_GLOBAL
8243 #  else
8244 #    define LT_DLGLOBAL         0
8245 #  endif
8246 #endif
8247
8248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8249    find out it does not work in some platform. */
8250 #ifndef LT_DLLAZY_OR_NOW
8251 #  ifdef RTLD_LAZY
8252 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8253 #  else
8254 #    ifdef DL_LAZY
8255 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8256 #    else
8257 #      ifdef RTLD_NOW
8258 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8259 #      else
8260 #        ifdef DL_NOW
8261 #          define LT_DLLAZY_OR_NOW      DL_NOW
8262 #        else
8263 #          define LT_DLLAZY_OR_NOW      0
8264 #        endif
8265 #      endif
8266 #    endif
8267 #  endif
8268 #endif
8269
8270 #ifdef __cplusplus
8271 extern "C" void exit (int);
8272 #endif
8273
8274 void fnord() { int i=42;}
8275 int main ()
8276 {
8277   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8278   int status = $lt_dlunknown;
8279
8280   if (self)
8281     {
8282       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8283       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8284       /* dlclose (self); */
8285     }
8286
8287     exit (status);
8288 }
8289 EOF
8290   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291   (eval $ac_link) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8295     (./conftest; exit; ) 2>/dev/null
8296     lt_status=$?
8297     case x$lt_status in
8298       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8299       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8300       x$lt_unknown|x*)  ;;
8301     esac
8302   else :
8303     # compilation failed
8304
8305   fi
8306 fi
8307 rm -fr conftest*
8308
8309           LIBS="$save_LIBS"
8310
8311 fi
8312 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8313 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8314   fi
8315 fi
8316
8317 if test x"$libltdl_cv_need_uscore" = xyes; then
8318
8319 cat >>confdefs.h <<\_ACEOF
8320 #define NEED_USCORE 1
8321 _ACEOF
8322
8323 fi
8324
8325
8326 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8327 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8328 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   # PORTME does your system automatically load deplibs for dlopen?
8332   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8333   # For now, we just catch OSes we know something about -- in the
8334   # future, we'll try test this programmatically.
8335   libltdl_cv_sys_dlopen_deplibs=unknown
8336   case "$host_os" in
8337   aix3*|aix4.1.*|aix4.2.*)
8338     # Unknown whether this is true for these versions of AIX, but
8339     # we want this `case' here to explicitly catch those versions.
8340     libltdl_cv_sys_dlopen_deplibs=unknown
8341     ;;
8342   aix[45]*)
8343     libltdl_cv_sys_dlopen_deplibs=yes
8344     ;;
8345   darwin*)
8346     # Assuming the user has installed a libdl from somewhere, this is true
8347     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8348     libltdl_cv_sys_dlopen_deplibs=yes
8349     ;;
8350   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8351     # GNU and its variants, using gnu ld.so (Glibc)
8352     libltdl_cv_sys_dlopen_deplibs=yes
8353     ;;
8354   hpux10*|hpux11*)
8355     libltdl_cv_sys_dlopen_deplibs=yes
8356     ;;
8357   irix[12345]*|irix6.[01]*)
8358     # Catch all versions of IRIX before 6.2, and indicate that we don't
8359     # know how it worked for any of those versions.
8360     libltdl_cv_sys_dlopen_deplibs=unknown
8361     ;;
8362   irix*)
8363     # The case above catches anything before 6.2, and it's known that
8364     # at 6.2 and later dlopen does load deplibs.
8365     libltdl_cv_sys_dlopen_deplibs=yes
8366     ;;
8367   netbsd*)
8368     libltdl_cv_sys_dlopen_deplibs=yes
8369     ;;
8370   openbsd*)
8371     libltdl_cv_sys_dlopen_deplibs=yes
8372     ;;
8373   osf[1234]*)
8374     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8375     # it did *not* use an RPATH in a shared library to find objects the
8376     # library depends on, so we explictly say `no'.
8377     libltdl_cv_sys_dlopen_deplibs=no
8378     ;;
8379   osf5.0|osf5.0a|osf5.1)
8380     # dlopen *does* load deplibs and with the right loader patch applied
8381     # it even uses RPATH in a shared library to search for shared objects
8382     # that the library depends on, but there's no easy way to know if that
8383     # patch is installed.  Since this is the case, all we can really
8384     # say is unknown -- it depends on the patch being installed.  If
8385     # it is, this changes to `yes'.  Without it, it would be `no'.
8386     libltdl_cv_sys_dlopen_deplibs=unknown
8387     ;;
8388   osf*)
8389     # the two cases above should catch all versions of osf <= 5.1.  Read
8390     # the comments above for what we know about them.
8391     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8392     # is used to find them so we can finally say `yes'.
8393     libltdl_cv_sys_dlopen_deplibs=yes
8394     ;;
8395   solaris*)
8396     libltdl_cv_sys_dlopen_deplibs=yes
8397     ;;
8398   esac
8399
8400 fi
8401 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8402 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8403 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8404
8405 cat >>confdefs.h <<\_ACEOF
8406 #define LTDL_DLOPEN_DEPLIBS 1
8407 _ACEOF
8408
8409 fi
8410
8411
8412 for ac_header in argz.h
8413 do
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416   echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 fi
8421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8423 else
8424   # Is the header compilable?
8425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h.  */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h.  */
8433 $ac_includes_default
8434 #include <$ac_header>
8435 _ACEOF
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438   (eval $ac_compile) 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag"
8446                          || test ! -s conftest.err'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; } &&
8452          { ac_try='test -s conftest.$ac_objext'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_header_compiler=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ac_header_compiler=no
8464 fi
8465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467 echo "${ECHO_T}$ac_header_compiler" >&6
8468
8469 # Is the header present?
8470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478 #include <$ac_header>
8479 _ACEOF
8480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } >/dev/null; then
8488   if test -s conftest.err; then
8489     ac_cpp_err=$ac_c_preproc_warn_flag
8490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491   else
8492     ac_cpp_err=
8493   fi
8494 else
8495   ac_cpp_err=yes
8496 fi
8497 if test -z "$ac_cpp_err"; then
8498   ac_header_preproc=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503   ac_header_preproc=no
8504 fi
8505 rm -f conftest.err conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507 echo "${ECHO_T}$ac_header_preproc" >&6
8508
8509 # So?  What about this header?
8510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8511   yes:no: )
8512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8516     ac_header_preproc=yes
8517     ;;
8518   no:yes:* )
8519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8531     (
8532       cat <<\_ASBOX
8533 ## ----------------------------------- ##
8534 ## Report this to llvmbugs@cs.uiuc.edu ##
8535 ## ----------------------------------- ##
8536 _ASBOX
8537     ) |
8538       sed "s/^/$as_me: WARNING:     /" >&2
8539     ;;
8540 esac
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   eval "$as_ac_Header=\$ac_header_preproc"
8547 fi
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8550
8551 fi
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553   cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8556
8557 fi
8558
8559 done
8560
8561
8562 echo "$as_me:$LINENO: checking for error_t" >&5
8563 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8564 if test "${ac_cv_type_error_t+set}" = set; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567   cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573 #if HAVE_ARGZ_H
8574 #  include <argz.h>
8575 #endif
8576
8577 int
8578 main ()
8579 {
8580 if ((error_t *) 0)
8581   return 0;
8582 if (sizeof (error_t))
8583   return 0;
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590   (eval $ac_compile) 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
8594   cat conftest.err >&5
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } &&
8597          { ac_try='test -z "$ac_c_werror_flag"
8598                          || test ! -s conftest.err'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; } &&
8604          { ac_try='test -s conftest.$ac_objext'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; }; then
8610   ac_cv_type_error_t=yes
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 ac_cv_type_error_t=no
8616 fi
8617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8620 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8621 if test $ac_cv_type_error_t = yes; then
8622
8623 cat >>confdefs.h <<_ACEOF
8624 #define HAVE_ERROR_T 1
8625 _ACEOF
8626
8627
8628 else
8629
8630 cat >>confdefs.h <<\_ACEOF
8631 #define error_t int
8632 _ACEOF
8633
8634 fi
8635
8636
8637
8638
8639
8640
8641
8642 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8643 do
8644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8645 echo "$as_me:$LINENO: checking for $ac_func" >&5
8646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8647 if eval "test \"\${$as_ac_var+set}\" = set"; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8658 #define $ac_func innocuous_$ac_func
8659
8660 /* System header to define __stub macros and hopefully few prototypes,
8661     which can conflict with char $ac_func (); below.
8662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8663     <limits.h> exists even on freestanding compilers.  */
8664
8665 #ifdef __STDC__
8666 # include <limits.h>
8667 #else
8668 # include <assert.h>
8669 #endif
8670
8671 #undef $ac_func
8672
8673 /* Override any gcc2 internal prototype to avoid an error.  */
8674 #ifdef __cplusplus
8675 extern "C"
8676 {
8677 #endif
8678 /* We use char because int might match the return type of a gcc2
8679    builtin and then its argument prototype would still apply.  */
8680 char $ac_func ();
8681 /* The GNU C library defines this for functions which it implements
8682     to always fail with ENOSYS.  Some functions are actually named
8683     something starting with __ and the normal name is an alias.  */
8684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8685 choke me
8686 #else
8687 char (*f) () = $ac_func;
8688 #endif
8689 #ifdef __cplusplus
8690 }
8691 #endif
8692
8693 int
8694 main ()
8695 {
8696 return f != $ac_func;
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703   (eval $ac_link) 2>conftest.er1
8704   ac_status=$?
8705   grep -v '^ *+' conftest.er1 >conftest.err
8706   rm -f conftest.er1
8707   cat conftest.err >&5
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); } &&
8710          { ac_try='test -z "$ac_c_werror_flag"
8711                          || test ! -s conftest.err'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; } &&
8717          { ac_try='test -s conftest$ac_exeext'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   eval "$as_ac_var=yes"
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 eval "$as_ac_var=no"
8729 fi
8730 rm -f conftest.err conftest.$ac_objext \
8731       conftest$ac_exeext conftest.$ac_ext
8732 fi
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8735 if test `eval echo '${'$as_ac_var'}'` = yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 fi
8741 done
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8771                   stdio.h unistd.h
8772 do
8773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8775   echo "$as_me:$LINENO: checking for $ac_header" >&5
8776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778   echo $ECHO_N "(cached) $ECHO_C" >&6
8779 fi
8780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8782 else
8783   # Is the header compilable?
8784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792 $ac_includes_default
8793 #include <$ac_header>
8794 _ACEOF
8795 rm -f conftest.$ac_objext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8797   (eval $ac_compile) 2>conftest.er1
8798   ac_status=$?
8799   grep -v '^ *+' conftest.er1 >conftest.err
8800   rm -f conftest.er1
8801   cat conftest.err >&5
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); } &&
8804          { ac_try='test -z "$ac_c_werror_flag"
8805                          || test ! -s conftest.err'
8806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807   (eval $ac_try) 2>&5
8808   ac_status=$?
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); }; } &&
8811          { ac_try='test -s conftest.$ac_objext'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; }; then
8817   ac_header_compiler=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 ac_header_compiler=no
8823 fi
8824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8826 echo "${ECHO_T}$ac_header_compiler" >&6
8827
8828 # Is the header present?
8829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 #include <$ac_header>
8838 _ACEOF
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8841   ac_status=$?
8842   grep -v '^ *+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } >/dev/null; then
8847   if test -s conftest.err; then
8848     ac_cpp_err=$ac_c_preproc_warn_flag
8849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8850   else
8851     ac_cpp_err=
8852   fi
8853 else
8854   ac_cpp_err=yes
8855 fi
8856 if test -z "$ac_cpp_err"; then
8857   ac_header_preproc=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862   ac_header_preproc=no
8863 fi
8864 rm -f conftest.err conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866 echo "${ECHO_T}$ac_header_preproc" >&6
8867
8868 # So?  What about this header?
8869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8870   yes:no: )
8871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8875     ac_header_preproc=yes
8876     ;;
8877   no:yes:* )
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8890     (
8891       cat <<\_ASBOX
8892 ## ----------------------------------- ##
8893 ## Report this to llvmbugs@cs.uiuc.edu ##
8894 ## ----------------------------------- ##
8895 _ASBOX
8896     ) |
8897       sed "s/^/$as_me: WARNING:     /" >&2
8898     ;;
8899 esac
8900 echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905   eval "$as_ac_Header=\$ac_header_preproc"
8906 fi
8907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8909
8910 fi
8911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8912   cat >>confdefs.h <<_ACEOF
8913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8914 _ACEOF
8915
8916 fi
8917
8918 done
8919
8920
8921
8922
8923
8924 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8925 do
8926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928   echo "$as_me:$LINENO: checking for $ac_header" >&5
8929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 fi
8933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8935 else
8936   # Is the header compilable?
8937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h.  */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h.  */
8945 $ac_includes_default
8946 #include <$ac_header>
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950   (eval $ac_compile) 2>conftest.er1
8951   ac_status=$?
8952   grep -v '^ *+' conftest.er1 >conftest.err
8953   rm -f conftest.er1
8954   cat conftest.err >&5
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); } &&
8957          { ac_try='test -z "$ac_c_werror_flag"
8958                          || test ! -s conftest.err'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; } &&
8964          { ac_try='test -s conftest.$ac_objext'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; }; then
8970   ac_header_compiler=yes
8971 else
8972   echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975 ac_header_compiler=no
8976 fi
8977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8979 echo "${ECHO_T}$ac_header_compiler" >&6
8980
8981 # Is the header present?
8982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h.  */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h.  */
8990 #include <$ac_header>
8991 _ACEOF
8992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8994   ac_status=$?
8995   grep -v '^ *+' conftest.er1 >conftest.err
8996   rm -f conftest.er1
8997   cat conftest.err >&5
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } >/dev/null; then
9000   if test -s conftest.err; then
9001     ac_cpp_err=$ac_c_preproc_warn_flag
9002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9003   else
9004     ac_cpp_err=
9005   fi
9006 else
9007   ac_cpp_err=yes
9008 fi
9009 if test -z "$ac_cpp_err"; then
9010   ac_header_preproc=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015   ac_header_preproc=no
9016 fi
9017 rm -f conftest.err conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019 echo "${ECHO_T}$ac_header_preproc" >&6
9020
9021 # So?  What about this header?
9022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9023   yes:no: )
9024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9028     ac_header_preproc=yes
9029     ;;
9030   no:yes:* )
9031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9043     (
9044       cat <<\_ASBOX
9045 ## ----------------------------------- ##
9046 ## Report this to llvmbugs@cs.uiuc.edu ##
9047 ## ----------------------------------- ##
9048 _ASBOX
9049     ) |
9050       sed "s/^/$as_me: WARNING:     /" >&2
9051     ;;
9052 esac
9053 echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   eval "$as_ac_Header=\$ac_header_preproc"
9059 fi
9060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9062
9063 fi
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065   cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9067 _ACEOF
9068
9069 fi
9070
9071 done
9072
9073
9074
9075 for ac_header in string.h strings.h
9076 do
9077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079   echo "$as_me:$LINENO: checking for $ac_header" >&5
9080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 fi
9084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086 else
9087   # Is the header compilable?
9088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9090 cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096 $ac_includes_default
9097 #include <$ac_header>
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101   (eval $ac_compile) 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } &&
9108          { ac_try='test -z "$ac_c_werror_flag"
9109                          || test ! -s conftest.err'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; } &&
9115          { ac_try='test -s conftest.$ac_objext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   ac_header_compiler=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_header_compiler=no
9127 fi
9128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132 # Is the header present?
9133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 #include <$ac_header>
9142 _ACEOF
9143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } >/dev/null; then
9151   if test -s conftest.err; then
9152     ac_cpp_err=$ac_c_preproc_warn_flag
9153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9154   else
9155     ac_cpp_err=
9156   fi
9157 else
9158   ac_cpp_err=yes
9159 fi
9160 if test -z "$ac_cpp_err"; then
9161   ac_header_preproc=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166   ac_header_preproc=no
9167 fi
9168 rm -f conftest.err conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170 echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172 # So?  What about this header?
9173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174   yes:no: )
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179     ac_header_preproc=yes
9180     ;;
9181   no:yes:* )
9182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194     (
9195       cat <<\_ASBOX
9196 ## ----------------------------------- ##
9197 ## Report this to llvmbugs@cs.uiuc.edu ##
9198 ## ----------------------------------- ##
9199 _ASBOX
9200     ) |
9201       sed "s/^/$as_me: WARNING:     /" >&2
9202     ;;
9203 esac
9204 echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   eval "$as_ac_Header=\$ac_header_preproc"
9210 fi
9211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213
9214 fi
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216   cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218 _ACEOF
9219  break
9220 fi
9221
9222 done
9223
9224
9225
9226
9227 for ac_func in strchr index
9228 do
9229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9230 echo "$as_me:$LINENO: checking for $ac_func" >&5
9231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_var+set}\" = set"; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9243 #define $ac_func innocuous_$ac_func
9244
9245 /* System header to define __stub macros and hopefully few prototypes,
9246     which can conflict with char $ac_func (); below.
9247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9248     <limits.h> exists even on freestanding compilers.  */
9249
9250 #ifdef __STDC__
9251 # include <limits.h>
9252 #else
9253 # include <assert.h>
9254 #endif
9255
9256 #undef $ac_func
9257
9258 /* Override any gcc2 internal prototype to avoid an error.  */
9259 #ifdef __cplusplus
9260 extern "C"
9261 {
9262 #endif
9263 /* We use char because int might match the return type of a gcc2
9264    builtin and then its argument prototype would still apply.  */
9265 char $ac_func ();
9266 /* The GNU C library defines this for functions which it implements
9267     to always fail with ENOSYS.  Some functions are actually named
9268     something starting with __ and the normal name is an alias.  */
9269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9270 choke me
9271 #else
9272 char (*f) () = $ac_func;
9273 #endif
9274 #ifdef __cplusplus
9275 }
9276 #endif
9277
9278 int
9279 main ()
9280 {
9281 return f != $ac_func;
9282   ;
9283   return 0;
9284 }
9285 _ACEOF
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9288   (eval $ac_link) 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } &&
9295          { ac_try='test -z "$ac_c_werror_flag"
9296                          || test ! -s conftest.err'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; } &&
9302          { ac_try='test -s conftest$ac_exeext'
9303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304   (eval $ac_try) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); }; }; then
9308   eval "$as_ac_var=yes"
9309 else
9310   echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313 eval "$as_ac_var=no"
9314 fi
9315 rm -f conftest.err conftest.$ac_objext \
9316       conftest$ac_exeext conftest.$ac_ext
9317 fi
9318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9320 if test `eval echo '${'$as_ac_var'}'` = yes; then
9321   cat >>confdefs.h <<_ACEOF
9322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9323 _ACEOF
9324  break
9325 fi
9326 done
9327
9328
9329
9330 for ac_func in strrchr rindex
9331 do
9332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9333 echo "$as_me:$LINENO: checking for $ac_func" >&5
9334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9335 if eval "test \"\${$as_ac_var+set}\" = set"; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338   cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9346 #define $ac_func innocuous_$ac_func
9347
9348 /* System header to define __stub macros and hopefully few prototypes,
9349     which can conflict with char $ac_func (); below.
9350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351     <limits.h> exists even on freestanding compilers.  */
9352
9353 #ifdef __STDC__
9354 # include <limits.h>
9355 #else
9356 # include <assert.h>
9357 #endif
9358
9359 #undef $ac_func
9360
9361 /* Override any gcc2 internal prototype to avoid an error.  */
9362 #ifdef __cplusplus
9363 extern "C"
9364 {
9365 #endif
9366 /* We use char because int might match the return type of a gcc2
9367    builtin and then its argument prototype would still apply.  */
9368 char $ac_func ();
9369 /* The GNU C library defines this for functions which it implements
9370     to always fail with ENOSYS.  Some functions are actually named
9371     something starting with __ and the normal name is an alias.  */
9372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9373 choke me
9374 #else
9375 char (*f) () = $ac_func;
9376 #endif
9377 #ifdef __cplusplus
9378 }
9379 #endif
9380
9381 int
9382 main ()
9383 {
9384 return f != $ac_func;
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391   (eval $ac_link) 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -z "$ac_c_werror_flag"
9399                          || test ! -s conftest.err'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; } &&
9405          { ac_try='test -s conftest$ac_exeext'
9406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407   (eval $ac_try) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); }; }; then
9411   eval "$as_ac_var=yes"
9412 else
9413   echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 eval "$as_ac_var=no"
9417 fi
9418 rm -f conftest.err conftest.$ac_objext \
9419       conftest$ac_exeext conftest.$ac_ext
9420 fi
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9423 if test `eval echo '${'$as_ac_var'}'` = yes; then
9424   cat >>confdefs.h <<_ACEOF
9425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9426 _ACEOF
9427  break
9428 fi
9429 done
9430
9431
9432
9433 for ac_func in memcpy bcopy
9434 do
9435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9436 echo "$as_me:$LINENO: checking for $ac_func" >&5
9437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9438 if eval "test \"\${$as_ac_var+set}\" = set"; then
9439   echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441   cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9449 #define $ac_func innocuous_$ac_func
9450
9451 /* System header to define __stub macros and hopefully few prototypes,
9452     which can conflict with char $ac_func (); below.
9453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9454     <limits.h> exists even on freestanding compilers.  */
9455
9456 #ifdef __STDC__
9457 # include <limits.h>
9458 #else
9459 # include <assert.h>
9460 #endif
9461
9462 #undef $ac_func
9463
9464 /* Override any gcc2 internal prototype to avoid an error.  */
9465 #ifdef __cplusplus
9466 extern "C"
9467 {
9468 #endif
9469 /* We use char because int might match the return type of a gcc2
9470    builtin and then its argument prototype would still apply.  */
9471 char $ac_func ();
9472 /* The GNU C library defines this for functions which it implements
9473     to always fail with ENOSYS.  Some functions are actually named
9474     something starting with __ and the normal name is an alias.  */
9475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9476 choke me
9477 #else
9478 char (*f) () = $ac_func;
9479 #endif
9480 #ifdef __cplusplus
9481 }
9482 #endif
9483
9484 int
9485 main ()
9486 {
9487 return f != $ac_func;
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494   (eval $ac_link) 2>conftest.er1
9495   ac_status=$?
9496   grep -v '^ *+' conftest.er1 >conftest.err
9497   rm -f conftest.er1
9498   cat conftest.err >&5
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); } &&
9501          { ac_try='test -z "$ac_c_werror_flag"
9502                          || test ! -s conftest.err'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; } &&
9508          { ac_try='test -s conftest$ac_exeext'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; }; then
9514   eval "$as_ac_var=yes"
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 eval "$as_ac_var=no"
9520 fi
9521 rm -f conftest.err conftest.$ac_objext \
9522       conftest$ac_exeext conftest.$ac_ext
9523 fi
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9526 if test `eval echo '${'$as_ac_var'}'` = yes; then
9527   cat >>confdefs.h <<_ACEOF
9528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9529 _ACEOF
9530  break
9531 fi
9532 done
9533
9534
9535
9536 for ac_func in memmove strcmp
9537 do
9538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9539 echo "$as_me:$LINENO: checking for $ac_func" >&5
9540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9541 if eval "test \"\${$as_ac_var+set}\" = set"; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h.  */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h.  */
9550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9552 #define $ac_func innocuous_$ac_func
9553
9554 /* System header to define __stub macros and hopefully few prototypes,
9555     which can conflict with char $ac_func (); below.
9556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9557     <limits.h> exists even on freestanding compilers.  */
9558
9559 #ifdef __STDC__
9560 # include <limits.h>
9561 #else
9562 # include <assert.h>
9563 #endif
9564
9565 #undef $ac_func
9566
9567 /* Override any gcc2 internal prototype to avoid an error.  */
9568 #ifdef __cplusplus
9569 extern "C"
9570 {
9571 #endif
9572 /* We use char because int might match the return type of a gcc2
9573    builtin and then its argument prototype would still apply.  */
9574 char $ac_func ();
9575 /* The GNU C library defines this for functions which it implements
9576     to always fail with ENOSYS.  Some functions are actually named
9577     something starting with __ and the normal name is an alias.  */
9578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9579 choke me
9580 #else
9581 char (*f) () = $ac_func;
9582 #endif
9583 #ifdef __cplusplus
9584 }
9585 #endif
9586
9587 int
9588 main ()
9589 {
9590 return f != $ac_func;
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597   (eval $ac_link) 2>conftest.er1
9598   ac_status=$?
9599   grep -v '^ *+' conftest.er1 >conftest.err
9600   rm -f conftest.er1
9601   cat conftest.err >&5
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } &&
9604          { ac_try='test -z "$ac_c_werror_flag"
9605                          || test ! -s conftest.err'
9606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607   (eval $ac_try) 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); }; } &&
9611          { ac_try='test -s conftest$ac_exeext'
9612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613   (eval $ac_try) 2>&5
9614   ac_status=$?
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); }; }; then
9617   eval "$as_ac_var=yes"
9618 else
9619   echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9621
9622 eval "$as_ac_var=no"
9623 fi
9624 rm -f conftest.err conftest.$ac_objext \
9625       conftest$ac_exeext conftest.$ac_ext
9626 fi
9627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9629 if test `eval echo '${'$as_ac_var'}'` = yes; then
9630   cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9632 _ACEOF
9633
9634 fi
9635 done
9636
9637
9638
9639
9640 for ac_func in closedir opendir readdir
9641 do
9642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9643 echo "$as_me:$LINENO: checking for $ac_func" >&5
9644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9645 if eval "test \"\${$as_ac_var+set}\" = set"; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h.  */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h.  */
9654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9656 #define $ac_func innocuous_$ac_func
9657
9658 /* System header to define __stub macros and hopefully few prototypes,
9659     which can conflict with char $ac_func (); below.
9660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661     <limits.h> exists even on freestanding compilers.  */
9662
9663 #ifdef __STDC__
9664 # include <limits.h>
9665 #else
9666 # include <assert.h>
9667 #endif
9668
9669 #undef $ac_func
9670
9671 /* Override any gcc2 internal prototype to avoid an error.  */
9672 #ifdef __cplusplus
9673 extern "C"
9674 {
9675 #endif
9676 /* We use char because int might match the return type of a gcc2
9677    builtin and then its argument prototype would still apply.  */
9678 char $ac_func ();
9679 /* The GNU C library defines this for functions which it implements
9680     to always fail with ENOSYS.  Some functions are actually named
9681     something starting with __ and the normal name is an alias.  */
9682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9683 choke me
9684 #else
9685 char (*f) () = $ac_func;
9686 #endif
9687 #ifdef __cplusplus
9688 }
9689 #endif
9690
9691 int
9692 main ()
9693 {
9694 return f != $ac_func;
9695   ;
9696   return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701   (eval $ac_link) 2>conftest.er1
9702   ac_status=$?
9703   grep -v '^ *+' conftest.er1 >conftest.err
9704   rm -f conftest.er1
9705   cat conftest.err >&5
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } &&
9708          { ac_try='test -z "$ac_c_werror_flag"
9709                          || test ! -s conftest.err'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; } &&
9715          { ac_try='test -s conftest$ac_exeext'
9716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717   (eval $ac_try) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; }; then
9721   eval "$as_ac_var=yes"
9722 else
9723   echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 eval "$as_ac_var=no"
9727 fi
9728 rm -f conftest.err conftest.$ac_objext \
9729       conftest$ac_exeext conftest.$ac_ext
9730 fi
9731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9733 if test `eval echo '${'$as_ac_var'}'` = yes; then
9734   cat >>confdefs.h <<_ACEOF
9735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9736 _ACEOF
9737
9738 fi
9739 done
9740
9741
9742 # Check whether --enable-shared or --disable-shared was given.
9743 if test "${enable_shared+set}" = set; then
9744   enableval="$enable_shared"
9745   p=${PACKAGE-default}
9746     case $enableval in
9747     yes) enable_shared=yes ;;
9748     no) enable_shared=no ;;
9749     *)
9750       enable_shared=no
9751       # Look at the argument we got.  We use all the common list separators.
9752       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9753       for pkg in $enableval; do
9754         IFS="$lt_save_ifs"
9755         if test "X$pkg" = "X$p"; then
9756           enable_shared=yes
9757         fi
9758       done
9759       IFS="$lt_save_ifs"
9760       ;;
9761     esac
9762 else
9763   enable_shared=yes
9764 fi;
9765
9766 # Check whether --enable-static or --disable-static was given.
9767 if test "${enable_static+set}" = set; then
9768   enableval="$enable_static"
9769   p=${PACKAGE-default}
9770     case $enableval in
9771     yes) enable_static=yes ;;
9772     no) enable_static=no ;;
9773     *)
9774      enable_static=no
9775       # Look at the argument we got.  We use all the common list separators.
9776       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9777       for pkg in $enableval; do
9778         IFS="$lt_save_ifs"
9779         if test "X$pkg" = "X$p"; then
9780           enable_static=yes
9781         fi
9782       done
9783       IFS="$lt_save_ifs"
9784       ;;
9785     esac
9786 else
9787   enable_static=yes
9788 fi;
9789
9790 # Check whether --enable-fast-install or --disable-fast-install was given.
9791 if test "${enable_fast_install+set}" = set; then
9792   enableval="$enable_fast_install"
9793   p=${PACKAGE-default}
9794     case $enableval in
9795     yes) enable_fast_install=yes ;;
9796     no) enable_fast_install=no ;;
9797     *)
9798       enable_fast_install=no
9799       # Look at the argument we got.  We use all the common list separators.
9800       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9801       for pkg in $enableval; do
9802         IFS="$lt_save_ifs"
9803         if test "X$pkg" = "X$p"; then
9804           enable_fast_install=yes
9805         fi
9806       done
9807       IFS="$lt_save_ifs"
9808       ;;
9809     esac
9810 else
9811   enable_fast_install=yes
9812 fi;
9813
9814 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9815 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9816 if test "${lt_cv_path_SED+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   # Loop through the user's path and test for sed and gsed.
9820 # Then use that list of sed's as ones to test for truncation.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9823 do
9824   IFS=$as_save_IFS
9825   test -z "$as_dir" && as_dir=.
9826   for lt_ac_prog in sed gsed; do
9827     for ac_exec_ext in '' $ac_executable_extensions; do
9828       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9829         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9830       fi
9831     done
9832   done
9833 done
9834 lt_ac_max=0
9835 lt_ac_count=0
9836 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9837 # along with /bin/sed that truncates output.
9838 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9839   test ! -f $lt_ac_sed && break
9840   cat /dev/null > conftest.in
9841   lt_ac_count=0
9842   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9843   # Check for GNU sed and select it if it is found.
9844   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9845     lt_cv_path_SED=$lt_ac_sed
9846     break
9847   fi
9848   while true; do
9849     cat conftest.in conftest.in >conftest.tmp
9850     mv conftest.tmp conftest.in
9851     cp conftest.in conftest.nl
9852     echo >>conftest.nl
9853     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9854     cmp -s conftest.out conftest.nl || break
9855     # 10000 chars as input seems more than enough
9856     test $lt_ac_count -gt 10 && break
9857     lt_ac_count=`expr $lt_ac_count + 1`
9858     if test $lt_ac_count -gt $lt_ac_max; then
9859       lt_ac_max=$lt_ac_count
9860       lt_cv_path_SED=$lt_ac_sed
9861     fi
9862   done
9863 done
9864
9865 fi
9866
9867 SED=$lt_cv_path_SED
9868 echo "$as_me:$LINENO: result: $SED" >&5
9869 echo "${ECHO_T}$SED" >&6
9870
9871
9872 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9873 if test "${with_gnu_ld+set}" = set; then
9874   withval="$with_gnu_ld"
9875   test "$withval" = no || with_gnu_ld=yes
9876 else
9877   with_gnu_ld=no
9878 fi;
9879 ac_prog=ld
9880 if test "$GCC" = yes; then
9881   # Check if gcc -print-prog-name=ld gives a path.
9882   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9883 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9884   case $host in
9885   *-*-mingw*)
9886     # gcc leaves a trailing carriage return which upsets mingw
9887     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9888   *)
9889     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9890   esac
9891   case $ac_prog in
9892     # Accept absolute paths.
9893     [\\/]* | ?:[\\/]*)
9894       re_direlt='/[^/][^/]*/\.\./'
9895       # Canonicalize the pathname of ld
9896       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9897       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9898         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9899       done
9900       test -z "$LD" && LD="$ac_prog"
9901       ;;
9902   "")
9903     # If it fails, then pretend we aren't using GCC.
9904     ac_prog=ld
9905     ;;
9906   *)
9907     # If it is relative, then search for the first ld in PATH.
9908     with_gnu_ld=unknown
9909     ;;
9910   esac
9911 elif test "$with_gnu_ld" = yes; then
9912   echo "$as_me:$LINENO: checking for GNU ld" >&5
9913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9914 else
9915   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9917 fi
9918 if test "${lt_cv_path_LD+set}" = set; then
9919   echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921   if test -z "$LD"; then
9922   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9923   for ac_dir in $PATH; do
9924     IFS="$lt_save_ifs"
9925     test -z "$ac_dir" && ac_dir=.
9926     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9927       lt_cv_path_LD="$ac_dir/$ac_prog"
9928       # Check to see if the program is GNU ld.  I'd rather use --version,
9929       # but apparently some GNU ld's only accept -v.
9930       # Break only if it was the GNU/non-GNU ld that we prefer.
9931       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9932       *GNU* | *'with BFD'*)
9933         test "$with_gnu_ld" != no && break
9934         ;;
9935       *)
9936         test "$with_gnu_ld" != yes && break
9937         ;;
9938       esac
9939     fi
9940   done
9941   IFS="$lt_save_ifs"
9942 else
9943   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9944 fi
9945 fi
9946
9947 LD="$lt_cv_path_LD"
9948 if test -n "$LD"; then
9949   echo "$as_me:$LINENO: result: $LD" >&5
9950 echo "${ECHO_T}$LD" >&6
9951 else
9952   echo "$as_me:$LINENO: result: no" >&5
9953 echo "${ECHO_T}no" >&6
9954 fi
9955 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9956 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9957    { (exit 1); exit 1; }; }
9958 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9959 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9960 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9964 case `$LD -v 2>&1 </dev/null` in
9965 *GNU* | *'with BFD'*)
9966   lt_cv_prog_gnu_ld=yes
9967   ;;
9968 *)
9969   lt_cv_prog_gnu_ld=no
9970   ;;
9971 esac
9972 fi
9973 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9974 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9975 with_gnu_ld=$lt_cv_prog_gnu_ld
9976
9977
9978 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9979 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9980 if test "${lt_cv_ld_reload_flag+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   lt_cv_ld_reload_flag='-r'
9984 fi
9985 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9986 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9987 reload_flag=$lt_cv_ld_reload_flag
9988 case $reload_flag in
9989 "" | " "*) ;;
9990 *) reload_flag=" $reload_flag" ;;
9991 esac
9992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9993 case $host_os in
9994   darwin*)
9995     if test "$GCC" = yes; then
9996       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9997     else
9998       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9999     fi
10000     ;;
10001 esac
10002
10003 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10004 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10005 if test "${lt_cv_deplibs_check_method+set}" = set; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   lt_cv_file_magic_cmd='$MAGIC_CMD'
10009 lt_cv_file_magic_test_file=
10010 lt_cv_deplibs_check_method='unknown'
10011 # Need to set the preceding variable on all platforms that support
10012 # interlibrary dependencies.
10013 # 'none' -- dependencies not supported.
10014 # `unknown' -- same as none, but documents that we really don't know.
10015 # 'pass_all' -- all dependencies passed with no checks.
10016 # 'test_compile' -- check by making test program.
10017 # 'file_magic [[regex]]' -- check by looking for files in library path
10018 # which responds to the $file_magic_cmd with a given extended regex.
10019 # If you have `file' or equivalent on your system and you're not sure
10020 # whether `pass_all' will *always* work, you probably want this one.
10021
10022 case $host_os in
10023 aix4* | aix5*)
10024   lt_cv_deplibs_check_method=pass_all
10025   ;;
10026
10027 beos*)
10028   lt_cv_deplibs_check_method=pass_all
10029   ;;
10030
10031 bsdi[45]*)
10032   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10033   lt_cv_file_magic_cmd='/usr/bin/file -L'
10034   lt_cv_file_magic_test_file=/shlib/libc.so
10035   ;;
10036
10037 cygwin*)
10038   # func_win32_libid is a shell function defined in ltmain.sh
10039   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10040   lt_cv_file_magic_cmd='func_win32_libid'
10041   ;;
10042
10043 mingw* | pw32*)
10044   # Base MSYS/MinGW do not provide the 'file' command needed by
10045   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10046   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10047   lt_cv_file_magic_cmd='$OBJDUMP -f'
10048   ;;
10049
10050 darwin* | rhapsody*)
10051   lt_cv_deplibs_check_method=pass_all
10052   ;;
10053
10054 freebsd* | kfreebsd*-gnu)
10055   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10056     case $host_cpu in
10057     i*86 )
10058       # Not sure whether the presence of OpenBSD here was a mistake.
10059       # Let's accept both of them until this is cleared up.
10060       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10061       lt_cv_file_magic_cmd=/usr/bin/file
10062       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10063       ;;
10064     esac
10065   else
10066     lt_cv_deplibs_check_method=pass_all
10067   fi
10068   ;;
10069
10070 gnu*)
10071   lt_cv_deplibs_check_method=pass_all
10072   ;;
10073
10074 hpux10.20* | hpux11*)
10075   lt_cv_file_magic_cmd=/usr/bin/file
10076   case "$host_cpu" in
10077   ia64*)
10078     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10079     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10080     ;;
10081   hppa*64*)
10082     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]'
10083     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10084     ;;
10085   *)
10086     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10087     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10088     ;;
10089   esac
10090   ;;
10091
10092 irix5* | irix6* | nonstopux*)
10093   case $LD in
10094   *-32|*"-32 ") libmagic=32-bit;;
10095   *-n32|*"-n32 ") libmagic=N32;;
10096   *-64|*"-64 ") libmagic=64-bit;;
10097   *) libmagic=never-match;;
10098   esac
10099   lt_cv_deplibs_check_method=pass_all
10100   ;;
10101
10102 # This must be Linux ELF.
10103 linux*)
10104   lt_cv_deplibs_check_method=pass_all
10105   ;;
10106
10107 netbsd*)
10108   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10109     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10110   else
10111     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10112   fi
10113   ;;
10114
10115 newos6*)
10116   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10117   lt_cv_file_magic_cmd=/usr/bin/file
10118   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10119   ;;
10120
10121 nto-qnx*)
10122   lt_cv_deplibs_check_method=unknown
10123   ;;
10124
10125 openbsd*)
10126   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10127     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10128   else
10129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10130   fi
10131   ;;
10132
10133 osf3* | osf4* | osf5*)
10134   lt_cv_deplibs_check_method=pass_all
10135   ;;
10136
10137 sco3.2v5*)
10138   lt_cv_deplibs_check_method=pass_all
10139   ;;
10140
10141 solaris*)
10142   lt_cv_deplibs_check_method=pass_all
10143   ;;
10144
10145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10146   case $host_vendor in
10147   motorola)
10148     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]'
10149     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10150     ;;
10151   ncr)
10152     lt_cv_deplibs_check_method=pass_all
10153     ;;
10154   sequent)
10155     lt_cv_file_magic_cmd='/bin/file'
10156     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10157     ;;
10158   sni)
10159     lt_cv_file_magic_cmd='/bin/file'
10160     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10161     lt_cv_file_magic_test_file=/lib/libc.so
10162     ;;
10163   siemens)
10164     lt_cv_deplibs_check_method=pass_all
10165     ;;
10166   esac
10167   ;;
10168
10169 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10170   lt_cv_deplibs_check_method=pass_all
10171   ;;
10172 esac
10173
10174 fi
10175 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10176 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10177 file_magic_cmd=$lt_cv_file_magic_cmd
10178 deplibs_check_method=$lt_cv_deplibs_check_method
10179 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10180
10181
10182
10183 # If no C compiler was specified, use CC.
10184 LTCC=${LTCC-"$CC"}
10185
10186 # Allow CC to be a program name with arguments.
10187 compiler=$CC
10188
10189 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10190 if test "${enable_libtool_lock+set}" = set; then
10191   enableval="$enable_libtool_lock"
10192
10193 fi;
10194 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10195
10196 # Some flags need to be propagated to the compiler or linker for good
10197 # libtool support.
10198 case $host in
10199 ia64-*-hpux*)
10200   # Find out which ABI we are using.
10201   echo 'int i;' > conftest.$ac_ext
10202   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203   (eval $ac_compile) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; then
10207     case `/usr/bin/file conftest.$ac_objext` in
10208     *ELF-32*)
10209       HPUX_IA64_MODE="32"
10210       ;;
10211     *ELF-64*)
10212       HPUX_IA64_MODE="64"
10213       ;;
10214     esac
10215   fi
10216   rm -rf conftest*
10217   ;;
10218 *-*-irix6*)
10219   # Find out which ABI we are using.
10220   echo '#line 10219 "configure"' > conftest.$ac_ext
10221   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222   (eval $ac_compile) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; then
10226    if test "$lt_cv_prog_gnu_ld" = yes; then
10227     case `/usr/bin/file conftest.$ac_objext` in
10228     *32-bit*)
10229       LD="${LD-ld} -melf32bsmip"
10230       ;;
10231     *N32*)
10232       LD="${LD-ld} -melf32bmipn32"
10233       ;;
10234     *64-bit*)
10235       LD="${LD-ld} -melf64bmip"
10236       ;;
10237     esac
10238    else
10239     case `/usr/bin/file conftest.$ac_objext` in
10240     *32-bit*)
10241       LD="${LD-ld} -32"
10242       ;;
10243     *N32*)
10244       LD="${LD-ld} -n32"
10245       ;;
10246     *64-bit*)
10247       LD="${LD-ld} -64"
10248       ;;
10249     esac
10250    fi
10251   fi
10252   rm -rf conftest*
10253   ;;
10254
10255 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10256   # Find out which ABI we are using.
10257   echo 'int i;' > conftest.$ac_ext
10258   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259   (eval $ac_compile) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; then
10263     case "`/usr/bin/file conftest.o`" in
10264     *32-bit*)
10265       case $host in
10266         x86_64-*linux*)
10267           LD="${LD-ld} -m elf_i386"
10268           ;;
10269         ppc64-*linux*|powerpc64-*linux*)
10270           LD="${LD-ld} -m elf32ppclinux"
10271           ;;
10272         s390x-*linux*)
10273           LD="${LD-ld} -m elf_s390"
10274           ;;
10275         sparc64-*linux*)
10276           LD="${LD-ld} -m elf32_sparc"
10277           ;;
10278       esac
10279       ;;
10280     *64-bit*)
10281       case $host in
10282         x86_64-*linux*)
10283           LD="${LD-ld} -m elf_x86_64"
10284           ;;
10285         ppc*-*linux*|powerpc*-*linux*)
10286           LD="${LD-ld} -m elf64ppc"
10287           ;;
10288         s390*-*linux*)
10289           LD="${LD-ld} -m elf64_s390"
10290           ;;
10291         sparc*-*linux*)
10292           LD="${LD-ld} -m elf64_sparc"
10293           ;;
10294       esac
10295       ;;
10296     esac
10297   fi
10298   rm -rf conftest*
10299   ;;
10300
10301 *-*-sco3.2v5*)
10302   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10303   SAVE_CFLAGS="$CFLAGS"
10304   CFLAGS="$CFLAGS -belf"
10305   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10306 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10307 if test "${lt_cv_cc_needs_belf+set}" = set; then
10308   echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310   ac_ext=c
10311 ac_cpp='$CPP $CPPFLAGS'
10312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10315
10316      cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h.  */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h.  */
10322
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326   (eval $ac_link) 2>conftest.er1
10327   ac_status=$?
10328   grep -v '^ *+' conftest.er1 >conftest.err
10329   rm -f conftest.er1
10330   cat conftest.err >&5
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } &&
10333          { ac_try='test -z "$ac_c_werror_flag"
10334                          || test ! -s conftest.err'
10335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336   (eval $ac_try) 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); }; } &&
10340          { ac_try='test -s conftest$ac_exeext'
10341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342   (eval $ac_try) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; }; then
10346   lt_cv_cc_needs_belf=yes
10347 else
10348   echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 lt_cv_cc_needs_belf=no
10352 fi
10353 rm -f conftest.err conftest.$ac_objext \
10354       conftest$ac_exeext conftest.$ac_ext
10355      ac_ext=c
10356 ac_cpp='$CPP $CPPFLAGS'
10357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10360
10361 fi
10362 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10363 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10364   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10365     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10366     CFLAGS="$SAVE_CFLAGS"
10367   fi
10368   ;;
10369
10370 esac
10371
10372 need_locks="$enable_libtool_lock"
10373
10374
10375
10376
10377 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10378     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10379     (test "X$CXX" != "Xg++"))) ; then
10380   ac_ext=cc
10381 ac_cpp='$CXXCPP $CPPFLAGS'
10382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10385 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10386 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10387 if test -z "$CXXCPP"; then
10388   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391       # Double quotes because CXXCPP needs to be expanded
10392     for CXXCPP in "$CXX -E" "/lib/cpp"
10393     do
10394       ac_preproc_ok=false
10395 for ac_cxx_preproc_warn_flag in '' yes
10396 do
10397   # Use a header file that comes with gcc, so configuring glibc
10398   # with a fresh cross-compiler works.
10399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10400   # <limits.h> exists even on freestanding compilers.
10401   # On the NeXT, cc -E runs the code through the compiler's parser,
10402   # not just through cpp. "Syntax error" is here to catch this case.
10403   cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h.  */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h.  */
10409 #ifdef __STDC__
10410 # include <limits.h>
10411 #else
10412 # include <assert.h>
10413 #endif
10414                      Syntax error
10415 _ACEOF
10416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10418   ac_status=$?
10419   grep -v '^ *+' conftest.er1 >conftest.err
10420   rm -f conftest.er1
10421   cat conftest.err >&5
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } >/dev/null; then
10424   if test -s conftest.err; then
10425     ac_cpp_err=$ac_cxx_preproc_warn_flag
10426     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10427   else
10428     ac_cpp_err=
10429   fi
10430 else
10431   ac_cpp_err=yes
10432 fi
10433 if test -z "$ac_cpp_err"; then
10434   :
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439   # Broken: fails on valid input.
10440 continue
10441 fi
10442 rm -f conftest.err conftest.$ac_ext
10443
10444   # OK, works on sane cases.  Now check whether non-existent headers
10445   # can be detected and how.
10446   cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h.  */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h.  */
10452 #include <ac_nonexistent.h>
10453 _ACEOF
10454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } >/dev/null; then
10462   if test -s conftest.err; then
10463     ac_cpp_err=$ac_cxx_preproc_warn_flag
10464     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10465   else
10466     ac_cpp_err=
10467   fi
10468 else
10469   ac_cpp_err=yes
10470 fi
10471 if test -z "$ac_cpp_err"; then
10472   # Broken: success on invalid input.
10473 continue
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478   # Passes both tests.
10479 ac_preproc_ok=:
10480 break
10481 fi
10482 rm -f conftest.err conftest.$ac_ext
10483
10484 done
10485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10486 rm -f conftest.err conftest.$ac_ext
10487 if $ac_preproc_ok; then
10488   break
10489 fi
10490
10491     done
10492     ac_cv_prog_CXXCPP=$CXXCPP
10493
10494 fi
10495   CXXCPP=$ac_cv_prog_CXXCPP
10496 else
10497   ac_cv_prog_CXXCPP=$CXXCPP
10498 fi
10499 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10500 echo "${ECHO_T}$CXXCPP" >&6
10501 ac_preproc_ok=false
10502 for ac_cxx_preproc_warn_flag in '' yes
10503 do
10504   # Use a header file that comes with gcc, so configuring glibc
10505   # with a fresh cross-compiler works.
10506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507   # <limits.h> exists even on freestanding compilers.
10508   # On the NeXT, cc -E runs the code through the compiler's parser,
10509   # not just through cpp. "Syntax error" is here to catch this case.
10510   cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h.  */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h.  */
10516 #ifdef __STDC__
10517 # include <limits.h>
10518 #else
10519 # include <assert.h>
10520 #endif
10521                      Syntax error
10522 _ACEOF
10523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } >/dev/null; then
10531   if test -s conftest.err; then
10532     ac_cpp_err=$ac_cxx_preproc_warn_flag
10533     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10534   else
10535     ac_cpp_err=
10536   fi
10537 else
10538   ac_cpp_err=yes
10539 fi
10540 if test -z "$ac_cpp_err"; then
10541   :
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546   # Broken: fails on valid input.
10547 continue
10548 fi
10549 rm -f conftest.err conftest.$ac_ext
10550
10551   # OK, works on sane cases.  Now check whether non-existent headers
10552   # can be detected and how.
10553   cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 #include <ac_nonexistent.h>
10560 _ACEOF
10561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } >/dev/null; then
10569   if test -s conftest.err; then
10570     ac_cpp_err=$ac_cxx_preproc_warn_flag
10571     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10572   else
10573     ac_cpp_err=
10574   fi
10575 else
10576   ac_cpp_err=yes
10577 fi
10578 if test -z "$ac_cpp_err"; then
10579   # Broken: success on invalid input.
10580 continue
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585   # Passes both tests.
10586 ac_preproc_ok=:
10587 break
10588 fi
10589 rm -f conftest.err conftest.$ac_ext
10590
10591 done
10592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10593 rm -f conftest.err conftest.$ac_ext
10594 if $ac_preproc_ok; then
10595   :
10596 else
10597   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10598 See \`config.log' for more details." >&5
10599 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10600 See \`config.log' for more details." >&2;}
10601    { (exit 1); exit 1; }; }
10602 fi
10603
10604 ac_ext=cc
10605 ac_cpp='$CXXCPP $CPPFLAGS'
10606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10609
10610 fi
10611
10612
10613 ac_ext=f
10614 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10615 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10616 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10617 if test -n "$ac_tool_prefix"; then
10618   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10619   do
10620     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10622 echo "$as_me:$LINENO: checking for $ac_word" >&5
10623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10624 if test "${ac_cv_prog_F77+set}" = set; then
10625   echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10627   if test -n "$F77"; then
10628   ac_cv_prog_F77="$F77" # Let the user override the test.
10629 else
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10632 do
10633   IFS=$as_save_IFS
10634   test -z "$as_dir" && as_dir=.
10635   for ac_exec_ext in '' $ac_executable_extensions; do
10636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639     break 2
10640   fi
10641 done
10642 done
10643
10644 fi
10645 fi
10646 F77=$ac_cv_prog_F77
10647 if test -n "$F77"; then
10648   echo "$as_me:$LINENO: result: $F77" >&5
10649 echo "${ECHO_T}$F77" >&6
10650 else
10651   echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6
10653 fi
10654
10655     test -n "$F77" && break
10656   done
10657 fi
10658 if test -z "$F77"; then
10659   ac_ct_F77=$F77
10660   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10661 do
10662   # Extract the first word of "$ac_prog", so it can be a program name with args.
10663 set dummy $ac_prog; ac_word=$2
10664 echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10666 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10667   echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669   if test -n "$ac_ct_F77"; then
10670   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10674 do
10675   IFS=$as_save_IFS
10676   test -z "$as_dir" && as_dir=.
10677   for ac_exec_ext in '' $ac_executable_extensions; do
10678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679     ac_cv_prog_ac_ct_F77="$ac_prog"
10680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10681     break 2
10682   fi
10683 done
10684 done
10685
10686 fi
10687 fi
10688 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10689 if test -n "$ac_ct_F77"; then
10690   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10691 echo "${ECHO_T}$ac_ct_F77" >&6
10692 else
10693   echo "$as_me:$LINENO: result: no" >&5
10694 echo "${ECHO_T}no" >&6
10695 fi
10696
10697   test -n "$ac_ct_F77" && break
10698 done
10699
10700   F77=$ac_ct_F77
10701 fi
10702
10703
10704 # Provide some information about the compiler.
10705 echo "$as_me:10704:" \
10706      "checking for Fortran 77 compiler version" >&5
10707 ac_compiler=`set X $ac_compile; echo $2`
10708 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10709   (eval $ac_compiler --version </dev/null >&5) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }
10713 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10714   (eval $ac_compiler -v </dev/null >&5) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }
10718 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10719   (eval $ac_compiler -V </dev/null >&5) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }
10723 rm -f a.out
10724
10725 # If we don't use `.F' as extension, the preprocessor is not run on the
10726 # input file.  (Note that this only needs to work for GNU compilers.)
10727 ac_save_ext=$ac_ext
10728 ac_ext=F
10729 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10730 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10731 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735       program main
10736 #ifndef __GNUC__
10737        choke me
10738 #endif
10739
10740       end
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744   (eval $ac_compile) 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } &&
10751          { ac_try='test -z "$ac_f77_werror_flag"
10752                          || test ! -s conftest.err'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; } &&
10758          { ac_try='test -s conftest.$ac_objext'
10759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760   (eval $ac_try) 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; }; then
10764   ac_compiler_gnu=yes
10765 else
10766   echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10768
10769 ac_compiler_gnu=no
10770 fi
10771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10773
10774 fi
10775 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10776 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10777 ac_ext=$ac_save_ext
10778 ac_test_FFLAGS=${FFLAGS+set}
10779 ac_save_FFLAGS=$FFLAGS
10780 FFLAGS=
10781 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10782 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10783 if test "${ac_cv_prog_f77_g+set}" = set; then
10784   echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786   FFLAGS=-g
10787 cat >conftest.$ac_ext <<_ACEOF
10788       program main
10789
10790       end
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794   (eval $ac_compile) 2>conftest.er1
10795   ac_status=$?
10796   grep -v '^ *+' conftest.er1 >conftest.err
10797   rm -f conftest.er1
10798   cat conftest.err >&5
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } &&
10801          { ac_try='test -z "$ac_f77_werror_flag"
10802                          || test ! -s conftest.err'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; } &&
10808          { ac_try='test -s conftest.$ac_objext'
10809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810   (eval $ac_try) 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); }; }; then
10814   ac_cv_prog_f77_g=yes
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 ac_cv_prog_f77_g=no
10820 fi
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822
10823 fi
10824 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10825 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10826 if test "$ac_test_FFLAGS" = set; then
10827   FFLAGS=$ac_save_FFLAGS
10828 elif test $ac_cv_prog_f77_g = yes; then
10829   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10830     FFLAGS="-g -O2"
10831   else
10832     FFLAGS="-g"
10833   fi
10834 else
10835   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10836     FFLAGS="-O2"
10837   else
10838     FFLAGS=
10839   fi
10840 fi
10841
10842 G77=`test $ac_compiler_gnu = yes && echo yes`
10843 ac_ext=c
10844 ac_cpp='$CPP $CPPFLAGS'
10845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10848
10849
10850
10851 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10852
10853 # find the maximum length of command line arguments
10854 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10855 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10856 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10857   echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859     i=0
10860   teststring="ABCD"
10861
10862   case $build_os in
10863   msdosdjgpp*)
10864     # On DJGPP, this test can blow up pretty badly due to problems in libc
10865     # (any single argument exceeding 2000 bytes causes a buffer overrun
10866     # during glob expansion).  Even if it were fixed, the result of this
10867     # check would be larger than it should be.
10868     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10869     ;;
10870
10871   gnu*)
10872     # Under GNU Hurd, this test is not required because there is
10873     # no limit to the length of command line arguments.
10874     # Libtool will interpret -1 as no limit whatsoever
10875     lt_cv_sys_max_cmd_len=-1;
10876     ;;
10877
10878   cygwin* | mingw*)
10879     # On Win9x/ME, this test blows up -- it succeeds, but takes
10880     # about 5 minutes as the teststring grows exponentially.
10881     # Worse, since 9x/ME are not pre-emptively multitasking,
10882     # you end up with a "frozen" computer, even though with patience
10883     # the test eventually succeeds (with a max line length of 256k).
10884     # Instead, let's just punt: use the minimum linelength reported by
10885     # all of the supported platforms: 8192 (on NT/2K/XP).
10886     lt_cv_sys_max_cmd_len=8192;
10887     ;;
10888
10889   amigaos*)
10890     # On AmigaOS with pdksh, this test takes hours, literally.
10891     # So we just punt and use a minimum line length of 8192.
10892     lt_cv_sys_max_cmd_len=8192;
10893     ;;
10894
10895   netbsd* | freebsd* | openbsd* | darwin* )
10896     # This has been around since 386BSD, at least.  Likely further.
10897     if test -x /sbin/sysctl; then
10898       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10899     elif test -x /usr/sbin/sysctl; then
10900       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10901     else
10902       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10903     fi
10904     # And add a safety zone
10905     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10906     ;;
10907
10908  *)
10909     # If test is not a shell built-in, we'll probably end up computing a
10910     # maximum length that is only half of the actual maximum length, but
10911     # we can't tell.
10912     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10913     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10914                = "XX$teststring") >/dev/null 2>&1 &&
10915             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10916             lt_cv_sys_max_cmd_len=$new_result &&
10917             test $i != 17 # 1/2 MB should be enough
10918     do
10919       i=`expr $i + 1`
10920       teststring=$teststring$teststring
10921     done
10922     teststring=
10923     # Add a significant safety factor because C++ compilers can tack on massive
10924     # amounts of additional arguments before passing them to the linker.
10925     # It appears as though 1/2 is a usable value.
10926     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10927     ;;
10928   esac
10929
10930 fi
10931
10932 if test -n $lt_cv_sys_max_cmd_len ; then
10933   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10934 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10935 else
10936   echo "$as_me:$LINENO: result: none" >&5
10937 echo "${ECHO_T}none" >&6
10938 fi
10939
10940
10941
10942
10943 # Check for command to grab the raw symbol name followed by C symbol from nm.
10944 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10945 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10946 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949
10950 # These are sane defaults that work on at least a few old systems.
10951 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10952
10953 # Character class describing NM global symbol codes.
10954 symcode='[BCDEGRST]'
10955
10956 # Regexp to match symbols that can be accessed directly from C.
10957 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10958
10959 # Transform the above into a raw symbol and a C symbol.
10960 symxfrm='\1 \2\3 \3'
10961
10962 # Transform an extracted symbol line into a proper C declaration
10963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10964
10965 # Transform an extracted symbol line into symbol name and symbol address
10966 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'"
10967
10968 # Define system-specific variables.
10969 case $host_os in
10970 aix*)
10971   symcode='[BCDT]'
10972   ;;
10973 cygwin* | mingw* | pw32*)
10974   symcode='[ABCDGISTW]'
10975   ;;
10976 hpux*) # Its linker distinguishes data from code symbols
10977   if test "$host_cpu" = ia64; then
10978     symcode='[ABCDEGRST]'
10979   fi
10980   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10981   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'"
10982   ;;
10983 linux*)
10984   if test "$host_cpu" = ia64; then
10985     symcode='[ABCDGIRSTW]'
10986     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10987     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'"
10988   fi
10989   ;;
10990 irix* | nonstopux*)
10991   symcode='[BCDEGRST]'
10992   ;;
10993 osf*)
10994   symcode='[BCDEGQRST]'
10995   ;;
10996 solaris* | sysv5*)
10997   symcode='[BDRT]'
10998   ;;
10999 sysv4)
11000   symcode='[DFNSTU]'
11001   ;;
11002 esac
11003
11004 # Handle CRLF in mingw tool chain
11005 opt_cr=
11006 case $build_os in
11007 mingw*)
11008   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11009   ;;
11010 esac
11011
11012 # If we're using GNU nm, then use its standard symbol codes.
11013 case `$NM -V 2>&1` in
11014 *GNU* | *'with BFD'*)
11015   symcode='[ABCDGIRSTW]' ;;
11016 esac
11017
11018 # Try without a prefix undercore, then with it.
11019 for ac_symprfx in "" "_"; do
11020
11021   # Write the raw and C identifiers.
11022   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11023
11024   # Check to see that the pipe works correctly.
11025   pipe_works=no
11026
11027   rm -f conftest*
11028   cat > conftest.$ac_ext <<EOF
11029 #ifdef __cplusplus
11030 extern "C" {
11031 #endif
11032 char nm_test_var;
11033 void nm_test_func(){}
11034 #ifdef __cplusplus
11035 }
11036 #endif
11037 int main(){nm_test_var='a';nm_test_func();return(0);}
11038 EOF
11039
11040   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041   (eval $ac_compile) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; then
11045     # Now try to grab the symbols.
11046     nlist=conftest.nm
11047     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11048   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } && test -s "$nlist"; then
11052       # Try sorting and uniquifying the output.
11053       if sort "$nlist" | uniq > "$nlist"T; then
11054         mv -f "$nlist"T "$nlist"
11055       else
11056         rm -f "$nlist"T
11057       fi
11058
11059       # Make sure that we snagged all the symbols we need.
11060       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11061         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11062           cat <<EOF > conftest.$ac_ext
11063 #ifdef __cplusplus
11064 extern "C" {
11065 #endif
11066
11067 EOF
11068           # Now generate the symbol file.
11069           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11070
11071           cat <<EOF >> conftest.$ac_ext
11072 #if defined (__STDC__) && __STDC__
11073 # define lt_ptr_t void *
11074 #else
11075 # define lt_ptr_t char *
11076 # define const
11077 #endif
11078
11079 /* The mapping between symbol names and symbols. */
11080 const struct {
11081   const char *name;
11082   lt_ptr_t address;
11083 }
11084 lt_preloaded_symbols[] =
11085 {
11086 EOF
11087           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11088           cat <<\EOF >> conftest.$ac_ext
11089   {0, (lt_ptr_t) 0}
11090 };
11091
11092 #ifdef __cplusplus
11093 }
11094 #endif
11095 EOF
11096           # Now try linking the two files.
11097           mv conftest.$ac_objext conftstm.$ac_objext
11098           lt_save_LIBS="$LIBS"
11099           lt_save_CFLAGS="$CFLAGS"
11100           LIBS="conftstm.$ac_objext"
11101           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11102           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103   (eval $ac_link) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11107             pipe_works=yes
11108           fi
11109           LIBS="$lt_save_LIBS"
11110           CFLAGS="$lt_save_CFLAGS"
11111         else
11112           echo "cannot find nm_test_func in $nlist" >&5
11113         fi
11114       else
11115         echo "cannot find nm_test_var in $nlist" >&5
11116       fi
11117     else
11118       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11119     fi
11120   else
11121     echo "$progname: failed program was:" >&5
11122     cat conftest.$ac_ext >&5
11123   fi
11124   rm -f conftest* conftst*
11125
11126   # Do not use the global_symbol_pipe unless it works.
11127   if test "$pipe_works" = yes; then
11128     break
11129   else
11130     lt_cv_sys_global_symbol_pipe=
11131   fi
11132 done
11133
11134 fi
11135
11136 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11137   lt_cv_sys_global_symbol_to_cdecl=
11138 fi
11139 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11140   echo "$as_me:$LINENO: result: failed" >&5
11141 echo "${ECHO_T}failed" >&6
11142 else
11143   echo "$as_me:$LINENO: result: ok" >&5
11144 echo "${ECHO_T}ok" >&6
11145 fi
11146
11147 echo "$as_me:$LINENO: checking for objdir" >&5
11148 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11149 if test "${lt_cv_objdir+set}" = set; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   rm -f .libs 2>/dev/null
11153 mkdir .libs 2>/dev/null
11154 if test -d .libs; then
11155   lt_cv_objdir=.libs
11156 else
11157   # MS-DOS does not allow filenames that begin with a dot.
11158   lt_cv_objdir=_libs
11159 fi
11160 rmdir .libs 2>/dev/null
11161 fi
11162 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11163 echo "${ECHO_T}$lt_cv_objdir" >&6
11164 objdir=$lt_cv_objdir
11165
11166
11167
11168
11169
11170 case $host_os in
11171 aix3*)
11172   # AIX sometimes has problems with the GCC collect2 program.  For some
11173   # reason, if we set the COLLECT_NAMES environment variable, the problems
11174   # vanish in a puff of smoke.
11175   if test "X${COLLECT_NAMES+set}" != Xset; then
11176     COLLECT_NAMES=
11177     export COLLECT_NAMES
11178   fi
11179   ;;
11180 esac
11181
11182 # Sed substitution that helps us do robust quoting.  It backslashifies
11183 # metacharacters that are still active within double-quoted strings.
11184 Xsed='sed -e s/^X//'
11185 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11186
11187 # Same as above, but do not quote variable references.
11188 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11189
11190 # Sed substitution to delay expansion of an escaped shell variable in a
11191 # double_quote_subst'ed string.
11192 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11193
11194 # Sed substitution to avoid accidental globbing in evaled expressions
11195 no_glob_subst='s/\*/\\\*/g'
11196
11197 # Constants:
11198 rm="rm -f"
11199
11200 # Global variables:
11201 default_ofile=mklib
11202 can_build_shared=yes
11203
11204 # All known linkers require a `.a' archive for static linking (except M$VC,
11205 # which needs '.lib').
11206 libext=a
11207 ltmain="$ac_aux_dir/ltmain.sh"
11208 ofile="$default_ofile"
11209 with_gnu_ld="$lt_cv_prog_gnu_ld"
11210
11211 if test -n "$ac_tool_prefix"; then
11212   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11213 set dummy ${ac_tool_prefix}ar; ac_word=$2
11214 echo "$as_me:$LINENO: checking for $ac_word" >&5
11215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11216 if test "${ac_cv_prog_AR+set}" = set; then
11217   echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219   if test -n "$AR"; then
11220   ac_cv_prog_AR="$AR" # Let the user override the test.
11221 else
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225   IFS=$as_save_IFS
11226   test -z "$as_dir" && as_dir=.
11227   for ac_exec_ext in '' $ac_executable_extensions; do
11228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229     ac_cv_prog_AR="${ac_tool_prefix}ar"
11230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234 done
11235
11236 fi
11237 fi
11238 AR=$ac_cv_prog_AR
11239 if test -n "$AR"; then
11240   echo "$as_me:$LINENO: result: $AR" >&5
11241 echo "${ECHO_T}$AR" >&6
11242 else
11243   echo "$as_me:$LINENO: result: no" >&5
11244 echo "${ECHO_T}no" >&6
11245 fi
11246
11247 fi
11248 if test -z "$ac_cv_prog_AR"; then
11249   ac_ct_AR=$AR
11250   # Extract the first word of "ar", so it can be a program name with args.
11251 set dummy ar; ac_word=$2
11252 echo "$as_me:$LINENO: checking for $ac_word" >&5
11253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11254 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   if test -n "$ac_ct_AR"; then
11258   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11259 else
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11262 do
11263   IFS=$as_save_IFS
11264   test -z "$as_dir" && as_dir=.
11265   for ac_exec_ext in '' $ac_executable_extensions; do
11266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267     ac_cv_prog_ac_ct_AR="ar"
11268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269     break 2
11270   fi
11271 done
11272 done
11273
11274   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11275 fi
11276 fi
11277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11278 if test -n "$ac_ct_AR"; then
11279   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11280 echo "${ECHO_T}$ac_ct_AR" >&6
11281 else
11282   echo "$as_me:$LINENO: result: no" >&5
11283 echo "${ECHO_T}no" >&6
11284 fi
11285
11286   AR=$ac_ct_AR
11287 else
11288   AR="$ac_cv_prog_AR"
11289 fi
11290
11291 if test -n "$ac_tool_prefix"; then
11292   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11294 echo "$as_me:$LINENO: checking for $ac_word" >&5
11295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11296 if test "${ac_cv_prog_RANLIB+set}" = set; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   if test -n "$RANLIB"; then
11300   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11301 else
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11304 do
11305   IFS=$as_save_IFS
11306   test -z "$as_dir" && as_dir=.
11307   for ac_exec_ext in '' $ac_executable_extensions; do
11308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11311     break 2
11312   fi
11313 done
11314 done
11315
11316 fi
11317 fi
11318 RANLIB=$ac_cv_prog_RANLIB
11319 if test -n "$RANLIB"; then
11320   echo "$as_me:$LINENO: result: $RANLIB" >&5
11321 echo "${ECHO_T}$RANLIB" >&6
11322 else
11323   echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6
11325 fi
11326
11327 fi
11328 if test -z "$ac_cv_prog_RANLIB"; then
11329   ac_ct_RANLIB=$RANLIB
11330   # Extract the first word of "ranlib", so it can be a program name with args.
11331 set dummy ranlib; ac_word=$2
11332 echo "$as_me:$LINENO: checking for $ac_word" >&5
11333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   if test -n "$ac_ct_RANLIB"; then
11338   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11339 else
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH
11342 do
11343   IFS=$as_save_IFS
11344   test -z "$as_dir" && as_dir=.
11345   for ac_exec_ext in '' $ac_executable_extensions; do
11346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347     ac_cv_prog_ac_ct_RANLIB="ranlib"
11348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349     break 2
11350   fi
11351 done
11352 done
11353
11354   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11355 fi
11356 fi
11357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11358 if test -n "$ac_ct_RANLIB"; then
11359   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11361 else
11362   echo "$as_me:$LINENO: result: no" >&5
11363 echo "${ECHO_T}no" >&6
11364 fi
11365
11366   RANLIB=$ac_ct_RANLIB
11367 else
11368   RANLIB="$ac_cv_prog_RANLIB"
11369 fi
11370
11371 if test -n "$ac_tool_prefix"; then
11372   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11373 set dummy ${ac_tool_prefix}strip; ac_word=$2
11374 echo "$as_me:$LINENO: checking for $ac_word" >&5
11375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11376 if test "${ac_cv_prog_STRIP+set}" = set; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379   if test -n "$STRIP"; then
11380   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11381 else
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11384 do
11385   IFS=$as_save_IFS
11386   test -z "$as_dir" && as_dir=.
11387   for ac_exec_ext in '' $ac_executable_extensions; do
11388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11389     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11391     break 2
11392   fi
11393 done
11394 done
11395
11396 fi
11397 fi
11398 STRIP=$ac_cv_prog_STRIP
11399 if test -n "$STRIP"; then
11400   echo "$as_me:$LINENO: result: $STRIP" >&5
11401 echo "${ECHO_T}$STRIP" >&6
11402 else
11403   echo "$as_me:$LINENO: result: no" >&5
11404 echo "${ECHO_T}no" >&6
11405 fi
11406
11407 fi
11408 if test -z "$ac_cv_prog_STRIP"; then
11409   ac_ct_STRIP=$STRIP
11410   # Extract the first word of "strip", so it can be a program name with args.
11411 set dummy strip; ac_word=$2
11412 echo "$as_me:$LINENO: checking for $ac_word" >&5
11413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11414 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   if test -n "$ac_ct_STRIP"; then
11418   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11422 do
11423   IFS=$as_save_IFS
11424   test -z "$as_dir" && as_dir=.
11425   for ac_exec_ext in '' $ac_executable_extensions; do
11426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427     ac_cv_prog_ac_ct_STRIP="strip"
11428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429     break 2
11430   fi
11431 done
11432 done
11433
11434   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11435 fi
11436 fi
11437 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11438 if test -n "$ac_ct_STRIP"; then
11439   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11440 echo "${ECHO_T}$ac_ct_STRIP" >&6
11441 else
11442   echo "$as_me:$LINENO: result: no" >&5
11443 echo "${ECHO_T}no" >&6
11444 fi
11445
11446   STRIP=$ac_ct_STRIP
11447 else
11448   STRIP="$ac_cv_prog_STRIP"
11449 fi
11450
11451
11452 old_CC="$CC"
11453 old_CFLAGS="$CFLAGS"
11454
11455 # Set sane defaults for various variables
11456 test -z "$AR" && AR=ar
11457 test -z "$AR_FLAGS" && AR_FLAGS=cru
11458 test -z "$AS" && AS=as
11459 test -z "$CC" && CC=cc
11460 test -z "$LTCC" && LTCC=$CC
11461 test -z "$DLLTOOL" && DLLTOOL=dlltool
11462 test -z "$LD" && LD=ld
11463 test -z "$LN_S" && LN_S="ln -s"
11464 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11465 test -z "$NM" && NM=nm
11466 test -z "$SED" && SED=sed
11467 test -z "$OBJDUMP" && OBJDUMP=objdump
11468 test -z "$RANLIB" && RANLIB=:
11469 test -z "$STRIP" && STRIP=:
11470 test -z "$ac_objext" && ac_objext=o
11471
11472 # Determine commands to create old-style static archives.
11473 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11474 old_postinstall_cmds='chmod 644 $oldlib'
11475 old_postuninstall_cmds=
11476
11477 if test -n "$RANLIB"; then
11478   case $host_os in
11479   openbsd*)
11480     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11481     ;;
11482   *)
11483     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11484     ;;
11485   esac
11486   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11487 fi
11488
11489 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11490
11491 # Only perform the check for file, if the check method requires it
11492 case $deplibs_check_method in
11493 file_magic*)
11494   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11495     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11496 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11497 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   case $MAGIC_CMD in
11501 [\\/*] |  ?:[\\/]*)
11502   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11503   ;;
11504 *)
11505   lt_save_MAGIC_CMD="$MAGIC_CMD"
11506   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11507   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11508   for ac_dir in $ac_dummy; do
11509     IFS="$lt_save_ifs"
11510     test -z "$ac_dir" && ac_dir=.
11511     if test -f $ac_dir/${ac_tool_prefix}file; then
11512       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11513       if test -n "$file_magic_test_file"; then
11514         case $deplibs_check_method in
11515         "file_magic "*)
11516           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11517           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11518           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11519             $EGREP "$file_magic_regex" > /dev/null; then
11520             :
11521           else
11522             cat <<EOF 1>&2
11523
11524 *** Warning: the command libtool uses to detect shared libraries,
11525 *** $file_magic_cmd, produces output that libtool cannot recognize.
11526 *** The result is that libtool may fail to recognize shared libraries
11527 *** as such.  This will affect the creation of libtool libraries that
11528 *** depend on shared libraries, but programs linked with such libtool
11529 *** libraries will work regardless of this problem.  Nevertheless, you
11530 *** may want to report the problem to your system manager and/or to
11531 *** bug-libtool@gnu.org
11532
11533 EOF
11534           fi ;;
11535         esac
11536       fi
11537       break
11538     fi
11539   done
11540   IFS="$lt_save_ifs"
11541   MAGIC_CMD="$lt_save_MAGIC_CMD"
11542   ;;
11543 esac
11544 fi
11545
11546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11547 if test -n "$MAGIC_CMD"; then
11548   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11549 echo "${ECHO_T}$MAGIC_CMD" >&6
11550 else
11551   echo "$as_me:$LINENO: result: no" >&5
11552 echo "${ECHO_T}no" >&6
11553 fi
11554
11555 if test -z "$lt_cv_path_MAGIC_CMD"; then
11556   if test -n "$ac_tool_prefix"; then
11557     echo "$as_me:$LINENO: checking for file" >&5
11558 echo $ECHO_N "checking for file... $ECHO_C" >&6
11559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   case $MAGIC_CMD in
11563 [\\/*] |  ?:[\\/]*)
11564   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11565   ;;
11566 *)
11567   lt_save_MAGIC_CMD="$MAGIC_CMD"
11568   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11569   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11570   for ac_dir in $ac_dummy; do
11571     IFS="$lt_save_ifs"
11572     test -z "$ac_dir" && ac_dir=.
11573     if test -f $ac_dir/file; then
11574       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11575       if test -n "$file_magic_test_file"; then
11576         case $deplibs_check_method in
11577         "file_magic "*)
11578           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11579           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11580           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11581             $EGREP "$file_magic_regex" > /dev/null; then
11582             :
11583           else
11584             cat <<EOF 1>&2
11585
11586 *** Warning: the command libtool uses to detect shared libraries,
11587 *** $file_magic_cmd, produces output that libtool cannot recognize.
11588 *** The result is that libtool may fail to recognize shared libraries
11589 *** as such.  This will affect the creation of libtool libraries that
11590 *** depend on shared libraries, but programs linked with such libtool
11591 *** libraries will work regardless of this problem.  Nevertheless, you
11592 *** may want to report the problem to your system manager and/or to
11593 *** bug-libtool@gnu.org
11594
11595 EOF
11596           fi ;;
11597         esac
11598       fi
11599       break
11600     fi
11601   done
11602   IFS="$lt_save_ifs"
11603   MAGIC_CMD="$lt_save_MAGIC_CMD"
11604   ;;
11605 esac
11606 fi
11607
11608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11609 if test -n "$MAGIC_CMD"; then
11610   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11611 echo "${ECHO_T}$MAGIC_CMD" >&6
11612 else
11613   echo "$as_me:$LINENO: result: no" >&5
11614 echo "${ECHO_T}no" >&6
11615 fi
11616
11617   else
11618     MAGIC_CMD=:
11619   fi
11620 fi
11621
11622   fi
11623   ;;
11624 esac
11625
11626 enable_dlopen=yes
11627 enable_win32_dll=no
11628
11629 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11630 if test "${enable_libtool_lock+set}" = set; then
11631   enableval="$enable_libtool_lock"
11632
11633 fi;
11634 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11635
11636
11637 # Check whether --with-pic or --without-pic was given.
11638 if test "${with_pic+set}" = set; then
11639   withval="$with_pic"
11640   pic_mode="$withval"
11641 else
11642   pic_mode=default
11643 fi;
11644 test -z "$pic_mode" && pic_mode=default
11645
11646 # Use C for the default configuration in the libtool script
11647 tagname=
11648 lt_save_CC="$CC"
11649 ac_ext=c
11650 ac_cpp='$CPP $CPPFLAGS'
11651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655
11656 # Source file extension for C test sources.
11657 ac_ext=c
11658
11659 # Object file extension for compiled C test sources.
11660 objext=o
11661 objext=$objext
11662
11663 # Code to be used in simple compile tests
11664 lt_simple_compile_test_code="int some_variable = 0;\n"
11665
11666 # Code to be used in simple link tests
11667 lt_simple_link_test_code='int main(){return(0);}\n'
11668
11669
11670 # If no C compiler was specified, use CC.
11671 LTCC=${LTCC-"$CC"}
11672
11673 # Allow CC to be a program name with arguments.
11674 compiler=$CC
11675
11676
11677 #
11678 # Check for any special shared library compilation flags.
11679 #
11680 lt_prog_cc_shlib=
11681 if test "$GCC" = no; then
11682   case $host_os in
11683   sco3.2v5*)
11684     lt_prog_cc_shlib='-belf'
11685     ;;
11686   esac
11687 fi
11688 if test -n "$lt_prog_cc_shlib"; then
11689   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11690 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11691   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11692   else
11693     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11694 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11695     lt_cv_prog_cc_can_build_shared=no
11696   fi
11697 fi
11698
11699
11700 #
11701 # Check to make sure the static flag actually works.
11702 #
11703 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11704 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11705 if test "${lt_prog_compiler_static_works+set}" = set; then
11706   echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708   lt_prog_compiler_static_works=no
11709    save_LDFLAGS="$LDFLAGS"
11710    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11711    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11712    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11713      # The compiler can only warn and ignore the option if not recognized
11714      # So say no if there are warnings
11715      if test -s conftest.err; then
11716        # Append any errors to the config.log.
11717        cat conftest.err 1>&5
11718      else
11719        lt_prog_compiler_static_works=yes
11720      fi
11721    fi
11722    $rm conftest*
11723    LDFLAGS="$save_LDFLAGS"
11724
11725 fi
11726 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11727 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11728
11729 if test x"$lt_prog_compiler_static_works" = xyes; then
11730     :
11731 else
11732     lt_prog_compiler_static=
11733 fi
11734
11735
11736
11737
11738 lt_prog_compiler_no_builtin_flag=
11739
11740 if test "$GCC" = yes; then
11741   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11742
11743
11744 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11745 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11746 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   lt_cv_prog_compiler_rtti_exceptions=no
11750   ac_outfile=conftest.$ac_objext
11751    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11752    lt_compiler_flag="-fno-rtti -fno-exceptions"
11753    # Insert the option either (1) after the last *FLAGS variable, or
11754    # (2) before a word containing "conftest.", or (3) at the end.
11755    # Note that $ac_compile itself does not contain backslashes and begins
11756    # with a dollar sign (not a hyphen), so the echo should work correctly.
11757    # The option is referenced via a variable to avoid confusing sed.
11758    lt_compile=`echo "$ac_compile" | $SED \
11759    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11761    -e 's:$: $lt_compiler_flag:'`
11762    (eval echo "\"\$as_me:11761: $lt_compile\"" >&5)
11763    (eval "$lt_compile" 2>conftest.err)
11764    ac_status=$?
11765    cat conftest.err >&5
11766    echo "$as_me:11765: \$? = $ac_status" >&5
11767    if (exit $ac_status) && test -s "$ac_outfile"; then
11768      # The compiler can only warn and ignore the option if not recognized
11769      # So say no if there are warnings
11770      if test ! -s conftest.err; then
11771        lt_cv_prog_compiler_rtti_exceptions=yes
11772      fi
11773    fi
11774    $rm conftest*
11775
11776 fi
11777 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11778 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11779
11780 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11781     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11782 else
11783     :
11784 fi
11785
11786 fi
11787
11788 lt_prog_compiler_wl=
11789 lt_prog_compiler_pic=
11790 lt_prog_compiler_static=
11791
11792 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11793 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11794
11795   if test "$GCC" = yes; then
11796     lt_prog_compiler_wl='-Wl,'
11797     lt_prog_compiler_static='-static'
11798
11799     case $host_os in
11800       aix*)
11801       # All AIX code is PIC.
11802       if test "$host_cpu" = ia64; then
11803         # AIX 5 now supports IA64 processor
11804         lt_prog_compiler_static='-Bstatic'
11805       fi
11806       ;;
11807
11808     amigaos*)
11809       # FIXME: we need at least 68020 code to build shared libraries, but
11810       # adding the `-m68020' flag to GCC prevents building anything better,
11811       # like `-m68040'.
11812       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11813       ;;
11814
11815     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11816       # PIC is the default for these OSes.
11817       ;;
11818
11819     mingw* | pw32* | os2*)
11820       # This hack is so that the source file can tell whether it is being
11821       # built for inclusion in a dll (and should export symbols for example).
11822       lt_prog_compiler_pic='-DDLL_EXPORT'
11823       ;;
11824
11825     darwin* | rhapsody*)
11826       # PIC is the default on this platform
11827       # Common symbols not allowed in MH_DYLIB files
11828       lt_prog_compiler_pic='-fno-common'
11829       ;;
11830
11831     msdosdjgpp*)
11832       # Just because we use GCC doesn't mean we suddenly get shared libraries
11833       # on systems that don't support them.
11834       lt_prog_compiler_can_build_shared=no
11835       enable_shared=no
11836       ;;
11837
11838     sysv4*MP*)
11839       if test -d /usr/nec; then
11840         lt_prog_compiler_pic=-Kconform_pic
11841       fi
11842       ;;
11843
11844     hpux*)
11845       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11846       # not for PA HP-UX.
11847       case "$host_cpu" in
11848       hppa*64*|ia64*)
11849         # +Z the default
11850         ;;
11851       *)
11852         lt_prog_compiler_pic='-fPIC'
11853         ;;
11854       esac
11855       ;;
11856
11857     *)
11858       lt_prog_compiler_pic='-fPIC'
11859       ;;
11860     esac
11861   else
11862     # PORTME Check for flag to pass linker flags through the system compiler.
11863     case $host_os in
11864     aix*)
11865       lt_prog_compiler_wl='-Wl,'
11866       if test "$host_cpu" = ia64; then
11867         # AIX 5 now supports IA64 processor
11868         lt_prog_compiler_static='-Bstatic'
11869       else
11870         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11871       fi
11872       ;;
11873       darwin*)
11874         # PIC is the default on this platform
11875         # Common symbols not allowed in MH_DYLIB files
11876        case "$cc_basename" in
11877          xlc*)
11878          lt_prog_compiler_pic='-qnocommon'
11879          lt_prog_compiler_wl='-Wl,'
11880          ;;
11881        esac
11882        ;;
11883
11884     mingw* | pw32* | os2*)
11885       # This hack is so that the source file can tell whether it is being
11886       # built for inclusion in a dll (and should export symbols for example).
11887       lt_prog_compiler_pic='-DDLL_EXPORT'
11888       ;;
11889
11890     hpux9* | hpux10* | hpux11*)
11891       lt_prog_compiler_wl='-Wl,'
11892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11893       # not for PA HP-UX.
11894       case "$host_cpu" in
11895       hppa*64*|ia64*)
11896         # +Z the default
11897         ;;
11898       *)
11899         lt_prog_compiler_pic='+Z'
11900         ;;
11901       esac
11902       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11903       lt_prog_compiler_static='${wl}-a ${wl}archive'
11904       ;;
11905
11906     irix5* | irix6* | nonstopux*)
11907       lt_prog_compiler_wl='-Wl,'
11908       # PIC (with -KPIC) is the default.
11909       lt_prog_compiler_static='-non_shared'
11910       ;;
11911
11912     newsos6)
11913       lt_prog_compiler_pic='-KPIC'
11914       lt_prog_compiler_static='-Bstatic'
11915       ;;
11916
11917     linux*)
11918       case $CC in
11919       icc* | ecc*)
11920         lt_prog_compiler_wl='-Wl,'
11921         lt_prog_compiler_pic='-KPIC'
11922         lt_prog_compiler_static='-static'
11923         ;;
11924       ccc*)
11925         lt_prog_compiler_wl='-Wl,'
11926         # All Alpha code is PIC.
11927         lt_prog_compiler_static='-non_shared'
11928         ;;
11929       esac
11930       ;;
11931
11932     osf3* | osf4* | osf5*)
11933       lt_prog_compiler_wl='-Wl,'
11934       # All OSF/1 code is PIC.
11935       lt_prog_compiler_static='-non_shared'
11936       ;;
11937
11938     sco3.2v5*)
11939       lt_prog_compiler_pic='-Kpic'
11940       lt_prog_compiler_static='-dn'
11941       ;;
11942
11943     solaris*)
11944       lt_prog_compiler_wl='-Wl,'
11945       lt_prog_compiler_pic='-KPIC'
11946       lt_prog_compiler_static='-Bstatic'
11947       ;;
11948
11949     sunos4*)
11950       lt_prog_compiler_wl='-Qoption ld '
11951       lt_prog_compiler_pic='-PIC'
11952       lt_prog_compiler_static='-Bstatic'
11953       ;;
11954
11955     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11956       lt_prog_compiler_wl='-Wl,'
11957       lt_prog_compiler_pic='-KPIC'
11958       lt_prog_compiler_static='-Bstatic'
11959       ;;
11960
11961     sysv4*MP*)
11962       if test -d /usr/nec ;then
11963         lt_prog_compiler_pic='-Kconform_pic'
11964         lt_prog_compiler_static='-Bstatic'
11965       fi
11966       ;;
11967
11968     uts4*)
11969       lt_prog_compiler_pic='-pic'
11970       lt_prog_compiler_static='-Bstatic'
11971       ;;
11972
11973     *)
11974       lt_prog_compiler_can_build_shared=no
11975       ;;
11976     esac
11977   fi
11978
11979 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11980 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11981
11982 #
11983 # Check to make sure the PIC flag actually works.
11984 #
11985 if test -n "$lt_prog_compiler_pic"; then
11986
11987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11989 if test "${lt_prog_compiler_pic_works+set}" = set; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992   lt_prog_compiler_pic_works=no
11993   ac_outfile=conftest.$ac_objext
11994    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11995    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11996    # Insert the option either (1) after the last *FLAGS variable, or
11997    # (2) before a word containing "conftest.", or (3) at the end.
11998    # Note that $ac_compile itself does not contain backslashes and begins
11999    # with a dollar sign (not a hyphen), so the echo should work correctly.
12000    # The option is referenced via a variable to avoid confusing sed.
12001    lt_compile=`echo "$ac_compile" | $SED \
12002    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12004    -e 's:$: $lt_compiler_flag:'`
12005    (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12006    (eval "$lt_compile" 2>conftest.err)
12007    ac_status=$?
12008    cat conftest.err >&5
12009    echo "$as_me:12008: \$? = $ac_status" >&5
12010    if (exit $ac_status) && test -s "$ac_outfile"; then
12011      # The compiler can only warn and ignore the option if not recognized
12012      # So say no if there are warnings
12013      if test ! -s conftest.err; then
12014        lt_prog_compiler_pic_works=yes
12015      fi
12016    fi
12017    $rm conftest*
12018
12019 fi
12020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12021 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12022
12023 if test x"$lt_prog_compiler_pic_works" = xyes; then
12024     case $lt_prog_compiler_pic in
12025      "" | " "*) ;;
12026      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12027      esac
12028 else
12029     lt_prog_compiler_pic=
12030      lt_prog_compiler_can_build_shared=no
12031 fi
12032
12033 fi
12034 case "$host_os" in
12035   # For platforms which do not support PIC, -DPIC is meaningless:
12036   *djgpp*)
12037     lt_prog_compiler_pic=
12038     ;;
12039   *)
12040     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12041     ;;
12042 esac
12043
12044 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12045 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12046 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   lt_cv_prog_compiler_c_o=no
12050    $rm -r conftest 2>/dev/null
12051    mkdir conftest
12052    cd conftest
12053    mkdir out
12054    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12055
12056    lt_compiler_flag="-o out/conftest2.$ac_objext"
12057    # Insert the option either (1) after the last *FLAGS variable, or
12058    # (2) before a word containing "conftest.", or (3) at the end.
12059    # Note that $ac_compile itself does not contain backslashes and begins
12060    # with a dollar sign (not a hyphen), so the echo should work correctly.
12061    lt_compile=`echo "$ac_compile" | $SED \
12062    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12064    -e 's:$: $lt_compiler_flag:'`
12065    (eval echo "\"\$as_me:12064: $lt_compile\"" >&5)
12066    (eval "$lt_compile" 2>out/conftest.err)
12067    ac_status=$?
12068    cat out/conftest.err >&5
12069    echo "$as_me:12068: \$? = $ac_status" >&5
12070    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12071    then
12072      # The compiler can only warn and ignore the option if not recognized
12073      # So say no if there are warnings
12074      if test ! -s out/conftest.err; then
12075        lt_cv_prog_compiler_c_o=yes
12076      fi
12077    fi
12078    chmod u+w .
12079    $rm conftest*
12080    # SGI C++ compiler will create directory out/ii_files/ for
12081    # template instantiation
12082    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12083    $rm out/* && rmdir out
12084    cd ..
12085    rmdir conftest
12086    $rm conftest*
12087
12088 fi
12089 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12090 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12091
12092
12093 hard_links="nottested"
12094 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12095   # do not overwrite the value of need_locks provided by the user
12096   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12097 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12098   hard_links=yes
12099   $rm conftest*
12100   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12101   touch conftest.a
12102   ln conftest.a conftest.b 2>&5 || hard_links=no
12103   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12104   echo "$as_me:$LINENO: result: $hard_links" >&5
12105 echo "${ECHO_T}$hard_links" >&6
12106   if test "$hard_links" = no; then
12107     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12108 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12109     need_locks=warn
12110   fi
12111 else
12112   need_locks=no
12113 fi
12114
12115 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12117
12118   runpath_var=
12119   allow_undefined_flag=
12120   enable_shared_with_static_runtimes=no
12121   archive_cmds=
12122   archive_expsym_cmds=
12123   old_archive_From_new_cmds=
12124   old_archive_from_expsyms_cmds=
12125   export_dynamic_flag_spec=
12126   whole_archive_flag_spec=
12127   thread_safe_flag_spec=
12128   hardcode_libdir_flag_spec=
12129   hardcode_libdir_flag_spec_ld=
12130   hardcode_libdir_separator=
12131   hardcode_direct=no
12132   hardcode_minus_L=no
12133   hardcode_shlibpath_var=unsupported
12134   link_all_deplibs=unknown
12135   hardcode_automatic=no
12136   module_cmds=
12137   module_expsym_cmds=
12138   always_export_symbols=no
12139   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12140   # include_expsyms should be a list of space-separated symbols to be *always*
12141   # included in the symbol list
12142   include_expsyms=
12143   # exclude_expsyms can be an extended regexp of symbols to exclude
12144   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12145   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12146   # as well as any symbol that contains `d'.
12147   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12148   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12149   # platforms (ab)use it in PIC code, but their linkers get confused if
12150   # the symbol is explicitly referenced.  Since portable code cannot
12151   # rely on this symbol name, it's probably fine to never include it in
12152   # preloaded symbol tables.
12153   extract_expsyms_cmds=
12154
12155   case $host_os in
12156   cygwin* | mingw* | pw32*)
12157     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12158     # When not using gcc, we currently assume that we are using
12159     # Microsoft Visual C++.
12160     if test "$GCC" != yes; then
12161       with_gnu_ld=no
12162     fi
12163     ;;
12164   openbsd*)
12165     with_gnu_ld=no
12166     ;;
12167   esac
12168
12169   ld_shlibs=yes
12170   if test "$with_gnu_ld" = yes; then
12171     # If archive_cmds runs LD, not CC, wlarc should be empty
12172     wlarc='${wl}'
12173
12174     # See if GNU ld supports shared libraries.
12175     case $host_os in
12176     aix3* | aix4* | aix5*)
12177       # On AIX/PPC, the GNU linker is very broken
12178       if test "$host_cpu" != ia64; then
12179         ld_shlibs=no
12180         cat <<EOF 1>&2
12181
12182 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12183 *** to be unable to reliably create shared libraries on AIX.
12184 *** Therefore, libtool is disabling shared libraries support.  If you
12185 *** really care for shared libraries, you may want to modify your PATH
12186 *** so that a non-GNU linker is found, and then restart.
12187
12188 EOF
12189       fi
12190       ;;
12191
12192     amigaos*)
12193       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)'
12194       hardcode_libdir_flag_spec='-L$libdir'
12195       hardcode_minus_L=yes
12196
12197       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12198       # that the semantics of dynamic libraries on AmigaOS, at least up
12199       # to version 4, is to share data among multiple programs linked
12200       # with the same dynamic library.  Since this doesn't match the
12201       # behavior of shared libraries on other platforms, we can't use
12202       # them.
12203       ld_shlibs=no
12204       ;;
12205
12206     beos*)
12207       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12208         allow_undefined_flag=unsupported
12209         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12210         # support --undefined.  This deserves some investigation.  FIXME
12211         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212       else
12213         ld_shlibs=no
12214       fi
12215       ;;
12216
12217     cygwin* | mingw* | pw32*)
12218       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12219       # as there is no search path for DLLs.
12220       hardcode_libdir_flag_spec='-L$libdir'
12221       allow_undefined_flag=unsupported
12222       always_export_symbols=no
12223       enable_shared_with_static_runtimes=yes
12224       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12225
12226       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12227         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12228         # If the export-symbols file already is a .def file (1st line
12229         # is EXPORTS), use it as is; otherwise, prepend...
12230         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12231           cp $export_symbols $output_objdir/$soname.def;
12232         else
12233           echo EXPORTS > $output_objdir/$soname.def;
12234           cat $export_symbols >> $output_objdir/$soname.def;
12235         fi~
12236         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12237       else
12238         ld_shlibs=no
12239       fi
12240       ;;
12241
12242     netbsd*)
12243       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12244         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12245         wlarc=
12246       else
12247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12249       fi
12250       ;;
12251
12252     solaris* | sysv5*)
12253       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12254         ld_shlibs=no
12255         cat <<EOF 1>&2
12256
12257 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12258 *** create shared libraries on Solaris systems.  Therefore, libtool
12259 *** is disabling shared libraries support.  We urge you to upgrade GNU
12260 *** binutils to release 2.9.1 or newer.  Another option is to modify
12261 *** your PATH or compiler configuration so that the native linker is
12262 *** used, and then restart.
12263
12264 EOF
12265       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12268       else
12269         ld_shlibs=no
12270       fi
12271       ;;
12272
12273     sunos4*)
12274       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12275       wlarc=
12276       hardcode_direct=yes
12277       hardcode_shlibpath_var=no
12278       ;;
12279
12280   linux*)
12281     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12282         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283         archive_cmds="$tmp_archive_cmds"
12284       supports_anon_versioning=no
12285       case `$LD -v 2>/dev/null` in
12286         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12287         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12288         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12289         *\ 2.11.*) ;; # other 2.11 versions
12290         *) supports_anon_versioning=yes ;;
12291       esac
12292       if test $supports_anon_versioning = yes; then
12293         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12295 $echo "local: *; };" >> $output_objdir/$libname.ver~
12296         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12297       else
12298         archive_expsym_cmds="$tmp_archive_cmds"
12299       fi
12300     else
12301       ld_shlibs=no
12302     fi
12303     ;;
12304
12305     *)
12306       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12307         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12308         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12309       else
12310         ld_shlibs=no
12311       fi
12312       ;;
12313     esac
12314
12315     if test "$ld_shlibs" = yes; then
12316       runpath_var=LD_RUN_PATH
12317       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12318       export_dynamic_flag_spec='${wl}--export-dynamic'
12319       # ancient GNU ld didn't support --whole-archive et. al.
12320       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12321         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12322       else
12323         whole_archive_flag_spec=
12324       fi
12325     fi
12326   else
12327     # PORTME fill in a description of your system's linker (not GNU ld)
12328     case $host_os in
12329     aix3*)
12330       allow_undefined_flag=unsupported
12331       always_export_symbols=yes
12332       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'
12333       # Note: this linker hardcodes the directories in LIBPATH if there
12334       # are no directories specified by -L.
12335       hardcode_minus_L=yes
12336       if test "$GCC" = yes && test -z "$link_static_flag"; then
12337         # Neither direct hardcoding nor static linking is supported with a
12338         # broken collect2.
12339         hardcode_direct=unsupported
12340       fi
12341       ;;
12342
12343     aix4* | aix5*)
12344       if test "$host_cpu" = ia64; then
12345         # On IA64, the linker does run time linking by default, so we don't
12346         # have to do anything special.
12347         aix_use_runtimelinking=no
12348         exp_sym_flag='-Bexport'
12349         no_entry_flag=""
12350       else
12351         # If we're using GNU nm, then we don't want the "-C" option.
12352         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12353         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12354           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'
12355         else
12356           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'
12357         fi
12358         aix_use_runtimelinking=no
12359
12360         # Test if we are trying to use run time linking or normal
12361         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12362         # need to do runtime linking.
12363         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12364           for ld_flag in $LDFLAGS; do
12365           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12366             aix_use_runtimelinking=yes
12367             break
12368           fi
12369           done
12370         esac
12371
12372         exp_sym_flag='-bexport'
12373         no_entry_flag='-bnoentry'
12374       fi
12375
12376       # When large executables or shared objects are built, AIX ld can
12377       # have problems creating the table of contents.  If linking a library
12378       # or program results in "error TOC overflow" add -mminimal-toc to
12379       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12380       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12381
12382       archive_cmds=''
12383       hardcode_direct=yes
12384       hardcode_libdir_separator=':'
12385       link_all_deplibs=yes
12386
12387       if test "$GCC" = yes; then
12388         case $host_os in aix4.012|aix4.012.*)
12389         # We only want to do this on AIX 4.2 and lower, the check
12390         # below for broken collect2 doesn't work under 4.3+
12391           collect2name=`${CC} -print-prog-name=collect2`
12392           if test -f "$collect2name" && \
12393            strings "$collect2name" | grep resolve_lib_name >/dev/null
12394           then
12395           # We have reworked collect2
12396           hardcode_direct=yes
12397           else
12398           # We have old collect2
12399           hardcode_direct=unsupported
12400           # It fails to find uninstalled libraries when the uninstalled
12401           # path is not listed in the libpath.  Setting hardcode_minus_L
12402           # to unsupported forces relinking
12403           hardcode_minus_L=yes
12404           hardcode_libdir_flag_spec='-L$libdir'
12405           hardcode_libdir_separator=
12406           fi
12407         esac
12408         shared_flag='-shared'
12409       else
12410         # not using gcc
12411         if test "$host_cpu" = ia64; then
12412         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12413         # chokes on -Wl,-G. The following line is correct:
12414           shared_flag='-G'
12415         else
12416         if test "$aix_use_runtimelinking" = yes; then
12417             shared_flag='${wl}-G'
12418           else
12419             shared_flag='${wl}-bM:SRE'
12420         fi
12421         fi
12422       fi
12423
12424       # It seems that -bexpall does not export symbols beginning with
12425       # underscore (_), so it is better to generate a list of symbols to export.
12426       always_export_symbols=yes
12427       if test "$aix_use_runtimelinking" = yes; then
12428         # Warning - without using the other runtime loading flags (-brtl),
12429         # -berok will link without error, but may produce a broken library.
12430         allow_undefined_flag='-berok'
12431        # Determine the default libpath from the value encoded in an empty executable.
12432        cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12438
12439 int
12440 main ()
12441 {
12442
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449   (eval $ac_link) 2>conftest.er1
12450   ac_status=$?
12451   grep -v '^ *+' conftest.er1 >conftest.err
12452   rm -f conftest.er1
12453   cat conftest.err >&5
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } &&
12456          { ac_try='test -z "$ac_c_werror_flag"
12457                          || test ! -s conftest.err'
12458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459   (eval $ac_try) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; } &&
12463          { ac_try='test -s conftest$ac_exeext'
12464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465   (eval $ac_try) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469
12470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12471 }'`
12472 # Check for a 64-bit object if we didn't find anything.
12473 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; }
12474 }'`; fi
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 fi
12480 rm -f conftest.err conftest.$ac_objext \
12481       conftest$ac_exeext conftest.$ac_ext
12482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12483
12484        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12485         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"
12486        else
12487         if test "$host_cpu" = ia64; then
12488           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12489           allow_undefined_flag="-z nodefs"
12490           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"
12491         else
12492          # Determine the default libpath from the value encoded in an empty executable.
12493          cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499
12500 int
12501 main ()
12502 {
12503
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510   (eval $ac_link) 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } &&
12517          { ac_try='test -z "$ac_c_werror_flag"
12518                          || test ! -s conftest.err'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; } &&
12524          { ac_try='test -s conftest$ac_exeext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530
12531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12532 }'`
12533 # Check for a 64-bit object if we didn't find anything.
12534 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; }
12535 }'`; fi
12536 else
12537   echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12539
12540 fi
12541 rm -f conftest.err conftest.$ac_objext \
12542       conftest$ac_exeext conftest.$ac_ext
12543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12544
12545          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12546           # Warning - without using the other run time loading flags,
12547           # -berok will link without error, but may produce a broken library.
12548           no_undefined_flag=' ${wl}-bernotok'
12549           allow_undefined_flag=' ${wl}-berok'
12550           # -bexpall does not export symbols beginning with underscore (_)
12551           always_export_symbols=yes
12552           # Exported symbols can be pulled into shared objects from archives
12553           whole_archive_flag_spec=' '
12554           archive_cmds_need_lc=yes
12555           # This is similar to how AIX traditionally builds it's shared libraries.
12556           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'
12557         fi
12558       fi
12559       ;;
12560
12561     amigaos*)
12562       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)'
12563       hardcode_libdir_flag_spec='-L$libdir'
12564       hardcode_minus_L=yes
12565       # see comment about different semantics on the GNU ld section
12566       ld_shlibs=no
12567       ;;
12568
12569     bsdi[45]*)
12570       export_dynamic_flag_spec=-rdynamic
12571       ;;
12572
12573     cygwin* | mingw* | pw32*)
12574       # When not using gcc, we currently assume that we are using
12575       # Microsoft Visual C++.
12576       # hardcode_libdir_flag_spec is actually meaningless, as there is
12577       # no search path for DLLs.
12578       hardcode_libdir_flag_spec=' '
12579       allow_undefined_flag=unsupported
12580       # Tell ltmain to make .lib files, not .a files.
12581       libext=lib
12582       # Tell ltmain to make .dll files, not .so files.
12583       shrext_cmds=".dll"
12584       # FIXME: Setting linknames here is a bad hack.
12585       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12586       # The linker will automatically build a .lib file if we build a DLL.
12587       old_archive_From_new_cmds='true'
12588       # FIXME: Should let the user specify the lib program.
12589       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12590       fix_srcfile_path='`cygpath -w "$srcfile"`'
12591       enable_shared_with_static_runtimes=yes
12592       ;;
12593
12594     darwin* | rhapsody*)
12595       case "$host_os" in
12596         rhapsody* | darwin1.[012])
12597          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12598          ;;
12599        *) # Darwin 1.3 on
12600          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12601            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12602          else
12603            case ${MACOSX_DEPLOYMENT_TARGET} in
12604              10.[012])
12605                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12606                ;;
12607              10.*)
12608                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12609                ;;
12610            esac
12611          fi
12612          ;;
12613       esac
12614       archive_cmds_need_lc=no
12615       hardcode_direct=no
12616       hardcode_automatic=yes
12617       hardcode_shlibpath_var=unsupported
12618       whole_archive_flag_spec=''
12619       link_all_deplibs=yes
12620     if test "$GCC" = yes ; then
12621         output_verbose_link_cmd='echo'
12622         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12623       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12624       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12625       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12626       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12627     else
12628       case "$cc_basename" in
12629         xlc*)
12630          output_verbose_link_cmd='echo'
12631          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12632          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12633           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12634          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}'
12635           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}'
12636           ;;
12637        *)
12638          ld_shlibs=no
12639           ;;
12640       esac
12641     fi
12642       ;;
12643
12644     dgux*)
12645       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12646       hardcode_libdir_flag_spec='-L$libdir'
12647       hardcode_shlibpath_var=no
12648       ;;
12649
12650     freebsd1*)
12651       ld_shlibs=no
12652       ;;
12653
12654     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12655     # support.  Future versions do this automatically, but an explicit c++rt0.o
12656     # does not break anything, and helps significantly (at the cost of a little
12657     # extra space).
12658     freebsd2.2*)
12659       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12660       hardcode_libdir_flag_spec='-R$libdir'
12661       hardcode_direct=yes
12662       hardcode_shlibpath_var=no
12663       ;;
12664
12665     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12666     freebsd2*)
12667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12668       hardcode_direct=yes
12669       hardcode_minus_L=yes
12670       hardcode_shlibpath_var=no
12671       ;;
12672
12673     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12674     freebsd* | kfreebsd*-gnu)
12675       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12676       hardcode_libdir_flag_spec='-R$libdir'
12677       hardcode_direct=yes
12678       hardcode_shlibpath_var=no
12679       ;;
12680
12681     hpux9*)
12682       if test "$GCC" = yes; then
12683         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'
12684       else
12685         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'
12686       fi
12687       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12688       hardcode_libdir_separator=:
12689       hardcode_direct=yes
12690
12691       # hardcode_minus_L: Not really in the search PATH,
12692       # but as the default location of the library.
12693       hardcode_minus_L=yes
12694       export_dynamic_flag_spec='${wl}-E'
12695       ;;
12696
12697     hpux10* | hpux11*)
12698       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12699         case "$host_cpu" in
12700         hppa*64*|ia64*)
12701           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12702           ;;
12703         *)
12704           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12705           ;;
12706         esac
12707       else
12708         case "$host_cpu" in
12709         hppa*64*|ia64*)
12710           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12711           ;;
12712         *)
12713           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12714           ;;
12715         esac
12716       fi
12717       if test "$with_gnu_ld" = no; then
12718         case "$host_cpu" in
12719         hppa*64*)
12720           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12721           hardcode_libdir_flag_spec_ld='+b $libdir'
12722           hardcode_libdir_separator=:
12723           hardcode_direct=no
12724           hardcode_shlibpath_var=no
12725           ;;
12726         ia64*)
12727           hardcode_libdir_flag_spec='-L$libdir'
12728           hardcode_direct=no
12729           hardcode_shlibpath_var=no
12730
12731           # hardcode_minus_L: Not really in the search PATH,
12732           # but as the default location of the library.
12733           hardcode_minus_L=yes
12734           ;;
12735         *)
12736           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12737           hardcode_libdir_separator=:
12738           hardcode_direct=yes
12739           export_dynamic_flag_spec='${wl}-E'
12740
12741           # hardcode_minus_L: Not really in the search PATH,
12742           # but as the default location of the library.
12743           hardcode_minus_L=yes
12744           ;;
12745         esac
12746       fi
12747       ;;
12748
12749     irix5* | irix6* | nonstopux*)
12750       if test "$GCC" = yes; then
12751         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'
12752       else
12753         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'
12754         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12755       fi
12756       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12757       hardcode_libdir_separator=:
12758       link_all_deplibs=yes
12759       ;;
12760
12761     netbsd*)
12762       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12763         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12764       else
12765         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12766       fi
12767       hardcode_libdir_flag_spec='-R$libdir'
12768       hardcode_direct=yes
12769       hardcode_shlibpath_var=no
12770       ;;
12771
12772     newsos6)
12773       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12774       hardcode_direct=yes
12775       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12776       hardcode_libdir_separator=:
12777       hardcode_shlibpath_var=no
12778       ;;
12779
12780     openbsd*)
12781       hardcode_direct=yes
12782       hardcode_shlibpath_var=no
12783       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12784         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12785         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12786         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12787         export_dynamic_flag_spec='${wl}-E'
12788       else
12789        case $host_os in
12790          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12791            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12792            hardcode_libdir_flag_spec='-R$libdir'
12793            ;;
12794          *)
12795            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12796            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12797            ;;
12798        esac
12799       fi
12800       ;;
12801
12802     os2*)
12803       hardcode_libdir_flag_spec='-L$libdir'
12804       hardcode_minus_L=yes
12805       allow_undefined_flag=unsupported
12806       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'
12807       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12808       ;;
12809
12810     osf3*)
12811       if test "$GCC" = yes; then
12812         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12813         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'
12814       else
12815         allow_undefined_flag=' -expect_unresolved \*'
12816         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'
12817       fi
12818       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12819       hardcode_libdir_separator=:
12820       ;;
12821
12822     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12823       if test "$GCC" = yes; then
12824         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12825         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'
12826         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12827       else
12828         allow_undefined_flag=' -expect_unresolved \*'
12829         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'
12830         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12831         $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'
12832
12833         # Both c and cxx compiler support -rpath directly
12834         hardcode_libdir_flag_spec='-rpath $libdir'
12835       fi
12836       hardcode_libdir_separator=:
12837       ;;
12838
12839     sco3.2v5*)
12840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12841       hardcode_shlibpath_var=no
12842       export_dynamic_flag_spec='${wl}-Bexport'
12843       runpath_var=LD_RUN_PATH
12844       hardcode_runpath_var=yes
12845       ;;
12846
12847     solaris*)
12848       no_undefined_flag=' -z text'
12849       if test "$GCC" = yes; then
12850         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12851         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12852           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12853       else
12854         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12856         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12857       fi
12858       hardcode_libdir_flag_spec='-R$libdir'
12859       hardcode_shlibpath_var=no
12860       case $host_os in
12861       solaris2.[0-5] | solaris2.[0-5].*) ;;
12862       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12863         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12864       esac
12865       link_all_deplibs=yes
12866       ;;
12867
12868     sunos4*)
12869       if test "x$host_vendor" = xsequent; then
12870         # Use $CC to link under sequent, because it throws in some extra .o
12871         # files that make .init and .fini sections work.
12872         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12873       else
12874         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12875       fi
12876       hardcode_libdir_flag_spec='-L$libdir'
12877       hardcode_direct=yes
12878       hardcode_minus_L=yes
12879       hardcode_shlibpath_var=no
12880       ;;
12881
12882     sysv4)
12883       case $host_vendor in
12884         sni)
12885           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12886           hardcode_direct=yes # is this really true???
12887         ;;
12888         siemens)
12889           ## LD is ld it makes a PLAMLIB
12890           ## CC just makes a GrossModule.
12891           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12892           reload_cmds='$CC -r -o $output$reload_objs'
12893           hardcode_direct=no
12894         ;;
12895         motorola)
12896           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12898         ;;
12899       esac
12900       runpath_var='LD_RUN_PATH'
12901       hardcode_shlibpath_var=no
12902       ;;
12903
12904     sysv4.3*)
12905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906       hardcode_shlibpath_var=no
12907       export_dynamic_flag_spec='-Bexport'
12908       ;;
12909
12910     sysv4*MP*)
12911       if test -d /usr/nec; then
12912         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913         hardcode_shlibpath_var=no
12914         runpath_var=LD_RUN_PATH
12915         hardcode_runpath_var=yes
12916         ld_shlibs=yes
12917       fi
12918       ;;
12919
12920     sysv4.2uw2*)
12921       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12922       hardcode_direct=yes
12923       hardcode_minus_L=no
12924       hardcode_shlibpath_var=no
12925       hardcode_runpath_var=yes
12926       runpath_var=LD_RUN_PATH
12927       ;;
12928
12929    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12930       no_undefined_flag='${wl}-z ${wl}text'
12931       if test "$GCC" = yes; then
12932         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12933       else
12934         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12935       fi
12936       runpath_var='LD_RUN_PATH'
12937       hardcode_shlibpath_var=no
12938       ;;
12939
12940     sysv5*)
12941       no_undefined_flag=' -z text'
12942       # $CC -shared without GNU ld will not create a library from C++
12943       # object files and a static libstdc++, better avoid it by now
12944       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12946                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12947       hardcode_libdir_flag_spec=
12948       hardcode_shlibpath_var=no
12949       runpath_var='LD_RUN_PATH'
12950       ;;
12951
12952     uts4*)
12953       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954       hardcode_libdir_flag_spec='-L$libdir'
12955       hardcode_shlibpath_var=no
12956       ;;
12957
12958     *)
12959       ld_shlibs=no
12960       ;;
12961     esac
12962   fi
12963
12964 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12965 echo "${ECHO_T}$ld_shlibs" >&6
12966 test "$ld_shlibs" = no && can_build_shared=no
12967
12968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12969 if test "$GCC" = yes; then
12970   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12971 fi
12972
12973 #
12974 # Do we need to explicitly link libc?
12975 #
12976 case "x$archive_cmds_need_lc" in
12977 x|xyes)
12978   # Assume -lc should be added
12979   archive_cmds_need_lc=yes
12980
12981   if test "$enable_shared" = yes && test "$GCC" = yes; then
12982     case $archive_cmds in
12983     *'~'*)
12984       # FIXME: we may have to deal with multi-command sequences.
12985       ;;
12986     '$CC '*)
12987       # Test whether the compiler implicitly links with -lc since on some
12988       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12989       # to ld, don't add -lc before -lgcc.
12990       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12991 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12992       $rm conftest*
12993       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12994
12995       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996   (eval $ac_compile) 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); } 2>conftest.err; then
13000         soname=conftest
13001         lib=conftest
13002         libobjs=conftest.$ac_objext
13003         deplibs=
13004         wl=$lt_prog_compiler_wl
13005         compiler_flags=-v
13006         linker_flags=-v
13007         verstring=
13008         output_objdir=.
13009         libname=conftest
13010         lt_save_allow_undefined_flag=$allow_undefined_flag
13011         allow_undefined_flag=
13012         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13013   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }
13017         then
13018           archive_cmds_need_lc=no
13019         else
13020           archive_cmds_need_lc=yes
13021         fi
13022         allow_undefined_flag=$lt_save_allow_undefined_flag
13023       else
13024         cat conftest.err 1>&5
13025       fi
13026       $rm conftest*
13027       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13028 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13029       ;;
13030     esac
13031   fi
13032   ;;
13033 esac
13034
13035 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13037 library_names_spec=
13038 libname_spec='lib$name'
13039 soname_spec=
13040 shrext_cmds=".so"
13041 postinstall_cmds=
13042 postuninstall_cmds=
13043 finish_cmds=
13044 finish_eval=
13045 shlibpath_var=
13046 shlibpath_overrides_runpath=unknown
13047 version_type=none
13048 dynamic_linker="$host_os ld.so"
13049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13050 if test "$GCC" = yes; then
13051   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13052   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13053     # if the path contains ";" then we assume it to be the separator
13054     # otherwise default to the standard path separator (i.e. ":") - it is
13055     # assumed that no part of a normal pathname contains ";" but that should
13056     # okay in the real world where ";" in dirpaths is itself problematic.
13057     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13058   else
13059     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13060   fi
13061 else
13062   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13063 fi
13064 need_lib_prefix=unknown
13065 hardcode_into_libs=no
13066
13067 # when you set need_version to no, make sure it does not cause -set_version
13068 # flags to be left without arguments
13069 need_version=unknown
13070
13071 case $host_os in
13072 aix3*)
13073   version_type=linux
13074   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13075   shlibpath_var=LIBPATH
13076
13077   # AIX 3 has no versioning support, so we append a major version to the name.
13078   soname_spec='${libname}${release}${shared_ext}$major'
13079   ;;
13080
13081 aix4* | aix5*)
13082   version_type=linux
13083   need_lib_prefix=no
13084   need_version=no
13085   hardcode_into_libs=yes
13086   if test "$host_cpu" = ia64; then
13087     # AIX 5 supports IA64
13088     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13089     shlibpath_var=LD_LIBRARY_PATH
13090   else
13091     # With GCC up to 2.95.x, collect2 would create an import file
13092     # for dependence libraries.  The import file would start with
13093     # the line `#! .'.  This would cause the generated library to
13094     # depend on `.', always an invalid library.  This was fixed in
13095     # development snapshots of GCC prior to 3.0.
13096     case $host_os in
13097       aix4 | aix4.[01] | aix4.[01].*)
13098       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13099            echo ' yes '
13100            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13101         :
13102       else
13103         can_build_shared=no
13104       fi
13105       ;;
13106     esac
13107     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13108     # soname into executable. Probably we can add versioning support to
13109     # collect2, so additional links can be useful in future.
13110     if test "$aix_use_runtimelinking" = yes; then
13111       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13112       # instead of lib<name>.a to let people know that these are not
13113       # typical AIX shared libraries.
13114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13115     else
13116       # We preserve .a as extension for shared libraries through AIX4.2
13117       # and later when we are not doing run time linking.
13118       library_names_spec='${libname}${release}.a $libname.a'
13119       soname_spec='${libname}${release}${shared_ext}$major'
13120     fi
13121     shlibpath_var=LIBPATH
13122   fi
13123   ;;
13124
13125 amigaos*)
13126   library_names_spec='$libname.ixlibrary $libname.a'
13127   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13128   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'
13129   ;;
13130
13131 beos*)
13132   library_names_spec='${libname}${shared_ext}'
13133   dynamic_linker="$host_os ld.so"
13134   shlibpath_var=LIBRARY_PATH
13135   ;;
13136
13137 bsdi[45]*)
13138   version_type=linux
13139   need_version=no
13140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141   soname_spec='${libname}${release}${shared_ext}$major'
13142   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13143   shlibpath_var=LD_LIBRARY_PATH
13144   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13145   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13146   # the default ld.so.conf also contains /usr/contrib/lib and
13147   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13148   # libtool to hard-code these into programs
13149   ;;
13150
13151 cygwin* | mingw* | pw32*)
13152   version_type=windows
13153   shrext_cmds=".dll"
13154   need_version=no
13155   need_lib_prefix=no
13156
13157   case $GCC,$host_os in
13158   yes,cygwin* | yes,mingw* | yes,pw32*)
13159     library_names_spec='$libname.dll.a'
13160     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13161     postinstall_cmds='base_file=`basename \${file}`~
13162       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13163       dldir=$destdir/`dirname \$dlpath`~
13164       test -d \$dldir || mkdir -p \$dldir~
13165       $install_prog $dir/$dlname \$dldir/$dlname'
13166     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13167       dlpath=$dir/\$dldll~
13168        $rm \$dlpath'
13169     shlibpath_overrides_runpath=yes
13170
13171     case $host_os in
13172     cygwin*)
13173       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13174       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13175       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13176       ;;
13177     mingw*)
13178       # MinGW DLLs use traditional 'lib' prefix
13179       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13180       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13181       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13182         # It is most probably a Windows format PATH printed by
13183         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13184         # path with ; separators, and with drive letters. We can handle the
13185         # drive letters (cygwin fileutils understands them), so leave them,
13186         # especially as we might pass files found there to a mingw objdump,
13187         # which wouldn't understand a cygwinified path. Ahh.
13188         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13189       else
13190         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13191       fi
13192       ;;
13193     pw32*)
13194       # pw32 DLLs use 'pw' prefix rather than 'lib'
13195       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13196       ;;
13197     esac
13198     ;;
13199
13200   *)
13201     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13202     ;;
13203   esac
13204   dynamic_linker='Win32 ld.exe'
13205   # FIXME: first we should search . and the directory the executable is in
13206   shlibpath_var=PATH
13207   ;;
13208
13209 darwin* | rhapsody*)
13210   dynamic_linker="$host_os dyld"
13211   version_type=darwin
13212   need_lib_prefix=no
13213   need_version=no
13214   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13215   soname_spec='${libname}${release}${major}$shared_ext'
13216   shlibpath_overrides_runpath=yes
13217   shlibpath_var=DYLD_LIBRARY_PATH
13218   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13219   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13220   if test "$GCC" = yes; then
13221     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"`
13222   else
13223     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13224   fi
13225   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13226   ;;
13227
13228 dgux*)
13229   version_type=linux
13230   need_lib_prefix=no
13231   need_version=no
13232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13233   soname_spec='${libname}${release}${shared_ext}$major'
13234   shlibpath_var=LD_LIBRARY_PATH
13235   ;;
13236
13237 freebsd1*)
13238   dynamic_linker=no
13239   ;;
13240
13241 kfreebsd*-gnu)
13242   version_type=linux
13243   need_lib_prefix=no
13244   need_version=no
13245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13246   soname_spec='${libname}${release}${shared_ext}$major'
13247   shlibpath_var=LD_LIBRARY_PATH
13248   shlibpath_overrides_runpath=no
13249   hardcode_into_libs=yes
13250   dynamic_linker='GNU ld.so'
13251   ;;
13252
13253 freebsd*)
13254   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13255   version_type=freebsd-$objformat
13256   case $version_type in
13257     freebsd-elf*)
13258       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13259       need_version=no
13260       need_lib_prefix=no
13261       ;;
13262     freebsd-*)
13263       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13264       need_version=yes
13265       ;;
13266   esac
13267   shlibpath_var=LD_LIBRARY_PATH
13268   case $host_os in
13269   freebsd2*)
13270     shlibpath_overrides_runpath=yes
13271     ;;
13272   freebsd3.01* | freebsdelf3.01*)
13273     shlibpath_overrides_runpath=yes
13274     hardcode_into_libs=yes
13275     ;;
13276   *) # from 3.2 on
13277     shlibpath_overrides_runpath=no
13278     hardcode_into_libs=yes
13279     ;;
13280   esac
13281   ;;
13282
13283 gnu*)
13284   version_type=linux
13285   need_lib_prefix=no
13286   need_version=no
13287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13288   soname_spec='${libname}${release}${shared_ext}$major'
13289   shlibpath_var=LD_LIBRARY_PATH
13290   hardcode_into_libs=yes
13291   ;;
13292
13293 hpux9* | hpux10* | hpux11*)
13294   # Give a soname corresponding to the major version so that dld.sl refuses to
13295   # link against other versions.
13296   version_type=sunos
13297   need_lib_prefix=no
13298   need_version=no
13299   case "$host_cpu" in
13300   ia64*)
13301     shrext_cmds='.so'
13302     hardcode_into_libs=yes
13303     dynamic_linker="$host_os dld.so"
13304     shlibpath_var=LD_LIBRARY_PATH
13305     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307     soname_spec='${libname}${release}${shared_ext}$major'
13308     if test "X$HPUX_IA64_MODE" = X32; then
13309       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13310     else
13311       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13312     fi
13313     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13314     ;;
13315    hppa*64*)
13316      shrext_cmds='.sl'
13317      hardcode_into_libs=yes
13318      dynamic_linker="$host_os dld.sl"
13319      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13320      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13321      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13322      soname_spec='${libname}${release}${shared_ext}$major'
13323      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13324      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13325      ;;
13326    *)
13327     shrext_cmds='.sl'
13328     dynamic_linker="$host_os dld.sl"
13329     shlibpath_var=SHLIB_PATH
13330     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332     soname_spec='${libname}${release}${shared_ext}$major'
13333     ;;
13334   esac
13335   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13336   postinstall_cmds='chmod 555 $lib'
13337   ;;
13338
13339 irix5* | irix6* | nonstopux*)
13340   case $host_os in
13341     nonstopux*) version_type=nonstopux ;;
13342     *)
13343         if test "$lt_cv_prog_gnu_ld" = yes; then
13344                 version_type=linux
13345         else
13346                 version_type=irix
13347         fi ;;
13348   esac
13349   need_lib_prefix=no
13350   need_version=no
13351   soname_spec='${libname}${release}${shared_ext}$major'
13352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13353   case $host_os in
13354   irix5* | nonstopux*)
13355     libsuff= shlibsuff=
13356     ;;
13357   *)
13358     case $LD in # libtool.m4 will add one of these switches to LD
13359     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13360       libsuff= shlibsuff= libmagic=32-bit;;
13361     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13362       libsuff=32 shlibsuff=N32 libmagic=N32;;
13363     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13364       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13365     *) libsuff= shlibsuff= libmagic=never-match;;
13366     esac
13367     ;;
13368   esac
13369   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13370   shlibpath_overrides_runpath=no
13371   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13372   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13373   hardcode_into_libs=yes
13374   ;;
13375
13376 # No shared lib support for Linux oldld, aout, or coff.
13377 linux*oldld* | linux*aout* | linux*coff*)
13378   dynamic_linker=no
13379   ;;
13380
13381 # This must be Linux ELF.
13382 linux*)
13383   version_type=linux
13384   need_lib_prefix=no
13385   need_version=no
13386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387   soname_spec='${libname}${release}${shared_ext}$major'
13388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13389   shlibpath_var=LD_LIBRARY_PATH
13390   shlibpath_overrides_runpath=no
13391   # This implies no fast_install, which is unacceptable.
13392   # Some rework will be needed to allow for fast_install
13393   # before this can be enabled.
13394   hardcode_into_libs=yes
13395
13396   # Append ld.so.conf contents to the search path
13397   if test -f /etc/ld.so.conf; then
13398     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13399     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13400   fi
13401
13402   # We used to test for /lib/ld.so.1 and disable shared libraries on
13403   # powerpc, because MkLinux only supported shared libraries with the
13404   # GNU dynamic linker.  Since this was broken with cross compilers,
13405   # most powerpc-linux boxes support dynamic linking these days and
13406   # people can always --disable-shared, the test was removed, and we
13407   # assume the GNU/Linux dynamic linker is in use.
13408   dynamic_linker='GNU/Linux ld.so'
13409   ;;
13410
13411 knetbsd*-gnu)
13412   version_type=linux
13413   need_lib_prefix=no
13414   need_version=no
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13416   soname_spec='${libname}${release}${shared_ext}$major'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   shlibpath_overrides_runpath=no
13419   hardcode_into_libs=yes
13420   dynamic_linker='GNU ld.so'
13421   ;;
13422
13423 netbsd*)
13424   version_type=sunos
13425   need_lib_prefix=no
13426   need_version=no
13427   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13429     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13430     dynamic_linker='NetBSD (a.out) ld.so'
13431   else
13432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13433     soname_spec='${libname}${release}${shared_ext}$major'
13434     dynamic_linker='NetBSD ld.elf_so'
13435   fi
13436   shlibpath_var=LD_LIBRARY_PATH
13437   shlibpath_overrides_runpath=yes
13438   hardcode_into_libs=yes
13439   ;;
13440
13441 newsos6)
13442   version_type=linux
13443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444   shlibpath_var=LD_LIBRARY_PATH
13445   shlibpath_overrides_runpath=yes
13446   ;;
13447
13448 nto-qnx*)
13449   version_type=linux
13450   need_lib_prefix=no
13451   need_version=no
13452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453   soname_spec='${libname}${release}${shared_ext}$major'
13454   shlibpath_var=LD_LIBRARY_PATH
13455   shlibpath_overrides_runpath=yes
13456   ;;
13457
13458 openbsd*)
13459   version_type=sunos
13460   need_lib_prefix=no
13461   need_version=no
13462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13463   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13464   shlibpath_var=LD_LIBRARY_PATH
13465   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13466     case $host_os in
13467       openbsd2.[89] | openbsd2.[89].*)
13468         shlibpath_overrides_runpath=no
13469         ;;
13470       *)
13471         shlibpath_overrides_runpath=yes
13472         ;;
13473       esac
13474   else
13475     shlibpath_overrides_runpath=yes
13476   fi
13477   ;;
13478
13479 os2*)
13480   libname_spec='$name'
13481   shrext_cmds=".dll"
13482   need_lib_prefix=no
13483   library_names_spec='$libname${shared_ext} $libname.a'
13484   dynamic_linker='OS/2 ld.exe'
13485   shlibpath_var=LIBPATH
13486   ;;
13487
13488 osf3* | osf4* | osf5*)
13489   version_type=osf
13490   need_lib_prefix=no
13491   need_version=no
13492   soname_spec='${libname}${release}${shared_ext}$major'
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494   shlibpath_var=LD_LIBRARY_PATH
13495   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13496   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13497   ;;
13498
13499 sco3.2v5*)
13500   version_type=osf
13501   soname_spec='${libname}${release}${shared_ext}$major'
13502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503   shlibpath_var=LD_LIBRARY_PATH
13504   ;;
13505
13506 solaris*)
13507   version_type=linux
13508   need_lib_prefix=no
13509   need_version=no
13510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13511   soname_spec='${libname}${release}${shared_ext}$major'
13512   shlibpath_var=LD_LIBRARY_PATH
13513   shlibpath_overrides_runpath=yes
13514   hardcode_into_libs=yes
13515   # ldd complains unless libraries are executable
13516   postinstall_cmds='chmod +x $lib'
13517   ;;
13518
13519 sunos4*)
13520   version_type=sunos
13521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13522   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13523   shlibpath_var=LD_LIBRARY_PATH
13524   shlibpath_overrides_runpath=yes
13525   if test "$with_gnu_ld" = yes; then
13526     need_lib_prefix=no
13527   fi
13528   need_version=yes
13529   ;;
13530
13531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13532   version_type=linux
13533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13534   soname_spec='${libname}${release}${shared_ext}$major'
13535   shlibpath_var=LD_LIBRARY_PATH
13536   case $host_vendor in
13537     sni)
13538       shlibpath_overrides_runpath=no
13539       need_lib_prefix=no
13540       export_dynamic_flag_spec='${wl}-Blargedynsym'
13541       runpath_var=LD_RUN_PATH
13542       ;;
13543     siemens)
13544       need_lib_prefix=no
13545       ;;
13546     motorola)
13547       need_lib_prefix=no
13548       need_version=no
13549       shlibpath_overrides_runpath=no
13550       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13551       ;;
13552   esac
13553   ;;
13554
13555 sysv4*MP*)
13556   if test -d /usr/nec ;then
13557     version_type=linux
13558     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13559     soname_spec='$libname${shared_ext}.$major'
13560     shlibpath_var=LD_LIBRARY_PATH
13561   fi
13562   ;;
13563
13564 uts4*)
13565   version_type=linux
13566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567   soname_spec='${libname}${release}${shared_ext}$major'
13568   shlibpath_var=LD_LIBRARY_PATH
13569   ;;
13570
13571 *)
13572   dynamic_linker=no
13573   ;;
13574 esac
13575 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13576 echo "${ECHO_T}$dynamic_linker" >&6
13577 test "$dynamic_linker" = no && can_build_shared=no
13578
13579 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13581 hardcode_action=
13582 if test -n "$hardcode_libdir_flag_spec" || \
13583    test -n "$runpath_var" || \
13584    test "X$hardcode_automatic" = "Xyes" ; then
13585
13586   # We can hardcode non-existant directories.
13587   if test "$hardcode_direct" != no &&
13588      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13589      # have to relink, otherwise we might link with an installed library
13590      # when we should be linking with a yet-to-be-installed one
13591      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13592      test "$hardcode_minus_L" != no; then
13593     # Linking always hardcodes the temporary library directory.
13594     hardcode_action=relink
13595   else
13596     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13597     hardcode_action=immediate
13598   fi
13599 else
13600   # We cannot hardcode anything, or else we can only hardcode existing
13601   # directories.
13602   hardcode_action=unsupported
13603 fi
13604 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13605 echo "${ECHO_T}$hardcode_action" >&6
13606
13607 if test "$hardcode_action" = relink; then
13608   # Fast installation is not supported
13609   enable_fast_install=no
13610 elif test "$shlibpath_overrides_runpath" = yes ||
13611      test "$enable_shared" = no; then
13612   # Fast installation is not necessary
13613   enable_fast_install=needless
13614 fi
13615
13616 striplib=
13617 old_striplib=
13618 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13619 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13620 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13621   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13622   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13623   echo "$as_me:$LINENO: result: yes" >&5
13624 echo "${ECHO_T}yes" >&6
13625 else
13626 # FIXME - insert some real tests, host_os isn't really good enough
13627   case $host_os in
13628    darwin*)
13629        if test -n "$STRIP" ; then
13630          striplib="$STRIP -x"
13631          echo "$as_me:$LINENO: result: yes" >&5
13632 echo "${ECHO_T}yes" >&6
13633        else
13634   echo "$as_me:$LINENO: result: no" >&5
13635 echo "${ECHO_T}no" >&6
13636 fi
13637        ;;
13638    *)
13639   echo "$as_me:$LINENO: result: no" >&5
13640 echo "${ECHO_T}no" >&6
13641     ;;
13642   esac
13643 fi
13644
13645 if test "x$enable_dlopen" != xyes; then
13646   enable_dlopen=unknown
13647   enable_dlopen_self=unknown
13648   enable_dlopen_self_static=unknown
13649 else
13650   lt_cv_dlopen=no
13651   lt_cv_dlopen_libs=
13652
13653   case $host_os in
13654   beos*)
13655     lt_cv_dlopen="load_add_on"
13656     lt_cv_dlopen_libs=
13657     lt_cv_dlopen_self=yes
13658     ;;
13659
13660   mingw* | pw32*)
13661     lt_cv_dlopen="LoadLibrary"
13662     lt_cv_dlopen_libs=
13663    ;;
13664
13665   cygwin*)
13666     lt_cv_dlopen="dlopen"
13667     lt_cv_dlopen_libs=
13668    ;;
13669
13670   darwin*)
13671   # if libdl is installed we need to link against it
13672     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-ldl  $LIBS"
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h.  */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h.  */
13685
13686 /* Override any gcc2 internal prototype to avoid an error.  */
13687 #ifdef __cplusplus
13688 extern "C"
13689 #endif
13690 /* We use char because int might match the return type of a gcc2
13691    builtin and then its argument prototype would still apply.  */
13692 char dlopen ();
13693 int
13694 main ()
13695 {
13696 dlopen ();
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703   (eval $ac_link) 2>conftest.er1
13704   ac_status=$?
13705   grep -v '^ *+' conftest.er1 >conftest.err
13706   rm -f conftest.er1
13707   cat conftest.err >&5
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } &&
13710          { ac_try='test -z "$ac_c_werror_flag"
13711                          || test ! -s conftest.err'
13712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713   (eval $ac_try) 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); }; } &&
13717          { ac_try='test -s conftest$ac_exeext'
13718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719   (eval $ac_try) 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; }; then
13723   ac_cv_lib_dl_dlopen=yes
13724 else
13725   echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 ac_cv_lib_dl_dlopen=no
13729 fi
13730 rm -f conftest.err conftest.$ac_objext \
13731       conftest$ac_exeext conftest.$ac_ext
13732 LIBS=$ac_check_lib_save_LIBS
13733 fi
13734 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13735 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13736 if test $ac_cv_lib_dl_dlopen = yes; then
13737   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13738 else
13739
13740     lt_cv_dlopen="dyld"
13741     lt_cv_dlopen_libs=
13742     lt_cv_dlopen_self=yes
13743
13744 fi
13745
13746    ;;
13747
13748   *)
13749     echo "$as_me:$LINENO: checking for shl_load" >&5
13750 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13751 if test "${ac_cv_func_shl_load+set}" = set; then
13752   echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754   cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13762 #define shl_load innocuous_shl_load
13763
13764 /* System header to define __stub macros and hopefully few prototypes,
13765     which can conflict with char shl_load (); below.
13766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767     <limits.h> exists even on freestanding compilers.  */
13768
13769 #ifdef __STDC__
13770 # include <limits.h>
13771 #else
13772 # include <assert.h>
13773 #endif
13774
13775 #undef shl_load
13776
13777 /* Override any gcc2 internal prototype to avoid an error.  */
13778 #ifdef __cplusplus
13779 extern "C"
13780 {
13781 #endif
13782 /* We use char because int might match the return type of a gcc2
13783    builtin and then its argument prototype would still apply.  */
13784 char shl_load ();
13785 /* The GNU C library defines this for functions which it implements
13786     to always fail with ENOSYS.  Some functions are actually named
13787     something starting with __ and the normal name is an alias.  */
13788 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13789 choke me
13790 #else
13791 char (*f) () = shl_load;
13792 #endif
13793 #ifdef __cplusplus
13794 }
13795 #endif
13796
13797 int
13798 main ()
13799 {
13800 return f != shl_load;
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807   (eval $ac_link) 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -z "$ac_c_werror_flag"
13815                          || test ! -s conftest.err'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; } &&
13821          { ac_try='test -s conftest$ac_exeext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_cv_func_shl_load=yes
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_func_shl_load=no
13833 fi
13834 rm -f conftest.err conftest.$ac_objext \
13835       conftest$ac_exeext conftest.$ac_ext
13836 fi
13837 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13839 if test $ac_cv_func_shl_load = yes; then
13840   lt_cv_dlopen="shl_load"
13841 else
13842   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13843 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   ac_check_lib_save_LIBS=$LIBS
13848 LIBS="-ldld  $LIBS"
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855
13856 /* Override any gcc2 internal prototype to avoid an error.  */
13857 #ifdef __cplusplus
13858 extern "C"
13859 #endif
13860 /* We use char because int might match the return type of a gcc2
13861    builtin and then its argument prototype would still apply.  */
13862 char shl_load ();
13863 int
13864 main ()
13865 {
13866 shl_load ();
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873   (eval $ac_link) 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_c_werror_flag"
13881                          || test ! -s conftest.err'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; } &&
13887          { ac_try='test -s conftest$ac_exeext'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }; then
13893   ac_cv_lib_dld_shl_load=yes
13894 else
13895   echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_cv_lib_dld_shl_load=no
13899 fi
13900 rm -f conftest.err conftest.$ac_objext \
13901       conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13903 fi
13904 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13905 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13906 if test $ac_cv_lib_dld_shl_load = yes; then
13907   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13908 else
13909   echo "$as_me:$LINENO: checking for dlopen" >&5
13910 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13911 if test "${ac_cv_func_dlopen+set}" = set; then
13912   echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914   cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h.  */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h.  */
13920 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13922 #define dlopen innocuous_dlopen
13923
13924 /* System header to define __stub macros and hopefully few prototypes,
13925     which can conflict with char dlopen (); below.
13926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13927     <limits.h> exists even on freestanding compilers.  */
13928
13929 #ifdef __STDC__
13930 # include <limits.h>
13931 #else
13932 # include <assert.h>
13933 #endif
13934
13935 #undef dlopen
13936
13937 /* Override any gcc2 internal prototype to avoid an error.  */
13938 #ifdef __cplusplus
13939 extern "C"
13940 {
13941 #endif
13942 /* We use char because int might match the return type of a gcc2
13943    builtin and then its argument prototype would still apply.  */
13944 char dlopen ();
13945 /* The GNU C library defines this for functions which it implements
13946     to always fail with ENOSYS.  Some functions are actually named
13947     something starting with __ and the normal name is an alias.  */
13948 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13949 choke me
13950 #else
13951 char (*f) () = dlopen;
13952 #endif
13953 #ifdef __cplusplus
13954 }
13955 #endif
13956
13957 int
13958 main ()
13959 {
13960 return f != dlopen;
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967   (eval $ac_link) 2>conftest.er1
13968   ac_status=$?
13969   grep -v '^ *+' conftest.er1 >conftest.err
13970   rm -f conftest.er1
13971   cat conftest.err >&5
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); } &&
13974          { ac_try='test -z "$ac_c_werror_flag"
13975                          || test ! -s conftest.err'
13976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977   (eval $ac_try) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; } &&
13981          { ac_try='test -s conftest$ac_exeext'
13982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983   (eval $ac_try) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; }; then
13987   ac_cv_func_dlopen=yes
13988 else
13989   echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 ac_cv_func_dlopen=no
13993 fi
13994 rm -f conftest.err conftest.$ac_objext \
13995       conftest$ac_exeext conftest.$ac_ext
13996 fi
13997 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13998 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13999 if test $ac_cv_func_dlopen = yes; then
14000   lt_cv_dlopen="dlopen"
14001 else
14002   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14003 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14004 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007   ac_check_lib_save_LIBS=$LIBS
14008 LIBS="-ldl  $LIBS"
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h.  */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h.  */
14015
14016 /* Override any gcc2 internal prototype to avoid an error.  */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 /* We use char because int might match the return type of a gcc2
14021    builtin and then its argument prototype would still apply.  */
14022 char dlopen ();
14023 int
14024 main ()
14025 {
14026 dlopen ();
14027   ;
14028   return 0;
14029 }
14030 _ACEOF
14031 rm -f conftest.$ac_objext conftest$ac_exeext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14033   (eval $ac_link) 2>conftest.er1
14034   ac_status=$?
14035   grep -v '^ *+' conftest.er1 >conftest.err
14036   rm -f conftest.er1
14037   cat conftest.err >&5
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); } &&
14040          { ac_try='test -z "$ac_c_werror_flag"
14041                          || test ! -s conftest.err'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; } &&
14047          { ac_try='test -s conftest$ac_exeext'
14048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049   (eval $ac_try) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; }; then
14053   ac_cv_lib_dl_dlopen=yes
14054 else
14055   echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_cv_lib_dl_dlopen=no
14059 fi
14060 rm -f conftest.err conftest.$ac_objext \
14061       conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14063 fi
14064 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14065 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14066 if test $ac_cv_lib_dl_dlopen = yes; then
14067   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14068 else
14069   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14070 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14071 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14072   echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074   ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-lsvld  $LIBS"
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h.  */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h.  */
14082
14083 /* Override any gcc2 internal prototype to avoid an error.  */
14084 #ifdef __cplusplus
14085 extern "C"
14086 #endif
14087 /* We use char because int might match the return type of a gcc2
14088    builtin and then its argument prototype would still apply.  */
14089 char dlopen ();
14090 int
14091 main ()
14092 {
14093 dlopen ();
14094   ;
14095   return 0;
14096 }
14097 _ACEOF
14098 rm -f conftest.$ac_objext conftest$ac_exeext
14099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14100   (eval $ac_link) 2>conftest.er1
14101   ac_status=$?
14102   grep -v '^ *+' conftest.er1 >conftest.err
14103   rm -f conftest.er1
14104   cat conftest.err >&5
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } &&
14107          { ac_try='test -z "$ac_c_werror_flag"
14108                          || test ! -s conftest.err'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; } &&
14114          { ac_try='test -s conftest$ac_exeext'
14115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116   (eval $ac_try) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; }; then
14120   ac_cv_lib_svld_dlopen=yes
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_cv_lib_svld_dlopen=no
14126 fi
14127 rm -f conftest.err conftest.$ac_objext \
14128       conftest$ac_exeext conftest.$ac_ext
14129 LIBS=$ac_check_lib_save_LIBS
14130 fi
14131 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14132 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14133 if test $ac_cv_lib_svld_dlopen = yes; then
14134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14135 else
14136   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14137 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14138 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-ldld  $LIBS"
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h.  */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h.  */
14149
14150 /* Override any gcc2 internal prototype to avoid an error.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 /* We use char because int might match the return type of a gcc2
14155    builtin and then its argument prototype would still apply.  */
14156 char dld_link ();
14157 int
14158 main ()
14159 {
14160 dld_link ();
14161   ;
14162   return 0;
14163 }
14164 _ACEOF
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14167   (eval $ac_link) 2>conftest.er1
14168   ac_status=$?
14169   grep -v '^ *+' conftest.er1 >conftest.err
14170   rm -f conftest.er1
14171   cat conftest.err >&5
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } &&
14174          { ac_try='test -z "$ac_c_werror_flag"
14175                          || test ! -s conftest.err'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; } &&
14181          { ac_try='test -s conftest$ac_exeext'
14182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183   (eval $ac_try) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   ac_cv_lib_dld_dld_link=yes
14188 else
14189   echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 ac_cv_lib_dld_dld_link=no
14193 fi
14194 rm -f conftest.err conftest.$ac_objext \
14195       conftest$ac_exeext conftest.$ac_ext
14196 LIBS=$ac_check_lib_save_LIBS
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14199 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14200 if test $ac_cv_lib_dld_dld_link = yes; then
14201   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14202 fi
14203
14204
14205 fi
14206
14207
14208 fi
14209
14210
14211 fi
14212
14213
14214 fi
14215
14216
14217 fi
14218
14219     ;;
14220   esac
14221
14222   if test "x$lt_cv_dlopen" != xno; then
14223     enable_dlopen=yes
14224   else
14225     enable_dlopen=no
14226   fi
14227
14228   case $lt_cv_dlopen in
14229   dlopen)
14230     save_CPPFLAGS="$CPPFLAGS"
14231     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14232
14233     save_LDFLAGS="$LDFLAGS"
14234     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14235
14236     save_LIBS="$LIBS"
14237     LIBS="$lt_cv_dlopen_libs $LIBS"
14238
14239     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14240 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14241 if test "${lt_cv_dlopen_self+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244           if test "$cross_compiling" = yes; then :
14245   lt_cv_dlopen_self=cross
14246 else
14247   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14248   lt_status=$lt_dlunknown
14249   cat > conftest.$ac_ext <<EOF
14250 #line 14249 "configure"
14251 #include "confdefs.h"
14252
14253 #if HAVE_DLFCN_H
14254 #include <dlfcn.h>
14255 #endif
14256
14257 #include <stdio.h>
14258
14259 #ifdef RTLD_GLOBAL
14260 #  define LT_DLGLOBAL           RTLD_GLOBAL
14261 #else
14262 #  ifdef DL_GLOBAL
14263 #    define LT_DLGLOBAL         DL_GLOBAL
14264 #  else
14265 #    define LT_DLGLOBAL         0
14266 #  endif
14267 #endif
14268
14269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14270    find out it does not work in some platform. */
14271 #ifndef LT_DLLAZY_OR_NOW
14272 #  ifdef RTLD_LAZY
14273 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14274 #  else
14275 #    ifdef DL_LAZY
14276 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14277 #    else
14278 #      ifdef RTLD_NOW
14279 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14280 #      else
14281 #        ifdef DL_NOW
14282 #          define LT_DLLAZY_OR_NOW      DL_NOW
14283 #        else
14284 #          define LT_DLLAZY_OR_NOW      0
14285 #        endif
14286 #      endif
14287 #    endif
14288 #  endif
14289 #endif
14290
14291 #ifdef __cplusplus
14292 extern "C" void exit (int);
14293 #endif
14294
14295 void fnord() { int i=42;}
14296 int main ()
14297 {
14298   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14299   int status = $lt_dlunknown;
14300
14301   if (self)
14302     {
14303       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14304       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14305       /* dlclose (self); */
14306     }
14307
14308     exit (status);
14309 }
14310 EOF
14311   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312   (eval $ac_link) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14316     (./conftest; exit; ) 2>/dev/null
14317     lt_status=$?
14318     case x$lt_status in
14319       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14320       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14321       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14322     esac
14323   else :
14324     # compilation failed
14325     lt_cv_dlopen_self=no
14326   fi
14327 fi
14328 rm -fr conftest*
14329
14330
14331 fi
14332 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14333 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14334
14335     if test "x$lt_cv_dlopen_self" = xyes; then
14336       LDFLAGS="$LDFLAGS $link_static_flag"
14337       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14338 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14339 if test "${lt_cv_dlopen_self_static+set}" = set; then
14340   echo $ECHO_N "(cached) $ECHO_C" >&6
14341 else
14342           if test "$cross_compiling" = yes; then :
14343   lt_cv_dlopen_self_static=cross
14344 else
14345   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14346   lt_status=$lt_dlunknown
14347   cat > conftest.$ac_ext <<EOF
14348 #line 14347 "configure"
14349 #include "confdefs.h"
14350
14351 #if HAVE_DLFCN_H
14352 #include <dlfcn.h>
14353 #endif
14354
14355 #include <stdio.h>
14356
14357 #ifdef RTLD_GLOBAL
14358 #  define LT_DLGLOBAL           RTLD_GLOBAL
14359 #else
14360 #  ifdef DL_GLOBAL
14361 #    define LT_DLGLOBAL         DL_GLOBAL
14362 #  else
14363 #    define LT_DLGLOBAL         0
14364 #  endif
14365 #endif
14366
14367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14368    find out it does not work in some platform. */
14369 #ifndef LT_DLLAZY_OR_NOW
14370 #  ifdef RTLD_LAZY
14371 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14372 #  else
14373 #    ifdef DL_LAZY
14374 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14375 #    else
14376 #      ifdef RTLD_NOW
14377 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14378 #      else
14379 #        ifdef DL_NOW
14380 #          define LT_DLLAZY_OR_NOW      DL_NOW
14381 #        else
14382 #          define LT_DLLAZY_OR_NOW      0
14383 #        endif
14384 #      endif
14385 #    endif
14386 #  endif
14387 #endif
14388
14389 #ifdef __cplusplus
14390 extern "C" void exit (int);
14391 #endif
14392
14393 void fnord() { int i=42;}
14394 int main ()
14395 {
14396   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14397   int status = $lt_dlunknown;
14398
14399   if (self)
14400     {
14401       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14402       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14403       /* dlclose (self); */
14404     }
14405
14406     exit (status);
14407 }
14408 EOF
14409   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410   (eval $ac_link) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14414     (./conftest; exit; ) 2>/dev/null
14415     lt_status=$?
14416     case x$lt_status in
14417       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14418       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14419       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14420     esac
14421   else :
14422     # compilation failed
14423     lt_cv_dlopen_self_static=no
14424   fi
14425 fi
14426 rm -fr conftest*
14427
14428
14429 fi
14430 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14431 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14432     fi
14433
14434     CPPFLAGS="$save_CPPFLAGS"
14435     LDFLAGS="$save_LDFLAGS"
14436     LIBS="$save_LIBS"
14437     ;;
14438   esac
14439
14440   case $lt_cv_dlopen_self in
14441   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14442   *) enable_dlopen_self=unknown ;;
14443   esac
14444
14445   case $lt_cv_dlopen_self_static in
14446   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14447   *) enable_dlopen_self_static=unknown ;;
14448   esac
14449 fi
14450
14451
14452 # Report which librarie types wil actually be built
14453 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14454 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14455 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14456 echo "${ECHO_T}$can_build_shared" >&6
14457
14458 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14459 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14460 test "$can_build_shared" = "no" && enable_shared=no
14461
14462 # On AIX, shared libraries and static libraries use the same namespace, and
14463 # are all built from PIC.
14464 case "$host_os" in
14465 aix3*)
14466   test "$enable_shared" = yes && enable_static=no
14467   if test -n "$RANLIB"; then
14468     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14469     postinstall_cmds='$RANLIB $lib'
14470   fi
14471   ;;
14472
14473 aix4* | aix5*)
14474   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14475     test "$enable_shared" = yes && enable_static=no
14476   fi
14477     ;;
14478 esac
14479 echo "$as_me:$LINENO: result: $enable_shared" >&5
14480 echo "${ECHO_T}$enable_shared" >&6
14481
14482 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14483 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14484 # Make sure either enable_shared or enable_static is yes.
14485 test "$enable_shared" = yes || enable_static=yes
14486 echo "$as_me:$LINENO: result: $enable_static" >&5
14487 echo "${ECHO_T}$enable_static" >&6
14488
14489 # The else clause should only fire when bootstrapping the
14490 # libtool distribution, otherwise you forgot to ship ltmain.sh
14491 # with your package, and you will get complaints that there are
14492 # no rules to generate ltmain.sh.
14493 if test -f "$ltmain"; then
14494   # See if we are running on zsh, and set the options which allow our commands through
14495   # without removal of \ escapes.
14496   if test -n "${ZSH_VERSION+set}" ; then
14497     setopt NO_GLOB_SUBST
14498   fi
14499   # Now quote all the things that may contain metacharacters while being
14500   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14501   # variables and quote the copies for generation of the libtool script.
14502   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14503     SED SHELL STRIP \
14504     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14505     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14506     deplibs_check_method reload_flag reload_cmds need_locks \
14507     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14508     lt_cv_sys_global_symbol_to_c_name_address \
14509     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14510     old_postinstall_cmds old_postuninstall_cmds \
14511     compiler \
14512     CC \
14513     LD \
14514     lt_prog_compiler_wl \
14515     lt_prog_compiler_pic \
14516     lt_prog_compiler_static \
14517     lt_prog_compiler_no_builtin_flag \
14518     export_dynamic_flag_spec \
14519     thread_safe_flag_spec \
14520     whole_archive_flag_spec \
14521     enable_shared_with_static_runtimes \
14522     old_archive_cmds \
14523     old_archive_from_new_cmds \
14524     predep_objects \
14525     postdep_objects \
14526     predeps \
14527     postdeps \
14528     compiler_lib_search_path \
14529     archive_cmds \
14530     archive_expsym_cmds \
14531     postinstall_cmds \
14532     postuninstall_cmds \
14533     old_archive_from_expsyms_cmds \
14534     allow_undefined_flag \
14535     no_undefined_flag \
14536     export_symbols_cmds \
14537     hardcode_libdir_flag_spec \
14538     hardcode_libdir_flag_spec_ld \
14539     hardcode_libdir_separator \
14540     hardcode_automatic \
14541     module_cmds \
14542     module_expsym_cmds \
14543     lt_cv_prog_compiler_c_o \
14544     exclude_expsyms \
14545     include_expsyms; do
14546
14547     case $var in
14548     old_archive_cmds | \
14549     old_archive_from_new_cmds | \
14550     archive_cmds | \
14551     archive_expsym_cmds | \
14552     module_cmds | \
14553     module_expsym_cmds | \
14554     old_archive_from_expsyms_cmds | \
14555     export_symbols_cmds | \
14556     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14557     postinstall_cmds | postuninstall_cmds | \
14558     old_postinstall_cmds | old_postuninstall_cmds | \
14559     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14560       # Double-quote double-evaled strings.
14561       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14562       ;;
14563     *)
14564       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14565       ;;
14566     esac
14567   done
14568
14569   case $lt_echo in
14570   *'\$0 --fallback-echo"')
14571     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14572     ;;
14573   esac
14574
14575 cfgfile="${ofile}T"
14576   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14577   $rm -f "$cfgfile"
14578   { echo "$as_me:$LINENO: creating $ofile" >&5
14579 echo "$as_me: creating $ofile" >&6;}
14580
14581   cat <<__EOF__ >> "$cfgfile"
14582 #! $SHELL
14583
14584 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14585 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14587 #
14588 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14589 # Free Software Foundation, Inc.
14590 #
14591 # This file is part of GNU Libtool:
14592 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14593 #
14594 # This program is free software; you can redistribute it and/or modify
14595 # it under the terms of the GNU General Public License as published by
14596 # the Free Software Foundation; either version 2 of the License, or
14597 # (at your option) any later version.
14598 #
14599 # This program is distributed in the hope that it will be useful, but
14600 # WITHOUT ANY WARRANTY; without even the implied warranty of
14601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14602 # General Public License for more details.
14603 #
14604 # You should have received a copy of the GNU General Public License
14605 # along with this program; if not, write to the Free Software
14606 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14607 #
14608 # As a special exception to the GNU General Public License, if you
14609 # distribute this file as part of a program that contains a
14610 # configuration script generated by Autoconf, you may include it under
14611 # the same distribution terms that you use for the rest of that program.
14612
14613 # A sed program that does not truncate output.
14614 SED=$lt_SED
14615
14616 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14617 Xsed="$SED -e s/^X//"
14618
14619 # The HP-UX ksh and POSIX shell print the target directory to stdout
14620 # if CDPATH is set.
14621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14622
14623 # The names of the tagged configurations supported by this script.
14624 available_tags=
14625
14626 # ### BEGIN LIBTOOL CONFIG
14627
14628 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14629
14630 # Shell to use when invoking shell scripts.
14631 SHELL=$lt_SHELL
14632
14633 # Whether or not to build shared libraries.
14634 build_libtool_libs=$enable_shared
14635
14636 # Whether or not to build static libraries.
14637 build_old_libs=$enable_static
14638
14639 # Whether or not to add -lc for building shared libraries.
14640 build_libtool_need_lc=$archive_cmds_need_lc
14641
14642 # Whether or not to disallow shared libs when runtime libs are static
14643 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14644
14645 # Whether or not to optimize for fast installation.
14646 fast_install=$enable_fast_install
14647
14648 # The host system.
14649 host_alias=$host_alias
14650 host=$host
14651
14652 # An echo program that does not interpret backslashes.
14653 echo=$lt_echo
14654
14655 # The archiver.
14656 AR=$lt_AR
14657 AR_FLAGS=$lt_AR_FLAGS
14658
14659 # A C compiler.
14660 LTCC=$lt_LTCC
14661
14662 # A language-specific compiler.
14663 CC=$lt_compiler
14664
14665 # Is the compiler the GNU C compiler?
14666 with_gcc=$GCC
14667
14668 # An ERE matcher.
14669 EGREP=$lt_EGREP
14670
14671 # The linker used to build libraries.
14672 LD=$lt_LD
14673
14674 # Whether we need hard or soft links.
14675 LN_S=$lt_LN_S
14676
14677 # A BSD-compatible nm program.
14678 NM=$lt_NM
14679
14680 # A symbol stripping program
14681 STRIP=$lt_STRIP
14682
14683 # Used to examine libraries when file_magic_cmd begins "file"
14684 MAGIC_CMD=$MAGIC_CMD
14685
14686 # Used on cygwin: DLL creation program.
14687 DLLTOOL="$DLLTOOL"
14688
14689 # Used on cygwin: object dumper.
14690 OBJDUMP="$OBJDUMP"
14691
14692 # Used on cygwin: assembler.
14693 AS="$AS"
14694
14695 # The name of the directory that contains temporary libtool files.
14696 objdir=$objdir
14697
14698 # How to create reloadable object files.
14699 reload_flag=$lt_reload_flag
14700 reload_cmds=$lt_reload_cmds
14701
14702 # How to pass a linker flag through the compiler.
14703 wl=$lt_lt_prog_compiler_wl
14704
14705 # Object file suffix (normally "o").
14706 objext="$ac_objext"
14707
14708 # Old archive suffix (normally "a").
14709 libext="$libext"
14710
14711 # Shared library suffix (normally ".so").
14712 shrext_cmds='$shrext_cmds'
14713
14714 # Executable file suffix (normally "").
14715 exeext="$exeext"
14716
14717 # Additional compiler flags for building library objects.
14718 pic_flag=$lt_lt_prog_compiler_pic
14719 pic_mode=$pic_mode
14720
14721 # What is the maximum length of a command?
14722 max_cmd_len=$lt_cv_sys_max_cmd_len
14723
14724 # Does compiler simultaneously support -c and -o options?
14725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14726
14727 # Must we lock files when doing compilation ?
14728 need_locks=$lt_need_locks
14729
14730 # Do we need the lib prefix for modules?
14731 need_lib_prefix=$need_lib_prefix
14732
14733 # Do we need a version for libraries?
14734 need_version=$need_version
14735
14736 # Whether dlopen is supported.
14737 dlopen_support=$enable_dlopen
14738
14739 # Whether dlopen of programs is supported.
14740 dlopen_self=$enable_dlopen_self
14741
14742 # Whether dlopen of statically linked programs is supported.
14743 dlopen_self_static=$enable_dlopen_self_static
14744
14745 # Compiler flag to prevent dynamic linking.
14746 link_static_flag=$lt_lt_prog_compiler_static
14747
14748 # Compiler flag to turn off builtin functions.
14749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14750
14751 # Compiler flag to allow reflexive dlopens.
14752 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14753
14754 # Compiler flag to generate shared objects directly from archives.
14755 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14756
14757 # Compiler flag to generate thread-safe objects.
14758 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14759
14760 # Library versioning type.
14761 version_type=$version_type
14762
14763 # Format of library name prefix.
14764 libname_spec=$lt_libname_spec
14765
14766 # List of archive names.  First name is the real one, the rest are links.
14767 # The last name is the one that the linker finds with -lNAME.
14768 library_names_spec=$lt_library_names_spec
14769
14770 # The coded name of the library, if different from the real name.
14771 soname_spec=$lt_soname_spec
14772
14773 # Commands used to build and install an old-style archive.
14774 RANLIB=$lt_RANLIB
14775 old_archive_cmds=$lt_old_archive_cmds
14776 old_postinstall_cmds=$lt_old_postinstall_cmds
14777 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14778
14779 # Create an old-style archive from a shared archive.
14780 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14781
14782 # Create a temporary old-style archive to link instead of a shared archive.
14783 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14784
14785 # Commands used to build and install a shared archive.
14786 archive_cmds=$lt_archive_cmds
14787 archive_expsym_cmds=$lt_archive_expsym_cmds
14788 postinstall_cmds=$lt_postinstall_cmds
14789 postuninstall_cmds=$lt_postuninstall_cmds
14790
14791 # Commands used to build a loadable module (assumed same as above if empty)
14792 module_cmds=$lt_module_cmds
14793 module_expsym_cmds=$lt_module_expsym_cmds
14794
14795 # Commands to strip libraries.
14796 old_striplib=$lt_old_striplib
14797 striplib=$lt_striplib
14798
14799 # Dependencies to place before the objects being linked to create a
14800 # shared library.
14801 predep_objects=$lt_predep_objects
14802
14803 # Dependencies to place after the objects being linked to create a
14804 # shared library.
14805 postdep_objects=$lt_postdep_objects
14806
14807 # Dependencies to place before the objects being linked to create a
14808 # shared library.
14809 predeps=$lt_predeps
14810
14811 # Dependencies to place after the objects being linked to create a
14812 # shared library.
14813 postdeps=$lt_postdeps
14814
14815 # The library search path used internally by the compiler when linking
14816 # a shared library.
14817 compiler_lib_search_path=$lt_compiler_lib_search_path
14818
14819 # Method to check whether dependent libraries are shared objects.
14820 deplibs_check_method=$lt_deplibs_check_method
14821
14822 # Command to use when deplibs_check_method == file_magic.
14823 file_magic_cmd=$lt_file_magic_cmd
14824
14825 # Flag that allows shared libraries with undefined symbols to be built.
14826 allow_undefined_flag=$lt_allow_undefined_flag
14827
14828 # Flag that forces no undefined symbols.
14829 no_undefined_flag=$lt_no_undefined_flag
14830
14831 # Commands used to finish a libtool library installation in a directory.
14832 finish_cmds=$lt_finish_cmds
14833
14834 # Same as above, but a single script fragment to be evaled but not shown.
14835 finish_eval=$lt_finish_eval
14836
14837 # Take the output of nm and produce a listing of raw symbols and C names.
14838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14839
14840 # Transform the output of nm in a proper C declaration
14841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14842
14843 # Transform the output of nm in a C name address pair
14844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14845
14846 # This is the shared library runtime path variable.
14847 runpath_var=$runpath_var
14848
14849 # This is the shared library path variable.
14850 shlibpath_var=$shlibpath_var
14851
14852 # Is shlibpath searched before the hard-coded library search path?
14853 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14854
14855 # How to hardcode a shared library path into an executable.
14856 hardcode_action=$hardcode_action
14857
14858 # Whether we should hardcode library paths into libraries.
14859 hardcode_into_libs=$hardcode_into_libs
14860
14861 # Flag to hardcode \$libdir into a binary during linking.
14862 # This must work even if \$libdir does not exist.
14863 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14864
14865 # If ld is used when linking, flag to hardcode \$libdir into
14866 # a binary during linking. This must work even if \$libdir does
14867 # not exist.
14868 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14869
14870 # Whether we need a single -rpath flag with a separated argument.
14871 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14872
14873 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14874 # resulting binary.
14875 hardcode_direct=$hardcode_direct
14876
14877 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14878 # resulting binary.
14879 hardcode_minus_L=$hardcode_minus_L
14880
14881 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14882 # the resulting binary.
14883 hardcode_shlibpath_var=$hardcode_shlibpath_var
14884
14885 # Set to yes if building a shared library automatically hardcodes DIR into the library
14886 # and all subsequent libraries and executables linked against it.
14887 hardcode_automatic=$hardcode_automatic
14888
14889 # Variables whose values should be saved in libtool wrapper scripts and
14890 # restored at relink time.
14891 variables_saved_for_relink="$variables_saved_for_relink"
14892
14893 # Whether libtool must link a program against all its dependency libraries.
14894 link_all_deplibs=$link_all_deplibs
14895
14896 # Compile-time system search path for libraries
14897 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14898
14899 # Run-time system search path for libraries
14900 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14901
14902 # Fix the shell variable \$srcfile for the compiler.
14903 fix_srcfile_path="$fix_srcfile_path"
14904
14905 # Set to yes if exported symbols are required.
14906 always_export_symbols=$always_export_symbols
14907
14908 # The commands to list exported symbols.
14909 export_symbols_cmds=$lt_export_symbols_cmds
14910
14911 # The commands to extract the exported symbol list from a shared archive.
14912 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14913
14914 # Symbols that should not be listed in the preloaded symbols.
14915 exclude_expsyms=$lt_exclude_expsyms
14916
14917 # Symbols that must always be exported.
14918 include_expsyms=$lt_include_expsyms
14919
14920 # ### END LIBTOOL CONFIG
14921
14922 __EOF__
14923
14924
14925   case $host_os in
14926   aix3*)
14927     cat <<\EOF >> "$cfgfile"
14928
14929 # AIX sometimes has problems with the GCC collect2 program.  For some
14930 # reason, if we set the COLLECT_NAMES environment variable, the problems
14931 # vanish in a puff of smoke.
14932 if test "X${COLLECT_NAMES+set}" != Xset; then
14933   COLLECT_NAMES=
14934   export COLLECT_NAMES
14935 fi
14936 EOF
14937     ;;
14938   esac
14939
14940   # We use sed instead of cat because bash on DJGPP gets confused if
14941   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14942   # text mode, it properly converts lines to CR/LF.  This bash problem
14943   # is reportedly fixed, but why not run on old versions too?
14944   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14945
14946   mv -f "$cfgfile" "$ofile" || \
14947     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14948   chmod +x "$ofile"
14949
14950 else
14951   # If there is no Makefile yet, we rely on a make rule to execute
14952   # `config.status --recheck' to rerun these tests and create the
14953   # libtool script then.
14954   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14955   if test -f "$ltmain_in"; then
14956     test -f Makefile && make "$ltmain"
14957   fi
14958 fi
14959
14960
14961 ac_ext=c
14962 ac_cpp='$CPP $CPPFLAGS'
14963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966
14967 CC="$lt_save_CC"
14968
14969
14970 # Check whether --with-tags or --without-tags was given.
14971 if test "${with_tags+set}" = set; then
14972   withval="$with_tags"
14973   tagnames="$withval"
14974 fi;
14975
14976 if test -f "$ltmain" && test -n "$tagnames"; then
14977   if test ! -f "${ofile}"; then
14978     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14979 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14980   fi
14981
14982   if test -z "$LTCC"; then
14983     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14984     if test -z "$LTCC"; then
14985       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14986 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14987     else
14988       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14989 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14990     fi
14991   fi
14992
14993   # Extract list of available tagged configurations in $ofile.
14994   # Note that this assumes the entire list is on one line.
14995   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14996
14997   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14998   for tagname in $tagnames; do
14999     IFS="$lt_save_ifs"
15000     # Check whether tagname contains only valid characters
15001     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15002     "") ;;
15003     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15004 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15005    { (exit 1); exit 1; }; }
15006         ;;
15007     esac
15008
15009     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15010     then
15011       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15012 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15013    { (exit 1); exit 1; }; }
15014     fi
15015
15016     # Update the list of available tags.
15017     if test -n "$tagname"; then
15018       echo appending configuration tag "$tagname" to $ofile
15019
15020       case $tagname in
15021       CXX)
15022         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15023             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15024             (test "X$CXX" != "Xg++"))) ; then
15025           ac_ext=cc
15026 ac_cpp='$CXXCPP $CPPFLAGS'
15027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15030
15031
15032
15033
15034 archive_cmds_need_lc_CXX=no
15035 allow_undefined_flag_CXX=
15036 always_export_symbols_CXX=no
15037 archive_expsym_cmds_CXX=
15038 export_dynamic_flag_spec_CXX=
15039 hardcode_direct_CXX=no
15040 hardcode_libdir_flag_spec_CXX=
15041 hardcode_libdir_flag_spec_ld_CXX=
15042 hardcode_libdir_separator_CXX=
15043 hardcode_minus_L_CXX=no
15044 hardcode_automatic_CXX=no
15045 module_cmds_CXX=
15046 module_expsym_cmds_CXX=
15047 link_all_deplibs_CXX=unknown
15048 old_archive_cmds_CXX=$old_archive_cmds
15049 no_undefined_flag_CXX=
15050 whole_archive_flag_spec_CXX=
15051 enable_shared_with_static_runtimes_CXX=no
15052
15053 # Dependencies to place before and after the object being linked:
15054 predep_objects_CXX=
15055 postdep_objects_CXX=
15056 predeps_CXX=
15057 postdeps_CXX=
15058 compiler_lib_search_path_CXX=
15059
15060 # Source file extension for C++ test sources.
15061 ac_ext=cc
15062
15063 # Object file extension for compiled C++ test sources.
15064 objext=o
15065 objext_CXX=$objext
15066
15067 # Code to be used in simple compile tests
15068 lt_simple_compile_test_code="int some_variable = 0;\n"
15069
15070 # Code to be used in simple link tests
15071 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15072
15073 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15074
15075 # If no C compiler was specified, use CC.
15076 LTCC=${LTCC-"$CC"}
15077
15078 # Allow CC to be a program name with arguments.
15079 compiler=$CC
15080
15081
15082 # Allow CC to be a program name with arguments.
15083 lt_save_CC=$CC
15084 lt_save_LD=$LD
15085 lt_save_GCC=$GCC
15086 GCC=$GXX
15087 lt_save_with_gnu_ld=$with_gnu_ld
15088 lt_save_path_LD=$lt_cv_path_LD
15089 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15090   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15091 else
15092   unset lt_cv_prog_gnu_ld
15093 fi
15094 if test -n "${lt_cv_path_LDCXX+set}"; then
15095   lt_cv_path_LD=$lt_cv_path_LDCXX
15096 else
15097   unset lt_cv_path_LD
15098 fi
15099 test -z "${LDCXX+set}" || LD=$LDCXX
15100 CC=${CXX-"c++"}
15101 compiler=$CC
15102 compiler_CXX=$CC
15103 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15104
15105 # We don't want -fno-exception wen compiling C++ code, so set the
15106 # no_builtin_flag separately
15107 if test "$GXX" = yes; then
15108   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15109 else
15110   lt_prog_compiler_no_builtin_flag_CXX=
15111 fi
15112
15113 if test "$GXX" = yes; then
15114   # Set up default GNU C++ configuration
15115
15116
15117 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15118 if test "${with_gnu_ld+set}" = set; then
15119   withval="$with_gnu_ld"
15120   test "$withval" = no || with_gnu_ld=yes
15121 else
15122   with_gnu_ld=no
15123 fi;
15124 ac_prog=ld
15125 if test "$GCC" = yes; then
15126   # Check if gcc -print-prog-name=ld gives a path.
15127   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15129   case $host in
15130   *-*-mingw*)
15131     # gcc leaves a trailing carriage return which upsets mingw
15132     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15133   *)
15134     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15135   esac
15136   case $ac_prog in
15137     # Accept absolute paths.
15138     [\\/]* | ?:[\\/]*)
15139       re_direlt='/[^/][^/]*/\.\./'
15140       # Canonicalize the pathname of ld
15141       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15142       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15143         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15144       done
15145       test -z "$LD" && LD="$ac_prog"
15146       ;;
15147   "")
15148     # If it fails, then pretend we aren't using GCC.
15149     ac_prog=ld
15150     ;;
15151   *)
15152     # If it is relative, then search for the first ld in PATH.
15153     with_gnu_ld=unknown
15154     ;;
15155   esac
15156 elif test "$with_gnu_ld" = yes; then
15157   echo "$as_me:$LINENO: checking for GNU ld" >&5
15158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15159 else
15160   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15162 fi
15163 if test "${lt_cv_path_LD+set}" = set; then
15164   echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166   if test -z "$LD"; then
15167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15168   for ac_dir in $PATH; do
15169     IFS="$lt_save_ifs"
15170     test -z "$ac_dir" && ac_dir=.
15171     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15172       lt_cv_path_LD="$ac_dir/$ac_prog"
15173       # Check to see if the program is GNU ld.  I'd rather use --version,
15174       # but apparently some GNU ld's only accept -v.
15175       # Break only if it was the GNU/non-GNU ld that we prefer.
15176       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15177       *GNU* | *'with BFD'*)
15178         test "$with_gnu_ld" != no && break
15179         ;;
15180       *)
15181         test "$with_gnu_ld" != yes && break
15182         ;;
15183       esac
15184     fi
15185   done
15186   IFS="$lt_save_ifs"
15187 else
15188   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15189 fi
15190 fi
15191
15192 LD="$lt_cv_path_LD"
15193 if test -n "$LD"; then
15194   echo "$as_me:$LINENO: result: $LD" >&5
15195 echo "${ECHO_T}$LD" >&6
15196 else
15197   echo "$as_me:$LINENO: result: no" >&5
15198 echo "${ECHO_T}no" >&6
15199 fi
15200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15202    { (exit 1); exit 1; }; }
15203 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15206   echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15209 case `$LD -v 2>&1 </dev/null` in
15210 *GNU* | *'with BFD'*)
15211   lt_cv_prog_gnu_ld=yes
15212   ;;
15213 *)
15214   lt_cv_prog_gnu_ld=no
15215   ;;
15216 esac
15217 fi
15218 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15220 with_gnu_ld=$lt_cv_prog_gnu_ld
15221
15222
15223
15224   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15225   # archiving commands below assume that GNU ld is being used.
15226   if test "$with_gnu_ld" = yes; then
15227     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228     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'
15229
15230     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15231     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15232
15233     # If archive_cmds runs LD, not CC, wlarc should be empty
15234     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15235     #     investigate it a little bit more. (MM)
15236     wlarc='${wl}'
15237
15238     # ancient GNU ld didn't support --whole-archive et. al.
15239     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15240         grep 'no-whole-archive' > /dev/null; then
15241       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15242     else
15243       whole_archive_flag_spec_CXX=
15244     fi
15245   else
15246     with_gnu_ld=no
15247     wlarc=
15248
15249     # A generic and very simple default shared library creation
15250     # command for GNU C++ for the case where it uses the native
15251     # linker, instead of GNU ld.  If possible, this setting should
15252     # overridden to take advantage of the native linker features on
15253     # the platform it is being used on.
15254     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15255   fi
15256
15257   # Commands to make compiler produce verbose output that lists
15258   # what "hidden" libraries, object files and flags are used when
15259   # linking a shared library.
15260   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15261
15262 else
15263   GXX=no
15264   with_gnu_ld=no
15265   wlarc=
15266 fi
15267
15268 # PORTME: fill in a description of your system's C++ link characteristics
15269 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15270 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15271 ld_shlibs_CXX=yes
15272 case $host_os in
15273   aix3*)
15274     # FIXME: insert proper C++ library support
15275     ld_shlibs_CXX=no
15276     ;;
15277   aix4* | aix5*)
15278     if test "$host_cpu" = ia64; then
15279       # On IA64, the linker does run time linking by default, so we don't
15280       # have to do anything special.
15281       aix_use_runtimelinking=no
15282       exp_sym_flag='-Bexport'
15283       no_entry_flag=""
15284     else
15285       aix_use_runtimelinking=no
15286
15287       # Test if we are trying to use run time linking or normal
15288       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15289       # need to do runtime linking.
15290       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15291         for ld_flag in $LDFLAGS; do
15292           case $ld_flag in
15293           *-brtl*)
15294             aix_use_runtimelinking=yes
15295             break
15296             ;;
15297           esac
15298         done
15299       esac
15300
15301       exp_sym_flag='-bexport'
15302       no_entry_flag='-bnoentry'
15303     fi
15304
15305     # When large executables or shared objects are built, AIX ld can
15306     # have problems creating the table of contents.  If linking a library
15307     # or program results in "error TOC overflow" add -mminimal-toc to
15308     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15309     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15310
15311     archive_cmds_CXX=''
15312     hardcode_direct_CXX=yes
15313     hardcode_libdir_separator_CXX=':'
15314     link_all_deplibs_CXX=yes
15315
15316     if test "$GXX" = yes; then
15317       case $host_os in aix4.012|aix4.012.*)
15318       # We only want to do this on AIX 4.2 and lower, the check
15319       # below for broken collect2 doesn't work under 4.3+
15320         collect2name=`${CC} -print-prog-name=collect2`
15321         if test -f "$collect2name" && \
15322            strings "$collect2name" | grep resolve_lib_name >/dev/null
15323         then
15324           # We have reworked collect2
15325           hardcode_direct_CXX=yes
15326         else
15327           # We have old collect2
15328           hardcode_direct_CXX=unsupported
15329           # It fails to find uninstalled libraries when the uninstalled
15330           # path is not listed in the libpath.  Setting hardcode_minus_L
15331           # to unsupported forces relinking
15332           hardcode_minus_L_CXX=yes
15333           hardcode_libdir_flag_spec_CXX='-L$libdir'
15334           hardcode_libdir_separator_CXX=
15335         fi
15336       esac
15337       shared_flag='-shared'
15338     else
15339       # not using gcc
15340       if test "$host_cpu" = ia64; then
15341         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15342         # chokes on -Wl,-G. The following line is correct:
15343         shared_flag='-G'
15344       else
15345         if test "$aix_use_runtimelinking" = yes; then
15346           shared_flag='${wl}-G'
15347         else
15348           shared_flag='${wl}-bM:SRE'
15349         fi
15350       fi
15351     fi
15352
15353     # It seems that -bexpall does not export symbols beginning with
15354     # underscore (_), so it is better to generate a list of symbols to export.
15355     always_export_symbols_CXX=yes
15356     if test "$aix_use_runtimelinking" = yes; then
15357       # Warning - without using the other runtime loading flags (-brtl),
15358       # -berok will link without error, but may produce a broken library.
15359       allow_undefined_flag_CXX='-berok'
15360       # Determine the default libpath from the value encoded in an empty executable.
15361       cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367
15368 int
15369 main ()
15370 {
15371
15372   ;
15373   return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378   (eval $ac_link) 2>conftest.er1
15379   ac_status=$?
15380   grep -v '^ *+' conftest.er1 >conftest.err
15381   rm -f conftest.er1
15382   cat conftest.err >&5
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); } &&
15385          { ac_try='test -z "$ac_cxx_werror_flag"
15386                          || test ! -s conftest.err'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; } &&
15392          { ac_try='test -s conftest$ac_exeext'
15393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394   (eval $ac_try) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; }; then
15398
15399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15400 }'`
15401 # Check for a 64-bit object if we didn't find anything.
15402 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; }
15403 }'`; fi
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 fi
15409 rm -f conftest.err conftest.$ac_objext \
15410       conftest$ac_exeext conftest.$ac_ext
15411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15412
15413       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15414
15415       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"
15416      else
15417       if test "$host_cpu" = ia64; then
15418         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15419         allow_undefined_flag_CXX="-z nodefs"
15420         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"
15421       else
15422         # Determine the default libpath from the value encoded in an empty executable.
15423         cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h.  */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h.  */
15429
15430 int
15431 main ()
15432 {
15433
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440   (eval $ac_link) 2>conftest.er1
15441   ac_status=$?
15442   grep -v '^ *+' conftest.er1 >conftest.err
15443   rm -f conftest.er1
15444   cat conftest.err >&5
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } &&
15447          { ac_try='test -z "$ac_cxx_werror_flag"
15448                          || test ! -s conftest.err'
15449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450   (eval $ac_try) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; } &&
15454          { ac_try='test -s conftest$ac_exeext'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; }; then
15460
15461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15462 }'`
15463 # Check for a 64-bit object if we didn't find anything.
15464 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; }
15465 }'`; fi
15466 else
15467   echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 fi
15471 rm -f conftest.err conftest.$ac_objext \
15472       conftest$ac_exeext conftest.$ac_ext
15473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15474
15475         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15476         # Warning - without using the other run time loading flags,
15477         # -berok will link without error, but may produce a broken library.
15478         no_undefined_flag_CXX=' ${wl}-bernotok'
15479         allow_undefined_flag_CXX=' ${wl}-berok'
15480         # -bexpall does not export symbols beginning with underscore (_)
15481         always_export_symbols_CXX=yes
15482         # Exported symbols can be pulled into shared objects from archives
15483         whole_archive_flag_spec_CXX=' '
15484         archive_cmds_need_lc_CXX=yes
15485         # This is similar to how AIX traditionally builds it's shared libraries.
15486         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'
15487       fi
15488     fi
15489     ;;
15490   chorus*)
15491     case $cc_basename in
15492       *)
15493         # FIXME: insert proper C++ library support
15494         ld_shlibs_CXX=no
15495         ;;
15496     esac
15497     ;;
15498
15499
15500   cygwin* | mingw* | pw32*)
15501     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15502     # as there is no search path for DLLs.
15503     hardcode_libdir_flag_spec_CXX='-L$libdir'
15504     allow_undefined_flag_CXX=unsupported
15505     always_export_symbols_CXX=no
15506     enable_shared_with_static_runtimes_CXX=yes
15507
15508     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15509       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'
15510       # If the export-symbols file already is a .def file (1st line
15511       # is EXPORTS), use it as is; otherwise, prepend...
15512       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15513         cp $export_symbols $output_objdir/$soname.def;
15514       else
15515         echo EXPORTS > $output_objdir/$soname.def;
15516         cat $export_symbols >> $output_objdir/$soname.def;
15517       fi~
15518       $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'
15519     else
15520       ld_shlibs_CXX=no
15521     fi
15522   ;;
15523       darwin* | rhapsody*)
15524         case "$host_os" in
15525         rhapsody* | darwin1.[012])
15526          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15527          ;;
15528        *) # Darwin 1.3 on
15529          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15530            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15531          else
15532            case ${MACOSX_DEPLOYMENT_TARGET} in
15533              10.[012])
15534                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15535                ;;
15536              10.*)
15537                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15538                ;;
15539            esac
15540          fi
15541          ;;
15542         esac
15543       archive_cmds_need_lc_CXX=no
15544       hardcode_direct_CXX=no
15545       hardcode_automatic_CXX=yes
15546       hardcode_shlibpath_var_CXX=unsupported
15547       whole_archive_flag_spec_CXX=''
15548       link_all_deplibs_CXX=yes
15549
15550     if test "$GXX" = yes ; then
15551       lt_int_apple_cc_single_mod=no
15552       output_verbose_link_cmd='echo'
15553       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15554        lt_int_apple_cc_single_mod=yes
15555       fi
15556       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15557        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15558       else
15559           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'
15560         fi
15561         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15562         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15563           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15564             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}'
15565           else
15566             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}'
15567           fi
15568             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15569       else
15570       case "$cc_basename" in
15571         xlc*)
15572          output_verbose_link_cmd='echo'
15573           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'
15574           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15575           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15576           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}'
15577           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}'
15578           ;;
15579        *)
15580          ld_shlibs_CXX=no
15581           ;;
15582       esac
15583       fi
15584         ;;
15585
15586   dgux*)
15587     case $cc_basename in
15588       ec++)
15589         # FIXME: insert proper C++ library support
15590         ld_shlibs_CXX=no
15591         ;;
15592       ghcx)
15593         # Green Hills C++ Compiler
15594         # FIXME: insert proper C++ library support
15595         ld_shlibs_CXX=no
15596         ;;
15597       *)
15598         # FIXME: insert proper C++ library support
15599         ld_shlibs_CXX=no
15600         ;;
15601     esac
15602     ;;
15603   freebsd12*)
15604     # C++ shared libraries reported to be fairly broken before switch to ELF
15605     ld_shlibs_CXX=no
15606     ;;
15607   freebsd-elf*)
15608     archive_cmds_need_lc_CXX=no
15609     ;;
15610   freebsd* | kfreebsd*-gnu)
15611     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15612     # conventions
15613     ld_shlibs_CXX=yes
15614     ;;
15615   gnu*)
15616     ;;
15617   hpux9*)
15618     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15619     hardcode_libdir_separator_CXX=:
15620     export_dynamic_flag_spec_CXX='${wl}-E'
15621     hardcode_direct_CXX=yes
15622     hardcode_minus_L_CXX=yes # Not in the search PATH,
15623                                 # but as the default
15624                                 # location of the library.
15625
15626     case $cc_basename in
15627     CC)
15628       # FIXME: insert proper C++ library support
15629       ld_shlibs_CXX=no
15630       ;;
15631     aCC)
15632       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'
15633       # Commands to make compiler produce verbose output that lists
15634       # what "hidden" libraries, object files and flags are used when
15635       # linking a shared library.
15636       #
15637       # There doesn't appear to be a way to prevent this compiler from
15638       # explicitly linking system object files so we need to strip them
15639       # from the output so that they don't get included in the library
15640       # dependencies.
15641       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'
15642       ;;
15643     *)
15644       if test "$GXX" = yes; then
15645         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'
15646       else
15647         # FIXME: insert proper C++ library support
15648         ld_shlibs_CXX=no
15649       fi
15650       ;;
15651     esac
15652     ;;
15653   hpux10*|hpux11*)
15654     if test $with_gnu_ld = no; then
15655       case "$host_cpu" in
15656       hppa*64*)
15657         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15658         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15659         hardcode_libdir_separator_CXX=:
15660         ;;
15661       ia64*)
15662         hardcode_libdir_flag_spec_CXX='-L$libdir'
15663         ;;
15664       *)
15665         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15666         hardcode_libdir_separator_CXX=:
15667         export_dynamic_flag_spec_CXX='${wl}-E'
15668         ;;
15669       esac
15670     fi
15671     case "$host_cpu" in
15672     hppa*64*)
15673       hardcode_direct_CXX=no
15674       hardcode_shlibpath_var_CXX=no
15675       ;;
15676     ia64*)
15677       hardcode_direct_CXX=no
15678       hardcode_shlibpath_var_CXX=no
15679       hardcode_minus_L_CXX=yes # Not in the search PATH,
15680                                               # but as the default
15681                                               # location of the library.
15682       ;;
15683     *)
15684       hardcode_direct_CXX=yes
15685       hardcode_minus_L_CXX=yes # Not in the search PATH,
15686                                               # but as the default
15687                                               # location of the library.
15688       ;;
15689     esac
15690
15691     case $cc_basename in
15692       CC)
15693         # FIXME: insert proper C++ library support
15694         ld_shlibs_CXX=no
15695         ;;
15696       aCC)
15697         case "$host_cpu" in
15698         hppa*64*|ia64*)
15699           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15700           ;;
15701         *)
15702           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15703           ;;
15704         esac
15705         # Commands to make compiler produce verbose output that lists
15706         # what "hidden" libraries, object files and flags are used when
15707         # linking a shared library.
15708         #
15709         # There doesn't appear to be a way to prevent this compiler from
15710         # explicitly linking system object files so we need to strip them
15711         # from the output so that they don't get included in the library
15712         # dependencies.
15713         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'
15714         ;;
15715       *)
15716         if test "$GXX" = yes; then
15717           if test $with_gnu_ld = no; then
15718             case "$host_cpu" in
15719             ia64*|hppa*64*)
15720               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15721               ;;
15722             *)
15723               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'
15724               ;;
15725             esac
15726           fi
15727         else
15728           # FIXME: insert proper C++ library support
15729           ld_shlibs_CXX=no
15730         fi
15731         ;;
15732     esac
15733     ;;
15734   irix5* | irix6*)
15735     case $cc_basename in
15736       CC)
15737         # SGI C++
15738         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'
15739
15740         # Archives containing C++ object files must be created using
15741         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15742         # necessary to make sure instantiated templates are included
15743         # in the archive.
15744         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15745         ;;
15746       *)
15747         if test "$GXX" = yes; then
15748           if test "$with_gnu_ld" = no; then
15749             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'
15750           else
15751             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'
15752           fi
15753         fi
15754         link_all_deplibs_CXX=yes
15755         ;;
15756     esac
15757     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15758     hardcode_libdir_separator_CXX=:
15759     ;;
15760   linux*)
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         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'
15770         # Commands to make compiler produce verbose output that lists
15771         # what "hidden" libraries, object files and flags are used when
15772         # linking a shared library.
15773         #
15774         # There doesn't appear to be a way to prevent this compiler from
15775         # explicitly linking system object files so we need to strip them
15776         # from the output so that they don't get included in the library
15777         # dependencies.
15778         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'
15779
15780         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15781         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15782
15783         # Archives containing C++ object files must be created using
15784         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15785         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15786         ;;
15787       icpc)
15788         # Intel C++
15789         with_gnu_ld=yes
15790         # version 8.0 and above of icpc choke on multiply defined symbols
15791         # if we add $predep_objects and $postdep_objects, however 7.1 and
15792         # earlier do not add the objects themselves.
15793         case `$CC -V 2>&1` in
15794         *"Version 7."*)
15795           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796           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'
15797           ;;
15798         *)  # Version 8.0 or newer
15799           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15801           ;;
15802         esac
15803         archive_cmds_need_lc_CXX=no
15804         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15805         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15806         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15807         ;;
15808       cxx)
15809         # Compaq C++
15810         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811         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'
15812
15813         runpath_var=LD_RUN_PATH
15814         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15815         hardcode_libdir_separator_CXX=:
15816
15817         # Commands to make compiler produce verbose output that lists
15818         # what "hidden" libraries, object files and flags are used when
15819         # linking a shared library.
15820         #
15821         # There doesn't appear to be a way to prevent this compiler from
15822         # explicitly linking system object files so we need to strip them
15823         # from the output so that they don't get included in the library
15824         # dependencies.
15825         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'
15826         ;;
15827     esac
15828     ;;
15829   lynxos*)
15830     # FIXME: insert proper C++ library support
15831     ld_shlibs_CXX=no
15832     ;;
15833   m88k*)
15834     # FIXME: insert proper C++ library support
15835     ld_shlibs_CXX=no
15836     ;;
15837   mvs*)
15838     case $cc_basename in
15839       cxx)
15840         # FIXME: insert proper C++ library support
15841         ld_shlibs_CXX=no
15842         ;;
15843       *)
15844         # FIXME: insert proper C++ library support
15845         ld_shlibs_CXX=no
15846         ;;
15847     esac
15848     ;;
15849   netbsd*)
15850     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15851       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15852       wlarc=
15853       hardcode_libdir_flag_spec_CXX='-R$libdir'
15854       hardcode_direct_CXX=yes
15855       hardcode_shlibpath_var_CXX=no
15856     fi
15857     # Workaround some broken pre-1.5 toolchains
15858     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15859     ;;
15860   openbsd2*)
15861     # C++ shared libraries are fairly broken
15862     ld_shlibs_CXX=no
15863     ;;
15864   openbsd*)
15865     hardcode_direct_CXX=yes
15866     hardcode_shlibpath_var_CXX=no
15867     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15868     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15869     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15870       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15871       export_dynamic_flag_spec_CXX='${wl}-E'
15872       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15873     fi
15874     output_verbose_link_cmd='echo'
15875     ;;
15876   osf3*)
15877     case $cc_basename in
15878       KCC)
15879         # Kuck and Associates, Inc. (KAI) C++ Compiler
15880
15881         # KCC will only create a shared library if the output file
15882         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15883         # to its proper name (with version) after linking.
15884         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'
15885
15886         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15887         hardcode_libdir_separator_CXX=:
15888
15889         # Archives containing C++ object files must be created using
15890         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15891         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15892
15893         ;;
15894       RCC)
15895         # Rational C++ 2.4.1
15896         # FIXME: insert proper C++ library support
15897         ld_shlibs_CXX=no
15898         ;;
15899       cxx)
15900         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15901         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'
15902
15903         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15904         hardcode_libdir_separator_CXX=:
15905
15906         # Commands to make compiler produce verbose output that lists
15907         # what "hidden" libraries, object files and flags are used when
15908         # linking a shared library.
15909         #
15910         # There doesn't appear to be a way to prevent this compiler from
15911         # explicitly linking system object files so we need to strip them
15912         # from the output so that they don't get included in the library
15913         # dependencies.
15914         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'
15915         ;;
15916       *)
15917         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15918           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15919           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'
15920
15921           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15922           hardcode_libdir_separator_CXX=:
15923
15924           # Commands to make compiler produce verbose output that lists
15925           # what "hidden" libraries, object files and flags are used when
15926           # linking a shared library.
15927           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15928
15929         else
15930           # FIXME: insert proper C++ library support
15931           ld_shlibs_CXX=no
15932         fi
15933         ;;
15934     esac
15935     ;;
15936   osf4* | osf5*)
15937     case $cc_basename in
15938       KCC)
15939         # Kuck and Associates, Inc. (KAI) C++ Compiler
15940
15941         # KCC will only create a shared library if the output file
15942         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15943         # to its proper name (with version) after linking.
15944         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'
15945
15946         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15947         hardcode_libdir_separator_CXX=:
15948
15949         # Archives containing C++ object files must be created using
15950         # the KAI C++ compiler.
15951         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15952         ;;
15953       RCC)
15954         # Rational C++ 2.4.1
15955         # FIXME: insert proper C++ library support
15956         ld_shlibs_CXX=no
15957         ;;
15958       cxx)
15959         allow_undefined_flag_CXX=' -expect_unresolved \*'
15960         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'
15961         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15962           echo "-hidden">> $lib.exp~
15963           $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~
15964           $rm $lib.exp'
15965
15966         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15967         hardcode_libdir_separator_CXX=:
15968
15969         # Commands to make compiler produce verbose output that lists
15970         # what "hidden" libraries, object files and flags are used when
15971         # linking a shared library.
15972         #
15973         # There doesn't appear to be a way to prevent this compiler from
15974         # explicitly linking system object files so we need to strip them
15975         # from the output so that they don't get included in the library
15976         # dependencies.
15977         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'
15978         ;;
15979       *)
15980         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15981           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15982          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'
15983
15984           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15985           hardcode_libdir_separator_CXX=:
15986
15987           # Commands to make compiler produce verbose output that lists
15988           # what "hidden" libraries, object files and flags are used when
15989           # linking a shared library.
15990           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15991
15992         else
15993           # FIXME: insert proper C++ library support
15994           ld_shlibs_CXX=no
15995         fi
15996         ;;
15997     esac
15998     ;;
15999   psos*)
16000     # FIXME: insert proper C++ library support
16001     ld_shlibs_CXX=no
16002     ;;
16003   sco*)
16004     archive_cmds_need_lc_CXX=no
16005     case $cc_basename in
16006       CC)
16007         # FIXME: insert proper C++ library support
16008         ld_shlibs_CXX=no
16009         ;;
16010       *)
16011         # FIXME: insert proper C++ library support
16012         ld_shlibs_CXX=no
16013         ;;
16014     esac
16015     ;;
16016   sunos4*)
16017     case $cc_basename in
16018       CC)
16019         # Sun C++ 4.x
16020         # FIXME: insert proper C++ library support
16021         ld_shlibs_CXX=no
16022         ;;
16023       lcc)
16024         # Lucid
16025         # FIXME: insert proper C++ library support
16026         ld_shlibs_CXX=no
16027         ;;
16028       *)
16029         # FIXME: insert proper C++ library support
16030         ld_shlibs_CXX=no
16031         ;;
16032     esac
16033     ;;
16034   solaris*)
16035     case $cc_basename in
16036       CC)
16037         # Sun C++ 4.2, 5.x and Centerline C++
16038         no_undefined_flag_CXX=' -zdefs'
16039         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16040         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16041         $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'
16042
16043         hardcode_libdir_flag_spec_CXX='-R$libdir'
16044         hardcode_shlibpath_var_CXX=no
16045         case $host_os in
16046           solaris2.0-5 | solaris2.0-5.*) ;;
16047           *)
16048             # The C++ compiler is used as linker so we must use $wl
16049             # flag to pass the commands to the underlying system
16050             # linker.
16051             # Supported since Solaris 2.6 (maybe 2.5.1?)
16052             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16053             ;;
16054         esac
16055         link_all_deplibs_CXX=yes
16056
16057         # Commands to make compiler produce verbose output that lists
16058         # what "hidden" libraries, object files and flags are used when
16059         # linking a shared library.
16060         #
16061         # There doesn't appear to be a way to prevent this compiler from
16062         # explicitly linking system object files so we need to strip them
16063         # from the output so that they don't get included in the library
16064         # dependencies.
16065         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'
16066
16067         # Archives containing C++ object files must be created using
16068         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16069         # necessary to make sure instantiated templates are included
16070         # in the archive.
16071         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16072         ;;
16073       gcx)
16074         # Green Hills C++ Compiler
16075         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16076
16077         # The C++ compiler must be used to create the archive.
16078         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16079         ;;
16080       *)
16081         # GNU C++ compiler with Solaris linker
16082         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16083           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16084           if $CC --version | grep -v '^2\.7' > /dev/null; then
16085             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16086             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16087                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16088
16089             # Commands to make compiler produce verbose output that lists
16090             # what "hidden" libraries, object files and flags are used when
16091             # linking a shared library.
16092             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16093           else
16094             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16095             # platform.
16096             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16097             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16099
16100             # Commands to make compiler produce verbose output that lists
16101             # what "hidden" libraries, object files and flags are used when
16102             # linking a shared library.
16103             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16104           fi
16105
16106           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16107         fi
16108         ;;
16109     esac
16110     ;;
16111   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16112     archive_cmds_need_lc_CXX=no
16113     ;;
16114   tandem*)
16115     case $cc_basename in
16116       NCC)
16117         # NonStop-UX NCC 3.20
16118         # FIXME: insert proper C++ library support
16119         ld_shlibs_CXX=no
16120         ;;
16121       *)
16122         # FIXME: insert proper C++ library support
16123         ld_shlibs_CXX=no
16124         ;;
16125     esac
16126     ;;
16127   vxworks*)
16128     # FIXME: insert proper C++ library support
16129     ld_shlibs_CXX=no
16130     ;;
16131   *)
16132     # FIXME: insert proper C++ library support
16133     ld_shlibs_CXX=no
16134     ;;
16135 esac
16136 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16137 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16138 test "$ld_shlibs_CXX" = no && can_build_shared=no
16139
16140 GCC_CXX="$GXX"
16141 LD_CXX="$LD"
16142
16143
16144 cat > conftest.$ac_ext <<EOF
16145 class Foo
16146 {
16147 public:
16148   Foo (void) { a = 0; }
16149 private:
16150   int a;
16151 };
16152 EOF
16153
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155   (eval $ac_compile) 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); }; then
16159   # Parse the compiler output and extract the necessary
16160   # objects, libraries and library flags.
16161
16162   # Sentinel used to keep track of whether or not we are before
16163   # the conftest object file.
16164   pre_test_object_deps_done=no
16165
16166   # The `*' in the case matches for architectures that use `case' in
16167   # $output_verbose_cmd can trigger glob expansion during the loop
16168   # eval without this substitution.
16169   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16170
16171   for p in `eval $output_verbose_link_cmd`; do
16172     case $p in
16173
16174     -L* | -R* | -l*)
16175        # Some compilers place space between "-{L,R}" and the path.
16176        # Remove the space.
16177        if test $p = "-L" \
16178           || test $p = "-R"; then
16179          prev=$p
16180          continue
16181        else
16182          prev=
16183        fi
16184
16185        if test "$pre_test_object_deps_done" = no; then
16186          case $p in
16187          -L* | -R*)
16188            # Internal compiler library paths should come after those
16189            # provided the user.  The postdeps already come after the
16190            # user supplied libs so there is no need to process them.
16191            if test -z "$compiler_lib_search_path_CXX"; then
16192              compiler_lib_search_path_CXX="${prev}${p}"
16193            else
16194              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16195            fi
16196            ;;
16197          # The "-l" case would never come before the object being
16198          # linked, so don't bother handling this case.
16199          esac
16200        else
16201          if test -z "$postdeps_CXX"; then
16202            postdeps_CXX="${prev}${p}"
16203          else
16204            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16205          fi
16206        fi
16207        ;;
16208
16209     *.$objext)
16210        # This assumes that the test object file only shows up
16211        # once in the compiler output.
16212        if test "$p" = "conftest.$objext"; then
16213          pre_test_object_deps_done=yes
16214          continue
16215        fi
16216
16217        if test "$pre_test_object_deps_done" = no; then
16218          if test -z "$predep_objects_CXX"; then
16219            predep_objects_CXX="$p"
16220          else
16221            predep_objects_CXX="$predep_objects_CXX $p"
16222          fi
16223        else
16224          if test -z "$postdep_objects_CXX"; then
16225            postdep_objects_CXX="$p"
16226          else
16227            postdep_objects_CXX="$postdep_objects_CXX $p"
16228          fi
16229        fi
16230        ;;
16231
16232     *) ;; # Ignore the rest.
16233
16234     esac
16235   done
16236
16237   # Clean up.
16238   rm -f a.out a.exe
16239 else
16240   echo "libtool.m4: error: problem compiling CXX test program"
16241 fi
16242
16243 $rm -f confest.$objext
16244
16245 case " $postdeps_CXX " in
16246 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16247 esac
16248
16249 lt_prog_compiler_wl_CXX=
16250 lt_prog_compiler_pic_CXX=
16251 lt_prog_compiler_static_CXX=
16252
16253 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16255
16256   # C++ specific cases for pic, static, wl, etc.
16257   if test "$GXX" = yes; then
16258     lt_prog_compiler_wl_CXX='-Wl,'
16259     lt_prog_compiler_static_CXX='-static'
16260
16261     case $host_os in
16262     aix*)
16263       # All AIX code is PIC.
16264       if test "$host_cpu" = ia64; then
16265         # AIX 5 now supports IA64 processor
16266         lt_prog_compiler_static_CXX='-Bstatic'
16267       fi
16268       ;;
16269     amigaos*)
16270       # FIXME: we need at least 68020 code to build shared libraries, but
16271       # adding the `-m68020' flag to GCC prevents building anything better,
16272       # like `-m68040'.
16273       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16274       ;;
16275     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16276       # PIC is the default for these OSes.
16277       ;;
16278     mingw* | os2* | pw32*)
16279       # This hack is so that the source file can tell whether it is being
16280       # built for inclusion in a dll (and should export symbols for example).
16281       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16282       ;;
16283     darwin* | rhapsody*)
16284       # PIC is the default on this platform
16285       # Common symbols not allowed in MH_DYLIB files
16286       lt_prog_compiler_pic_CXX='-fno-common'
16287       ;;
16288     *djgpp*)
16289       # DJGPP does not support shared libraries at all
16290       lt_prog_compiler_pic_CXX=
16291       ;;
16292     sysv4*MP*)
16293       if test -d /usr/nec; then
16294         lt_prog_compiler_pic_CXX=-Kconform_pic
16295       fi
16296       ;;
16297     hpux*)
16298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16299       # not for PA HP-UX.
16300       case "$host_cpu" in
16301       hppa*64*|ia64*)
16302         ;;
16303       *)
16304         lt_prog_compiler_pic_CXX='-fPIC'
16305         ;;
16306       esac
16307       ;;
16308     *)
16309       lt_prog_compiler_pic_CXX='-fPIC'
16310       ;;
16311     esac
16312   else
16313     case $host_os in
16314       aix4* | aix5*)
16315         # All AIX code is PIC.
16316         if test "$host_cpu" = ia64; then
16317           # AIX 5 now supports IA64 processor
16318           lt_prog_compiler_static_CXX='-Bstatic'
16319         else
16320           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16321         fi
16322         ;;
16323       chorus*)
16324         case $cc_basename in
16325         cxch68)
16326           # Green Hills C++ Compiler
16327           # _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"
16328           ;;
16329         esac
16330         ;;
16331        darwin*)
16332          # PIC is the default on this platform
16333          # Common symbols not allowed in MH_DYLIB files
16334          case "$cc_basename" in
16335            xlc*)
16336            lt_prog_compiler_pic_CXX='-qnocommon'
16337            lt_prog_compiler_wl_CXX='-Wl,'
16338            ;;
16339          esac
16340        ;;
16341       dgux*)
16342         case $cc_basename in
16343           ec++)
16344             lt_prog_compiler_pic_CXX='-KPIC'
16345             ;;
16346           ghcx)
16347             # Green Hills C++ Compiler
16348             lt_prog_compiler_pic_CXX='-pic'
16349             ;;
16350           *)
16351             ;;
16352         esac
16353         ;;
16354       freebsd* | kfreebsd*-gnu)
16355         # FreeBSD uses GNU C++
16356         ;;
16357       hpux9* | hpux10* | hpux11*)
16358         case $cc_basename in
16359           CC)
16360             lt_prog_compiler_wl_CXX='-Wl,'
16361             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16362             if test "$host_cpu" != ia64; then
16363               lt_prog_compiler_pic_CXX='+Z'
16364             fi
16365             ;;
16366           aCC)
16367             lt_prog_compiler_wl_CXX='-Wl,'
16368             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16369             case "$host_cpu" in
16370             hppa*64*|ia64*)
16371               # +Z the default
16372               ;;
16373             *)
16374               lt_prog_compiler_pic_CXX='+Z'
16375               ;;
16376             esac
16377             ;;
16378           *)
16379             ;;
16380         esac
16381         ;;
16382       irix5* | irix6* | nonstopux*)
16383         case $cc_basename in
16384           CC)
16385             lt_prog_compiler_wl_CXX='-Wl,'
16386             lt_prog_compiler_static_CXX='-non_shared'
16387             # CC pic flag -KPIC is the default.
16388             ;;
16389           *)
16390             ;;
16391         esac
16392         ;;
16393       linux*)
16394         case $cc_basename in
16395           KCC)
16396             # KAI C++ Compiler
16397             lt_prog_compiler_wl_CXX='--backend -Wl,'
16398             lt_prog_compiler_pic_CXX='-fPIC'
16399             ;;
16400           icpc)
16401             # Intel C++
16402             lt_prog_compiler_wl_CXX='-Wl,'
16403             lt_prog_compiler_pic_CXX='-KPIC'
16404             lt_prog_compiler_static_CXX='-static'
16405             ;;
16406           cxx)
16407             # Compaq C++
16408             # Make sure the PIC flag is empty.  It appears that all Alpha
16409             # Linux and Compaq Tru64 Unix objects are PIC.
16410             lt_prog_compiler_pic_CXX=
16411             lt_prog_compiler_static_CXX='-non_shared'
16412             ;;
16413           *)
16414             ;;
16415         esac
16416         ;;
16417       lynxos*)
16418         ;;
16419       m88k*)
16420         ;;
16421       mvs*)
16422         case $cc_basename in
16423           cxx)
16424             lt_prog_compiler_pic_CXX='-W c,exportall'
16425             ;;
16426           *)
16427             ;;
16428         esac
16429         ;;
16430       netbsd*)
16431         ;;
16432       osf3* | osf4* | osf5*)
16433         case $cc_basename in
16434           KCC)
16435             lt_prog_compiler_wl_CXX='--backend -Wl,'
16436             ;;
16437           RCC)
16438             # Rational C++ 2.4.1
16439             lt_prog_compiler_pic_CXX='-pic'
16440             ;;
16441           cxx)
16442             # Digital/Compaq C++
16443             lt_prog_compiler_wl_CXX='-Wl,'
16444             # Make sure the PIC flag is empty.  It appears that all Alpha
16445             # Linux and Compaq Tru64 Unix objects are PIC.
16446             lt_prog_compiler_pic_CXX=
16447             lt_prog_compiler_static_CXX='-non_shared'
16448             ;;
16449           *)
16450             ;;
16451         esac
16452         ;;
16453       psos*)
16454         ;;
16455       sco*)
16456         case $cc_basename in
16457           CC)
16458             lt_prog_compiler_pic_CXX='-fPIC'
16459             ;;
16460           *)
16461             ;;
16462         esac
16463         ;;
16464       solaris*)
16465         case $cc_basename in
16466           CC)
16467             # Sun C++ 4.2, 5.x and Centerline C++
16468             lt_prog_compiler_pic_CXX='-KPIC'
16469             lt_prog_compiler_static_CXX='-Bstatic'
16470             lt_prog_compiler_wl_CXX='-Qoption ld '
16471             ;;
16472           gcx)
16473             # Green Hills C++ Compiler
16474             lt_prog_compiler_pic_CXX='-PIC'
16475             ;;
16476           *)
16477             ;;
16478         esac
16479         ;;
16480       sunos4*)
16481         case $cc_basename in
16482           CC)
16483             # Sun C++ 4.x
16484             lt_prog_compiler_pic_CXX='-pic'
16485             lt_prog_compiler_static_CXX='-Bstatic'
16486             ;;
16487           lcc)
16488             # Lucid
16489             lt_prog_compiler_pic_CXX='-pic'
16490             ;;
16491           *)
16492             ;;
16493         esac
16494         ;;
16495       tandem*)
16496         case $cc_basename in
16497           NCC)
16498             # NonStop-UX NCC 3.20
16499             lt_prog_compiler_pic_CXX='-KPIC'
16500             ;;
16501           *)
16502             ;;
16503         esac
16504         ;;
16505       unixware*)
16506         ;;
16507       vxworks*)
16508         ;;
16509       *)
16510         lt_prog_compiler_can_build_shared_CXX=no
16511         ;;
16512     esac
16513   fi
16514
16515 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16516 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16517
16518 #
16519 # Check to make sure the PIC flag actually works.
16520 #
16521 if test -n "$lt_prog_compiler_pic_CXX"; then
16522
16523 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16524 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16525 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16526   echo $ECHO_N "(cached) $ECHO_C" >&6
16527 else
16528   lt_prog_compiler_pic_works_CXX=no
16529   ac_outfile=conftest.$ac_objext
16530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16531    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16532    # Insert the option either (1) after the last *FLAGS variable, or
16533    # (2) before a word containing "conftest.", or (3) at the end.
16534    # Note that $ac_compile itself does not contain backslashes and begins
16535    # with a dollar sign (not a hyphen), so the echo should work correctly.
16536    # The option is referenced via a variable to avoid confusing sed.
16537    lt_compile=`echo "$ac_compile" | $SED \
16538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16540    -e 's:$: $lt_compiler_flag:'`
16541    (eval echo "\"\$as_me:16540: $lt_compile\"" >&5)
16542    (eval "$lt_compile" 2>conftest.err)
16543    ac_status=$?
16544    cat conftest.err >&5
16545    echo "$as_me:16544: \$? = $ac_status" >&5
16546    if (exit $ac_status) && test -s "$ac_outfile"; then
16547      # The compiler can only warn and ignore the option if not recognized
16548      # So say no if there are warnings
16549      if test ! -s conftest.err; then
16550        lt_prog_compiler_pic_works_CXX=yes
16551      fi
16552    fi
16553    $rm conftest*
16554
16555 fi
16556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16557 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16558
16559 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16560     case $lt_prog_compiler_pic_CXX in
16561      "" | " "*) ;;
16562      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16563      esac
16564 else
16565     lt_prog_compiler_pic_CXX=
16566      lt_prog_compiler_can_build_shared_CXX=no
16567 fi
16568
16569 fi
16570 case "$host_os" in
16571   # For platforms which do not support PIC, -DPIC is meaningless:
16572   *djgpp*)
16573     lt_prog_compiler_pic_CXX=
16574     ;;
16575   *)
16576     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16577     ;;
16578 esac
16579
16580 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16582 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   lt_cv_prog_compiler_c_o_CXX=no
16586    $rm -r conftest 2>/dev/null
16587    mkdir conftest
16588    cd conftest
16589    mkdir out
16590    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16591
16592    lt_compiler_flag="-o out/conftest2.$ac_objext"
16593    # Insert the option either (1) after the last *FLAGS variable, or
16594    # (2) before a word containing "conftest.", or (3) at the end.
16595    # Note that $ac_compile itself does not contain backslashes and begins
16596    # with a dollar sign (not a hyphen), so the echo should work correctly.
16597    lt_compile=`echo "$ac_compile" | $SED \
16598    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16599    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16600    -e 's:$: $lt_compiler_flag:'`
16601    (eval echo "\"\$as_me:16600: $lt_compile\"" >&5)
16602    (eval "$lt_compile" 2>out/conftest.err)
16603    ac_status=$?
16604    cat out/conftest.err >&5
16605    echo "$as_me:16604: \$? = $ac_status" >&5
16606    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16607    then
16608      # The compiler can only warn and ignore the option if not recognized
16609      # So say no if there are warnings
16610      if test ! -s out/conftest.err; then
16611        lt_cv_prog_compiler_c_o_CXX=yes
16612      fi
16613    fi
16614    chmod u+w .
16615    $rm conftest*
16616    # SGI C++ compiler will create directory out/ii_files/ for
16617    # template instantiation
16618    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16619    $rm out/* && rmdir out
16620    cd ..
16621    rmdir conftest
16622    $rm conftest*
16623
16624 fi
16625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16626 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16627
16628
16629 hard_links="nottested"
16630 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16631   # do not overwrite the value of need_locks provided by the user
16632   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16633 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16634   hard_links=yes
16635   $rm conftest*
16636   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16637   touch conftest.a
16638   ln conftest.a conftest.b 2>&5 || hard_links=no
16639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16640   echo "$as_me:$LINENO: result: $hard_links" >&5
16641 echo "${ECHO_T}$hard_links" >&6
16642   if test "$hard_links" = no; then
16643     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16644 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16645     need_locks=warn
16646   fi
16647 else
16648   need_locks=no
16649 fi
16650
16651 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16652 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16653
16654   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16655   case $host_os in
16656   aix4* | aix5*)
16657     # If we're using GNU nm, then we don't want the "-C" option.
16658     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16659     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16660       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'
16661     else
16662       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'
16663     fi
16664     ;;
16665   pw32*)
16666     export_symbols_cmds_CXX="$ltdll_cmds"
16667   ;;
16668   cygwin* | mingw*)
16669     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16670   ;;
16671   *)
16672     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16673   ;;
16674   esac
16675
16676 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16677 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16678 test "$ld_shlibs_CXX" = no && can_build_shared=no
16679
16680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16681 if test "$GCC" = yes; then
16682   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16683 fi
16684
16685 #
16686 # Do we need to explicitly link libc?
16687 #
16688 case "x$archive_cmds_need_lc_CXX" in
16689 x|xyes)
16690   # Assume -lc should be added
16691   archive_cmds_need_lc_CXX=yes
16692
16693   if test "$enable_shared" = yes && test "$GCC" = yes; then
16694     case $archive_cmds_CXX in
16695     *'~'*)
16696       # FIXME: we may have to deal with multi-command sequences.
16697       ;;
16698     '$CC '*)
16699       # Test whether the compiler implicitly links with -lc since on some
16700       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16701       # to ld, don't add -lc before -lgcc.
16702       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16703 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16704       $rm conftest*
16705       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16706
16707       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708   (eval $ac_compile) 2>&5
16709   ac_status=$?
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); } 2>conftest.err; then
16712         soname=conftest
16713         lib=conftest
16714         libobjs=conftest.$ac_objext
16715         deplibs=
16716         wl=$lt_prog_compiler_wl_CXX
16717         compiler_flags=-v
16718         linker_flags=-v
16719         verstring=
16720         output_objdir=.
16721         libname=conftest
16722         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16723         allow_undefined_flag_CXX=
16724         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16725   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }
16729         then
16730           archive_cmds_need_lc_CXX=no
16731         else
16732           archive_cmds_need_lc_CXX=yes
16733         fi
16734         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16735       else
16736         cat conftest.err 1>&5
16737       fi
16738       $rm conftest*
16739       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16740 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16741       ;;
16742     esac
16743   fi
16744   ;;
16745 esac
16746
16747 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16748 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16749 library_names_spec=
16750 libname_spec='lib$name'
16751 soname_spec=
16752 shrext_cmds=".so"
16753 postinstall_cmds=
16754 postuninstall_cmds=
16755 finish_cmds=
16756 finish_eval=
16757 shlibpath_var=
16758 shlibpath_overrides_runpath=unknown
16759 version_type=none
16760 dynamic_linker="$host_os ld.so"
16761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16762 if test "$GCC" = yes; then
16763   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16764   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16765     # if the path contains ";" then we assume it to be the separator
16766     # otherwise default to the standard path separator (i.e. ":") - it is
16767     # assumed that no part of a normal pathname contains ";" but that should
16768     # okay in the real world where ";" in dirpaths is itself problematic.
16769     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16770   else
16771     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16772   fi
16773 else
16774   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16775 fi
16776 need_lib_prefix=unknown
16777 hardcode_into_libs=no
16778
16779 # when you set need_version to no, make sure it does not cause -set_version
16780 # flags to be left without arguments
16781 need_version=unknown
16782
16783 case $host_os in
16784 aix3*)
16785   version_type=linux
16786   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16787   shlibpath_var=LIBPATH
16788
16789   # AIX 3 has no versioning support, so we append a major version to the name.
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   ;;
16792
16793 aix4* | aix5*)
16794   version_type=linux
16795   need_lib_prefix=no
16796   need_version=no
16797   hardcode_into_libs=yes
16798   if test "$host_cpu" = ia64; then
16799     # AIX 5 supports IA64
16800     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16801     shlibpath_var=LD_LIBRARY_PATH
16802   else
16803     # With GCC up to 2.95.x, collect2 would create an import file
16804     # for dependence libraries.  The import file would start with
16805     # the line `#! .'.  This would cause the generated library to
16806     # depend on `.', always an invalid library.  This was fixed in
16807     # development snapshots of GCC prior to 3.0.
16808     case $host_os in
16809       aix4 | aix4.[01] | aix4.[01].*)
16810       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16811            echo ' yes '
16812            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16813         :
16814       else
16815         can_build_shared=no
16816       fi
16817       ;;
16818     esac
16819     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16820     # soname into executable. Probably we can add versioning support to
16821     # collect2, so additional links can be useful in future.
16822     if test "$aix_use_runtimelinking" = yes; then
16823       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16824       # instead of lib<name>.a to let people know that these are not
16825       # typical AIX shared libraries.
16826       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827     else
16828       # We preserve .a as extension for shared libraries through AIX4.2
16829       # and later when we are not doing run time linking.
16830       library_names_spec='${libname}${release}.a $libname.a'
16831       soname_spec='${libname}${release}${shared_ext}$major'
16832     fi
16833     shlibpath_var=LIBPATH
16834   fi
16835   ;;
16836
16837 amigaos*)
16838   library_names_spec='$libname.ixlibrary $libname.a'
16839   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16840   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'
16841   ;;
16842
16843 beos*)
16844   library_names_spec='${libname}${shared_ext}'
16845   dynamic_linker="$host_os ld.so"
16846   shlibpath_var=LIBRARY_PATH
16847   ;;
16848
16849 bsdi[45]*)
16850   version_type=linux
16851   need_version=no
16852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853   soname_spec='${libname}${release}${shared_ext}$major'
16854   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16855   shlibpath_var=LD_LIBRARY_PATH
16856   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16857   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16858   # the default ld.so.conf also contains /usr/contrib/lib and
16859   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16860   # libtool to hard-code these into programs
16861   ;;
16862
16863 cygwin* | mingw* | pw32*)
16864   version_type=windows
16865   shrext_cmds=".dll"
16866   need_version=no
16867   need_lib_prefix=no
16868
16869   case $GCC,$host_os in
16870   yes,cygwin* | yes,mingw* | yes,pw32*)
16871     library_names_spec='$libname.dll.a'
16872     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16873     postinstall_cmds='base_file=`basename \${file}`~
16874       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16875       dldir=$destdir/`dirname \$dlpath`~
16876       test -d \$dldir || mkdir -p \$dldir~
16877       $install_prog $dir/$dlname \$dldir/$dlname'
16878     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16879       dlpath=$dir/\$dldll~
16880        $rm \$dlpath'
16881     shlibpath_overrides_runpath=yes
16882
16883     case $host_os in
16884     cygwin*)
16885       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16886       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16887       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16888       ;;
16889     mingw*)
16890       # MinGW DLLs use traditional 'lib' prefix
16891       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16892       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16893       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16894         # It is most probably a Windows format PATH printed by
16895         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16896         # path with ; separators, and with drive letters. We can handle the
16897         # drive letters (cygwin fileutils understands them), so leave them,
16898         # especially as we might pass files found there to a mingw objdump,
16899         # which wouldn't understand a cygwinified path. Ahh.
16900         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901       else
16902         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16903       fi
16904       ;;
16905     pw32*)
16906       # pw32 DLLs use 'pw' prefix rather than 'lib'
16907       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16908       ;;
16909     esac
16910     ;;
16911
16912   *)
16913     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16914     ;;
16915   esac
16916   dynamic_linker='Win32 ld.exe'
16917   # FIXME: first we should search . and the directory the executable is in
16918   shlibpath_var=PATH
16919   ;;
16920
16921 darwin* | rhapsody*)
16922   dynamic_linker="$host_os dyld"
16923   version_type=darwin
16924   need_lib_prefix=no
16925   need_version=no
16926   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16927   soname_spec='${libname}${release}${major}$shared_ext'
16928   shlibpath_overrides_runpath=yes
16929   shlibpath_var=DYLD_LIBRARY_PATH
16930   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16931   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16932   if test "$GCC" = yes; then
16933     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"`
16934   else
16935     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16936   fi
16937   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16938   ;;
16939
16940 dgux*)
16941   version_type=linux
16942   need_lib_prefix=no
16943   need_version=no
16944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16945   soname_spec='${libname}${release}${shared_ext}$major'
16946   shlibpath_var=LD_LIBRARY_PATH
16947   ;;
16948
16949 freebsd1*)
16950   dynamic_linker=no
16951   ;;
16952
16953 kfreebsd*-gnu)
16954   version_type=linux
16955   need_lib_prefix=no
16956   need_version=no
16957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16958   soname_spec='${libname}${release}${shared_ext}$major'
16959   shlibpath_var=LD_LIBRARY_PATH
16960   shlibpath_overrides_runpath=no
16961   hardcode_into_libs=yes
16962   dynamic_linker='GNU ld.so'
16963   ;;
16964
16965 freebsd*)
16966   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16967   version_type=freebsd-$objformat
16968   case $version_type in
16969     freebsd-elf*)
16970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16971       need_version=no
16972       need_lib_prefix=no
16973       ;;
16974     freebsd-*)
16975       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16976       need_version=yes
16977       ;;
16978   esac
16979   shlibpath_var=LD_LIBRARY_PATH
16980   case $host_os in
16981   freebsd2*)
16982     shlibpath_overrides_runpath=yes
16983     ;;
16984   freebsd3.01* | freebsdelf3.01*)
16985     shlibpath_overrides_runpath=yes
16986     hardcode_into_libs=yes
16987     ;;
16988   *) # from 3.2 on
16989     shlibpath_overrides_runpath=no
16990     hardcode_into_libs=yes
16991     ;;
16992   esac
16993   ;;
16994
16995 gnu*)
16996   version_type=linux
16997   need_lib_prefix=no
16998   need_version=no
16999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17000   soname_spec='${libname}${release}${shared_ext}$major'
17001   shlibpath_var=LD_LIBRARY_PATH
17002   hardcode_into_libs=yes
17003   ;;
17004
17005 hpux9* | hpux10* | hpux11*)
17006   # Give a soname corresponding to the major version so that dld.sl refuses to
17007   # link against other versions.
17008   version_type=sunos
17009   need_lib_prefix=no
17010   need_version=no
17011   case "$host_cpu" in
17012   ia64*)
17013     shrext_cmds='.so'
17014     hardcode_into_libs=yes
17015     dynamic_linker="$host_os dld.so"
17016     shlibpath_var=LD_LIBRARY_PATH
17017     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17019     soname_spec='${libname}${release}${shared_ext}$major'
17020     if test "X$HPUX_IA64_MODE" = X32; then
17021       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17022     else
17023       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17024     fi
17025     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17026     ;;
17027    hppa*64*)
17028      shrext_cmds='.sl'
17029      hardcode_into_libs=yes
17030      dynamic_linker="$host_os dld.sl"
17031      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17032      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034      soname_spec='${libname}${release}${shared_ext}$major'
17035      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17036      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17037      ;;
17038    *)
17039     shrext_cmds='.sl'
17040     dynamic_linker="$host_os dld.sl"
17041     shlibpath_var=SHLIB_PATH
17042     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044     soname_spec='${libname}${release}${shared_ext}$major'
17045     ;;
17046   esac
17047   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17048   postinstall_cmds='chmod 555 $lib'
17049   ;;
17050
17051 irix5* | irix6* | nonstopux*)
17052   case $host_os in
17053     nonstopux*) version_type=nonstopux ;;
17054     *)
17055         if test "$lt_cv_prog_gnu_ld" = yes; then
17056                 version_type=linux
17057         else
17058                 version_type=irix
17059         fi ;;
17060   esac
17061   need_lib_prefix=no
17062   need_version=no
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17065   case $host_os in
17066   irix5* | nonstopux*)
17067     libsuff= shlibsuff=
17068     ;;
17069   *)
17070     case $LD in # libtool.m4 will add one of these switches to LD
17071     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17072       libsuff= shlibsuff= libmagic=32-bit;;
17073     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17074       libsuff=32 shlibsuff=N32 libmagic=N32;;
17075     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17076       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17077     *) libsuff= shlibsuff= libmagic=never-match;;
17078     esac
17079     ;;
17080   esac
17081   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17082   shlibpath_overrides_runpath=no
17083   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17084   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17085   hardcode_into_libs=yes
17086   ;;
17087
17088 # No shared lib support for Linux oldld, aout, or coff.
17089 linux*oldld* | linux*aout* | linux*coff*)
17090   dynamic_linker=no
17091   ;;
17092
17093 # This must be Linux ELF.
17094 linux*)
17095   version_type=linux
17096   need_lib_prefix=no
17097   need_version=no
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099   soname_spec='${libname}${release}${shared_ext}$major'
17100   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17101   shlibpath_var=LD_LIBRARY_PATH
17102   shlibpath_overrides_runpath=no
17103   # This implies no fast_install, which is unacceptable.
17104   # Some rework will be needed to allow for fast_install
17105   # before this can be enabled.
17106   hardcode_into_libs=yes
17107
17108   # Append ld.so.conf contents to the search path
17109   if test -f /etc/ld.so.conf; then
17110     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17111     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17112   fi
17113
17114   # We used to test for /lib/ld.so.1 and disable shared libraries on
17115   # powerpc, because MkLinux only supported shared libraries with the
17116   # GNU dynamic linker.  Since this was broken with cross compilers,
17117   # most powerpc-linux boxes support dynamic linking these days and
17118   # people can always --disable-shared, the test was removed, and we
17119   # assume the GNU/Linux dynamic linker is in use.
17120   dynamic_linker='GNU/Linux ld.so'
17121   ;;
17122
17123 knetbsd*-gnu)
17124   version_type=linux
17125   need_lib_prefix=no
17126   need_version=no
17127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17128   soname_spec='${libname}${release}${shared_ext}$major'
17129   shlibpath_var=LD_LIBRARY_PATH
17130   shlibpath_overrides_runpath=no
17131   hardcode_into_libs=yes
17132   dynamic_linker='GNU ld.so'
17133   ;;
17134
17135 netbsd*)
17136   version_type=sunos
17137   need_lib_prefix=no
17138   need_version=no
17139   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17141     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17142     dynamic_linker='NetBSD (a.out) ld.so'
17143   else
17144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17145     soname_spec='${libname}${release}${shared_ext}$major'
17146     dynamic_linker='NetBSD ld.elf_so'
17147   fi
17148   shlibpath_var=LD_LIBRARY_PATH
17149   shlibpath_overrides_runpath=yes
17150   hardcode_into_libs=yes
17151   ;;
17152
17153 newsos6)
17154   version_type=linux
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156   shlibpath_var=LD_LIBRARY_PATH
17157   shlibpath_overrides_runpath=yes
17158   ;;
17159
17160 nto-qnx*)
17161   version_type=linux
17162   need_lib_prefix=no
17163   need_version=no
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   shlibpath_var=LD_LIBRARY_PATH
17167   shlibpath_overrides_runpath=yes
17168   ;;
17169
17170 openbsd*)
17171   version_type=sunos
17172   need_lib_prefix=no
17173   need_version=no
17174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17175   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17176   shlibpath_var=LD_LIBRARY_PATH
17177   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17178     case $host_os in
17179       openbsd2.[89] | openbsd2.[89].*)
17180         shlibpath_overrides_runpath=no
17181         ;;
17182       *)
17183         shlibpath_overrides_runpath=yes
17184         ;;
17185       esac
17186   else
17187     shlibpath_overrides_runpath=yes
17188   fi
17189   ;;
17190
17191 os2*)
17192   libname_spec='$name'
17193   shrext_cmds=".dll"
17194   need_lib_prefix=no
17195   library_names_spec='$libname${shared_ext} $libname.a'
17196   dynamic_linker='OS/2 ld.exe'
17197   shlibpath_var=LIBPATH
17198   ;;
17199
17200 osf3* | osf4* | osf5*)
17201   version_type=osf
17202   need_lib_prefix=no
17203   need_version=no
17204   soname_spec='${libname}${release}${shared_ext}$major'
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206   shlibpath_var=LD_LIBRARY_PATH
17207   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17208   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17209   ;;
17210
17211 sco3.2v5*)
17212   version_type=osf
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   ;;
17217
17218 solaris*)
17219   version_type=linux
17220   need_lib_prefix=no
17221   need_version=no
17222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223   soname_spec='${libname}${release}${shared_ext}$major'
17224   shlibpath_var=LD_LIBRARY_PATH
17225   shlibpath_overrides_runpath=yes
17226   hardcode_into_libs=yes
17227   # ldd complains unless libraries are executable
17228   postinstall_cmds='chmod +x $lib'
17229   ;;
17230
17231 sunos4*)
17232   version_type=sunos
17233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17234   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17235   shlibpath_var=LD_LIBRARY_PATH
17236   shlibpath_overrides_runpath=yes
17237   if test "$with_gnu_ld" = yes; then
17238     need_lib_prefix=no
17239   fi
17240   need_version=yes
17241   ;;
17242
17243 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17244   version_type=linux
17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246   soname_spec='${libname}${release}${shared_ext}$major'
17247   shlibpath_var=LD_LIBRARY_PATH
17248   case $host_vendor in
17249     sni)
17250       shlibpath_overrides_runpath=no
17251       need_lib_prefix=no
17252       export_dynamic_flag_spec='${wl}-Blargedynsym'
17253       runpath_var=LD_RUN_PATH
17254       ;;
17255     siemens)
17256       need_lib_prefix=no
17257       ;;
17258     motorola)
17259       need_lib_prefix=no
17260       need_version=no
17261       shlibpath_overrides_runpath=no
17262       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17263       ;;
17264   esac
17265   ;;
17266
17267 sysv4*MP*)
17268   if test -d /usr/nec ;then
17269     version_type=linux
17270     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17271     soname_spec='$libname${shared_ext}.$major'
17272     shlibpath_var=LD_LIBRARY_PATH
17273   fi
17274   ;;
17275
17276 uts4*)
17277   version_type=linux
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279   soname_spec='${libname}${release}${shared_ext}$major'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   ;;
17282
17283 *)
17284   dynamic_linker=no
17285   ;;
17286 esac
17287 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17288 echo "${ECHO_T}$dynamic_linker" >&6
17289 test "$dynamic_linker" = no && can_build_shared=no
17290
17291 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17292 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17293 hardcode_action_CXX=
17294 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17295    test -n "$runpath_var_CXX" || \
17296    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17297
17298   # We can hardcode non-existant directories.
17299   if test "$hardcode_direct_CXX" != no &&
17300      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17301      # have to relink, otherwise we might link with an installed library
17302      # when we should be linking with a yet-to-be-installed one
17303      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17304      test "$hardcode_minus_L_CXX" != no; then
17305     # Linking always hardcodes the temporary library directory.
17306     hardcode_action_CXX=relink
17307   else
17308     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17309     hardcode_action_CXX=immediate
17310   fi
17311 else
17312   # We cannot hardcode anything, or else we can only hardcode existing
17313   # directories.
17314   hardcode_action_CXX=unsupported
17315 fi
17316 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17317 echo "${ECHO_T}$hardcode_action_CXX" >&6
17318
17319 if test "$hardcode_action_CXX" = relink; then
17320   # Fast installation is not supported
17321   enable_fast_install=no
17322 elif test "$shlibpath_overrides_runpath" = yes ||
17323      test "$enable_shared" = no; then
17324   # Fast installation is not necessary
17325   enable_fast_install=needless
17326 fi
17327
17328 striplib=
17329 old_striplib=
17330 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17331 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17332 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17333   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17334   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17335   echo "$as_me:$LINENO: result: yes" >&5
17336 echo "${ECHO_T}yes" >&6
17337 else
17338 # FIXME - insert some real tests, host_os isn't really good enough
17339   case $host_os in
17340    darwin*)
17341        if test -n "$STRIP" ; then
17342          striplib="$STRIP -x"
17343          echo "$as_me:$LINENO: result: yes" >&5
17344 echo "${ECHO_T}yes" >&6
17345        else
17346   echo "$as_me:$LINENO: result: no" >&5
17347 echo "${ECHO_T}no" >&6
17348 fi
17349        ;;
17350    *)
17351   echo "$as_me:$LINENO: result: no" >&5
17352 echo "${ECHO_T}no" >&6
17353     ;;
17354   esac
17355 fi
17356
17357 if test "x$enable_dlopen" != xyes; then
17358   enable_dlopen=unknown
17359   enable_dlopen_self=unknown
17360   enable_dlopen_self_static=unknown
17361 else
17362   lt_cv_dlopen=no
17363   lt_cv_dlopen_libs=
17364
17365   case $host_os in
17366   beos*)
17367     lt_cv_dlopen="load_add_on"
17368     lt_cv_dlopen_libs=
17369     lt_cv_dlopen_self=yes
17370     ;;
17371
17372   mingw* | pw32*)
17373     lt_cv_dlopen="LoadLibrary"
17374     lt_cv_dlopen_libs=
17375    ;;
17376
17377   cygwin*)
17378     lt_cv_dlopen="dlopen"
17379     lt_cv_dlopen_libs=
17380    ;;
17381
17382   darwin*)
17383   # if libdl is installed we need to link against it
17384     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17385 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17386 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17387   echo $ECHO_N "(cached) $ECHO_C" >&6
17388 else
17389   ac_check_lib_save_LIBS=$LIBS
17390 LIBS="-ldl  $LIBS"
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397
17398 /* Override any gcc2 internal prototype to avoid an error.  */
17399 #ifdef __cplusplus
17400 extern "C"
17401 #endif
17402 /* We use char because int might match the return type of a gcc2
17403    builtin and then its argument prototype would still apply.  */
17404 char dlopen ();
17405 int
17406 main ()
17407 {
17408 dlopen ();
17409   ;
17410   return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415   (eval $ac_link) 2>conftest.er1
17416   ac_status=$?
17417   grep -v '^ *+' conftest.er1 >conftest.err
17418   rm -f conftest.er1
17419   cat conftest.err >&5
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); } &&
17422          { ac_try='test -z "$ac_cxx_werror_flag"
17423                          || test ! -s conftest.err'
17424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425   (eval $ac_try) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); }; } &&
17429          { ac_try='test -s conftest$ac_exeext'
17430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431   (eval $ac_try) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; }; then
17435   ac_cv_lib_dl_dlopen=yes
17436 else
17437   echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440 ac_cv_lib_dl_dlopen=no
17441 fi
17442 rm -f conftest.err conftest.$ac_objext \
17443       conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17445 fi
17446 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17447 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17448 if test $ac_cv_lib_dl_dlopen = yes; then
17449   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17450 else
17451
17452     lt_cv_dlopen="dyld"
17453     lt_cv_dlopen_libs=
17454     lt_cv_dlopen_self=yes
17455
17456 fi
17457
17458    ;;
17459
17460   *)
17461     echo "$as_me:$LINENO: checking for shl_load" >&5
17462 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17463 if test "${ac_cv_func_shl_load+set}" = set; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466   cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h.  */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h.  */
17472 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17474 #define shl_load innocuous_shl_load
17475
17476 /* System header to define __stub macros and hopefully few prototypes,
17477     which can conflict with char shl_load (); below.
17478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479     <limits.h> exists even on freestanding compilers.  */
17480
17481 #ifdef __STDC__
17482 # include <limits.h>
17483 #else
17484 # include <assert.h>
17485 #endif
17486
17487 #undef shl_load
17488
17489 /* Override any gcc2 internal prototype to avoid an error.  */
17490 #ifdef __cplusplus
17491 extern "C"
17492 {
17493 #endif
17494 /* We use char because int might match the return type of a gcc2
17495    builtin and then its argument prototype would still apply.  */
17496 char shl_load ();
17497 /* The GNU C library defines this for functions which it implements
17498     to always fail with ENOSYS.  Some functions are actually named
17499     something starting with __ and the normal name is an alias.  */
17500 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17501 choke me
17502 #else
17503 char (*f) () = shl_load;
17504 #endif
17505 #ifdef __cplusplus
17506 }
17507 #endif
17508
17509 int
17510 main ()
17511 {
17512 return f != shl_load;
17513   ;
17514   return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519   (eval $ac_link) 2>conftest.er1
17520   ac_status=$?
17521   grep -v '^ *+' conftest.er1 >conftest.err
17522   rm -f conftest.er1
17523   cat conftest.err >&5
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } &&
17526          { ac_try='test -z "$ac_cxx_werror_flag"
17527                          || test ! -s conftest.err'
17528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529   (eval $ac_try) 2>&5
17530   ac_status=$?
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); }; } &&
17533          { ac_try='test -s conftest$ac_exeext'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; }; then
17539   ac_cv_func_shl_load=yes
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 ac_cv_func_shl_load=no
17545 fi
17546 rm -f conftest.err conftest.$ac_objext \
17547       conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17550 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17551 if test $ac_cv_func_shl_load = yes; then
17552   lt_cv_dlopen="shl_load"
17553 else
17554   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17555 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17556 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17557   echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559   ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-ldld  $LIBS"
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 /* Override any gcc2 internal prototype to avoid an error.  */
17569 #ifdef __cplusplus
17570 extern "C"
17571 #endif
17572 /* We use char because int might match the return type of a gcc2
17573    builtin and then its argument prototype would still apply.  */
17574 char shl_load ();
17575 int
17576 main ()
17577 {
17578 shl_load ();
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585   (eval $ac_link) 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -z "$ac_cxx_werror_flag"
17593                          || test ! -s conftest.err'
17594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595   (eval $ac_try) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; } &&
17599          { ac_try='test -s conftest$ac_exeext'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605   ac_cv_lib_dld_shl_load=yes
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610 ac_cv_lib_dld_shl_load=no
17611 fi
17612 rm -f conftest.err conftest.$ac_objext \
17613       conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17615 fi
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17617 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17618 if test $ac_cv_lib_dld_shl_load = yes; then
17619   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17620 else
17621   echo "$as_me:$LINENO: checking for dlopen" >&5
17622 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17623 if test "${ac_cv_func_dlopen+set}" = set; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17634 #define dlopen innocuous_dlopen
17635
17636 /* System header to define __stub macros and hopefully few prototypes,
17637     which can conflict with char dlopen (); below.
17638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639     <limits.h> exists even on freestanding compilers.  */
17640
17641 #ifdef __STDC__
17642 # include <limits.h>
17643 #else
17644 # include <assert.h>
17645 #endif
17646
17647 #undef dlopen
17648
17649 /* Override any gcc2 internal prototype to avoid an error.  */
17650 #ifdef __cplusplus
17651 extern "C"
17652 {
17653 #endif
17654 /* We use char because int might match the return type of a gcc2
17655    builtin and then its argument prototype would still apply.  */
17656 char dlopen ();
17657 /* The GNU C library defines this for functions which it implements
17658     to always fail with ENOSYS.  Some functions are actually named
17659     something starting with __ and the normal name is an alias.  */
17660 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17661 choke me
17662 #else
17663 char (*f) () = dlopen;
17664 #endif
17665 #ifdef __cplusplus
17666 }
17667 #endif
17668
17669 int
17670 main ()
17671 {
17672 return f != dlopen;
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679   (eval $ac_link) 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } &&
17686          { ac_try='test -z "$ac_cxx_werror_flag"
17687                          || test ! -s conftest.err'
17688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689   (eval $ac_try) 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; } &&
17693          { ac_try='test -s conftest$ac_exeext'
17694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695   (eval $ac_try) 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; }; then
17699   ac_cv_func_dlopen=yes
17700 else
17701   echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704 ac_cv_func_dlopen=no
17705 fi
17706 rm -f conftest.err conftest.$ac_objext \
17707       conftest$ac_exeext conftest.$ac_ext
17708 fi
17709 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17710 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17711 if test $ac_cv_func_dlopen = yes; then
17712   lt_cv_dlopen="dlopen"
17713 else
17714   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17717   echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719   ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-ldl  $LIBS"
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727
17728 /* Override any gcc2 internal prototype to avoid an error.  */
17729 #ifdef __cplusplus
17730 extern "C"
17731 #endif
17732 /* We use char because int might match the return type of a gcc2
17733    builtin and then its argument prototype would still apply.  */
17734 char dlopen ();
17735 int
17736 main ()
17737 {
17738 dlopen ();
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745   (eval $ac_link) 2>conftest.er1
17746   ac_status=$?
17747   grep -v '^ *+' conftest.er1 >conftest.err
17748   rm -f conftest.er1
17749   cat conftest.err >&5
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); } &&
17752          { ac_try='test -z "$ac_cxx_werror_flag"
17753                          || test ! -s conftest.err'
17754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755   (eval $ac_try) 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; } &&
17759          { ac_try='test -s conftest$ac_exeext'
17760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761   (eval $ac_try) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765   ac_cv_lib_dl_dlopen=yes
17766 else
17767   echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770 ac_cv_lib_dl_dlopen=no
17771 fi
17772 rm -f conftest.err conftest.$ac_objext \
17773       conftest$ac_exeext conftest.$ac_ext
17774 LIBS=$ac_check_lib_save_LIBS
17775 fi
17776 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17778 if test $ac_cv_lib_dl_dlopen = yes; then
17779   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17780 else
17781   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17782 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17783 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   ac_check_lib_save_LIBS=$LIBS
17787 LIBS="-lsvld  $LIBS"
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794
17795 /* Override any gcc2 internal prototype to avoid an error.  */
17796 #ifdef __cplusplus
17797 extern "C"
17798 #endif
17799 /* We use char because int might match the return type of a gcc2
17800    builtin and then its argument prototype would still apply.  */
17801 char dlopen ();
17802 int
17803 main ()
17804 {
17805 dlopen ();
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812   (eval $ac_link) 2>conftest.er1
17813   ac_status=$?
17814   grep -v '^ *+' conftest.er1 >conftest.err
17815   rm -f conftest.er1
17816   cat conftest.err >&5
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); } &&
17819          { ac_try='test -z "$ac_cxx_werror_flag"
17820                          || test ! -s conftest.err'
17821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822   (eval $ac_try) 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); }; } &&
17826          { ac_try='test -s conftest$ac_exeext'
17827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828   (eval $ac_try) 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; }; then
17832   ac_cv_lib_svld_dlopen=yes
17833 else
17834   echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17836
17837 ac_cv_lib_svld_dlopen=no
17838 fi
17839 rm -f conftest.err conftest.$ac_objext \
17840       conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17842 fi
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17844 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17845 if test $ac_cv_lib_svld_dlopen = yes; then
17846   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17847 else
17848   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17849 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17850 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   ac_check_lib_save_LIBS=$LIBS
17854 LIBS="-ldld  $LIBS"
17855 cat >conftest.$ac_ext <<_ACEOF
17856 /* confdefs.h.  */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h.  */
17861
17862 /* Override any gcc2 internal prototype to avoid an error.  */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 /* We use char because int might match the return type of a gcc2
17867    builtin and then its argument prototype would still apply.  */
17868 char dld_link ();
17869 int
17870 main ()
17871 {
17872 dld_link ();
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17879   (eval $ac_link) 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } &&
17886          { ac_try='test -z "$ac_cxx_werror_flag"
17887                          || test ! -s conftest.err'
17888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889   (eval $ac_try) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; } &&
17893          { ac_try='test -s conftest$ac_exeext'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899   ac_cv_lib_dld_dld_link=yes
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904 ac_cv_lib_dld_dld_link=no
17905 fi
17906 rm -f conftest.err conftest.$ac_objext \
17907       conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17909 fi
17910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17911 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17912 if test $ac_cv_lib_dld_dld_link = yes; then
17913   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17914 fi
17915
17916
17917 fi
17918
17919
17920 fi
17921
17922
17923 fi
17924
17925
17926 fi
17927
17928
17929 fi
17930
17931     ;;
17932   esac
17933
17934   if test "x$lt_cv_dlopen" != xno; then
17935     enable_dlopen=yes
17936   else
17937     enable_dlopen=no
17938   fi
17939
17940   case $lt_cv_dlopen in
17941   dlopen)
17942     save_CPPFLAGS="$CPPFLAGS"
17943     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17944
17945     save_LDFLAGS="$LDFLAGS"
17946     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17947
17948     save_LIBS="$LIBS"
17949     LIBS="$lt_cv_dlopen_libs $LIBS"
17950
17951     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17952 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17953 if test "${lt_cv_dlopen_self+set}" = set; then
17954   echo $ECHO_N "(cached) $ECHO_C" >&6
17955 else
17956           if test "$cross_compiling" = yes; then :
17957   lt_cv_dlopen_self=cross
17958 else
17959   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17960   lt_status=$lt_dlunknown
17961   cat > conftest.$ac_ext <<EOF
17962 #line 17961 "configure"
17963 #include "confdefs.h"
17964
17965 #if HAVE_DLFCN_H
17966 #include <dlfcn.h>
17967 #endif
17968
17969 #include <stdio.h>
17970
17971 #ifdef RTLD_GLOBAL
17972 #  define LT_DLGLOBAL           RTLD_GLOBAL
17973 #else
17974 #  ifdef DL_GLOBAL
17975 #    define LT_DLGLOBAL         DL_GLOBAL
17976 #  else
17977 #    define LT_DLGLOBAL         0
17978 #  endif
17979 #endif
17980
17981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17982    find out it does not work in some platform. */
17983 #ifndef LT_DLLAZY_OR_NOW
17984 #  ifdef RTLD_LAZY
17985 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17986 #  else
17987 #    ifdef DL_LAZY
17988 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17989 #    else
17990 #      ifdef RTLD_NOW
17991 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17992 #      else
17993 #        ifdef DL_NOW
17994 #          define LT_DLLAZY_OR_NOW      DL_NOW
17995 #        else
17996 #          define LT_DLLAZY_OR_NOW      0
17997 #        endif
17998 #      endif
17999 #    endif
18000 #  endif
18001 #endif
18002
18003 #ifdef __cplusplus
18004 extern "C" void exit (int);
18005 #endif
18006
18007 void fnord() { int i=42;}
18008 int main ()
18009 {
18010   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18011   int status = $lt_dlunknown;
18012
18013   if (self)
18014     {
18015       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18016       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18017       /* dlclose (self); */
18018     }
18019
18020     exit (status);
18021 }
18022 EOF
18023   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024   (eval $ac_link) 2>&5
18025   ac_status=$?
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18028     (./conftest; exit; ) 2>/dev/null
18029     lt_status=$?
18030     case x$lt_status in
18031       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18032       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18033       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18034     esac
18035   else :
18036     # compilation failed
18037     lt_cv_dlopen_self=no
18038   fi
18039 fi
18040 rm -fr conftest*
18041
18042
18043 fi
18044 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18045 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18046
18047     if test "x$lt_cv_dlopen_self" = xyes; then
18048       LDFLAGS="$LDFLAGS $link_static_flag"
18049       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18050 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18051 if test "${lt_cv_dlopen_self_static+set}" = set; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054           if test "$cross_compiling" = yes; then :
18055   lt_cv_dlopen_self_static=cross
18056 else
18057   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18058   lt_status=$lt_dlunknown
18059   cat > conftest.$ac_ext <<EOF
18060 #line 18059 "configure"
18061 #include "confdefs.h"
18062
18063 #if HAVE_DLFCN_H
18064 #include <dlfcn.h>
18065 #endif
18066
18067 #include <stdio.h>
18068
18069 #ifdef RTLD_GLOBAL
18070 #  define LT_DLGLOBAL           RTLD_GLOBAL
18071 #else
18072 #  ifdef DL_GLOBAL
18073 #    define LT_DLGLOBAL         DL_GLOBAL
18074 #  else
18075 #    define LT_DLGLOBAL         0
18076 #  endif
18077 #endif
18078
18079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18080    find out it does not work in some platform. */
18081 #ifndef LT_DLLAZY_OR_NOW
18082 #  ifdef RTLD_LAZY
18083 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18084 #  else
18085 #    ifdef DL_LAZY
18086 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18087 #    else
18088 #      ifdef RTLD_NOW
18089 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18090 #      else
18091 #        ifdef DL_NOW
18092 #          define LT_DLLAZY_OR_NOW      DL_NOW
18093 #        else
18094 #          define LT_DLLAZY_OR_NOW      0
18095 #        endif
18096 #      endif
18097 #    endif
18098 #  endif
18099 #endif
18100
18101 #ifdef __cplusplus
18102 extern "C" void exit (int);
18103 #endif
18104
18105 void fnord() { int i=42;}
18106 int main ()
18107 {
18108   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18109   int status = $lt_dlunknown;
18110
18111   if (self)
18112     {
18113       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18114       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18115       /* dlclose (self); */
18116     }
18117
18118     exit (status);
18119 }
18120 EOF
18121   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122   (eval $ac_link) 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18126     (./conftest; exit; ) 2>/dev/null
18127     lt_status=$?
18128     case x$lt_status in
18129       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18130       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18131       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18132     esac
18133   else :
18134     # compilation failed
18135     lt_cv_dlopen_self_static=no
18136   fi
18137 fi
18138 rm -fr conftest*
18139
18140
18141 fi
18142 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18143 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18144     fi
18145
18146     CPPFLAGS="$save_CPPFLAGS"
18147     LDFLAGS="$save_LDFLAGS"
18148     LIBS="$save_LIBS"
18149     ;;
18150   esac
18151
18152   case $lt_cv_dlopen_self in
18153   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18154   *) enable_dlopen_self=unknown ;;
18155   esac
18156
18157   case $lt_cv_dlopen_self_static in
18158   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18159   *) enable_dlopen_self_static=unknown ;;
18160   esac
18161 fi
18162
18163
18164 # The else clause should only fire when bootstrapping the
18165 # libtool distribution, otherwise you forgot to ship ltmain.sh
18166 # with your package, and you will get complaints that there are
18167 # no rules to generate ltmain.sh.
18168 if test -f "$ltmain"; then
18169   # See if we are running on zsh, and set the options which allow our commands through
18170   # without removal of \ escapes.
18171   if test -n "${ZSH_VERSION+set}" ; then
18172     setopt NO_GLOB_SUBST
18173   fi
18174   # Now quote all the things that may contain metacharacters while being
18175   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18176   # variables and quote the copies for generation of the libtool script.
18177   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18178     SED SHELL STRIP \
18179     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18180     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18181     deplibs_check_method reload_flag reload_cmds need_locks \
18182     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18183     lt_cv_sys_global_symbol_to_c_name_address \
18184     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18185     old_postinstall_cmds old_postuninstall_cmds \
18186     compiler_CXX \
18187     CC_CXX \
18188     LD_CXX \
18189     lt_prog_compiler_wl_CXX \
18190     lt_prog_compiler_pic_CXX \
18191     lt_prog_compiler_static_CXX \
18192     lt_prog_compiler_no_builtin_flag_CXX \
18193     export_dynamic_flag_spec_CXX \
18194     thread_safe_flag_spec_CXX \
18195     whole_archive_flag_spec_CXX \
18196     enable_shared_with_static_runtimes_CXX \
18197     old_archive_cmds_CXX \
18198     old_archive_from_new_cmds_CXX \
18199     predep_objects_CXX \
18200     postdep_objects_CXX \
18201     predeps_CXX \
18202     postdeps_CXX \
18203     compiler_lib_search_path_CXX \
18204     archive_cmds_CXX \
18205     archive_expsym_cmds_CXX \
18206     postinstall_cmds_CXX \
18207     postuninstall_cmds_CXX \
18208     old_archive_from_expsyms_cmds_CXX \
18209     allow_undefined_flag_CXX \
18210     no_undefined_flag_CXX \
18211     export_symbols_cmds_CXX \
18212     hardcode_libdir_flag_spec_CXX \
18213     hardcode_libdir_flag_spec_ld_CXX \
18214     hardcode_libdir_separator_CXX \
18215     hardcode_automatic_CXX \
18216     module_cmds_CXX \
18217     module_expsym_cmds_CXX \
18218     lt_cv_prog_compiler_c_o_CXX \
18219     exclude_expsyms_CXX \
18220     include_expsyms_CXX; do
18221
18222     case $var in
18223     old_archive_cmds_CXX | \
18224     old_archive_from_new_cmds_CXX | \
18225     archive_cmds_CXX | \
18226     archive_expsym_cmds_CXX | \
18227     module_cmds_CXX | \
18228     module_expsym_cmds_CXX | \
18229     old_archive_from_expsyms_cmds_CXX | \
18230     export_symbols_cmds_CXX | \
18231     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18232     postinstall_cmds | postuninstall_cmds | \
18233     old_postinstall_cmds | old_postuninstall_cmds | \
18234     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18235       # Double-quote double-evaled strings.
18236       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18237       ;;
18238     *)
18239       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18240       ;;
18241     esac
18242   done
18243
18244   case $lt_echo in
18245   *'\$0 --fallback-echo"')
18246     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18247     ;;
18248   esac
18249
18250 cfgfile="$ofile"
18251
18252   cat <<__EOF__ >> "$cfgfile"
18253 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18254
18255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18256
18257 # Shell to use when invoking shell scripts.
18258 SHELL=$lt_SHELL
18259
18260 # Whether or not to build shared libraries.
18261 build_libtool_libs=$enable_shared
18262
18263 # Whether or not to build static libraries.
18264 build_old_libs=$enable_static
18265
18266 # Whether or not to add -lc for building shared libraries.
18267 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18268
18269 # Whether or not to disallow shared libs when runtime libs are static
18270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18271
18272 # Whether or not to optimize for fast installation.
18273 fast_install=$enable_fast_install
18274
18275 # The host system.
18276 host_alias=$host_alias
18277 host=$host
18278
18279 # An echo program that does not interpret backslashes.
18280 echo=$lt_echo
18281
18282 # The archiver.
18283 AR=$lt_AR
18284 AR_FLAGS=$lt_AR_FLAGS
18285
18286 # A C compiler.
18287 LTCC=$lt_LTCC
18288
18289 # A language-specific compiler.
18290 CC=$lt_compiler_CXX
18291
18292 # Is the compiler the GNU C compiler?
18293 with_gcc=$GCC_CXX
18294
18295 # An ERE matcher.
18296 EGREP=$lt_EGREP
18297
18298 # The linker used to build libraries.
18299 LD=$lt_LD_CXX
18300
18301 # Whether we need hard or soft links.
18302 LN_S=$lt_LN_S
18303
18304 # A BSD-compatible nm program.
18305 NM=$lt_NM
18306
18307 # A symbol stripping program
18308 STRIP=$lt_STRIP
18309
18310 # Used to examine libraries when file_magic_cmd begins "file"
18311 MAGIC_CMD=$MAGIC_CMD
18312
18313 # Used on cygwin: DLL creation program.
18314 DLLTOOL="$DLLTOOL"
18315
18316 # Used on cygwin: object dumper.
18317 OBJDUMP="$OBJDUMP"
18318
18319 # Used on cygwin: assembler.
18320 AS="$AS"
18321
18322 # The name of the directory that contains temporary libtool files.
18323 objdir=$objdir
18324
18325 # How to create reloadable object files.
18326 reload_flag=$lt_reload_flag
18327 reload_cmds=$lt_reload_cmds
18328
18329 # How to pass a linker flag through the compiler.
18330 wl=$lt_lt_prog_compiler_wl_CXX
18331
18332 # Object file suffix (normally "o").
18333 objext="$ac_objext"
18334
18335 # Old archive suffix (normally "a").
18336 libext="$libext"
18337
18338 # Shared library suffix (normally ".so").
18339 shrext_cmds='$shrext_cmds'
18340
18341 # Executable file suffix (normally "").
18342 exeext="$exeext"
18343
18344 # Additional compiler flags for building library objects.
18345 pic_flag=$lt_lt_prog_compiler_pic_CXX
18346 pic_mode=$pic_mode
18347
18348 # What is the maximum length of a command?
18349 max_cmd_len=$lt_cv_sys_max_cmd_len
18350
18351 # Does compiler simultaneously support -c and -o options?
18352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18353
18354 # Must we lock files when doing compilation ?
18355 need_locks=$lt_need_locks
18356
18357 # Do we need the lib prefix for modules?
18358 need_lib_prefix=$need_lib_prefix
18359
18360 # Do we need a version for libraries?
18361 need_version=$need_version
18362
18363 # Whether dlopen is supported.
18364 dlopen_support=$enable_dlopen
18365
18366 # Whether dlopen of programs is supported.
18367 dlopen_self=$enable_dlopen_self
18368
18369 # Whether dlopen of statically linked programs is supported.
18370 dlopen_self_static=$enable_dlopen_self_static
18371
18372 # Compiler flag to prevent dynamic linking.
18373 link_static_flag=$lt_lt_prog_compiler_static_CXX
18374
18375 # Compiler flag to turn off builtin functions.
18376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18377
18378 # Compiler flag to allow reflexive dlopens.
18379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18380
18381 # Compiler flag to generate shared objects directly from archives.
18382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18383
18384 # Compiler flag to generate thread-safe objects.
18385 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18386
18387 # Library versioning type.
18388 version_type=$version_type
18389
18390 # Format of library name prefix.
18391 libname_spec=$lt_libname_spec
18392
18393 # List of archive names.  First name is the real one, the rest are links.
18394 # The last name is the one that the linker finds with -lNAME.
18395 library_names_spec=$lt_library_names_spec
18396
18397 # The coded name of the library, if different from the real name.
18398 soname_spec=$lt_soname_spec
18399
18400 # Commands used to build and install an old-style archive.
18401 RANLIB=$lt_RANLIB
18402 old_archive_cmds=$lt_old_archive_cmds_CXX
18403 old_postinstall_cmds=$lt_old_postinstall_cmds
18404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18405
18406 # Create an old-style archive from a shared archive.
18407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18408
18409 # Create a temporary old-style archive to link instead of a shared archive.
18410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18411
18412 # Commands used to build and install a shared archive.
18413 archive_cmds=$lt_archive_cmds_CXX
18414 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18415 postinstall_cmds=$lt_postinstall_cmds
18416 postuninstall_cmds=$lt_postuninstall_cmds
18417
18418 # Commands used to build a loadable module (assumed same as above if empty)
18419 module_cmds=$lt_module_cmds_CXX
18420 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18421
18422 # Commands to strip libraries.
18423 old_striplib=$lt_old_striplib
18424 striplib=$lt_striplib
18425
18426 # Dependencies to place before the objects being linked to create a
18427 # shared library.
18428 predep_objects=$lt_predep_objects_CXX
18429
18430 # Dependencies to place after the objects being linked to create a
18431 # shared library.
18432 postdep_objects=$lt_postdep_objects_CXX
18433
18434 # Dependencies to place before the objects being linked to create a
18435 # shared library.
18436 predeps=$lt_predeps_CXX
18437
18438 # Dependencies to place after the objects being linked to create a
18439 # shared library.
18440 postdeps=$lt_postdeps_CXX
18441
18442 # The library search path used internally by the compiler when linking
18443 # a shared library.
18444 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18445
18446 # Method to check whether dependent libraries are shared objects.
18447 deplibs_check_method=$lt_deplibs_check_method
18448
18449 # Command to use when deplibs_check_method == file_magic.
18450 file_magic_cmd=$lt_file_magic_cmd
18451
18452 # Flag that allows shared libraries with undefined symbols to be built.
18453 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18454
18455 # Flag that forces no undefined symbols.
18456 no_undefined_flag=$lt_no_undefined_flag_CXX
18457
18458 # Commands used to finish a libtool library installation in a directory.
18459 finish_cmds=$lt_finish_cmds
18460
18461 # Same as above, but a single script fragment to be evaled but not shown.
18462 finish_eval=$lt_finish_eval
18463
18464 # Take the output of nm and produce a listing of raw symbols and C names.
18465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18466
18467 # Transform the output of nm in a proper C declaration
18468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18469
18470 # Transform the output of nm in a C name address pair
18471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18472
18473 # This is the shared library runtime path variable.
18474 runpath_var=$runpath_var
18475
18476 # This is the shared library path variable.
18477 shlibpath_var=$shlibpath_var
18478
18479 # Is shlibpath searched before the hard-coded library search path?
18480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18481
18482 # How to hardcode a shared library path into an executable.
18483 hardcode_action=$hardcode_action_CXX
18484
18485 # Whether we should hardcode library paths into libraries.
18486 hardcode_into_libs=$hardcode_into_libs
18487
18488 # Flag to hardcode \$libdir into a binary during linking.
18489 # This must work even if \$libdir does not exist.
18490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18491
18492 # If ld is used when linking, flag to hardcode \$libdir into
18493 # a binary during linking. This must work even if \$libdir does
18494 # not exist.
18495 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18496
18497 # Whether we need a single -rpath flag with a separated argument.
18498 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18499
18500 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18501 # resulting binary.
18502 hardcode_direct=$hardcode_direct_CXX
18503
18504 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18505 # resulting binary.
18506 hardcode_minus_L=$hardcode_minus_L_CXX
18507
18508 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18509 # the resulting binary.
18510 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18511
18512 # Set to yes if building a shared library automatically hardcodes DIR into the library
18513 # and all subsequent libraries and executables linked against it.
18514 hardcode_automatic=$hardcode_automatic_CXX
18515
18516 # Variables whose values should be saved in libtool wrapper scripts and
18517 # restored at relink time.
18518 variables_saved_for_relink="$variables_saved_for_relink"
18519
18520 # Whether libtool must link a program against all its dependency libraries.
18521 link_all_deplibs=$link_all_deplibs_CXX
18522
18523 # Compile-time system search path for libraries
18524 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18525
18526 # Run-time system search path for libraries
18527 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18528
18529 # Fix the shell variable \$srcfile for the compiler.
18530 fix_srcfile_path="$fix_srcfile_path_CXX"
18531
18532 # Set to yes if exported symbols are required.
18533 always_export_symbols=$always_export_symbols_CXX
18534
18535 # The commands to list exported symbols.
18536 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18537
18538 # The commands to extract the exported symbol list from a shared archive.
18539 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18540
18541 # Symbols that should not be listed in the preloaded symbols.
18542 exclude_expsyms=$lt_exclude_expsyms_CXX
18543
18544 # Symbols that must always be exported.
18545 include_expsyms=$lt_include_expsyms_CXX
18546
18547 # ### END LIBTOOL TAG CONFIG: $tagname
18548
18549 __EOF__
18550
18551
18552 else
18553   # If there is no Makefile yet, we rely on a make rule to execute
18554   # `config.status --recheck' to rerun these tests and create the
18555   # libtool script then.
18556   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18557   if test -f "$ltmain_in"; then
18558     test -f Makefile && make "$ltmain"
18559   fi
18560 fi
18561
18562
18563 ac_ext=c
18564 ac_cpp='$CPP $CPPFLAGS'
18565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18568
18569 CC=$lt_save_CC
18570 LDCXX=$LD
18571 LD=$lt_save_LD
18572 GCC=$lt_save_GCC
18573 with_gnu_ldcxx=$with_gnu_ld
18574 with_gnu_ld=$lt_save_with_gnu_ld
18575 lt_cv_path_LDCXX=$lt_cv_path_LD
18576 lt_cv_path_LD=$lt_save_path_LD
18577 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18578 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18579
18580         else
18581           tagname=""
18582         fi
18583         ;;
18584
18585       F77)
18586         if test -n "$F77" && test "X$F77" != "Xno"; then
18587
18588 ac_ext=f
18589 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18590 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18591 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18592
18593
18594 archive_cmds_need_lc_F77=no
18595 allow_undefined_flag_F77=
18596 always_export_symbols_F77=no
18597 archive_expsym_cmds_F77=
18598 export_dynamic_flag_spec_F77=
18599 hardcode_direct_F77=no
18600 hardcode_libdir_flag_spec_F77=
18601 hardcode_libdir_flag_spec_ld_F77=
18602 hardcode_libdir_separator_F77=
18603 hardcode_minus_L_F77=no
18604 hardcode_automatic_F77=no
18605 module_cmds_F77=
18606 module_expsym_cmds_F77=
18607 link_all_deplibs_F77=unknown
18608 old_archive_cmds_F77=$old_archive_cmds
18609 no_undefined_flag_F77=
18610 whole_archive_flag_spec_F77=
18611 enable_shared_with_static_runtimes_F77=no
18612
18613 # Source file extension for f77 test sources.
18614 ac_ext=f
18615
18616 # Object file extension for compiled f77 test sources.
18617 objext=o
18618 objext_F77=$objext
18619
18620 # Code to be used in simple compile tests
18621 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18622
18623 # Code to be used in simple link tests
18624 lt_simple_link_test_code="      program t\n      end\n"
18625
18626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18627
18628 # If no C compiler was specified, use CC.
18629 LTCC=${LTCC-"$CC"}
18630
18631 # Allow CC to be a program name with arguments.
18632 compiler=$CC
18633
18634
18635 # Allow CC to be a program name with arguments.
18636 lt_save_CC="$CC"
18637 CC=${F77-"f77"}
18638 compiler=$CC
18639 compiler_F77=$CC
18640 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18641
18642 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18643 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18644 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18645 echo "${ECHO_T}$can_build_shared" >&6
18646
18647 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18648 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18649 test "$can_build_shared" = "no" && enable_shared=no
18650
18651 # On AIX, shared libraries and static libraries use the same namespace, and
18652 # are all built from PIC.
18653 case "$host_os" in
18654 aix3*)
18655   test "$enable_shared" = yes && enable_static=no
18656   if test -n "$RANLIB"; then
18657     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18658     postinstall_cmds='$RANLIB $lib'
18659   fi
18660   ;;
18661 aix4* | aix5*)
18662   test "$enable_shared" = yes && enable_static=no
18663   ;;
18664 esac
18665 echo "$as_me:$LINENO: result: $enable_shared" >&5
18666 echo "${ECHO_T}$enable_shared" >&6
18667
18668 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18669 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18670 # Make sure either enable_shared or enable_static is yes.
18671 test "$enable_shared" = yes || enable_static=yes
18672 echo "$as_me:$LINENO: result: $enable_static" >&5
18673 echo "${ECHO_T}$enable_static" >&6
18674
18675 test "$ld_shlibs_F77" = no && can_build_shared=no
18676
18677 GCC_F77="$G77"
18678 LD_F77="$LD"
18679
18680 lt_prog_compiler_wl_F77=
18681 lt_prog_compiler_pic_F77=
18682 lt_prog_compiler_static_F77=
18683
18684 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18685 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18686
18687   if test "$GCC" = yes; then
18688     lt_prog_compiler_wl_F77='-Wl,'
18689     lt_prog_compiler_static_F77='-static'
18690
18691     case $host_os in
18692       aix*)
18693       # All AIX code is PIC.
18694       if test "$host_cpu" = ia64; then
18695         # AIX 5 now supports IA64 processor
18696         lt_prog_compiler_static_F77='-Bstatic'
18697       fi
18698       ;;
18699
18700     amigaos*)
18701       # FIXME: we need at least 68020 code to build shared libraries, but
18702       # adding the `-m68020' flag to GCC prevents building anything better,
18703       # like `-m68040'.
18704       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18705       ;;
18706
18707     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18708       # PIC is the default for these OSes.
18709       ;;
18710
18711     mingw* | pw32* | os2*)
18712       # This hack is so that the source file can tell whether it is being
18713       # built for inclusion in a dll (and should export symbols for example).
18714       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18715       ;;
18716
18717     darwin* | rhapsody*)
18718       # PIC is the default on this platform
18719       # Common symbols not allowed in MH_DYLIB files
18720       lt_prog_compiler_pic_F77='-fno-common'
18721       ;;
18722
18723     msdosdjgpp*)
18724       # Just because we use GCC doesn't mean we suddenly get shared libraries
18725       # on systems that don't support them.
18726       lt_prog_compiler_can_build_shared_F77=no
18727       enable_shared=no
18728       ;;
18729
18730     sysv4*MP*)
18731       if test -d /usr/nec; then
18732         lt_prog_compiler_pic_F77=-Kconform_pic
18733       fi
18734       ;;
18735
18736     hpux*)
18737       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18738       # not for PA HP-UX.
18739       case "$host_cpu" in
18740       hppa*64*|ia64*)
18741         # +Z the default
18742         ;;
18743       *)
18744         lt_prog_compiler_pic_F77='-fPIC'
18745         ;;
18746       esac
18747       ;;
18748
18749     *)
18750       lt_prog_compiler_pic_F77='-fPIC'
18751       ;;
18752     esac
18753   else
18754     # PORTME Check for flag to pass linker flags through the system compiler.
18755     case $host_os in
18756     aix*)
18757       lt_prog_compiler_wl_F77='-Wl,'
18758       if test "$host_cpu" = ia64; then
18759         # AIX 5 now supports IA64 processor
18760         lt_prog_compiler_static_F77='-Bstatic'
18761       else
18762         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18763       fi
18764       ;;
18765       darwin*)
18766         # PIC is the default on this platform
18767         # Common symbols not allowed in MH_DYLIB files
18768        case "$cc_basename" in
18769          xlc*)
18770          lt_prog_compiler_pic_F77='-qnocommon'
18771          lt_prog_compiler_wl_F77='-Wl,'
18772          ;;
18773        esac
18774        ;;
18775
18776     mingw* | pw32* | os2*)
18777       # This hack is so that the source file can tell whether it is being
18778       # built for inclusion in a dll (and should export symbols for example).
18779       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18780       ;;
18781
18782     hpux9* | hpux10* | hpux11*)
18783       lt_prog_compiler_wl_F77='-Wl,'
18784       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18785       # not for PA HP-UX.
18786       case "$host_cpu" in
18787       hppa*64*|ia64*)
18788         # +Z the default
18789         ;;
18790       *)
18791         lt_prog_compiler_pic_F77='+Z'
18792         ;;
18793       esac
18794       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18795       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18796       ;;
18797
18798     irix5* | irix6* | nonstopux*)
18799       lt_prog_compiler_wl_F77='-Wl,'
18800       # PIC (with -KPIC) is the default.
18801       lt_prog_compiler_static_F77='-non_shared'
18802       ;;
18803
18804     newsos6)
18805       lt_prog_compiler_pic_F77='-KPIC'
18806       lt_prog_compiler_static_F77='-Bstatic'
18807       ;;
18808
18809     linux*)
18810       case $CC in
18811       icc* | ecc*)
18812         lt_prog_compiler_wl_F77='-Wl,'
18813         lt_prog_compiler_pic_F77='-KPIC'
18814         lt_prog_compiler_static_F77='-static'
18815         ;;
18816       ccc*)
18817         lt_prog_compiler_wl_F77='-Wl,'
18818         # All Alpha code is PIC.
18819         lt_prog_compiler_static_F77='-non_shared'
18820         ;;
18821       esac
18822       ;;
18823
18824     osf3* | osf4* | osf5*)
18825       lt_prog_compiler_wl_F77='-Wl,'
18826       # All OSF/1 code is PIC.
18827       lt_prog_compiler_static_F77='-non_shared'
18828       ;;
18829
18830     sco3.2v5*)
18831       lt_prog_compiler_pic_F77='-Kpic'
18832       lt_prog_compiler_static_F77='-dn'
18833       ;;
18834
18835     solaris*)
18836       lt_prog_compiler_wl_F77='-Wl,'
18837       lt_prog_compiler_pic_F77='-KPIC'
18838       lt_prog_compiler_static_F77='-Bstatic'
18839       ;;
18840
18841     sunos4*)
18842       lt_prog_compiler_wl_F77='-Qoption ld '
18843       lt_prog_compiler_pic_F77='-PIC'
18844       lt_prog_compiler_static_F77='-Bstatic'
18845       ;;
18846
18847     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18848       lt_prog_compiler_wl_F77='-Wl,'
18849       lt_prog_compiler_pic_F77='-KPIC'
18850       lt_prog_compiler_static_F77='-Bstatic'
18851       ;;
18852
18853     sysv4*MP*)
18854       if test -d /usr/nec ;then
18855         lt_prog_compiler_pic_F77='-Kconform_pic'
18856         lt_prog_compiler_static_F77='-Bstatic'
18857       fi
18858       ;;
18859
18860     uts4*)
18861       lt_prog_compiler_pic_F77='-pic'
18862       lt_prog_compiler_static_F77='-Bstatic'
18863       ;;
18864
18865     *)
18866       lt_prog_compiler_can_build_shared_F77=no
18867       ;;
18868     esac
18869   fi
18870
18871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18872 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18873
18874 #
18875 # Check to make sure the PIC flag actually works.
18876 #
18877 if test -n "$lt_prog_compiler_pic_F77"; then
18878
18879 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18880 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18881 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18882   echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884   lt_prog_compiler_pic_works_F77=no
18885   ac_outfile=conftest.$ac_objext
18886    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18887    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18888    # Insert the option either (1) after the last *FLAGS variable, or
18889    # (2) before a word containing "conftest.", or (3) at the end.
18890    # Note that $ac_compile itself does not contain backslashes and begins
18891    # with a dollar sign (not a hyphen), so the echo should work correctly.
18892    # The option is referenced via a variable to avoid confusing sed.
18893    lt_compile=`echo "$ac_compile" | $SED \
18894    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18896    -e 's:$: $lt_compiler_flag:'`
18897    (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
18898    (eval "$lt_compile" 2>conftest.err)
18899    ac_status=$?
18900    cat conftest.err >&5
18901    echo "$as_me:18900: \$? = $ac_status" >&5
18902    if (exit $ac_status) && test -s "$ac_outfile"; then
18903      # The compiler can only warn and ignore the option if not recognized
18904      # So say no if there are warnings
18905      if test ! -s conftest.err; then
18906        lt_prog_compiler_pic_works_F77=yes
18907      fi
18908    fi
18909    $rm conftest*
18910
18911 fi
18912 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18913 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18914
18915 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18916     case $lt_prog_compiler_pic_F77 in
18917      "" | " "*) ;;
18918      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18919      esac
18920 else
18921     lt_prog_compiler_pic_F77=
18922      lt_prog_compiler_can_build_shared_F77=no
18923 fi
18924
18925 fi
18926 case "$host_os" in
18927   # For platforms which do not support PIC, -DPIC is meaningless:
18928   *djgpp*)
18929     lt_prog_compiler_pic_F77=
18930     ;;
18931   *)
18932     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18933     ;;
18934 esac
18935
18936 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18938 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18939   echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941   lt_cv_prog_compiler_c_o_F77=no
18942    $rm -r conftest 2>/dev/null
18943    mkdir conftest
18944    cd conftest
18945    mkdir out
18946    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18947
18948    lt_compiler_flag="-o out/conftest2.$ac_objext"
18949    # Insert the option either (1) after the last *FLAGS variable, or
18950    # (2) before a word containing "conftest.", or (3) at the end.
18951    # Note that $ac_compile itself does not contain backslashes and begins
18952    # with a dollar sign (not a hyphen), so the echo should work correctly.
18953    lt_compile=`echo "$ac_compile" | $SED \
18954    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18956    -e 's:$: $lt_compiler_flag:'`
18957    (eval echo "\"\$as_me:18956: $lt_compile\"" >&5)
18958    (eval "$lt_compile" 2>out/conftest.err)
18959    ac_status=$?
18960    cat out/conftest.err >&5
18961    echo "$as_me:18960: \$? = $ac_status" >&5
18962    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18963    then
18964      # The compiler can only warn and ignore the option if not recognized
18965      # So say no if there are warnings
18966      if test ! -s out/conftest.err; then
18967        lt_cv_prog_compiler_c_o_F77=yes
18968      fi
18969    fi
18970    chmod u+w .
18971    $rm conftest*
18972    # SGI C++ compiler will create directory out/ii_files/ for
18973    # template instantiation
18974    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18975    $rm out/* && rmdir out
18976    cd ..
18977    rmdir conftest
18978    $rm conftest*
18979
18980 fi
18981 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18983
18984
18985 hard_links="nottested"
18986 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18987   # do not overwrite the value of need_locks provided by the user
18988   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18990   hard_links=yes
18991   $rm conftest*
18992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18993   touch conftest.a
18994   ln conftest.a conftest.b 2>&5 || hard_links=no
18995   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18996   echo "$as_me:$LINENO: result: $hard_links" >&5
18997 echo "${ECHO_T}$hard_links" >&6
18998   if test "$hard_links" = no; then
18999     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19001     need_locks=warn
19002   fi
19003 else
19004   need_locks=no
19005 fi
19006
19007 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19009
19010   runpath_var=
19011   allow_undefined_flag_F77=
19012   enable_shared_with_static_runtimes_F77=no
19013   archive_cmds_F77=
19014   archive_expsym_cmds_F77=
19015   old_archive_From_new_cmds_F77=
19016   old_archive_from_expsyms_cmds_F77=
19017   export_dynamic_flag_spec_F77=
19018   whole_archive_flag_spec_F77=
19019   thread_safe_flag_spec_F77=
19020   hardcode_libdir_flag_spec_F77=
19021   hardcode_libdir_flag_spec_ld_F77=
19022   hardcode_libdir_separator_F77=
19023   hardcode_direct_F77=no
19024   hardcode_minus_L_F77=no
19025   hardcode_shlibpath_var_F77=unsupported
19026   link_all_deplibs_F77=unknown
19027   hardcode_automatic_F77=no
19028   module_cmds_F77=
19029   module_expsym_cmds_F77=
19030   always_export_symbols_F77=no
19031   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19032   # include_expsyms should be a list of space-separated symbols to be *always*
19033   # included in the symbol list
19034   include_expsyms_F77=
19035   # exclude_expsyms can be an extended regexp of symbols to exclude
19036   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19037   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19038   # as well as any symbol that contains `d'.
19039   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19040   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19041   # platforms (ab)use it in PIC code, but their linkers get confused if
19042   # the symbol is explicitly referenced.  Since portable code cannot
19043   # rely on this symbol name, it's probably fine to never include it in
19044   # preloaded symbol tables.
19045   extract_expsyms_cmds=
19046
19047   case $host_os in
19048   cygwin* | mingw* | pw32*)
19049     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19050     # When not using gcc, we currently assume that we are using
19051     # Microsoft Visual C++.
19052     if test "$GCC" != yes; then
19053       with_gnu_ld=no
19054     fi
19055     ;;
19056   openbsd*)
19057     with_gnu_ld=no
19058     ;;
19059   esac
19060
19061   ld_shlibs_F77=yes
19062   if test "$with_gnu_ld" = yes; then
19063     # If archive_cmds runs LD, not CC, wlarc should be empty
19064     wlarc='${wl}'
19065
19066     # See if GNU ld supports shared libraries.
19067     case $host_os in
19068     aix3* | aix4* | aix5*)
19069       # On AIX/PPC, the GNU linker is very broken
19070       if test "$host_cpu" != ia64; then
19071         ld_shlibs_F77=no
19072         cat <<EOF 1>&2
19073
19074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19075 *** to be unable to reliably create shared libraries on AIX.
19076 *** Therefore, libtool is disabling shared libraries support.  If you
19077 *** really care for shared libraries, you may want to modify your PATH
19078 *** so that a non-GNU linker is found, and then restart.
19079
19080 EOF
19081       fi
19082       ;;
19083
19084     amigaos*)
19085       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)'
19086       hardcode_libdir_flag_spec_F77='-L$libdir'
19087       hardcode_minus_L_F77=yes
19088
19089       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19090       # that the semantics of dynamic libraries on AmigaOS, at least up
19091       # to version 4, is to share data among multiple programs linked
19092       # with the same dynamic library.  Since this doesn't match the
19093       # behavior of shared libraries on other platforms, we can't use
19094       # them.
19095       ld_shlibs_F77=no
19096       ;;
19097
19098     beos*)
19099       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19100         allow_undefined_flag_F77=unsupported
19101         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19102         # support --undefined.  This deserves some investigation.  FIXME
19103         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19104       else
19105         ld_shlibs_F77=no
19106       fi
19107       ;;
19108
19109     cygwin* | mingw* | pw32*)
19110       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19111       # as there is no search path for DLLs.
19112       hardcode_libdir_flag_spec_F77='-L$libdir'
19113       allow_undefined_flag_F77=unsupported
19114       always_export_symbols_F77=no
19115       enable_shared_with_static_runtimes_F77=yes
19116       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19117
19118       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19119         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19120         # If the export-symbols file already is a .def file (1st line
19121         # is EXPORTS), use it as is; otherwise, prepend...
19122         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19123           cp $export_symbols $output_objdir/$soname.def;
19124         else
19125           echo EXPORTS > $output_objdir/$soname.def;
19126           cat $export_symbols >> $output_objdir/$soname.def;
19127         fi~
19128         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19129       else
19130         ld_shlibs=no
19131       fi
19132       ;;
19133
19134     netbsd*)
19135       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19136         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19137         wlarc=
19138       else
19139         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19140         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19141       fi
19142       ;;
19143
19144     solaris* | sysv5*)
19145       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19146         ld_shlibs_F77=no
19147         cat <<EOF 1>&2
19148
19149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19150 *** create shared libraries on Solaris systems.  Therefore, libtool
19151 *** is disabling shared libraries support.  We urge you to upgrade GNU
19152 *** binutils to release 2.9.1 or newer.  Another option is to modify
19153 *** your PATH or compiler configuration so that the native linker is
19154 *** used, and then restart.
19155
19156 EOF
19157       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19158         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19160       else
19161         ld_shlibs_F77=no
19162       fi
19163       ;;
19164
19165     sunos4*)
19166       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19167       wlarc=
19168       hardcode_direct_F77=yes
19169       hardcode_shlibpath_var_F77=no
19170       ;;
19171
19172   linux*)
19173     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19174         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175         archive_cmds_F77="$tmp_archive_cmds"
19176       supports_anon_versioning=no
19177       case `$LD -v 2>/dev/null` in
19178         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19179         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19180         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19181         *\ 2.11.*) ;; # other 2.11 versions
19182         *) supports_anon_versioning=yes ;;
19183       esac
19184       if test $supports_anon_versioning = yes; then
19185         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19187 $echo "local: *; };" >> $output_objdir/$libname.ver~
19188         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19189       else
19190         archive_expsym_cmds_F77="$tmp_archive_cmds"
19191       fi
19192     else
19193       ld_shlibs_F77=no
19194     fi
19195     ;;
19196
19197     *)
19198       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19199         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19200         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19201       else
19202         ld_shlibs_F77=no
19203       fi
19204       ;;
19205     esac
19206
19207     if test "$ld_shlibs_F77" = yes; then
19208       runpath_var=LD_RUN_PATH
19209       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19210       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19211       # ancient GNU ld didn't support --whole-archive et. al.
19212       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19213         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19214       else
19215         whole_archive_flag_spec_F77=
19216       fi
19217     fi
19218   else
19219     # PORTME fill in a description of your system's linker (not GNU ld)
19220     case $host_os in
19221     aix3*)
19222       allow_undefined_flag_F77=unsupported
19223       always_export_symbols_F77=yes
19224       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'
19225       # Note: this linker hardcodes the directories in LIBPATH if there
19226       # are no directories specified by -L.
19227       hardcode_minus_L_F77=yes
19228       if test "$GCC" = yes && test -z "$link_static_flag"; then
19229         # Neither direct hardcoding nor static linking is supported with a
19230         # broken collect2.
19231         hardcode_direct_F77=unsupported
19232       fi
19233       ;;
19234
19235     aix4* | aix5*)
19236       if test "$host_cpu" = ia64; then
19237         # On IA64, the linker does run time linking by default, so we don't
19238         # have to do anything special.
19239         aix_use_runtimelinking=no
19240         exp_sym_flag='-Bexport'
19241         no_entry_flag=""
19242       else
19243         # If we're using GNU nm, then we don't want the "-C" option.
19244         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19245         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19246           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'
19247         else
19248           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'
19249         fi
19250         aix_use_runtimelinking=no
19251
19252         # Test if we are trying to use run time linking or normal
19253         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19254         # need to do runtime linking.
19255         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19256           for ld_flag in $LDFLAGS; do
19257           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19258             aix_use_runtimelinking=yes
19259             break
19260           fi
19261           done
19262         esac
19263
19264         exp_sym_flag='-bexport'
19265         no_entry_flag='-bnoentry'
19266       fi
19267
19268       # When large executables or shared objects are built, AIX ld can
19269       # have problems creating the table of contents.  If linking a library
19270       # or program results in "error TOC overflow" add -mminimal-toc to
19271       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19272       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19273
19274       archive_cmds_F77=''
19275       hardcode_direct_F77=yes
19276       hardcode_libdir_separator_F77=':'
19277       link_all_deplibs_F77=yes
19278
19279       if test "$GCC" = yes; then
19280         case $host_os in aix4.012|aix4.012.*)
19281         # We only want to do this on AIX 4.2 and lower, the check
19282         # below for broken collect2 doesn't work under 4.3+
19283           collect2name=`${CC} -print-prog-name=collect2`
19284           if test -f "$collect2name" && \
19285            strings "$collect2name" | grep resolve_lib_name >/dev/null
19286           then
19287           # We have reworked collect2
19288           hardcode_direct_F77=yes
19289           else
19290           # We have old collect2
19291           hardcode_direct_F77=unsupported
19292           # It fails to find uninstalled libraries when the uninstalled
19293           # path is not listed in the libpath.  Setting hardcode_minus_L
19294           # to unsupported forces relinking
19295           hardcode_minus_L_F77=yes
19296           hardcode_libdir_flag_spec_F77='-L$libdir'
19297           hardcode_libdir_separator_F77=
19298           fi
19299         esac
19300         shared_flag='-shared'
19301       else
19302         # not using gcc
19303         if test "$host_cpu" = ia64; then
19304         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19305         # chokes on -Wl,-G. The following line is correct:
19306           shared_flag='-G'
19307         else
19308         if test "$aix_use_runtimelinking" = yes; then
19309             shared_flag='${wl}-G'
19310           else
19311             shared_flag='${wl}-bM:SRE'
19312         fi
19313         fi
19314       fi
19315
19316       # It seems that -bexpall does not export symbols beginning with
19317       # underscore (_), so it is better to generate a list of symbols to export.
19318       always_export_symbols_F77=yes
19319       if test "$aix_use_runtimelinking" = yes; then
19320         # Warning - without using the other runtime loading flags (-brtl),
19321         # -berok will link without error, but may produce a broken library.
19322         allow_undefined_flag_F77='-berok'
19323        # Determine the default libpath from the value encoded in an empty executable.
19324        cat >conftest.$ac_ext <<_ACEOF
19325       program main
19326
19327       end
19328 _ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331   (eval $ac_link) 2>conftest.er1
19332   ac_status=$?
19333   grep -v '^ *+' conftest.er1 >conftest.err
19334   rm -f conftest.er1
19335   cat conftest.err >&5
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); } &&
19338          { ac_try='test -z "$ac_f77_werror_flag"
19339                          || test ! -s conftest.err'
19340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341   (eval $ac_try) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; } &&
19345          { ac_try='test -s conftest$ac_exeext'
19346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347   (eval $ac_try) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; }; then
19351
19352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19353 }'`
19354 # Check for a 64-bit object if we didn't find anything.
19355 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; }
19356 }'`; fi
19357 else
19358   echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 fi
19362 rm -f conftest.err conftest.$ac_objext \
19363       conftest$ac_exeext conftest.$ac_ext
19364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19365
19366        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19367         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"
19368        else
19369         if test "$host_cpu" = ia64; then
19370           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19371           allow_undefined_flag_F77="-z nodefs"
19372           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"
19373         else
19374          # Determine the default libpath from the value encoded in an empty executable.
19375          cat >conftest.$ac_ext <<_ACEOF
19376       program main
19377
19378       end
19379 _ACEOF
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19382   (eval $ac_link) 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_f77_werror_flag"
19390                          || test ! -s conftest.err'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; } &&
19396          { ac_try='test -s conftest$ac_exeext'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402
19403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19404 }'`
19405 # Check for a 64-bit object if we didn't find anything.
19406 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; }
19407 }'`; fi
19408 else
19409   echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19411
19412 fi
19413 rm -f conftest.err conftest.$ac_objext \
19414       conftest$ac_exeext conftest.$ac_ext
19415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19416
19417          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19418           # Warning - without using the other run time loading flags,
19419           # -berok will link without error, but may produce a broken library.
19420           no_undefined_flag_F77=' ${wl}-bernotok'
19421           allow_undefined_flag_F77=' ${wl}-berok'
19422           # -bexpall does not export symbols beginning with underscore (_)
19423           always_export_symbols_F77=yes
19424           # Exported symbols can be pulled into shared objects from archives
19425           whole_archive_flag_spec_F77=' '
19426           archive_cmds_need_lc_F77=yes
19427           # This is similar to how AIX traditionally builds it's shared libraries.
19428           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'
19429         fi
19430       fi
19431       ;;
19432
19433     amigaos*)
19434       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)'
19435       hardcode_libdir_flag_spec_F77='-L$libdir'
19436       hardcode_minus_L_F77=yes
19437       # see comment about different semantics on the GNU ld section
19438       ld_shlibs_F77=no
19439       ;;
19440
19441     bsdi[45]*)
19442       export_dynamic_flag_spec_F77=-rdynamic
19443       ;;
19444
19445     cygwin* | mingw* | pw32*)
19446       # When not using gcc, we currently assume that we are using
19447       # Microsoft Visual C++.
19448       # hardcode_libdir_flag_spec is actually meaningless, as there is
19449       # no search path for DLLs.
19450       hardcode_libdir_flag_spec_F77=' '
19451       allow_undefined_flag_F77=unsupported
19452       # Tell ltmain to make .lib files, not .a files.
19453       libext=lib
19454       # Tell ltmain to make .dll files, not .so files.
19455       shrext_cmds=".dll"
19456       # FIXME: Setting linknames here is a bad hack.
19457       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19458       # The linker will automatically build a .lib file if we build a DLL.
19459       old_archive_From_new_cmds_F77='true'
19460       # FIXME: Should let the user specify the lib program.
19461       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19462       fix_srcfile_path='`cygpath -w "$srcfile"`'
19463       enable_shared_with_static_runtimes_F77=yes
19464       ;;
19465
19466     darwin* | rhapsody*)
19467       case "$host_os" in
19468         rhapsody* | darwin1.[012])
19469          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19470          ;;
19471        *) # Darwin 1.3 on
19472          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19473            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19474          else
19475            case ${MACOSX_DEPLOYMENT_TARGET} in
19476              10.[012])
19477                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19478                ;;
19479              10.*)
19480                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19481                ;;
19482            esac
19483          fi
19484          ;;
19485       esac
19486       archive_cmds_need_lc_F77=no
19487       hardcode_direct_F77=no
19488       hardcode_automatic_F77=yes
19489       hardcode_shlibpath_var_F77=unsupported
19490       whole_archive_flag_spec_F77=''
19491       link_all_deplibs_F77=yes
19492     if test "$GCC" = yes ; then
19493         output_verbose_link_cmd='echo'
19494         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19495       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19496       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19497       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19498       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19499     else
19500       case "$cc_basename" in
19501         xlc*)
19502          output_verbose_link_cmd='echo'
19503          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19504          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19505           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19506          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}'
19507           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}'
19508           ;;
19509        *)
19510          ld_shlibs_F77=no
19511           ;;
19512       esac
19513     fi
19514       ;;
19515
19516     dgux*)
19517       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518       hardcode_libdir_flag_spec_F77='-L$libdir'
19519       hardcode_shlibpath_var_F77=no
19520       ;;
19521
19522     freebsd1*)
19523       ld_shlibs_F77=no
19524       ;;
19525
19526     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19527     # support.  Future versions do this automatically, but an explicit c++rt0.o
19528     # does not break anything, and helps significantly (at the cost of a little
19529     # extra space).
19530     freebsd2.2*)
19531       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19532       hardcode_libdir_flag_spec_F77='-R$libdir'
19533       hardcode_direct_F77=yes
19534       hardcode_shlibpath_var_F77=no
19535       ;;
19536
19537     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19538     freebsd2*)
19539       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19540       hardcode_direct_F77=yes
19541       hardcode_minus_L_F77=yes
19542       hardcode_shlibpath_var_F77=no
19543       ;;
19544
19545     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19546     freebsd* | kfreebsd*-gnu)
19547       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19548       hardcode_libdir_flag_spec_F77='-R$libdir'
19549       hardcode_direct_F77=yes
19550       hardcode_shlibpath_var_F77=no
19551       ;;
19552
19553     hpux9*)
19554       if test "$GCC" = yes; then
19555         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'
19556       else
19557         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'
19558       fi
19559       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19560       hardcode_libdir_separator_F77=:
19561       hardcode_direct_F77=yes
19562
19563       # hardcode_minus_L: Not really in the search PATH,
19564       # but as the default location of the library.
19565       hardcode_minus_L_F77=yes
19566       export_dynamic_flag_spec_F77='${wl}-E'
19567       ;;
19568
19569     hpux10* | hpux11*)
19570       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19571         case "$host_cpu" in
19572         hppa*64*|ia64*)
19573           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19574           ;;
19575         *)
19576           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19577           ;;
19578         esac
19579       else
19580         case "$host_cpu" in
19581         hppa*64*|ia64*)
19582           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19583           ;;
19584         *)
19585           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19586           ;;
19587         esac
19588       fi
19589       if test "$with_gnu_ld" = no; then
19590         case "$host_cpu" in
19591         hppa*64*)
19592           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19593           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19594           hardcode_libdir_separator_F77=:
19595           hardcode_direct_F77=no
19596           hardcode_shlibpath_var_F77=no
19597           ;;
19598         ia64*)
19599           hardcode_libdir_flag_spec_F77='-L$libdir'
19600           hardcode_direct_F77=no
19601           hardcode_shlibpath_var_F77=no
19602
19603           # hardcode_minus_L: Not really in the search PATH,
19604           # but as the default location of the library.
19605           hardcode_minus_L_F77=yes
19606           ;;
19607         *)
19608           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19609           hardcode_libdir_separator_F77=:
19610           hardcode_direct_F77=yes
19611           export_dynamic_flag_spec_F77='${wl}-E'
19612
19613           # hardcode_minus_L: Not really in the search PATH,
19614           # but as the default location of the library.
19615           hardcode_minus_L_F77=yes
19616           ;;
19617         esac
19618       fi
19619       ;;
19620
19621     irix5* | irix6* | nonstopux*)
19622       if test "$GCC" = yes; then
19623         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'
19624       else
19625         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'
19626         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19627       fi
19628       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19629       hardcode_libdir_separator_F77=:
19630       link_all_deplibs_F77=yes
19631       ;;
19632
19633     netbsd*)
19634       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19635         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19636       else
19637         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19638       fi
19639       hardcode_libdir_flag_spec_F77='-R$libdir'
19640       hardcode_direct_F77=yes
19641       hardcode_shlibpath_var_F77=no
19642       ;;
19643
19644     newsos6)
19645       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19646       hardcode_direct_F77=yes
19647       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19648       hardcode_libdir_separator_F77=:
19649       hardcode_shlibpath_var_F77=no
19650       ;;
19651
19652     openbsd*)
19653       hardcode_direct_F77=yes
19654       hardcode_shlibpath_var_F77=no
19655       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19656         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19657         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19658         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19659         export_dynamic_flag_spec_F77='${wl}-E'
19660       else
19661        case $host_os in
19662          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19663            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19664            hardcode_libdir_flag_spec_F77='-R$libdir'
19665            ;;
19666          *)
19667            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19668            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19669            ;;
19670        esac
19671       fi
19672       ;;
19673
19674     os2*)
19675       hardcode_libdir_flag_spec_F77='-L$libdir'
19676       hardcode_minus_L_F77=yes
19677       allow_undefined_flag_F77=unsupported
19678       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'
19679       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19680       ;;
19681
19682     osf3*)
19683       if test "$GCC" = yes; then
19684         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19685         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'
19686       else
19687         allow_undefined_flag_F77=' -expect_unresolved \*'
19688         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'
19689       fi
19690       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19691       hardcode_libdir_separator_F77=:
19692       ;;
19693
19694     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19695       if test "$GCC" = yes; then
19696         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19697         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'
19698         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19699       else
19700         allow_undefined_flag_F77=' -expect_unresolved \*'
19701         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'
19702         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~
19703         $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'
19704
19705         # Both c and cxx compiler support -rpath directly
19706         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19707       fi
19708       hardcode_libdir_separator_F77=:
19709       ;;
19710
19711     sco3.2v5*)
19712       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19713       hardcode_shlibpath_var_F77=no
19714       export_dynamic_flag_spec_F77='${wl}-Bexport'
19715       runpath_var=LD_RUN_PATH
19716       hardcode_runpath_var=yes
19717       ;;
19718
19719     solaris*)
19720       no_undefined_flag_F77=' -z text'
19721       if test "$GCC" = yes; then
19722         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19724           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19725       else
19726         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19727         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19728         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19729       fi
19730       hardcode_libdir_flag_spec_F77='-R$libdir'
19731       hardcode_shlibpath_var_F77=no
19732       case $host_os in
19733       solaris2.[0-5] | solaris2.[0-5].*) ;;
19734       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19735         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19736       esac
19737       link_all_deplibs_F77=yes
19738       ;;
19739
19740     sunos4*)
19741       if test "x$host_vendor" = xsequent; then
19742         # Use $CC to link under sequent, because it throws in some extra .o
19743         # files that make .init and .fini sections work.
19744         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19745       else
19746         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19747       fi
19748       hardcode_libdir_flag_spec_F77='-L$libdir'
19749       hardcode_direct_F77=yes
19750       hardcode_minus_L_F77=yes
19751       hardcode_shlibpath_var_F77=no
19752       ;;
19753
19754     sysv4)
19755       case $host_vendor in
19756         sni)
19757           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19758           hardcode_direct_F77=yes # is this really true???
19759         ;;
19760         siemens)
19761           ## LD is ld it makes a PLAMLIB
19762           ## CC just makes a GrossModule.
19763           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19764           reload_cmds_F77='$CC -r -o $output$reload_objs'
19765           hardcode_direct_F77=no
19766         ;;
19767         motorola)
19768           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19770         ;;
19771       esac
19772       runpath_var='LD_RUN_PATH'
19773       hardcode_shlibpath_var_F77=no
19774       ;;
19775
19776     sysv4.3*)
19777       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778       hardcode_shlibpath_var_F77=no
19779       export_dynamic_flag_spec_F77='-Bexport'
19780       ;;
19781
19782     sysv4*MP*)
19783       if test -d /usr/nec; then
19784         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785         hardcode_shlibpath_var_F77=no
19786         runpath_var=LD_RUN_PATH
19787         hardcode_runpath_var=yes
19788         ld_shlibs_F77=yes
19789       fi
19790       ;;
19791
19792     sysv4.2uw2*)
19793       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19794       hardcode_direct_F77=yes
19795       hardcode_minus_L_F77=no
19796       hardcode_shlibpath_var_F77=no
19797       hardcode_runpath_var=yes
19798       runpath_var=LD_RUN_PATH
19799       ;;
19800
19801    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19802       no_undefined_flag_F77='${wl}-z ${wl}text'
19803       if test "$GCC" = yes; then
19804         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19805       else
19806         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807       fi
19808       runpath_var='LD_RUN_PATH'
19809       hardcode_shlibpath_var_F77=no
19810       ;;
19811
19812     sysv5*)
19813       no_undefined_flag_F77=' -z text'
19814       # $CC -shared without GNU ld will not create a library from C++
19815       # object files and a static libstdc++, better avoid it by now
19816       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19817       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19818                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19819       hardcode_libdir_flag_spec_F77=
19820       hardcode_shlibpath_var_F77=no
19821       runpath_var='LD_RUN_PATH'
19822       ;;
19823
19824     uts4*)
19825       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826       hardcode_libdir_flag_spec_F77='-L$libdir'
19827       hardcode_shlibpath_var_F77=no
19828       ;;
19829
19830     *)
19831       ld_shlibs_F77=no
19832       ;;
19833     esac
19834   fi
19835
19836 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19837 echo "${ECHO_T}$ld_shlibs_F77" >&6
19838 test "$ld_shlibs_F77" = no && can_build_shared=no
19839
19840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19841 if test "$GCC" = yes; then
19842   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19843 fi
19844
19845 #
19846 # Do we need to explicitly link libc?
19847 #
19848 case "x$archive_cmds_need_lc_F77" in
19849 x|xyes)
19850   # Assume -lc should be added
19851   archive_cmds_need_lc_F77=yes
19852
19853   if test "$enable_shared" = yes && test "$GCC" = yes; then
19854     case $archive_cmds_F77 in
19855     *'~'*)
19856       # FIXME: we may have to deal with multi-command sequences.
19857       ;;
19858     '$CC '*)
19859       # Test whether the compiler implicitly links with -lc since on some
19860       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19861       # to ld, don't add -lc before -lgcc.
19862       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19863 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19864       $rm conftest*
19865       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19866
19867       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868   (eval $ac_compile) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); } 2>conftest.err; then
19872         soname=conftest
19873         lib=conftest
19874         libobjs=conftest.$ac_objext
19875         deplibs=
19876         wl=$lt_prog_compiler_wl_F77
19877         compiler_flags=-v
19878         linker_flags=-v
19879         verstring=
19880         output_objdir=.
19881         libname=conftest
19882         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19883         allow_undefined_flag_F77=
19884         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19885   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }
19889         then
19890           archive_cmds_need_lc_F77=no
19891         else
19892           archive_cmds_need_lc_F77=yes
19893         fi
19894         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19895       else
19896         cat conftest.err 1>&5
19897       fi
19898       $rm conftest*
19899       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19900 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19901       ;;
19902     esac
19903   fi
19904   ;;
19905 esac
19906
19907 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19908 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19909 library_names_spec=
19910 libname_spec='lib$name'
19911 soname_spec=
19912 shrext_cmds=".so"
19913 postinstall_cmds=
19914 postuninstall_cmds=
19915 finish_cmds=
19916 finish_eval=
19917 shlibpath_var=
19918 shlibpath_overrides_runpath=unknown
19919 version_type=none
19920 dynamic_linker="$host_os ld.so"
19921 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19922 if test "$GCC" = yes; then
19923   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19924   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19925     # if the path contains ";" then we assume it to be the separator
19926     # otherwise default to the standard path separator (i.e. ":") - it is
19927     # assumed that no part of a normal pathname contains ";" but that should
19928     # okay in the real world where ";" in dirpaths is itself problematic.
19929     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19930   else
19931     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19932   fi
19933 else
19934   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19935 fi
19936 need_lib_prefix=unknown
19937 hardcode_into_libs=no
19938
19939 # when you set need_version to no, make sure it does not cause -set_version
19940 # flags to be left without arguments
19941 need_version=unknown
19942
19943 case $host_os in
19944 aix3*)
19945   version_type=linux
19946   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19947   shlibpath_var=LIBPATH
19948
19949   # AIX 3 has no versioning support, so we append a major version to the name.
19950   soname_spec='${libname}${release}${shared_ext}$major'
19951   ;;
19952
19953 aix4* | aix5*)
19954   version_type=linux
19955   need_lib_prefix=no
19956   need_version=no
19957   hardcode_into_libs=yes
19958   if test "$host_cpu" = ia64; then
19959     # AIX 5 supports IA64
19960     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19961     shlibpath_var=LD_LIBRARY_PATH
19962   else
19963     # With GCC up to 2.95.x, collect2 would create an import file
19964     # for dependence libraries.  The import file would start with
19965     # the line `#! .'.  This would cause the generated library to
19966     # depend on `.', always an invalid library.  This was fixed in
19967     # development snapshots of GCC prior to 3.0.
19968     case $host_os in
19969       aix4 | aix4.[01] | aix4.[01].*)
19970       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19971            echo ' yes '
19972            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19973         :
19974       else
19975         can_build_shared=no
19976       fi
19977       ;;
19978     esac
19979     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19980     # soname into executable. Probably we can add versioning support to
19981     # collect2, so additional links can be useful in future.
19982     if test "$aix_use_runtimelinking" = yes; then
19983       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19984       # instead of lib<name>.a to let people know that these are not
19985       # typical AIX shared libraries.
19986       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19987     else
19988       # We preserve .a as extension for shared libraries through AIX4.2
19989       # and later when we are not doing run time linking.
19990       library_names_spec='${libname}${release}.a $libname.a'
19991       soname_spec='${libname}${release}${shared_ext}$major'
19992     fi
19993     shlibpath_var=LIBPATH
19994   fi
19995   ;;
19996
19997 amigaos*)
19998   library_names_spec='$libname.ixlibrary $libname.a'
19999   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20000   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'
20001   ;;
20002
20003 beos*)
20004   library_names_spec='${libname}${shared_ext}'
20005   dynamic_linker="$host_os ld.so"
20006   shlibpath_var=LIBRARY_PATH
20007   ;;
20008
20009 bsdi[45]*)
20010   version_type=linux
20011   need_version=no
20012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20013   soname_spec='${libname}${release}${shared_ext}$major'
20014   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20015   shlibpath_var=LD_LIBRARY_PATH
20016   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20017   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20018   # the default ld.so.conf also contains /usr/contrib/lib and
20019   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20020   # libtool to hard-code these into programs
20021   ;;
20022
20023 cygwin* | mingw* | pw32*)
20024   version_type=windows
20025   shrext_cmds=".dll"
20026   need_version=no
20027   need_lib_prefix=no
20028
20029   case $GCC,$host_os in
20030   yes,cygwin* | yes,mingw* | yes,pw32*)
20031     library_names_spec='$libname.dll.a'
20032     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20033     postinstall_cmds='base_file=`basename \${file}`~
20034       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20035       dldir=$destdir/`dirname \$dlpath`~
20036       test -d \$dldir || mkdir -p \$dldir~
20037       $install_prog $dir/$dlname \$dldir/$dlname'
20038     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20039       dlpath=$dir/\$dldll~
20040        $rm \$dlpath'
20041     shlibpath_overrides_runpath=yes
20042
20043     case $host_os in
20044     cygwin*)
20045       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20046       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20047       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20048       ;;
20049     mingw*)
20050       # MinGW DLLs use traditional 'lib' prefix
20051       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20052       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20053       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20054         # It is most probably a Windows format PATH printed by
20055         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20056         # path with ; separators, and with drive letters. We can handle the
20057         # drive letters (cygwin fileutils understands them), so leave them,
20058         # especially as we might pass files found there to a mingw objdump,
20059         # which wouldn't understand a cygwinified path. Ahh.
20060         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061       else
20062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20063       fi
20064       ;;
20065     pw32*)
20066       # pw32 DLLs use 'pw' prefix rather than 'lib'
20067       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20068       ;;
20069     esac
20070     ;;
20071
20072   *)
20073     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20074     ;;
20075   esac
20076   dynamic_linker='Win32 ld.exe'
20077   # FIXME: first we should search . and the directory the executable is in
20078   shlibpath_var=PATH
20079   ;;
20080
20081 darwin* | rhapsody*)
20082   dynamic_linker="$host_os dyld"
20083   version_type=darwin
20084   need_lib_prefix=no
20085   need_version=no
20086   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20087   soname_spec='${libname}${release}${major}$shared_ext'
20088   shlibpath_overrides_runpath=yes
20089   shlibpath_var=DYLD_LIBRARY_PATH
20090   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20091   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20092   if test "$GCC" = yes; then
20093     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"`
20094   else
20095     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20096   fi
20097   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20098   ;;
20099
20100 dgux*)
20101   version_type=linux
20102   need_lib_prefix=no
20103   need_version=no
20104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20105   soname_spec='${libname}${release}${shared_ext}$major'
20106   shlibpath_var=LD_LIBRARY_PATH
20107   ;;
20108
20109 freebsd1*)
20110   dynamic_linker=no
20111   ;;
20112
20113 kfreebsd*-gnu)
20114   version_type=linux
20115   need_lib_prefix=no
20116   need_version=no
20117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20118   soname_spec='${libname}${release}${shared_ext}$major'
20119   shlibpath_var=LD_LIBRARY_PATH
20120   shlibpath_overrides_runpath=no
20121   hardcode_into_libs=yes
20122   dynamic_linker='GNU ld.so'
20123   ;;
20124
20125 freebsd*)
20126   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20127   version_type=freebsd-$objformat
20128   case $version_type in
20129     freebsd-elf*)
20130       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20131       need_version=no
20132       need_lib_prefix=no
20133       ;;
20134     freebsd-*)
20135       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20136       need_version=yes
20137       ;;
20138   esac
20139   shlibpath_var=LD_LIBRARY_PATH
20140   case $host_os in
20141   freebsd2*)
20142     shlibpath_overrides_runpath=yes
20143     ;;
20144   freebsd3.01* | freebsdelf3.01*)
20145     shlibpath_overrides_runpath=yes
20146     hardcode_into_libs=yes
20147     ;;
20148   *) # from 3.2 on
20149     shlibpath_overrides_runpath=no
20150     hardcode_into_libs=yes
20151     ;;
20152   esac
20153   ;;
20154
20155 gnu*)
20156   version_type=linux
20157   need_lib_prefix=no
20158   need_version=no
20159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20160   soname_spec='${libname}${release}${shared_ext}$major'
20161   shlibpath_var=LD_LIBRARY_PATH
20162   hardcode_into_libs=yes
20163   ;;
20164
20165 hpux9* | hpux10* | hpux11*)
20166   # Give a soname corresponding to the major version so that dld.sl refuses to
20167   # link against other versions.
20168   version_type=sunos
20169   need_lib_prefix=no
20170   need_version=no
20171   case "$host_cpu" in
20172   ia64*)
20173     shrext_cmds='.so'
20174     hardcode_into_libs=yes
20175     dynamic_linker="$host_os dld.so"
20176     shlibpath_var=LD_LIBRARY_PATH
20177     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179     soname_spec='${libname}${release}${shared_ext}$major'
20180     if test "X$HPUX_IA64_MODE" = X32; then
20181       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20182     else
20183       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20184     fi
20185     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20186     ;;
20187    hppa*64*)
20188      shrext_cmds='.sl'
20189      hardcode_into_libs=yes
20190      dynamic_linker="$host_os dld.sl"
20191      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20192      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20193      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194      soname_spec='${libname}${release}${shared_ext}$major'
20195      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20196      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20197      ;;
20198    *)
20199     shrext_cmds='.sl'
20200     dynamic_linker="$host_os dld.sl"
20201     shlibpath_var=SHLIB_PATH
20202     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204     soname_spec='${libname}${release}${shared_ext}$major'
20205     ;;
20206   esac
20207   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20208   postinstall_cmds='chmod 555 $lib'
20209   ;;
20210
20211 irix5* | irix6* | nonstopux*)
20212   case $host_os in
20213     nonstopux*) version_type=nonstopux ;;
20214     *)
20215         if test "$lt_cv_prog_gnu_ld" = yes; then
20216                 version_type=linux
20217         else
20218                 version_type=irix
20219         fi ;;
20220   esac
20221   need_lib_prefix=no
20222   need_version=no
20223   soname_spec='${libname}${release}${shared_ext}$major'
20224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20225   case $host_os in
20226   irix5* | nonstopux*)
20227     libsuff= shlibsuff=
20228     ;;
20229   *)
20230     case $LD in # libtool.m4 will add one of these switches to LD
20231     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20232       libsuff= shlibsuff= libmagic=32-bit;;
20233     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20234       libsuff=32 shlibsuff=N32 libmagic=N32;;
20235     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20236       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20237     *) libsuff= shlibsuff= libmagic=never-match;;
20238     esac
20239     ;;
20240   esac
20241   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20242   shlibpath_overrides_runpath=no
20243   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20244   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20245   hardcode_into_libs=yes
20246   ;;
20247
20248 # No shared lib support for Linux oldld, aout, or coff.
20249 linux*oldld* | linux*aout* | linux*coff*)
20250   dynamic_linker=no
20251   ;;
20252
20253 # This must be Linux ELF.
20254 linux*)
20255   version_type=linux
20256   need_lib_prefix=no
20257   need_version=no
20258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259   soname_spec='${libname}${release}${shared_ext}$major'
20260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20261   shlibpath_var=LD_LIBRARY_PATH
20262   shlibpath_overrides_runpath=no
20263   # This implies no fast_install, which is unacceptable.
20264   # Some rework will be needed to allow for fast_install
20265   # before this can be enabled.
20266   hardcode_into_libs=yes
20267
20268   # Append ld.so.conf contents to the search path
20269   if test -f /etc/ld.so.conf; then
20270     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20271     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20272   fi
20273
20274   # We used to test for /lib/ld.so.1 and disable shared libraries on
20275   # powerpc, because MkLinux only supported shared libraries with the
20276   # GNU dynamic linker.  Since this was broken with cross compilers,
20277   # most powerpc-linux boxes support dynamic linking these days and
20278   # people can always --disable-shared, the test was removed, and we
20279   # assume the GNU/Linux dynamic linker is in use.
20280   dynamic_linker='GNU/Linux ld.so'
20281   ;;
20282
20283 knetbsd*-gnu)
20284   version_type=linux
20285   need_lib_prefix=no
20286   need_version=no
20287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288   soname_spec='${libname}${release}${shared_ext}$major'
20289   shlibpath_var=LD_LIBRARY_PATH
20290   shlibpath_overrides_runpath=no
20291   hardcode_into_libs=yes
20292   dynamic_linker='GNU ld.so'
20293   ;;
20294
20295 netbsd*)
20296   version_type=sunos
20297   need_lib_prefix=no
20298   need_version=no
20299   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20301     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20302     dynamic_linker='NetBSD (a.out) ld.so'
20303   else
20304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20305     soname_spec='${libname}${release}${shared_ext}$major'
20306     dynamic_linker='NetBSD ld.elf_so'
20307   fi
20308   shlibpath_var=LD_LIBRARY_PATH
20309   shlibpath_overrides_runpath=yes
20310   hardcode_into_libs=yes
20311   ;;
20312
20313 newsos6)
20314   version_type=linux
20315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316   shlibpath_var=LD_LIBRARY_PATH
20317   shlibpath_overrides_runpath=yes
20318   ;;
20319
20320 nto-qnx*)
20321   version_type=linux
20322   need_lib_prefix=no
20323   need_version=no
20324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325   soname_spec='${libname}${release}${shared_ext}$major'
20326   shlibpath_var=LD_LIBRARY_PATH
20327   shlibpath_overrides_runpath=yes
20328   ;;
20329
20330 openbsd*)
20331   version_type=sunos
20332   need_lib_prefix=no
20333   need_version=no
20334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20336   shlibpath_var=LD_LIBRARY_PATH
20337   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20338     case $host_os in
20339       openbsd2.[89] | openbsd2.[89].*)
20340         shlibpath_overrides_runpath=no
20341         ;;
20342       *)
20343         shlibpath_overrides_runpath=yes
20344         ;;
20345       esac
20346   else
20347     shlibpath_overrides_runpath=yes
20348   fi
20349   ;;
20350
20351 os2*)
20352   libname_spec='$name'
20353   shrext_cmds=".dll"
20354   need_lib_prefix=no
20355   library_names_spec='$libname${shared_ext} $libname.a'
20356   dynamic_linker='OS/2 ld.exe'
20357   shlibpath_var=LIBPATH
20358   ;;
20359
20360 osf3* | osf4* | osf5*)
20361   version_type=osf
20362   need_lib_prefix=no
20363   need_version=no
20364   soname_spec='${libname}${release}${shared_ext}$major'
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366   shlibpath_var=LD_LIBRARY_PATH
20367   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20368   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20369   ;;
20370
20371 sco3.2v5*)
20372   version_type=osf
20373   soname_spec='${libname}${release}${shared_ext}$major'
20374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375   shlibpath_var=LD_LIBRARY_PATH
20376   ;;
20377
20378 solaris*)
20379   version_type=linux
20380   need_lib_prefix=no
20381   need_version=no
20382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20383   soname_spec='${libname}${release}${shared_ext}$major'
20384   shlibpath_var=LD_LIBRARY_PATH
20385   shlibpath_overrides_runpath=yes
20386   hardcode_into_libs=yes
20387   # ldd complains unless libraries are executable
20388   postinstall_cmds='chmod +x $lib'
20389   ;;
20390
20391 sunos4*)
20392   version_type=sunos
20393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20394   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20395   shlibpath_var=LD_LIBRARY_PATH
20396   shlibpath_overrides_runpath=yes
20397   if test "$with_gnu_ld" = yes; then
20398     need_lib_prefix=no
20399   fi
20400   need_version=yes
20401   ;;
20402
20403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20404   version_type=linux
20405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406   soname_spec='${libname}${release}${shared_ext}$major'
20407   shlibpath_var=LD_LIBRARY_PATH
20408   case $host_vendor in
20409     sni)
20410       shlibpath_overrides_runpath=no
20411       need_lib_prefix=no
20412       export_dynamic_flag_spec='${wl}-Blargedynsym'
20413       runpath_var=LD_RUN_PATH
20414       ;;
20415     siemens)
20416       need_lib_prefix=no
20417       ;;
20418     motorola)
20419       need_lib_prefix=no
20420       need_version=no
20421       shlibpath_overrides_runpath=no
20422       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20423       ;;
20424   esac
20425   ;;
20426
20427 sysv4*MP*)
20428   if test -d /usr/nec ;then
20429     version_type=linux
20430     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20431     soname_spec='$libname${shared_ext}.$major'
20432     shlibpath_var=LD_LIBRARY_PATH
20433   fi
20434   ;;
20435
20436 uts4*)
20437   version_type=linux
20438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439   soname_spec='${libname}${release}${shared_ext}$major'
20440   shlibpath_var=LD_LIBRARY_PATH
20441   ;;
20442
20443 *)
20444   dynamic_linker=no
20445   ;;
20446 esac
20447 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20448 echo "${ECHO_T}$dynamic_linker" >&6
20449 test "$dynamic_linker" = no && can_build_shared=no
20450
20451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20453 hardcode_action_F77=
20454 if test -n "$hardcode_libdir_flag_spec_F77" || \
20455    test -n "$runpath_var_F77" || \
20456    test "X$hardcode_automatic_F77" = "Xyes" ; then
20457
20458   # We can hardcode non-existant directories.
20459   if test "$hardcode_direct_F77" != no &&
20460      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20461      # have to relink, otherwise we might link with an installed library
20462      # when we should be linking with a yet-to-be-installed one
20463      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20464      test "$hardcode_minus_L_F77" != no; then
20465     # Linking always hardcodes the temporary library directory.
20466     hardcode_action_F77=relink
20467   else
20468     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20469     hardcode_action_F77=immediate
20470   fi
20471 else
20472   # We cannot hardcode anything, or else we can only hardcode existing
20473   # directories.
20474   hardcode_action_F77=unsupported
20475 fi
20476 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20477 echo "${ECHO_T}$hardcode_action_F77" >&6
20478
20479 if test "$hardcode_action_F77" = relink; then
20480   # Fast installation is not supported
20481   enable_fast_install=no
20482 elif test "$shlibpath_overrides_runpath" = yes ||
20483      test "$enable_shared" = no; then
20484   # Fast installation is not necessary
20485   enable_fast_install=needless
20486 fi
20487
20488 striplib=
20489 old_striplib=
20490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20493   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20494   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20495   echo "$as_me:$LINENO: result: yes" >&5
20496 echo "${ECHO_T}yes" >&6
20497 else
20498 # FIXME - insert some real tests, host_os isn't really good enough
20499   case $host_os in
20500    darwin*)
20501        if test -n "$STRIP" ; then
20502          striplib="$STRIP -x"
20503          echo "$as_me:$LINENO: result: yes" >&5
20504 echo "${ECHO_T}yes" >&6
20505        else
20506   echo "$as_me:$LINENO: result: no" >&5
20507 echo "${ECHO_T}no" >&6
20508 fi
20509        ;;
20510    *)
20511   echo "$as_me:$LINENO: result: no" >&5
20512 echo "${ECHO_T}no" >&6
20513     ;;
20514   esac
20515 fi
20516
20517
20518
20519 # The else clause should only fire when bootstrapping the
20520 # libtool distribution, otherwise you forgot to ship ltmain.sh
20521 # with your package, and you will get complaints that there are
20522 # no rules to generate ltmain.sh.
20523 if test -f "$ltmain"; then
20524   # See if we are running on zsh, and set the options which allow our commands through
20525   # without removal of \ escapes.
20526   if test -n "${ZSH_VERSION+set}" ; then
20527     setopt NO_GLOB_SUBST
20528   fi
20529   # Now quote all the things that may contain metacharacters while being
20530   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20531   # variables and quote the copies for generation of the libtool script.
20532   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20533     SED SHELL STRIP \
20534     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20535     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20536     deplibs_check_method reload_flag reload_cmds need_locks \
20537     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20538     lt_cv_sys_global_symbol_to_c_name_address \
20539     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20540     old_postinstall_cmds old_postuninstall_cmds \
20541     compiler_F77 \
20542     CC_F77 \
20543     LD_F77 \
20544     lt_prog_compiler_wl_F77 \
20545     lt_prog_compiler_pic_F77 \
20546     lt_prog_compiler_static_F77 \
20547     lt_prog_compiler_no_builtin_flag_F77 \
20548     export_dynamic_flag_spec_F77 \
20549     thread_safe_flag_spec_F77 \
20550     whole_archive_flag_spec_F77 \
20551     enable_shared_with_static_runtimes_F77 \
20552     old_archive_cmds_F77 \
20553     old_archive_from_new_cmds_F77 \
20554     predep_objects_F77 \
20555     postdep_objects_F77 \
20556     predeps_F77 \
20557     postdeps_F77 \
20558     compiler_lib_search_path_F77 \
20559     archive_cmds_F77 \
20560     archive_expsym_cmds_F77 \
20561     postinstall_cmds_F77 \
20562     postuninstall_cmds_F77 \
20563     old_archive_from_expsyms_cmds_F77 \
20564     allow_undefined_flag_F77 \
20565     no_undefined_flag_F77 \
20566     export_symbols_cmds_F77 \
20567     hardcode_libdir_flag_spec_F77 \
20568     hardcode_libdir_flag_spec_ld_F77 \
20569     hardcode_libdir_separator_F77 \
20570     hardcode_automatic_F77 \
20571     module_cmds_F77 \
20572     module_expsym_cmds_F77 \
20573     lt_cv_prog_compiler_c_o_F77 \
20574     exclude_expsyms_F77 \
20575     include_expsyms_F77; do
20576
20577     case $var in
20578     old_archive_cmds_F77 | \
20579     old_archive_from_new_cmds_F77 | \
20580     archive_cmds_F77 | \
20581     archive_expsym_cmds_F77 | \
20582     module_cmds_F77 | \
20583     module_expsym_cmds_F77 | \
20584     old_archive_from_expsyms_cmds_F77 | \
20585     export_symbols_cmds_F77 | \
20586     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20587     postinstall_cmds | postuninstall_cmds | \
20588     old_postinstall_cmds | old_postuninstall_cmds | \
20589     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20590       # Double-quote double-evaled strings.
20591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20592       ;;
20593     *)
20594       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20595       ;;
20596     esac
20597   done
20598
20599   case $lt_echo in
20600   *'\$0 --fallback-echo"')
20601     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20602     ;;
20603   esac
20604
20605 cfgfile="$ofile"
20606
20607   cat <<__EOF__ >> "$cfgfile"
20608 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20609
20610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20611
20612 # Shell to use when invoking shell scripts.
20613 SHELL=$lt_SHELL
20614
20615 # Whether or not to build shared libraries.
20616 build_libtool_libs=$enable_shared
20617
20618 # Whether or not to build static libraries.
20619 build_old_libs=$enable_static
20620
20621 # Whether or not to add -lc for building shared libraries.
20622 build_libtool_need_lc=$archive_cmds_need_lc_F77
20623
20624 # Whether or not to disallow shared libs when runtime libs are static
20625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20626
20627 # Whether or not to optimize for fast installation.
20628 fast_install=$enable_fast_install
20629
20630 # The host system.
20631 host_alias=$host_alias
20632 host=$host
20633
20634 # An echo program that does not interpret backslashes.
20635 echo=$lt_echo
20636
20637 # The archiver.
20638 AR=$lt_AR
20639 AR_FLAGS=$lt_AR_FLAGS
20640
20641 # A C compiler.
20642 LTCC=$lt_LTCC
20643
20644 # A language-specific compiler.
20645 CC=$lt_compiler_F77
20646
20647 # Is the compiler the GNU C compiler?
20648 with_gcc=$GCC_F77
20649
20650 # An ERE matcher.
20651 EGREP=$lt_EGREP
20652
20653 # The linker used to build libraries.
20654 LD=$lt_LD_F77
20655
20656 # Whether we need hard or soft links.
20657 LN_S=$lt_LN_S
20658
20659 # A BSD-compatible nm program.
20660 NM=$lt_NM
20661
20662 # A symbol stripping program
20663 STRIP=$lt_STRIP
20664
20665 # Used to examine libraries when file_magic_cmd begins "file"
20666 MAGIC_CMD=$MAGIC_CMD
20667
20668 # Used on cygwin: DLL creation program.
20669 DLLTOOL="$DLLTOOL"
20670
20671 # Used on cygwin: object dumper.
20672 OBJDUMP="$OBJDUMP"
20673
20674 # Used on cygwin: assembler.
20675 AS="$AS"
20676
20677 # The name of the directory that contains temporary libtool files.
20678 objdir=$objdir
20679
20680 # How to create reloadable object files.
20681 reload_flag=$lt_reload_flag
20682 reload_cmds=$lt_reload_cmds
20683
20684 # How to pass a linker flag through the compiler.
20685 wl=$lt_lt_prog_compiler_wl_F77
20686
20687 # Object file suffix (normally "o").
20688 objext="$ac_objext"
20689
20690 # Old archive suffix (normally "a").
20691 libext="$libext"
20692
20693 # Shared library suffix (normally ".so").
20694 shrext_cmds='$shrext_cmds'
20695
20696 # Executable file suffix (normally "").
20697 exeext="$exeext"
20698
20699 # Additional compiler flags for building library objects.
20700 pic_flag=$lt_lt_prog_compiler_pic_F77
20701 pic_mode=$pic_mode
20702
20703 # What is the maximum length of a command?
20704 max_cmd_len=$lt_cv_sys_max_cmd_len
20705
20706 # Does compiler simultaneously support -c and -o options?
20707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20708
20709 # Must we lock files when doing compilation ?
20710 need_locks=$lt_need_locks
20711
20712 # Do we need the lib prefix for modules?
20713 need_lib_prefix=$need_lib_prefix
20714
20715 # Do we need a version for libraries?
20716 need_version=$need_version
20717
20718 # Whether dlopen is supported.
20719 dlopen_support=$enable_dlopen
20720
20721 # Whether dlopen of programs is supported.
20722 dlopen_self=$enable_dlopen_self
20723
20724 # Whether dlopen of statically linked programs is supported.
20725 dlopen_self_static=$enable_dlopen_self_static
20726
20727 # Compiler flag to prevent dynamic linking.
20728 link_static_flag=$lt_lt_prog_compiler_static_F77
20729
20730 # Compiler flag to turn off builtin functions.
20731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20732
20733 # Compiler flag to allow reflexive dlopens.
20734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20735
20736 # Compiler flag to generate shared objects directly from archives.
20737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20738
20739 # Compiler flag to generate thread-safe objects.
20740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20741
20742 # Library versioning type.
20743 version_type=$version_type
20744
20745 # Format of library name prefix.
20746 libname_spec=$lt_libname_spec
20747
20748 # List of archive names.  First name is the real one, the rest are links.
20749 # The last name is the one that the linker finds with -lNAME.
20750 library_names_spec=$lt_library_names_spec
20751
20752 # The coded name of the library, if different from the real name.
20753 soname_spec=$lt_soname_spec
20754
20755 # Commands used to build and install an old-style archive.
20756 RANLIB=$lt_RANLIB
20757 old_archive_cmds=$lt_old_archive_cmds_F77
20758 old_postinstall_cmds=$lt_old_postinstall_cmds
20759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20760
20761 # Create an old-style archive from a shared archive.
20762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20763
20764 # Create a temporary old-style archive to link instead of a shared archive.
20765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20766
20767 # Commands used to build and install a shared archive.
20768 archive_cmds=$lt_archive_cmds_F77
20769 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20770 postinstall_cmds=$lt_postinstall_cmds
20771 postuninstall_cmds=$lt_postuninstall_cmds
20772
20773 # Commands used to build a loadable module (assumed same as above if empty)
20774 module_cmds=$lt_module_cmds_F77
20775 module_expsym_cmds=$lt_module_expsym_cmds_F77
20776
20777 # Commands to strip libraries.
20778 old_striplib=$lt_old_striplib
20779 striplib=$lt_striplib
20780
20781 # Dependencies to place before the objects being linked to create a
20782 # shared library.
20783 predep_objects=$lt_predep_objects_F77
20784
20785 # Dependencies to place after the objects being linked to create a
20786 # shared library.
20787 postdep_objects=$lt_postdep_objects_F77
20788
20789 # Dependencies to place before the objects being linked to create a
20790 # shared library.
20791 predeps=$lt_predeps_F77
20792
20793 # Dependencies to place after the objects being linked to create a
20794 # shared library.
20795 postdeps=$lt_postdeps_F77
20796
20797 # The library search path used internally by the compiler when linking
20798 # a shared library.
20799 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20800
20801 # Method to check whether dependent libraries are shared objects.
20802 deplibs_check_method=$lt_deplibs_check_method
20803
20804 # Command to use when deplibs_check_method == file_magic.
20805 file_magic_cmd=$lt_file_magic_cmd
20806
20807 # Flag that allows shared libraries with undefined symbols to be built.
20808 allow_undefined_flag=$lt_allow_undefined_flag_F77
20809
20810 # Flag that forces no undefined symbols.
20811 no_undefined_flag=$lt_no_undefined_flag_F77
20812
20813 # Commands used to finish a libtool library installation in a directory.
20814 finish_cmds=$lt_finish_cmds
20815
20816 # Same as above, but a single script fragment to be evaled but not shown.
20817 finish_eval=$lt_finish_eval
20818
20819 # Take the output of nm and produce a listing of raw symbols and C names.
20820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20821
20822 # Transform the output of nm in a proper C declaration
20823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20824
20825 # Transform the output of nm in a C name address pair
20826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20827
20828 # This is the shared library runtime path variable.
20829 runpath_var=$runpath_var
20830
20831 # This is the shared library path variable.
20832 shlibpath_var=$shlibpath_var
20833
20834 # Is shlibpath searched before the hard-coded library search path?
20835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20836
20837 # How to hardcode a shared library path into an executable.
20838 hardcode_action=$hardcode_action_F77
20839
20840 # Whether we should hardcode library paths into libraries.
20841 hardcode_into_libs=$hardcode_into_libs
20842
20843 # Flag to hardcode \$libdir into a binary during linking.
20844 # This must work even if \$libdir does not exist.
20845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20846
20847 # If ld is used when linking, flag to hardcode \$libdir into
20848 # a binary during linking. This must work even if \$libdir does
20849 # not exist.
20850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20851
20852 # Whether we need a single -rpath flag with a separated argument.
20853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20854
20855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20856 # resulting binary.
20857 hardcode_direct=$hardcode_direct_F77
20858
20859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20860 # resulting binary.
20861 hardcode_minus_L=$hardcode_minus_L_F77
20862
20863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20864 # the resulting binary.
20865 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20866
20867 # Set to yes if building a shared library automatically hardcodes DIR into the library
20868 # and all subsequent libraries and executables linked against it.
20869 hardcode_automatic=$hardcode_automatic_F77
20870
20871 # Variables whose values should be saved in libtool wrapper scripts and
20872 # restored at relink time.
20873 variables_saved_for_relink="$variables_saved_for_relink"
20874
20875 # Whether libtool must link a program against all its dependency libraries.
20876 link_all_deplibs=$link_all_deplibs_F77
20877
20878 # Compile-time system search path for libraries
20879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20880
20881 # Run-time system search path for libraries
20882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20883
20884 # Fix the shell variable \$srcfile for the compiler.
20885 fix_srcfile_path="$fix_srcfile_path_F77"
20886
20887 # Set to yes if exported symbols are required.
20888 always_export_symbols=$always_export_symbols_F77
20889
20890 # The commands to list exported symbols.
20891 export_symbols_cmds=$lt_export_symbols_cmds_F77
20892
20893 # The commands to extract the exported symbol list from a shared archive.
20894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20895
20896 # Symbols that should not be listed in the preloaded symbols.
20897 exclude_expsyms=$lt_exclude_expsyms_F77
20898
20899 # Symbols that must always be exported.
20900 include_expsyms=$lt_include_expsyms_F77
20901
20902 # ### END LIBTOOL TAG CONFIG: $tagname
20903
20904 __EOF__
20905
20906
20907 else
20908   # If there is no Makefile yet, we rely on a make rule to execute
20909   # `config.status --recheck' to rerun these tests and create the
20910   # libtool script then.
20911   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20912   if test -f "$ltmain_in"; then
20913     test -f Makefile && make "$ltmain"
20914   fi
20915 fi
20916
20917
20918 ac_ext=c
20919 ac_cpp='$CPP $CPPFLAGS'
20920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20923
20924 CC="$lt_save_CC"
20925
20926         else
20927           tagname=""
20928         fi
20929         ;;
20930
20931       GCJ)
20932         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20933           ac_ext=c
20934 ac_cpp='$CPP $CPPFLAGS'
20935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938
20939
20940 # Source file extension for Java test sources.
20941 ac_ext=java
20942
20943 # Object file extension for compiled Java test sources.
20944 objext=o
20945 objext_GCJ=$objext
20946
20947 # Code to be used in simple compile tests
20948 lt_simple_compile_test_code="class foo {}\n"
20949
20950 # Code to be used in simple link tests
20951 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20952
20953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20954
20955 # If no C compiler was specified, use CC.
20956 LTCC=${LTCC-"$CC"}
20957
20958 # Allow CC to be a program name with arguments.
20959 compiler=$CC
20960
20961
20962 # Allow CC to be a program name with arguments.
20963 lt_save_CC="$CC"
20964 CC=${GCJ-"gcj"}
20965 compiler=$CC
20966 compiler_GCJ=$CC
20967
20968 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20969 archive_cmds_need_lc_GCJ=no
20970
20971
20972 lt_prog_compiler_no_builtin_flag_GCJ=
20973
20974 if test "$GCC" = yes; then
20975   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20976
20977
20978 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20979 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20980 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 else
20983   lt_cv_prog_compiler_rtti_exceptions=no
20984   ac_outfile=conftest.$ac_objext
20985    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20986    lt_compiler_flag="-fno-rtti -fno-exceptions"
20987    # Insert the option either (1) after the last *FLAGS variable, or
20988    # (2) before a word containing "conftest.", or (3) at the end.
20989    # Note that $ac_compile itself does not contain backslashes and begins
20990    # with a dollar sign (not a hyphen), so the echo should work correctly.
20991    # The option is referenced via a variable to avoid confusing sed.
20992    lt_compile=`echo "$ac_compile" | $SED \
20993    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20995    -e 's:$: $lt_compiler_flag:'`
20996    (eval echo "\"\$as_me:20995: $lt_compile\"" >&5)
20997    (eval "$lt_compile" 2>conftest.err)
20998    ac_status=$?
20999    cat conftest.err >&5
21000    echo "$as_me:20999: \$? = $ac_status" >&5
21001    if (exit $ac_status) && test -s "$ac_outfile"; then
21002      # The compiler can only warn and ignore the option if not recognized
21003      # So say no if there are warnings
21004      if test ! -s conftest.err; then
21005        lt_cv_prog_compiler_rtti_exceptions=yes
21006      fi
21007    fi
21008    $rm conftest*
21009
21010 fi
21011 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21012 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21013
21014 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21015     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21016 else
21017     :
21018 fi
21019
21020 fi
21021
21022 lt_prog_compiler_wl_GCJ=
21023 lt_prog_compiler_pic_GCJ=
21024 lt_prog_compiler_static_GCJ=
21025
21026 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21027 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21028
21029   if test "$GCC" = yes; then
21030     lt_prog_compiler_wl_GCJ='-Wl,'
21031     lt_prog_compiler_static_GCJ='-static'
21032
21033     case $host_os in
21034       aix*)
21035       # All AIX code is PIC.
21036       if test "$host_cpu" = ia64; then
21037         # AIX 5 now supports IA64 processor
21038         lt_prog_compiler_static_GCJ='-Bstatic'
21039       fi
21040       ;;
21041
21042     amigaos*)
21043       # FIXME: we need at least 68020 code to build shared libraries, but
21044       # adding the `-m68020' flag to GCC prevents building anything better,
21045       # like `-m68040'.
21046       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21047       ;;
21048
21049     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21050       # PIC is the default for these OSes.
21051       ;;
21052
21053     mingw* | pw32* | os2*)
21054       # This hack is so that the source file can tell whether it is being
21055       # built for inclusion in a dll (and should export symbols for example).
21056       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21057       ;;
21058
21059     darwin* | rhapsody*)
21060       # PIC is the default on this platform
21061       # Common symbols not allowed in MH_DYLIB files
21062       lt_prog_compiler_pic_GCJ='-fno-common'
21063       ;;
21064
21065     msdosdjgpp*)
21066       # Just because we use GCC doesn't mean we suddenly get shared libraries
21067       # on systems that don't support them.
21068       lt_prog_compiler_can_build_shared_GCJ=no
21069       enable_shared=no
21070       ;;
21071
21072     sysv4*MP*)
21073       if test -d /usr/nec; then
21074         lt_prog_compiler_pic_GCJ=-Kconform_pic
21075       fi
21076       ;;
21077
21078     hpux*)
21079       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21080       # not for PA HP-UX.
21081       case "$host_cpu" in
21082       hppa*64*|ia64*)
21083         # +Z the default
21084         ;;
21085       *)
21086         lt_prog_compiler_pic_GCJ='-fPIC'
21087         ;;
21088       esac
21089       ;;
21090
21091     *)
21092       lt_prog_compiler_pic_GCJ='-fPIC'
21093       ;;
21094     esac
21095   else
21096     # PORTME Check for flag to pass linker flags through the system compiler.
21097     case $host_os in
21098     aix*)
21099       lt_prog_compiler_wl_GCJ='-Wl,'
21100       if test "$host_cpu" = ia64; then
21101         # AIX 5 now supports IA64 processor
21102         lt_prog_compiler_static_GCJ='-Bstatic'
21103       else
21104         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21105       fi
21106       ;;
21107       darwin*)
21108         # PIC is the default on this platform
21109         # Common symbols not allowed in MH_DYLIB files
21110        case "$cc_basename" in
21111          xlc*)
21112          lt_prog_compiler_pic_GCJ='-qnocommon'
21113          lt_prog_compiler_wl_GCJ='-Wl,'
21114          ;;
21115        esac
21116        ;;
21117
21118     mingw* | pw32* | os2*)
21119       # This hack is so that the source file can tell whether it is being
21120       # built for inclusion in a dll (and should export symbols for example).
21121       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21122       ;;
21123
21124     hpux9* | hpux10* | hpux11*)
21125       lt_prog_compiler_wl_GCJ='-Wl,'
21126       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21127       # not for PA HP-UX.
21128       case "$host_cpu" in
21129       hppa*64*|ia64*)
21130         # +Z the default
21131         ;;
21132       *)
21133         lt_prog_compiler_pic_GCJ='+Z'
21134         ;;
21135       esac
21136       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21137       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21138       ;;
21139
21140     irix5* | irix6* | nonstopux*)
21141       lt_prog_compiler_wl_GCJ='-Wl,'
21142       # PIC (with -KPIC) is the default.
21143       lt_prog_compiler_static_GCJ='-non_shared'
21144       ;;
21145
21146     newsos6)
21147       lt_prog_compiler_pic_GCJ='-KPIC'
21148       lt_prog_compiler_static_GCJ='-Bstatic'
21149       ;;
21150
21151     linux*)
21152       case $CC in
21153       icc* | ecc*)
21154         lt_prog_compiler_wl_GCJ='-Wl,'
21155         lt_prog_compiler_pic_GCJ='-KPIC'
21156         lt_prog_compiler_static_GCJ='-static'
21157         ;;
21158       ccc*)
21159         lt_prog_compiler_wl_GCJ='-Wl,'
21160         # All Alpha code is PIC.
21161         lt_prog_compiler_static_GCJ='-non_shared'
21162         ;;
21163       esac
21164       ;;
21165
21166     osf3* | osf4* | osf5*)
21167       lt_prog_compiler_wl_GCJ='-Wl,'
21168       # All OSF/1 code is PIC.
21169       lt_prog_compiler_static_GCJ='-non_shared'
21170       ;;
21171
21172     sco3.2v5*)
21173       lt_prog_compiler_pic_GCJ='-Kpic'
21174       lt_prog_compiler_static_GCJ='-dn'
21175       ;;
21176
21177     solaris*)
21178       lt_prog_compiler_wl_GCJ='-Wl,'
21179       lt_prog_compiler_pic_GCJ='-KPIC'
21180       lt_prog_compiler_static_GCJ='-Bstatic'
21181       ;;
21182
21183     sunos4*)
21184       lt_prog_compiler_wl_GCJ='-Qoption ld '
21185       lt_prog_compiler_pic_GCJ='-PIC'
21186       lt_prog_compiler_static_GCJ='-Bstatic'
21187       ;;
21188
21189     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21190       lt_prog_compiler_wl_GCJ='-Wl,'
21191       lt_prog_compiler_pic_GCJ='-KPIC'
21192       lt_prog_compiler_static_GCJ='-Bstatic'
21193       ;;
21194
21195     sysv4*MP*)
21196       if test -d /usr/nec ;then
21197         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21198         lt_prog_compiler_static_GCJ='-Bstatic'
21199       fi
21200       ;;
21201
21202     uts4*)
21203       lt_prog_compiler_pic_GCJ='-pic'
21204       lt_prog_compiler_static_GCJ='-Bstatic'
21205       ;;
21206
21207     *)
21208       lt_prog_compiler_can_build_shared_GCJ=no
21209       ;;
21210     esac
21211   fi
21212
21213 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21214 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21215
21216 #
21217 # Check to make sure the PIC flag actually works.
21218 #
21219 if test -n "$lt_prog_compiler_pic_GCJ"; then
21220
21221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21223 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21224   echo $ECHO_N "(cached) $ECHO_C" >&6
21225 else
21226   lt_prog_compiler_pic_works_GCJ=no
21227   ac_outfile=conftest.$ac_objext
21228    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21229    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21230    # Insert the option either (1) after the last *FLAGS variable, or
21231    # (2) before a word containing "conftest.", or (3) at the end.
21232    # Note that $ac_compile itself does not contain backslashes and begins
21233    # with a dollar sign (not a hyphen), so the echo should work correctly.
21234    # The option is referenced via a variable to avoid confusing sed.
21235    lt_compile=`echo "$ac_compile" | $SED \
21236    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21238    -e 's:$: $lt_compiler_flag:'`
21239    (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21240    (eval "$lt_compile" 2>conftest.err)
21241    ac_status=$?
21242    cat conftest.err >&5
21243    echo "$as_me:21242: \$? = $ac_status" >&5
21244    if (exit $ac_status) && test -s "$ac_outfile"; then
21245      # The compiler can only warn and ignore the option if not recognized
21246      # So say no if there are warnings
21247      if test ! -s conftest.err; then
21248        lt_prog_compiler_pic_works_GCJ=yes
21249      fi
21250    fi
21251    $rm conftest*
21252
21253 fi
21254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21255 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21256
21257 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21258     case $lt_prog_compiler_pic_GCJ in
21259      "" | " "*) ;;
21260      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21261      esac
21262 else
21263     lt_prog_compiler_pic_GCJ=
21264      lt_prog_compiler_can_build_shared_GCJ=no
21265 fi
21266
21267 fi
21268 case "$host_os" in
21269   # For platforms which do not support PIC, -DPIC is meaningless:
21270   *djgpp*)
21271     lt_prog_compiler_pic_GCJ=
21272     ;;
21273   *)
21274     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21275     ;;
21276 esac
21277
21278 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21280 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21281   echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283   lt_cv_prog_compiler_c_o_GCJ=no
21284    $rm -r conftest 2>/dev/null
21285    mkdir conftest
21286    cd conftest
21287    mkdir out
21288    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21289
21290    lt_compiler_flag="-o out/conftest2.$ac_objext"
21291    # Insert the option either (1) after the last *FLAGS variable, or
21292    # (2) before a word containing "conftest.", or (3) at the end.
21293    # Note that $ac_compile itself does not contain backslashes and begins
21294    # with a dollar sign (not a hyphen), so the echo should work correctly.
21295    lt_compile=`echo "$ac_compile" | $SED \
21296    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21298    -e 's:$: $lt_compiler_flag:'`
21299    (eval echo "\"\$as_me:21298: $lt_compile\"" >&5)
21300    (eval "$lt_compile" 2>out/conftest.err)
21301    ac_status=$?
21302    cat out/conftest.err >&5
21303    echo "$as_me:21302: \$? = $ac_status" >&5
21304    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21305    then
21306      # The compiler can only warn and ignore the option if not recognized
21307      # So say no if there are warnings
21308      if test ! -s out/conftest.err; then
21309        lt_cv_prog_compiler_c_o_GCJ=yes
21310      fi
21311    fi
21312    chmod u+w .
21313    $rm conftest*
21314    # SGI C++ compiler will create directory out/ii_files/ for
21315    # template instantiation
21316    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21317    $rm out/* && rmdir out
21318    cd ..
21319    rmdir conftest
21320    $rm conftest*
21321
21322 fi
21323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21325
21326
21327 hard_links="nottested"
21328 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21329   # do not overwrite the value of need_locks provided by the user
21330   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21332   hard_links=yes
21333   $rm conftest*
21334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21335   touch conftest.a
21336   ln conftest.a conftest.b 2>&5 || hard_links=no
21337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21338   echo "$as_me:$LINENO: result: $hard_links" >&5
21339 echo "${ECHO_T}$hard_links" >&6
21340   if test "$hard_links" = no; then
21341     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21343     need_locks=warn
21344   fi
21345 else
21346   need_locks=no
21347 fi
21348
21349 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21351
21352   runpath_var=
21353   allow_undefined_flag_GCJ=
21354   enable_shared_with_static_runtimes_GCJ=no
21355   archive_cmds_GCJ=
21356   archive_expsym_cmds_GCJ=
21357   old_archive_From_new_cmds_GCJ=
21358   old_archive_from_expsyms_cmds_GCJ=
21359   export_dynamic_flag_spec_GCJ=
21360   whole_archive_flag_spec_GCJ=
21361   thread_safe_flag_spec_GCJ=
21362   hardcode_libdir_flag_spec_GCJ=
21363   hardcode_libdir_flag_spec_ld_GCJ=
21364   hardcode_libdir_separator_GCJ=
21365   hardcode_direct_GCJ=no
21366   hardcode_minus_L_GCJ=no
21367   hardcode_shlibpath_var_GCJ=unsupported
21368   link_all_deplibs_GCJ=unknown
21369   hardcode_automatic_GCJ=no
21370   module_cmds_GCJ=
21371   module_expsym_cmds_GCJ=
21372   always_export_symbols_GCJ=no
21373   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21374   # include_expsyms should be a list of space-separated symbols to be *always*
21375   # included in the symbol list
21376   include_expsyms_GCJ=
21377   # exclude_expsyms can be an extended regexp of symbols to exclude
21378   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21379   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21380   # as well as any symbol that contains `d'.
21381   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21382   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21383   # platforms (ab)use it in PIC code, but their linkers get confused if
21384   # the symbol is explicitly referenced.  Since portable code cannot
21385   # rely on this symbol name, it's probably fine to never include it in
21386   # preloaded symbol tables.
21387   extract_expsyms_cmds=
21388
21389   case $host_os in
21390   cygwin* | mingw* | pw32*)
21391     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21392     # When not using gcc, we currently assume that we are using
21393     # Microsoft Visual C++.
21394     if test "$GCC" != yes; then
21395       with_gnu_ld=no
21396     fi
21397     ;;
21398   openbsd*)
21399     with_gnu_ld=no
21400     ;;
21401   esac
21402
21403   ld_shlibs_GCJ=yes
21404   if test "$with_gnu_ld" = yes; then
21405     # If archive_cmds runs LD, not CC, wlarc should be empty
21406     wlarc='${wl}'
21407
21408     # See if GNU ld supports shared libraries.
21409     case $host_os in
21410     aix3* | aix4* | aix5*)
21411       # On AIX/PPC, the GNU linker is very broken
21412       if test "$host_cpu" != ia64; then
21413         ld_shlibs_GCJ=no
21414         cat <<EOF 1>&2
21415
21416 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21417 *** to be unable to reliably create shared libraries on AIX.
21418 *** Therefore, libtool is disabling shared libraries support.  If you
21419 *** really care for shared libraries, you may want to modify your PATH
21420 *** so that a non-GNU linker is found, and then restart.
21421
21422 EOF
21423       fi
21424       ;;
21425
21426     amigaos*)
21427       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)'
21428       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21429       hardcode_minus_L_GCJ=yes
21430
21431       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21432       # that the semantics of dynamic libraries on AmigaOS, at least up
21433       # to version 4, is to share data among multiple programs linked
21434       # with the same dynamic library.  Since this doesn't match the
21435       # behavior of shared libraries on other platforms, we can't use
21436       # them.
21437       ld_shlibs_GCJ=no
21438       ;;
21439
21440     beos*)
21441       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21442         allow_undefined_flag_GCJ=unsupported
21443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21444         # support --undefined.  This deserves some investigation.  FIXME
21445         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21446       else
21447         ld_shlibs_GCJ=no
21448       fi
21449       ;;
21450
21451     cygwin* | mingw* | pw32*)
21452       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21453       # as there is no search path for DLLs.
21454       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21455       allow_undefined_flag_GCJ=unsupported
21456       always_export_symbols_GCJ=no
21457       enable_shared_with_static_runtimes_GCJ=yes
21458       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21459
21460       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21461         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21462         # If the export-symbols file already is a .def file (1st line
21463         # is EXPORTS), use it as is; otherwise, prepend...
21464         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21465           cp $export_symbols $output_objdir/$soname.def;
21466         else
21467           echo EXPORTS > $output_objdir/$soname.def;
21468           cat $export_symbols >> $output_objdir/$soname.def;
21469         fi~
21470         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21471       else
21472         ld_shlibs=no
21473       fi
21474       ;;
21475
21476     netbsd*)
21477       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21478         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21479         wlarc=
21480       else
21481         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21483       fi
21484       ;;
21485
21486     solaris* | sysv5*)
21487       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21488         ld_shlibs_GCJ=no
21489         cat <<EOF 1>&2
21490
21491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21492 *** create shared libraries on Solaris systems.  Therefore, libtool
21493 *** is disabling shared libraries support.  We urge you to upgrade GNU
21494 *** binutils to release 2.9.1 or newer.  Another option is to modify
21495 *** your PATH or compiler configuration so that the native linker is
21496 *** used, and then restart.
21497
21498 EOF
21499       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21500         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21502       else
21503         ld_shlibs_GCJ=no
21504       fi
21505       ;;
21506
21507     sunos4*)
21508       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21509       wlarc=
21510       hardcode_direct_GCJ=yes
21511       hardcode_shlibpath_var_GCJ=no
21512       ;;
21513
21514   linux*)
21515     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21516         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21517         archive_cmds_GCJ="$tmp_archive_cmds"
21518       supports_anon_versioning=no
21519       case `$LD -v 2>/dev/null` in
21520         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21521         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21522         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21523         *\ 2.11.*) ;; # other 2.11 versions
21524         *) supports_anon_versioning=yes ;;
21525       esac
21526       if test $supports_anon_versioning = yes; then
21527         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21529 $echo "local: *; };" >> $output_objdir/$libname.ver~
21530         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21531       else
21532         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21533       fi
21534     else
21535       ld_shlibs_GCJ=no
21536     fi
21537     ;;
21538
21539     *)
21540       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21542         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21543       else
21544         ld_shlibs_GCJ=no
21545       fi
21546       ;;
21547     esac
21548
21549     if test "$ld_shlibs_GCJ" = yes; then
21550       runpath_var=LD_RUN_PATH
21551       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21552       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21553       # ancient GNU ld didn't support --whole-archive et. al.
21554       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21555         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21556       else
21557         whole_archive_flag_spec_GCJ=
21558       fi
21559     fi
21560   else
21561     # PORTME fill in a description of your system's linker (not GNU ld)
21562     case $host_os in
21563     aix3*)
21564       allow_undefined_flag_GCJ=unsupported
21565       always_export_symbols_GCJ=yes
21566       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'
21567       # Note: this linker hardcodes the directories in LIBPATH if there
21568       # are no directories specified by -L.
21569       hardcode_minus_L_GCJ=yes
21570       if test "$GCC" = yes && test -z "$link_static_flag"; then
21571         # Neither direct hardcoding nor static linking is supported with a
21572         # broken collect2.
21573         hardcode_direct_GCJ=unsupported
21574       fi
21575       ;;
21576
21577     aix4* | aix5*)
21578       if test "$host_cpu" = ia64; then
21579         # On IA64, the linker does run time linking by default, so we don't
21580         # have to do anything special.
21581         aix_use_runtimelinking=no
21582         exp_sym_flag='-Bexport'
21583         no_entry_flag=""
21584       else
21585         # If we're using GNU nm, then we don't want the "-C" option.
21586         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21587         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21588           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'
21589         else
21590           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'
21591         fi
21592         aix_use_runtimelinking=no
21593
21594         # Test if we are trying to use run time linking or normal
21595         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21596         # need to do runtime linking.
21597         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21598           for ld_flag in $LDFLAGS; do
21599           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21600             aix_use_runtimelinking=yes
21601             break
21602           fi
21603           done
21604         esac
21605
21606         exp_sym_flag='-bexport'
21607         no_entry_flag='-bnoentry'
21608       fi
21609
21610       # When large executables or shared objects are built, AIX ld can
21611       # have problems creating the table of contents.  If linking a library
21612       # or program results in "error TOC overflow" add -mminimal-toc to
21613       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21614       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21615
21616       archive_cmds_GCJ=''
21617       hardcode_direct_GCJ=yes
21618       hardcode_libdir_separator_GCJ=':'
21619       link_all_deplibs_GCJ=yes
21620
21621       if test "$GCC" = yes; then
21622         case $host_os in aix4.012|aix4.012.*)
21623         # We only want to do this on AIX 4.2 and lower, the check
21624         # below for broken collect2 doesn't work under 4.3+
21625           collect2name=`${CC} -print-prog-name=collect2`
21626           if test -f "$collect2name" && \
21627            strings "$collect2name" | grep resolve_lib_name >/dev/null
21628           then
21629           # We have reworked collect2
21630           hardcode_direct_GCJ=yes
21631           else
21632           # We have old collect2
21633           hardcode_direct_GCJ=unsupported
21634           # It fails to find uninstalled libraries when the uninstalled
21635           # path is not listed in the libpath.  Setting hardcode_minus_L
21636           # to unsupported forces relinking
21637           hardcode_minus_L_GCJ=yes
21638           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21639           hardcode_libdir_separator_GCJ=
21640           fi
21641         esac
21642         shared_flag='-shared'
21643       else
21644         # not using gcc
21645         if test "$host_cpu" = ia64; then
21646         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21647         # chokes on -Wl,-G. The following line is correct:
21648           shared_flag='-G'
21649         else
21650         if test "$aix_use_runtimelinking" = yes; then
21651             shared_flag='${wl}-G'
21652           else
21653             shared_flag='${wl}-bM:SRE'
21654         fi
21655         fi
21656       fi
21657
21658       # It seems that -bexpall does not export symbols beginning with
21659       # underscore (_), so it is better to generate a list of symbols to export.
21660       always_export_symbols_GCJ=yes
21661       if test "$aix_use_runtimelinking" = yes; then
21662         # Warning - without using the other runtime loading flags (-brtl),
21663         # -berok will link without error, but may produce a broken library.
21664         allow_undefined_flag_GCJ='-berok'
21665        # Determine the default libpath from the value encoded in an empty executable.
21666        cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h.  */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h.  */
21672
21673 int
21674 main ()
21675 {
21676
21677   ;
21678   return 0;
21679 }
21680 _ACEOF
21681 rm -f conftest.$ac_objext conftest$ac_exeext
21682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21683   (eval $ac_link) 2>conftest.er1
21684   ac_status=$?
21685   grep -v '^ *+' conftest.er1 >conftest.err
21686   rm -f conftest.er1
21687   cat conftest.err >&5
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } &&
21690          { ac_try='test -z "$ac_c_werror_flag"
21691                          || test ! -s conftest.err'
21692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693   (eval $ac_try) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; } &&
21697          { ac_try='test -s conftest$ac_exeext'
21698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699   (eval $ac_try) 2>&5
21700   ac_status=$?
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); }; }; then
21703
21704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21705 }'`
21706 # Check for a 64-bit object if we didn't find anything.
21707 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; }
21708 }'`; fi
21709 else
21710   echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 fi
21714 rm -f conftest.err conftest.$ac_objext \
21715       conftest$ac_exeext conftest.$ac_ext
21716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21717
21718        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21719         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"
21720        else
21721         if test "$host_cpu" = ia64; then
21722           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21723           allow_undefined_flag_GCJ="-z nodefs"
21724           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"
21725         else
21726          # Determine the default libpath from the value encoded in an empty executable.
21727          cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h.  */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h.  */
21733
21734 int
21735 main ()
21736 {
21737
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest.$ac_objext conftest$ac_exeext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21744   (eval $ac_link) 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } &&
21751          { ac_try='test -z "$ac_c_werror_flag"
21752                          || test ! -s conftest.err'
21753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; } &&
21758          { ac_try='test -s conftest$ac_exeext'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; }; then
21764
21765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21766 }'`
21767 # Check for a 64-bit object if we didn't find anything.
21768 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; }
21769 }'`; fi
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774 fi
21775 rm -f conftest.err conftest.$ac_objext \
21776       conftest$ac_exeext conftest.$ac_ext
21777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21778
21779          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21780           # Warning - without using the other run time loading flags,
21781           # -berok will link without error, but may produce a broken library.
21782           no_undefined_flag_GCJ=' ${wl}-bernotok'
21783           allow_undefined_flag_GCJ=' ${wl}-berok'
21784           # -bexpall does not export symbols beginning with underscore (_)
21785           always_export_symbols_GCJ=yes
21786           # Exported symbols can be pulled into shared objects from archives
21787           whole_archive_flag_spec_GCJ=' '
21788           archive_cmds_need_lc_GCJ=yes
21789           # This is similar to how AIX traditionally builds it's shared libraries.
21790           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'
21791         fi
21792       fi
21793       ;;
21794
21795     amigaos*)
21796       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)'
21797       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21798       hardcode_minus_L_GCJ=yes
21799       # see comment about different semantics on the GNU ld section
21800       ld_shlibs_GCJ=no
21801       ;;
21802
21803     bsdi[45]*)
21804       export_dynamic_flag_spec_GCJ=-rdynamic
21805       ;;
21806
21807     cygwin* | mingw* | pw32*)
21808       # When not using gcc, we currently assume that we are using
21809       # Microsoft Visual C++.
21810       # hardcode_libdir_flag_spec is actually meaningless, as there is
21811       # no search path for DLLs.
21812       hardcode_libdir_flag_spec_GCJ=' '
21813       allow_undefined_flag_GCJ=unsupported
21814       # Tell ltmain to make .lib files, not .a files.
21815       libext=lib
21816       # Tell ltmain to make .dll files, not .so files.
21817       shrext_cmds=".dll"
21818       # FIXME: Setting linknames here is a bad hack.
21819       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21820       # The linker will automatically build a .lib file if we build a DLL.
21821       old_archive_From_new_cmds_GCJ='true'
21822       # FIXME: Should let the user specify the lib program.
21823       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21824       fix_srcfile_path='`cygpath -w "$srcfile"`'
21825       enable_shared_with_static_runtimes_GCJ=yes
21826       ;;
21827
21828     darwin* | rhapsody*)
21829       case "$host_os" in
21830         rhapsody* | darwin1.[012])
21831          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21832          ;;
21833        *) # Darwin 1.3 on
21834          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21835            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21836          else
21837            case ${MACOSX_DEPLOYMENT_TARGET} in
21838              10.[012])
21839                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21840                ;;
21841              10.*)
21842                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21843                ;;
21844            esac
21845          fi
21846          ;;
21847       esac
21848       archive_cmds_need_lc_GCJ=no
21849       hardcode_direct_GCJ=no
21850       hardcode_automatic_GCJ=yes
21851       hardcode_shlibpath_var_GCJ=unsupported
21852       whole_archive_flag_spec_GCJ=''
21853       link_all_deplibs_GCJ=yes
21854     if test "$GCC" = yes ; then
21855         output_verbose_link_cmd='echo'
21856         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21857       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21858       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21859       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21860       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21861     else
21862       case "$cc_basename" in
21863         xlc*)
21864          output_verbose_link_cmd='echo'
21865          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21866          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21867           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21868          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}'
21869           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}'
21870           ;;
21871        *)
21872          ld_shlibs_GCJ=no
21873           ;;
21874       esac
21875     fi
21876       ;;
21877
21878     dgux*)
21879       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21880       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21881       hardcode_shlibpath_var_GCJ=no
21882       ;;
21883
21884     freebsd1*)
21885       ld_shlibs_GCJ=no
21886       ;;
21887
21888     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21889     # support.  Future versions do this automatically, but an explicit c++rt0.o
21890     # does not break anything, and helps significantly (at the cost of a little
21891     # extra space).
21892     freebsd2.2*)
21893       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21894       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21895       hardcode_direct_GCJ=yes
21896       hardcode_shlibpath_var_GCJ=no
21897       ;;
21898
21899     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21900     freebsd2*)
21901       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21902       hardcode_direct_GCJ=yes
21903       hardcode_minus_L_GCJ=yes
21904       hardcode_shlibpath_var_GCJ=no
21905       ;;
21906
21907     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21908     freebsd* | kfreebsd*-gnu)
21909       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21910       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911       hardcode_direct_GCJ=yes
21912       hardcode_shlibpath_var_GCJ=no
21913       ;;
21914
21915     hpux9*)
21916       if test "$GCC" = yes; then
21917         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'
21918       else
21919         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'
21920       fi
21921       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21922       hardcode_libdir_separator_GCJ=:
21923       hardcode_direct_GCJ=yes
21924
21925       # hardcode_minus_L: Not really in the search PATH,
21926       # but as the default location of the library.
21927       hardcode_minus_L_GCJ=yes
21928       export_dynamic_flag_spec_GCJ='${wl}-E'
21929       ;;
21930
21931     hpux10* | hpux11*)
21932       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21933         case "$host_cpu" in
21934         hppa*64*|ia64*)
21935           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21936           ;;
21937         *)
21938           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21939           ;;
21940         esac
21941       else
21942         case "$host_cpu" in
21943         hppa*64*|ia64*)
21944           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21945           ;;
21946         *)
21947           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21948           ;;
21949         esac
21950       fi
21951       if test "$with_gnu_ld" = no; then
21952         case "$host_cpu" in
21953         hppa*64*)
21954           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21955           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21956           hardcode_libdir_separator_GCJ=:
21957           hardcode_direct_GCJ=no
21958           hardcode_shlibpath_var_GCJ=no
21959           ;;
21960         ia64*)
21961           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21962           hardcode_direct_GCJ=no
21963           hardcode_shlibpath_var_GCJ=no
21964
21965           # hardcode_minus_L: Not really in the search PATH,
21966           # but as the default location of the library.
21967           hardcode_minus_L_GCJ=yes
21968           ;;
21969         *)
21970           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21971           hardcode_libdir_separator_GCJ=:
21972           hardcode_direct_GCJ=yes
21973           export_dynamic_flag_spec_GCJ='${wl}-E'
21974
21975           # hardcode_minus_L: Not really in the search PATH,
21976           # but as the default location of the library.
21977           hardcode_minus_L_GCJ=yes
21978           ;;
21979         esac
21980       fi
21981       ;;
21982
21983     irix5* | irix6* | nonstopux*)
21984       if test "$GCC" = yes; then
21985         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'
21986       else
21987         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'
21988         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21989       fi
21990       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21991       hardcode_libdir_separator_GCJ=:
21992       link_all_deplibs_GCJ=yes
21993       ;;
21994
21995     netbsd*)
21996       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21997         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21998       else
21999         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22000       fi
22001       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22002       hardcode_direct_GCJ=yes
22003       hardcode_shlibpath_var_GCJ=no
22004       ;;
22005
22006     newsos6)
22007       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22008       hardcode_direct_GCJ=yes
22009       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22010       hardcode_libdir_separator_GCJ=:
22011       hardcode_shlibpath_var_GCJ=no
22012       ;;
22013
22014     openbsd*)
22015       hardcode_direct_GCJ=yes
22016       hardcode_shlibpath_var_GCJ=no
22017       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22018         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22019         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22020         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22021         export_dynamic_flag_spec_GCJ='${wl}-E'
22022       else
22023        case $host_os in
22024          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22025            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22026            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22027            ;;
22028          *)
22029            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22030            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22031            ;;
22032        esac
22033       fi
22034       ;;
22035
22036     os2*)
22037       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22038       hardcode_minus_L_GCJ=yes
22039       allow_undefined_flag_GCJ=unsupported
22040       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'
22041       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22042       ;;
22043
22044     osf3*)
22045       if test "$GCC" = yes; then
22046         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22047         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'
22048       else
22049         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22050         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'
22051       fi
22052       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22053       hardcode_libdir_separator_GCJ=:
22054       ;;
22055
22056     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22057       if test "$GCC" = yes; then
22058         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22059         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'
22060         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22061       else
22062         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22063         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'
22064         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~
22065         $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'
22066
22067         # Both c and cxx compiler support -rpath directly
22068         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22069       fi
22070       hardcode_libdir_separator_GCJ=:
22071       ;;
22072
22073     sco3.2v5*)
22074       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22075       hardcode_shlibpath_var_GCJ=no
22076       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22077       runpath_var=LD_RUN_PATH
22078       hardcode_runpath_var=yes
22079       ;;
22080
22081     solaris*)
22082       no_undefined_flag_GCJ=' -z text'
22083       if test "$GCC" = yes; then
22084         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22085         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22086           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22087       else
22088         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22089         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22090         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22091       fi
22092       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22093       hardcode_shlibpath_var_GCJ=no
22094       case $host_os in
22095       solaris2.[0-5] | solaris2.[0-5].*) ;;
22096       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22097         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22098       esac
22099       link_all_deplibs_GCJ=yes
22100       ;;
22101
22102     sunos4*)
22103       if test "x$host_vendor" = xsequent; then
22104         # Use $CC to link under sequent, because it throws in some extra .o
22105         # files that make .init and .fini sections work.
22106         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22107       else
22108         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22109       fi
22110       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22111       hardcode_direct_GCJ=yes
22112       hardcode_minus_L_GCJ=yes
22113       hardcode_shlibpath_var_GCJ=no
22114       ;;
22115
22116     sysv4)
22117       case $host_vendor in
22118         sni)
22119           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22120           hardcode_direct_GCJ=yes # is this really true???
22121         ;;
22122         siemens)
22123           ## LD is ld it makes a PLAMLIB
22124           ## CC just makes a GrossModule.
22125           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22126           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22127           hardcode_direct_GCJ=no
22128         ;;
22129         motorola)
22130           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22132         ;;
22133       esac
22134       runpath_var='LD_RUN_PATH'
22135       hardcode_shlibpath_var_GCJ=no
22136       ;;
22137
22138     sysv4.3*)
22139       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140       hardcode_shlibpath_var_GCJ=no
22141       export_dynamic_flag_spec_GCJ='-Bexport'
22142       ;;
22143
22144     sysv4*MP*)
22145       if test -d /usr/nec; then
22146         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147         hardcode_shlibpath_var_GCJ=no
22148         runpath_var=LD_RUN_PATH
22149         hardcode_runpath_var=yes
22150         ld_shlibs_GCJ=yes
22151       fi
22152       ;;
22153
22154     sysv4.2uw2*)
22155       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22156       hardcode_direct_GCJ=yes
22157       hardcode_minus_L_GCJ=no
22158       hardcode_shlibpath_var_GCJ=no
22159       hardcode_runpath_var=yes
22160       runpath_var=LD_RUN_PATH
22161       ;;
22162
22163    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22164       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22165       if test "$GCC" = yes; then
22166         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22167       else
22168         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22169       fi
22170       runpath_var='LD_RUN_PATH'
22171       hardcode_shlibpath_var_GCJ=no
22172       ;;
22173
22174     sysv5*)
22175       no_undefined_flag_GCJ=' -z text'
22176       # $CC -shared without GNU ld will not create a library from C++
22177       # object files and a static libstdc++, better avoid it by now
22178       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22179       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22180                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22181       hardcode_libdir_flag_spec_GCJ=
22182       hardcode_shlibpath_var_GCJ=no
22183       runpath_var='LD_RUN_PATH'
22184       ;;
22185
22186     uts4*)
22187       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189       hardcode_shlibpath_var_GCJ=no
22190       ;;
22191
22192     *)
22193       ld_shlibs_GCJ=no
22194       ;;
22195     esac
22196   fi
22197
22198 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22199 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22200 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22201
22202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22203 if test "$GCC" = yes; then
22204   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22205 fi
22206
22207 #
22208 # Do we need to explicitly link libc?
22209 #
22210 case "x$archive_cmds_need_lc_GCJ" in
22211 x|xyes)
22212   # Assume -lc should be added
22213   archive_cmds_need_lc_GCJ=yes
22214
22215   if test "$enable_shared" = yes && test "$GCC" = yes; then
22216     case $archive_cmds_GCJ in
22217     *'~'*)
22218       # FIXME: we may have to deal with multi-command sequences.
22219       ;;
22220     '$CC '*)
22221       # Test whether the compiler implicitly links with -lc since on some
22222       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22223       # to ld, don't add -lc before -lgcc.
22224       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22225 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22226       $rm conftest*
22227       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22228
22229       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22230   (eval $ac_compile) 2>&5
22231   ac_status=$?
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); } 2>conftest.err; then
22234         soname=conftest
22235         lib=conftest
22236         libobjs=conftest.$ac_objext
22237         deplibs=
22238         wl=$lt_prog_compiler_wl_GCJ
22239         compiler_flags=-v
22240         linker_flags=-v
22241         verstring=
22242         output_objdir=.
22243         libname=conftest
22244         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22245         allow_undefined_flag_GCJ=
22246         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22247   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); }
22251         then
22252           archive_cmds_need_lc_GCJ=no
22253         else
22254           archive_cmds_need_lc_GCJ=yes
22255         fi
22256         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22257       else
22258         cat conftest.err 1>&5
22259       fi
22260       $rm conftest*
22261       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22262 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22263       ;;
22264     esac
22265   fi
22266   ;;
22267 esac
22268
22269 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22270 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22271 library_names_spec=
22272 libname_spec='lib$name'
22273 soname_spec=
22274 shrext_cmds=".so"
22275 postinstall_cmds=
22276 postuninstall_cmds=
22277 finish_cmds=
22278 finish_eval=
22279 shlibpath_var=
22280 shlibpath_overrides_runpath=unknown
22281 version_type=none
22282 dynamic_linker="$host_os ld.so"
22283 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22284 if test "$GCC" = yes; then
22285   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22286   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22287     # if the path contains ";" then we assume it to be the separator
22288     # otherwise default to the standard path separator (i.e. ":") - it is
22289     # assumed that no part of a normal pathname contains ";" but that should
22290     # okay in the real world where ";" in dirpaths is itself problematic.
22291     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22292   else
22293     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22294   fi
22295 else
22296   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22297 fi
22298 need_lib_prefix=unknown
22299 hardcode_into_libs=no
22300
22301 # when you set need_version to no, make sure it does not cause -set_version
22302 # flags to be left without arguments
22303 need_version=unknown
22304
22305 case $host_os in
22306 aix3*)
22307   version_type=linux
22308   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22309   shlibpath_var=LIBPATH
22310
22311   # AIX 3 has no versioning support, so we append a major version to the name.
22312   soname_spec='${libname}${release}${shared_ext}$major'
22313   ;;
22314
22315 aix4* | aix5*)
22316   version_type=linux
22317   need_lib_prefix=no
22318   need_version=no
22319   hardcode_into_libs=yes
22320   if test "$host_cpu" = ia64; then
22321     # AIX 5 supports IA64
22322     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22323     shlibpath_var=LD_LIBRARY_PATH
22324   else
22325     # With GCC up to 2.95.x, collect2 would create an import file
22326     # for dependence libraries.  The import file would start with
22327     # the line `#! .'.  This would cause the generated library to
22328     # depend on `.', always an invalid library.  This was fixed in
22329     # development snapshots of GCC prior to 3.0.
22330     case $host_os in
22331       aix4 | aix4.[01] | aix4.[01].*)
22332       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22333            echo ' yes '
22334            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22335         :
22336       else
22337         can_build_shared=no
22338       fi
22339       ;;
22340     esac
22341     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22342     # soname into executable. Probably we can add versioning support to
22343     # collect2, so additional links can be useful in future.
22344     if test "$aix_use_runtimelinking" = yes; then
22345       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22346       # instead of lib<name>.a to let people know that these are not
22347       # typical AIX shared libraries.
22348       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22349     else
22350       # We preserve .a as extension for shared libraries through AIX4.2
22351       # and later when we are not doing run time linking.
22352       library_names_spec='${libname}${release}.a $libname.a'
22353       soname_spec='${libname}${release}${shared_ext}$major'
22354     fi
22355     shlibpath_var=LIBPATH
22356   fi
22357   ;;
22358
22359 amigaos*)
22360   library_names_spec='$libname.ixlibrary $libname.a'
22361   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22362   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'
22363   ;;
22364
22365 beos*)
22366   library_names_spec='${libname}${shared_ext}'
22367   dynamic_linker="$host_os ld.so"
22368   shlibpath_var=LIBRARY_PATH
22369   ;;
22370
22371 bsdi[45]*)
22372   version_type=linux
22373   need_version=no
22374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22375   soname_spec='${libname}${release}${shared_ext}$major'
22376   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22377   shlibpath_var=LD_LIBRARY_PATH
22378   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22379   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22380   # the default ld.so.conf also contains /usr/contrib/lib and
22381   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22382   # libtool to hard-code these into programs
22383   ;;
22384
22385 cygwin* | mingw* | pw32*)
22386   version_type=windows
22387   shrext_cmds=".dll"
22388   need_version=no
22389   need_lib_prefix=no
22390
22391   case $GCC,$host_os in
22392   yes,cygwin* | yes,mingw* | yes,pw32*)
22393     library_names_spec='$libname.dll.a'
22394     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22395     postinstall_cmds='base_file=`basename \${file}`~
22396       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22397       dldir=$destdir/`dirname \$dlpath`~
22398       test -d \$dldir || mkdir -p \$dldir~
22399       $install_prog $dir/$dlname \$dldir/$dlname'
22400     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22401       dlpath=$dir/\$dldll~
22402        $rm \$dlpath'
22403     shlibpath_overrides_runpath=yes
22404
22405     case $host_os in
22406     cygwin*)
22407       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22408       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22409       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22410       ;;
22411     mingw*)
22412       # MinGW DLLs use traditional 'lib' prefix
22413       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22414       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22415       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22416         # It is most probably a Windows format PATH printed by
22417         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22418         # path with ; separators, and with drive letters. We can handle the
22419         # drive letters (cygwin fileutils understands them), so leave them,
22420         # especially as we might pass files found there to a mingw objdump,
22421         # which wouldn't understand a cygwinified path. Ahh.
22422         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22423       else
22424         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22425       fi
22426       ;;
22427     pw32*)
22428       # pw32 DLLs use 'pw' prefix rather than 'lib'
22429       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22430       ;;
22431     esac
22432     ;;
22433
22434   *)
22435     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22436     ;;
22437   esac
22438   dynamic_linker='Win32 ld.exe'
22439   # FIXME: first we should search . and the directory the executable is in
22440   shlibpath_var=PATH
22441   ;;
22442
22443 darwin* | rhapsody*)
22444   dynamic_linker="$host_os dyld"
22445   version_type=darwin
22446   need_lib_prefix=no
22447   need_version=no
22448   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22449   soname_spec='${libname}${release}${major}$shared_ext'
22450   shlibpath_overrides_runpath=yes
22451   shlibpath_var=DYLD_LIBRARY_PATH
22452   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22453   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22454   if test "$GCC" = yes; then
22455     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"`
22456   else
22457     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22458   fi
22459   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22460   ;;
22461
22462 dgux*)
22463   version_type=linux
22464   need_lib_prefix=no
22465   need_version=no
22466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22467   soname_spec='${libname}${release}${shared_ext}$major'
22468   shlibpath_var=LD_LIBRARY_PATH
22469   ;;
22470
22471 freebsd1*)
22472   dynamic_linker=no
22473   ;;
22474
22475 kfreebsd*-gnu)
22476   version_type=linux
22477   need_lib_prefix=no
22478   need_version=no
22479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22480   soname_spec='${libname}${release}${shared_ext}$major'
22481   shlibpath_var=LD_LIBRARY_PATH
22482   shlibpath_overrides_runpath=no
22483   hardcode_into_libs=yes
22484   dynamic_linker='GNU ld.so'
22485   ;;
22486
22487 freebsd*)
22488   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22489   version_type=freebsd-$objformat
22490   case $version_type in
22491     freebsd-elf*)
22492       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22493       need_version=no
22494       need_lib_prefix=no
22495       ;;
22496     freebsd-*)
22497       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22498       need_version=yes
22499       ;;
22500   esac
22501   shlibpath_var=LD_LIBRARY_PATH
22502   case $host_os in
22503   freebsd2*)
22504     shlibpath_overrides_runpath=yes
22505     ;;
22506   freebsd3.01* | freebsdelf3.01*)
22507     shlibpath_overrides_runpath=yes
22508     hardcode_into_libs=yes
22509     ;;
22510   *) # from 3.2 on
22511     shlibpath_overrides_runpath=no
22512     hardcode_into_libs=yes
22513     ;;
22514   esac
22515   ;;
22516
22517 gnu*)
22518   version_type=linux
22519   need_lib_prefix=no
22520   need_version=no
22521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22522   soname_spec='${libname}${release}${shared_ext}$major'
22523   shlibpath_var=LD_LIBRARY_PATH
22524   hardcode_into_libs=yes
22525   ;;
22526
22527 hpux9* | hpux10* | hpux11*)
22528   # Give a soname corresponding to the major version so that dld.sl refuses to
22529   # link against other versions.
22530   version_type=sunos
22531   need_lib_prefix=no
22532   need_version=no
22533   case "$host_cpu" in
22534   ia64*)
22535     shrext_cmds='.so'
22536     hardcode_into_libs=yes
22537     dynamic_linker="$host_os dld.so"
22538     shlibpath_var=LD_LIBRARY_PATH
22539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22541     soname_spec='${libname}${release}${shared_ext}$major'
22542     if test "X$HPUX_IA64_MODE" = X32; then
22543       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22544     else
22545       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22546     fi
22547     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22548     ;;
22549    hppa*64*)
22550      shrext_cmds='.sl'
22551      hardcode_into_libs=yes
22552      dynamic_linker="$host_os dld.sl"
22553      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22554      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22556      soname_spec='${libname}${release}${shared_ext}$major'
22557      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22558      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22559      ;;
22560    *)
22561     shrext_cmds='.sl'
22562     dynamic_linker="$host_os dld.sl"
22563     shlibpath_var=SHLIB_PATH
22564     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22566     soname_spec='${libname}${release}${shared_ext}$major'
22567     ;;
22568   esac
22569   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22570   postinstall_cmds='chmod 555 $lib'
22571   ;;
22572
22573 irix5* | irix6* | nonstopux*)
22574   case $host_os in
22575     nonstopux*) version_type=nonstopux ;;
22576     *)
22577         if test "$lt_cv_prog_gnu_ld" = yes; then
22578                 version_type=linux
22579         else
22580                 version_type=irix
22581         fi ;;
22582   esac
22583   need_lib_prefix=no
22584   need_version=no
22585   soname_spec='${libname}${release}${shared_ext}$major'
22586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22587   case $host_os in
22588   irix5* | nonstopux*)
22589     libsuff= shlibsuff=
22590     ;;
22591   *)
22592     case $LD in # libtool.m4 will add one of these switches to LD
22593     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22594       libsuff= shlibsuff= libmagic=32-bit;;
22595     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22596       libsuff=32 shlibsuff=N32 libmagic=N32;;
22597     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22598       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22599     *) libsuff= shlibsuff= libmagic=never-match;;
22600     esac
22601     ;;
22602   esac
22603   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22604   shlibpath_overrides_runpath=no
22605   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22606   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22607   hardcode_into_libs=yes
22608   ;;
22609
22610 # No shared lib support for Linux oldld, aout, or coff.
22611 linux*oldld* | linux*aout* | linux*coff*)
22612   dynamic_linker=no
22613   ;;
22614
22615 # This must be Linux ELF.
22616 linux*)
22617   version_type=linux
22618   need_lib_prefix=no
22619   need_version=no
22620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621   soname_spec='${libname}${release}${shared_ext}$major'
22622   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22623   shlibpath_var=LD_LIBRARY_PATH
22624   shlibpath_overrides_runpath=no
22625   # This implies no fast_install, which is unacceptable.
22626   # Some rework will be needed to allow for fast_install
22627   # before this can be enabled.
22628   hardcode_into_libs=yes
22629
22630   # Append ld.so.conf contents to the search path
22631   if test -f /etc/ld.so.conf; then
22632     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22633     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22634   fi
22635
22636   # We used to test for /lib/ld.so.1 and disable shared libraries on
22637   # powerpc, because MkLinux only supported shared libraries with the
22638   # GNU dynamic linker.  Since this was broken with cross compilers,
22639   # most powerpc-linux boxes support dynamic linking these days and
22640   # people can always --disable-shared, the test was removed, and we
22641   # assume the GNU/Linux dynamic linker is in use.
22642   dynamic_linker='GNU/Linux ld.so'
22643   ;;
22644
22645 knetbsd*-gnu)
22646   version_type=linux
22647   need_lib_prefix=no
22648   need_version=no
22649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22650   soname_spec='${libname}${release}${shared_ext}$major'
22651   shlibpath_var=LD_LIBRARY_PATH
22652   shlibpath_overrides_runpath=no
22653   hardcode_into_libs=yes
22654   dynamic_linker='GNU ld.so'
22655   ;;
22656
22657 netbsd*)
22658   version_type=sunos
22659   need_lib_prefix=no
22660   need_version=no
22661   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22663     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22664     dynamic_linker='NetBSD (a.out) ld.so'
22665   else
22666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22667     soname_spec='${libname}${release}${shared_ext}$major'
22668     dynamic_linker='NetBSD ld.elf_so'
22669   fi
22670   shlibpath_var=LD_LIBRARY_PATH
22671   shlibpath_overrides_runpath=yes
22672   hardcode_into_libs=yes
22673   ;;
22674
22675 newsos6)
22676   version_type=linux
22677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678   shlibpath_var=LD_LIBRARY_PATH
22679   shlibpath_overrides_runpath=yes
22680   ;;
22681
22682 nto-qnx*)
22683   version_type=linux
22684   need_lib_prefix=no
22685   need_version=no
22686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687   soname_spec='${libname}${release}${shared_ext}$major'
22688   shlibpath_var=LD_LIBRARY_PATH
22689   shlibpath_overrides_runpath=yes
22690   ;;
22691
22692 openbsd*)
22693   version_type=sunos
22694   need_lib_prefix=no
22695   need_version=no
22696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22697   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22698   shlibpath_var=LD_LIBRARY_PATH
22699   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22700     case $host_os in
22701       openbsd2.[89] | openbsd2.[89].*)
22702         shlibpath_overrides_runpath=no
22703         ;;
22704       *)
22705         shlibpath_overrides_runpath=yes
22706         ;;
22707       esac
22708   else
22709     shlibpath_overrides_runpath=yes
22710   fi
22711   ;;
22712
22713 os2*)
22714   libname_spec='$name'
22715   shrext_cmds=".dll"
22716   need_lib_prefix=no
22717   library_names_spec='$libname${shared_ext} $libname.a'
22718   dynamic_linker='OS/2 ld.exe'
22719   shlibpath_var=LIBPATH
22720   ;;
22721
22722 osf3* | osf4* | osf5*)
22723   version_type=osf
22724   need_lib_prefix=no
22725   need_version=no
22726   soname_spec='${libname}${release}${shared_ext}$major'
22727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728   shlibpath_var=LD_LIBRARY_PATH
22729   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22730   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22731   ;;
22732
22733 sco3.2v5*)
22734   version_type=osf
22735   soname_spec='${libname}${release}${shared_ext}$major'
22736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737   shlibpath_var=LD_LIBRARY_PATH
22738   ;;
22739
22740 solaris*)
22741   version_type=linux
22742   need_lib_prefix=no
22743   need_version=no
22744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22745   soname_spec='${libname}${release}${shared_ext}$major'
22746   shlibpath_var=LD_LIBRARY_PATH
22747   shlibpath_overrides_runpath=yes
22748   hardcode_into_libs=yes
22749   # ldd complains unless libraries are executable
22750   postinstall_cmds='chmod +x $lib'
22751   ;;
22752
22753 sunos4*)
22754   version_type=sunos
22755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22756   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22757   shlibpath_var=LD_LIBRARY_PATH
22758   shlibpath_overrides_runpath=yes
22759   if test "$with_gnu_ld" = yes; then
22760     need_lib_prefix=no
22761   fi
22762   need_version=yes
22763   ;;
22764
22765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22766   version_type=linux
22767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22768   soname_spec='${libname}${release}${shared_ext}$major'
22769   shlibpath_var=LD_LIBRARY_PATH
22770   case $host_vendor in
22771     sni)
22772       shlibpath_overrides_runpath=no
22773       need_lib_prefix=no
22774       export_dynamic_flag_spec='${wl}-Blargedynsym'
22775       runpath_var=LD_RUN_PATH
22776       ;;
22777     siemens)
22778       need_lib_prefix=no
22779       ;;
22780     motorola)
22781       need_lib_prefix=no
22782       need_version=no
22783       shlibpath_overrides_runpath=no
22784       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22785       ;;
22786   esac
22787   ;;
22788
22789 sysv4*MP*)
22790   if test -d /usr/nec ;then
22791     version_type=linux
22792     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22793     soname_spec='$libname${shared_ext}.$major'
22794     shlibpath_var=LD_LIBRARY_PATH
22795   fi
22796   ;;
22797
22798 uts4*)
22799   version_type=linux
22800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22801   soname_spec='${libname}${release}${shared_ext}$major'
22802   shlibpath_var=LD_LIBRARY_PATH
22803   ;;
22804
22805 *)
22806   dynamic_linker=no
22807   ;;
22808 esac
22809 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22810 echo "${ECHO_T}$dynamic_linker" >&6
22811 test "$dynamic_linker" = no && can_build_shared=no
22812
22813 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22815 hardcode_action_GCJ=
22816 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22817    test -n "$runpath_var_GCJ" || \
22818    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22819
22820   # We can hardcode non-existant directories.
22821   if test "$hardcode_direct_GCJ" != no &&
22822      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22823      # have to relink, otherwise we might link with an installed library
22824      # when we should be linking with a yet-to-be-installed one
22825      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22826      test "$hardcode_minus_L_GCJ" != no; then
22827     # Linking always hardcodes the temporary library directory.
22828     hardcode_action_GCJ=relink
22829   else
22830     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22831     hardcode_action_GCJ=immediate
22832   fi
22833 else
22834   # We cannot hardcode anything, or else we can only hardcode existing
22835   # directories.
22836   hardcode_action_GCJ=unsupported
22837 fi
22838 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22839 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22840
22841 if test "$hardcode_action_GCJ" = relink; then
22842   # Fast installation is not supported
22843   enable_fast_install=no
22844 elif test "$shlibpath_overrides_runpath" = yes ||
22845      test "$enable_shared" = no; then
22846   # Fast installation is not necessary
22847   enable_fast_install=needless
22848 fi
22849
22850 striplib=
22851 old_striplib=
22852 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22853 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22854 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22855   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22856   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22857   echo "$as_me:$LINENO: result: yes" >&5
22858 echo "${ECHO_T}yes" >&6
22859 else
22860 # FIXME - insert some real tests, host_os isn't really good enough
22861   case $host_os in
22862    darwin*)
22863        if test -n "$STRIP" ; then
22864          striplib="$STRIP -x"
22865          echo "$as_me:$LINENO: result: yes" >&5
22866 echo "${ECHO_T}yes" >&6
22867        else
22868   echo "$as_me:$LINENO: result: no" >&5
22869 echo "${ECHO_T}no" >&6
22870 fi
22871        ;;
22872    *)
22873   echo "$as_me:$LINENO: result: no" >&5
22874 echo "${ECHO_T}no" >&6
22875     ;;
22876   esac
22877 fi
22878
22879 if test "x$enable_dlopen" != xyes; then
22880   enable_dlopen=unknown
22881   enable_dlopen_self=unknown
22882   enable_dlopen_self_static=unknown
22883 else
22884   lt_cv_dlopen=no
22885   lt_cv_dlopen_libs=
22886
22887   case $host_os in
22888   beos*)
22889     lt_cv_dlopen="load_add_on"
22890     lt_cv_dlopen_libs=
22891     lt_cv_dlopen_self=yes
22892     ;;
22893
22894   mingw* | pw32*)
22895     lt_cv_dlopen="LoadLibrary"
22896     lt_cv_dlopen_libs=
22897    ;;
22898
22899   cygwin*)
22900     lt_cv_dlopen="dlopen"
22901     lt_cv_dlopen_libs=
22902    ;;
22903
22904   darwin*)
22905   # if libdl is installed we need to link against it
22906     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22907 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22909   echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911   ac_check_lib_save_LIBS=$LIBS
22912 LIBS="-ldl  $LIBS"
22913 cat >conftest.$ac_ext <<_ACEOF
22914 /* confdefs.h.  */
22915 _ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h.  */
22919
22920 /* Override any gcc2 internal prototype to avoid an error.  */
22921 #ifdef __cplusplus
22922 extern "C"
22923 #endif
22924 /* We use char because int might match the return type of a gcc2
22925    builtin and then its argument prototype would still apply.  */
22926 char dlopen ();
22927 int
22928 main ()
22929 {
22930 dlopen ();
22931   ;
22932   return 0;
22933 }
22934 _ACEOF
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22937   (eval $ac_link) 2>conftest.er1
22938   ac_status=$?
22939   grep -v '^ *+' conftest.er1 >conftest.err
22940   rm -f conftest.er1
22941   cat conftest.err >&5
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); } &&
22944          { ac_try='test -z "$ac_c_werror_flag"
22945                          || test ! -s conftest.err'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; } &&
22951          { ac_try='test -s conftest$ac_exeext'
22952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953   (eval $ac_try) 2>&5
22954   ac_status=$?
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); }; }; then
22957   ac_cv_lib_dl_dlopen=yes
22958 else
22959   echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22961
22962 ac_cv_lib_dl_dlopen=no
22963 fi
22964 rm -f conftest.err conftest.$ac_objext \
22965       conftest$ac_exeext conftest.$ac_ext
22966 LIBS=$ac_check_lib_save_LIBS
22967 fi
22968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22970 if test $ac_cv_lib_dl_dlopen = yes; then
22971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22972 else
22973
22974     lt_cv_dlopen="dyld"
22975     lt_cv_dlopen_libs=
22976     lt_cv_dlopen_self=yes
22977
22978 fi
22979
22980    ;;
22981
22982   *)
22983     echo "$as_me:$LINENO: checking for shl_load" >&5
22984 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22985 if test "${ac_cv_func_shl_load+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22996 #define shl_load innocuous_shl_load
22997
22998 /* System header to define __stub macros and hopefully few prototypes,
22999     which can conflict with char shl_load (); below.
23000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23001     <limits.h> exists even on freestanding compilers.  */
23002
23003 #ifdef __STDC__
23004 # include <limits.h>
23005 #else
23006 # include <assert.h>
23007 #endif
23008
23009 #undef shl_load
23010
23011 /* Override any gcc2 internal prototype to avoid an error.  */
23012 #ifdef __cplusplus
23013 extern "C"
23014 {
23015 #endif
23016 /* We use char because int might match the return type of a gcc2
23017    builtin and then its argument prototype would still apply.  */
23018 char shl_load ();
23019 /* The GNU C library defines this for functions which it implements
23020     to always fail with ENOSYS.  Some functions are actually named
23021     something starting with __ and the normal name is an alias.  */
23022 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23023 choke me
23024 #else
23025 char (*f) () = shl_load;
23026 #endif
23027 #ifdef __cplusplus
23028 }
23029 #endif
23030
23031 int
23032 main ()
23033 {
23034 return f != shl_load;
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041   (eval $ac_link) 2>conftest.er1
23042   ac_status=$?
23043   grep -v '^ *+' conftest.er1 >conftest.err
23044   rm -f conftest.er1
23045   cat conftest.err >&5
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); } &&
23048          { ac_try='test -z "$ac_c_werror_flag"
23049                          || test ! -s conftest.err'
23050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051   (eval $ac_try) 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; } &&
23055          { ac_try='test -s conftest$ac_exeext'
23056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057   (eval $ac_try) 2>&5
23058   ac_status=$?
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); }; }; then
23061   ac_cv_func_shl_load=yes
23062 else
23063   echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066 ac_cv_func_shl_load=no
23067 fi
23068 rm -f conftest.err conftest.$ac_objext \
23069       conftest$ac_exeext conftest.$ac_ext
23070 fi
23071 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23072 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23073 if test $ac_cv_func_shl_load = yes; then
23074   lt_cv_dlopen="shl_load"
23075 else
23076   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23077 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23078 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23079   echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081   ac_check_lib_save_LIBS=$LIBS
23082 LIBS="-ldld  $LIBS"
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089
23090 /* Override any gcc2 internal prototype to avoid an error.  */
23091 #ifdef __cplusplus
23092 extern "C"
23093 #endif
23094 /* We use char because int might match the return type of a gcc2
23095    builtin and then its argument prototype would still apply.  */
23096 char shl_load ();
23097 int
23098 main ()
23099 {
23100 shl_load ();
23101   ;
23102   return 0;
23103 }
23104 _ACEOF
23105 rm -f conftest.$ac_objext conftest$ac_exeext
23106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23107   (eval $ac_link) 2>conftest.er1
23108   ac_status=$?
23109   grep -v '^ *+' conftest.er1 >conftest.err
23110   rm -f conftest.er1
23111   cat conftest.err >&5
23112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); } &&
23114          { ac_try='test -z "$ac_c_werror_flag"
23115                          || test ! -s conftest.err'
23116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117   (eval $ac_try) 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); }; } &&
23121          { ac_try='test -s conftest$ac_exeext'
23122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123   (eval $ac_try) 2>&5
23124   ac_status=$?
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); }; }; then
23127   ac_cv_lib_dld_shl_load=yes
23128 else
23129   echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23131
23132 ac_cv_lib_dld_shl_load=no
23133 fi
23134 rm -f conftest.err conftest.$ac_objext \
23135       conftest$ac_exeext conftest.$ac_ext
23136 LIBS=$ac_check_lib_save_LIBS
23137 fi
23138 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23139 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23140 if test $ac_cv_lib_dld_shl_load = yes; then
23141   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23142 else
23143   echo "$as_me:$LINENO: checking for dlopen" >&5
23144 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23145 if test "${ac_cv_func_dlopen+set}" = set; then
23146   echo $ECHO_N "(cached) $ECHO_C" >&6
23147 else
23148   cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h.  */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h.  */
23154 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23156 #define dlopen innocuous_dlopen
23157
23158 /* System header to define __stub macros and hopefully few prototypes,
23159     which can conflict with char dlopen (); below.
23160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23161     <limits.h> exists even on freestanding compilers.  */
23162
23163 #ifdef __STDC__
23164 # include <limits.h>
23165 #else
23166 # include <assert.h>
23167 #endif
23168
23169 #undef dlopen
23170
23171 /* Override any gcc2 internal prototype to avoid an error.  */
23172 #ifdef __cplusplus
23173 extern "C"
23174 {
23175 #endif
23176 /* We use char because int might match the return type of a gcc2
23177    builtin and then its argument prototype would still apply.  */
23178 char dlopen ();
23179 /* The GNU C library defines this for functions which it implements
23180     to always fail with ENOSYS.  Some functions are actually named
23181     something starting with __ and the normal name is an alias.  */
23182 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23183 choke me
23184 #else
23185 char (*f) () = dlopen;
23186 #endif
23187 #ifdef __cplusplus
23188 }
23189 #endif
23190
23191 int
23192 main ()
23193 {
23194 return f != dlopen;
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23201   (eval $ac_link) 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } &&
23208          { ac_try='test -z "$ac_c_werror_flag"
23209                          || test ! -s conftest.err'
23210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211   (eval $ac_try) 2>&5
23212   ac_status=$?
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); }; } &&
23215          { ac_try='test -s conftest$ac_exeext'
23216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217   (eval $ac_try) 2>&5
23218   ac_status=$?
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); }; }; then
23221   ac_cv_func_dlopen=yes
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 ac_cv_func_dlopen=no
23227 fi
23228 rm -f conftest.err conftest.$ac_objext \
23229       conftest$ac_exeext conftest.$ac_ext
23230 fi
23231 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23232 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23233 if test $ac_cv_func_dlopen = yes; then
23234   lt_cv_dlopen="dlopen"
23235 else
23236   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23239   echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241   ac_check_lib_save_LIBS=$LIBS
23242 LIBS="-ldl  $LIBS"
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249
23250 /* Override any gcc2 internal prototype to avoid an error.  */
23251 #ifdef __cplusplus
23252 extern "C"
23253 #endif
23254 /* We use char because int might match the return type of a gcc2
23255    builtin and then its argument prototype would still apply.  */
23256 char dlopen ();
23257 int
23258 main ()
23259 {
23260 dlopen ();
23261   ;
23262   return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267   (eval $ac_link) 2>conftest.er1
23268   ac_status=$?
23269   grep -v '^ *+' conftest.er1 >conftest.err
23270   rm -f conftest.er1
23271   cat conftest.err >&5
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } &&
23274          { ac_try='test -z "$ac_c_werror_flag"
23275                          || test ! -s conftest.err'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; } &&
23281          { ac_try='test -s conftest$ac_exeext'
23282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283   (eval $ac_try) 2>&5
23284   ac_status=$?
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); }; }; then
23287   ac_cv_lib_dl_dlopen=yes
23288 else
23289   echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 ac_cv_lib_dl_dlopen=no
23293 fi
23294 rm -f conftest.err conftest.$ac_objext \
23295       conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23297 fi
23298 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23299 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23300 if test $ac_cv_lib_dl_dlopen = yes; then
23301   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23302 else
23303   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23304 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23305 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23306   echo $ECHO_N "(cached) $ECHO_C" >&6
23307 else
23308   ac_check_lib_save_LIBS=$LIBS
23309 LIBS="-lsvld  $LIBS"
23310 cat >conftest.$ac_ext <<_ACEOF
23311 /* confdefs.h.  */
23312 _ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h.  */
23316
23317 /* Override any gcc2 internal prototype to avoid an error.  */
23318 #ifdef __cplusplus
23319 extern "C"
23320 #endif
23321 /* We use char because int might match the return type of a gcc2
23322    builtin and then its argument prototype would still apply.  */
23323 char dlopen ();
23324 int
23325 main ()
23326 {
23327 dlopen ();
23328   ;
23329   return 0;
23330 }
23331 _ACEOF
23332 rm -f conftest.$ac_objext conftest$ac_exeext
23333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23334   (eval $ac_link) 2>conftest.er1
23335   ac_status=$?
23336   grep -v '^ *+' conftest.er1 >conftest.err
23337   rm -f conftest.er1
23338   cat conftest.err >&5
23339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340   (exit $ac_status); } &&
23341          { ac_try='test -z "$ac_c_werror_flag"
23342                          || test ! -s conftest.err'
23343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344   (eval $ac_try) 2>&5
23345   ac_status=$?
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); }; } &&
23348          { ac_try='test -s conftest$ac_exeext'
23349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350   (eval $ac_try) 2>&5
23351   ac_status=$?
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); }; }; then
23354   ac_cv_lib_svld_dlopen=yes
23355 else
23356   echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359 ac_cv_lib_svld_dlopen=no
23360 fi
23361 rm -f conftest.err conftest.$ac_objext \
23362       conftest$ac_exeext conftest.$ac_ext
23363 LIBS=$ac_check_lib_save_LIBS
23364 fi
23365 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23366 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23367 if test $ac_cv_lib_svld_dlopen = yes; then
23368   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23369 else
23370   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23371 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23372 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23373   echo $ECHO_N "(cached) $ECHO_C" >&6
23374 else
23375   ac_check_lib_save_LIBS=$LIBS
23376 LIBS="-ldld  $LIBS"
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383
23384 /* Override any gcc2 internal prototype to avoid an error.  */
23385 #ifdef __cplusplus
23386 extern "C"
23387 #endif
23388 /* We use char because int might match the return type of a gcc2
23389    builtin and then its argument prototype would still apply.  */
23390 char dld_link ();
23391 int
23392 main ()
23393 {
23394 dld_link ();
23395   ;
23396   return 0;
23397 }
23398 _ACEOF
23399 rm -f conftest.$ac_objext conftest$ac_exeext
23400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23401   (eval $ac_link) 2>conftest.er1
23402   ac_status=$?
23403   grep -v '^ *+' conftest.er1 >conftest.err
23404   rm -f conftest.er1
23405   cat conftest.err >&5
23406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407   (exit $ac_status); } &&
23408          { ac_try='test -z "$ac_c_werror_flag"
23409                          || test ! -s conftest.err'
23410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411   (eval $ac_try) 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; } &&
23415          { ac_try='test -s conftest$ac_exeext'
23416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417   (eval $ac_try) 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); }; }; then
23421   ac_cv_lib_dld_dld_link=yes
23422 else
23423   echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23425
23426 ac_cv_lib_dld_dld_link=no
23427 fi
23428 rm -f conftest.err conftest.$ac_objext \
23429       conftest$ac_exeext conftest.$ac_ext
23430 LIBS=$ac_check_lib_save_LIBS
23431 fi
23432 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23433 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23434 if test $ac_cv_lib_dld_dld_link = yes; then
23435   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23436 fi
23437
23438
23439 fi
23440
23441
23442 fi
23443
23444
23445 fi
23446
23447
23448 fi
23449
23450
23451 fi
23452
23453     ;;
23454   esac
23455
23456   if test "x$lt_cv_dlopen" != xno; then
23457     enable_dlopen=yes
23458   else
23459     enable_dlopen=no
23460   fi
23461
23462   case $lt_cv_dlopen in
23463   dlopen)
23464     save_CPPFLAGS="$CPPFLAGS"
23465     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23466
23467     save_LDFLAGS="$LDFLAGS"
23468     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23469
23470     save_LIBS="$LIBS"
23471     LIBS="$lt_cv_dlopen_libs $LIBS"
23472
23473     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23474 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23475 if test "${lt_cv_dlopen_self+set}" = set; then
23476   echo $ECHO_N "(cached) $ECHO_C" >&6
23477 else
23478           if test "$cross_compiling" = yes; then :
23479   lt_cv_dlopen_self=cross
23480 else
23481   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23482   lt_status=$lt_dlunknown
23483   cat > conftest.$ac_ext <<EOF
23484 #line 23483 "configure"
23485 #include "confdefs.h"
23486
23487 #if HAVE_DLFCN_H
23488 #include <dlfcn.h>
23489 #endif
23490
23491 #include <stdio.h>
23492
23493 #ifdef RTLD_GLOBAL
23494 #  define LT_DLGLOBAL           RTLD_GLOBAL
23495 #else
23496 #  ifdef DL_GLOBAL
23497 #    define LT_DLGLOBAL         DL_GLOBAL
23498 #  else
23499 #    define LT_DLGLOBAL         0
23500 #  endif
23501 #endif
23502
23503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23504    find out it does not work in some platform. */
23505 #ifndef LT_DLLAZY_OR_NOW
23506 #  ifdef RTLD_LAZY
23507 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23508 #  else
23509 #    ifdef DL_LAZY
23510 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23511 #    else
23512 #      ifdef RTLD_NOW
23513 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23514 #      else
23515 #        ifdef DL_NOW
23516 #          define LT_DLLAZY_OR_NOW      DL_NOW
23517 #        else
23518 #          define LT_DLLAZY_OR_NOW      0
23519 #        endif
23520 #      endif
23521 #    endif
23522 #  endif
23523 #endif
23524
23525 #ifdef __cplusplus
23526 extern "C" void exit (int);
23527 #endif
23528
23529 void fnord() { int i=42;}
23530 int main ()
23531 {
23532   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23533   int status = $lt_dlunknown;
23534
23535   if (self)
23536     {
23537       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23538       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23539       /* dlclose (self); */
23540     }
23541
23542     exit (status);
23543 }
23544 EOF
23545   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546   (eval $ac_link) 2>&5
23547   ac_status=$?
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23550     (./conftest; exit; ) 2>/dev/null
23551     lt_status=$?
23552     case x$lt_status in
23553       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23554       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23555       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23556     esac
23557   else :
23558     # compilation failed
23559     lt_cv_dlopen_self=no
23560   fi
23561 fi
23562 rm -fr conftest*
23563
23564
23565 fi
23566 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23567 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23568
23569     if test "x$lt_cv_dlopen_self" = xyes; then
23570       LDFLAGS="$LDFLAGS $link_static_flag"
23571       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23572 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23573 if test "${lt_cv_dlopen_self_static+set}" = set; then
23574   echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576           if test "$cross_compiling" = yes; then :
23577   lt_cv_dlopen_self_static=cross
23578 else
23579   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23580   lt_status=$lt_dlunknown
23581   cat > conftest.$ac_ext <<EOF
23582 #line 23581 "configure"
23583 #include "confdefs.h"
23584
23585 #if HAVE_DLFCN_H
23586 #include <dlfcn.h>
23587 #endif
23588
23589 #include <stdio.h>
23590
23591 #ifdef RTLD_GLOBAL
23592 #  define LT_DLGLOBAL           RTLD_GLOBAL
23593 #else
23594 #  ifdef DL_GLOBAL
23595 #    define LT_DLGLOBAL         DL_GLOBAL
23596 #  else
23597 #    define LT_DLGLOBAL         0
23598 #  endif
23599 #endif
23600
23601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23602    find out it does not work in some platform. */
23603 #ifndef LT_DLLAZY_OR_NOW
23604 #  ifdef RTLD_LAZY
23605 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23606 #  else
23607 #    ifdef DL_LAZY
23608 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23609 #    else
23610 #      ifdef RTLD_NOW
23611 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23612 #      else
23613 #        ifdef DL_NOW
23614 #          define LT_DLLAZY_OR_NOW      DL_NOW
23615 #        else
23616 #          define LT_DLLAZY_OR_NOW      0
23617 #        endif
23618 #      endif
23619 #    endif
23620 #  endif
23621 #endif
23622
23623 #ifdef __cplusplus
23624 extern "C" void exit (int);
23625 #endif
23626
23627 void fnord() { int i=42;}
23628 int main ()
23629 {
23630   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23631   int status = $lt_dlunknown;
23632
23633   if (self)
23634     {
23635       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23636       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23637       /* dlclose (self); */
23638     }
23639
23640     exit (status);
23641 }
23642 EOF
23643   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644   (eval $ac_link) 2>&5
23645   ac_status=$?
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23648     (./conftest; exit; ) 2>/dev/null
23649     lt_status=$?
23650     case x$lt_status in
23651       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23652       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23653       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23654     esac
23655   else :
23656     # compilation failed
23657     lt_cv_dlopen_self_static=no
23658   fi
23659 fi
23660 rm -fr conftest*
23661
23662
23663 fi
23664 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23665 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23666     fi
23667
23668     CPPFLAGS="$save_CPPFLAGS"
23669     LDFLAGS="$save_LDFLAGS"
23670     LIBS="$save_LIBS"
23671     ;;
23672   esac
23673
23674   case $lt_cv_dlopen_self in
23675   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23676   *) enable_dlopen_self=unknown ;;
23677   esac
23678
23679   case $lt_cv_dlopen_self_static in
23680   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23681   *) enable_dlopen_self_static=unknown ;;
23682   esac
23683 fi
23684
23685
23686 # The else clause should only fire when bootstrapping the
23687 # libtool distribution, otherwise you forgot to ship ltmain.sh
23688 # with your package, and you will get complaints that there are
23689 # no rules to generate ltmain.sh.
23690 if test -f "$ltmain"; then
23691   # See if we are running on zsh, and set the options which allow our commands through
23692   # without removal of \ escapes.
23693   if test -n "${ZSH_VERSION+set}" ; then
23694     setopt NO_GLOB_SUBST
23695   fi
23696   # Now quote all the things that may contain metacharacters while being
23697   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23698   # variables and quote the copies for generation of the libtool script.
23699   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23700     SED SHELL STRIP \
23701     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23702     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23703     deplibs_check_method reload_flag reload_cmds need_locks \
23704     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23705     lt_cv_sys_global_symbol_to_c_name_address \
23706     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23707     old_postinstall_cmds old_postuninstall_cmds \
23708     compiler_GCJ \
23709     CC_GCJ \
23710     LD_GCJ \
23711     lt_prog_compiler_wl_GCJ \
23712     lt_prog_compiler_pic_GCJ \
23713     lt_prog_compiler_static_GCJ \
23714     lt_prog_compiler_no_builtin_flag_GCJ \
23715     export_dynamic_flag_spec_GCJ \
23716     thread_safe_flag_spec_GCJ \
23717     whole_archive_flag_spec_GCJ \
23718     enable_shared_with_static_runtimes_GCJ \
23719     old_archive_cmds_GCJ \
23720     old_archive_from_new_cmds_GCJ \
23721     predep_objects_GCJ \
23722     postdep_objects_GCJ \
23723     predeps_GCJ \
23724     postdeps_GCJ \
23725     compiler_lib_search_path_GCJ \
23726     archive_cmds_GCJ \
23727     archive_expsym_cmds_GCJ \
23728     postinstall_cmds_GCJ \
23729     postuninstall_cmds_GCJ \
23730     old_archive_from_expsyms_cmds_GCJ \
23731     allow_undefined_flag_GCJ \
23732     no_undefined_flag_GCJ \
23733     export_symbols_cmds_GCJ \
23734     hardcode_libdir_flag_spec_GCJ \
23735     hardcode_libdir_flag_spec_ld_GCJ \
23736     hardcode_libdir_separator_GCJ \
23737     hardcode_automatic_GCJ \
23738     module_cmds_GCJ \
23739     module_expsym_cmds_GCJ \
23740     lt_cv_prog_compiler_c_o_GCJ \
23741     exclude_expsyms_GCJ \
23742     include_expsyms_GCJ; do
23743
23744     case $var in
23745     old_archive_cmds_GCJ | \
23746     old_archive_from_new_cmds_GCJ | \
23747     archive_cmds_GCJ | \
23748     archive_expsym_cmds_GCJ | \
23749     module_cmds_GCJ | \
23750     module_expsym_cmds_GCJ | \
23751     old_archive_from_expsyms_cmds_GCJ | \
23752     export_symbols_cmds_GCJ | \
23753     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23754     postinstall_cmds | postuninstall_cmds | \
23755     old_postinstall_cmds | old_postuninstall_cmds | \
23756     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23757       # Double-quote double-evaled strings.
23758       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23759       ;;
23760     *)
23761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23762       ;;
23763     esac
23764   done
23765
23766   case $lt_echo in
23767   *'\$0 --fallback-echo"')
23768     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23769     ;;
23770   esac
23771
23772 cfgfile="$ofile"
23773
23774   cat <<__EOF__ >> "$cfgfile"
23775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23776
23777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23778
23779 # Shell to use when invoking shell scripts.
23780 SHELL=$lt_SHELL
23781
23782 # Whether or not to build shared libraries.
23783 build_libtool_libs=$enable_shared
23784
23785 # Whether or not to build static libraries.
23786 build_old_libs=$enable_static
23787
23788 # Whether or not to add -lc for building shared libraries.
23789 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23790
23791 # Whether or not to disallow shared libs when runtime libs are static
23792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23793
23794 # Whether or not to optimize for fast installation.
23795 fast_install=$enable_fast_install
23796
23797 # The host system.
23798 host_alias=$host_alias
23799 host=$host
23800
23801 # An echo program that does not interpret backslashes.
23802 echo=$lt_echo
23803
23804 # The archiver.
23805 AR=$lt_AR
23806 AR_FLAGS=$lt_AR_FLAGS
23807
23808 # A C compiler.
23809 LTCC=$lt_LTCC
23810
23811 # A language-specific compiler.
23812 CC=$lt_compiler_GCJ
23813
23814 # Is the compiler the GNU C compiler?
23815 with_gcc=$GCC_GCJ
23816
23817 # An ERE matcher.
23818 EGREP=$lt_EGREP
23819
23820 # The linker used to build libraries.
23821 LD=$lt_LD_GCJ
23822
23823 # Whether we need hard or soft links.
23824 LN_S=$lt_LN_S
23825
23826 # A BSD-compatible nm program.
23827 NM=$lt_NM
23828
23829 # A symbol stripping program
23830 STRIP=$lt_STRIP
23831
23832 # Used to examine libraries when file_magic_cmd begins "file"
23833 MAGIC_CMD=$MAGIC_CMD
23834
23835 # Used on cygwin: DLL creation program.
23836 DLLTOOL="$DLLTOOL"
23837
23838 # Used on cygwin: object dumper.
23839 OBJDUMP="$OBJDUMP"
23840
23841 # Used on cygwin: assembler.
23842 AS="$AS"
23843
23844 # The name of the directory that contains temporary libtool files.
23845 objdir=$objdir
23846
23847 # How to create reloadable object files.
23848 reload_flag=$lt_reload_flag
23849 reload_cmds=$lt_reload_cmds
23850
23851 # How to pass a linker flag through the compiler.
23852 wl=$lt_lt_prog_compiler_wl_GCJ
23853
23854 # Object file suffix (normally "o").
23855 objext="$ac_objext"
23856
23857 # Old archive suffix (normally "a").
23858 libext="$libext"
23859
23860 # Shared library suffix (normally ".so").
23861 shrext_cmds='$shrext_cmds'
23862
23863 # Executable file suffix (normally "").
23864 exeext="$exeext"
23865
23866 # Additional compiler flags for building library objects.
23867 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23868 pic_mode=$pic_mode
23869
23870 # What is the maximum length of a command?
23871 max_cmd_len=$lt_cv_sys_max_cmd_len
23872
23873 # Does compiler simultaneously support -c and -o options?
23874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23875
23876 # Must we lock files when doing compilation ?
23877 need_locks=$lt_need_locks
23878
23879 # Do we need the lib prefix for modules?
23880 need_lib_prefix=$need_lib_prefix
23881
23882 # Do we need a version for libraries?
23883 need_version=$need_version
23884
23885 # Whether dlopen is supported.
23886 dlopen_support=$enable_dlopen
23887
23888 # Whether dlopen of programs is supported.
23889 dlopen_self=$enable_dlopen_self
23890
23891 # Whether dlopen of statically linked programs is supported.
23892 dlopen_self_static=$enable_dlopen_self_static
23893
23894 # Compiler flag to prevent dynamic linking.
23895 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23896
23897 # Compiler flag to turn off builtin functions.
23898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23899
23900 # Compiler flag to allow reflexive dlopens.
23901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23902
23903 # Compiler flag to generate shared objects directly from archives.
23904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23905
23906 # Compiler flag to generate thread-safe objects.
23907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23908
23909 # Library versioning type.
23910 version_type=$version_type
23911
23912 # Format of library name prefix.
23913 libname_spec=$lt_libname_spec
23914
23915 # List of archive names.  First name is the real one, the rest are links.
23916 # The last name is the one that the linker finds with -lNAME.
23917 library_names_spec=$lt_library_names_spec
23918
23919 # The coded name of the library, if different from the real name.
23920 soname_spec=$lt_soname_spec
23921
23922 # Commands used to build and install an old-style archive.
23923 RANLIB=$lt_RANLIB
23924 old_archive_cmds=$lt_old_archive_cmds_GCJ
23925 old_postinstall_cmds=$lt_old_postinstall_cmds
23926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23927
23928 # Create an old-style archive from a shared archive.
23929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23930
23931 # Create a temporary old-style archive to link instead of a shared archive.
23932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23933
23934 # Commands used to build and install a shared archive.
23935 archive_cmds=$lt_archive_cmds_GCJ
23936 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23937 postinstall_cmds=$lt_postinstall_cmds
23938 postuninstall_cmds=$lt_postuninstall_cmds
23939
23940 # Commands used to build a loadable module (assumed same as above if empty)
23941 module_cmds=$lt_module_cmds_GCJ
23942 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23943
23944 # Commands to strip libraries.
23945 old_striplib=$lt_old_striplib
23946 striplib=$lt_striplib
23947
23948 # Dependencies to place before the objects being linked to create a
23949 # shared library.
23950 predep_objects=$lt_predep_objects_GCJ
23951
23952 # Dependencies to place after the objects being linked to create a
23953 # shared library.
23954 postdep_objects=$lt_postdep_objects_GCJ
23955
23956 # Dependencies to place before the objects being linked to create a
23957 # shared library.
23958 predeps=$lt_predeps_GCJ
23959
23960 # Dependencies to place after the objects being linked to create a
23961 # shared library.
23962 postdeps=$lt_postdeps_GCJ
23963
23964 # The library search path used internally by the compiler when linking
23965 # a shared library.
23966 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23967
23968 # Method to check whether dependent libraries are shared objects.
23969 deplibs_check_method=$lt_deplibs_check_method
23970
23971 # Command to use when deplibs_check_method == file_magic.
23972 file_magic_cmd=$lt_file_magic_cmd
23973
23974 # Flag that allows shared libraries with undefined symbols to be built.
23975 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23976
23977 # Flag that forces no undefined symbols.
23978 no_undefined_flag=$lt_no_undefined_flag_GCJ
23979
23980 # Commands used to finish a libtool library installation in a directory.
23981 finish_cmds=$lt_finish_cmds
23982
23983 # Same as above, but a single script fragment to be evaled but not shown.
23984 finish_eval=$lt_finish_eval
23985
23986 # Take the output of nm and produce a listing of raw symbols and C names.
23987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23988
23989 # Transform the output of nm in a proper C declaration
23990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23991
23992 # Transform the output of nm in a C name address pair
23993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23994
23995 # This is the shared library runtime path variable.
23996 runpath_var=$runpath_var
23997
23998 # This is the shared library path variable.
23999 shlibpath_var=$shlibpath_var
24000
24001 # Is shlibpath searched before the hard-coded library search path?
24002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24003
24004 # How to hardcode a shared library path into an executable.
24005 hardcode_action=$hardcode_action_GCJ
24006
24007 # Whether we should hardcode library paths into libraries.
24008 hardcode_into_libs=$hardcode_into_libs
24009
24010 # Flag to hardcode \$libdir into a binary during linking.
24011 # This must work even if \$libdir does not exist.
24012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24013
24014 # If ld is used when linking, flag to hardcode \$libdir into
24015 # a binary during linking. This must work even if \$libdir does
24016 # not exist.
24017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24018
24019 # Whether we need a single -rpath flag with a separated argument.
24020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24021
24022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24023 # resulting binary.
24024 hardcode_direct=$hardcode_direct_GCJ
24025
24026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24027 # resulting binary.
24028 hardcode_minus_L=$hardcode_minus_L_GCJ
24029
24030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24031 # the resulting binary.
24032 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24033
24034 # Set to yes if building a shared library automatically hardcodes DIR into the library
24035 # and all subsequent libraries and executables linked against it.
24036 hardcode_automatic=$hardcode_automatic_GCJ
24037
24038 # Variables whose values should be saved in libtool wrapper scripts and
24039 # restored at relink time.
24040 variables_saved_for_relink="$variables_saved_for_relink"
24041
24042 # Whether libtool must link a program against all its dependency libraries.
24043 link_all_deplibs=$link_all_deplibs_GCJ
24044
24045 # Compile-time system search path for libraries
24046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24047
24048 # Run-time system search path for libraries
24049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24050
24051 # Fix the shell variable \$srcfile for the compiler.
24052 fix_srcfile_path="$fix_srcfile_path_GCJ"
24053
24054 # Set to yes if exported symbols are required.
24055 always_export_symbols=$always_export_symbols_GCJ
24056
24057 # The commands to list exported symbols.
24058 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24059
24060 # The commands to extract the exported symbol list from a shared archive.
24061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24062
24063 # Symbols that should not be listed in the preloaded symbols.
24064 exclude_expsyms=$lt_exclude_expsyms_GCJ
24065
24066 # Symbols that must always be exported.
24067 include_expsyms=$lt_include_expsyms_GCJ
24068
24069 # ### END LIBTOOL TAG CONFIG: $tagname
24070
24071 __EOF__
24072
24073
24074 else
24075   # If there is no Makefile yet, we rely on a make rule to execute
24076   # `config.status --recheck' to rerun these tests and create the
24077   # libtool script then.
24078   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24079   if test -f "$ltmain_in"; then
24080     test -f Makefile && make "$ltmain"
24081   fi
24082 fi
24083
24084
24085 ac_ext=c
24086 ac_cpp='$CPP $CPPFLAGS'
24087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24090
24091 CC="$lt_save_CC"
24092
24093         else
24094           tagname=""
24095         fi
24096         ;;
24097
24098       RC)
24099         ac_ext=c
24100 ac_cpp='$CPP $CPPFLAGS'
24101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24104
24105
24106 # Source file extension for RC test sources.
24107 ac_ext=rc
24108
24109 # Object file extension for compiled RC test sources.
24110 objext=o
24111 objext_RC=$objext
24112
24113 # Code to be used in simple compile tests
24114 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24115
24116 # Code to be used in simple link tests
24117 lt_simple_link_test_code="$lt_simple_compile_test_code"
24118
24119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24120
24121 # If no C compiler was specified, use CC.
24122 LTCC=${LTCC-"$CC"}
24123
24124 # Allow CC to be a program name with arguments.
24125 compiler=$CC
24126
24127
24128 # Allow CC to be a program name with arguments.
24129 lt_save_CC="$CC"
24130 CC=${RC-"windres"}
24131 compiler=$CC
24132 compiler_RC=$CC
24133 lt_cv_prog_compiler_c_o_RC=yes
24134
24135 # The else clause should only fire when bootstrapping the
24136 # libtool distribution, otherwise you forgot to ship ltmain.sh
24137 # with your package, and you will get complaints that there are
24138 # no rules to generate ltmain.sh.
24139 if test -f "$ltmain"; then
24140   # See if we are running on zsh, and set the options which allow our commands through
24141   # without removal of \ escapes.
24142   if test -n "${ZSH_VERSION+set}" ; then
24143     setopt NO_GLOB_SUBST
24144   fi
24145   # Now quote all the things that may contain metacharacters while being
24146   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24147   # variables and quote the copies for generation of the libtool script.
24148   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24149     SED SHELL STRIP \
24150     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24151     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24152     deplibs_check_method reload_flag reload_cmds need_locks \
24153     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24154     lt_cv_sys_global_symbol_to_c_name_address \
24155     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24156     old_postinstall_cmds old_postuninstall_cmds \
24157     compiler_RC \
24158     CC_RC \
24159     LD_RC \
24160     lt_prog_compiler_wl_RC \
24161     lt_prog_compiler_pic_RC \
24162     lt_prog_compiler_static_RC \
24163     lt_prog_compiler_no_builtin_flag_RC \
24164     export_dynamic_flag_spec_RC \
24165     thread_safe_flag_spec_RC \
24166     whole_archive_flag_spec_RC \
24167     enable_shared_with_static_runtimes_RC \
24168     old_archive_cmds_RC \
24169     old_archive_from_new_cmds_RC \
24170     predep_objects_RC \
24171     postdep_objects_RC \
24172     predeps_RC \
24173     postdeps_RC \
24174     compiler_lib_search_path_RC \
24175     archive_cmds_RC \
24176     archive_expsym_cmds_RC \
24177     postinstall_cmds_RC \
24178     postuninstall_cmds_RC \
24179     old_archive_from_expsyms_cmds_RC \
24180     allow_undefined_flag_RC \
24181     no_undefined_flag_RC \
24182     export_symbols_cmds_RC \
24183     hardcode_libdir_flag_spec_RC \
24184     hardcode_libdir_flag_spec_ld_RC \
24185     hardcode_libdir_separator_RC \
24186     hardcode_automatic_RC \
24187     module_cmds_RC \
24188     module_expsym_cmds_RC \
24189     lt_cv_prog_compiler_c_o_RC \
24190     exclude_expsyms_RC \
24191     include_expsyms_RC; do
24192
24193     case $var in
24194     old_archive_cmds_RC | \
24195     old_archive_from_new_cmds_RC | \
24196     archive_cmds_RC | \
24197     archive_expsym_cmds_RC | \
24198     module_cmds_RC | \
24199     module_expsym_cmds_RC | \
24200     old_archive_from_expsyms_cmds_RC | \
24201     export_symbols_cmds_RC | \
24202     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24203     postinstall_cmds | postuninstall_cmds | \
24204     old_postinstall_cmds | old_postuninstall_cmds | \
24205     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24206       # Double-quote double-evaled strings.
24207       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24208       ;;
24209     *)
24210       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24211       ;;
24212     esac
24213   done
24214
24215   case $lt_echo in
24216   *'\$0 --fallback-echo"')
24217     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24218     ;;
24219   esac
24220
24221 cfgfile="$ofile"
24222
24223   cat <<__EOF__ >> "$cfgfile"
24224 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24225
24226 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24227
24228 # Shell to use when invoking shell scripts.
24229 SHELL=$lt_SHELL
24230
24231 # Whether or not to build shared libraries.
24232 build_libtool_libs=$enable_shared
24233
24234 # Whether or not to build static libraries.
24235 build_old_libs=$enable_static
24236
24237 # Whether or not to add -lc for building shared libraries.
24238 build_libtool_need_lc=$archive_cmds_need_lc_RC
24239
24240 # Whether or not to disallow shared libs when runtime libs are static
24241 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24242
24243 # Whether or not to optimize for fast installation.
24244 fast_install=$enable_fast_install
24245
24246 # The host system.
24247 host_alias=$host_alias
24248 host=$host
24249
24250 # An echo program that does not interpret backslashes.
24251 echo=$lt_echo
24252
24253 # The archiver.
24254 AR=$lt_AR
24255 AR_FLAGS=$lt_AR_FLAGS
24256
24257 # A C compiler.
24258 LTCC=$lt_LTCC
24259
24260 # A language-specific compiler.
24261 CC=$lt_compiler_RC
24262
24263 # Is the compiler the GNU C compiler?
24264 with_gcc=$GCC_RC
24265
24266 # An ERE matcher.
24267 EGREP=$lt_EGREP
24268
24269 # The linker used to build libraries.
24270 LD=$lt_LD_RC
24271
24272 # Whether we need hard or soft links.
24273 LN_S=$lt_LN_S
24274
24275 # A BSD-compatible nm program.
24276 NM=$lt_NM
24277
24278 # A symbol stripping program
24279 STRIP=$lt_STRIP
24280
24281 # Used to examine libraries when file_magic_cmd begins "file"
24282 MAGIC_CMD=$MAGIC_CMD
24283
24284 # Used on cygwin: DLL creation program.
24285 DLLTOOL="$DLLTOOL"
24286
24287 # Used on cygwin: object dumper.
24288 OBJDUMP="$OBJDUMP"
24289
24290 # Used on cygwin: assembler.
24291 AS="$AS"
24292
24293 # The name of the directory that contains temporary libtool files.
24294 objdir=$objdir
24295
24296 # How to create reloadable object files.
24297 reload_flag=$lt_reload_flag
24298 reload_cmds=$lt_reload_cmds
24299
24300 # How to pass a linker flag through the compiler.
24301 wl=$lt_lt_prog_compiler_wl_RC
24302
24303 # Object file suffix (normally "o").
24304 objext="$ac_objext"
24305
24306 # Old archive suffix (normally "a").
24307 libext="$libext"
24308
24309 # Shared library suffix (normally ".so").
24310 shrext_cmds='$shrext_cmds'
24311
24312 # Executable file suffix (normally "").
24313 exeext="$exeext"
24314
24315 # Additional compiler flags for building library objects.
24316 pic_flag=$lt_lt_prog_compiler_pic_RC
24317 pic_mode=$pic_mode
24318
24319 # What is the maximum length of a command?
24320 max_cmd_len=$lt_cv_sys_max_cmd_len
24321
24322 # Does compiler simultaneously support -c and -o options?
24323 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24324
24325 # Must we lock files when doing compilation ?
24326 need_locks=$lt_need_locks
24327
24328 # Do we need the lib prefix for modules?
24329 need_lib_prefix=$need_lib_prefix
24330
24331 # Do we need a version for libraries?
24332 need_version=$need_version
24333
24334 # Whether dlopen is supported.
24335 dlopen_support=$enable_dlopen
24336
24337 # Whether dlopen of programs is supported.
24338 dlopen_self=$enable_dlopen_self
24339
24340 # Whether dlopen of statically linked programs is supported.
24341 dlopen_self_static=$enable_dlopen_self_static
24342
24343 # Compiler flag to prevent dynamic linking.
24344 link_static_flag=$lt_lt_prog_compiler_static_RC
24345
24346 # Compiler flag to turn off builtin functions.
24347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24348
24349 # Compiler flag to allow reflexive dlopens.
24350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24351
24352 # Compiler flag to generate shared objects directly from archives.
24353 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24354
24355 # Compiler flag to generate thread-safe objects.
24356 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24357
24358 # Library versioning type.
24359 version_type=$version_type
24360
24361 # Format of library name prefix.
24362 libname_spec=$lt_libname_spec
24363
24364 # List of archive names.  First name is the real one, the rest are links.
24365 # The last name is the one that the linker finds with -lNAME.
24366 library_names_spec=$lt_library_names_spec
24367
24368 # The coded name of the library, if different from the real name.
24369 soname_spec=$lt_soname_spec
24370
24371 # Commands used to build and install an old-style archive.
24372 RANLIB=$lt_RANLIB
24373 old_archive_cmds=$lt_old_archive_cmds_RC
24374 old_postinstall_cmds=$lt_old_postinstall_cmds
24375 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24376
24377 # Create an old-style archive from a shared archive.
24378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24379
24380 # Create a temporary old-style archive to link instead of a shared archive.
24381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24382
24383 # Commands used to build and install a shared archive.
24384 archive_cmds=$lt_archive_cmds_RC
24385 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24386 postinstall_cmds=$lt_postinstall_cmds
24387 postuninstall_cmds=$lt_postuninstall_cmds
24388
24389 # Commands used to build a loadable module (assumed same as above if empty)
24390 module_cmds=$lt_module_cmds_RC
24391 module_expsym_cmds=$lt_module_expsym_cmds_RC
24392
24393 # Commands to strip libraries.
24394 old_striplib=$lt_old_striplib
24395 striplib=$lt_striplib
24396
24397 # Dependencies to place before the objects being linked to create a
24398 # shared library.
24399 predep_objects=$lt_predep_objects_RC
24400
24401 # Dependencies to place after the objects being linked to create a
24402 # shared library.
24403 postdep_objects=$lt_postdep_objects_RC
24404
24405 # Dependencies to place before the objects being linked to create a
24406 # shared library.
24407 predeps=$lt_predeps_RC
24408
24409 # Dependencies to place after the objects being linked to create a
24410 # shared library.
24411 postdeps=$lt_postdeps_RC
24412
24413 # The library search path used internally by the compiler when linking
24414 # a shared library.
24415 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24416
24417 # Method to check whether dependent libraries are shared objects.
24418 deplibs_check_method=$lt_deplibs_check_method
24419
24420 # Command to use when deplibs_check_method == file_magic.
24421 file_magic_cmd=$lt_file_magic_cmd
24422
24423 # Flag that allows shared libraries with undefined symbols to be built.
24424 allow_undefined_flag=$lt_allow_undefined_flag_RC
24425
24426 # Flag that forces no undefined symbols.
24427 no_undefined_flag=$lt_no_undefined_flag_RC
24428
24429 # Commands used to finish a libtool library installation in a directory.
24430 finish_cmds=$lt_finish_cmds
24431
24432 # Same as above, but a single script fragment to be evaled but not shown.
24433 finish_eval=$lt_finish_eval
24434
24435 # Take the output of nm and produce a listing of raw symbols and C names.
24436 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24437
24438 # Transform the output of nm in a proper C declaration
24439 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24440
24441 # Transform the output of nm in a C name address pair
24442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24443
24444 # This is the shared library runtime path variable.
24445 runpath_var=$runpath_var
24446
24447 # This is the shared library path variable.
24448 shlibpath_var=$shlibpath_var
24449
24450 # Is shlibpath searched before the hard-coded library search path?
24451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24452
24453 # How to hardcode a shared library path into an executable.
24454 hardcode_action=$hardcode_action_RC
24455
24456 # Whether we should hardcode library paths into libraries.
24457 hardcode_into_libs=$hardcode_into_libs
24458
24459 # Flag to hardcode \$libdir into a binary during linking.
24460 # This must work even if \$libdir does not exist.
24461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24462
24463 # If ld is used when linking, flag to hardcode \$libdir into
24464 # a binary during linking. This must work even if \$libdir does
24465 # not exist.
24466 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24467
24468 # Whether we need a single -rpath flag with a separated argument.
24469 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24470
24471 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24472 # resulting binary.
24473 hardcode_direct=$hardcode_direct_RC
24474
24475 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24476 # resulting binary.
24477 hardcode_minus_L=$hardcode_minus_L_RC
24478
24479 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24480 # the resulting binary.
24481 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24482
24483 # Set to yes if building a shared library automatically hardcodes DIR into the library
24484 # and all subsequent libraries and executables linked against it.
24485 hardcode_automatic=$hardcode_automatic_RC
24486
24487 # Variables whose values should be saved in libtool wrapper scripts and
24488 # restored at relink time.
24489 variables_saved_for_relink="$variables_saved_for_relink"
24490
24491 # Whether libtool must link a program against all its dependency libraries.
24492 link_all_deplibs=$link_all_deplibs_RC
24493
24494 # Compile-time system search path for libraries
24495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24496
24497 # Run-time system search path for libraries
24498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24499
24500 # Fix the shell variable \$srcfile for the compiler.
24501 fix_srcfile_path="$fix_srcfile_path_RC"
24502
24503 # Set to yes if exported symbols are required.
24504 always_export_symbols=$always_export_symbols_RC
24505
24506 # The commands to list exported symbols.
24507 export_symbols_cmds=$lt_export_symbols_cmds_RC
24508
24509 # The commands to extract the exported symbol list from a shared archive.
24510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24511
24512 # Symbols that should not be listed in the preloaded symbols.
24513 exclude_expsyms=$lt_exclude_expsyms_RC
24514
24515 # Symbols that must always be exported.
24516 include_expsyms=$lt_include_expsyms_RC
24517
24518 # ### END LIBTOOL TAG CONFIG: $tagname
24519
24520 __EOF__
24521
24522
24523 else
24524   # If there is no Makefile yet, we rely on a make rule to execute
24525   # `config.status --recheck' to rerun these tests and create the
24526   # libtool script then.
24527   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24528   if test -f "$ltmain_in"; then
24529     test -f Makefile && make "$ltmain"
24530   fi
24531 fi
24532
24533
24534 ac_ext=c
24535 ac_cpp='$CPP $CPPFLAGS'
24536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24539
24540 CC="$lt_save_CC"
24541
24542         ;;
24543
24544       *)
24545         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24546 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24547    { (exit 1); exit 1; }; }
24548         ;;
24549       esac
24550
24551       # Append the new tag name to the list of available tags.
24552       if test -n "$tagname" ; then
24553       available_tags="$available_tags $tagname"
24554     fi
24555     fi
24556   done
24557   IFS="$lt_save_ifs"
24558
24559   # Now substitute the updated list of available tags.
24560   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24561     mv "${ofile}T" "$ofile"
24562     chmod +x "$ofile"
24563   else
24564     rm -f "${ofile}T"
24565     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24566 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24567    { (exit 1); exit 1; }; }
24568   fi
24569 fi
24570
24571
24572
24573 # This can be used to rebuild libtool when needed
24574 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24575
24576 # Always use our own libtool.
24577 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24578
24579 # Prevent multiple expansion
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601 if test "$lt_cv_dlopen_self" = "yes" ; then
24602
24603 cat >>confdefs.h <<\_ACEOF
24604 #define CAN_DLOPEN_SELF 1
24605 _ACEOF
24606
24607 fi
24608
24609 etags_version=`$ETAGS --version 2>&1`
24610 case "$etags_version" in
24611         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24612         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24613         *) ETAGSFLAGS="" ;;
24614 esac
24615 ETAGSFLAGS=$ETAGSFLAGS
24616
24617
24618 if test "$WITH_LLVMGCCDIR" = "default" ; then
24619   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24620 set dummy llvm-gcc; ac_word=$2
24621 echo "$as_me:$LINENO: checking for $ac_word" >&5
24622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24623 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24624   echo $ECHO_N "(cached) $ECHO_C" >&6
24625 else
24626   case $LLVMGCC in
24627   [\\/]* | ?:[\\/]*)
24628   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24629   ;;
24630   *)
24631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24632 for as_dir in $PATH
24633 do
24634   IFS=$as_save_IFS
24635   test -z "$as_dir" && as_dir=.
24636   for ac_exec_ext in '' $ac_executable_extensions; do
24637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24640     break 2
24641   fi
24642 done
24643 done
24644
24645   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24646   ;;
24647 esac
24648 fi
24649 LLVMGCC=$ac_cv_path_LLVMGCC
24650
24651 if test -n "$LLVMGCC"; then
24652   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24653 echo "${ECHO_T}$LLVMGCC" >&6
24654 else
24655   echo "$as_me:$LINENO: result: no" >&5
24656 echo "${ECHO_T}no" >&6
24657 fi
24658
24659   # Extract the first word of "llvm-g++", so it can be a program name with args.
24660 set dummy llvm-g++; ac_word=$2
24661 echo "$as_me:$LINENO: checking for $ac_word" >&5
24662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24663 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24664   echo $ECHO_N "(cached) $ECHO_C" >&6
24665 else
24666   case $LLVMGXX in
24667   [\\/]* | ?:[\\/]*)
24668   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24669   ;;
24670   *)
24671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24672 for as_dir in $PATH
24673 do
24674   IFS=$as_save_IFS
24675   test -z "$as_dir" && as_dir=.
24676   for ac_exec_ext in '' $ac_executable_extensions; do
24677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24678     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24680     break 2
24681   fi
24682 done
24683 done
24684
24685   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24686   ;;
24687 esac
24688 fi
24689 LLVMGXX=$ac_cv_path_LLVMGXX
24690
24691 if test -n "$LLVMGXX"; then
24692   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24693 echo "${ECHO_T}$LLVMGXX" >&6
24694 else
24695   echo "$as_me:$LINENO: result: no" >&5
24696 echo "${ECHO_T}no" >&6
24697 fi
24698
24699 else
24700   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24701   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24702   LLVMGCC=$LLVMGCC
24703
24704   LLVMGXX=$LLVMGXX
24705
24706 fi
24707
24708 echo "$as_me:$LINENO: checking tool compatibility" >&5
24709 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24710
24711 ICC=no
24712 IXX=no
24713 case $CC in
24714   icc*|icpc*)
24715     ICC=yes
24716     IXX=yes
24717     ;;
24718    *)
24719     ;;
24720 esac
24721
24722 if test "$GCC" != "yes" && test "$ICC" != "yes"
24723 then
24724   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24725 echo "$as_me: error: gcc|icc required but not found" >&2;}
24726    { (exit 1); exit 1; }; }
24727 fi
24728
24729 if test "$GXX" != "yes" && test "$IXX" != "yes"
24730 then
24731   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24732 echo "$as_me: error: g++|icc required but not found" >&2;}
24733    { (exit 1); exit 1; }; }
24734 fi
24735
24736 if test "$GCC" = "yes"
24737 then
24738   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24739   if test "$gccmajor" -lt "3"
24740   then
24741     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24742 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24743    { (exit 1); exit 1; }; }
24744   fi
24745 fi
24746
24747 if test -z "$llvm_cv_gnu_make_command"
24748 then
24749   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24750 echo "$as_me: error: GNU Make required but not found" >&2;}
24751    { (exit 1); exit 1; }; }
24752 fi
24753
24754 echo "$as_me:$LINENO: result: ok" >&5
24755 echo "${ECHO_T}ok" >&6
24756
24757
24758
24759 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24760 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24761 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24762   echo $ECHO_N "(cached) $ECHO_C" >&6
24763 else
24764   ac_check_lib_save_LIBS=$LIBS
24765 LIBS="-lelf  $LIBS"
24766 cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772
24773 /* Override any gcc2 internal prototype to avoid an error.  */
24774 #ifdef __cplusplus
24775 extern "C"
24776 #endif
24777 /* We use char because int might match the return type of a gcc2
24778    builtin and then its argument prototype would still apply.  */
24779 char elf_begin ();
24780 int
24781 main ()
24782 {
24783 elf_begin ();
24784   ;
24785   return 0;
24786 }
24787 _ACEOF
24788 rm -f conftest.$ac_objext conftest$ac_exeext
24789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24790   (eval $ac_link) 2>conftest.er1
24791   ac_status=$?
24792   grep -v '^ *+' conftest.er1 >conftest.err
24793   rm -f conftest.er1
24794   cat conftest.err >&5
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); } &&
24797          { ac_try='test -z "$ac_c_werror_flag"
24798                          || test ! -s conftest.err'
24799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800   (eval $ac_try) 2>&5
24801   ac_status=$?
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); }; } &&
24804          { ac_try='test -s conftest$ac_exeext'
24805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806   (eval $ac_try) 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; }; then
24810   ac_cv_lib_elf_elf_begin=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815 ac_cv_lib_elf_elf_begin=no
24816 fi
24817 rm -f conftest.err conftest.$ac_objext \
24818       conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24820 fi
24821 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24822 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24823 if test $ac_cv_lib_elf_elf_begin = yes; then
24824   cat >>confdefs.h <<_ACEOF
24825 #define HAVE_LIBELF 1
24826 _ACEOF
24827
24828   LIBS="-lelf $LIBS"
24829
24830 fi
24831
24832
24833 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24834 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24835 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   ac_func_search_save_LIBS=$LIBS
24839 ac_cv_search_lt_dlopen=no
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846
24847 /* Override any gcc2 internal prototype to avoid an error.  */
24848 #ifdef __cplusplus
24849 extern "C"
24850 #endif
24851 /* We use char because int might match the return type of a gcc2
24852    builtin and then its argument prototype would still apply.  */
24853 char lt_dlopen ();
24854 int
24855 main ()
24856 {
24857 lt_dlopen ();
24858   ;
24859   return 0;
24860 }
24861 _ACEOF
24862 rm -f conftest.$ac_objext conftest$ac_exeext
24863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24864   (eval $ac_link) 2>conftest.er1
24865   ac_status=$?
24866   grep -v '^ *+' conftest.er1 >conftest.err
24867   rm -f conftest.er1
24868   cat conftest.err >&5
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); } &&
24871          { ac_try='test -z "$ac_c_werror_flag"
24872                          || test ! -s conftest.err'
24873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874   (eval $ac_try) 2>&5
24875   ac_status=$?
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); }; } &&
24878          { ac_try='test -s conftest$ac_exeext'
24879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880   (eval $ac_try) 2>&5
24881   ac_status=$?
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); }; }; then
24884   ac_cv_search_lt_dlopen="none required"
24885 else
24886   echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24888
24889 fi
24890 rm -f conftest.err conftest.$ac_objext \
24891       conftest$ac_exeext conftest.$ac_ext
24892 if test "$ac_cv_search_lt_dlopen" = no; then
24893   for ac_lib in ltdl; do
24894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24895     cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h.  */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h.  */
24901
24902 /* Override any gcc2 internal prototype to avoid an error.  */
24903 #ifdef __cplusplus
24904 extern "C"
24905 #endif
24906 /* We use char because int might match the return type of a gcc2
24907    builtin and then its argument prototype would still apply.  */
24908 char lt_dlopen ();
24909 int
24910 main ()
24911 {
24912 lt_dlopen ();
24913   ;
24914   return 0;
24915 }
24916 _ACEOF
24917 rm -f conftest.$ac_objext conftest$ac_exeext
24918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24919   (eval $ac_link) 2>conftest.er1
24920   ac_status=$?
24921   grep -v '^ *+' conftest.er1 >conftest.err
24922   rm -f conftest.er1
24923   cat conftest.err >&5
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); } &&
24926          { ac_try='test -z "$ac_c_werror_flag"
24927                          || test ! -s conftest.err'
24928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929   (eval $ac_try) 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; } &&
24933          { ac_try='test -s conftest$ac_exeext'
24934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935   (eval $ac_try) 2>&5
24936   ac_status=$?
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); }; }; then
24939   ac_cv_search_lt_dlopen="-l$ac_lib"
24940 break
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   done
24949 fi
24950 LIBS=$ac_func_search_save_LIBS
24951 fi
24952 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24953 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24954 if test "$ac_cv_search_lt_dlopen" != no; then
24955   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24956
24957 cat >>confdefs.h <<\_ACEOF
24958 #define HAVE_LT_DLOPEN 1
24959 _ACEOF
24960
24961 else
24962   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24963                            not be available" >&5
24964 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24965                            not be available" >&2;}
24966 fi
24967
24968
24969 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24970 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24971 if test "${ac_cv_search_dlopen+set}" = set; then
24972   echo $ECHO_N "(cached) $ECHO_C" >&6
24973 else
24974   ac_func_search_save_LIBS=$LIBS
24975 ac_cv_search_dlopen=no
24976 cat >conftest.$ac_ext <<_ACEOF
24977 /* confdefs.h.  */
24978 _ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h.  */
24982
24983 /* Override any gcc2 internal prototype to avoid an error.  */
24984 #ifdef __cplusplus
24985 extern "C"
24986 #endif
24987 /* We use char because int might match the return type of a gcc2
24988    builtin and then its argument prototype would still apply.  */
24989 char dlopen ();
24990 int
24991 main ()
24992 {
24993 dlopen ();
24994   ;
24995   return 0;
24996 }
24997 _ACEOF
24998 rm -f conftest.$ac_objext conftest$ac_exeext
24999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000   (eval $ac_link) 2>conftest.er1
25001   ac_status=$?
25002   grep -v '^ *+' conftest.er1 >conftest.err
25003   rm -f conftest.er1
25004   cat conftest.err >&5
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); } &&
25007          { ac_try='test -z "$ac_c_werror_flag"
25008                          || test ! -s conftest.err'
25009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010   (eval $ac_try) 2>&5
25011   ac_status=$?
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); }; } &&
25014          { ac_try='test -s conftest$ac_exeext'
25015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016   (eval $ac_try) 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; }; then
25020   ac_cv_search_dlopen="none required"
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 fi
25026 rm -f conftest.err conftest.$ac_objext \
25027       conftest$ac_exeext conftest.$ac_ext
25028 if test "$ac_cv_search_dlopen" = no; then
25029   for ac_lib in dl; do
25030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25031     cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037
25038 /* Override any gcc2 internal prototype to avoid an error.  */
25039 #ifdef __cplusplus
25040 extern "C"
25041 #endif
25042 /* We use char because int might match the return type of a gcc2
25043    builtin and then its argument prototype would still apply.  */
25044 char dlopen ();
25045 int
25046 main ()
25047 {
25048 dlopen ();
25049   ;
25050   return 0;
25051 }
25052 _ACEOF
25053 rm -f conftest.$ac_objext conftest$ac_exeext
25054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25055   (eval $ac_link) 2>conftest.er1
25056   ac_status=$?
25057   grep -v '^ *+' conftest.er1 >conftest.err
25058   rm -f conftest.er1
25059   cat conftest.err >&5
25060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061   (exit $ac_status); } &&
25062          { ac_try='test -z "$ac_c_werror_flag"
25063                          || test ! -s conftest.err'
25064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065   (eval $ac_try) 2>&5
25066   ac_status=$?
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); }; } &&
25069          { ac_try='test -s conftest$ac_exeext'
25070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071   (eval $ac_try) 2>&5
25072   ac_status=$?
25073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074   (exit $ac_status); }; }; then
25075   ac_cv_search_dlopen="-l$ac_lib"
25076 break
25077 else
25078   echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080
25081 fi
25082 rm -f conftest.err conftest.$ac_objext \
25083       conftest$ac_exeext conftest.$ac_ext
25084   done
25085 fi
25086 LIBS=$ac_func_search_save_LIBS
25087 fi
25088 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25089 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25090 if test "$ac_cv_search_dlopen" != no; then
25091   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25092
25093 cat >>confdefs.h <<\_ACEOF
25094 #define HAVE_DLOPEN 1
25095 _ACEOF
25096
25097 else
25098   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25099 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25100 fi
25101
25102
25103 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25104 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25105 if test "${ac_cv_search_mallinfo+set}" = set; then
25106   echo $ECHO_N "(cached) $ECHO_C" >&6
25107 else
25108   ac_func_search_save_LIBS=$LIBS
25109 ac_cv_search_mallinfo=no
25110 cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h.  */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h.  */
25116
25117 /* Override any gcc2 internal prototype to avoid an error.  */
25118 #ifdef __cplusplus
25119 extern "C"
25120 #endif
25121 /* We use char because int might match the return type of a gcc2
25122    builtin and then its argument prototype would still apply.  */
25123 char mallinfo ();
25124 int
25125 main ()
25126 {
25127 mallinfo ();
25128   ;
25129   return 0;
25130 }
25131 _ACEOF
25132 rm -f conftest.$ac_objext conftest$ac_exeext
25133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25134   (eval $ac_link) 2>conftest.er1
25135   ac_status=$?
25136   grep -v '^ *+' conftest.er1 >conftest.err
25137   rm -f conftest.er1
25138   cat conftest.err >&5
25139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140   (exit $ac_status); } &&
25141          { ac_try='test -z "$ac_c_werror_flag"
25142                          || test ! -s conftest.err'
25143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144   (eval $ac_try) 2>&5
25145   ac_status=$?
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); }; } &&
25148          { ac_try='test -s conftest$ac_exeext'
25149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25150   (eval $ac_try) 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); }; }; then
25154   ac_cv_search_mallinfo="none required"
25155 else
25156   echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159 fi
25160 rm -f conftest.err conftest.$ac_objext \
25161       conftest$ac_exeext conftest.$ac_ext
25162 if test "$ac_cv_search_mallinfo" = no; then
25163   for ac_lib in malloc; do
25164     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25165     cat >conftest.$ac_ext <<_ACEOF
25166 /* confdefs.h.  */
25167 _ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h.  */
25171
25172 /* Override any gcc2 internal prototype to avoid an error.  */
25173 #ifdef __cplusplus
25174 extern "C"
25175 #endif
25176 /* We use char because int might match the return type of a gcc2
25177    builtin and then its argument prototype would still apply.  */
25178 char mallinfo ();
25179 int
25180 main ()
25181 {
25182 mallinfo ();
25183   ;
25184   return 0;
25185 }
25186 _ACEOF
25187 rm -f conftest.$ac_objext conftest$ac_exeext
25188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25189   (eval $ac_link) 2>conftest.er1
25190   ac_status=$?
25191   grep -v '^ *+' conftest.er1 >conftest.err
25192   rm -f conftest.er1
25193   cat conftest.err >&5
25194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); } &&
25196          { ac_try='test -z "$ac_c_werror_flag"
25197                          || test ! -s conftest.err'
25198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199   (eval $ac_try) 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; } &&
25203          { ac_try='test -s conftest$ac_exeext'
25204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205   (eval $ac_try) 2>&5
25206   ac_status=$?
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); }; }; then
25209   ac_cv_search_mallinfo="-l$ac_lib"
25210 break
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215 fi
25216 rm -f conftest.err conftest.$ac_objext \
25217       conftest$ac_exeext conftest.$ac_ext
25218   done
25219 fi
25220 LIBS=$ac_func_search_save_LIBS
25221 fi
25222 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25223 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25224 if test "$ac_cv_search_mallinfo" != no; then
25225   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25226
25227 cat >>confdefs.h <<\_ACEOF
25228 #define HAVE_MALLINFO 1
25229 _ACEOF
25230
25231 fi
25232
25233
25234 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25235 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25236 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25237   echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239   ac_func_search_save_LIBS=$LIBS
25240 ac_cv_search_pthread_mutex_lock=no
25241 cat >conftest.$ac_ext <<_ACEOF
25242 /* confdefs.h.  */
25243 _ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h.  */
25247
25248 /* Override any gcc2 internal prototype to avoid an error.  */
25249 #ifdef __cplusplus
25250 extern "C"
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253    builtin and then its argument prototype would still apply.  */
25254 char pthread_mutex_lock ();
25255 int
25256 main ()
25257 {
25258 pthread_mutex_lock ();
25259   ;
25260   return 0;
25261 }
25262 _ACEOF
25263 rm -f conftest.$ac_objext conftest$ac_exeext
25264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25265   (eval $ac_link) 2>conftest.er1
25266   ac_status=$?
25267   grep -v '^ *+' conftest.er1 >conftest.err
25268   rm -f conftest.er1
25269   cat conftest.err >&5
25270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271   (exit $ac_status); } &&
25272          { ac_try='test -z "$ac_c_werror_flag"
25273                          || test ! -s conftest.err'
25274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275   (eval $ac_try) 2>&5
25276   ac_status=$?
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); }; } &&
25279          { ac_try='test -s conftest$ac_exeext'
25280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281   (eval $ac_try) 2>&5
25282   ac_status=$?
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); }; }; then
25285   ac_cv_search_pthread_mutex_lock="none required"
25286 else
25287   echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25289
25290 fi
25291 rm -f conftest.err conftest.$ac_objext \
25292       conftest$ac_exeext conftest.$ac_ext
25293 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25294   for ac_lib in pthread; do
25295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25296     cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303 /* Override any gcc2 internal prototype to avoid an error.  */
25304 #ifdef __cplusplus
25305 extern "C"
25306 #endif
25307 /* We use char because int might match the return type of a gcc2
25308    builtin and then its argument prototype would still apply.  */
25309 char pthread_mutex_lock ();
25310 int
25311 main ()
25312 {
25313 pthread_mutex_lock ();
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320   (eval $ac_link) 2>conftest.er1
25321   ac_status=$?
25322   grep -v '^ *+' conftest.er1 >conftest.err
25323   rm -f conftest.er1
25324   cat conftest.err >&5
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); } &&
25327          { ac_try='test -z "$ac_c_werror_flag"
25328                          || test ! -s conftest.err'
25329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330   (eval $ac_try) 2>&5
25331   ac_status=$?
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); }; } &&
25334          { ac_try='test -s conftest$ac_exeext'
25335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336   (eval $ac_try) 2>&5
25337   ac_status=$?
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); }; }; then
25340   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25341 break
25342 else
25343   echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25345
25346 fi
25347 rm -f conftest.err conftest.$ac_objext \
25348       conftest$ac_exeext conftest.$ac_ext
25349   done
25350 fi
25351 LIBS=$ac_func_search_save_LIBS
25352 fi
25353 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25354 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25355 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25356   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25357
25358 cat >>confdefs.h <<\_ACEOF
25359 #define HAVE_PTHREAD_MUTEX_LOCK 1
25360 _ACEOF
25361
25362 fi
25363
25364
25365
25366
25367
25368
25369
25370
25371 ac_header_dirent=no
25372 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25373   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25374 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25375 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25377   echo $ECHO_N "(cached) $ECHO_C" >&6
25378 else
25379   cat >conftest.$ac_ext <<_ACEOF
25380 /* confdefs.h.  */
25381 _ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h.  */
25385 #include <sys/types.h>
25386 #include <$ac_hdr>
25387
25388 int
25389 main ()
25390 {
25391 if ((DIR *) 0)
25392 return 0;
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 rm -f conftest.$ac_objext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25399   (eval $ac_compile) 2>conftest.er1
25400   ac_status=$?
25401   grep -v '^ *+' conftest.er1 >conftest.err
25402   rm -f conftest.er1
25403   cat conftest.err >&5
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); } &&
25406          { ac_try='test -z "$ac_c_werror_flag"
25407                          || test ! -s conftest.err'
25408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409   (eval $ac_try) 2>&5
25410   ac_status=$?
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); }; } &&
25413          { ac_try='test -s conftest.$ac_objext'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; }; then
25419   eval "$as_ac_Header=yes"
25420 else
25421   echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25423
25424 eval "$as_ac_Header=no"
25425 fi
25426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25427 fi
25428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25431   cat >>confdefs.h <<_ACEOF
25432 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25433 _ACEOF
25434
25435 ac_header_dirent=$ac_hdr; break
25436 fi
25437
25438 done
25439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25440 if test $ac_header_dirent = dirent.h; then
25441   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25442 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25443 if test "${ac_cv_search_opendir+set}" = set; then
25444   echo $ECHO_N "(cached) $ECHO_C" >&6
25445 else
25446   ac_func_search_save_LIBS=$LIBS
25447 ac_cv_search_opendir=no
25448 cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454
25455 /* Override any gcc2 internal prototype to avoid an error.  */
25456 #ifdef __cplusplus
25457 extern "C"
25458 #endif
25459 /* We use char because int might match the return type of a gcc2
25460    builtin and then its argument prototype would still apply.  */
25461 char opendir ();
25462 int
25463 main ()
25464 {
25465 opendir ();
25466   ;
25467   return 0;
25468 }
25469 _ACEOF
25470 rm -f conftest.$ac_objext conftest$ac_exeext
25471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25472   (eval $ac_link) 2>conftest.er1
25473   ac_status=$?
25474   grep -v '^ *+' conftest.er1 >conftest.err
25475   rm -f conftest.er1
25476   cat conftest.err >&5
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); } &&
25479          { ac_try='test -z "$ac_c_werror_flag"
25480                          || test ! -s conftest.err'
25481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25482   (eval $ac_try) 2>&5
25483   ac_status=$?
25484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485   (exit $ac_status); }; } &&
25486          { ac_try='test -s conftest$ac_exeext'
25487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25488   (eval $ac_try) 2>&5
25489   ac_status=$?
25490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491   (exit $ac_status); }; }; then
25492   ac_cv_search_opendir="none required"
25493 else
25494   echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25496
25497 fi
25498 rm -f conftest.err conftest.$ac_objext \
25499       conftest$ac_exeext conftest.$ac_ext
25500 if test "$ac_cv_search_opendir" = no; then
25501   for ac_lib in dir; do
25502     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25503     cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h.  */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h.  */
25509
25510 /* Override any gcc2 internal prototype to avoid an error.  */
25511 #ifdef __cplusplus
25512 extern "C"
25513 #endif
25514 /* We use char because int might match the return type of a gcc2
25515    builtin and then its argument prototype would still apply.  */
25516 char opendir ();
25517 int
25518 main ()
25519 {
25520 opendir ();
25521   ;
25522   return 0;
25523 }
25524 _ACEOF
25525 rm -f conftest.$ac_objext conftest$ac_exeext
25526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25527   (eval $ac_link) 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } &&
25534          { ac_try='test -z "$ac_c_werror_flag"
25535                          || test ! -s conftest.err'
25536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537   (eval $ac_try) 2>&5
25538   ac_status=$?
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); }; } &&
25541          { ac_try='test -s conftest$ac_exeext'
25542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543   (eval $ac_try) 2>&5
25544   ac_status=$?
25545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546   (exit $ac_status); }; }; then
25547   ac_cv_search_opendir="-l$ac_lib"
25548 break
25549 else
25550   echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553 fi
25554 rm -f conftest.err conftest.$ac_objext \
25555       conftest$ac_exeext conftest.$ac_ext
25556   done
25557 fi
25558 LIBS=$ac_func_search_save_LIBS
25559 fi
25560 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25561 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25562 if test "$ac_cv_search_opendir" != no; then
25563   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25564
25565 fi
25566
25567 else
25568   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25569 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25570 if test "${ac_cv_search_opendir+set}" = set; then
25571   echo $ECHO_N "(cached) $ECHO_C" >&6
25572 else
25573   ac_func_search_save_LIBS=$LIBS
25574 ac_cv_search_opendir=no
25575 cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h.  */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h.  */
25581
25582 /* Override any gcc2 internal prototype to avoid an error.  */
25583 #ifdef __cplusplus
25584 extern "C"
25585 #endif
25586 /* We use char because int might match the return type of a gcc2
25587    builtin and then its argument prototype would still apply.  */
25588 char opendir ();
25589 int
25590 main ()
25591 {
25592 opendir ();
25593   ;
25594   return 0;
25595 }
25596 _ACEOF
25597 rm -f conftest.$ac_objext conftest$ac_exeext
25598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25599   (eval $ac_link) 2>conftest.er1
25600   ac_status=$?
25601   grep -v '^ *+' conftest.er1 >conftest.err
25602   rm -f conftest.er1
25603   cat conftest.err >&5
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); } &&
25606          { ac_try='test -z "$ac_c_werror_flag"
25607                          || test ! -s conftest.err'
25608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609   (eval $ac_try) 2>&5
25610   ac_status=$?
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); }; } &&
25613          { ac_try='test -s conftest$ac_exeext'
25614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615   (eval $ac_try) 2>&5
25616   ac_status=$?
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); }; }; then
25619   ac_cv_search_opendir="none required"
25620 else
25621   echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25623
25624 fi
25625 rm -f conftest.err conftest.$ac_objext \
25626       conftest$ac_exeext conftest.$ac_ext
25627 if test "$ac_cv_search_opendir" = no; then
25628   for ac_lib in x; do
25629     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25630     cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636
25637 /* Override any gcc2 internal prototype to avoid an error.  */
25638 #ifdef __cplusplus
25639 extern "C"
25640 #endif
25641 /* We use char because int might match the return type of a gcc2
25642    builtin and then its argument prototype would still apply.  */
25643 char opendir ();
25644 int
25645 main ()
25646 {
25647 opendir ();
25648   ;
25649   return 0;
25650 }
25651 _ACEOF
25652 rm -f conftest.$ac_objext conftest$ac_exeext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654   (eval $ac_link) 2>conftest.er1
25655   ac_status=$?
25656   grep -v '^ *+' conftest.er1 >conftest.err
25657   rm -f conftest.er1
25658   cat conftest.err >&5
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); } &&
25661          { ac_try='test -z "$ac_c_werror_flag"
25662                          || test ! -s conftest.err'
25663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664   (eval $ac_try) 2>&5
25665   ac_status=$?
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); }; } &&
25668          { ac_try='test -s conftest$ac_exeext'
25669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670   (eval $ac_try) 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); }; }; then
25674   ac_cv_search_opendir="-l$ac_lib"
25675 break
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680 fi
25681 rm -f conftest.err conftest.$ac_objext \
25682       conftest$ac_exeext conftest.$ac_ext
25683   done
25684 fi
25685 LIBS=$ac_func_search_save_LIBS
25686 fi
25687 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25688 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25689 if test "$ac_cv_search_opendir" != no; then
25690   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25691
25692 fi
25693
25694 fi
25695
25696 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25697 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25698 if test "${ac_cv_header_mmap_anon+set}" = set; then
25699   echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701    ac_ext=c
25702 ac_cpp='$CPP $CPPFLAGS'
25703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25706
25707   cat >conftest.$ac_ext <<_ACEOF
25708 /* confdefs.h.  */
25709 _ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h.  */
25713 #include <sys/mman.h>
25714 #include <unistd.h>
25715 #include <fcntl.h>
25716 int
25717 main ()
25718 {
25719 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 rm -f conftest.$ac_objext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726   (eval $ac_compile) 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } &&
25733          { ac_try='test -z "$ac_c_werror_flag"
25734                          || test ! -s conftest.err'
25735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736   (eval $ac_try) 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); }; } &&
25740          { ac_try='test -s conftest.$ac_objext'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; }; then
25746   ac_cv_header_mmap_anon=yes
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 ac_cv_header_mmap_anon=no
25752 fi
25753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754   ac_ext=c
25755 ac_cpp='$CPP $CPPFLAGS'
25756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25759
25760
25761 fi
25762 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25763 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25764 if test "$ac_cv_header_mmap_anon" = yes; then
25765
25766 cat >>confdefs.h <<\_ACEOF
25767 #define HAVE_MMAP_ANONYMOUS 1
25768 _ACEOF
25769
25770 fi
25771
25772 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25773 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25774 if test "${ac_cv_header_stat_broken+set}" = set; then
25775   echo $ECHO_N "(cached) $ECHO_C" >&6
25776 else
25777   cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h.  */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h.  */
25783 #include <sys/types.h>
25784 #include <sys/stat.h>
25785
25786 #if defined(S_ISBLK) && defined(S_IFDIR)
25787 # if S_ISBLK (S_IFDIR)
25788 You lose.
25789 # endif
25790 #endif
25791
25792 #if defined(S_ISBLK) && defined(S_IFCHR)
25793 # if S_ISBLK (S_IFCHR)
25794 You lose.
25795 # endif
25796 #endif
25797
25798 #if defined(S_ISLNK) && defined(S_IFREG)
25799 # if S_ISLNK (S_IFREG)
25800 You lose.
25801 # endif
25802 #endif
25803
25804 #if defined(S_ISSOCK) && defined(S_IFREG)
25805 # if S_ISSOCK (S_IFREG)
25806 You lose.
25807 # endif
25808 #endif
25809
25810 _ACEOF
25811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25812   $EGREP "You lose" >/dev/null 2>&1; then
25813   ac_cv_header_stat_broken=yes
25814 else
25815   ac_cv_header_stat_broken=no
25816 fi
25817 rm -f conftest*
25818
25819 fi
25820 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25821 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25822 if test $ac_cv_header_stat_broken = yes; then
25823
25824 cat >>confdefs.h <<\_ACEOF
25825 #define STAT_MACROS_BROKEN 1
25826 _ACEOF
25827
25828 fi
25829
25830 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25832 if test "${ac_cv_header_stdc+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   cat >conftest.$ac_ext <<_ACEOF
25836 /* confdefs.h.  */
25837 _ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h.  */
25841 #include <stdlib.h>
25842 #include <stdarg.h>
25843 #include <string.h>
25844 #include <float.h>
25845
25846 int
25847 main ()
25848 {
25849
25850   ;
25851   return 0;
25852 }
25853 _ACEOF
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856   (eval $ac_compile) 2>conftest.er1
25857   ac_status=$?
25858   grep -v '^ *+' conftest.er1 >conftest.err
25859   rm -f conftest.er1
25860   cat conftest.err >&5
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); } &&
25863          { ac_try='test -z "$ac_c_werror_flag"
25864                          || test ! -s conftest.err'
25865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866   (eval $ac_try) 2>&5
25867   ac_status=$?
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); }; } &&
25870          { ac_try='test -s conftest.$ac_objext'
25871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872   (eval $ac_try) 2>&5
25873   ac_status=$?
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); }; }; then
25876   ac_cv_header_stdc=yes
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881 ac_cv_header_stdc=no
25882 fi
25883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884
25885 if test $ac_cv_header_stdc = yes; then
25886   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25887   cat >conftest.$ac_ext <<_ACEOF
25888 /* confdefs.h.  */
25889 _ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h.  */
25893 #include <string.h>
25894
25895 _ACEOF
25896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25897   $EGREP "memchr" >/dev/null 2>&1; then
25898   :
25899 else
25900   ac_cv_header_stdc=no
25901 fi
25902 rm -f conftest*
25903
25904 fi
25905
25906 if test $ac_cv_header_stdc = yes; then
25907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25908   cat >conftest.$ac_ext <<_ACEOF
25909 /* confdefs.h.  */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h.  */
25914 #include <stdlib.h>
25915
25916 _ACEOF
25917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25918   $EGREP "free" >/dev/null 2>&1; then
25919   :
25920 else
25921   ac_cv_header_stdc=no
25922 fi
25923 rm -f conftest*
25924
25925 fi
25926
25927 if test $ac_cv_header_stdc = yes; then
25928   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25929   if test "$cross_compiling" = yes; then
25930   :
25931 else
25932   cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h.  */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h.  */
25938 #include <ctype.h>
25939 #if ((' ' & 0x0FF) == 0x020)
25940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25942 #else
25943 # define ISLOWER(c) \
25944                    (('a' <= (c) && (c) <= 'i') \
25945                      || ('j' <= (c) && (c) <= 'r') \
25946                      || ('s' <= (c) && (c) <= 'z'))
25947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25948 #endif
25949
25950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25951 int
25952 main ()
25953 {
25954   int i;
25955   for (i = 0; i < 256; i++)
25956     if (XOR (islower (i), ISLOWER (i))
25957         || toupper (i) != TOUPPER (i))
25958       exit(2);
25959   exit (0);
25960 }
25961 _ACEOF
25962 rm -f conftest$ac_exeext
25963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25964   (eval $ac_link) 2>&5
25965   ac_status=$?
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969   (eval $ac_try) 2>&5
25970   ac_status=$?
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); }; }; then
25973   :
25974 else
25975   echo "$as_me: program exited with status $ac_status" >&5
25976 echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25978
25979 ( exit $ac_status )
25980 ac_cv_header_stdc=no
25981 fi
25982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25983 fi
25984 fi
25985 fi
25986 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25987 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25988 if test $ac_cv_header_stdc = yes; then
25989
25990 cat >>confdefs.h <<\_ACEOF
25991 #define STDC_HEADERS 1
25992 _ACEOF
25993
25994 fi
25995
25996 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25997 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25998 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25999   echo $ECHO_N "(cached) $ECHO_C" >&6
26000 else
26001   cat >conftest.$ac_ext <<_ACEOF
26002 /* confdefs.h.  */
26003 _ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h.  */
26007 #include <sys/types.h>
26008 #include <sys/wait.h>
26009 #ifndef WEXITSTATUS
26010 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26011 #endif
26012 #ifndef WIFEXITED
26013 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26014 #endif
26015
26016 int
26017 main ()
26018 {
26019   int s;
26020   wait (&s);
26021   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26022   ;
26023   return 0;
26024 }
26025 _ACEOF
26026 rm -f conftest.$ac_objext
26027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26028   (eval $ac_compile) 2>conftest.er1
26029   ac_status=$?
26030   grep -v '^ *+' conftest.er1 >conftest.err
26031   rm -f conftest.er1
26032   cat conftest.err >&5
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); } &&
26035          { ac_try='test -z "$ac_c_werror_flag"
26036                          || test ! -s conftest.err'
26037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038   (eval $ac_try) 2>&5
26039   ac_status=$?
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); }; } &&
26042          { ac_try='test -s conftest.$ac_objext'
26043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044   (eval $ac_try) 2>&5
26045   ac_status=$?
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); }; }; then
26048   ac_cv_header_sys_wait_h=yes
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ac_cv_header_sys_wait_h=no
26054 fi
26055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 fi
26057 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26058 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26059 if test $ac_cv_header_sys_wait_h = yes; then
26060
26061 cat >>confdefs.h <<\_ACEOF
26062 #define HAVE_SYS_WAIT_H 1
26063 _ACEOF
26064
26065 fi
26066
26067 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26068 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26069 if test "${ac_cv_header_time+set}" = set; then
26070   echo $ECHO_N "(cached) $ECHO_C" >&6
26071 else
26072   cat >conftest.$ac_ext <<_ACEOF
26073 /* confdefs.h.  */
26074 _ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h.  */
26078 #include <sys/types.h>
26079 #include <sys/time.h>
26080 #include <time.h>
26081
26082 int
26083 main ()
26084 {
26085 if ((struct tm *) 0)
26086 return 0;
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093   (eval $ac_compile) 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } &&
26100          { ac_try='test -z "$ac_c_werror_flag"
26101                          || test ! -s conftest.err'
26102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103   (eval $ac_try) 2>&5
26104   ac_status=$?
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); }; } &&
26107          { ac_try='test -s conftest.$ac_objext'
26108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; }; then
26113   ac_cv_header_time=yes
26114 else
26115   echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118 ac_cv_header_time=no
26119 fi
26120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26121 fi
26122 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26123 echo "${ECHO_T}$ac_cv_header_time" >&6
26124 if test $ac_cv_header_time = yes; then
26125
26126 cat >>confdefs.h <<\_ACEOF
26127 #define TIME_WITH_SYS_TIME 1
26128 _ACEOF
26129
26130 fi
26131
26132
26133
26134
26135
26136
26137
26138
26139 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26140 do
26141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26143   echo "$as_me:$LINENO: checking for $ac_header" >&5
26144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 fi
26148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26150 else
26151   # Is the header compilable?
26152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26154 cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160 $ac_includes_default
26161 #include <$ac_header>
26162 _ACEOF
26163 rm -f conftest.$ac_objext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26165   (eval $ac_compile) 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } &&
26172          { ac_try='test -z "$ac_c_werror_flag"
26173                          || test ! -s conftest.err'
26174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175   (eval $ac_try) 2>&5
26176   ac_status=$?
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); }; } &&
26179          { ac_try='test -s conftest.$ac_objext'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; }; then
26185   ac_header_compiler=yes
26186 else
26187   echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190 ac_header_compiler=no
26191 fi
26192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26194 echo "${ECHO_T}$ac_header_compiler" >&6
26195
26196 # Is the header present?
26197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26199 cat >conftest.$ac_ext <<_ACEOF
26200 /* confdefs.h.  */
26201 _ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h.  */
26205 #include <$ac_header>
26206 _ACEOF
26207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26209   ac_status=$?
26210   grep -v '^ *+' conftest.er1 >conftest.err
26211   rm -f conftest.er1
26212   cat conftest.err >&5
26213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214   (exit $ac_status); } >/dev/null; then
26215   if test -s conftest.err; then
26216     ac_cpp_err=$ac_c_preproc_warn_flag
26217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26218   else
26219     ac_cpp_err=
26220   fi
26221 else
26222   ac_cpp_err=yes
26223 fi
26224 if test -z "$ac_cpp_err"; then
26225   ac_header_preproc=yes
26226 else
26227   echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26229
26230   ac_header_preproc=no
26231 fi
26232 rm -f conftest.err conftest.$ac_ext
26233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26234 echo "${ECHO_T}$ac_header_preproc" >&6
26235
26236 # So?  What about this header?
26237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26238   yes:no: )
26239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26243     ac_header_preproc=yes
26244     ;;
26245   no:yes:* )
26246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26258     (
26259       cat <<\_ASBOX
26260 ## ----------------------------------- ##
26261 ## Report this to llvmbugs@cs.uiuc.edu ##
26262 ## ----------------------------------- ##
26263 _ASBOX
26264     ) |
26265       sed "s/^/$as_me: WARNING:     /" >&2
26266     ;;
26267 esac
26268 echo "$as_me:$LINENO: checking for $ac_header" >&5
26269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26271   echo $ECHO_N "(cached) $ECHO_C" >&6
26272 else
26273   eval "$as_ac_Header=\$ac_header_preproc"
26274 fi
26275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26277
26278 fi
26279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26280   cat >>confdefs.h <<_ACEOF
26281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26282 _ACEOF
26283
26284 fi
26285
26286 done
26287
26288
26289
26290
26291
26292
26293
26294 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26295 do
26296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26298   echo "$as_me:$LINENO: checking for $ac_header" >&5
26299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26301   echo $ECHO_N "(cached) $ECHO_C" >&6
26302 fi
26303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26305 else
26306   # Is the header compilable?
26307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26309 cat >conftest.$ac_ext <<_ACEOF
26310 /* confdefs.h.  */
26311 _ACEOF
26312 cat confdefs.h >>conftest.$ac_ext
26313 cat >>conftest.$ac_ext <<_ACEOF
26314 /* end confdefs.h.  */
26315 $ac_includes_default
26316 #include <$ac_header>
26317 _ACEOF
26318 rm -f conftest.$ac_objext
26319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26320   (eval $ac_compile) 2>conftest.er1
26321   ac_status=$?
26322   grep -v '^ *+' conftest.er1 >conftest.err
26323   rm -f conftest.er1
26324   cat conftest.err >&5
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } &&
26327          { ac_try='test -z "$ac_c_werror_flag"
26328                          || test ! -s conftest.err'
26329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330   (eval $ac_try) 2>&5
26331   ac_status=$?
26332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333   (exit $ac_status); }; } &&
26334          { ac_try='test -s conftest.$ac_objext'
26335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26336   (eval $ac_try) 2>&5
26337   ac_status=$?
26338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339   (exit $ac_status); }; }; then
26340   ac_header_compiler=yes
26341 else
26342   echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26344
26345 ac_header_compiler=no
26346 fi
26347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26349 echo "${ECHO_T}$ac_header_compiler" >&6
26350
26351 # Is the header present?
26352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26354 cat >conftest.$ac_ext <<_ACEOF
26355 /* confdefs.h.  */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h.  */
26360 #include <$ac_header>
26361 _ACEOF
26362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26364   ac_status=$?
26365   grep -v '^ *+' conftest.er1 >conftest.err
26366   rm -f conftest.er1
26367   cat conftest.err >&5
26368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369   (exit $ac_status); } >/dev/null; then
26370   if test -s conftest.err; then
26371     ac_cpp_err=$ac_c_preproc_warn_flag
26372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26373   else
26374     ac_cpp_err=
26375   fi
26376 else
26377   ac_cpp_err=yes
26378 fi
26379 if test -z "$ac_cpp_err"; then
26380   ac_header_preproc=yes
26381 else
26382   echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26384
26385   ac_header_preproc=no
26386 fi
26387 rm -f conftest.err conftest.$ac_ext
26388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26389 echo "${ECHO_T}$ac_header_preproc" >&6
26390
26391 # So?  What about this header?
26392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26393   yes:no: )
26394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26398     ac_header_preproc=yes
26399     ;;
26400   no:yes:* )
26401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26413     (
26414       cat <<\_ASBOX
26415 ## ----------------------------------- ##
26416 ## Report this to llvmbugs@cs.uiuc.edu ##
26417 ## ----------------------------------- ##
26418 _ASBOX
26419     ) |
26420       sed "s/^/$as_me: WARNING:     /" >&2
26421     ;;
26422 esac
26423 echo "$as_me:$LINENO: checking for $ac_header" >&5
26424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26426   echo $ECHO_N "(cached) $ECHO_C" >&6
26427 else
26428   eval "$as_ac_Header=\$ac_header_preproc"
26429 fi
26430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26432
26433 fi
26434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26435   cat >>confdefs.h <<_ACEOF
26436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26437 _ACEOF
26438
26439 fi
26440
26441 done
26442
26443
26444
26445
26446
26447
26448 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26449 do
26450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26452   echo "$as_me:$LINENO: checking for $ac_header" >&5
26453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26455   echo $ECHO_N "(cached) $ECHO_C" >&6
26456 fi
26457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26459 else
26460   # Is the header compilable?
26461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26463 cat >conftest.$ac_ext <<_ACEOF
26464 /* confdefs.h.  */
26465 _ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h.  */
26469 $ac_includes_default
26470 #include <$ac_header>
26471 _ACEOF
26472 rm -f conftest.$ac_objext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26474   (eval $ac_compile) 2>conftest.er1
26475   ac_status=$?
26476   grep -v '^ *+' conftest.er1 >conftest.err
26477   rm -f conftest.er1
26478   cat conftest.err >&5
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); } &&
26481          { ac_try='test -z "$ac_c_werror_flag"
26482                          || test ! -s conftest.err'
26483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484   (eval $ac_try) 2>&5
26485   ac_status=$?
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); }; } &&
26488          { ac_try='test -s conftest.$ac_objext'
26489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490   (eval $ac_try) 2>&5
26491   ac_status=$?
26492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493   (exit $ac_status); }; }; then
26494   ac_header_compiler=yes
26495 else
26496   echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26498
26499 ac_header_compiler=no
26500 fi
26501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26503 echo "${ECHO_T}$ac_header_compiler" >&6
26504
26505 # Is the header present?
26506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26508 cat >conftest.$ac_ext <<_ACEOF
26509 /* confdefs.h.  */
26510 _ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h.  */
26514 #include <$ac_header>
26515 _ACEOF
26516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26518   ac_status=$?
26519   grep -v '^ *+' conftest.er1 >conftest.err
26520   rm -f conftest.er1
26521   cat conftest.err >&5
26522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523   (exit $ac_status); } >/dev/null; then
26524   if test -s conftest.err; then
26525     ac_cpp_err=$ac_c_preproc_warn_flag
26526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26527   else
26528     ac_cpp_err=
26529   fi
26530 else
26531   ac_cpp_err=yes
26532 fi
26533 if test -z "$ac_cpp_err"; then
26534   ac_header_preproc=yes
26535 else
26536   echo "$as_me: failed program was:" >&5
26537 sed 's/^/| /' conftest.$ac_ext >&5
26538
26539   ac_header_preproc=no
26540 fi
26541 rm -f conftest.err conftest.$ac_ext
26542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26543 echo "${ECHO_T}$ac_header_preproc" >&6
26544
26545 # So?  What about this header?
26546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26547   yes:no: )
26548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26552     ac_header_preproc=yes
26553     ;;
26554   no:yes:* )
26555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26567     (
26568       cat <<\_ASBOX
26569 ## ----------------------------------- ##
26570 ## Report this to llvmbugs@cs.uiuc.edu ##
26571 ## ----------------------------------- ##
26572 _ASBOX
26573     ) |
26574       sed "s/^/$as_me: WARNING:     /" >&2
26575     ;;
26576 esac
26577 echo "$as_me:$LINENO: checking for $ac_header" >&5
26578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26580   echo $ECHO_N "(cached) $ECHO_C" >&6
26581 else
26582   eval "$as_ac_Header=\$ac_header_preproc"
26583 fi
26584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26586
26587 fi
26588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26589   cat >>confdefs.h <<_ACEOF
26590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26591 _ACEOF
26592
26593 fi
26594
26595 done
26596
26597
26598
26599 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26600 do
26601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26603   echo "$as_me:$LINENO: checking for $ac_header" >&5
26604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26606   echo $ECHO_N "(cached) $ECHO_C" >&6
26607 fi
26608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26610 else
26611   # Is the header compilable?
26612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26614 cat >conftest.$ac_ext <<_ACEOF
26615 /* confdefs.h.  */
26616 _ACEOF
26617 cat confdefs.h >>conftest.$ac_ext
26618 cat >>conftest.$ac_ext <<_ACEOF
26619 /* end confdefs.h.  */
26620 $ac_includes_default
26621 #include <$ac_header>
26622 _ACEOF
26623 rm -f conftest.$ac_objext
26624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26625   (eval $ac_compile) 2>conftest.er1
26626   ac_status=$?
26627   grep -v '^ *+' conftest.er1 >conftest.err
26628   rm -f conftest.er1
26629   cat conftest.err >&5
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); } &&
26632          { ac_try='test -z "$ac_c_werror_flag"
26633                          || test ! -s conftest.err'
26634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635   (eval $ac_try) 2>&5
26636   ac_status=$?
26637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638   (exit $ac_status); }; } &&
26639          { ac_try='test -s conftest.$ac_objext'
26640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641   (eval $ac_try) 2>&5
26642   ac_status=$?
26643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644   (exit $ac_status); }; }; then
26645   ac_header_compiler=yes
26646 else
26647   echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26649
26650 ac_header_compiler=no
26651 fi
26652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26654 echo "${ECHO_T}$ac_header_compiler" >&6
26655
26656 # Is the header present?
26657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26659 cat >conftest.$ac_ext <<_ACEOF
26660 /* confdefs.h.  */
26661 _ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h.  */
26665 #include <$ac_header>
26666 _ACEOF
26667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26669   ac_status=$?
26670   grep -v '^ *+' conftest.er1 >conftest.err
26671   rm -f conftest.er1
26672   cat conftest.err >&5
26673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674   (exit $ac_status); } >/dev/null; then
26675   if test -s conftest.err; then
26676     ac_cpp_err=$ac_c_preproc_warn_flag
26677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26678   else
26679     ac_cpp_err=
26680   fi
26681 else
26682   ac_cpp_err=yes
26683 fi
26684 if test -z "$ac_cpp_err"; then
26685   ac_header_preproc=yes
26686 else
26687   echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26689
26690   ac_header_preproc=no
26691 fi
26692 rm -f conftest.err conftest.$ac_ext
26693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26694 echo "${ECHO_T}$ac_header_preproc" >&6
26695
26696 # So?  What about this header?
26697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26698   yes:no: )
26699     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26703     ac_header_preproc=yes
26704     ;;
26705   no:yes:* )
26706     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26708     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26709 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26710     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26712     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26713 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26716     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26718     (
26719       cat <<\_ASBOX
26720 ## ----------------------------------- ##
26721 ## Report this to llvmbugs@cs.uiuc.edu ##
26722 ## ----------------------------------- ##
26723 _ASBOX
26724     ) |
26725       sed "s/^/$as_me: WARNING:     /" >&2
26726     ;;
26727 esac
26728 echo "$as_me:$LINENO: checking for $ac_header" >&5
26729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26731   echo $ECHO_N "(cached) $ECHO_C" >&6
26732 else
26733   eval "$as_ac_Header=\$ac_header_preproc"
26734 fi
26735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26737
26738 fi
26739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26740   cat >>confdefs.h <<_ACEOF
26741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26742 _ACEOF
26743
26744 fi
26745
26746 done
26747
26748
26749
26750 echo "$as_me:$LINENO: checking for pid_t" >&5
26751 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26752 if test "${ac_cv_type_pid_t+set}" = set; then
26753   echo $ECHO_N "(cached) $ECHO_C" >&6
26754 else
26755   cat >conftest.$ac_ext <<_ACEOF
26756 /* confdefs.h.  */
26757 _ACEOF
26758 cat confdefs.h >>conftest.$ac_ext
26759 cat >>conftest.$ac_ext <<_ACEOF
26760 /* end confdefs.h.  */
26761 $ac_includes_default
26762 int
26763 main ()
26764 {
26765 if ((pid_t *) 0)
26766   return 0;
26767 if (sizeof (pid_t))
26768   return 0;
26769   ;
26770   return 0;
26771 }
26772 _ACEOF
26773 rm -f conftest.$ac_objext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775   (eval $ac_compile) 2>conftest.er1
26776   ac_status=$?
26777   grep -v '^ *+' conftest.er1 >conftest.err
26778   rm -f conftest.er1
26779   cat conftest.err >&5
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); } &&
26782          { ac_try='test -z "$ac_c_werror_flag"
26783                          || test ! -s conftest.err'
26784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785   (eval $ac_try) 2>&5
26786   ac_status=$?
26787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788   (exit $ac_status); }; } &&
26789          { ac_try='test -s conftest.$ac_objext'
26790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791   (eval $ac_try) 2>&5
26792   ac_status=$?
26793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794   (exit $ac_status); }; }; then
26795   ac_cv_type_pid_t=yes
26796 else
26797   echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26799
26800 ac_cv_type_pid_t=no
26801 fi
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 fi
26804 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26805 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26806 if test $ac_cv_type_pid_t = yes; then
26807   :
26808 else
26809
26810 cat >>confdefs.h <<_ACEOF
26811 #define pid_t int
26812 _ACEOF
26813
26814 fi
26815
26816 echo "$as_me:$LINENO: checking for size_t" >&5
26817 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26818 if test "${ac_cv_type_size_t+set}" = set; then
26819   echo $ECHO_N "(cached) $ECHO_C" >&6
26820 else
26821   cat >conftest.$ac_ext <<_ACEOF
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827 $ac_includes_default
26828 int
26829 main ()
26830 {
26831 if ((size_t *) 0)
26832   return 0;
26833 if (sizeof (size_t))
26834   return 0;
26835   ;
26836   return 0;
26837 }
26838 _ACEOF
26839 rm -f conftest.$ac_objext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26841   (eval $ac_compile) 2>conftest.er1
26842   ac_status=$?
26843   grep -v '^ *+' conftest.er1 >conftest.err
26844   rm -f conftest.er1
26845   cat conftest.err >&5
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); } &&
26848          { ac_try='test -z "$ac_c_werror_flag"
26849                          || test ! -s conftest.err'
26850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851   (eval $ac_try) 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; } &&
26855          { ac_try='test -s conftest.$ac_objext'
26856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857   (eval $ac_try) 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); }; }; then
26861   ac_cv_type_size_t=yes
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866 ac_cv_type_size_t=no
26867 fi
26868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26869 fi
26870 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26871 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26872 if test $ac_cv_type_size_t = yes; then
26873   :
26874 else
26875
26876 cat >>confdefs.h <<_ACEOF
26877 #define size_t unsigned
26878 _ACEOF
26879
26880 fi
26881
26882 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26883 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26884 if test "${ac_cv_type_signal+set}" = set; then
26885   echo $ECHO_N "(cached) $ECHO_C" >&6
26886 else
26887   cat >conftest.$ac_ext <<_ACEOF
26888 /* confdefs.h.  */
26889 _ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h.  */
26893 #include <sys/types.h>
26894 #include <signal.h>
26895 #ifdef signal
26896 # undef signal
26897 #endif
26898 #ifdef __cplusplus
26899 extern "C" void (*signal (int, void (*)(int)))(int);
26900 #else
26901 void (*signal ()) ();
26902 #endif
26903
26904 int
26905 main ()
26906 {
26907 int i;
26908   ;
26909   return 0;
26910 }
26911 _ACEOF
26912 rm -f conftest.$ac_objext
26913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26914   (eval $ac_compile) 2>conftest.er1
26915   ac_status=$?
26916   grep -v '^ *+' conftest.er1 >conftest.err
26917   rm -f conftest.er1
26918   cat conftest.err >&5
26919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920   (exit $ac_status); } &&
26921          { ac_try='test -z "$ac_c_werror_flag"
26922                          || test ! -s conftest.err'
26923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924   (eval $ac_try) 2>&5
26925   ac_status=$?
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); }; } &&
26928          { ac_try='test -s conftest.$ac_objext'
26929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26930   (eval $ac_try) 2>&5
26931   ac_status=$?
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); }; }; then
26934   ac_cv_type_signal=void
26935 else
26936   echo "$as_me: failed program was:" >&5
26937 sed 's/^/| /' conftest.$ac_ext >&5
26938
26939 ac_cv_type_signal=int
26940 fi
26941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26942 fi
26943 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26944 echo "${ECHO_T}$ac_cv_type_signal" >&6
26945
26946 cat >>confdefs.h <<_ACEOF
26947 #define RETSIGTYPE $ac_cv_type_signal
26948 _ACEOF
26949
26950
26951 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26952 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26953 if test "${ac_cv_struct_tm+set}" = set; then
26954   echo $ECHO_N "(cached) $ECHO_C" >&6
26955 else
26956   cat >conftest.$ac_ext <<_ACEOF
26957 /* confdefs.h.  */
26958 _ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h.  */
26962 #include <sys/types.h>
26963 #include <time.h>
26964
26965 int
26966 main ()
26967 {
26968 struct tm *tp; tp->tm_sec;
26969   ;
26970   return 0;
26971 }
26972 _ACEOF
26973 rm -f conftest.$ac_objext
26974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26975   (eval $ac_compile) 2>conftest.er1
26976   ac_status=$?
26977   grep -v '^ *+' conftest.er1 >conftest.err
26978   rm -f conftest.er1
26979   cat conftest.err >&5
26980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981   (exit $ac_status); } &&
26982          { ac_try='test -z "$ac_c_werror_flag"
26983                          || test ! -s conftest.err'
26984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985   (eval $ac_try) 2>&5
26986   ac_status=$?
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); }; } &&
26989          { ac_try='test -s conftest.$ac_objext'
26990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991   (eval $ac_try) 2>&5
26992   ac_status=$?
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); }; }; then
26995   ac_cv_struct_tm=time.h
26996 else
26997   echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
26999
27000 ac_cv_struct_tm=sys/time.h
27001 fi
27002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27003 fi
27004 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27005 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27006 if test $ac_cv_struct_tm = sys/time.h; then
27007
27008 cat >>confdefs.h <<\_ACEOF
27009 #define TM_IN_SYS_TIME 1
27010 _ACEOF
27011
27012 fi
27013
27014 echo "$as_me:$LINENO: checking for int64_t" >&5
27015 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27016 if test "${ac_cv_type_int64_t+set}" = set; then
27017   echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019   cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h.  */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h.  */
27025 $ac_includes_default
27026 int
27027 main ()
27028 {
27029 if ((int64_t *) 0)
27030   return 0;
27031 if (sizeof (int64_t))
27032   return 0;
27033   ;
27034   return 0;
27035 }
27036 _ACEOF
27037 rm -f conftest.$ac_objext
27038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27039   (eval $ac_compile) 2>conftest.er1
27040   ac_status=$?
27041   grep -v '^ *+' conftest.er1 >conftest.err
27042   rm -f conftest.er1
27043   cat conftest.err >&5
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); } &&
27046          { ac_try='test -z "$ac_c_werror_flag"
27047                          || test ! -s conftest.err'
27048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049   (eval $ac_try) 2>&5
27050   ac_status=$?
27051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052   (exit $ac_status); }; } &&
27053          { ac_try='test -s conftest.$ac_objext'
27054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055   (eval $ac_try) 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; }; then
27059   ac_cv_type_int64_t=yes
27060 else
27061   echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27063
27064 ac_cv_type_int64_t=no
27065 fi
27066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27067 fi
27068 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27069 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27070 if test $ac_cv_type_int64_t = yes; then
27071
27072 cat >>confdefs.h <<_ACEOF
27073 #define HAVE_INT64_T 1
27074 _ACEOF
27075
27076
27077 else
27078   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27079 echo "$as_me: error: Type int64_t required but not found" >&2;}
27080    { (exit 1); exit 1; }; }
27081 fi
27082
27083 echo "$as_me:$LINENO: checking for uint64_t" >&5
27084 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27085 if test "${ac_cv_type_uint64_t+set}" = set; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088   cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h.  */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h.  */
27094 $ac_includes_default
27095 int
27096 main ()
27097 {
27098 if ((uint64_t *) 0)
27099   return 0;
27100 if (sizeof (uint64_t))
27101   return 0;
27102   ;
27103   return 0;
27104 }
27105 _ACEOF
27106 rm -f conftest.$ac_objext
27107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27108   (eval $ac_compile) 2>conftest.er1
27109   ac_status=$?
27110   grep -v '^ *+' conftest.er1 >conftest.err
27111   rm -f conftest.er1
27112   cat conftest.err >&5
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } &&
27115          { ac_try='test -z "$ac_c_werror_flag"
27116                          || test ! -s conftest.err'
27117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118   (eval $ac_try) 2>&5
27119   ac_status=$?
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); }; } &&
27122          { ac_try='test -s conftest.$ac_objext'
27123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124   (eval $ac_try) 2>&5
27125   ac_status=$?
27126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127   (exit $ac_status); }; }; then
27128   ac_cv_type_uint64_t=yes
27129 else
27130   echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.$ac_ext >&5
27132
27133 ac_cv_type_uint64_t=no
27134 fi
27135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27136 fi
27137 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27138 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27139 if test $ac_cv_type_uint64_t = yes; then
27140
27141 cat >>confdefs.h <<_ACEOF
27142 #define HAVE_UINT64_T 1
27143 _ACEOF
27144
27145
27146 else
27147   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27148 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27149 if test "${ac_cv_type_u_int64_t+set}" = set; then
27150   echo $ECHO_N "(cached) $ECHO_C" >&6
27151 else
27152   cat >conftest.$ac_ext <<_ACEOF
27153 /* confdefs.h.  */
27154 _ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h.  */
27158 $ac_includes_default
27159 int
27160 main ()
27161 {
27162 if ((u_int64_t *) 0)
27163   return 0;
27164 if (sizeof (u_int64_t))
27165   return 0;
27166   ;
27167   return 0;
27168 }
27169 _ACEOF
27170 rm -f conftest.$ac_objext
27171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27172   (eval $ac_compile) 2>conftest.er1
27173   ac_status=$?
27174   grep -v '^ *+' conftest.er1 >conftest.err
27175   rm -f conftest.er1
27176   cat conftest.err >&5
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); } &&
27179          { ac_try='test -z "$ac_c_werror_flag"
27180                          || test ! -s conftest.err'
27181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182   (eval $ac_try) 2>&5
27183   ac_status=$?
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); }; } &&
27186          { ac_try='test -s conftest.$ac_objext'
27187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188   (eval $ac_try) 2>&5
27189   ac_status=$?
27190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191   (exit $ac_status); }; }; then
27192   ac_cv_type_u_int64_t=yes
27193 else
27194   echo "$as_me: failed program was:" >&5
27195 sed 's/^/| /' conftest.$ac_ext >&5
27196
27197 ac_cv_type_u_int64_t=no
27198 fi
27199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27200 fi
27201 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27202 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27203 if test $ac_cv_type_u_int64_t = yes; then
27204
27205 cat >>confdefs.h <<_ACEOF
27206 #define HAVE_U_INT64_T 1
27207 _ACEOF
27208
27209
27210 else
27211   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27212 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27213    { (exit 1); exit 1; }; }
27214 fi
27215
27216 fi
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27227 do
27228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27229 echo "$as_me:$LINENO: checking for $ac_func" >&5
27230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27231 if eval "test \"\${$as_ac_var+set}\" = set"; then
27232   echo $ECHO_N "(cached) $ECHO_C" >&6
27233 else
27234   cat >conftest.$ac_ext <<_ACEOF
27235 /* confdefs.h.  */
27236 _ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h.  */
27240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27242 #define $ac_func innocuous_$ac_func
27243
27244 /* System header to define __stub macros and hopefully few prototypes,
27245     which can conflict with char $ac_func (); below.
27246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27247     <limits.h> exists even on freestanding compilers.  */
27248
27249 #ifdef __STDC__
27250 # include <limits.h>
27251 #else
27252 # include <assert.h>
27253 #endif
27254
27255 #undef $ac_func
27256
27257 /* Override any gcc2 internal prototype to avoid an error.  */
27258 #ifdef __cplusplus
27259 extern "C"
27260 {
27261 #endif
27262 /* We use char because int might match the return type of a gcc2
27263    builtin and then its argument prototype would still apply.  */
27264 char $ac_func ();
27265 /* The GNU C library defines this for functions which it implements
27266     to always fail with ENOSYS.  Some functions are actually named
27267     something starting with __ and the normal name is an alias.  */
27268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27269 choke me
27270 #else
27271 char (*f) () = $ac_func;
27272 #endif
27273 #ifdef __cplusplus
27274 }
27275 #endif
27276
27277 int
27278 main ()
27279 {
27280 return f != $ac_func;
27281   ;
27282   return 0;
27283 }
27284 _ACEOF
27285 rm -f conftest.$ac_objext conftest$ac_exeext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27287   (eval $ac_link) 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } &&
27294          { ac_try='test -z "$ac_c_werror_flag"
27295                          || test ! -s conftest.err'
27296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297   (eval $ac_try) 2>&5
27298   ac_status=$?
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); }; } &&
27301          { ac_try='test -s conftest$ac_exeext'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; }; then
27307   eval "$as_ac_var=yes"
27308 else
27309   echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27311
27312 eval "$as_ac_var=no"
27313 fi
27314 rm -f conftest.err conftest.$ac_objext \
27315       conftest$ac_exeext conftest.$ac_ext
27316 fi
27317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27319 if test `eval echo '${'$as_ac_var'}'` = yes; then
27320   cat >>confdefs.h <<_ACEOF
27321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27322 _ACEOF
27323
27324 fi
27325 done
27326
27327
27328
27329
27330 for ac_func in mkdtemp mkstemp mktemp
27331 do
27332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27333 echo "$as_me:$LINENO: checking for $ac_func" >&5
27334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27335 if eval "test \"\${$as_ac_var+set}\" = set"; then
27336   echo $ECHO_N "(cached) $ECHO_C" >&6
27337 else
27338   cat >conftest.$ac_ext <<_ACEOF
27339 /* confdefs.h.  */
27340 _ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h.  */
27344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27346 #define $ac_func innocuous_$ac_func
27347
27348 /* System header to define __stub macros and hopefully few prototypes,
27349     which can conflict with char $ac_func (); below.
27350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27351     <limits.h> exists even on freestanding compilers.  */
27352
27353 #ifdef __STDC__
27354 # include <limits.h>
27355 #else
27356 # include <assert.h>
27357 #endif
27358
27359 #undef $ac_func
27360
27361 /* Override any gcc2 internal prototype to avoid an error.  */
27362 #ifdef __cplusplus
27363 extern "C"
27364 {
27365 #endif
27366 /* We use char because int might match the return type of a gcc2
27367    builtin and then its argument prototype would still apply.  */
27368 char $ac_func ();
27369 /* The GNU C library defines this for functions which it implements
27370     to always fail with ENOSYS.  Some functions are actually named
27371     something starting with __ and the normal name is an alias.  */
27372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27373 choke me
27374 #else
27375 char (*f) () = $ac_func;
27376 #endif
27377 #ifdef __cplusplus
27378 }
27379 #endif
27380
27381 int
27382 main ()
27383 {
27384 return f != $ac_func;
27385   ;
27386   return 0;
27387 }
27388 _ACEOF
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391   (eval $ac_link) 2>conftest.er1
27392   ac_status=$?
27393   grep -v '^ *+' conftest.er1 >conftest.err
27394   rm -f conftest.er1
27395   cat conftest.err >&5
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); } &&
27398          { ac_try='test -z "$ac_c_werror_flag"
27399                          || test ! -s conftest.err'
27400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401   (eval $ac_try) 2>&5
27402   ac_status=$?
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); }; } &&
27405          { ac_try='test -s conftest$ac_exeext'
27406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407   (eval $ac_try) 2>&5
27408   ac_status=$?
27409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); }; }; then
27411   eval "$as_ac_var=yes"
27412 else
27413   echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27415
27416 eval "$as_ac_var=no"
27417 fi
27418 rm -f conftest.err conftest.$ac_objext \
27419       conftest$ac_exeext conftest.$ac_ext
27420 fi
27421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27423 if test `eval echo '${'$as_ac_var'}'` = yes; then
27424   cat >>confdefs.h <<_ACEOF
27425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27426 _ACEOF
27427
27428 fi
27429 done
27430
27431
27432
27433
27434
27435
27436
27437 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27438 do
27439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27440 echo "$as_me:$LINENO: checking for $ac_func" >&5
27441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27442 if eval "test \"\${$as_ac_var+set}\" = set"; then
27443   echo $ECHO_N "(cached) $ECHO_C" >&6
27444 else
27445   cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h.  */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h.  */
27451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27453 #define $ac_func innocuous_$ac_func
27454
27455 /* System header to define __stub macros and hopefully few prototypes,
27456     which can conflict with char $ac_func (); below.
27457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27458     <limits.h> exists even on freestanding compilers.  */
27459
27460 #ifdef __STDC__
27461 # include <limits.h>
27462 #else
27463 # include <assert.h>
27464 #endif
27465
27466 #undef $ac_func
27467
27468 /* Override any gcc2 internal prototype to avoid an error.  */
27469 #ifdef __cplusplus
27470 extern "C"
27471 {
27472 #endif
27473 /* We use char because int might match the return type of a gcc2
27474    builtin and then its argument prototype would still apply.  */
27475 char $ac_func ();
27476 /* The GNU C library defines this for functions which it implements
27477     to always fail with ENOSYS.  Some functions are actually named
27478     something starting with __ and the normal name is an alias.  */
27479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27480 choke me
27481 #else
27482 char (*f) () = $ac_func;
27483 #endif
27484 #ifdef __cplusplus
27485 }
27486 #endif
27487
27488 int
27489 main ()
27490 {
27491 return f != $ac_func;
27492   ;
27493   return 0;
27494 }
27495 _ACEOF
27496 rm -f conftest.$ac_objext conftest$ac_exeext
27497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27498   (eval $ac_link) 2>conftest.er1
27499   ac_status=$?
27500   grep -v '^ *+' conftest.er1 >conftest.err
27501   rm -f conftest.er1
27502   cat conftest.err >&5
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); } &&
27505          { ac_try='test -z "$ac_c_werror_flag"
27506                          || test ! -s conftest.err'
27507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508   (eval $ac_try) 2>&5
27509   ac_status=$?
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); }; } &&
27512          { ac_try='test -s conftest$ac_exeext'
27513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514   (eval $ac_try) 2>&5
27515   ac_status=$?
27516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517   (exit $ac_status); }; }; then
27518   eval "$as_ac_var=yes"
27519 else
27520   echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27522
27523 eval "$as_ac_var=no"
27524 fi
27525 rm -f conftest.err conftest.$ac_objext \
27526       conftest$ac_exeext conftest.$ac_ext
27527 fi
27528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27530 if test `eval echo '${'$as_ac_var'}'` = yes; then
27531   cat >>confdefs.h <<_ACEOF
27532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27533 _ACEOF
27534
27535 fi
27536 done
27537
27538
27539
27540
27541 for ac_func in strtoll strtoq sysconf
27542 do
27543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27544 echo "$as_me:$LINENO: checking for $ac_func" >&5
27545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27546 if eval "test \"\${$as_ac_var+set}\" = set"; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27557 #define $ac_func innocuous_$ac_func
27558
27559 /* System header to define __stub macros and hopefully few prototypes,
27560     which can conflict with char $ac_func (); below.
27561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27562     <limits.h> exists even on freestanding compilers.  */
27563
27564 #ifdef __STDC__
27565 # include <limits.h>
27566 #else
27567 # include <assert.h>
27568 #endif
27569
27570 #undef $ac_func
27571
27572 /* Override any gcc2 internal prototype to avoid an error.  */
27573 #ifdef __cplusplus
27574 extern "C"
27575 {
27576 #endif
27577 /* We use char because int might match the return type of a gcc2
27578    builtin and then its argument prototype would still apply.  */
27579 char $ac_func ();
27580 /* The GNU C library defines this for functions which it implements
27581     to always fail with ENOSYS.  Some functions are actually named
27582     something starting with __ and the normal name is an alias.  */
27583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27584 choke me
27585 #else
27586 char (*f) () = $ac_func;
27587 #endif
27588 #ifdef __cplusplus
27589 }
27590 #endif
27591
27592 int
27593 main ()
27594 {
27595 return f != $ac_func;
27596   ;
27597   return 0;
27598 }
27599 _ACEOF
27600 rm -f conftest.$ac_objext conftest$ac_exeext
27601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27602   (eval $ac_link) 2>conftest.er1
27603   ac_status=$?
27604   grep -v '^ *+' conftest.er1 >conftest.err
27605   rm -f conftest.er1
27606   cat conftest.err >&5
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); } &&
27609          { ac_try='test -z "$ac_c_werror_flag"
27610                          || test ! -s conftest.err'
27611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612   (eval $ac_try) 2>&5
27613   ac_status=$?
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); }; } &&
27616          { ac_try='test -s conftest$ac_exeext'
27617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618   (eval $ac_try) 2>&5
27619   ac_status=$?
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); }; }; then
27622   eval "$as_ac_var=yes"
27623 else
27624   echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27626
27627 eval "$as_ac_var=no"
27628 fi
27629 rm -f conftest.err conftest.$ac_objext \
27630       conftest$ac_exeext conftest.$ac_ext
27631 fi
27632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27634 if test `eval echo '${'$as_ac_var'}'` = yes; then
27635   cat >>confdefs.h <<_ACEOF
27636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27637 _ACEOF
27638
27639 fi
27640 done
27641
27642 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27643 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27644 if test "${llvm_cv_c_printf_a+set}" = set; then
27645   echo $ECHO_N "(cached) $ECHO_C" >&6
27646 else
27647   ac_ext=c
27648 ac_cpp='$CPP $CPPFLAGS'
27649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27652
27653  if test "$cross_compiling" = yes; then
27654   llvmac_cv_c_printf_a=no
27655 else
27656   cat >conftest.$ac_ext <<_ACEOF
27657
27658   /* confdefs.h.  */
27659 _ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h.  */
27663
27664 #include <stdio.h>
27665 #include <stdlib.h>
27666
27667 int
27668 main ()
27669 {
27670
27671 volatile double A, B;
27672 char Buffer[100];
27673 A = 1;
27674 A /= 10.0;
27675 sprintf(Buffer, "%a", A);
27676 B = atof(Buffer);
27677 if (A != B)
27678   return (1);
27679 if (A != 0x1.999999999999ap-4)
27680   return (1);
27681 return (0);
27682   ;
27683   return 0;
27684 }
27685 _ACEOF
27686 rm -f conftest$ac_exeext
27687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27688   (eval $ac_link) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693   (eval $ac_try) 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; }; then
27697   llvm_cv_c_printf_a=yes
27698 else
27699   echo "$as_me: program exited with status $ac_status" >&5
27700 echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 ( exit $ac_status )
27704 llvmac_cv_c_printf_a=no
27705 fi
27706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27707 fi
27708  ac_ext=c
27709 ac_cpp='$CPP $CPPFLAGS'
27710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27713
27714 fi
27715 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27716 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27717  if test "$llvm_cv_c_printf_a" = "yes"; then
27718
27719 cat >>confdefs.h <<\_ACEOF
27720 #define HAVE_PRINTF_A 1
27721 _ACEOF
27722
27723  fi
27724
27725 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27726 # for constant arguments.  Useless!
27727 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27728 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27729 if test "${ac_cv_working_alloca_h+set}" = set; then
27730   echo $ECHO_N "(cached) $ECHO_C" >&6
27731 else
27732   cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 #include <alloca.h>
27739 int
27740 main ()
27741 {
27742 char *p = (char *) alloca (2 * sizeof (int));
27743   ;
27744   return 0;
27745 }
27746 _ACEOF
27747 rm -f conftest.$ac_objext conftest$ac_exeext
27748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27749   (eval $ac_link) 2>conftest.er1
27750   ac_status=$?
27751   grep -v '^ *+' conftest.er1 >conftest.err
27752   rm -f conftest.er1
27753   cat conftest.err >&5
27754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755   (exit $ac_status); } &&
27756          { ac_try='test -z "$ac_c_werror_flag"
27757                          || test ! -s conftest.err'
27758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27759   (eval $ac_try) 2>&5
27760   ac_status=$?
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); }; } &&
27763          { ac_try='test -s conftest$ac_exeext'
27764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765   (eval $ac_try) 2>&5
27766   ac_status=$?
27767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768   (exit $ac_status); }; }; then
27769   ac_cv_working_alloca_h=yes
27770 else
27771   echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27773
27774 ac_cv_working_alloca_h=no
27775 fi
27776 rm -f conftest.err conftest.$ac_objext \
27777       conftest$ac_exeext conftest.$ac_ext
27778 fi
27779 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27780 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27781 if test $ac_cv_working_alloca_h = yes; then
27782
27783 cat >>confdefs.h <<\_ACEOF
27784 #define HAVE_ALLOCA_H 1
27785 _ACEOF
27786
27787 fi
27788
27789 echo "$as_me:$LINENO: checking for alloca" >&5
27790 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27791 if test "${ac_cv_func_alloca_works+set}" = set; then
27792   echo $ECHO_N "(cached) $ECHO_C" >&6
27793 else
27794   cat >conftest.$ac_ext <<_ACEOF
27795 /* confdefs.h.  */
27796 _ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h.  */
27800 #ifdef __GNUC__
27801 # define alloca __builtin_alloca
27802 #else
27803 # ifdef _MSC_VER
27804 #  include <malloc.h>
27805 #  define alloca _alloca
27806 # else
27807 #  if HAVE_ALLOCA_H
27808 #   include <alloca.h>
27809 #  else
27810 #   ifdef _AIX
27811  #pragma alloca
27812 #   else
27813 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27814 char *alloca ();
27815 #    endif
27816 #   endif
27817 #  endif
27818 # endif
27819 #endif
27820
27821 int
27822 main ()
27823 {
27824 char *p = (char *) alloca (1);
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27831   (eval $ac_link) 2>conftest.er1
27832   ac_status=$?
27833   grep -v '^ *+' conftest.er1 >conftest.err
27834   rm -f conftest.er1
27835   cat conftest.err >&5
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); } &&
27838          { ac_try='test -z "$ac_c_werror_flag"
27839                          || test ! -s conftest.err'
27840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841   (eval $ac_try) 2>&5
27842   ac_status=$?
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); }; } &&
27845          { ac_try='test -s conftest$ac_exeext'
27846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847   (eval $ac_try) 2>&5
27848   ac_status=$?
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); }; }; then
27851   ac_cv_func_alloca_works=yes
27852 else
27853   echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27855
27856 ac_cv_func_alloca_works=no
27857 fi
27858 rm -f conftest.err conftest.$ac_objext \
27859       conftest$ac_exeext conftest.$ac_ext
27860 fi
27861 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27862 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27863
27864 if test $ac_cv_func_alloca_works = yes; then
27865
27866 cat >>confdefs.h <<\_ACEOF
27867 #define HAVE_ALLOCA 1
27868 _ACEOF
27869
27870 else
27871   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27872 # that cause trouble.  Some versions do not even contain alloca or
27873 # contain a buggy version.  If you still want to use their alloca,
27874 # use ar to extract alloca.o from them instead of compiling alloca.c.
27875
27876 ALLOCA=alloca.$ac_objext
27877
27878 cat >>confdefs.h <<\_ACEOF
27879 #define C_ALLOCA 1
27880 _ACEOF
27881
27882
27883 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27884 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27885 if test "${ac_cv_os_cray+set}" = set; then
27886   echo $ECHO_N "(cached) $ECHO_C" >&6
27887 else
27888   cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h.  */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h.  */
27894 #if defined(CRAY) && ! defined(CRAY2)
27895 webecray
27896 #else
27897 wenotbecray
27898 #endif
27899
27900 _ACEOF
27901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27902   $EGREP "webecray" >/dev/null 2>&1; then
27903   ac_cv_os_cray=yes
27904 else
27905   ac_cv_os_cray=no
27906 fi
27907 rm -f conftest*
27908
27909 fi
27910 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27911 echo "${ECHO_T}$ac_cv_os_cray" >&6
27912 if test $ac_cv_os_cray = yes; then
27913   for ac_func in _getb67 GETB67 getb67; do
27914     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27915 echo "$as_me:$LINENO: checking for $ac_func" >&5
27916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27917 if eval "test \"\${$as_ac_var+set}\" = set"; then
27918   echo $ECHO_N "(cached) $ECHO_C" >&6
27919 else
27920   cat >conftest.$ac_ext <<_ACEOF
27921 /* confdefs.h.  */
27922 _ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h.  */
27926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27928 #define $ac_func innocuous_$ac_func
27929
27930 /* System header to define __stub macros and hopefully few prototypes,
27931     which can conflict with char $ac_func (); below.
27932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27933     <limits.h> exists even on freestanding compilers.  */
27934
27935 #ifdef __STDC__
27936 # include <limits.h>
27937 #else
27938 # include <assert.h>
27939 #endif
27940
27941 #undef $ac_func
27942
27943 /* Override any gcc2 internal prototype to avoid an error.  */
27944 #ifdef __cplusplus
27945 extern "C"
27946 {
27947 #endif
27948 /* We use char because int might match the return type of a gcc2
27949    builtin and then its argument prototype would still apply.  */
27950 char $ac_func ();
27951 /* The GNU C library defines this for functions which it implements
27952     to always fail with ENOSYS.  Some functions are actually named
27953     something starting with __ and the normal name is an alias.  */
27954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27955 choke me
27956 #else
27957 char (*f) () = $ac_func;
27958 #endif
27959 #ifdef __cplusplus
27960 }
27961 #endif
27962
27963 int
27964 main ()
27965 {
27966 return f != $ac_func;
27967   ;
27968   return 0;
27969 }
27970 _ACEOF
27971 rm -f conftest.$ac_objext conftest$ac_exeext
27972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27973   (eval $ac_link) 2>conftest.er1
27974   ac_status=$?
27975   grep -v '^ *+' conftest.er1 >conftest.err
27976   rm -f conftest.er1
27977   cat conftest.err >&5
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); } &&
27980          { ac_try='test -z "$ac_c_werror_flag"
27981                          || test ! -s conftest.err'
27982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983   (eval $ac_try) 2>&5
27984   ac_status=$?
27985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986   (exit $ac_status); }; } &&
27987          { ac_try='test -s conftest$ac_exeext'
27988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989   (eval $ac_try) 2>&5
27990   ac_status=$?
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); }; }; then
27993   eval "$as_ac_var=yes"
27994 else
27995   echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27997
27998 eval "$as_ac_var=no"
27999 fi
28000 rm -f conftest.err conftest.$ac_objext \
28001       conftest$ac_exeext conftest.$ac_ext
28002 fi
28003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28005 if test `eval echo '${'$as_ac_var'}'` = yes; then
28006
28007 cat >>confdefs.h <<_ACEOF
28008 #define CRAY_STACKSEG_END $ac_func
28009 _ACEOF
28010
28011     break
28012 fi
28013
28014   done
28015 fi
28016
28017 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28018 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28019 if test "${ac_cv_c_stack_direction+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   if test "$cross_compiling" = yes; then
28023   ac_cv_c_stack_direction=0
28024 else
28025   cat >conftest.$ac_ext <<_ACEOF
28026 /* confdefs.h.  */
28027 _ACEOF
28028 cat confdefs.h >>conftest.$ac_ext
28029 cat >>conftest.$ac_ext <<_ACEOF
28030 /* end confdefs.h.  */
28031 int
28032 find_stack_direction ()
28033 {
28034   static char *addr = 0;
28035   auto char dummy;
28036   if (addr == 0)
28037     {
28038       addr = &dummy;
28039       return find_stack_direction ();
28040     }
28041   else
28042     return (&dummy > addr) ? 1 : -1;
28043 }
28044
28045 int
28046 main ()
28047 {
28048   exit (find_stack_direction () < 0);
28049 }
28050 _ACEOF
28051 rm -f conftest$ac_exeext
28052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28053   (eval $ac_link) 2>&5
28054   ac_status=$?
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058   (eval $ac_try) 2>&5
28059   ac_status=$?
28060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); }; }; then
28062   ac_cv_c_stack_direction=1
28063 else
28064   echo "$as_me: program exited with status $ac_status" >&5
28065 echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28067
28068 ( exit $ac_status )
28069 ac_cv_c_stack_direction=-1
28070 fi
28071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28072 fi
28073 fi
28074 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28075 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28076
28077 cat >>confdefs.h <<_ACEOF
28078 #define STACK_DIRECTION $ac_cv_c_stack_direction
28079 _ACEOF
28080
28081
28082 fi
28083
28084
28085 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28086 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28087 if test "${ac_cv_func_rand48+set}" = set; then
28088   echo $ECHO_N "(cached) $ECHO_C" >&6
28089 else
28090   ac_ext=cc
28091 ac_cpp='$CXXCPP $CPPFLAGS'
28092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28095
28096    cat >conftest.$ac_ext <<_ACEOF
28097 /* confdefs.h.  */
28098 _ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h.  */
28102 #include <stdlib.h>
28103 int
28104 main ()
28105 {
28106 srand48(0);lrand48();drand48();
28107   ;
28108   return 0;
28109 }
28110 _ACEOF
28111 rm -f conftest.$ac_objext
28112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28113   (eval $ac_compile) 2>conftest.er1
28114   ac_status=$?
28115   grep -v '^ *+' conftest.er1 >conftest.err
28116   rm -f conftest.er1
28117   cat conftest.err >&5
28118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119   (exit $ac_status); } &&
28120          { ac_try='test -z "$ac_cxx_werror_flag"
28121                          || test ! -s conftest.err'
28122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123   (eval $ac_try) 2>&5
28124   ac_status=$?
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); }; } &&
28127          { ac_try='test -s conftest.$ac_objext'
28128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129   (eval $ac_try) 2>&5
28130   ac_status=$?
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); }; }; then
28133   ac_cv_func_rand48=yes
28134 else
28135   echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28137
28138 ac_cv_func_rand48=no
28139 fi
28140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28141   ac_ext=c
28142 ac_cpp='$CPP $CPPFLAGS'
28143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28146
28147 fi
28148 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28149 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28150
28151 if test "$ac_cv_func_rand48" = "yes" ; then
28152
28153 cat >>confdefs.h <<\_ACEOF
28154 #define HAVE_RAND48 1
28155 _ACEOF
28156
28157 fi
28158
28159
28160 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28161 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28162 if test "${ac_cv_cxx_namespaces+set}" = set; then
28163   echo $ECHO_N "(cached) $ECHO_C" >&6
28164 else
28165   ac_ext=cc
28166 ac_cpp='$CXXCPP $CPPFLAGS'
28167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28170
28171  cat >conftest.$ac_ext <<_ACEOF
28172 /* confdefs.h.  */
28173 _ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h.  */
28177 namespace Outer { namespace Inner { int i = 0; }}
28178 int
28179 main ()
28180 {
28181 using namespace Outer::Inner; return i;
28182   ;
28183   return 0;
28184 }
28185 _ACEOF
28186 rm -f conftest.$ac_objext
28187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28188   (eval $ac_compile) 2>conftest.er1
28189   ac_status=$?
28190   grep -v '^ *+' conftest.er1 >conftest.err
28191   rm -f conftest.er1
28192   cat conftest.err >&5
28193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194   (exit $ac_status); } &&
28195          { ac_try='test -z "$ac_cxx_werror_flag"
28196                          || test ! -s conftest.err'
28197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198   (eval $ac_try) 2>&5
28199   ac_status=$?
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); }; } &&
28202          { ac_try='test -s conftest.$ac_objext'
28203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204   (eval $ac_try) 2>&5
28205   ac_status=$?
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); }; }; then
28208   ac_cv_cxx_namespaces=yes
28209 else
28210   echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213 ac_cv_cxx_namespaces=no
28214 fi
28215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28216  ac_ext=c
28217 ac_cpp='$CPP $CPPFLAGS'
28218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28221
28222
28223 fi
28224 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28225 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28226 if test "$ac_cv_cxx_namespaces" = yes; then
28227
28228 cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_NAMESPACES
28230 _ACEOF
28231
28232 fi
28233
28234 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28235 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28236 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28237   echo $ECHO_N "(cached) $ECHO_C" >&6
28238 else
28239
28240   ac_ext=cc
28241 ac_cpp='$CXXCPP $CPPFLAGS'
28242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28245
28246   cat >conftest.$ac_ext <<_ACEOF
28247 /* confdefs.h.  */
28248 _ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h.  */
28252 #include <ext/hash_map>
28253 #ifdef HAVE_NAMESPACES
28254 using namespace std;
28255 #endif
28256 int
28257 main ()
28258 {
28259 hash_map<int, int> t;
28260   ;
28261   return 0;
28262 }
28263 _ACEOF
28264 rm -f conftest.$ac_objext
28265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28266   (eval $ac_compile) 2>conftest.er1
28267   ac_status=$?
28268   grep -v '^ *+' conftest.er1 >conftest.err
28269   rm -f conftest.er1
28270   cat conftest.err >&5
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); } &&
28273          { ac_try='test -z "$ac_cxx_werror_flag"
28274                          || test ! -s conftest.err'
28275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276   (eval $ac_try) 2>&5
28277   ac_status=$?
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); }; } &&
28280          { ac_try='test -s conftest.$ac_objext'
28281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282   (eval $ac_try) 2>&5
28283   ac_status=$?
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); }; }; then
28286   ac_cv_cxx_have_std_ext_hash_map=yes
28287 else
28288   echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28290
28291 ac_cv_cxx_have_std_ext_hash_map=no
28292 fi
28293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28294   ac_ext=c
28295 ac_cpp='$CPP $CPPFLAGS'
28296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28299
28300 fi
28301 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28302 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28303  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28304  then
28305
28306 cat >>confdefs.h <<\_ACEOF
28307 #define HAVE_STD_EXT_HASH_MAP 1
28308 _ACEOF
28309
28310  else
28311
28312 cat >>confdefs.h <<\_ACEOF
28313 #define HAVE_STD_EXT_HASH_MAP 0
28314 _ACEOF
28315
28316  fi
28317
28318  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28319 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28320 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28321   echo $ECHO_N "(cached) $ECHO_C" >&6
28322 else
28323
28324   ac_ext=cc
28325 ac_cpp='$CXXCPP $CPPFLAGS'
28326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28329
28330   cat >conftest.$ac_ext <<_ACEOF
28331 /* confdefs.h.  */
28332 _ACEOF
28333 cat confdefs.h >>conftest.$ac_ext
28334 cat >>conftest.$ac_ext <<_ACEOF
28335 /* end confdefs.h.  */
28336 #include <ext/hash_map>
28337 #ifdef HAVE_NAMESPACES
28338 using namespace __gnu_cxx;
28339 #endif
28340 int
28341 main ()
28342 {
28343 hash_map<int,int> t;
28344   ;
28345   return 0;
28346 }
28347 _ACEOF
28348 rm -f conftest.$ac_objext
28349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28350   (eval $ac_compile) 2>conftest.er1
28351   ac_status=$?
28352   grep -v '^ *+' conftest.er1 >conftest.err
28353   rm -f conftest.er1
28354   cat conftest.err >&5
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); } &&
28357          { ac_try='test -z "$ac_cxx_werror_flag"
28358                          || test ! -s conftest.err'
28359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360   (eval $ac_try) 2>&5
28361   ac_status=$?
28362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363   (exit $ac_status); }; } &&
28364          { ac_try='test -s conftest.$ac_objext'
28365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366   (eval $ac_try) 2>&5
28367   ac_status=$?
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); }; }; then
28370   ac_cv_cxx_have_gnu_ext_hash_map=yes
28371 else
28372   echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375 ac_cv_cxx_have_gnu_ext_hash_map=no
28376 fi
28377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28378   ac_ext=c
28379 ac_cpp='$CPP $CPPFLAGS'
28380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28383
28384 fi
28385 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28386 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28387  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28388  then
28389
28390 cat >>confdefs.h <<\_ACEOF
28391 #define HAVE_GNU_EXT_HASH_MAP 1
28392 _ACEOF
28393
28394  else
28395
28396 cat >>confdefs.h <<\_ACEOF
28397 #define HAVE_GNU_EXT_HASH_MAP 0
28398 _ACEOF
28399
28400  fi
28401
28402  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28403 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28404 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28405   echo $ECHO_N "(cached) $ECHO_C" >&6
28406 else
28407
28408   ac_ext=cc
28409 ac_cpp='$CXXCPP $CPPFLAGS'
28410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28413
28414   cat >conftest.$ac_ext <<_ACEOF
28415 /* confdefs.h.  */
28416 _ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h.  */
28420 #include <hash_map>
28421 int
28422 main ()
28423 {
28424 hash_map<int,int> t;
28425   ;
28426   return 0;
28427 }
28428 _ACEOF
28429 rm -f conftest.$ac_objext
28430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28431   (eval $ac_compile) 2>conftest.er1
28432   ac_status=$?
28433   grep -v '^ *+' conftest.er1 >conftest.err
28434   rm -f conftest.er1
28435   cat conftest.err >&5
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); } &&
28438          { ac_try='test -z "$ac_cxx_werror_flag"
28439                          || test ! -s conftest.err'
28440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441   (eval $ac_try) 2>&5
28442   ac_status=$?
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); }; } &&
28445          { ac_try='test -s conftest.$ac_objext'
28446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447   (eval $ac_try) 2>&5
28448   ac_status=$?
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); }; }; then
28451   ac_cv_cxx_have_global_hash_map=yes
28452 else
28453   echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28455
28456 ac_cv_cxx_have_global_hash_map=no
28457 fi
28458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28459   ac_ext=c
28460 ac_cpp='$CPP $CPPFLAGS'
28461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28464
28465 fi
28466 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28467 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28468  if test "$ac_cv_cxx_have_global_hash_map" = yes
28469  then
28470
28471 cat >>confdefs.h <<\_ACEOF
28472 #define HAVE_GLOBAL_HASH_MAP 1
28473 _ACEOF
28474
28475  else
28476
28477 cat >>confdefs.h <<\_ACEOF
28478 #define HAVE_GLOBAL_HASH_MAP 0
28479 _ACEOF
28480
28481  fi
28482
28483 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28484 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28485 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28486   echo $ECHO_N "(cached) $ECHO_C" >&6
28487 else
28488
28489   ac_ext=cc
28490 ac_cpp='$CXXCPP $CPPFLAGS'
28491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28494
28495   cat >conftest.$ac_ext <<_ACEOF
28496 /* confdefs.h.  */
28497 _ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h.  */
28501 #include <ext/hash_set>
28502 #ifdef HAVE_NAMESPACES
28503 using namespace std;
28504 #endif
28505 int
28506 main ()
28507 {
28508 hash_set<int> t;
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 rm -f conftest.$ac_objext
28514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28515   (eval $ac_compile) 2>conftest.er1
28516   ac_status=$?
28517   grep -v '^ *+' conftest.er1 >conftest.err
28518   rm -f conftest.er1
28519   cat conftest.err >&5
28520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); } &&
28522          { ac_try='test -z "$ac_cxx_werror_flag"
28523                          || test ! -s conftest.err'
28524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525   (eval $ac_try) 2>&5
28526   ac_status=$?
28527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); }; } &&
28529          { ac_try='test -s conftest.$ac_objext'
28530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531   (eval $ac_try) 2>&5
28532   ac_status=$?
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); }; }; then
28535   ac_cv_cxx_have_std_ext_hash_set=yes
28536 else
28537   echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540 ac_cv_cxx_have_std_ext_hash_set=no
28541 fi
28542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28543   ac_ext=c
28544 ac_cpp='$CPP $CPPFLAGS'
28545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28548
28549 fi
28550 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28551 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28552  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28553  then
28554
28555 cat >>confdefs.h <<\_ACEOF
28556 #define HAVE_STD_EXT_HASH_SET 1
28557 _ACEOF
28558
28559  else
28560
28561 cat >>confdefs.h <<\_ACEOF
28562 #define HAVE_STD_EXT_HASH_SET 0
28563 _ACEOF
28564
28565  fi
28566
28567  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28568 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28569 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28570   echo $ECHO_N "(cached) $ECHO_C" >&6
28571 else
28572
28573   ac_ext=cc
28574 ac_cpp='$CXXCPP $CPPFLAGS'
28575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28578
28579   cat >conftest.$ac_ext <<_ACEOF
28580 /* confdefs.h.  */
28581 _ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h.  */
28585 #include <ext/hash_set>
28586 #ifdef HAVE_NAMESPACES
28587 using namespace __gnu_cxx;
28588 #endif
28589 int
28590 main ()
28591 {
28592 hash_set<int> t;
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 rm -f conftest.$ac_objext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28599   (eval $ac_compile) 2>conftest.er1
28600   ac_status=$?
28601   grep -v '^ *+' conftest.er1 >conftest.err
28602   rm -f conftest.er1
28603   cat conftest.err >&5
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); } &&
28606          { ac_try='test -z "$ac_cxx_werror_flag"
28607                          || test ! -s conftest.err'
28608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609   (eval $ac_try) 2>&5
28610   ac_status=$?
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); }; } &&
28613          { ac_try='test -s conftest.$ac_objext'
28614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615   (eval $ac_try) 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; }; then
28619   ac_cv_cxx_have_gnu_ext_hash_set=yes
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 ac_cv_cxx_have_gnu_ext_hash_set=no
28625 fi
28626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28627   ac_ext=c
28628 ac_cpp='$CPP $CPPFLAGS'
28629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28632
28633 fi
28634 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28635 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28636  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28637  then
28638
28639 cat >>confdefs.h <<\_ACEOF
28640 #define HAVE_GNU_EXT_HASH_SET 1
28641 _ACEOF
28642
28643  else
28644
28645 cat >>confdefs.h <<\_ACEOF
28646 #define HAVE_GNU_EXT_HASH_SET 0
28647 _ACEOF
28648
28649  fi
28650
28651  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28652 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28653 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 else
28656
28657   ac_ext=cc
28658 ac_cpp='$CXXCPP $CPPFLAGS'
28659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28662
28663   cat >conftest.$ac_ext <<_ACEOF
28664 /* confdefs.h.  */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h.  */
28669 #include <hash_set>
28670 int
28671 main ()
28672 {
28673 hash_set<int> t; return 0;
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 rm -f conftest.$ac_objext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28680   (eval $ac_compile) 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -z "$ac_cxx_werror_flag"
28688                          || test ! -s conftest.err'
28689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690   (eval $ac_try) 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest.$ac_objext'
28695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696   (eval $ac_try) 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   ac_cv_cxx_have_global_hash_set=yes
28701 else
28702   echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 ac_cv_cxx_have_global_hash_set=no
28706 fi
28707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28708   ac_ext=c
28709 ac_cpp='$CPP $CPPFLAGS'
28710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28713
28714 fi
28715 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28716 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28717  if test "$ac_cv_cxx_have_global_hash_set" = yes
28718  then
28719
28720 cat >>confdefs.h <<\_ACEOF
28721 #define HAVE_GLOBAL_HASH_SET 1
28722 _ACEOF
28723
28724  else
28725
28726 cat >>confdefs.h <<\_ACEOF
28727 #define HAVE_GLOBAL_HASH_SET 0
28728 _ACEOF
28729
28730  fi
28731
28732 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28733 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28734 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28735   echo $ECHO_N "(cached) $ECHO_C" >&6
28736 else
28737
28738   ac_ext=cc
28739 ac_cpp='$CXXCPP $CPPFLAGS'
28740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28743
28744   cat >conftest.$ac_ext <<_ACEOF
28745 /* confdefs.h.  */
28746 _ACEOF
28747 cat confdefs.h >>conftest.$ac_ext
28748 cat >>conftest.$ac_ext <<_ACEOF
28749 /* end confdefs.h.  */
28750 #include <iterator>
28751 #ifdef HAVE_NAMESPACES
28752 using namespace std;
28753 #endif
28754 int
28755 main ()
28756 {
28757 iterator<int,int,int> t; return 0;
28758   ;
28759   return 0;
28760 }
28761 _ACEOF
28762 rm -f conftest.$ac_objext
28763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28764   (eval $ac_compile) 2>conftest.er1
28765   ac_status=$?
28766   grep -v '^ *+' conftest.er1 >conftest.err
28767   rm -f conftest.er1
28768   cat conftest.err >&5
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); } &&
28771          { ac_try='test -z "$ac_cxx_werror_flag"
28772                          || test ! -s conftest.err'
28773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774   (eval $ac_try) 2>&5
28775   ac_status=$?
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); }; } &&
28778          { ac_try='test -s conftest.$ac_objext'
28779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780   (eval $ac_try) 2>&5
28781   ac_status=$?
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); }; }; then
28784   ac_cv_cxx_have_std_iterator=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789 ac_cv_cxx_have_std_iterator=no
28790 fi
28791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28792   ac_ext=c
28793 ac_cpp='$CPP $CPPFLAGS'
28794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28797
28798
28799 fi
28800 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28801 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28802 if test "$ac_cv_cxx_have_std_iterator" = yes
28803 then
28804
28805 cat >>confdefs.h <<\_ACEOF
28806 #define HAVE_STD_ITERATOR 1
28807 _ACEOF
28808
28809 else
28810
28811 cat >>confdefs.h <<\_ACEOF
28812 #define HAVE_STD_ITERATOR 0
28813 _ACEOF
28814
28815 fi
28816
28817 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28818 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28819 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28820   echo $ECHO_N "(cached) $ECHO_C" >&6
28821 else
28822
28823   ac_ext=cc
28824 ac_cpp='$CXXCPP $CPPFLAGS'
28825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28828
28829   cat >conftest.$ac_ext <<_ACEOF
28830 /* confdefs.h.  */
28831 _ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h.  */
28835 #include <iterator>
28836 #ifdef HAVE_NAMESPACES
28837 using namespace std;
28838 #endif
28839 int
28840 main ()
28841 {
28842 bidirectional_iterator<int,int> t; return 0;
28843   ;
28844   return 0;
28845 }
28846 _ACEOF
28847 rm -f conftest.$ac_objext
28848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28849   (eval $ac_compile) 2>conftest.er1
28850   ac_status=$?
28851   grep -v '^ *+' conftest.er1 >conftest.err
28852   rm -f conftest.er1
28853   cat conftest.err >&5
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); } &&
28856          { ac_try='test -z "$ac_cxx_werror_flag"
28857                          || test ! -s conftest.err'
28858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859   (eval $ac_try) 2>&5
28860   ac_status=$?
28861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862   (exit $ac_status); }; } &&
28863          { ac_try='test -s conftest.$ac_objext'
28864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865   (eval $ac_try) 2>&5
28866   ac_status=$?
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); }; }; then
28869   ac_cv_cxx_have_bi_iterator=yes
28870 else
28871   echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28873
28874 ac_cv_cxx_have_bi_iterator=no
28875 fi
28876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28877   ac_ext=c
28878 ac_cpp='$CPP $CPPFLAGS'
28879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28882
28883
28884 fi
28885 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28886 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28887 if test "$ac_cv_cxx_have_bi_iterator" = yes
28888 then
28889
28890 cat >>confdefs.h <<\_ACEOF
28891 #define HAVE_BI_ITERATOR 1
28892 _ACEOF
28893
28894 else
28895
28896 cat >>confdefs.h <<\_ACEOF
28897 #define HAVE_BI_ITERATOR 0
28898 _ACEOF
28899
28900 fi
28901
28902 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28903 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28904 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28905   echo $ECHO_N "(cached) $ECHO_C" >&6
28906 else
28907
28908   ac_ext=cc
28909 ac_cpp='$CXXCPP $CPPFLAGS'
28910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28913
28914   cat >conftest.$ac_ext <<_ACEOF
28915 /* confdefs.h.  */
28916 _ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h.  */
28920 #include <iterator>
28921 #ifdef HAVE_NAMESPACES
28922 using namespace std;
28923 #endif
28924 int
28925 main ()
28926 {
28927 forward_iterator<int,int> t; return 0;
28928   ;
28929   return 0;
28930 }
28931 _ACEOF
28932 rm -f conftest.$ac_objext
28933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28934   (eval $ac_compile) 2>conftest.er1
28935   ac_status=$?
28936   grep -v '^ *+' conftest.er1 >conftest.err
28937   rm -f conftest.er1
28938   cat conftest.err >&5
28939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940   (exit $ac_status); } &&
28941          { ac_try='test -z "$ac_cxx_werror_flag"
28942                          || test ! -s conftest.err'
28943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944   (eval $ac_try) 2>&5
28945   ac_status=$?
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); }; } &&
28948          { ac_try='test -s conftest.$ac_objext'
28949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28950   (eval $ac_try) 2>&5
28951   ac_status=$?
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); }; }; then
28954   ac_cv_cxx_have_fwd_iterator=yes
28955 else
28956   echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28958
28959 ac_cv_cxx_have_fwd_iterator=no
28960 fi
28961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28962   ac_ext=c
28963 ac_cpp='$CPP $CPPFLAGS'
28964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28967
28968
28969 fi
28970 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28971 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28972 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28973 then
28974
28975 cat >>confdefs.h <<\_ACEOF
28976 #define HAVE_FWD_ITERATOR 1
28977 _ACEOF
28978
28979 else
28980
28981 cat >>confdefs.h <<\_ACEOF
28982 #define HAVE_FWD_ITERATOR 0
28983 _ACEOF
28984
28985 fi
28986
28987
28988 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28989 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28990 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28991   echo $ECHO_N "(cached) $ECHO_C" >&6
28992 else
28993   ac_ext=cc
28994 ac_cpp='$CXXCPP $CPPFLAGS'
28995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28998
28999    cat >conftest.$ac_ext <<_ACEOF
29000 /* confdefs.h.  */
29001 _ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h.  */
29005 #include <math.h>
29006 int
29007 main ()
29008 {
29009 float f; isnan(f);
29010   ;
29011   return 0;
29012 }
29013 _ACEOF
29014 rm -f conftest.$ac_objext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29016   (eval $ac_compile) 2>conftest.er1
29017   ac_status=$?
29018   grep -v '^ *+' conftest.er1 >conftest.err
29019   rm -f conftest.er1
29020   cat conftest.err >&5
29021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022   (exit $ac_status); } &&
29023          { ac_try='test -z "$ac_cxx_werror_flag"
29024                          || test ! -s conftest.err'
29025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026   (eval $ac_try) 2>&5
29027   ac_status=$?
29028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029   (exit $ac_status); }; } &&
29030          { ac_try='test -s conftest.$ac_objext'
29031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032   (eval $ac_try) 2>&5
29033   ac_status=$?
29034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035   (exit $ac_status); }; }; then
29036   ac_cv_func_isnan_in_math_h=yes
29037 else
29038   echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29040
29041 ac_cv_func_isnan_in_math_h=no
29042 fi
29043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29044   ac_ext=c
29045 ac_cpp='$CPP $CPPFLAGS'
29046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29049
29050 fi
29051 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29052 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29053
29054
29055 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29056
29057 cat >>confdefs.h <<\_ACEOF
29058 #define HAVE_ISNAN_IN_MATH_H 1
29059 _ACEOF
29060
29061 fi
29062
29063 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29064 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29065 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29066   echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068   ac_ext=cc
29069 ac_cpp='$CXXCPP $CPPFLAGS'
29070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29073
29074    cat >conftest.$ac_ext <<_ACEOF
29075 /* confdefs.h.  */
29076 _ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h.  */
29080 #include <cmath>
29081 int
29082 main ()
29083 {
29084 float f; isnan(f);
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 rm -f conftest.$ac_objext
29090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29091   (eval $ac_compile) 2>conftest.er1
29092   ac_status=$?
29093   grep -v '^ *+' conftest.er1 >conftest.err
29094   rm -f conftest.er1
29095   cat conftest.err >&5
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } &&
29098          { ac_try='test -z "$ac_cxx_werror_flag"
29099                          || test ! -s conftest.err'
29100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101   (eval $ac_try) 2>&5
29102   ac_status=$?
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); }; } &&
29105          { ac_try='test -s conftest.$ac_objext'
29106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107   (eval $ac_try) 2>&5
29108   ac_status=$?
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); }; }; then
29111   ac_cv_func_isnan_in_cmath=yes
29112 else
29113   echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29115
29116 ac_cv_func_isnan_in_cmath=no
29117 fi
29118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29119   ac_ext=c
29120 ac_cpp='$CPP $CPPFLAGS'
29121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29124
29125 fi
29126 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29127 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29128
29129 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29130
29131 cat >>confdefs.h <<\_ACEOF
29132 #define HAVE_ISNAN_IN_CMATH 1
29133 _ACEOF
29134
29135 fi
29136
29137 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29138 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29139 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29140   echo $ECHO_N "(cached) $ECHO_C" >&6
29141 else
29142   ac_ext=cc
29143 ac_cpp='$CXXCPP $CPPFLAGS'
29144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29147
29148    cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154 #include <cmath>
29155 int
29156 main ()
29157 {
29158 float f; std::isnan(f);
29159   ;
29160   return 0;
29161 }
29162 _ACEOF
29163 rm -f conftest.$ac_objext
29164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29165   (eval $ac_compile) 2>conftest.er1
29166   ac_status=$?
29167   grep -v '^ *+' conftest.er1 >conftest.err
29168   rm -f conftest.er1
29169   cat conftest.err >&5
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } &&
29172          { ac_try='test -z "$ac_cxx_werror_flag"
29173                          || test ! -s conftest.err'
29174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175   (eval $ac_try) 2>&5
29176   ac_status=$?
29177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178   (exit $ac_status); }; } &&
29179          { ac_try='test -s conftest.$ac_objext'
29180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181   (eval $ac_try) 2>&5
29182   ac_status=$?
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); }; }; then
29185   ac_cv_func_std_isnan_in_cmath=yes
29186 else
29187   echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29189
29190 ac_cv_func_std_isnan_in_cmath=no
29191 fi
29192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29193   ac_ext=c
29194 ac_cpp='$CPP $CPPFLAGS'
29195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29198
29199 fi
29200 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29201 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29202
29203 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29204
29205 cat >>confdefs.h <<\_ACEOF
29206 #define HAVE_STD_ISNAN_IN_CMATH 1
29207 _ACEOF
29208
29209 fi
29210
29211
29212 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29213 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29214 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29215   echo $ECHO_N "(cached) $ECHO_C" >&6
29216 else
29217   ac_ext=cc
29218 ac_cpp='$CXXCPP $CPPFLAGS'
29219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29222
29223    cat >conftest.$ac_ext <<_ACEOF
29224 /* confdefs.h.  */
29225 _ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h.  */
29229 #include <math.h>
29230 int
29231 main ()
29232 {
29233 float f; isinf(f);
29234   ;
29235   return 0;
29236 }
29237 _ACEOF
29238 rm -f conftest.$ac_objext
29239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29240   (eval $ac_compile) 2>conftest.er1
29241   ac_status=$?
29242   grep -v '^ *+' conftest.er1 >conftest.err
29243   rm -f conftest.er1
29244   cat conftest.err >&5
29245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246   (exit $ac_status); } &&
29247          { ac_try='test -z "$ac_cxx_werror_flag"
29248                          || test ! -s conftest.err'
29249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250   (eval $ac_try) 2>&5
29251   ac_status=$?
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); }; } &&
29254          { ac_try='test -s conftest.$ac_objext'
29255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29256   (eval $ac_try) 2>&5
29257   ac_status=$?
29258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); }; }; then
29260   ac_cv_func_isinf_in_math_h=yes
29261 else
29262   echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265 ac_cv_func_isinf_in_math_h=no
29266 fi
29267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29268   ac_ext=c
29269 ac_cpp='$CPP $CPPFLAGS'
29270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29273
29274 fi
29275 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29276 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29277
29278 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29279
29280 cat >>confdefs.h <<\_ACEOF
29281 #define HAVE_ISINF_IN_MATH_H 1
29282 _ACEOF
29283
29284 fi
29285
29286 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29287 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29288 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29289   echo $ECHO_N "(cached) $ECHO_C" >&6
29290 else
29291   ac_ext=cc
29292 ac_cpp='$CXXCPP $CPPFLAGS'
29293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29296
29297    cat >conftest.$ac_ext <<_ACEOF
29298 /* confdefs.h.  */
29299 _ACEOF
29300 cat confdefs.h >>conftest.$ac_ext
29301 cat >>conftest.$ac_ext <<_ACEOF
29302 /* end confdefs.h.  */
29303 #include <cmath>
29304 int
29305 main ()
29306 {
29307 float f; isinf(f);
29308   ;
29309   return 0;
29310 }
29311 _ACEOF
29312 rm -f conftest.$ac_objext
29313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29314   (eval $ac_compile) 2>conftest.er1
29315   ac_status=$?
29316   grep -v '^ *+' conftest.er1 >conftest.err
29317   rm -f conftest.er1
29318   cat conftest.err >&5
29319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320   (exit $ac_status); } &&
29321          { ac_try='test -z "$ac_cxx_werror_flag"
29322                          || test ! -s conftest.err'
29323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324   (eval $ac_try) 2>&5
29325   ac_status=$?
29326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327   (exit $ac_status); }; } &&
29328          { ac_try='test -s conftest.$ac_objext'
29329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330   (eval $ac_try) 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; }; then
29334   ac_cv_func_isinf_in_cmath=yes
29335 else
29336   echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29338
29339 ac_cv_func_isinf_in_cmath=no
29340 fi
29341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29342   ac_ext=c
29343 ac_cpp='$CPP $CPPFLAGS'
29344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29347
29348 fi
29349 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29350 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29351
29352 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29353
29354 cat >>confdefs.h <<\_ACEOF
29355 #define HAVE_ISINF_IN_CMATH 1
29356 _ACEOF
29357
29358 fi
29359
29360 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29361 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29362 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29363   echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365   ac_ext=cc
29366 ac_cpp='$CXXCPP $CPPFLAGS'
29367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29370
29371    cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377 #include <cmath>
29378 int
29379 main ()
29380 {
29381 float f; std::isinf(f)}
29382   ;
29383   return 0;
29384 }
29385 _ACEOF
29386 rm -f conftest.$ac_objext
29387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29388   (eval $ac_compile) 2>conftest.er1
29389   ac_status=$?
29390   grep -v '^ *+' conftest.er1 >conftest.err
29391   rm -f conftest.er1
29392   cat conftest.err >&5
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); } &&
29395          { ac_try='test -z "$ac_cxx_werror_flag"
29396                          || test ! -s conftest.err'
29397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29398   (eval $ac_try) 2>&5
29399   ac_status=$?
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); }; } &&
29402          { ac_try='test -s conftest.$ac_objext'
29403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404   (eval $ac_try) 2>&5
29405   ac_status=$?
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); }; }; then
29408   ac_cv_func_std_isinf_in_cmath=yes
29409 else
29410   echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29412
29413 ac_cv_func_std_isinf_in_cmath=no
29414 fi
29415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29416   ac_ext=c
29417 ac_cpp='$CPP $CPPFLAGS'
29418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29421
29422 fi
29423 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29424 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29425
29426 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29427
29428 cat >>confdefs.h <<\_ACEOF
29429 #define HAVE_STD_ISINF_IN_CMATH 1
29430 _ACEOF
29431
29432 fi
29433
29434 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29435 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29436 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29437   echo $ECHO_N "(cached) $ECHO_C" >&6
29438 else
29439   ac_ext=cc
29440 ac_cpp='$CXXCPP $CPPFLAGS'
29441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29444
29445    cat >conftest.$ac_ext <<_ACEOF
29446 /* confdefs.h.  */
29447 _ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h.  */
29451 #include <ieeefp.h>
29452 int
29453 main ()
29454 {
29455 float f; finite(f);
29456   ;
29457   return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext
29461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29462   (eval $ac_compile) 2>conftest.er1
29463   ac_status=$?
29464   grep -v '^ *+' conftest.er1 >conftest.err
29465   rm -f conftest.er1
29466   cat conftest.err >&5
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); } &&
29469          { ac_try='test -z "$ac_cxx_werror_flag"
29470                          || test ! -s conftest.err'
29471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472   (eval $ac_try) 2>&5
29473   ac_status=$?
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); }; } &&
29476          { ac_try='test -s conftest.$ac_objext'
29477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478   (eval $ac_try) 2>&5
29479   ac_status=$?
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); }; }; then
29482   ac_cv_func_finite_in_ieeefp_h=yes
29483 else
29484   echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29486
29487 ac_cv_func_finite_in_ieeefp_h=no
29488 fi
29489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29490   ac_ext=c
29491 ac_cpp='$CPP $CPPFLAGS'
29492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29495
29496 fi
29497 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29498 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29499
29500 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29501
29502 cat >>confdefs.h <<\_ACEOF
29503 #define HAVE_FINITE_IN_IEEEFP_H 1
29504 _ACEOF
29505
29506 fi
29507
29508
29509
29510
29511
29512 for ac_header in stdlib.h unistd.h
29513 do
29514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29516   echo "$as_me:$LINENO: checking for $ac_header" >&5
29517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29519   echo $ECHO_N "(cached) $ECHO_C" >&6
29520 fi
29521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29523 else
29524   # Is the header compilable?
29525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29527 cat >conftest.$ac_ext <<_ACEOF
29528 /* confdefs.h.  */
29529 _ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h.  */
29533 $ac_includes_default
29534 #include <$ac_header>
29535 _ACEOF
29536 rm -f conftest.$ac_objext
29537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29538   (eval $ac_compile) 2>conftest.er1
29539   ac_status=$?
29540   grep -v '^ *+' conftest.er1 >conftest.err
29541   rm -f conftest.er1
29542   cat conftest.err >&5
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); } &&
29545          { ac_try='test -z "$ac_c_werror_flag"
29546                          || test ! -s conftest.err'
29547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548   (eval $ac_try) 2>&5
29549   ac_status=$?
29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551   (exit $ac_status); }; } &&
29552          { ac_try='test -s conftest.$ac_objext'
29553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554   (eval $ac_try) 2>&5
29555   ac_status=$?
29556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557   (exit $ac_status); }; }; then
29558   ac_header_compiler=yes
29559 else
29560   echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29562
29563 ac_header_compiler=no
29564 fi
29565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29567 echo "${ECHO_T}$ac_header_compiler" >&6
29568
29569 # Is the header present?
29570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29572 cat >conftest.$ac_ext <<_ACEOF
29573 /* confdefs.h.  */
29574 _ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h.  */
29578 #include <$ac_header>
29579 _ACEOF
29580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29582   ac_status=$?
29583   grep -v '^ *+' conftest.er1 >conftest.err
29584   rm -f conftest.er1
29585   cat conftest.err >&5
29586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587   (exit $ac_status); } >/dev/null; then
29588   if test -s conftest.err; then
29589     ac_cpp_err=$ac_c_preproc_warn_flag
29590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29591   else
29592     ac_cpp_err=
29593   fi
29594 else
29595   ac_cpp_err=yes
29596 fi
29597 if test -z "$ac_cpp_err"; then
29598   ac_header_preproc=yes
29599 else
29600   echo "$as_me: failed program was:" >&5
29601 sed 's/^/| /' conftest.$ac_ext >&5
29602
29603   ac_header_preproc=no
29604 fi
29605 rm -f conftest.err conftest.$ac_ext
29606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29607 echo "${ECHO_T}$ac_header_preproc" >&6
29608
29609 # So?  What about this header?
29610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29611   yes:no: )
29612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29616     ac_header_preproc=yes
29617     ;;
29618   no:yes:* )
29619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29631     (
29632       cat <<\_ASBOX
29633 ## ----------------------------------- ##
29634 ## Report this to llvmbugs@cs.uiuc.edu ##
29635 ## ----------------------------------- ##
29636 _ASBOX
29637     ) |
29638       sed "s/^/$as_me: WARNING:     /" >&2
29639     ;;
29640 esac
29641 echo "$as_me:$LINENO: checking for $ac_header" >&5
29642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29644   echo $ECHO_N "(cached) $ECHO_C" >&6
29645 else
29646   eval "$as_ac_Header=\$ac_header_preproc"
29647 fi
29648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29650
29651 fi
29652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29653   cat >>confdefs.h <<_ACEOF
29654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29655 _ACEOF
29656
29657 fi
29658
29659 done
29660
29661
29662 for ac_func in getpagesize
29663 do
29664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29665 echo "$as_me:$LINENO: checking for $ac_func" >&5
29666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29667 if eval "test \"\${$as_ac_var+set}\" = set"; then
29668   echo $ECHO_N "(cached) $ECHO_C" >&6
29669 else
29670   cat >conftest.$ac_ext <<_ACEOF
29671 /* confdefs.h.  */
29672 _ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h.  */
29676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29678 #define $ac_func innocuous_$ac_func
29679
29680 /* System header to define __stub macros and hopefully few prototypes,
29681     which can conflict with char $ac_func (); below.
29682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29683     <limits.h> exists even on freestanding compilers.  */
29684
29685 #ifdef __STDC__
29686 # include <limits.h>
29687 #else
29688 # include <assert.h>
29689 #endif
29690
29691 #undef $ac_func
29692
29693 /* Override any gcc2 internal prototype to avoid an error.  */
29694 #ifdef __cplusplus
29695 extern "C"
29696 {
29697 #endif
29698 /* We use char because int might match the return type of a gcc2
29699    builtin and then its argument prototype would still apply.  */
29700 char $ac_func ();
29701 /* The GNU C library defines this for functions which it implements
29702     to always fail with ENOSYS.  Some functions are actually named
29703     something starting with __ and the normal name is an alias.  */
29704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29705 choke me
29706 #else
29707 char (*f) () = $ac_func;
29708 #endif
29709 #ifdef __cplusplus
29710 }
29711 #endif
29712
29713 int
29714 main ()
29715 {
29716 return f != $ac_func;
29717   ;
29718   return 0;
29719 }
29720 _ACEOF
29721 rm -f conftest.$ac_objext conftest$ac_exeext
29722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29723   (eval $ac_link) 2>conftest.er1
29724   ac_status=$?
29725   grep -v '^ *+' conftest.er1 >conftest.err
29726   rm -f conftest.er1
29727   cat conftest.err >&5
29728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729   (exit $ac_status); } &&
29730          { ac_try='test -z "$ac_c_werror_flag"
29731                          || test ! -s conftest.err'
29732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733   (eval $ac_try) 2>&5
29734   ac_status=$?
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); }; } &&
29737          { ac_try='test -s conftest$ac_exeext'
29738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739   (eval $ac_try) 2>&5
29740   ac_status=$?
29741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742   (exit $ac_status); }; }; then
29743   eval "$as_ac_var=yes"
29744 else
29745   echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29747
29748 eval "$as_ac_var=no"
29749 fi
29750 rm -f conftest.err conftest.$ac_objext \
29751       conftest$ac_exeext conftest.$ac_ext
29752 fi
29753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29755 if test `eval echo '${'$as_ac_var'}'` = yes; then
29756   cat >>confdefs.h <<_ACEOF
29757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29758 _ACEOF
29759
29760 fi
29761 done
29762
29763 echo "$as_me:$LINENO: checking for working mmap" >&5
29764 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29765 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29766   echo $ECHO_N "(cached) $ECHO_C" >&6
29767 else
29768   if test "$cross_compiling" = yes; then
29769   ac_cv_func_mmap_fixed_mapped=no
29770 else
29771   cat >conftest.$ac_ext <<_ACEOF
29772 /* confdefs.h.  */
29773 _ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h.  */
29777 $ac_includes_default
29778 /* malloc might have been renamed as rpl_malloc. */
29779 #undef malloc
29780
29781 /* Thanks to Mike Haertel and Jim Avera for this test.
29782    Here is a matrix of mmap possibilities:
29783         mmap private not fixed
29784         mmap private fixed at somewhere currently unmapped
29785         mmap private fixed at somewhere already mapped
29786         mmap shared not fixed
29787         mmap shared fixed at somewhere currently unmapped
29788         mmap shared fixed at somewhere already mapped
29789    For private mappings, we should verify that changes cannot be read()
29790    back from the file, nor mmap's back from the file at a different
29791    address.  (There have been systems where private was not correctly
29792    implemented like the infamous i386 svr4.0, and systems where the
29793    VM page cache was not coherent with the file system buffer cache
29794    like early versions of FreeBSD and possibly contemporary NetBSD.)
29795    For shared mappings, we should conversely verify that changes get
29796    propagated back to all the places they're supposed to be.
29797
29798    Grep wants private fixed already mapped.
29799    The main things grep needs to know about mmap are:
29800    * does it exist and is it safe to write into the mmap'd area
29801    * how to use it (BSD variants)  */
29802
29803 #include <fcntl.h>
29804 #include <sys/mman.h>
29805
29806 #if !STDC_HEADERS && !HAVE_STDLIB_H
29807 char *malloc ();
29808 #endif
29809
29810 /* This mess was copied from the GNU getpagesize.h.  */
29811 #if !HAVE_GETPAGESIZE
29812 /* Assume that all systems that can run configure have sys/param.h.  */
29813 # if !HAVE_SYS_PARAM_H
29814 #  define HAVE_SYS_PARAM_H 1
29815 # endif
29816
29817 # ifdef _SC_PAGESIZE
29818 #  define getpagesize() sysconf(_SC_PAGESIZE)
29819 # else /* no _SC_PAGESIZE */
29820 #  if HAVE_SYS_PARAM_H
29821 #   include <sys/param.h>
29822 #   ifdef EXEC_PAGESIZE
29823 #    define getpagesize() EXEC_PAGESIZE
29824 #   else /* no EXEC_PAGESIZE */
29825 #    ifdef NBPG
29826 #     define getpagesize() NBPG * CLSIZE
29827 #     ifndef CLSIZE
29828 #      define CLSIZE 1
29829 #     endif /* no CLSIZE */
29830 #    else /* no NBPG */
29831 #     ifdef NBPC
29832 #      define getpagesize() NBPC
29833 #     else /* no NBPC */
29834 #      ifdef PAGESIZE
29835 #       define getpagesize() PAGESIZE
29836 #      endif /* PAGESIZE */
29837 #     endif /* no NBPC */
29838 #    endif /* no NBPG */
29839 #   endif /* no EXEC_PAGESIZE */
29840 #  else /* no HAVE_SYS_PARAM_H */
29841 #   define getpagesize() 8192   /* punt totally */
29842 #  endif /* no HAVE_SYS_PARAM_H */
29843 # endif /* no _SC_PAGESIZE */
29844
29845 #endif /* no HAVE_GETPAGESIZE */
29846
29847 int
29848 main ()
29849 {
29850   char *data, *data2, *data3;
29851   int i, pagesize;
29852   int fd;
29853
29854   pagesize = getpagesize ();
29855
29856   /* First, make a file with some known garbage in it. */
29857   data = (char *) malloc (pagesize);
29858   if (!data)
29859     exit (1);
29860   for (i = 0; i < pagesize; ++i)
29861     *(data + i) = rand ();
29862   umask (0);
29863   fd = creat ("conftest.mmap", 0600);
29864   if (fd < 0)
29865     exit (1);
29866   if (write (fd, data, pagesize) != pagesize)
29867     exit (1);
29868   close (fd);
29869
29870   /* Next, try to mmap the file at a fixed address which already has
29871      something else allocated at it.  If we can, also make sure that
29872      we see the same garbage.  */
29873   fd = open ("conftest.mmap", O_RDWR);
29874   if (fd < 0)
29875     exit (1);
29876   data2 = (char *) malloc (2 * pagesize);
29877   if (!data2)
29878     exit (1);
29879   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29880   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29881                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29882     exit (1);
29883   for (i = 0; i < pagesize; ++i)
29884     if (*(data + i) != *(data2 + i))
29885       exit (1);
29886
29887   /* Finally, make sure that changes to the mapped area do not
29888      percolate back to the file as seen by read().  (This is a bug on
29889      some variants of i386 svr4.0.)  */
29890   for (i = 0; i < pagesize; ++i)
29891     *(data2 + i) = *(data2 + i) + 1;
29892   data3 = (char *) malloc (pagesize);
29893   if (!data3)
29894     exit (1);
29895   if (read (fd, data3, pagesize) != pagesize)
29896     exit (1);
29897   for (i = 0; i < pagesize; ++i)
29898     if (*(data + i) != *(data3 + i))
29899       exit (1);
29900   close (fd);
29901   exit (0);
29902 }
29903 _ACEOF
29904 rm -f conftest$ac_exeext
29905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29906   (eval $ac_link) 2>&5
29907   ac_status=$?
29908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911   (eval $ac_try) 2>&5
29912   ac_status=$?
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); }; }; then
29915   ac_cv_func_mmap_fixed_mapped=yes
29916 else
29917   echo "$as_me: program exited with status $ac_status" >&5
29918 echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29920
29921 ( exit $ac_status )
29922 ac_cv_func_mmap_fixed_mapped=no
29923 fi
29924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29925 fi
29926 fi
29927 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29928 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29929 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29930
29931 cat >>confdefs.h <<\_ACEOF
29932 #define HAVE_MMAP 1
29933 _ACEOF
29934
29935 fi
29936 rm -f conftest.mmap
29937
29938 echo "$as_me:$LINENO: checking for mmap of files" >&5
29939 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29940 if test "${ac_cv_func_mmap_file+set}" = set; then
29941   echo $ECHO_N "(cached) $ECHO_C" >&6
29942 else
29943    ac_ext=c
29944 ac_cpp='$CPP $CPPFLAGS'
29945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29948
29949   if test "$cross_compiling" = yes; then
29950   ac_cv_func_mmap_file=no
29951 else
29952   cat >conftest.$ac_ext <<_ACEOF
29953
29954     /* confdefs.h.  */
29955 _ACEOF
29956 cat confdefs.h >>conftest.$ac_ext
29957 cat >>conftest.$ac_ext <<_ACEOF
29958 /* end confdefs.h.  */
29959
29960 #include <sys/types.h>
29961 #include <sys/mman.h>
29962 #include <fcntl.h>
29963
29964 int
29965 main ()
29966 {
29967
29968   int fd;
29969   fd = creat ("foo",0777);
29970   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29971   unlink ("foo");
29972   return (fd != (int) MAP_FAILED);
29973   ;
29974   return 0;
29975 }
29976 _ACEOF
29977 rm -f conftest$ac_exeext
29978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29979   (eval $ac_link) 2>&5
29980   ac_status=$?
29981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984   (eval $ac_try) 2>&5
29985   ac_status=$?
29986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987   (exit $ac_status); }; }; then
29988   ac_cv_func_mmap_file=yes
29989 else
29990   echo "$as_me: program exited with status $ac_status" >&5
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29993
29994 ( exit $ac_status )
29995 ac_cv_func_mmap_file=no
29996 fi
29997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29998 fi
29999   ac_ext=c
30000 ac_cpp='$CPP $CPPFLAGS'
30001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30004
30005
30006 fi
30007 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30008 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30009 if test "$ac_cv_func_mmap_file" = yes; then
30010
30011 cat >>confdefs.h <<\_ACEOF
30012 #define HAVE_MMAP_FILE
30013 _ACEOF
30014
30015    MMAP_FILE=yes
30016
30017 fi
30018
30019 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30020 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30021 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30022   echo $ECHO_N "(cached) $ECHO_C" >&6
30023 else
30024   if test "$llvm_cv_os_type" = "Interix" ; then
30025    ac_cv_need_dev_zero_for_mmap=yes
30026  else
30027    ac_cv_need_dev_zero_for_mmap=no
30028  fi
30029
30030 fi
30031 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30032 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30033 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30034
30035 cat >>confdefs.h <<\_ACEOF
30036 #define NEED_DEV_ZERO_FOR_MMAP 1
30037 _ACEOF
30038
30039 fi
30040 echo "$as_me:$LINENO: checking for mprotect" >&5
30041 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30042 if test "${ac_cv_func_mprotect+set}" = set; then
30043   echo $ECHO_N "(cached) $ECHO_C" >&6
30044 else
30045   cat >conftest.$ac_ext <<_ACEOF
30046 /* confdefs.h.  */
30047 _ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h.  */
30051 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30053 #define mprotect innocuous_mprotect
30054
30055 /* System header to define __stub macros and hopefully few prototypes,
30056     which can conflict with char mprotect (); below.
30057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30058     <limits.h> exists even on freestanding compilers.  */
30059
30060 #ifdef __STDC__
30061 # include <limits.h>
30062 #else
30063 # include <assert.h>
30064 #endif
30065
30066 #undef mprotect
30067
30068 /* Override any gcc2 internal prototype to avoid an error.  */
30069 #ifdef __cplusplus
30070 extern "C"
30071 {
30072 #endif
30073 /* We use char because int might match the return type of a gcc2
30074    builtin and then its argument prototype would still apply.  */
30075 char mprotect ();
30076 /* The GNU C library defines this for functions which it implements
30077     to always fail with ENOSYS.  Some functions are actually named
30078     something starting with __ and the normal name is an alias.  */
30079 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30080 choke me
30081 #else
30082 char (*f) () = mprotect;
30083 #endif
30084 #ifdef __cplusplus
30085 }
30086 #endif
30087
30088 int
30089 main ()
30090 {
30091 return f != mprotect;
30092   ;
30093   return 0;
30094 }
30095 _ACEOF
30096 rm -f conftest.$ac_objext conftest$ac_exeext
30097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30098   (eval $ac_link) 2>conftest.er1
30099   ac_status=$?
30100   grep -v '^ *+' conftest.er1 >conftest.err
30101   rm -f conftest.er1
30102   cat conftest.err >&5
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); } &&
30105          { ac_try='test -z "$ac_c_werror_flag"
30106                          || test ! -s conftest.err'
30107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30108   (eval $ac_try) 2>&5
30109   ac_status=$?
30110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); }; } &&
30112          { ac_try='test -s conftest$ac_exeext'
30113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114   (eval $ac_try) 2>&5
30115   ac_status=$?
30116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117   (exit $ac_status); }; }; then
30118   ac_cv_func_mprotect=yes
30119 else
30120   echo "$as_me: failed program was:" >&5
30121 sed 's/^/| /' conftest.$ac_ext >&5
30122
30123 ac_cv_func_mprotect=no
30124 fi
30125 rm -f conftest.err conftest.$ac_objext \
30126       conftest$ac_exeext conftest.$ac_ext
30127 fi
30128 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30129 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30130 if test $ac_cv_func_mprotect = yes; then
30131   :
30132 else
30133   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30134 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30135    { (exit 1); exit 1; }; }
30136 fi
30137
30138
30139 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30140 then
30141   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30142 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30143 fi
30144 if test "$ac_cv_func_mmap_file" = "no"
30145 then
30146   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30147 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30148 fi
30149
30150
30151 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30152 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30153 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30154   echo $ECHO_N "(cached) $ECHO_C" >&6
30155 else
30156   llvm_cv_llvmgcc_sanity="no"
30157 if test -x "$LLVMGCC" ; then
30158   cp /dev/null conftest.c
30159   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30160   if test $? -eq 0 ; then
30161     llvm_cv_llvmgcc_sanity="yes"
30162   fi
30163   rm conftest.c
30164 fi
30165 fi
30166 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30167 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30168
30169 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30170   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30171   LLVMCC1=$llvmcc1path
30172
30173   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30174   LLVMCC1PLUS=$llvmcc1pluspath
30175
30176   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30177   LLVMGCCDIR=$llvmgccdir
30178
30179 fi
30180
30181 SHLIBEXT=$libltdl_cv_shlibext
30182
30183
30184 # Translate the various configuration directories and other basic
30185 # information into substitutions that will end up in Makefile.config.in
30186 # that these configured values can be used by the makefiles
30187 eval LLVM_PREFIX="${prefix}";
30188 eval LLVM_BINDIR="${prefix}/bin";
30189 eval LLVM_LIBDIR="${prefix}/lib";
30190 eval LLVM_DATADIR="${prefix}/share/llvm";
30191 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30192 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30193 eval LLVM_INCLUDEDIR="${prefix}/include";
30194 eval LLVM_INFODIR="${prefix}/info";
30195 eval LLVM_MANDIR="${prefix}/man";
30196 LLVM_CONFIGTIME=`date`
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208 # Place the various directores into the config.h file as #defines so that we
30209 # can know about the installation paths within LLVM.
30210
30211 cat >>confdefs.h <<_ACEOF
30212 #define LLVM_PREFIX "$LLVM_PREFIX"
30213 _ACEOF
30214
30215
30216 cat >>confdefs.h <<_ACEOF
30217 #define LLVM_BINDIR "$LLVM_BINDIR"
30218 _ACEOF
30219
30220
30221 cat >>confdefs.h <<_ACEOF
30222 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30223 _ACEOF
30224
30225
30226 cat >>confdefs.h <<_ACEOF
30227 #define LLVM_DATADIR "$LLVM_DATADIR"
30228 _ACEOF
30229
30230
30231 cat >>confdefs.h <<_ACEOF
30232 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30233 _ACEOF
30234
30235
30236 cat >>confdefs.h <<_ACEOF
30237 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30238 _ACEOF
30239
30240
30241 cat >>confdefs.h <<_ACEOF
30242 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30243 _ACEOF
30244
30245
30246 cat >>confdefs.h <<_ACEOF
30247 #define LLVM_INFODIR "$LLVM_INFODIR"
30248 _ACEOF
30249
30250
30251 cat >>confdefs.h <<_ACEOF
30252 #define LLVM_MANDIR "$LLVM_MANDIR"
30253 _ACEOF
30254
30255
30256 cat >>confdefs.h <<_ACEOF
30257 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30258 _ACEOF
30259
30260
30261
30262           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30263
30264
30265           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30266
30267           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30268
30269           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30270
30271           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30272
30273           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30274
30275
30276           ac_config_files="$ac_config_files Makefile.config"
30277
30278
30279                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30280
30281
30282           ac_config_files="$ac_config_files docs/doxygen.cfg"
30283
30284
30285           ac_config_commands="$ac_config_commands Makefile"
30286
30287
30288           ac_config_commands="$ac_config_commands Makefile.common"
30289
30290
30291           ac_config_commands="$ac_config_commands examples/Makefile"
30292
30293
30294           ac_config_commands="$ac_config_commands lib/Makefile"
30295
30296
30297           ac_config_commands="$ac_config_commands runtime/Makefile"
30298
30299
30300           ac_config_commands="$ac_config_commands test/Makefile"
30301
30302
30303           ac_config_commands="$ac_config_commands test/Makefile.tests"
30304
30305
30306           ac_config_commands="$ac_config_commands tools/Makefile"
30307
30308
30309           ac_config_commands="$ac_config_commands utils/Makefile"
30310
30311
30312           ac_config_commands="$ac_config_commands projects/Makefile"
30313
30314
30315
30316 cat >confcache <<\_ACEOF
30317 # This file is a shell script that caches the results of configure
30318 # tests run on this system so they can be shared between configure
30319 # scripts and configure runs, see configure's option --config-cache.
30320 # It is not useful on other systems.  If it contains results you don't
30321 # want to keep, you may remove or edit it.
30322 #
30323 # config.status only pays attention to the cache file if you give it
30324 # the --recheck option to rerun configure.
30325 #
30326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30328 # following values.
30329
30330 _ACEOF
30331
30332 # The following way of writing the cache mishandles newlines in values,
30333 # but we know of no workaround that is simple, portable, and efficient.
30334 # So, don't put newlines in cache variables' values.
30335 # Ultrix sh set writes to stderr and can't be redirected directly,
30336 # and sets the high bit in the cache file unless we assign to the vars.
30337 {
30338   (set) 2>&1 |
30339     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30340     *ac_space=\ *)
30341       # `set' does not quote correctly, so add quotes (double-quote
30342       # substitution turns \\\\ into \\, and sed turns \\ into \).
30343       sed -n \
30344         "s/'/'\\\\''/g;
30345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30346       ;;
30347     *)
30348       # `set' quotes correctly as required by POSIX, so do not add quotes.
30349       sed -n \
30350         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30351       ;;
30352     esac;
30353 } |
30354   sed '
30355      t clear
30356      : clear
30357      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30358      t end
30359      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30360      : end' >>confcache
30361 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30362   if test -w $cache_file; then
30363     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30364     cat confcache >$cache_file
30365   else
30366     echo "not updating unwritable cache $cache_file"
30367   fi
30368 fi
30369 rm -f confcache
30370
30371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30372 # Let make expand exec_prefix.
30373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30374
30375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30377 # trailing colons and then remove the whole line if VPATH becomes empty
30378 # (actually we leave an empty line to preserve line numbers).
30379 if test "x$srcdir" = x.; then
30380   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30381 s/:*\$(srcdir):*/:/;
30382 s/:*\${srcdir}:*/:/;
30383 s/:*@srcdir@:*/:/;
30384 s/^\([^=]*=[     ]*\):*/\1/;
30385 s/:*$//;
30386 s/^[^=]*=[       ]*$//;
30387 }'
30388 fi
30389
30390 DEFS=-DHAVE_CONFIG_H
30391
30392 ac_libobjs=
30393 ac_ltlibobjs=
30394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30395   # 1. Remove the extension, and $U if already installed.
30396   ac_i=`echo "$ac_i" |
30397          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30398   # 2. Add them.
30399   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30400   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30401 done
30402 LIBOBJS=$ac_libobjs
30403
30404 LTLIBOBJS=$ac_ltlibobjs
30405
30406
30407 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30408   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30409 Usually this means the macro was only invoked conditionally." >&5
30410 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30411 Usually this means the macro was only invoked conditionally." >&2;}
30412    { (exit 1); exit 1; }; }
30413 fi
30414 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30415   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30416 Usually this means the macro was only invoked conditionally." >&5
30417 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30418 Usually this means the macro was only invoked conditionally." >&2;}
30419    { (exit 1); exit 1; }; }
30420 fi
30421
30422 : ${CONFIG_STATUS=./config.status}
30423 ac_clean_files_save=$ac_clean_files
30424 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30425 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30426 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30427 cat >$CONFIG_STATUS <<_ACEOF
30428 #! $SHELL
30429 # Generated by $as_me.
30430 # Run this file to recreate the current configuration.
30431 # Compiler output produced by configure, useful for debugging
30432 # configure, is in config.log if it exists.
30433
30434 debug=false
30435 ac_cs_recheck=false
30436 ac_cs_silent=false
30437 SHELL=\${CONFIG_SHELL-$SHELL}
30438 _ACEOF
30439
30440 cat >>$CONFIG_STATUS <<\_ACEOF
30441 ## --------------------- ##
30442 ## M4sh Initialization.  ##
30443 ## --------------------- ##
30444
30445 # Be Bourne compatible
30446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30447   emulate sh
30448   NULLCMD=:
30449   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30450   # is contrary to our usage.  Disable this feature.
30451   alias -g '${1+"$@"}'='"$@"'
30452 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30453   set -o posix
30454 fi
30455 DUALCASE=1; export DUALCASE # for MKS sh
30456
30457 # Support unset when possible.
30458 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30459   as_unset=unset
30460 else
30461   as_unset=false
30462 fi
30463
30464
30465 # Work around bugs in pre-3.0 UWIN ksh.
30466 $as_unset ENV MAIL MAILPATH
30467 PS1='$ '
30468 PS2='> '
30469 PS4='+ '
30470
30471 # NLS nuisances.
30472 for as_var in \
30473   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30474   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30475   LC_TELEPHONE LC_TIME
30476 do
30477   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30478     eval $as_var=C; export $as_var
30479   else
30480     $as_unset $as_var
30481   fi
30482 done
30483
30484 # Required to use basename.
30485 if expr a : '\(a\)' >/dev/null 2>&1; then
30486   as_expr=expr
30487 else
30488   as_expr=false
30489 fi
30490
30491 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30492   as_basename=basename
30493 else
30494   as_basename=false
30495 fi
30496
30497
30498 # Name of the executable.
30499 as_me=`$as_basename "$0" ||
30500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30501          X"$0" : 'X\(//\)$' \| \
30502          X"$0" : 'X\(/\)$' \| \
30503          .     : '\(.\)' 2>/dev/null ||
30504 echo X/"$0" |
30505     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30506           /^X\/\(\/\/\)$/{ s//\1/; q; }
30507           /^X\/\(\/\).*/{ s//\1/; q; }
30508           s/.*/./; q'`
30509
30510
30511 # PATH needs CR, and LINENO needs CR and PATH.
30512 # Avoid depending upon Character Ranges.
30513 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30514 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30515 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30516 as_cr_digits='0123456789'
30517 as_cr_alnum=$as_cr_Letters$as_cr_digits
30518
30519 # The user is always right.
30520 if test "${PATH_SEPARATOR+set}" != set; then
30521   echo "#! /bin/sh" >conf$$.sh
30522   echo  "exit 0"   >>conf$$.sh
30523   chmod +x conf$$.sh
30524   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30525     PATH_SEPARATOR=';'
30526   else
30527     PATH_SEPARATOR=:
30528   fi
30529   rm -f conf$$.sh
30530 fi
30531
30532
30533   as_lineno_1=$LINENO
30534   as_lineno_2=$LINENO
30535   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30536   test "x$as_lineno_1" != "x$as_lineno_2" &&
30537   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30538   # Find who we are.  Look in the path if we contain no path at all
30539   # relative or not.
30540   case $0 in
30541     *[\\/]* ) as_myself=$0 ;;
30542     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30543 for as_dir in $PATH
30544 do
30545   IFS=$as_save_IFS
30546   test -z "$as_dir" && as_dir=.
30547   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30548 done
30549
30550        ;;
30551   esac
30552   # We did not find ourselves, most probably we were run as `sh COMMAND'
30553   # in which case we are not to be found in the path.
30554   if test "x$as_myself" = x; then
30555     as_myself=$0
30556   fi
30557   if test ! -f "$as_myself"; then
30558     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30559 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30560    { (exit 1); exit 1; }; }
30561   fi
30562   case $CONFIG_SHELL in
30563   '')
30564     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30565 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30566 do
30567   IFS=$as_save_IFS
30568   test -z "$as_dir" && as_dir=.
30569   for as_base in sh bash ksh sh5; do
30570          case $as_dir in
30571          /*)
30572            if ("$as_dir/$as_base" -c '
30573   as_lineno_1=$LINENO
30574   as_lineno_2=$LINENO
30575   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30576   test "x$as_lineno_1" != "x$as_lineno_2" &&
30577   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30578              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30579              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30580              CONFIG_SHELL=$as_dir/$as_base
30581              export CONFIG_SHELL
30582              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30583            fi;;
30584          esac
30585        done
30586 done
30587 ;;
30588   esac
30589
30590   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30591   # uniformly replaced by the line number.  The first 'sed' inserts a
30592   # line-number line before each line; the second 'sed' does the real
30593   # work.  The second script uses 'N' to pair each line-number line
30594   # with the numbered line, and appends trailing '-' during
30595   # substitution so that $LINENO is not a special case at line end.
30596   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30597   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30598   sed '=' <$as_myself |
30599     sed '
30600       N
30601       s,$,-,
30602       : loop
30603       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30604       t loop
30605       s,-$,,
30606       s,^['$as_cr_digits']*\n,,
30607     ' >$as_me.lineno &&
30608   chmod +x $as_me.lineno ||
30609     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30610 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30611    { (exit 1); exit 1; }; }
30612
30613   # Don't try to exec as it changes $[0], causing all sort of problems
30614   # (the dirname of $[0] is not the place where we might find the
30615   # original and so on.  Autoconf is especially sensible to this).
30616   . ./$as_me.lineno
30617   # Exit status is that of the last command.
30618   exit
30619 }
30620
30621
30622 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30623   *c*,-n*) ECHO_N= ECHO_C='
30624 ' ECHO_T='      ' ;;
30625   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30626   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30627 esac
30628
30629 if expr a : '\(a\)' >/dev/null 2>&1; then
30630   as_expr=expr
30631 else
30632   as_expr=false
30633 fi
30634
30635 rm -f conf$$ conf$$.exe conf$$.file
30636 echo >conf$$.file
30637 if ln -s conf$$.file conf$$ 2>/dev/null; then
30638   # We could just check for DJGPP; but this test a) works b) is more generic
30639   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30640   if test -f conf$$.exe; then
30641     # Don't use ln at all; we don't have any links
30642     as_ln_s='cp -p'
30643   else
30644     as_ln_s='ln -s'
30645   fi
30646 elif ln conf$$.file conf$$ 2>/dev/null; then
30647   as_ln_s=ln
30648 else
30649   as_ln_s='cp -p'
30650 fi
30651 rm -f conf$$ conf$$.exe conf$$.file
30652
30653 if mkdir -p . 2>/dev/null; then
30654   as_mkdir_p=:
30655 else
30656   test -d ./-p && rmdir ./-p
30657   as_mkdir_p=false
30658 fi
30659
30660 as_executable_p="test -f"
30661
30662 # Sed expression to map a string onto a valid CPP name.
30663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30664
30665 # Sed expression to map a string onto a valid variable name.
30666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30667
30668
30669 # IFS
30670 # We need space, tab and new line, in precisely that order.
30671 as_nl='
30672 '
30673 IFS="   $as_nl"
30674
30675 # CDPATH.
30676 $as_unset CDPATH
30677
30678 exec 6>&1
30679
30680 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30681 # report actual input values of CONFIG_FILES etc. instead of their
30682 # values after options handling.  Logging --version etc. is OK.
30683 exec 5>>config.log
30684 {
30685   echo
30686   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30687 ## Running $as_me. ##
30688 _ASBOX
30689 } >&5
30690 cat >&5 <<_CSEOF
30691
30692 This file was extended by llvm $as_me 1.4, which was
30693 generated by GNU Autoconf 2.59.  Invocation command line was
30694
30695   CONFIG_FILES    = $CONFIG_FILES
30696   CONFIG_HEADERS  = $CONFIG_HEADERS
30697   CONFIG_LINKS    = $CONFIG_LINKS
30698   CONFIG_COMMANDS = $CONFIG_COMMANDS
30699   $ $0 $@
30700
30701 _CSEOF
30702 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30703 echo >&5
30704 _ACEOF
30705
30706 # Files that config.status was made for.
30707 if test -n "$ac_config_files"; then
30708   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30709 fi
30710
30711 if test -n "$ac_config_headers"; then
30712   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30713 fi
30714
30715 if test -n "$ac_config_links"; then
30716   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30717 fi
30718
30719 if test -n "$ac_config_commands"; then
30720   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30721 fi
30722
30723 cat >>$CONFIG_STATUS <<\_ACEOF
30724
30725 ac_cs_usage="\
30726 \`$as_me' instantiates files from templates according to the
30727 current configuration.
30728
30729 Usage: $0 [OPTIONS] [FILE]...
30730
30731   -h, --help       print this help, then exit
30732   -V, --version    print version number, then exit
30733   -q, --quiet      do not print progress messages
30734   -d, --debug      don't remove temporary files
30735       --recheck    update $as_me by reconfiguring in the same conditions
30736   --file=FILE[:TEMPLATE]
30737                    instantiate the configuration file FILE
30738   --header=FILE[:TEMPLATE]
30739                    instantiate the configuration header FILE
30740
30741 Configuration files:
30742 $config_files
30743
30744 Configuration headers:
30745 $config_headers
30746
30747 Configuration commands:
30748 $config_commands
30749
30750 Report bugs to <bug-autoconf@gnu.org>."
30751 _ACEOF
30752
30753 cat >>$CONFIG_STATUS <<_ACEOF
30754 ac_cs_version="\\
30755 llvm config.status 1.4
30756 configured by $0, generated by GNU Autoconf 2.59,
30757   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30758
30759 Copyright (C) 2003 Free Software Foundation, Inc.
30760 This config.status script is free software; the Free Software Foundation
30761 gives unlimited permission to copy, distribute and modify it."
30762 srcdir=$srcdir
30763 INSTALL="$INSTALL"
30764 _ACEOF
30765
30766 cat >>$CONFIG_STATUS <<\_ACEOF
30767 # If no file are specified by the user, then we need to provide default
30768 # value.  By we need to know if files were specified by the user.
30769 ac_need_defaults=:
30770 while test $# != 0
30771 do
30772   case $1 in
30773   --*=*)
30774     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30775     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30776     ac_shift=:
30777     ;;
30778   -*)
30779     ac_option=$1
30780     ac_optarg=$2
30781     ac_shift=shift
30782     ;;
30783   *) # This is not an option, so the user has probably given explicit
30784      # arguments.
30785      ac_option=$1
30786      ac_need_defaults=false;;
30787   esac
30788
30789   case $ac_option in
30790   # Handling of the options.
30791 _ACEOF
30792 cat >>$CONFIG_STATUS <<\_ACEOF
30793   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30794     ac_cs_recheck=: ;;
30795   --version | --vers* | -V )
30796     echo "$ac_cs_version"; exit 0 ;;
30797   --he | --h)
30798     # Conflict between --help and --header
30799     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30800 Try \`$0 --help' for more information." >&5
30801 echo "$as_me: error: ambiguous option: $1
30802 Try \`$0 --help' for more information." >&2;}
30803    { (exit 1); exit 1; }; };;
30804   --help | --hel | -h )
30805     echo "$ac_cs_usage"; exit 0 ;;
30806   --debug | --d* | -d )
30807     debug=: ;;
30808   --file | --fil | --fi | --f )
30809     $ac_shift
30810     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30811     ac_need_defaults=false;;
30812   --header | --heade | --head | --hea )
30813     $ac_shift
30814     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30815     ac_need_defaults=false;;
30816   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30817   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30818     ac_cs_silent=: ;;
30819
30820   # This is an error.
30821   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30822 Try \`$0 --help' for more information." >&5
30823 echo "$as_me: error: unrecognized option: $1
30824 Try \`$0 --help' for more information." >&2;}
30825    { (exit 1); exit 1; }; } ;;
30826
30827   *) ac_config_targets="$ac_config_targets $1" ;;
30828
30829   esac
30830   shift
30831 done
30832
30833 ac_configure_extra_args=
30834
30835 if $ac_cs_silent; then
30836   exec 6>/dev/null
30837   ac_configure_extra_args="$ac_configure_extra_args --silent"
30838 fi
30839
30840 _ACEOF
30841 cat >>$CONFIG_STATUS <<_ACEOF
30842 if \$ac_cs_recheck; then
30843   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30844   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30845 fi
30846
30847 _ACEOF
30848
30849 cat >>$CONFIG_STATUS <<_ACEOF
30850 #
30851 # INIT-COMMANDS section.
30852 #
30853
30854 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30855 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30856 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30857 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30858 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30859 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30860 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30861 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30862 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30863 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30864
30865 _ACEOF
30866
30867
30868
30869 cat >>$CONFIG_STATUS <<\_ACEOF
30870 for ac_config_target in $ac_config_targets
30871 do
30872   case "$ac_config_target" in
30873   # Handling of arguments.
30874   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30875   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30876   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30877   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30878   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30879   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30880   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30881   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30882   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30883   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30884   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30885   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30886   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30887   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30888   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30889   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30890   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30891   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30892   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30893   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30894   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30895   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30896   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30898    { (exit 1); exit 1; }; };;
30899   esac
30900 done
30901
30902 # If the user did not use the arguments to specify the items to instantiate,
30903 # then the envvar interface is used.  Set only those that are not.
30904 # We use the long form for the default assignment because of an extremely
30905 # bizarre bug on SunOS 4.1.3.
30906 if $ac_need_defaults; then
30907   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30908   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30909   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30910 fi
30911
30912 # Have a temporary directory for convenience.  Make it in the build tree
30913 # simply because there is no reason to put it here, and in addition,
30914 # creating and moving files from /tmp can sometimes cause problems.
30915 # Create a temporary directory, and hook for its removal unless debugging.
30916 $debug ||
30917 {
30918   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30919   trap '{ (exit 1); exit 1; }' 1 2 13 15
30920 }
30921
30922 # Create a (secure) tmp directory for tmp files.
30923
30924 {
30925   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30926   test -n "$tmp" && test -d "$tmp"
30927 }  ||
30928 {
30929   tmp=./confstat$$-$RANDOM
30930   (umask 077 && mkdir $tmp)
30931 } ||
30932 {
30933    echo "$me: cannot create a temporary directory in ." >&2
30934    { (exit 1); exit 1; }
30935 }
30936
30937 _ACEOF
30938
30939 cat >>$CONFIG_STATUS <<_ACEOF
30940
30941 #
30942 # CONFIG_FILES section.
30943 #
30944
30945 # No need to generate the scripts if there are no CONFIG_FILES.
30946 # This happens for instance when ./config.status config.h
30947 if test -n "\$CONFIG_FILES"; then
30948   # Protect against being on the right side of a sed subst in config.status.
30949   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30950    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30951 s,@SHELL@,$SHELL,;t t
30952 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30953 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30954 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30955 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30956 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30957 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30958 s,@exec_prefix@,$exec_prefix,;t t
30959 s,@prefix@,$prefix,;t t
30960 s,@program_transform_name@,$program_transform_name,;t t
30961 s,@bindir@,$bindir,;t t
30962 s,@sbindir@,$sbindir,;t t
30963 s,@libexecdir@,$libexecdir,;t t
30964 s,@datadir@,$datadir,;t t
30965 s,@sysconfdir@,$sysconfdir,;t t
30966 s,@sharedstatedir@,$sharedstatedir,;t t
30967 s,@localstatedir@,$localstatedir,;t t
30968 s,@libdir@,$libdir,;t t
30969 s,@includedir@,$includedir,;t t
30970 s,@oldincludedir@,$oldincludedir,;t t
30971 s,@infodir@,$infodir,;t t
30972 s,@mandir@,$mandir,;t t
30973 s,@build_alias@,$build_alias,;t t
30974 s,@host_alias@,$host_alias,;t t
30975 s,@target_alias@,$target_alias,;t t
30976 s,@DEFS@,$DEFS,;t t
30977 s,@ECHO_C@,$ECHO_C,;t t
30978 s,@ECHO_N@,$ECHO_N,;t t
30979 s,@ECHO_T@,$ECHO_T,;t t
30980 s,@LIBS@,$LIBS,;t t
30981 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30982 s,@subdirs@,$subdirs,;t t
30983 s,@build@,$build,;t t
30984 s,@build_cpu@,$build_cpu,;t t
30985 s,@build_vendor@,$build_vendor,;t t
30986 s,@build_os@,$build_os,;t t
30987 s,@host@,$host,;t t
30988 s,@host_cpu@,$host_cpu,;t t
30989 s,@host_vendor@,$host_vendor,;t t
30990 s,@host_os@,$host_os,;t t
30991 s,@target@,$target,;t t
30992 s,@target_cpu@,$target_cpu,;t t
30993 s,@target_vendor@,$target_vendor,;t t
30994 s,@target_os@,$target_os,;t t
30995 s,@OS@,$OS,;t t
30996 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30997 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30998 s,@ARCH@,$ARCH,;t t
30999 s,@ENDIAN@,$ENDIAN,;t t
31000 s,@CC@,$CC,;t t
31001 s,@CFLAGS@,$CFLAGS,;t t
31002 s,@LDFLAGS@,$LDFLAGS,;t t
31003 s,@CPPFLAGS@,$CPPFLAGS,;t t
31004 s,@ac_ct_CC@,$ac_ct_CC,;t t
31005 s,@EXEEXT@,$EXEEXT,;t t
31006 s,@OBJEXT@,$OBJEXT,;t t
31007 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31008 s,@JIT@,$JIT,;t t
31009 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31010 s,@CPP@,$CPP,;t t
31011 s,@CXX@,$CXX,;t t
31012 s,@CXXFLAGS@,$CXXFLAGS,;t t
31013 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31014 s,@LEX@,$LEX,;t t
31015 s,@LEXLIB@,$LEXLIB,;t t
31016 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31017 s,@FLEX@,$FLEX,;t t
31018 s,@YACC@,$YACC,;t t
31019 s,@BISON@,$BISON,;t t
31020 s,@ifGNUmake@,$ifGNUmake,;t t
31021 s,@LN_S@,$LN_S,;t t
31022 s,@CMP@,$CMP,;t t
31023 s,@CP@,$CP,;t t
31024 s,@DATE@,$DATE,;t t
31025 s,@FIND@,$FIND,;t t
31026 s,@GREP@,$GREP,;t t
31027 s,@MKDIR@,$MKDIR,;t t
31028 s,@MV@,$MV,;t t
31029 s,@PAX@,$PAX,;t t
31030 s,@RANLIB@,$RANLIB,;t t
31031 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31032 s,@RM@,$RM,;t t
31033 s,@SED@,$SED,;t t
31034 s,@TAR@,$TAR,;t t
31035 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31036 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31037 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31038 s,@BZIP2@,$BZIP2,;t t
31039 s,@DOT@,$DOT,;t t
31040 s,@DOXYGEN@,$DOXYGEN,;t t
31041 s,@ETAGS@,$ETAGS,;t t
31042 s,@GROFF@,$GROFF,;t t
31043 s,@GZIP@,$GZIP,;t t
31044 s,@POD2HTML@,$POD2HTML,;t t
31045 s,@POD2MAN@,$POD2MAN,;t t
31046 s,@RUNTEST@,$RUNTEST,;t t
31047 s,@TCLSH@,$TCLSH,;t t
31048 s,@ZIP@,$ZIP,;t t
31049 s,@EGREP@,$EGREP,;t t
31050 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31051 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31052 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31053 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31054 s,@LIBADD_DL@,$LIBADD_DL,;t t
31055 s,@ECHO@,$ECHO,;t t
31056 s,@AR@,$AR,;t t
31057 s,@ac_ct_AR@,$ac_ct_AR,;t t
31058 s,@STRIP@,$STRIP,;t t
31059 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31060 s,@CXXCPP@,$CXXCPP,;t t
31061 s,@F77@,$F77,;t t
31062 s,@FFLAGS@,$FFLAGS,;t t
31063 s,@ac_ct_F77@,$ac_ct_F77,;t t
31064 s,@LIBTOOL@,$LIBTOOL,;t t
31065 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31066 s,@LLVMGCC@,$LLVMGCC,;t t
31067 s,@LLVMGXX@,$LLVMGXX,;t t
31068 s,@ALLOCA@,$ALLOCA,;t t
31069 s,@MMAP_FILE@,$MMAP_FILE,;t t
31070 s,@LLVMCC1@,$LLVMCC1,;t t
31071 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31072 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31073 s,@SHLIBEXT@,$SHLIBEXT,;t t
31074 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31075 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31076 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31077 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31078 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31079 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31080 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31081 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31082 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31083 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31084 s,@LIBOBJS@,$LIBOBJS,;t t
31085 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31086 CEOF
31087
31088 _ACEOF
31089
31090   cat >>$CONFIG_STATUS <<\_ACEOF
31091   # Split the substitutions into bite-sized pieces for seds with
31092   # small command number limits, like on Digital OSF/1 and HP-UX.
31093   ac_max_sed_lines=48
31094   ac_sed_frag=1 # Number of current file.
31095   ac_beg=1 # First line for current file.
31096   ac_end=$ac_max_sed_lines # Line after last line for current file.
31097   ac_more_lines=:
31098   ac_sed_cmds=
31099   while $ac_more_lines; do
31100     if test $ac_beg -gt 1; then
31101       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31102     else
31103       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31104     fi
31105     if test ! -s $tmp/subs.frag; then
31106       ac_more_lines=false
31107     else
31108       # The purpose of the label and of the branching condition is to
31109       # speed up the sed processing (if there are no `@' at all, there
31110       # is no need to browse any of the substitutions).
31111       # These are the two extra sed commands mentioned above.
31112       (echo ':t
31113   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31114       if test -z "$ac_sed_cmds"; then
31115         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31116       else
31117         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31118       fi
31119       ac_sed_frag=`expr $ac_sed_frag + 1`
31120       ac_beg=$ac_end
31121       ac_end=`expr $ac_end + $ac_max_sed_lines`
31122     fi
31123   done
31124   if test -z "$ac_sed_cmds"; then
31125     ac_sed_cmds=cat
31126   fi
31127 fi # test -n "$CONFIG_FILES"
31128
31129 _ACEOF
31130 cat >>$CONFIG_STATUS <<\_ACEOF
31131 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31132   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31133   case $ac_file in
31134   - | *:- | *:-:* ) # input from stdin
31135         cat >$tmp/stdin
31136         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31137         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31138   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31139         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31140   * )   ac_file_in=$ac_file.in ;;
31141   esac
31142
31143   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31144   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31146          X"$ac_file" : 'X\(//\)[^/]' \| \
31147          X"$ac_file" : 'X\(//\)$' \| \
31148          X"$ac_file" : 'X\(/\)' \| \
31149          .     : '\(.\)' 2>/dev/null ||
31150 echo X"$ac_file" |
31151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31152           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31153           /^X\(\/\/\)$/{ s//\1/; q; }
31154           /^X\(\/\).*/{ s//\1/; q; }
31155           s/.*/./; q'`
31156   { if $as_mkdir_p; then
31157     mkdir -p "$ac_dir"
31158   else
31159     as_dir="$ac_dir"
31160     as_dirs=
31161     while test ! -d "$as_dir"; do
31162       as_dirs="$as_dir $as_dirs"
31163       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31165          X"$as_dir" : 'X\(//\)[^/]' \| \
31166          X"$as_dir" : 'X\(//\)$' \| \
31167          X"$as_dir" : 'X\(/\)' \| \
31168          .     : '\(.\)' 2>/dev/null ||
31169 echo X"$as_dir" |
31170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31171           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31172           /^X\(\/\/\)$/{ s//\1/; q; }
31173           /^X\(\/\).*/{ s//\1/; q; }
31174           s/.*/./; q'`
31175     done
31176     test ! -n "$as_dirs" || mkdir $as_dirs
31177   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31178 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31179    { (exit 1); exit 1; }; }; }
31180
31181   ac_builddir=.
31182
31183 if test "$ac_dir" != .; then
31184   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31185   # A "../" for each directory in $ac_dir_suffix.
31186   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31187 else
31188   ac_dir_suffix= ac_top_builddir=
31189 fi
31190
31191 case $srcdir in
31192   .)  # No --srcdir option.  We are building in place.
31193     ac_srcdir=.
31194     if test -z "$ac_top_builddir"; then
31195        ac_top_srcdir=.
31196     else
31197        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31198     fi ;;
31199   [\\/]* | ?:[\\/]* )  # Absolute path.
31200     ac_srcdir=$srcdir$ac_dir_suffix;
31201     ac_top_srcdir=$srcdir ;;
31202   *) # Relative path.
31203     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31204     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31205 esac
31206
31207 # Do not use `cd foo && pwd` to compute absolute paths, because
31208 # the directories may not exist.
31209 case `pwd` in
31210 .) ac_abs_builddir="$ac_dir";;
31211 *)
31212   case "$ac_dir" in
31213   .) ac_abs_builddir=`pwd`;;
31214   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31215   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31216   esac;;
31217 esac
31218 case $ac_abs_builddir in
31219 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31220 *)
31221   case ${ac_top_builddir}. in
31222   .) ac_abs_top_builddir=$ac_abs_builddir;;
31223   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31224   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31225   esac;;
31226 esac
31227 case $ac_abs_builddir in
31228 .) ac_abs_srcdir=$ac_srcdir;;
31229 *)
31230   case $ac_srcdir in
31231   .) ac_abs_srcdir=$ac_abs_builddir;;
31232   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31233   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31234   esac;;
31235 esac
31236 case $ac_abs_builddir in
31237 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31238 *)
31239   case $ac_top_srcdir in
31240   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31241   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31242   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31243   esac;;
31244 esac
31245
31246
31247   case $INSTALL in
31248   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31249   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31250   esac
31251
31252   if test x"$ac_file" != x-; then
31253     { echo "$as_me:$LINENO: creating $ac_file" >&5
31254 echo "$as_me: creating $ac_file" >&6;}
31255     rm -f "$ac_file"
31256   fi
31257   # Let's still pretend it is `configure' which instantiates (i.e., don't
31258   # use $as_me), people would be surprised to read:
31259   #    /* config.h.  Generated by config.status.  */
31260   if test x"$ac_file" = x-; then
31261     configure_input=
31262   else
31263     configure_input="$ac_file.  "
31264   fi
31265   configure_input=$configure_input"Generated from `echo $ac_file_in |
31266                                      sed 's,.*/,,'` by configure."
31267
31268   # First look for the input files in the build tree, otherwise in the
31269   # src tree.
31270   ac_file_inputs=`IFS=:
31271     for f in $ac_file_in; do
31272       case $f in
31273       -) echo $tmp/stdin ;;
31274       [\\/$]*)
31275          # Absolute (can't be DOS-style, as IFS=:)
31276          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31277 echo "$as_me: error: cannot find input file: $f" >&2;}
31278    { (exit 1); exit 1; }; }
31279          echo "$f";;
31280       *) # Relative
31281          if test -f "$f"; then
31282            # Build tree
31283            echo "$f"
31284          elif test -f "$srcdir/$f"; then
31285            # Source tree
31286            echo "$srcdir/$f"
31287          else
31288            # /dev/null tree
31289            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31290 echo "$as_me: error: cannot find input file: $f" >&2;}
31291    { (exit 1); exit 1; }; }
31292          fi;;
31293       esac
31294     done` || { (exit 1); exit 1; }
31295 _ACEOF
31296 cat >>$CONFIG_STATUS <<_ACEOF
31297   sed "$ac_vpsub
31298 $extrasub
31299 _ACEOF
31300 cat >>$CONFIG_STATUS <<\_ACEOF
31301 :t
31302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31303 s,@configure_input@,$configure_input,;t t
31304 s,@srcdir@,$ac_srcdir,;t t
31305 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31306 s,@top_srcdir@,$ac_top_srcdir,;t t
31307 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31308 s,@builddir@,$ac_builddir,;t t
31309 s,@abs_builddir@,$ac_abs_builddir,;t t
31310 s,@top_builddir@,$ac_top_builddir,;t t
31311 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31312 s,@INSTALL@,$ac_INSTALL,;t t
31313 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31314   rm -f $tmp/stdin
31315   if test x"$ac_file" != x-; then
31316     mv $tmp/out $ac_file
31317   else
31318     cat $tmp/out
31319     rm -f $tmp/out
31320   fi
31321
31322 done
31323 _ACEOF
31324 cat >>$CONFIG_STATUS <<\_ACEOF
31325
31326 #
31327 # CONFIG_HEADER section.
31328 #
31329
31330 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31331 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31332 #
31333 # ac_d sets the value in "#define NAME VALUE" lines.
31334 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31335 ac_dB='[         ].*$,\1#\2'
31336 ac_dC=' '
31337 ac_dD=',;t'
31338 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31339 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31340 ac_uB='$,\1#\2define\3'
31341 ac_uC=' '
31342 ac_uD=',;t'
31343
31344 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31345   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31346   case $ac_file in
31347   - | *:- | *:-:* ) # input from stdin
31348         cat >$tmp/stdin
31349         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31350         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31351   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31352         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31353   * )   ac_file_in=$ac_file.in ;;
31354   esac
31355
31356   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31357 echo "$as_me: creating $ac_file" >&6;}
31358
31359   # First look for the input files in the build tree, otherwise in the
31360   # src tree.
31361   ac_file_inputs=`IFS=:
31362     for f in $ac_file_in; do
31363       case $f in
31364       -) echo $tmp/stdin ;;
31365       [\\/$]*)
31366          # Absolute (can't be DOS-style, as IFS=:)
31367          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31368 echo "$as_me: error: cannot find input file: $f" >&2;}
31369    { (exit 1); exit 1; }; }
31370          # Do quote $f, to prevent DOS paths from being IFS'd.
31371          echo "$f";;
31372       *) # Relative
31373          if test -f "$f"; then
31374            # Build tree
31375            echo "$f"
31376          elif test -f "$srcdir/$f"; then
31377            # Source tree
31378            echo "$srcdir/$f"
31379          else
31380            # /dev/null tree
31381            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31382 echo "$as_me: error: cannot find input file: $f" >&2;}
31383    { (exit 1); exit 1; }; }
31384          fi;;
31385       esac
31386     done` || { (exit 1); exit 1; }
31387   # Remove the trailing spaces.
31388   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31389
31390 _ACEOF
31391
31392 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31393 # `conftest.undefs', that substitutes the proper values into
31394 # config.h.in to produce config.h.  The first handles `#define'
31395 # templates, and the second `#undef' templates.
31396 # And first: Protect against being on the right side of a sed subst in
31397 # config.status.  Protect against being in an unquoted here document
31398 # in config.status.
31399 rm -f conftest.defines conftest.undefs
31400 # Using a here document instead of a string reduces the quoting nightmare.
31401 # Putting comments in sed scripts is not portable.
31402 #
31403 # `end' is used to avoid that the second main sed command (meant for
31404 # 0-ary CPP macros) applies to n-ary macro definitions.
31405 # See the Autoconf documentation for `clear'.
31406 cat >confdef2sed.sed <<\_ACEOF
31407 s/[\\&,]/\\&/g
31408 s,[\\$`],\\&,g
31409 t clear
31410 : clear
31411 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31412 t end
31413 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31414 : end
31415 _ACEOF
31416 # If some macros were called several times there might be several times
31417 # the same #defines, which is useless.  Nevertheless, we may not want to
31418 # sort them, since we want the *last* AC-DEFINE to be honored.
31419 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31420 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31421 rm -f confdef2sed.sed
31422
31423 # This sed command replaces #undef with comments.  This is necessary, for
31424 # example, in the case of _POSIX_SOURCE, which is predefined and required
31425 # on some systems where configure will not decide to define it.
31426 cat >>conftest.undefs <<\_ACEOF
31427 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31428 _ACEOF
31429
31430 # Break up conftest.defines because some shells have a limit on the size
31431 # of here documents, and old seds have small limits too (100 cmds).
31432 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31433 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31434 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31435 echo '  :' >>$CONFIG_STATUS
31436 rm -f conftest.tail
31437 while grep . conftest.defines >/dev/null
31438 do
31439   # Write a limited-size here document to $tmp/defines.sed.
31440   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31441   # Speed up: don't consider the non `#define' lines.
31442   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31443   # Work around the forget-to-reset-the-flag bug.
31444   echo 't clr' >>$CONFIG_STATUS
31445   echo ': clr' >>$CONFIG_STATUS
31446   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31447   echo 'CEOF
31448   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31449   rm -f $tmp/in
31450   mv $tmp/out $tmp/in
31451 ' >>$CONFIG_STATUS
31452   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31453   rm -f conftest.defines
31454   mv conftest.tail conftest.defines
31455 done
31456 rm -f conftest.defines
31457 echo '  fi # grep' >>$CONFIG_STATUS
31458 echo >>$CONFIG_STATUS
31459
31460 # Break up conftest.undefs because some shells have a limit on the size
31461 # of here documents, and old seds have small limits too (100 cmds).
31462 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31463 rm -f conftest.tail
31464 while grep . conftest.undefs >/dev/null
31465 do
31466   # Write a limited-size here document to $tmp/undefs.sed.
31467   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31468   # Speed up: don't consider the non `#undef'
31469   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31470   # Work around the forget-to-reset-the-flag bug.
31471   echo 't clr' >>$CONFIG_STATUS
31472   echo ': clr' >>$CONFIG_STATUS
31473   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31474   echo 'CEOF
31475   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31476   rm -f $tmp/in
31477   mv $tmp/out $tmp/in
31478 ' >>$CONFIG_STATUS
31479   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31480   rm -f conftest.undefs
31481   mv conftest.tail conftest.undefs
31482 done
31483 rm -f conftest.undefs
31484
31485 cat >>$CONFIG_STATUS <<\_ACEOF
31486   # Let's still pretend it is `configure' which instantiates (i.e., don't
31487   # use $as_me), people would be surprised to read:
31488   #    /* config.h.  Generated by config.status.  */
31489   if test x"$ac_file" = x-; then
31490     echo "/* Generated by configure.  */" >$tmp/config.h
31491   else
31492     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31493   fi
31494   cat $tmp/in >>$tmp/config.h
31495   rm -f $tmp/in
31496   if test x"$ac_file" != x-; then
31497     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31498       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31499 echo "$as_me: $ac_file is unchanged" >&6;}
31500     else
31501       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31503          X"$ac_file" : 'X\(//\)[^/]' \| \
31504          X"$ac_file" : 'X\(//\)$' \| \
31505          X"$ac_file" : 'X\(/\)' \| \
31506          .     : '\(.\)' 2>/dev/null ||
31507 echo X"$ac_file" |
31508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31509           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31510           /^X\(\/\/\)$/{ s//\1/; q; }
31511           /^X\(\/\).*/{ s//\1/; q; }
31512           s/.*/./; q'`
31513       { if $as_mkdir_p; then
31514     mkdir -p "$ac_dir"
31515   else
31516     as_dir="$ac_dir"
31517     as_dirs=
31518     while test ! -d "$as_dir"; do
31519       as_dirs="$as_dir $as_dirs"
31520       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31522          X"$as_dir" : 'X\(//\)[^/]' \| \
31523          X"$as_dir" : 'X\(//\)$' \| \
31524          X"$as_dir" : 'X\(/\)' \| \
31525          .     : '\(.\)' 2>/dev/null ||
31526 echo X"$as_dir" |
31527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31528           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31529           /^X\(\/\/\)$/{ s//\1/; q; }
31530           /^X\(\/\).*/{ s//\1/; q; }
31531           s/.*/./; q'`
31532     done
31533     test ! -n "$as_dirs" || mkdir $as_dirs
31534   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31535 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31536    { (exit 1); exit 1; }; }; }
31537
31538       rm -f $ac_file
31539       mv $tmp/config.h $ac_file
31540     fi
31541   else
31542     cat $tmp/config.h
31543     rm -f $tmp/config.h
31544   fi
31545 done
31546 _ACEOF
31547 cat >>$CONFIG_STATUS <<\_ACEOF
31548
31549 #
31550 # CONFIG_COMMANDS section.
31551 #
31552 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31553   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31554   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31555   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31556 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31557          X"$ac_dest" : 'X\(//\)[^/]' \| \
31558          X"$ac_dest" : 'X\(//\)$' \| \
31559          X"$ac_dest" : 'X\(/\)' \| \
31560          .     : '\(.\)' 2>/dev/null ||
31561 echo X"$ac_dest" |
31562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31564           /^X\(\/\/\)$/{ s//\1/; q; }
31565           /^X\(\/\).*/{ s//\1/; q; }
31566           s/.*/./; q'`
31567   { if $as_mkdir_p; then
31568     mkdir -p "$ac_dir"
31569   else
31570     as_dir="$ac_dir"
31571     as_dirs=
31572     while test ! -d "$as_dir"; do
31573       as_dirs="$as_dir $as_dirs"
31574       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31576          X"$as_dir" : 'X\(//\)[^/]' \| \
31577          X"$as_dir" : 'X\(//\)$' \| \
31578          X"$as_dir" : 'X\(/\)' \| \
31579          .     : '\(.\)' 2>/dev/null ||
31580 echo X"$as_dir" |
31581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31583           /^X\(\/\/\)$/{ s//\1/; q; }
31584           /^X\(\/\).*/{ s//\1/; q; }
31585           s/.*/./; q'`
31586     done
31587     test ! -n "$as_dirs" || mkdir $as_dirs
31588   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31590    { (exit 1); exit 1; }; }; }
31591
31592   ac_builddir=.
31593
31594 if test "$ac_dir" != .; then
31595   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31596   # A "../" for each directory in $ac_dir_suffix.
31597   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31598 else
31599   ac_dir_suffix= ac_top_builddir=
31600 fi
31601
31602 case $srcdir in
31603   .)  # No --srcdir option.  We are building in place.
31604     ac_srcdir=.
31605     if test -z "$ac_top_builddir"; then
31606        ac_top_srcdir=.
31607     else
31608        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31609     fi ;;
31610   [\\/]* | ?:[\\/]* )  # Absolute path.
31611     ac_srcdir=$srcdir$ac_dir_suffix;
31612     ac_top_srcdir=$srcdir ;;
31613   *) # Relative path.
31614     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31615     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31616 esac
31617
31618 # Do not use `cd foo && pwd` to compute absolute paths, because
31619 # the directories may not exist.
31620 case `pwd` in
31621 .) ac_abs_builddir="$ac_dir";;
31622 *)
31623   case "$ac_dir" in
31624   .) ac_abs_builddir=`pwd`;;
31625   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31626   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31627   esac;;
31628 esac
31629 case $ac_abs_builddir in
31630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31631 *)
31632   case ${ac_top_builddir}. in
31633   .) ac_abs_top_builddir=$ac_abs_builddir;;
31634   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31635   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31636   esac;;
31637 esac
31638 case $ac_abs_builddir in
31639 .) ac_abs_srcdir=$ac_srcdir;;
31640 *)
31641   case $ac_srcdir in
31642   .) ac_abs_srcdir=$ac_abs_builddir;;
31643   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31644   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31645   esac;;
31646 esac
31647 case $ac_abs_builddir in
31648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31649 *)
31650   case $ac_top_srcdir in
31651   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31652   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31653   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31654   esac;;
31655 esac
31656
31657
31658   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31659 echo "$as_me: executing $ac_dest commands" >&6;}
31660   case $ac_dest in
31661     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31662     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31663     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31664     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31665     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31666     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31667     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31668     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31669     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31670     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31671   esac
31672 done
31673 _ACEOF
31674
31675 cat >>$CONFIG_STATUS <<\_ACEOF
31676
31677 { (exit 0); exit 0; }
31678 _ACEOF
31679 chmod +x $CONFIG_STATUS
31680 ac_clean_files=$ac_clean_files_save
31681
31682
31683 # configure is writing to config.log, and then calls config.status.
31684 # config.status does its own redirection, appending to config.log.
31685 # Unfortunately, on DOS this fails, as config.log is still kept open
31686 # by configure, so config.status won't be able to write to it; its
31687 # output is simply discarded.  So we exec the FD to /dev/null,
31688 # effectively closing config.log, so it can be properly (re)opened and
31689 # appended to by config.status.  When coming back to configure, we
31690 # need to make the FD available again.
31691 if test "$no_create" != yes; then
31692   ac_cs_success=:
31693   ac_config_status_args=
31694   test "$silent" = yes &&
31695     ac_config_status_args="$ac_config_status_args --quiet"
31696   exec 5>/dev/null
31697   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31698   exec 5>>config.log
31699   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31700   # would make configure fail if this is the last instruction.
31701   $ac_cs_success || { (exit 1); exit 1; }
31702 fi
31703
31704 #
31705 # CONFIG_SUBDIRS section.
31706 #
31707 if test "$no_recursion" != yes; then
31708
31709   # Remove --cache-file and --srcdir arguments so they do not pile up.
31710   ac_sub_configure_args=
31711   ac_prev=
31712   for ac_arg in $ac_configure_args; do
31713     if test -n "$ac_prev"; then
31714       ac_prev=
31715       continue
31716     fi
31717     case $ac_arg in
31718     -cache-file | --cache-file | --cache-fil | --cache-fi \
31719     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31720       ac_prev=cache_file ;;
31721     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31722     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31723     | --c=*)
31724       ;;
31725     --config-cache | -C)
31726       ;;
31727     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31728       ac_prev=srcdir ;;
31729     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31730       ;;
31731     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31732       ac_prev=prefix ;;
31733     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31734       ;;
31735     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31736     esac
31737   done
31738
31739   # Always prepend --prefix to ensure using the same prefix
31740   # in subdir configurations.
31741   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31742
31743   ac_popdir=`pwd`
31744   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31745
31746     # Do not complain, so a configure script can configure whichever
31747     # parts of a large source tree are present.
31748     test -d $srcdir/$ac_dir || continue
31749
31750     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31751 echo "$as_me: configuring in $ac_dir" >&6;}
31752     { if $as_mkdir_p; then
31753     mkdir -p "$ac_dir"
31754   else
31755     as_dir="$ac_dir"
31756     as_dirs=
31757     while test ! -d "$as_dir"; do
31758       as_dirs="$as_dir $as_dirs"
31759       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31761          X"$as_dir" : 'X\(//\)[^/]' \| \
31762          X"$as_dir" : 'X\(//\)$' \| \
31763          X"$as_dir" : 'X\(/\)' \| \
31764          .     : '\(.\)' 2>/dev/null ||
31765 echo X"$as_dir" |
31766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31767           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31768           /^X\(\/\/\)$/{ s//\1/; q; }
31769           /^X\(\/\).*/{ s//\1/; q; }
31770           s/.*/./; q'`
31771     done
31772     test ! -n "$as_dirs" || mkdir $as_dirs
31773   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31774 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31775    { (exit 1); exit 1; }; }; }
31776
31777     ac_builddir=.
31778
31779 if test "$ac_dir" != .; then
31780   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31781   # A "../" for each directory in $ac_dir_suffix.
31782   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31783 else
31784   ac_dir_suffix= ac_top_builddir=
31785 fi
31786
31787 case $srcdir in
31788   .)  # No --srcdir option.  We are building in place.
31789     ac_srcdir=.
31790     if test -z "$ac_top_builddir"; then
31791        ac_top_srcdir=.
31792     else
31793        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31794     fi ;;
31795   [\\/]* | ?:[\\/]* )  # Absolute path.
31796     ac_srcdir=$srcdir$ac_dir_suffix;
31797     ac_top_srcdir=$srcdir ;;
31798   *) # Relative path.
31799     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31800     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31801 esac
31802
31803 # Do not use `cd foo && pwd` to compute absolute paths, because
31804 # the directories may not exist.
31805 case `pwd` in
31806 .) ac_abs_builddir="$ac_dir";;
31807 *)
31808   case "$ac_dir" in
31809   .) ac_abs_builddir=`pwd`;;
31810   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31811   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31812   esac;;
31813 esac
31814 case $ac_abs_builddir in
31815 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31816 *)
31817   case ${ac_top_builddir}. in
31818   .) ac_abs_top_builddir=$ac_abs_builddir;;
31819   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31820   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31821   esac;;
31822 esac
31823 case $ac_abs_builddir in
31824 .) ac_abs_srcdir=$ac_srcdir;;
31825 *)
31826   case $ac_srcdir in
31827   .) ac_abs_srcdir=$ac_abs_builddir;;
31828   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31829   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31830   esac;;
31831 esac
31832 case $ac_abs_builddir in
31833 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31834 *)
31835   case $ac_top_srcdir in
31836   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31837   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31838   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31839   esac;;
31840 esac
31841
31842
31843     cd $ac_dir
31844
31845     # Check for guested configure; otherwise get Cygnus style configure.
31846     if test -f $ac_srcdir/configure.gnu; then
31847       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31848     elif test -f $ac_srcdir/configure; then
31849       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31850     elif test -f $ac_srcdir/configure.in; then
31851       ac_sub_configure=$ac_configure
31852     else
31853       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31854 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31855       ac_sub_configure=
31856     fi
31857
31858     # The recursion is here.
31859     if test -n "$ac_sub_configure"; then
31860       # Make the cache file name correct relative to the subdirectory.
31861       case $cache_file in
31862       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31863       *) # Relative path.
31864         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31865       esac
31866
31867       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31868 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31869       # The eval makes quoting arguments work.
31870       eval $ac_sub_configure $ac_sub_configure_args \
31871            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31872         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31873 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31874    { (exit 1); exit 1; }; }
31875     fi
31876
31877     cd $ac_popdir
31878   done
31879 fi
31880
31881
31882 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31883  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31884 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31885  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31886 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31887  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31888 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31889  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31890 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31891  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31892 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31893 fi