Implement a test for the Graphviz program for Chris Lattner. The symbol
[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.6cvs.
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.6cvs'
429 PACKAGE_STRING='llvm 1.6cvs'
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-poolalloc"
441 # Factoring default headers for most tests.
442 ac_includes_default="\
443 #include <stdio.h>
444 #if HAVE_SYS_TYPES_H
445 # include <sys/types.h>
446 #endif
447 #if HAVE_SYS_STAT_H
448 # include <sys/stat.h>
449 #endif
450 #if STDC_HEADERS
451 # include <stdlib.h>
452 # include <stddef.h>
453 #else
454 # if HAVE_STDLIB_H
455 #  include <stdlib.h>
456 # endif
457 #endif
458 #if HAVE_STRING_H
459 # if !STDC_HEADERS && HAVE_MEMORY_H
460 #  include <memory.h>
461 # endif
462 # include <string.h>
463 #endif
464 #if HAVE_STRINGS_H
465 # include <strings.h>
466 #endif
467 #if HAVE_INTTYPES_H
468 # include <inttypes.h>
469 #else
470 # if HAVE_STDINT_H
471 #  include <stdint.h>
472 # endif
473 #endif
474 #if HAVE_UNISTD_H
475 # include <unistd.h>
476 #endif"
477
478 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 TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ 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'
479 ac_subst_files=''
480
481 # Initialize some variables set by options.
482 ac_init_help=
483 ac_init_version=false
484 # The variables have the same names as the options, with
485 # dashes changed to underlines.
486 cache_file=/dev/null
487 exec_prefix=NONE
488 no_create=
489 no_recursion=
490 prefix=NONE
491 program_prefix=NONE
492 program_suffix=NONE
493 program_transform_name=s,x,x,
494 silent=
495 site=
496 srcdir=
497 verbose=
498 x_includes=NONE
499 x_libraries=NONE
500
501 # Installation directory options.
502 # These are left unexpanded so users can "make install exec_prefix=/foo"
503 # and all the variables that are supposed to be based on exec_prefix
504 # by default will actually change.
505 # Use braces instead of parens because sh, perl, etc. also accept them.
506 bindir='${exec_prefix}/bin'
507 sbindir='${exec_prefix}/sbin'
508 libexecdir='${exec_prefix}/libexec'
509 datadir='${prefix}/share'
510 sysconfdir='${prefix}/etc'
511 sharedstatedir='${prefix}/com'
512 localstatedir='${prefix}/var'
513 libdir='${exec_prefix}/lib'
514 includedir='${prefix}/include'
515 oldincludedir='/usr/include'
516 infodir='${prefix}/info'
517 mandir='${prefix}/man'
518
519 ac_prev=
520 for ac_option
521 do
522   # If the previous option needs an argument, assign it.
523   if test -n "$ac_prev"; then
524     eval "$ac_prev=\$ac_option"
525     ac_prev=
526     continue
527   fi
528
529   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531   # Accept the important Cygnus configure options, so we can diagnose typos.
532
533   case $ac_option in
534
535   -bindir | --bindir | --bindi | --bind | --bin | --bi)
536     ac_prev=bindir ;;
537   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538     bindir=$ac_optarg ;;
539
540   -build | --build | --buil | --bui | --bu)
541     ac_prev=build_alias ;;
542   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543     build_alias=$ac_optarg ;;
544
545   -cache-file | --cache-file | --cache-fil | --cache-fi \
546   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547     ac_prev=cache_file ;;
548   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550     cache_file=$ac_optarg ;;
551
552   --config-cache | -C)
553     cache_file=config.cache ;;
554
555   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556     ac_prev=datadir ;;
557   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558   | --da=*)
559     datadir=$ac_optarg ;;
560
561   -disable-* | --disable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     eval "enable_$ac_feature=no" ;;
569
570   -enable-* | --enable-*)
571     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572     # Reject names that are not valid shell variable names.
573     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575    { (exit 1); exit 1; }; }
576     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577     case $ac_option in
578       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579       *) ac_optarg=yes ;;
580     esac
581     eval "enable_$ac_feature='$ac_optarg'" ;;
582
583   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585   | --exec | --exe | --ex)
586     ac_prev=exec_prefix ;;
587   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589   | --exec=* | --exe=* | --ex=*)
590     exec_prefix=$ac_optarg ;;
591
592   -gas | --gas | --ga | --g)
593     # Obsolete; use --with-gas.
594     with_gas=yes ;;
595
596   -help | --help | --hel | --he | -h)
597     ac_init_help=long ;;
598   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599     ac_init_help=recursive ;;
600   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601     ac_init_help=short ;;
602
603   -host | --host | --hos | --ho)
604     ac_prev=host_alias ;;
605   -host=* | --host=* | --hos=* | --ho=*)
606     host_alias=$ac_optarg ;;
607
608   -includedir | --includedir | --includedi | --included | --include \
609   | --includ | --inclu | --incl | --inc)
610     ac_prev=includedir ;;
611   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612   | --includ=* | --inclu=* | --incl=* | --inc=*)
613     includedir=$ac_optarg ;;
614
615   -infodir | --infodir | --infodi | --infod | --info | --inf)
616     ac_prev=infodir ;;
617   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618     infodir=$ac_optarg ;;
619
620   -libdir | --libdir | --libdi | --libd)
621     ac_prev=libdir ;;
622   -libdir=* | --libdir=* | --libdi=* | --libd=*)
623     libdir=$ac_optarg ;;
624
625   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626   | --libexe | --libex | --libe)
627     ac_prev=libexecdir ;;
628   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629   | --libexe=* | --libex=* | --libe=*)
630     libexecdir=$ac_optarg ;;
631
632   -localstatedir | --localstatedir | --localstatedi | --localstated \
633   | --localstate | --localstat | --localsta | --localst \
634   | --locals | --local | --loca | --loc | --lo)
635     ac_prev=localstatedir ;;
636   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639     localstatedir=$ac_optarg ;;
640
641   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642     ac_prev=mandir ;;
643   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644     mandir=$ac_optarg ;;
645
646   -nfp | --nfp | --nf)
647     # Obsolete; use --without-fp.
648     with_fp=no ;;
649
650   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651   | --no-cr | --no-c | -n)
652     no_create=yes ;;
653
654   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656     no_recursion=yes ;;
657
658   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660   | --oldin | --oldi | --old | --ol | --o)
661     ac_prev=oldincludedir ;;
662   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665     oldincludedir=$ac_optarg ;;
666
667   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668     ac_prev=prefix ;;
669   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670     prefix=$ac_optarg ;;
671
672   -program-prefix | --program-prefix | --program-prefi | --program-pref \
673   | --program-pre | --program-pr | --program-p)
674     ac_prev=program_prefix ;;
675   -program-prefix=* | --program-prefix=* | --program-prefi=* \
676   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677     program_prefix=$ac_optarg ;;
678
679   -program-suffix | --program-suffix | --program-suffi | --program-suff \
680   | --program-suf | --program-su | --program-s)
681     ac_prev=program_suffix ;;
682   -program-suffix=* | --program-suffix=* | --program-suffi=* \
683   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684     program_suffix=$ac_optarg ;;
685
686   -program-transform-name | --program-transform-name \
687   | --program-transform-nam | --program-transform-na \
688   | --program-transform-n | --program-transform- \
689   | --program-transform | --program-transfor \
690   | --program-transfo | --program-transf \
691   | --program-trans | --program-tran \
692   | --progr-tra | --program-tr | --program-t)
693     ac_prev=program_transform_name ;;
694   -program-transform-name=* | --program-transform-name=* \
695   | --program-transform-nam=* | --program-transform-na=* \
696   | --program-transform-n=* | --program-transform-=* \
697   | --program-transform=* | --program-transfor=* \
698   | --program-transfo=* | --program-transf=* \
699   | --program-trans=* | --program-tran=* \
700   | --progr-tra=* | --program-tr=* | --program-t=*)
701     program_transform_name=$ac_optarg ;;
702
703   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704   | -silent | --silent | --silen | --sile | --sil)
705     silent=yes ;;
706
707   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708     ac_prev=sbindir ;;
709   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710   | --sbi=* | --sb=*)
711     sbindir=$ac_optarg ;;
712
713   -sharedstatedir | --sharedstatedir | --sharedstatedi \
714   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715   | --sharedst | --shareds | --shared | --share | --shar \
716   | --sha | --sh)
717     ac_prev=sharedstatedir ;;
718   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721   | --sha=* | --sh=*)
722     sharedstatedir=$ac_optarg ;;
723
724   -site | --site | --sit)
725     ac_prev=site ;;
726   -site=* | --site=* | --sit=*)
727     site=$ac_optarg ;;
728
729   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730     ac_prev=srcdir ;;
731   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732     srcdir=$ac_optarg ;;
733
734   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735   | --syscon | --sysco | --sysc | --sys | --sy)
736     ac_prev=sysconfdir ;;
737   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739     sysconfdir=$ac_optarg ;;
740
741   -target | --target | --targe | --targ | --tar | --ta | --t)
742     ac_prev=target_alias ;;
743   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744     target_alias=$ac_optarg ;;
745
746   -v | -verbose | --verbose | --verbos | --verbo | --verb)
747     verbose=yes ;;
748
749   -version | --version | --versio | --versi | --vers | -V)
750     ac_init_version=: ;;
751
752   -with-* | --with-*)
753     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package| sed 's/-/_/g'`
759     case $ac_option in
760       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761       *) ac_optarg=yes ;;
762     esac
763     eval "with_$ac_package='$ac_optarg'" ;;
764
765   -without-* | --without-*)
766     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767     # Reject names that are not valid shell variable names.
768     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769       { echo "$as_me: error: invalid package name: $ac_package" >&2
770    { (exit 1); exit 1; }; }
771     ac_package=`echo $ac_package | sed 's/-/_/g'`
772     eval "with_$ac_package=no" ;;
773
774   --x)
775     # Obsolete; use --with-x.
776     with_x=yes ;;
777
778   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779   | --x-incl | --x-inc | --x-in | --x-i)
780     ac_prev=x_includes ;;
781   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783     x_includes=$ac_optarg ;;
784
785   -x-libraries | --x-libraries | --x-librarie | --x-librari \
786   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787     ac_prev=x_libraries ;;
788   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790     x_libraries=$ac_optarg ;;
791
792   -*) { echo "$as_me: error: unrecognized option: $ac_option
793 Try \`$0 --help' for more information." >&2
794    { (exit 1); exit 1; }; }
795     ;;
796
797   *=*)
798     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799     # Reject names that are not valid shell variable names.
800     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802    { (exit 1); exit 1; }; }
803     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804     eval "$ac_envvar='$ac_optarg'"
805     export $ac_envvar ;;
806
807   *)
808     # FIXME: should be removed in autoconf 3.0.
809     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813     ;;
814
815   esac
816 done
817
818 if test -n "$ac_prev"; then
819   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820   { echo "$as_me: error: missing argument to $ac_option" >&2
821    { (exit 1); exit 1; }; }
822 fi
823
824 # Be sure to have absolute paths.
825 for ac_var in exec_prefix prefix
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # Be sure to have absolute paths.
836 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
837               localstatedir libdir includedir oldincludedir infodir mandir
838 do
839   eval ac_val=$`echo $ac_var`
840   case $ac_val in
841     [\\/$]* | ?:[\\/]* ) ;;
842     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843    { (exit 1); exit 1; }; };;
844   esac
845 done
846
847 # There might be people who depend on the old broken behavior: `$host'
848 # used to hold the argument of --host etc.
849 # FIXME: To remove some day.
850 build=$build_alias
851 host=$host_alias
852 target=$target_alias
853
854 # FIXME: To remove some day.
855 if test "x$host_alias" != x; then
856   if test "x$build_alias" = x; then
857     cross_compiling=maybe
858     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859     If a cross compiler is detected then cross compile mode will be used." >&2
860   elif test "x$build_alias" != "x$host_alias"; then
861     cross_compiling=yes
862   fi
863 fi
864
865 ac_tool_prefix=
866 test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868 test "$silent" = yes && exec 6>/dev/null
869
870
871 # Find the source files, if location was not specified.
872 if test -z "$srcdir"; then
873   ac_srcdir_defaulted=yes
874   # Try the directory containing this script, then its parent.
875   ac_confdir=`(dirname "$0") 2>/dev/null ||
876 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
877          X"$0" : 'X\(//\)[^/]' \| \
878          X"$0" : 'X\(//\)$' \| \
879          X"$0" : 'X\(/\)' \| \
880          .     : '\(.\)' 2>/dev/null ||
881 echo X"$0" |
882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884           /^X\(\/\/\)$/{ s//\1/; q; }
885           /^X\(\/\).*/{ s//\1/; q; }
886           s/.*/./; q'`
887   srcdir=$ac_confdir
888   if test ! -r $srcdir/$ac_unique_file; then
889     srcdir=..
890   fi
891 else
892   ac_srcdir_defaulted=no
893 fi
894 if test ! -r $srcdir/$ac_unique_file; then
895   if test "$ac_srcdir_defaulted" = yes; then
896     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897    { (exit 1); exit 1; }; }
898   else
899     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900    { (exit 1); exit 1; }; }
901   fi
902 fi
903 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905    { (exit 1); exit 1; }; }
906 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907 ac_env_build_alias_set=${build_alias+set}
908 ac_env_build_alias_value=$build_alias
909 ac_cv_env_build_alias_set=${build_alias+set}
910 ac_cv_env_build_alias_value=$build_alias
911 ac_env_host_alias_set=${host_alias+set}
912 ac_env_host_alias_value=$host_alias
913 ac_cv_env_host_alias_set=${host_alias+set}
914 ac_cv_env_host_alias_value=$host_alias
915 ac_env_target_alias_set=${target_alias+set}
916 ac_env_target_alias_value=$target_alias
917 ac_cv_env_target_alias_set=${target_alias+set}
918 ac_cv_env_target_alias_value=$target_alias
919 ac_env_CC_set=${CC+set}
920 ac_env_CC_value=$CC
921 ac_cv_env_CC_set=${CC+set}
922 ac_cv_env_CC_value=$CC
923 ac_env_CFLAGS_set=${CFLAGS+set}
924 ac_env_CFLAGS_value=$CFLAGS
925 ac_cv_env_CFLAGS_set=${CFLAGS+set}
926 ac_cv_env_CFLAGS_value=$CFLAGS
927 ac_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_env_LDFLAGS_value=$LDFLAGS
929 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_cv_env_LDFLAGS_value=$LDFLAGS
931 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_env_CPPFLAGS_value=$CPPFLAGS
933 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXX_set=${CXX+set}
940 ac_env_CXX_value=$CXX
941 ac_cv_env_CXX_set=${CXX+set}
942 ac_cv_env_CXX_value=$CXX
943 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944 ac_env_CXXFLAGS_value=$CXXFLAGS
945 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
947 ac_env_CXXCPP_set=${CXXCPP+set}
948 ac_env_CXXCPP_value=$CXXCPP
949 ac_cv_env_CXXCPP_set=${CXXCPP+set}
950 ac_cv_env_CXXCPP_value=$CXXCPP
951 ac_env_F77_set=${F77+set}
952 ac_env_F77_value=$F77
953 ac_cv_env_F77_set=${F77+set}
954 ac_cv_env_F77_value=$F77
955 ac_env_FFLAGS_set=${FFLAGS+set}
956 ac_env_FFLAGS_value=$FFLAGS
957 ac_cv_env_FFLAGS_set=${FFLAGS+set}
958 ac_cv_env_FFLAGS_value=$FFLAGS
959
960 #
961 # Report the --help message.
962 #
963 if test "$ac_init_help" = "long"; then
964   # Omit some internal or obsolete options to make the list less imposing.
965   # This message is too long to be a string in the A/UX 3.1 sh.
966   cat <<_ACEOF
967 \`configure' configures llvm 1.6cvs to adapt to many kinds of systems.
968
969 Usage: $0 [OPTION]... [VAR=VALUE]...
970
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE.  See below for descriptions of some of the useful variables.
973
974 Defaults for the options are specified in brackets.
975
976 Configuration:
977   -h, --help              display this help and exit
978       --help=short        display options specific to this package
979       --help=recursive    display the short help of all the included packages
980   -V, --version           display version information and exit
981   -q, --quiet, --silent   do not print \`checking...' messages
982       --cache-file=FILE   cache test results in FILE [disabled]
983   -C, --config-cache      alias for \`--cache-file=config.cache'
984   -n, --no-create         do not create output files
985       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
986
987 _ACEOF
988
989   cat <<_ACEOF
990 Installation directories:
991   --prefix=PREFIX         install architecture-independent files in PREFIX
992                           [$ac_default_prefix]
993   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
994                           [PREFIX]
995
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1000
1001 For better control, use the options below.
1002
1003 Fine tuning of the installation directories:
1004   --bindir=DIR           user executables [EPREFIX/bin]
1005   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1006   --libexecdir=DIR       program executables [EPREFIX/libexec]
1007   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1008   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1009   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1010   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1011   --libdir=DIR           object code libraries [EPREFIX/lib]
1012   --includedir=DIR       C header files [PREFIX/include]
1013   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1014   --infodir=DIR          info documentation [PREFIX/info]
1015   --mandir=DIR           man documentation [PREFIX/man]
1016 _ACEOF
1017
1018   cat <<\_ACEOF
1019
1020 System types:
1021   --build=BUILD     configure for building on BUILD [guessed]
1022   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1023   --target=TARGET   configure for building compilers for TARGET [HOST]
1024 _ACEOF
1025 fi
1026
1027 if test -n "$ac_init_help"; then
1028   case $ac_init_help in
1029      short | recursive ) echo "Configuration of llvm 1.6cvs:";;
1030    esac
1031   cat <<\_ACEOF
1032
1033 Optional Features:
1034   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1035   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1036   --enable-optimized
1037   --enable-jit            Enable Just In Time Compiling (default is YES)
1038   --enable-doxygen        Build doxygen documentation (default is NO)
1039   --enable-target         Build specific host targets:
1040                           all,host-only,{target-name} (default=all)
1041   --enable-ltdl-install   install libltdl
1042   --enable-shared[=PKGS]
1043                           build shared libraries [default=yes]
1044   --enable-static[=PKGS]
1045                           build static libraries [default=yes]
1046   --enable-fast-install[=PKGS]
1047                           optimize for fast installation [default=yes]
1048   --disable-libtool-lock  avoid locking (might break parallel builds)
1049
1050 Optional Packages:
1051   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1052   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1053   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1054                           searches PATH)
1055   --with-tclinclude       directory where tcl headers are
1056   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1057   --with-pic              try to use only PIC/non-PIC objects [default=use
1058                           both]
1059   --with-tags[=TAGS]
1060                           include additional configurations [automatic]
1061
1062 Some influential environment variables:
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1066               nonstandard directory <lib dir>
1067   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068               headers in a nonstandard directory <include dir>
1069   CPP         C preprocessor
1070   CXX         C++ compiler command
1071   CXXFLAGS    C++ compiler flags
1072   CXXCPP      C++ preprocessor
1073   F77         Fortran 77 compiler command
1074   FFLAGS      Fortran 77 compiler flags
1075
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1078
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1080 _ACEOF
1081 fi
1082
1083 if test "$ac_init_help" = "recursive"; then
1084   # If there are subdirs, report their specific --help.
1085   ac_popdir=`pwd`
1086   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087     test -d $ac_dir || continue
1088     ac_builddir=.
1089
1090 if test "$ac_dir" != .; then
1091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092   # A "../" for each directory in $ac_dir_suffix.
1093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 else
1095   ac_dir_suffix= ac_top_builddir=
1096 fi
1097
1098 case $srcdir in
1099   .)  # No --srcdir option.  We are building in place.
1100     ac_srcdir=.
1101     if test -z "$ac_top_builddir"; then
1102        ac_top_srcdir=.
1103     else
1104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105     fi ;;
1106   [\\/]* | ?:[\\/]* )  # Absolute path.
1107     ac_srcdir=$srcdir$ac_dir_suffix;
1108     ac_top_srcdir=$srcdir ;;
1109   *) # Relative path.
1110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 esac
1113
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1116 case `pwd` in
1117 .) ac_abs_builddir="$ac_dir";;
1118 *)
1119   case "$ac_dir" in
1120   .) ac_abs_builddir=`pwd`;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *)
1128   case ${ac_top_builddir}. in
1129   .) ac_abs_top_builddir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1136 *)
1137   case $ac_srcdir in
1138   .) ac_abs_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141   esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *)
1146   case $ac_top_srcdir in
1147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150   esac;;
1151 esac
1152
1153     cd $ac_dir
1154     # Check for guested configure; otherwise get Cygnus style configure.
1155     if test -f $ac_srcdir/configure.gnu; then
1156       echo
1157       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1158     elif test -f $ac_srcdir/configure; then
1159       echo
1160       $SHELL $ac_srcdir/configure  --help=recursive
1161     elif test -f $ac_srcdir/configure.ac ||
1162            test -f $ac_srcdir/configure.in; then
1163       echo
1164       $ac_configure --help
1165     else
1166       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167     fi
1168     cd $ac_popdir
1169   done
1170 fi
1171
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1174   cat <<\_ACEOF
1175 llvm configure 1.6cvs
1176 generated by GNU Autoconf 2.59
1177
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1181
1182 $LLVM_COPYRIGHT
1183 _ACEOF
1184   exit 0
1185 fi
1186 exec 5>config.log
1187 cat >&5 <<_ACEOF
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1190
1191 It was created by llvm $as_me 1.6cvs, which was
1192 generated by GNU Autoconf 2.59.  Invocation command line was
1193
1194   $ $0 $@
1195
1196 _ACEOF
1197 {
1198 cat <<_ASUNAME
1199 ## --------- ##
1200 ## Platform. ##
1201 ## --------- ##
1202
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1211
1212 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1213 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1216 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1217 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1218 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1219
1220 _ASUNAME
1221
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 for as_dir in $PATH
1224 do
1225   IFS=$as_save_IFS
1226   test -z "$as_dir" && as_dir=.
1227   echo "PATH: $as_dir"
1228 done
1229
1230 } >&5
1231
1232 cat >&5 <<_ACEOF
1233
1234
1235 ## ----------- ##
1236 ## Core tests. ##
1237 ## ----------- ##
1238
1239 _ACEOF
1240
1241
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1247 ac_configure_args=
1248 ac_configure_args0=
1249 ac_configure_args1=
1250 ac_sep=
1251 ac_must_keep_next=false
1252 for ac_pass in 1 2
1253 do
1254   for ac_arg
1255   do
1256     case $ac_arg in
1257     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259     | -silent | --silent | --silen | --sile | --sil)
1260       continue ;;
1261     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263     esac
1264     case $ac_pass in
1265     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266     2)
1267       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268       if test $ac_must_keep_next = true; then
1269         ac_must_keep_next=false # Got value, back to normal.
1270       else
1271         case $ac_arg in
1272           *=* | --config-cache | -C | -disable-* | --disable-* \
1273           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275           | -with-* | --with-* | -without-* | --without-* | --x)
1276             case "$ac_configure_args0 " in
1277               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278             esac
1279             ;;
1280           -* ) ac_must_keep_next=true ;;
1281         esac
1282       fi
1283       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284       # Get rid of the leading space.
1285       ac_sep=" "
1286       ;;
1287     esac
1288   done
1289 done
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log.  We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299   # Save into config.log some information that might help in debugging.
1300   {
1301     echo
1302
1303     cat <<\_ASBOX
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1307 _ASBOX
1308     echo
1309     # The following way of writing the cache mishandles newlines in values,
1310 {
1311   (set) 2>&1 |
1312     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313     *ac_space=\ *)
1314       sed -n \
1315         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317       ;;
1318     *)
1319       sed -n \
1320         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321       ;;
1322     esac;
1323 }
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1330 _ASBOX
1331     echo
1332     for ac_var in $ac_subst_vars
1333     do
1334       eval ac_val=$`echo $ac_var`
1335       echo "$ac_var='"'"'$ac_val'"'"'"
1336     done | sort
1337     echo
1338
1339     if test -n "$ac_subst_files"; then
1340       cat <<\_ASBOX
1341 ## ------------- ##
1342 ## Output files. ##
1343 ## ------------- ##
1344 _ASBOX
1345       echo
1346       for ac_var in $ac_subst_files
1347       do
1348         eval ac_val=$`echo $ac_var`
1349         echo "$ac_var='"'"'$ac_val'"'"'"
1350       done | sort
1351       echo
1352     fi
1353
1354     if test -s confdefs.h; then
1355       cat <<\_ASBOX
1356 ## ----------- ##
1357 ## confdefs.h. ##
1358 ## ----------- ##
1359 _ASBOX
1360       echo
1361       sed "/^$/d" confdefs.h | sort
1362       echo
1363     fi
1364     test "$ac_signal" != 0 &&
1365       echo "$as_me: caught signal $ac_signal"
1366     echo "$as_me: exit $exit_status"
1367   } >&5
1368   rm -f core *.core &&
1369   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370     exit $exit_status
1371      ' 0
1372 for ac_signal in 1 2 13 15; do
1373   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 done
1375 ac_signal=0
1376
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 echo >confdefs.h
1381
1382 # Predefined preprocessor variables.
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 _ACEOF
1407
1408
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412   if test "x$prefix" != xNONE; then
1413     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414   else
1415     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416   fi
1417 fi
1418 for ac_site_file in $CONFIG_SITE; do
1419   if test -r "$ac_site_file"; then
1420     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422     sed 's/^/| /' "$ac_site_file" >&5
1423     . "$ac_site_file"
1424   fi
1425 done
1426
1427 if test -r "$cache_file"; then
1428   # Some versions of bash will fail to source /dev/null (special
1429   # files actually), so we avoid doing that.
1430   if test -f "$cache_file"; then
1431     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1433     case $cache_file in
1434       [\\/]* | ?:[\\/]* ) . $cache_file;;
1435       *)                      . ./$cache_file;;
1436     esac
1437   fi
1438 else
1439   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1441   >$cache_file
1442 fi
1443
1444 # Check that the precious variables saved in the cache have kept the same
1445 # value.
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450   eval ac_new_set=\$ac_env_${ac_var}_set
1451   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452   eval ac_new_val="\$ac_env_${ac_var}_value"
1453   case $ac_old_set,$ac_new_set in
1454     set,)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,set)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,);;
1463     *)
1464       if test "x$ac_old_val" != "x$ac_new_val"; then
1465         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1468 echo "$as_me:   former value:  $ac_old_val" >&2;}
1469         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1470 echo "$as_me:   current value: $ac_new_val" >&2;}
1471         ac_cache_corrupted=:
1472       fi;;
1473   esac
1474   # Pass precious variables to config.status.
1475   if test "$ac_new_set" = set; then
1476     case $ac_new_val in
1477     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479     *) ac_arg=$ac_var=$ac_new_val ;;
1480     esac
1481     case " $ac_configure_args " in
1482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1483       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484     esac
1485   fi
1486 done
1487 if $ac_cache_corrupted; then
1488   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492    { (exit 1); exit 1; }; }
1493 fi
1494
1495 ac_ext=c
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1528 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1529
1530
1531
1532
1533
1534
1535
1536 ac_aux_dir=
1537 for ac_dir in autoconf $srcdir/autoconf; do
1538   if test -f $ac_dir/install-sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install-sh -c"
1541     break
1542   elif test -f $ac_dir/install.sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install.sh -c"
1545     break
1546   elif test -f $ac_dir/shtool; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/shtool install -c"
1549     break
1550   fi
1551 done
1552 if test -z "$ac_aux_dir"; then
1553   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1555    { (exit 1); exit 1; }; }
1556 fi
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561
1562 if test ${srcdir} != "." ; then
1563   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1565 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566    { (exit 1); exit 1; }; }
1567   fi
1568 fi
1569
1570 for i in `ls ${srcdir}/projects`
1571 do
1572   if test -d ${srcdir}/projects/${i} ; then
1573     case ${i} in
1574       "CVS") ;;
1575       "sample")
1576
1577 subdirs="$subdirs projects/sample"
1578     ;;
1579       "Stacker")
1580
1581 subdirs="$subdirs projects/Stacker"
1582    ;;
1583       "llvm-test")
1584
1585 subdirs="$subdirs projects/llvm-test"
1586  ;;
1587       "llvm-reopt")
1588
1589 subdirs="$subdirs projects/llvm-reopt"
1590 ;;
1591       "llvm-gcc")
1592
1593 subdirs="$subdirs projects/llvm-gcc"
1594   ;;
1595       "llvm-java")
1596
1597 subdirs="$subdirs projects/llvm-java"
1598  ;;
1599       "llvm-tv")
1600
1601 subdirs="$subdirs projects/llvm-tv"
1602    ;;
1603       "llvm-poolalloc")
1604
1605 subdirs="$subdirs projects/llvm-poolalloc"
1606  ;;
1607       *)
1608         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1610         ;;
1611     esac
1612   fi
1613 done
1614
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701 if test "${llvm_cv_os_type+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   case $build in
1705   *-*-aix*)
1706     llvm_cv_os_type="AIX"
1707     llvm_cv_platform_type="Unix" ;;
1708   *-*-cygwin*)
1709     llvm_cv_os_type="Cygwin"
1710     llvm_cv_platform_type="Unix" ;;
1711   *-*-darwin*)
1712     llvm_cv_os_type="Darwin"
1713     llvm_cv_platform_type="Unix" ;;
1714   *-*-freebsd*)
1715     llvm_cv_os_type="FreeBSD"
1716     llvm_cv_platform_type="Unix" ;;
1717   *-*-hpux*)
1718     llvm_cv_os_type="HP-UX"
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 echo "$as_me:$LINENO: checking target architecture" >&5
1778 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1779 if test "${llvm_cv_target_arch+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   case $target in
1783   i?86-*)                 llvm_cv_target_arch="x86" ;;
1784   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1785   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1786   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1787   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1788   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1789   *)                      llvm_cv_target_arch="Unknown" ;;
1790 esac
1791 fi
1792 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1793 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1794
1795 if test "$llvm_cv_target_arch" = "Unknown" ; then
1796   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1797 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1798 fi
1799
1800 ARCH=$llvm_cv_target_arch
1801
1802
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 if test -n "$ac_tool_prefix"; then
1809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_CC+set}" = set; then
1814   echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816   if test -n "$CC"; then
1817   ac_cv_prog_CC="$CC" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822   IFS=$as_save_IFS
1823   test -z "$as_dir" && as_dir=.
1824   for ac_exec_ext in '' $ac_executable_extensions; do
1825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828     break 2
1829   fi
1830 done
1831 done
1832
1833 fi
1834 fi
1835 CC=$ac_cv_prog_CC
1836 if test -n "$CC"; then
1837   echo "$as_me:$LINENO: result: $CC" >&5
1838 echo "${ECHO_T}$CC" >&6
1839 else
1840   echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1842 fi
1843
1844 fi
1845 if test -z "$ac_cv_prog_CC"; then
1846   ac_ct_CC=$CC
1847   # Extract the first word of "gcc", so it can be a program name with args.
1848 set dummy gcc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test -n "$ac_ct_CC"; then
1855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860   IFS=$as_save_IFS
1861   test -z "$as_dir" && as_dir=.
1862   for ac_exec_ext in '' $ac_executable_extensions; do
1863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864     ac_cv_prog_ac_ct_CC="gcc"
1865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866     break 2
1867   fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874 if test -n "$ac_ct_CC"; then
1875   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876 echo "${ECHO_T}$ac_ct_CC" >&6
1877 else
1878   echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882   CC=$ac_ct_CC
1883 else
1884   CC="$ac_cv_prog_CC"
1885 fi
1886
1887 if test -z "$CC"; then
1888   if test -n "$ac_tool_prefix"; then
1889   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1890 set dummy ${ac_tool_prefix}cc; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_CC+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$CC"; then
1897   ac_cv_prog_CC="$CC" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906     ac_cv_prog_CC="${ac_tool_prefix}cc"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912
1913 fi
1914 fi
1915 CC=$ac_cv_prog_CC
1916 if test -n "$CC"; then
1917   echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6
1919 else
1920   echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1922 fi
1923
1924 fi
1925 if test -z "$ac_cv_prog_CC"; then
1926   ac_ct_CC=$CC
1927   # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$ac_ct_CC"; then
1935   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   for ac_exec_ext in '' $ac_executable_extensions; do
1943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944     ac_cv_prog_ac_ct_CC="cc"
1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946     break 2
1947   fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954 if test -n "$ac_ct_CC"; then
1955   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956 echo "${ECHO_T}$ac_ct_CC" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962   CC=$ac_ct_CC
1963 else
1964   CC="$ac_cv_prog_CC"
1965 fi
1966
1967 fi
1968 if test -z "$CC"; then
1969   # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$CC"; then
1977   ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979   ac_prog_rejected=no
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988        ac_prog_rejected=yes
1989        continue
1990      fi
1991     ac_cv_prog_CC="cc"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998 if test $ac_prog_rejected = yes; then
1999   # We found a bogon in the path, so make sure we never use it.
2000   set dummy $ac_cv_prog_CC
2001   shift
2002   if test $# != 0; then
2003     # We chose a different compiler from the bogus one.
2004     # However, it has the same basename, so the bogon will be chosen
2005     # first if we set CC to just the basename; use the full file name.
2006     shift
2007     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2008   fi
2009 fi
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014   echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017   echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2019 fi
2020
2021 fi
2022 if test -z "$CC"; then
2023   if test -n "$ac_tool_prefix"; then
2024   for ac_prog in cl
2025   do
2026     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$CC"; then
2034   ac_cv_prog_CC="$CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049
2050 fi
2051 fi
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054   echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6
2056 else
2057   echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2059 fi
2060
2061     test -n "$CC" && break
2062   done
2063 fi
2064 if test -z "$CC"; then
2065   ac_ct_CC=$CC
2066   for ac_prog in cl
2067 do
2068   # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$ac_ct_CC"; then
2076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085     ac_cv_prog_ac_ct_CC="$ac_prog"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091
2092 fi
2093 fi
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6
2098 else
2099   echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2101 fi
2102
2103   test -n "$ac_ct_CC" && break
2104 done
2105
2106   CC=$ac_ct_CC
2107 fi
2108
2109 fi
2110
2111
2112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: no acceptable C compiler found in \$PATH
2115 See \`config.log' for more details." >&2;}
2116    { (exit 1); exit 1; }; }
2117
2118 # Provide some information about the compiler.
2119 echo "$as_me:$LINENO:" \
2120      "checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123   (eval $ac_compiler --version </dev/null >&5) 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128   (eval $ac_compiler -v </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
2138 cat >conftest.$ac_ext <<_ACEOF
2139 /* confdefs.h.  */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h.  */
2144
2145 int
2146 main ()
2147 {
2148
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 ac_clean_files_save=$ac_clean_files
2154 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2155 # Try to create an executable without -o first, disregard a.out.
2156 # It will help us diagnose broken compilers, and finding out an intuition
2157 # of exeext.
2158 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2160 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162   (eval $ac_link_default) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; then
2166   # Find the output, starting from the most likely.  This scheme is
2167 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168 # resort.
2169
2170 # Be careful to initialize this variable, since it used to be cached.
2171 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172 ac_cv_exeext=
2173 # b.out is created by i960 compilers.
2174 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175 do
2176   test -f "$ac_file" || continue
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2179         ;;
2180     conftest.$ac_ext )
2181         # This is the source file.
2182         ;;
2183     [ab].out )
2184         # We found the default executable, but exeext='' is most
2185         # certainly right.
2186         break;;
2187     *.* )
2188         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189         # FIXME: I believe we export ac_cv_exeext for Libtool,
2190         # but it would be cool to find out if it's true.  Does anybody
2191         # maintain Libtool? --akim.
2192         export ac_cv_exeext
2193         break;;
2194     * )
2195         break;;
2196   esac
2197 done
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206    { (exit 77); exit 77; }; }
2207 fi
2208
2209 ac_exeext=$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6
2212
2213 # Check the compiler produces executables we can run.  If not, either
2214 # the compiler is broken, or we cross compile.
2215 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220   if { ac_try='./$ac_file'
2221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222   (eval $ac_try) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); }; }; then
2226     cross_compiling=no
2227   else
2228     if test "$cross_compiling" = maybe; then
2229         cross_compiling=yes
2230     else
2231         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238     fi
2239   fi
2240 fi
2241 echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6
2243
2244 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245 ac_clean_files=$ac_clean_files_save
2246 # Check the compiler produces executables we can run.  If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6
2252
2253 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256   (eval $ac_link) 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; then
2260   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2262 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 # `rm'.
2264 for ac_file in conftest.exe conftest conftest.*; do
2265   test -f "$ac_file" || continue
2266   case $ac_file in
2267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2268     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269           export ac_cv_exeext
2270           break;;
2271     * ) break;;
2272   esac
2273 done
2274 else
2275   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&2;}
2279    { (exit 1); exit 1; }; }
2280 fi
2281
2282 rm -f conftest$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284 echo "${ECHO_T}$ac_cv_exeext" >&6
2285
2286 rm -f conftest.$ac_ext
2287 EXEEXT=$ac_cv_exeext
2288 ac_exeext=$EXEEXT
2289 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291 if test "${ac_cv_objext+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.o conftest.obj
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; then
2315   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316   case $ac_file in
2317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319        break;;
2320   esac
2321 done
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334 fi
2335 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6
2337 OBJEXT=$ac_cv_objext
2338 ac_objext=$OBJEXT
2339 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h.  */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h.  */
2350
2351 int
2352 main ()
2353 {
2354 #ifndef __GNUC__
2355        choke me
2356 #endif
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364   (eval $ac_compile) 2>conftest.er1
2365   ac_status=$?
2366   grep -v '^ *+' conftest.er1 >conftest.err
2367   rm -f conftest.er1
2368   cat conftest.err >&5
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); } &&
2371          { ac_try='test -z "$ac_c_werror_flag"
2372                          || test ! -s conftest.err'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; } &&
2378          { ac_try='test -s conftest.$ac_objext'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; }; then
2384   ac_compiler_gnu=yes
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 ac_compiler_gnu=no
2390 fi
2391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2393
2394 fi
2395 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397 GCC=`test $ac_compiler_gnu = yes && echo yes`
2398 ac_test_CFLAGS=${CFLAGS+set}
2399 ac_save_CFLAGS=$CFLAGS
2400 CFLAGS="-g"
2401 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403 if test "${ac_cv_prog_cc_g+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412
2413 int
2414 main ()
2415 {
2416
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423   (eval $ac_compile) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -z "$ac_c_werror_flag"
2431                          || test ! -s conftest.err'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   ac_cv_prog_cc_g=yes
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_cv_prog_cc_g=no
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454 if test "$ac_test_CFLAGS" = set; then
2455   CFLAGS=$ac_save_CFLAGS
2456 elif test $ac_cv_prog_cc_g = yes; then
2457   if test "$GCC" = yes; then
2458     CFLAGS="-g -O2"
2459   else
2460     CFLAGS="-g"
2461   fi
2462 else
2463   if test "$GCC" = yes; then
2464     CFLAGS="-O2"
2465   else
2466     CFLAGS=
2467   fi
2468 fi
2469 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472   echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474   ac_cv_prog_cc_stdc=no
2475 ac_save_CC=$CC
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h.  */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h.  */
2482 #include <stdarg.h>
2483 #include <stdio.h>
2484 #include <sys/types.h>
2485 #include <sys/stat.h>
2486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2487 struct buf { int x; };
2488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489 static char *e (p, i)
2490      char **p;
2491      int i;
2492 {
2493   return p[i];
2494 }
2495 static char *f (char * (*g) (char **, int), char **p, ...)
2496 {
2497   char *s;
2498   va_list v;
2499   va_start (v,p);
2500   s = g (p, va_arg (v,int));
2501   va_end (v);
2502   return s;
2503 }
2504
2505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2506    function prototypes and stuff, but not '\xHH' hex character constants.
2507    These don't provoke an error unfortunately, instead are silently treated
2508    as 'x'.  The following induces an error, until -std1 is added to get
2509    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2510    array size at least.  It's necessary to write '\x00'==0 to get something
2511    that's true only with -std1.  */
2512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513
2514 int test (int i, double x);
2515 struct s1 {int (*f) (int a);};
2516 struct s2 {int (*f) (double a);};
2517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518 int argc;
2519 char **argv;
2520 int
2521 main ()
2522 {
2523 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 # Don't try gcc -ansi; that turns off useful extensions and
2529 # breaks some systems' header files.
2530 # AIX                   -qlanglvl=ansi
2531 # Ultrix and OSF/1      -std1
2532 # HP-UX 10.20 and later -Ae
2533 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2534 # SVR4                  -Xc -D__EXTENSIONS__
2535 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536 do
2537   CC="$ac_save_CC $ac_arg"
2538   rm -f conftest.$ac_objext
2539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540   (eval $ac_compile) 2>conftest.er1
2541   ac_status=$?
2542   grep -v '^ *+' conftest.er1 >conftest.err
2543   rm -f conftest.er1
2544   cat conftest.err >&5
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); } &&
2547          { ac_try='test -z "$ac_c_werror_flag"
2548                          || test ! -s conftest.err'
2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; } &&
2554          { ac_try='test -s conftest.$ac_objext'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; }; then
2560   ac_cv_prog_cc_stdc=$ac_arg
2561 break
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 fi
2567 rm -f conftest.err conftest.$ac_objext
2568 done
2569 rm -f conftest.$ac_ext conftest.$ac_objext
2570 CC=$ac_save_CC
2571
2572 fi
2573
2574 case "x$ac_cv_prog_cc_stdc" in
2575   x|xno)
2576     echo "$as_me:$LINENO: result: none needed" >&5
2577 echo "${ECHO_T}none needed" >&6 ;;
2578   *)
2579     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581     CC="$CC $ac_cv_prog_cc_stdc" ;;
2582 esac
2583
2584 # Some people use a C++ compiler to compile C.  Since we use `exit',
2585 # in C++ we need to declare it.  In case someone uses the same compiler
2586 # for both compiling C and C++ we need to have the C++ compiler decide
2587 # the declaration of exit, since it's the most demanding environment.
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #ifndef __cplusplus
2590   choke me
2591 #endif
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595   (eval $ac_compile) 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -z "$ac_c_werror_flag"
2603                          || test ! -s conftest.err'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; } &&
2609          { ac_try='test -s conftest.$ac_objext'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   for ac_declaration in \
2616    '' \
2617    'extern "C" void std::exit (int) throw (); using std::exit;' \
2618    'extern "C" void std::exit (int); using std::exit;' \
2619    'extern "C" void exit (int) throw ();' \
2620    'extern "C" void exit (int);' \
2621    'void exit (int);'
2622 do
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 $ac_declaration
2630 #include <stdlib.h>
2631 int
2632 main ()
2633 {
2634 exit (42);
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -z "$ac_c_werror_flag"
2649                          || test ! -s conftest.err'
2650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651   (eval $ac_try) 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; } &&
2655          { ac_try='test -s conftest.$ac_objext'
2656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; }; then
2661   :
2662 else
2663   echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 continue
2667 fi
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669   cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675 $ac_declaration
2676 int
2677 main ()
2678 {
2679 exit (42);
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686   (eval $ac_compile) 2>conftest.er1
2687   ac_status=$?
2688   grep -v '^ *+' conftest.er1 >conftest.err
2689   rm -f conftest.er1
2690   cat conftest.err >&5
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693          { ac_try='test -z "$ac_c_werror_flag"
2694                          || test ! -s conftest.err'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; } &&
2700          { ac_try='test -s conftest.$ac_objext'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; }; then
2706   break
2707 else
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 fi
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713 done
2714 rm -f conftest*
2715 if test -n "$ac_declaration"; then
2716   echo '#ifdef __cplusplus' >>confdefs.h
2717   echo $ac_declaration      >>confdefs.h
2718   echo '#endif'             >>confdefs.h
2719 fi
2720
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 fi
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2735 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2736 if test "${ac_cv_c_bigendian+set}" = set; then
2737   echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739   # See if sys/param.h defines the BYTE_ORDER macro.
2740 cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746 #include <sys/types.h>
2747 #include <sys/param.h>
2748
2749 int
2750 main ()
2751 {
2752 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2753  bogus endian macros
2754 #endif
2755
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762   (eval $ac_compile) 2>conftest.er1
2763   ac_status=$?
2764   grep -v '^ *+' conftest.er1 >conftest.err
2765   rm -f conftest.er1
2766   cat conftest.err >&5
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -z "$ac_c_werror_flag"
2770                          || test ! -s conftest.err'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; } &&
2776          { ac_try='test -s conftest.$ac_objext'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; }; then
2782   # It does; now see whether it defined to BIG_ENDIAN or not.
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h.  */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h.  */
2789 #include <sys/types.h>
2790 #include <sys/param.h>
2791
2792 int
2793 main ()
2794 {
2795 #if BYTE_ORDER != BIG_ENDIAN
2796  not big endian
2797 #endif
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -z "$ac_c_werror_flag"
2813                          || test ! -s conftest.err'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; } &&
2819          { ac_try='test -s conftest.$ac_objext'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; }; then
2825   ac_cv_c_bigendian=yes
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 ac_cv_c_bigendian=no
2831 fi
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 # It does not; compile a test program.
2838 if test "$cross_compiling" = yes; then
2839   # try to guess the endianness by grepping values into an object file
2840   ac_cv_c_bigendian=unknown
2841   cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h.  */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h.  */
2847 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2848 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2849 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2850 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2851 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2852 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2853 int
2854 main ()
2855 {
2856  _ascii (); _ebcdic ();
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_c_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2884   ac_cv_c_bigendian=yes
2885 fi
2886 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2887   if test "$ac_cv_c_bigendian" = unknown; then
2888     ac_cv_c_bigendian=no
2889   else
2890     # finding both strings is unlikely to happen, but who knows?
2891     ac_cv_c_bigendian=unknown
2892   fi
2893 fi
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 else
2901   cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h.  */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h.  */
2907 int
2908 main ()
2909 {
2910   /* Are we little or big endian?  From Harbison&Steele.  */
2911   union
2912   {
2913     long l;
2914     char c[sizeof (long)];
2915   } u;
2916   u.l = 1;
2917   exit (u.c[sizeof (long) - 1] == 1);
2918 }
2919 _ACEOF
2920 rm -f conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922   (eval $ac_link) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_cv_c_bigendian=no
2932 else
2933   echo "$as_me: program exited with status $ac_status" >&5
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 ( exit $ac_status )
2938 ac_cv_c_bigendian=yes
2939 fi
2940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2941 fi
2942 fi
2943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944 fi
2945 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2946 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2947 case $ac_cv_c_bigendian in
2948   yes)
2949     ENDIAN=big
2950  ;;
2951   no)
2952     ENDIAN=little
2953  ;;
2954   *)
2955     { { echo "$as_me:$LINENO: error: unknown endianness
2956 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2957 echo "$as_me: error: unknown endianness
2958 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2959    { (exit 1); exit 1; }; } ;;
2960 esac
2961
2962
2963
2964 # Check whether --enable-optimized or --disable-optimized was given.
2965 if test "${enable_optimized+set}" = set; then
2966   enableval="$enable_optimized"
2967
2968 else
2969   enableval=no
2970 fi;
2971 if test ${enableval} = "no" ; then
2972   ENABLE_OPTIMIZED=
2973
2974 else
2975   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2976
2977 fi
2978
2979 # Check whether --enable-jit or --disable-jit was given.
2980 if test "${enable_jit+set}" = set; then
2981   enableval="$enable_jit"
2982
2983 else
2984   enableval=default
2985 fi;
2986 if test ${enableval} = "no"
2987 then
2988   JIT=
2989
2990 else
2991   case "$llvm_cv_target_arch" in
2992     x86)     JIT=TARGET_HAS_JIT=1
2993  ;;
2994     Sparc)   JIT=TARGET_HAS_JIT=1
2995  ;;
2996     PowerPC) JIT=TARGET_HAS_JIT=1
2997  ;;
2998     x86_64)  JIT=
2999  ;;
3000     Alpha)   JIT=
3001  ;;
3002     IA64)    JIT=
3003  ;;
3004     *)       JIT=
3005  ;;
3006   esac
3007 fi
3008
3009 # Check whether --enable-doxygen or --disable-doxygen was given.
3010 if test "${enable_doxygen+set}" = set; then
3011   enableval="$enable_doxygen"
3012
3013 else
3014   enableval=default
3015 fi;
3016 case "$enableval" in
3017   yes) ENABLE_DOXYGEN=1
3018  ;;
3019   no)  ENABLE_DOXYGEN=0
3020  ;;
3021   default) ENABLE_DOXYGEN=0
3022  ;;
3023   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025    { (exit 1); exit 1; }; } ;;
3026 esac
3027
3028 TARGETS_TO_BUILD=""
3029 # Check whether --enable-targets or --disable-targets was given.
3030 if test "${enable_targets+set}" = set; then
3031   enableval="$enable_targets"
3032
3033 else
3034   enableval=all
3035 fi;
3036 case "$enableval" in
3037   all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3038   host-only)
3039     case "$llvm_cv_target_arch" in
3040       x86)     TARGETS_TO_BUILD="X86" ;;
3041       x86_64)  TARGETS_TO_BUILD="X86" ;;
3042       Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3043       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3044       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3045       IA64)    TARGETS_TO_BUILD="IA64" ;;
3046       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3047 echo "$as_me: error: Can not set target to build" >&2;}
3048    { (exit 1); exit 1; }; } ;;
3049     esac
3050     ;;
3051   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3052       case "$a_target" in
3053         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3054         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3055         sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3056         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3057         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3058         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3059         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3060         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3061 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3062    { (exit 1); exit 1; }; } ;;
3063       esac
3064   done
3065   ;;
3066 esac
3067 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3068 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3069
3070
3071
3072 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3073 if test "${with_llvmgccdir+set}" = set; then
3074   withval="$with_llvmgccdir"
3075
3076 else
3077   withval=default
3078 fi;
3079 case "$withval" in
3080   default) WITH_LLVMGCCDIR=default ;;
3081   /*)      WITH_LLVMGCCDIR=$withval ;;
3082   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3083 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3084    { (exit 1); exit 1; }; } ;;
3085 esac
3086
3087
3088
3089 ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3096 # On Suns, sometimes $CPP names a directory.
3097 if test -n "$CPP" && test -d "$CPP"; then
3098   CPP=
3099 fi
3100 if test -z "$CPP"; then
3101   if test "${ac_cv_prog_CPP+set}" = set; then
3102   echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104       # Double quotes because CPP needs to be expanded
3105     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106     do
3107       ac_preproc_ok=false
3108 for ac_c_preproc_warn_flag in '' yes
3109 do
3110   # Use a header file that comes with gcc, so configuring glibc
3111   # with a fresh cross-compiler works.
3112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113   # <limits.h> exists even on freestanding compilers.
3114   # On the NeXT, cc -E runs the code through the compiler's parser,
3115   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3123 # include <limits.h>
3124 #else
3125 # include <assert.h>
3126 #endif
3127                      Syntax error
3128 _ACEOF
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } >/dev/null; then
3137   if test -s conftest.err; then
3138     ac_cpp_err=$ac_c_preproc_warn_flag
3139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140   else
3141     ac_cpp_err=
3142   fi
3143 else
3144   ac_cpp_err=yes
3145 fi
3146 if test -z "$ac_cpp_err"; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152   # Broken: fails on valid input.
3153 continue
3154 fi
3155 rm -f conftest.err conftest.$ac_ext
3156
3157   # OK, works on sane cases.  Now check whether non-existent headers
3158   # can be detected and how.
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <ac_nonexistent.h>
3166 _ACEOF
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } >/dev/null; then
3175   if test -s conftest.err; then
3176     ac_cpp_err=$ac_c_preproc_warn_flag
3177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178   else
3179     ac_cpp_err=
3180   fi
3181 else
3182   ac_cpp_err=yes
3183 fi
3184 if test -z "$ac_cpp_err"; then
3185   # Broken: success on invalid input.
3186 continue
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191   # Passes both tests.
3192 ac_preproc_ok=:
3193 break
3194 fi
3195 rm -f conftest.err conftest.$ac_ext
3196
3197 done
3198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199 rm -f conftest.err conftest.$ac_ext
3200 if $ac_preproc_ok; then
3201   break
3202 fi
3203
3204     done
3205     ac_cv_prog_CPP=$CPP
3206
3207 fi
3208   CPP=$ac_cv_prog_CPP
3209 else
3210   ac_cv_prog_CPP=$CPP
3211 fi
3212 echo "$as_me:$LINENO: result: $CPP" >&5
3213 echo "${ECHO_T}$CPP" >&6
3214 ac_preproc_ok=false
3215 for ac_c_preproc_warn_flag in '' yes
3216 do
3217   # Use a header file that comes with gcc, so configuring glibc
3218   # with a fresh cross-compiler works.
3219   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220   # <limits.h> exists even on freestanding compilers.
3221   # On the NeXT, cc -E runs the code through the compiler's parser,
3222   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3230 # include <limits.h>
3231 #else
3232 # include <assert.h>
3233 #endif
3234                      Syntax error
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } >/dev/null; then
3244   if test -s conftest.err; then
3245     ac_cpp_err=$ac_c_preproc_warn_flag
3246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247   else
3248     ac_cpp_err=
3249   fi
3250 else
3251   ac_cpp_err=yes
3252 fi
3253 if test -z "$ac_cpp_err"; then
3254   :
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259   # Broken: fails on valid input.
3260 continue
3261 fi
3262 rm -f conftest.err conftest.$ac_ext
3263
3264   # OK, works on sane cases.  Now check whether non-existent headers
3265   # can be detected and how.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <ac_nonexistent.h>
3273 _ACEOF
3274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   # Broken: success on invalid input.
3293 continue
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298   # Passes both tests.
3299 ac_preproc_ok=:
3300 break
3301 fi
3302 rm -f conftest.err conftest.$ac_ext
3303
3304 done
3305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3306 rm -f conftest.err conftest.$ac_ext
3307 if $ac_preproc_ok; then
3308   :
3309 else
3310   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3313 See \`config.log' for more details." >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 if test -n "$ac_tool_prefix"; then
3329   for ac_prog in gcc
3330   do
3331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_CC+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   if test -n "$CC"; then
3339   ac_cv_prog_CC="$CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346   for ac_exec_ext in '' $ac_executable_extensions; do
3347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353 done
3354
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359   echo "$as_me:$LINENO: result: $CC" >&5
3360 echo "${ECHO_T}$CC" >&6
3361 else
3362   echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 fi
3365
3366     test -n "$CC" && break
3367   done
3368 fi
3369 if test -z "$CC"; then
3370   ac_ct_CC=$CC
3371   for ac_prog in gcc
3372 do
3373   # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if test -n "$ac_ct_CC"; then
3381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388   for ac_exec_ext in '' $ac_executable_extensions; do
3389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_ac_ct_CC="$ac_prog"
3391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395 done
3396
3397 fi
3398 fi
3399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400 if test -n "$ac_ct_CC"; then
3401   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3402 echo "${ECHO_T}$ac_ct_CC" >&6
3403 else
3404   echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3406 fi
3407
3408   test -n "$ac_ct_CC" && break
3409 done
3410
3411   CC=$ac_ct_CC
3412 fi
3413
3414
3415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details." >&5
3417 echo "$as_me: error: no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details." >&2;}
3419    { (exit 1); exit 1; }; }
3420
3421 # Provide some information about the compiler.
3422 echo "$as_me:$LINENO:" \
3423      "checking for C compiler version" >&5
3424 ac_compiler=`set X $ac_compile; echo $2`
3425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3426   (eval $ac_compiler --version </dev/null >&5) 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }
3430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3431   (eval $ac_compiler -v </dev/null >&5) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }
3435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3436   (eval $ac_compiler -V </dev/null >&5) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }
3440
3441 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3442 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3443 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456 #ifndef __GNUC__
3457        choke me
3458 #endif
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466   (eval $ac_compile) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } &&
3473          { ac_try='test -z "$ac_c_werror_flag"
3474                          || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   ac_compiler_gnu=yes
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_compiler_gnu=no
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495
3496 fi
3497 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3498 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3499 GCC=`test $ac_compiler_gnu = yes && echo yes`
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 CFLAGS="-g"
3503 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3504 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3505 if test "${ac_cv_prog_cc_g+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525   (eval $ac_compile) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } &&
3532          { ac_try='test -z "$ac_c_werror_flag"
3533                          || test ! -s conftest.err'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; } &&
3539          { ac_try='test -s conftest.$ac_objext'
3540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; }; then
3545   ac_cv_prog_cc_g=yes
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 ac_cv_prog_cc_g=no
3551 fi
3552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3556 if test "$ac_test_CFLAGS" = set; then
3557   CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559   if test "$GCC" = yes; then
3560     CFLAGS="-g -O2"
3561   else
3562     CFLAGS="-g"
3563   fi
3564 else
3565   if test "$GCC" = yes; then
3566     CFLAGS="-O2"
3567   else
3568     CFLAGS=
3569   fi
3570 fi
3571 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3572 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3573 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   ac_cv_prog_cc_stdc=no
3577 ac_save_CC=$CC
3578 cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584 #include <stdarg.h>
3585 #include <stdio.h>
3586 #include <sys/types.h>
3587 #include <sys/stat.h>
3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3589 struct buf { int x; };
3590 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591 static char *e (p, i)
3592      char **p;
3593      int i;
3594 {
3595   return p[i];
3596 }
3597 static char *f (char * (*g) (char **, int), char **p, ...)
3598 {
3599   char *s;
3600   va_list v;
3601   va_start (v,p);
3602   s = g (p, va_arg (v,int));
3603   va_end (v);
3604   return s;
3605 }
3606
3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3608    function prototypes and stuff, but not '\xHH' hex character constants.
3609    These don't provoke an error unfortunately, instead are silently treated
3610    as 'x'.  The following induces an error, until -std1 is added to get
3611    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3612    array size at least.  It's necessary to write '\x00'==0 to get something
3613    that's true only with -std1.  */
3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 int argc;
3621 char **argv;
3622 int
3623 main ()
3624 {
3625 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 # Don't try gcc -ansi; that turns off useful extensions and
3631 # breaks some systems' header files.
3632 # AIX                   -qlanglvl=ansi
3633 # Ultrix and OSF/1      -std1
3634 # HP-UX 10.20 and later -Ae
3635 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3636 # SVR4                  -Xc -D__EXTENSIONS__
3637 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638 do
3639   CC="$ac_save_CC $ac_arg"
3640   rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642   (eval $ac_compile) 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -z "$ac_c_werror_flag"
3650                          || test ! -s conftest.err'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; } &&
3656          { ac_try='test -s conftest.$ac_objext'
3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658   (eval $ac_try) 2>&5
3659   ac_status=$?
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); }; }; then
3662   ac_cv_prog_cc_stdc=$ac_arg
3663 break
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 fi
3669 rm -f conftest.err conftest.$ac_objext
3670 done
3671 rm -f conftest.$ac_ext conftest.$ac_objext
3672 CC=$ac_save_CC
3673
3674 fi
3675
3676 case "x$ac_cv_prog_cc_stdc" in
3677   x|xno)
3678     echo "$as_me:$LINENO: result: none needed" >&5
3679 echo "${ECHO_T}none needed" >&6 ;;
3680   *)
3681     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3682 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3683     CC="$CC $ac_cv_prog_cc_stdc" ;;
3684 esac
3685
3686 # Some people use a C++ compiler to compile C.  Since we use `exit',
3687 # in C++ we need to declare it.  In case someone uses the same compiler
3688 # for both compiling C and C++ we need to have the C++ compiler decide
3689 # the declaration of exit, since it's the most demanding environment.
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #ifndef __cplusplus
3692   choke me
3693 #endif
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697   (eval $ac_compile) 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } &&
3704          { ac_try='test -z "$ac_c_werror_flag"
3705                          || test ! -s conftest.err'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; } &&
3711          { ac_try='test -s conftest.$ac_objext'
3712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713   (eval $ac_try) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); }; }; then
3717   for ac_declaration in \
3718    '' \
3719    'extern "C" void std::exit (int) throw (); using std::exit;' \
3720    'extern "C" void std::exit (int); using std::exit;' \
3721    'extern "C" void exit (int) throw ();' \
3722    'extern "C" void exit (int);' \
3723    'void exit (int);'
3724 do
3725   cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 $ac_declaration
3732 #include <stdlib.h>
3733 int
3734 main ()
3735 {
3736 exit (42);
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743   (eval $ac_compile) 2>conftest.er1
3744   ac_status=$?
3745   grep -v '^ *+' conftest.er1 >conftest.err
3746   rm -f conftest.er1
3747   cat conftest.err >&5
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } &&
3750          { ac_try='test -z "$ac_c_werror_flag"
3751                          || test ! -s conftest.err'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; } &&
3757          { ac_try='test -s conftest.$ac_objext'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; }; then
3763   :
3764 else
3765   echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 continue
3769 fi
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 $ac_declaration
3778 int
3779 main ()
3780 {
3781 exit (42);
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788   (eval $ac_compile) 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -z "$ac_c_werror_flag"
3796                          || test ! -s conftest.err'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; } &&
3802          { ac_try='test -s conftest.$ac_objext'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; }; then
3808   break
3809 else
3810   echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 done
3816 rm -f conftest*
3817 if test -n "$ac_declaration"; then
3818   echo '#ifdef __cplusplus' >>confdefs.h
3819   echo $ac_declaration      >>confdefs.h
3820   echo '#endif'             >>confdefs.h
3821 fi
3822
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 fi
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
3835 ac_ext=cc
3836 ac_cpp='$CXXCPP $CPPFLAGS'
3837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840 if test -n "$ac_tool_prefix"; then
3841   for ac_prog in $CCC g++
3842   do
3843     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_CXX+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if test -n "$CXX"; then
3851   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865 done
3866
3867 fi
3868 fi
3869 CXX=$ac_cv_prog_CXX
3870 if test -n "$CXX"; then
3871   echo "$as_me:$LINENO: result: $CXX" >&5
3872 echo "${ECHO_T}$CXX" >&6
3873 else
3874   echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876 fi
3877
3878     test -n "$CXX" && break
3879   done
3880 fi
3881 if test -z "$CXX"; then
3882   ac_ct_CXX=$CXX
3883   for ac_prog in $CCC g++
3884 do
3885   # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   if test -n "$ac_ct_CXX"; then
3893   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for ac_exec_ext in '' $ac_executable_extensions; do
3901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902     ac_cv_prog_ac_ct_CXX="$ac_prog"
3903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907 done
3908
3909 fi
3910 fi
3911 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912 if test -n "$ac_ct_CXX"; then
3913   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3914 echo "${ECHO_T}$ac_ct_CXX" >&6
3915 else
3916   echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3918 fi
3919
3920   test -n "$ac_ct_CXX" && break
3921 done
3922 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3923
3924   CXX=$ac_ct_CXX
3925 fi
3926
3927
3928 # Provide some information about the compiler.
3929 echo "$as_me:$LINENO:" \
3930      "checking for C++ compiler version" >&5
3931 ac_compiler=`set X $ac_compile; echo $2`
3932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3933   (eval $ac_compiler --version </dev/null >&5) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }
3937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3938   (eval $ac_compiler -v </dev/null >&5) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); }
3942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3943   (eval $ac_compiler -V </dev/null >&5) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }
3947
3948 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959
3960 int
3961 main ()
3962 {
3963 #ifndef __GNUC__
3964        choke me
3965 #endif
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973   (eval $ac_compile) 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
3977   cat conftest.err >&5
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } &&
3980          { ac_try='test -z "$ac_cxx_werror_flag"
3981                          || test ! -s conftest.err'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; } &&
3987          { ac_try='test -s conftest.$ac_objext'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   ac_compiler_gnu=yes
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ac_compiler_gnu=no
3999 fi
4000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4002
4003 fi
4004 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4005 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4006 GXX=`test $ac_compiler_gnu = yes && echo yes`
4007 ac_test_CXXFLAGS=${CXXFLAGS+set}
4008 ac_save_CXXFLAGS=$CXXFLAGS
4009 CXXFLAGS="-g"
4010 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4012 if test "${ac_cv_prog_cxx_g+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032   (eval $ac_compile) 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } &&
4039          { ac_try='test -z "$ac_cxx_werror_flag"
4040                          || test ! -s conftest.err'
4041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042   (eval $ac_try) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; } &&
4046          { ac_try='test -s conftest.$ac_objext'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   ac_cv_prog_cxx_g=yes
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 ac_cv_prog_cxx_g=no
4058 fi
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 fi
4061 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4062 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4063 if test "$ac_test_CXXFLAGS" = set; then
4064   CXXFLAGS=$ac_save_CXXFLAGS
4065 elif test $ac_cv_prog_cxx_g = yes; then
4066   if test "$GXX" = yes; then
4067     CXXFLAGS="-g -O2"
4068   else
4069     CXXFLAGS="-g"
4070   fi
4071 else
4072   if test "$GXX" = yes; then
4073     CXXFLAGS="-O2"
4074   else
4075     CXXFLAGS=
4076   fi
4077 fi
4078 for ac_declaration in \
4079    '' \
4080    'extern "C" void std::exit (int) throw (); using std::exit;' \
4081    'extern "C" void std::exit (int); using std::exit;' \
4082    'extern "C" void exit (int) throw ();' \
4083    'extern "C" void exit (int);' \
4084    'void exit (int);'
4085 do
4086   cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h.  */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h.  */
4092 $ac_declaration
4093 #include <stdlib.h>
4094 int
4095 main ()
4096 {
4097 exit (42);
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_cxx_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   :
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 continue
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 $ac_declaration
4139 int
4140 main ()
4141 {
4142 exit (42);
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149   (eval $ac_compile) 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -z "$ac_cxx_werror_flag"
4157                          || test ! -s conftest.err'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; } &&
4163          { ac_try='test -s conftest.$ac_objext'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   break
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 done
4177 rm -f conftest*
4178 if test -n "$ac_declaration"; then
4179   echo '#ifdef __cplusplus' >>confdefs.h
4180   echo $ac_declaration      >>confdefs.h
4181   echo '#endif'             >>confdefs.h
4182 fi
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190 echo "$as_me:$LINENO: checking " >&5
4191 echo $ECHO_N "checking ... $ECHO_C" >&6
4192 if test "${ac_cv_has_flex+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   for ac_prog in flex lex
4196 do
4197   # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_LEX+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   if test -n "$LEX"; then
4205   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214     ac_cv_prog_LEX="$ac_prog"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220
4221 fi
4222 fi
4223 LEX=$ac_cv_prog_LEX
4224 if test -n "$LEX"; then
4225   echo "$as_me:$LINENO: result: $LEX" >&5
4226 echo "${ECHO_T}$LEX" >&6
4227 else
4228   echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6
4230 fi
4231
4232   test -n "$LEX" && break
4233 done
4234 test -n "$LEX" || LEX=":"
4235
4236 if test -z "$LEXLIB"
4237 then
4238   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4239 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4240 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   ac_check_lib_save_LIBS=$LIBS
4244 LIBS="-lfl  $LIBS"
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251
4252 /* Override any gcc2 internal prototype to avoid an error.  */
4253 #ifdef __cplusplus
4254 extern "C"
4255 #endif
4256 /* We use char because int might match the return type of a gcc2
4257    builtin and then its argument prototype would still apply.  */
4258 char yywrap ();
4259 int
4260 main ()
4261 {
4262 yywrap ();
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269   (eval $ac_link) 2>conftest.er1
4270   ac_status=$?
4271   grep -v '^ *+' conftest.er1 >conftest.err
4272   rm -f conftest.er1
4273   cat conftest.err >&5
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } &&
4276          { ac_try='test -z "$ac_c_werror_flag"
4277                          || test ! -s conftest.err'
4278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279   (eval $ac_try) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; } &&
4283          { ac_try='test -s conftest$ac_exeext'
4284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285   (eval $ac_try) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; }; then
4289   ac_cv_lib_fl_yywrap=yes
4290 else
4291   echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ac_cv_lib_fl_yywrap=no
4295 fi
4296 rm -f conftest.err conftest.$ac_objext \
4297       conftest$ac_exeext conftest.$ac_ext
4298 LIBS=$ac_check_lib_save_LIBS
4299 fi
4300 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4301 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4302 if test $ac_cv_lib_fl_yywrap = yes; then
4303   LEXLIB="-lfl"
4304 else
4305   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4306 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4307 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   ac_check_lib_save_LIBS=$LIBS
4311 LIBS="-ll  $LIBS"
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318
4319 /* Override any gcc2 internal prototype to avoid an error.  */
4320 #ifdef __cplusplus
4321 extern "C"
4322 #endif
4323 /* We use char because int might match the return type of a gcc2
4324    builtin and then its argument prototype would still apply.  */
4325 char yywrap ();
4326 int
4327 main ()
4328 {
4329 yywrap ();
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336   (eval $ac_link) 2>conftest.er1
4337   ac_status=$?
4338   grep -v '^ *+' conftest.er1 >conftest.err
4339   rm -f conftest.er1
4340   cat conftest.err >&5
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } &&
4343          { ac_try='test -z "$ac_c_werror_flag"
4344                          || test ! -s conftest.err'
4345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346   (eval $ac_try) 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); }; } &&
4350          { ac_try='test -s conftest$ac_exeext'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; }; then
4356   ac_cv_lib_l_yywrap=yes
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 ac_cv_lib_l_yywrap=no
4362 fi
4363 rm -f conftest.err conftest.$ac_objext \
4364       conftest$ac_exeext conftest.$ac_ext
4365 LIBS=$ac_check_lib_save_LIBS
4366 fi
4367 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4368 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4369 if test $ac_cv_lib_l_yywrap = yes; then
4370   LEXLIB="-ll"
4371 fi
4372
4373 fi
4374
4375 fi
4376
4377 if test "x$LEX" != "x:"; then
4378   echo "$as_me:$LINENO: checking lex output file root" >&5
4379 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4380 if test "${ac_cv_prog_lex_root+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   # The minimal lex program is just a single line: %%.  But some broken lexes
4384 # (Solaris, I think it was) want two %% lines, so accommodate them.
4385 cat >conftest.l <<_ACEOF
4386 %%
4387 %%
4388 _ACEOF
4389 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4390   (eval $LEX conftest.l) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }
4394 if test -f lex.yy.c; then
4395   ac_cv_prog_lex_root=lex.yy
4396 elif test -f lexyy.c; then
4397   ac_cv_prog_lex_root=lexyy
4398 else
4399   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4400 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4401    { (exit 1); exit 1; }; }
4402 fi
4403 fi
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4405 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4406 rm -f conftest.l
4407 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4408
4409 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4410 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4411 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   # POSIX says lex can declare yytext either as a pointer or an array; the
4415 # default is implementation-dependent. Figure out which it is, since
4416 # not all implementations provide the %pointer and %array declarations.
4417 ac_cv_prog_lex_yytext_pointer=no
4418 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4419 ac_save_LIBS=$LIBS
4420 LIBS="$LIBS $LEXLIB"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 `cat $LEX_OUTPUT_ROOT.c`
4423 _ACEOF
4424 rm -f conftest.$ac_objext conftest$ac_exeext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4426   (eval $ac_link) 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } &&
4433          { ac_try='test -z "$ac_c_werror_flag"
4434                          || test ! -s conftest.err'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; } &&
4440          { ac_try='test -s conftest$ac_exeext'
4441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442   (eval $ac_try) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; }; then
4446   ac_cv_prog_lex_yytext_pointer=yes
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 fi
4452 rm -f conftest.err conftest.$ac_objext \
4453       conftest$ac_exeext conftest.$ac_ext
4454 LIBS=$ac_save_LIBS
4455 rm -f "${LEX_OUTPUT_ROOT}.c"
4456
4457 fi
4458 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4459 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4460 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4461
4462 cat >>confdefs.h <<\_ACEOF
4463 #define YYTEXT_POINTER 1
4464 _ACEOF
4465
4466 fi
4467
4468 fi
4469
4470 fi
4471 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4472 echo "${ECHO_T}$ac_cv_has_flex" >&6
4473 if test "$LEX" != "flex"; then
4474   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4475 echo "$as_me: error: flex not found but required" >&2;}
4476    { (exit 1); exit 1; }; }
4477 else
4478   FLEX=flex
4479
4480 fi
4481
4482 echo "$as_me:$LINENO: checking " >&5
4483 echo $ECHO_N "checking ... $ECHO_C" >&6
4484 if test "${llvm_cv_has_bison+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   for ac_prog in 'bison -y' byacc
4488 do
4489   # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_YACC+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   if test -n "$YACC"; then
4497   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504   for ac_exec_ext in '' $ac_executable_extensions; do
4505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506     ac_cv_prog_YACC="$ac_prog"
4507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508     break 2
4509   fi
4510 done
4511 done
4512
4513 fi
4514 fi
4515 YACC=$ac_cv_prog_YACC
4516 if test -n "$YACC"; then
4517   echo "$as_me:$LINENO: result: $YACC" >&5
4518 echo "${ECHO_T}$YACC" >&6
4519 else
4520   echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4522 fi
4523
4524   test -n "$YACC" && break
4525 done
4526 test -n "$YACC" || YACC="yacc"
4527
4528 fi
4529 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4530 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4531 if test "$YACC" != "bison -y"; then
4532   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4533 echo "$as_me: error: bison not found but required" >&2;}
4534    { (exit 1); exit 1; }; }
4535 else
4536   BISON=bison
4537
4538 fi
4539
4540 echo "$as_me:$LINENO: checking for GNU make" >&5
4541 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4542 if test "${llvm_cv_gnu_make_command+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   llvm_cv_gnu_make_command=''
4546  for a in "$MAKE" make gmake gnumake ; do
4547   if test -z "$a" ; then continue ; fi ;
4548   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4549   then
4550    llvm_cv_gnu_make_command=$a ;
4551    break;
4552   fi
4553  done
4554 fi
4555 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4556 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4557  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4558    ifGNUmake='' ;
4559  else
4560    ifGNUmake='#' ;
4561    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4562 echo "${ECHO_T}\"Not found\"" >&6;
4563  fi
4564
4565
4566 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4567 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4568 LN_S=$as_ln_s
4569 if test "$LN_S" = "ln -s"; then
4570   echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4572 else
4573   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4574 echo "${ECHO_T}no, using $LN_S" >&6
4575 fi
4576
4577 # Extract the first word of "cmp", so it can be a program name with args.
4578 set dummy cmp; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_CMP+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   case $CMP in
4585   [\\/]* | ?:[\\/]*)
4586   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4587   ;;
4588   *)
4589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_exec_ext in '' $ac_executable_extensions; do
4595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601 done
4602
4603   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4604   ;;
4605 esac
4606 fi
4607 CMP=$ac_cv_path_CMP
4608
4609 if test -n "$CMP"; then
4610   echo "$as_me:$LINENO: result: $CMP" >&5
4611 echo "${ECHO_T}$CMP" >&6
4612 else
4613   echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4615 fi
4616
4617 # Extract the first word of "cp", so it can be a program name with args.
4618 set dummy cp; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_CP+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   case $CP in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642
4643   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4644   ;;
4645 esac
4646 fi
4647 CP=$ac_cv_path_CP
4648
4649 if test -n "$CP"; then
4650   echo "$as_me:$LINENO: result: $CP" >&5
4651 echo "${ECHO_T}$CP" >&6
4652 else
4653   echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655 fi
4656
4657 # Extract the first word of "date", so it can be a program name with args.
4658 set dummy date; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_DATE+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   case $DATE in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4684   ;;
4685 esac
4686 fi
4687 DATE=$ac_cv_path_DATE
4688
4689 if test -n "$DATE"; then
4690   echo "$as_me:$LINENO: result: $DATE" >&5
4691 echo "${ECHO_T}$DATE" >&6
4692 else
4693   echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4695 fi
4696
4697 # Extract the first word of "find", so it can be a program name with args.
4698 set dummy find; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_FIND+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $FIND in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722
4723   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4724   ;;
4725 esac
4726 fi
4727 FIND=$ac_cv_path_FIND
4728
4729 if test -n "$FIND"; then
4730   echo "$as_me:$LINENO: result: $FIND" >&5
4731 echo "${ECHO_T}$FIND" >&6
4732 else
4733   echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4735 fi
4736
4737 # Extract the first word of "grep", so it can be a program name with args.
4738 set dummy grep; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_GREP+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $GREP in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4764   ;;
4765 esac
4766 fi
4767 GREP=$ac_cv_path_GREP
4768
4769 if test -n "$GREP"; then
4770   echo "$as_me:$LINENO: result: $GREP" >&5
4771 echo "${ECHO_T}$GREP" >&6
4772 else
4773   echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4775 fi
4776
4777 # Extract the first word of "mkdir", so it can be a program name with args.
4778 set dummy mkdir; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_path_MKDIR+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   case $MKDIR in
4785   [\\/]* | ?:[\\/]*)
4786   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4787   ;;
4788   *)
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802
4803   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4804   ;;
4805 esac
4806 fi
4807 MKDIR=$ac_cv_path_MKDIR
4808
4809 if test -n "$MKDIR"; then
4810   echo "$as_me:$LINENO: result: $MKDIR" >&5
4811 echo "${ECHO_T}$MKDIR" >&6
4812 else
4813   echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4815 fi
4816
4817 # Extract the first word of "mv", so it can be a program name with args.
4818 set dummy mv; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_MV+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   case $MV in
4825   [\\/]* | ?:[\\/]*)
4826   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4827   ;;
4828   *)
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834   for ac_exec_ext in '' $ac_executable_extensions; do
4835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841 done
4842
4843   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4844   ;;
4845 esac
4846 fi
4847 MV=$ac_cv_path_MV
4848
4849 if test -n "$MV"; then
4850   echo "$as_me:$LINENO: result: $MV" >&5
4851 echo "${ECHO_T}$MV" >&6
4852 else
4853   echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4855 fi
4856
4857 if test -n "$ac_tool_prefix"; then
4858   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_RANLIB+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$RANLIB"; then
4866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   for ac_exec_ext in '' $ac_executable_extensions; do
4874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881
4882 fi
4883 fi
4884 RANLIB=$ac_cv_prog_RANLIB
4885 if test -n "$RANLIB"; then
4886   echo "$as_me:$LINENO: result: $RANLIB" >&5
4887 echo "${ECHO_T}$RANLIB" >&6
4888 else
4889   echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6
4891 fi
4892
4893 fi
4894 if test -z "$ac_cv_prog_RANLIB"; then
4895   ac_ct_RANLIB=$RANLIB
4896   # Extract the first word of "ranlib", so it can be a program name with args.
4897 set dummy ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if test -n "$ac_ct_RANLIB"; then
4904   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913     ac_cv_prog_ac_ct_RANLIB="ranlib"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919
4920   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4921 fi
4922 fi
4923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924 if test -n "$ac_ct_RANLIB"; then
4925   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4927 else
4928   echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930 fi
4931
4932   RANLIB=$ac_ct_RANLIB
4933 else
4934   RANLIB="$ac_cv_prog_RANLIB"
4935 fi
4936
4937 # Extract the first word of "rm", so it can be a program name with args.
4938 set dummy rm; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_RM+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   case $RM in
4945   [\\/]* | ?:[\\/]*)
4946   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4947   ;;
4948   *)
4949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962
4963   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4964   ;;
4965 esac
4966 fi
4967 RM=$ac_cv_path_RM
4968
4969 if test -n "$RM"; then
4970   echo "$as_me:$LINENO: result: $RM" >&5
4971 echo "${ECHO_T}$RM" >&6
4972 else
4973   echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977 # Extract the first word of "sed", so it can be a program name with args.
4978 set dummy sed; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_path_SED+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   case $SED in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002
5003   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5004   ;;
5005 esac
5006 fi
5007 SED=$ac_cv_path_SED
5008
5009 if test -n "$SED"; then
5010   echo "$as_me:$LINENO: result: $SED" >&5
5011 echo "${ECHO_T}$SED" >&6
5012 else
5013   echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5015 fi
5016
5017 # Extract the first word of "tar", so it can be a program name with args.
5018 set dummy tar; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_path_TAR+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   case $TAR in
5025   [\\/]* | ?:[\\/]*)
5026   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5027   ;;
5028   *)
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042
5043   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5044   ;;
5045 esac
5046 fi
5047 TAR=$ac_cv_path_TAR
5048
5049 if test -n "$TAR"; then
5050   echo "$as_me:$LINENO: result: $TAR" >&5
5051 echo "${ECHO_T}$TAR" >&6
5052 else
5053   echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5055 fi
5056
5057 # Extract the first word of "Graphviz", so it can be a program name with args.
5058 set dummy Graphviz; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   case $GRAPHVIZ in
5065   [\\/]* | ?:[\\/]*)
5066   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5067   ;;
5068   *)
5069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081 done
5082
5083   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo GraphViz"
5084   ;;
5085 esac
5086 fi
5087 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5088
5089 if test -n "$GRAPHVIZ"; then
5090   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5091 echo "${ECHO_T}$GRAPHVIZ" >&6
5092 else
5093   echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6
5095 fi
5096
5097 if test "$GRAPHVIZ" != "echo GraphViz" ; then
5098
5099 cat >>confdefs.h <<\_ACEOF
5100 #define HAVE_GRAPHVIZ 1
5101 _ACEOF
5102
5103 fi
5104
5105 # Find a good install program.  We prefer a C program (faster),
5106 # so one script is as good as another.  But avoid the broken or
5107 # incompatible versions:
5108 # SysV /etc/install, /usr/sbin/install
5109 # SunOS /usr/etc/install
5110 # IRIX /sbin/install
5111 # AIX /bin/install
5112 # AmigaOS /C/install, which installs bootblocks on floppy discs
5113 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5114 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5115 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5116 # OS/2's system install, which has a completely different semantic
5117 # ./install, which can be erroneously created by make from ./install.sh.
5118 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5119 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5120 if test -z "$INSTALL"; then
5121 if test "${ac_cv_path_install+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129   # Account for people who put trailing slashes in PATH elements.
5130 case $as_dir/ in
5131   ./ | .// | /cC/* | \
5132   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5133   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5134   /usr/ucb/* ) ;;
5135   *)
5136     # OSF1 and SCO ODT 3.0 have their own names for install.
5137     # Don't use installbsd from OSF since it installs stuff as root
5138     # by default.
5139     for ac_prog in ginstall scoinst install; do
5140       for ac_exec_ext in '' $ac_executable_extensions; do
5141         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5142           if test $ac_prog = install &&
5143             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5144             # AIX install.  It has an incompatible calling convention.
5145             :
5146           elif test $ac_prog = install &&
5147             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5148             # program-specific install script used by HP pwplus--don't use.
5149             :
5150           else
5151             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5152             break 3
5153           fi
5154         fi
5155       done
5156     done
5157     ;;
5158 esac
5159 done
5160
5161
5162 fi
5163   if test "${ac_cv_path_install+set}" = set; then
5164     INSTALL=$ac_cv_path_install
5165   else
5166     # As a last resort, use the slow shell script.  We don't cache a
5167     # path for INSTALL within a source directory, because that will
5168     # break other packages using the cache if that directory is
5169     # removed, or if the path is relative.
5170     INSTALL=$ac_install_sh
5171   fi
5172 fi
5173 echo "$as_me:$LINENO: result: $INSTALL" >&5
5174 echo "${ECHO_T}$INSTALL" >&6
5175
5176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5177 # It thinks the first close brace ends the variable substitution.
5178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5179
5180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5181
5182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5183
5184
5185 # Extract the first word of "bzip2", so it can be a program name with args.
5186 set dummy bzip2; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_path_BZIP2+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   case $BZIP2 in
5193   [\\/]* | ?:[\\/]*)
5194   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5195   ;;
5196   *)
5197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202   for ac_exec_ext in '' $ac_executable_extensions; do
5203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209 done
5210
5211   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5212   ;;
5213 esac
5214 fi
5215 BZIP2=$ac_cv_path_BZIP2
5216
5217 if test -n "$BZIP2"; then
5218   echo "$as_me:$LINENO: result: $BZIP2" >&5
5219 echo "${ECHO_T}$BZIP2" >&6
5220 else
5221   echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5223 fi
5224
5225 # Extract the first word of "dot", so it can be a program name with args.
5226 set dummy dot; ac_word=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_path_DOT+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   case $DOT in
5233   [\\/]* | ?:[\\/]*)
5234   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5235   ;;
5236   *)
5237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242   for ac_exec_ext in '' $ac_executable_extensions; do
5243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249 done
5250
5251   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5252   ;;
5253 esac
5254 fi
5255 DOT=$ac_cv_path_DOT
5256
5257 if test -n "$DOT"; then
5258   echo "$as_me:$LINENO: result: $DOT" >&5
5259 echo "${ECHO_T}$DOT" >&6
5260 else
5261   echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6
5263 fi
5264
5265 # Extract the first word of "doxygen", so it can be a program name with args.
5266 set dummy doxygen; ac_word=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   case $DOXYGEN in
5273   [\\/]* | ?:[\\/]*)
5274   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5275   ;;
5276   *)
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282   for ac_exec_ext in '' $ac_executable_extensions; do
5283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289 done
5290
5291   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5292   ;;
5293 esac
5294 fi
5295 DOXYGEN=$ac_cv_path_DOXYGEN
5296
5297 if test -n "$DOXYGEN"; then
5298   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5299 echo "${ECHO_T}$DOXYGEN" >&6
5300 else
5301   echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5303 fi
5304
5305 # Extract the first word of "etags", so it can be a program name with args.
5306 set dummy etags; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_path_ETAGS+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   case $ETAGS in
5313   [\\/]* | ?:[\\/]*)
5314   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5315   ;;
5316   *)
5317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322   for ac_exec_ext in '' $ac_executable_extensions; do
5323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329 done
5330
5331   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5332   ;;
5333 esac
5334 fi
5335 ETAGS=$ac_cv_path_ETAGS
5336
5337 if test -n "$ETAGS"; then
5338   echo "$as_me:$LINENO: result: $ETAGS" >&5
5339 echo "${ECHO_T}$ETAGS" >&6
5340 else
5341   echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5343 fi
5344
5345 # Extract the first word of "groff", so it can be a program name with args.
5346 set dummy groff; ac_word=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_path_GROFF+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   case $GROFF in
5353   [\\/]* | ?:[\\/]*)
5354   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5355   ;;
5356   *)
5357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362   for ac_exec_ext in '' $ac_executable_extensions; do
5363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369 done
5370
5371   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5372   ;;
5373 esac
5374 fi
5375 GROFF=$ac_cv_path_GROFF
5376
5377 if test -n "$GROFF"; then
5378   echo "$as_me:$LINENO: result: $GROFF" >&5
5379 echo "${ECHO_T}$GROFF" >&6
5380 else
5381   echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5383 fi
5384
5385 # Extract the first word of "gzip", so it can be a program name with args.
5386 set dummy gzip; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_path_GZIP+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   case $GZIP in
5393   [\\/]* | ?:[\\/]*)
5394   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5395   ;;
5396   *)
5397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400   IFS=$as_save_IFS
5401   test -z "$as_dir" && as_dir=.
5402   for ac_exec_ext in '' $ac_executable_extensions; do
5403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406     break 2
5407   fi
5408 done
5409 done
5410
5411   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5412   ;;
5413 esac
5414 fi
5415 GZIP=$ac_cv_path_GZIP
5416
5417 if test -n "$GZIP"; then
5418   echo "$as_me:$LINENO: result: $GZIP" >&5
5419 echo "${ECHO_T}$GZIP" >&6
5420 else
5421   echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5423 fi
5424
5425 # Extract the first word of "pod2html", so it can be a program name with args.
5426 set dummy pod2html; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_POD2HTML+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   case $POD2HTML in
5433   [\\/]* | ?:[\\/]*)
5434   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5435   ;;
5436   *)
5437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442   for ac_exec_ext in '' $ac_executable_extensions; do
5443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449 done
5450
5451   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5452   ;;
5453 esac
5454 fi
5455 POD2HTML=$ac_cv_path_POD2HTML
5456
5457 if test -n "$POD2HTML"; then
5458   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5459 echo "${ECHO_T}$POD2HTML" >&6
5460 else
5461   echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5463 fi
5464
5465 # Extract the first word of "pod2man", so it can be a program name with args.
5466 set dummy pod2man; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_path_POD2MAN+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   case $POD2MAN in
5473   [\\/]* | ?:[\\/]*)
5474   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5475   ;;
5476   *)
5477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482   for ac_exec_ext in '' $ac_executable_extensions; do
5483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486     break 2
5487   fi
5488 done
5489 done
5490
5491   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5492   ;;
5493 esac
5494 fi
5495 POD2MAN=$ac_cv_path_POD2MAN
5496
5497 if test -n "$POD2MAN"; then
5498   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5499 echo "${ECHO_T}$POD2MAN" >&6
5500 else
5501   echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5503 fi
5504
5505 # Extract the first word of "runtest", so it can be a program name with args.
5506 set dummy runtest; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_path_RUNTEST+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   case $RUNTEST in
5513   [\\/]* | ?:[\\/]*)
5514   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5515   ;;
5516   *)
5517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522   for ac_exec_ext in '' $ac_executable_extensions; do
5523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529 done
5530
5531   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5532   ;;
5533 esac
5534 fi
5535 RUNTEST=$ac_cv_path_RUNTEST
5536
5537 if test -n "$RUNTEST"; then
5538   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5539 echo "${ECHO_T}$RUNTEST" >&6
5540 else
5541   echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5543 fi
5544
5545
5546 no_itcl=true
5547 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5548 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5549
5550 # Check whether --with-tclinclude or --without-tclinclude was given.
5551 if test "${with_tclinclude+set}" = set; then
5552   withval="$with_tclinclude"
5553   with_tclinclude=${withval}
5554 else
5555   with_tclinclude=''
5556 fi;
5557 if test "${ac_cv_path_tclsh+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560
5561 if test x"${with_tclinclude}" != x ; then
5562   if test -f ${with_tclinclude}/tclsh ; then
5563     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5564   elif test -f ${with_tclinclude}/src/tclsh ; then
5565     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5566   else
5567     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5568 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5569    { (exit 1); exit 1; }; }
5570   fi
5571 fi
5572
5573 if test x"${ac_cv_path_tclsh}" = x ; then
5574   echo "$as_me:$LINENO: result: none" >&5
5575 echo "${ECHO_T}none" >&6
5576   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
5577 do
5578   # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy $ac_prog; ac_word=$2
5580 echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582 if test "${ac_cv_path_TCLSH+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   case $TCLSH in
5586   [\\/]* | ?:[\\/]*)
5587   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5588   ;;
5589   *)
5590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595   for ac_exec_ext in '' $ac_executable_extensions; do
5596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599     break 2
5600   fi
5601 done
5602 done
5603
5604   ;;
5605 esac
5606 fi
5607 TCLSH=$ac_cv_path_TCLSH
5608
5609 if test -n "$TCLSH"; then
5610   echo "$as_me:$LINENO: result: $TCLSH" >&5
5611 echo "${ECHO_T}$TCLSH" >&6
5612 else
5613   echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615 fi
5616
5617   test -n "$TCLSH" && break
5618 done
5619
5620   if test x"${TCLSH}" = x ; then
5621     ac_cv_path_tclsh='';
5622   else
5623     ac_cv_path_tclsh="${TCLSH}";
5624   fi
5625 else
5626   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5627 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5628   TCLSH="${ac_cv_path_tclsh}"
5629
5630 fi
5631
5632 fi
5633
5634 # Extract the first word of "zip", so it can be a program name with args.
5635 set dummy zip; ac_word=$2
5636 echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5638 if test "${ac_cv_path_ZIP+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   case $ZIP in
5642   [\\/]* | ?:[\\/]*)
5643   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5644   ;;
5645   *)
5646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651   for ac_exec_ext in '' $ac_executable_extensions; do
5652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655     break 2
5656   fi
5657 done
5658 done
5659
5660   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5661   ;;
5662 esac
5663 fi
5664 ZIP=$ac_cv_path_ZIP
5665
5666 if test -n "$ZIP"; then
5667   echo "$as_me:$LINENO: result: $ZIP" >&5
5668 echo "${ECHO_T}$ZIP" >&6
5669 else
5670   echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6
5672 fi
5673
5674
5675 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5676 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5677 if test "${llvm_cv_link_use_r+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680    ac_ext=c
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685
5686   oldcflags="$CFLAGS"
5687   CFLAGS="$CFLAGS -Wl,-R."
5688   cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694
5695 int
5696 main ()
5697 {
5698 int main() { return 0; }
5699   ;
5700   return 0;
5701 }
5702 _ACEOF
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705   (eval $ac_link) 2>conftest.er1
5706   ac_status=$?
5707   grep -v '^ *+' conftest.er1 >conftest.err
5708   rm -f conftest.er1
5709   cat conftest.err >&5
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); } &&
5712          { ac_try='test -z "$ac_c_werror_flag"
5713                          || test ! -s conftest.err'
5714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715   (eval $ac_try) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; } &&
5719          { ac_try='test -s conftest$ac_exeext'
5720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721   (eval $ac_try) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); }; }; then
5725   llvm_cv_link_use_r=yes
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730 llvm_cv_link_use_r=no
5731 fi
5732 rm -f conftest.err conftest.$ac_objext \
5733       conftest$ac_exeext conftest.$ac_ext
5734   CFLAGS="$oldcflags"
5735   ac_ext=c
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740
5741
5742 fi
5743 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5744 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5745 if test "$llvm_cv_link_use_r" = yes ; then
5746
5747 cat >>confdefs.h <<\_ACEOF
5748 #define HAVE_LINK_R 1
5749 _ACEOF
5750
5751   fi
5752
5753
5754
5755
5756 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5758 if test "${ac_cv_c_const+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767
5768 int
5769 main ()
5770 {
5771 /* FIXME: Include the comments suggested by Paul. */
5772 #ifndef __cplusplus
5773   /* Ultrix mips cc rejects this.  */
5774   typedef int charset[2];
5775   const charset x;
5776   /* SunOS 4.1.1 cc rejects this.  */
5777   char const *const *ccp;
5778   char **p;
5779   /* NEC SVR4.0.2 mips cc rejects this.  */
5780   struct point {int x, y;};
5781   static struct point const zero = {0,0};
5782   /* AIX XL C 1.02.0.0 rejects this.
5783      It does not let you subtract one const X* pointer from another in
5784      an arm of an if-expression whose if-part is not a constant
5785      expression */
5786   const char *g = "string";
5787   ccp = &g + (g ? g-g : 0);
5788   /* HPUX 7.0 cc rejects these. */
5789   ++ccp;
5790   p = (char**) ccp;
5791   ccp = (char const *const *) p;
5792   { /* SCO 3.2v4 cc rejects this.  */
5793     char *t;
5794     char const *s = 0 ? (char *) 0 : (char const *) 0;
5795
5796     *t++ = 0;
5797   }
5798   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5799     int x[] = {25, 17};
5800     const int *foo = &x[0];
5801     ++foo;
5802   }
5803   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5804     typedef const int *iptr;
5805     iptr p = 0;
5806     ++p;
5807   }
5808   { /* AIX XL C 1.02.0.0 rejects this saying
5809        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5810     struct s { int j; const int *ap[3]; };
5811     struct s *b; b->j = 5;
5812   }
5813   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5814     const int foo = 10;
5815   }
5816 #endif
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824   (eval $ac_compile) 2>conftest.er1
5825   ac_status=$?
5826   grep -v '^ *+' conftest.er1 >conftest.err
5827   rm -f conftest.er1
5828   cat conftest.err >&5
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); } &&
5831          { ac_try='test -z "$ac_c_werror_flag"
5832                          || test ! -s conftest.err'
5833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834   (eval $ac_try) 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); }; } &&
5838          { ac_try='test -s conftest.$ac_objext'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; }; then
5844   ac_cv_c_const=yes
5845 else
5846   echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ac_cv_c_const=no
5850 fi
5851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 fi
5853 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5854 echo "${ECHO_T}$ac_cv_c_const" >&6
5855 if test $ac_cv_c_const = no; then
5856
5857 cat >>confdefs.h <<\_ACEOF
5858 #define const
5859 _ACEOF
5860
5861 fi
5862
5863
5864 echo "$as_me:$LINENO: checking for egrep" >&5
5865 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5866 if test "${ac_cv_prog_egrep+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5870     then ac_cv_prog_egrep='grep -E'
5871     else ac_cv_prog_egrep='egrep'
5872     fi
5873 fi
5874 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5875 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5876  EGREP=$ac_cv_prog_egrep
5877
5878
5879 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5880 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5881 if test "${ac_cv_header_stdc+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890 #include <stdlib.h>
5891 #include <stdarg.h>
5892 #include <string.h>
5893 #include <float.h>
5894
5895 int
5896 main ()
5897 {
5898
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905   (eval $ac_compile) 2>conftest.er1
5906   ac_status=$?
5907   grep -v '^ *+' conftest.er1 >conftest.err
5908   rm -f conftest.er1
5909   cat conftest.err >&5
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -z "$ac_c_werror_flag"
5913                          || test ! -s conftest.err'
5914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; } &&
5919          { ac_try='test -s conftest.$ac_objext'
5920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921   (eval $ac_try) 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; }; then
5925   ac_cv_header_stdc=yes
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_cv_header_stdc=no
5931 fi
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5933
5934 if test $ac_cv_header_stdc = yes; then
5935   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936   cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h.  */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h.  */
5942 #include <string.h>
5943
5944 _ACEOF
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946   $EGREP "memchr" >/dev/null 2>&1; then
5947   :
5948 else
5949   ac_cv_header_stdc=no
5950 fi
5951 rm -f conftest*
5952
5953 fi
5954
5955 if test $ac_cv_header_stdc = yes; then
5956   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5957   cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <stdlib.h>
5964
5965 _ACEOF
5966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5967   $EGREP "free" >/dev/null 2>&1; then
5968   :
5969 else
5970   ac_cv_header_stdc=no
5971 fi
5972 rm -f conftest*
5973
5974 fi
5975
5976 if test $ac_cv_header_stdc = yes; then
5977   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5978   if test "$cross_compiling" = yes; then
5979   :
5980 else
5981   cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h.  */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h.  */
5987 #include <ctype.h>
5988 #if ((' ' & 0x0FF) == 0x020)
5989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5991 #else
5992 # define ISLOWER(c) \
5993                    (('a' <= (c) && (c) <= 'i') \
5994                      || ('j' <= (c) && (c) <= 'r') \
5995                      || ('s' <= (c) && (c) <= 'z'))
5996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5997 #endif
5998
5999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6000 int
6001 main ()
6002 {
6003   int i;
6004   for (i = 0; i < 256; i++)
6005     if (XOR (islower (i), ISLOWER (i))
6006         || toupper (i) != TOUPPER (i))
6007       exit(2);
6008   exit (0);
6009 }
6010 _ACEOF
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013   (eval $ac_link) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   :
6023 else
6024   echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ( exit $ac_status )
6029 ac_cv_header_stdc=no
6030 fi
6031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6032 fi
6033 fi
6034 fi
6035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6037 if test $ac_cv_header_stdc = yes; then
6038
6039 cat >>confdefs.h <<\_ACEOF
6040 #define STDC_HEADERS 1
6041 _ACEOF
6042
6043 fi
6044
6045
6046
6047
6048
6049
6050 ac_header_dirent=no
6051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6052   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6053 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6054 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 #include <sys/types.h>
6065 #include <$ac_hdr>
6066
6067 int
6068 main ()
6069 {
6070 if ((DIR *) 0)
6071 return 0;
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } &&
6085          { ac_try='test -z "$ac_c_werror_flag"
6086                          || test ! -s conftest.err'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; } &&
6092          { ac_try='test -s conftest.$ac_objext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   eval "$as_ac_Header=yes"
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 eval "$as_ac_Header=no"
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6110   cat >>confdefs.h <<_ACEOF
6111 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6112 _ACEOF
6113
6114 ac_header_dirent=$ac_hdr; break
6115 fi
6116
6117 done
6118 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6119 if test $ac_header_dirent = dirent.h; then
6120   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6122 if test "${ac_cv_search_opendir+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   ac_func_search_save_LIBS=$LIBS
6126 ac_cv_search_opendir=no
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133
6134 /* Override any gcc2 internal prototype to avoid an error.  */
6135 #ifdef __cplusplus
6136 extern "C"
6137 #endif
6138 /* We use char because int might match the return type of a gcc2
6139    builtin and then its argument prototype would still apply.  */
6140 char opendir ();
6141 int
6142 main ()
6143 {
6144 opendir ();
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151   (eval $ac_link) 2>conftest.er1
6152   ac_status=$?
6153   grep -v '^ *+' conftest.er1 >conftest.err
6154   rm -f conftest.er1
6155   cat conftest.err >&5
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); } &&
6158          { ac_try='test -z "$ac_c_werror_flag"
6159                          || test ! -s conftest.err'
6160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161   (eval $ac_try) 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); }; } &&
6165          { ac_try='test -s conftest$ac_exeext'
6166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167   (eval $ac_try) 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); }; }; then
6171   ac_cv_search_opendir="none required"
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 fi
6177 rm -f conftest.err conftest.$ac_objext \
6178       conftest$ac_exeext conftest.$ac_ext
6179 if test "$ac_cv_search_opendir" = no; then
6180   for ac_lib in dir; do
6181     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6182     cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188
6189 /* Override any gcc2 internal prototype to avoid an error.  */
6190 #ifdef __cplusplus
6191 extern "C"
6192 #endif
6193 /* We use char because int might match the return type of a gcc2
6194    builtin and then its argument prototype would still apply.  */
6195 char opendir ();
6196 int
6197 main ()
6198 {
6199 opendir ();
6200   ;
6201   return 0;
6202 }
6203 _ACEOF
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6206   (eval $ac_link) 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } &&
6213          { ac_try='test -z "$ac_c_werror_flag"
6214                          || test ! -s conftest.err'
6215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216   (eval $ac_try) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; } &&
6220          { ac_try='test -s conftest$ac_exeext'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; }; then
6226   ac_cv_search_opendir="-l$ac_lib"
6227 break
6228 else
6229   echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 fi
6233 rm -f conftest.err conftest.$ac_objext \
6234       conftest$ac_exeext conftest.$ac_ext
6235   done
6236 fi
6237 LIBS=$ac_func_search_save_LIBS
6238 fi
6239 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6240 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6241 if test "$ac_cv_search_opendir" != no; then
6242   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6243
6244 fi
6245
6246 else
6247   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6249 if test "${ac_cv_search_opendir+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   ac_func_search_save_LIBS=$LIBS
6253 ac_cv_search_opendir=no
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260
6261 /* Override any gcc2 internal prototype to avoid an error.  */
6262 #ifdef __cplusplus
6263 extern "C"
6264 #endif
6265 /* We use char because int might match the return type of a gcc2
6266    builtin and then its argument prototype would still apply.  */
6267 char opendir ();
6268 int
6269 main ()
6270 {
6271 opendir ();
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278   (eval $ac_link) 2>conftest.er1
6279   ac_status=$?
6280   grep -v '^ *+' conftest.er1 >conftest.err
6281   rm -f conftest.er1
6282   cat conftest.err >&5
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } &&
6285          { ac_try='test -z "$ac_c_werror_flag"
6286                          || test ! -s conftest.err'
6287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288   (eval $ac_try) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; } &&
6292          { ac_try='test -s conftest$ac_exeext'
6293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294   (eval $ac_try) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; }; then
6298   ac_cv_search_opendir="none required"
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 fi
6304 rm -f conftest.err conftest.$ac_objext \
6305       conftest$ac_exeext conftest.$ac_ext
6306 if test "$ac_cv_search_opendir" = no; then
6307   for ac_lib in x; do
6308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6309     cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315
6316 /* Override any gcc2 internal prototype to avoid an error.  */
6317 #ifdef __cplusplus
6318 extern "C"
6319 #endif
6320 /* We use char because int might match the return type of a gcc2
6321    builtin and then its argument prototype would still apply.  */
6322 char opendir ();
6323 int
6324 main ()
6325 {
6326 opendir ();
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 rm -f conftest.$ac_objext conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333   (eval $ac_link) 2>conftest.er1
6334   ac_status=$?
6335   grep -v '^ *+' conftest.er1 >conftest.err
6336   rm -f conftest.er1
6337   cat conftest.err >&5
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); } &&
6340          { ac_try='test -z "$ac_c_werror_flag"
6341                          || test ! -s conftest.err'
6342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343   (eval $ac_try) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; } &&
6347          { ac_try='test -s conftest$ac_exeext'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; }; then
6353   ac_cv_search_opendir="-l$ac_lib"
6354 break
6355 else
6356   echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359 fi
6360 rm -f conftest.err conftest.$ac_objext \
6361       conftest$ac_exeext conftest.$ac_ext
6362   done
6363 fi
6364 LIBS=$ac_func_search_save_LIBS
6365 fi
6366 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6367 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6368 if test "$ac_cv_search_opendir" != no; then
6369   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6370
6371 fi
6372
6373 fi
6374
6375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6386                   inttypes.h stdint.h unistd.h
6387 do
6388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389 echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400 $ac_includes_default
6401
6402 #include <$ac_header>
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406   (eval $ac_compile) 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -z "$ac_c_werror_flag"
6414                          || test ! -s conftest.err'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; } &&
6420          { ac_try='test -s conftest.$ac_objext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   eval "$as_ac_Header=yes"
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 eval "$as_ac_Header=no"
6432 fi
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438   cat >>confdefs.h <<_ACEOF
6439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440 _ACEOF
6441
6442 fi
6443
6444 done
6445
6446
6447
6448 for ac_header in dlfcn.h
6449 do
6450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452   echo "$as_me:$LINENO: checking for $ac_header" >&5
6453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 fi
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6459 else
6460   # Is the header compilable?
6461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469 $ac_includes_default
6470 #include <$ac_header>
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474   (eval $ac_compile) 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -z "$ac_c_werror_flag"
6482                          || test ! -s conftest.err'
6483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484   (eval $ac_try) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); }; } &&
6488          { ac_try='test -s conftest.$ac_objext'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; }; then
6494   ac_header_compiler=yes
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 ac_header_compiler=no
6500 fi
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503 echo "${ECHO_T}$ac_header_compiler" >&6
6504
6505 # Is the header present?
6506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h.  */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h.  */
6514 #include <$ac_header>
6515 _ACEOF
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } >/dev/null; then
6524   if test -s conftest.err; then
6525     ac_cpp_err=$ac_c_preproc_warn_flag
6526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6527   else
6528     ac_cpp_err=
6529   fi
6530 else
6531   ac_cpp_err=yes
6532 fi
6533 if test -z "$ac_cpp_err"; then
6534   ac_header_preproc=yes
6535 else
6536   echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539   ac_header_preproc=no
6540 fi
6541 rm -f conftest.err conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6543 echo "${ECHO_T}$ac_header_preproc" >&6
6544
6545 # So?  What about this header?
6546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6547   yes:no: )
6548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6552     ac_header_preproc=yes
6553     ;;
6554   no:yes:* )
6555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6567     (
6568       cat <<\_ASBOX
6569 ## ----------------------------------- ##
6570 ## Report this to llvmbugs@cs.uiuc.edu ##
6571 ## ----------------------------------- ##
6572 _ASBOX
6573     ) |
6574       sed "s/^/$as_me: WARNING:     /" >&2
6575     ;;
6576 esac
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   eval "$as_ac_Header=\$ac_header_preproc"
6583 fi
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6586
6587 fi
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589   cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 _ACEOF
6592
6593 fi
6594
6595 done
6596
6597 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6598 if test "${enable_ltdl_install+set}" = set; then
6599   enableval="$enable_ltdl_install"
6600
6601 fi;
6602
6603
6604
6605 if test x"${enable_ltdl_install-no}" != xno; then
6606   INSTALL_LTDL_TRUE=
6607   INSTALL_LTDL_FALSE='#'
6608 else
6609   INSTALL_LTDL_TRUE='#'
6610   INSTALL_LTDL_FALSE=
6611 fi
6612
6613
6614
6615 if test x"${enable_ltdl_convenience-no}" != xno; then
6616   CONVENIENCE_LTDL_TRUE=
6617   CONVENIENCE_LTDL_FALSE='#'
6618 else
6619   CONVENIENCE_LTDL_TRUE='#'
6620   CONVENIENCE_LTDL_FALSE=
6621 fi
6622
6623
6624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6626 library_names_spec=
6627 libname_spec='lib$name'
6628 soname_spec=
6629 shrext_cmds=".so"
6630 postinstall_cmds=
6631 postuninstall_cmds=
6632 finish_cmds=
6633 finish_eval=
6634 shlibpath_var=
6635 shlibpath_overrides_runpath=unknown
6636 version_type=none
6637 dynamic_linker="$host_os ld.so"
6638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6639 if test "$GCC" = yes; then
6640   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6641   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6642     # if the path contains ";" then we assume it to be the separator
6643     # otherwise default to the standard path separator (i.e. ":") - it is
6644     # assumed that no part of a normal pathname contains ";" but that should
6645     # okay in the real world where ";" in dirpaths is itself problematic.
6646     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6647   else
6648     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6649   fi
6650 else
6651   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6652 fi
6653 need_lib_prefix=unknown
6654 hardcode_into_libs=no
6655
6656 # when you set need_version to no, make sure it does not cause -set_version
6657 # flags to be left without arguments
6658 need_version=unknown
6659
6660 case $host_os in
6661 aix3*)
6662   version_type=linux
6663   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6664   shlibpath_var=LIBPATH
6665
6666   # AIX 3 has no versioning support, so we append a major version to the name.
6667   soname_spec='${libname}${release}${shared_ext}$major'
6668   ;;
6669
6670 aix4* | aix5*)
6671   version_type=linux
6672   need_lib_prefix=no
6673   need_version=no
6674   hardcode_into_libs=yes
6675   if test "$host_cpu" = ia64; then
6676     # AIX 5 supports IA64
6677     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6678     shlibpath_var=LD_LIBRARY_PATH
6679   else
6680     # With GCC up to 2.95.x, collect2 would create an import file
6681     # for dependence libraries.  The import file would start with
6682     # the line `#! .'.  This would cause the generated library to
6683     # depend on `.', always an invalid library.  This was fixed in
6684     # development snapshots of GCC prior to 3.0.
6685     case $host_os in
6686       aix4 | aix4.[01] | aix4.[01].*)
6687       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6688            echo ' yes '
6689            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6690         :
6691       else
6692         can_build_shared=no
6693       fi
6694       ;;
6695     esac
6696     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6697     # soname into executable. Probably we can add versioning support to
6698     # collect2, so additional links can be useful in future.
6699     if test "$aix_use_runtimelinking" = yes; then
6700       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6701       # instead of lib<name>.a to let people know that these are not
6702       # typical AIX shared libraries.
6703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6704     else
6705       # We preserve .a as extension for shared libraries through AIX4.2
6706       # and later when we are not doing run time linking.
6707       library_names_spec='${libname}${release}.a $libname.a'
6708       soname_spec='${libname}${release}${shared_ext}$major'
6709     fi
6710     shlibpath_var=LIBPATH
6711   fi
6712   ;;
6713
6714 amigaos*)
6715   library_names_spec='$libname.ixlibrary $libname.a'
6716   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6717   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'
6718   ;;
6719
6720 beos*)
6721   library_names_spec='${libname}${shared_ext}'
6722   dynamic_linker="$host_os ld.so"
6723   shlibpath_var=LIBRARY_PATH
6724   ;;
6725
6726 bsdi[45]*)
6727   version_type=linux
6728   need_version=no
6729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6730   soname_spec='${libname}${release}${shared_ext}$major'
6731   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6732   shlibpath_var=LD_LIBRARY_PATH
6733   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6734   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6735   # the default ld.so.conf also contains /usr/contrib/lib and
6736   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6737   # libtool to hard-code these into programs
6738   ;;
6739
6740 cygwin* | mingw* | pw32*)
6741   version_type=windows
6742   shrext_cmds=".dll"
6743   need_version=no
6744   need_lib_prefix=no
6745
6746   case $GCC,$host_os in
6747   yes,cygwin* | yes,mingw* | yes,pw32*)
6748     library_names_spec='$libname.dll.a'
6749     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6750     postinstall_cmds='base_file=`basename \${file}`~
6751       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6752       dldir=$destdir/`dirname \$dlpath`~
6753       test -d \$dldir || mkdir -p \$dldir~
6754       $install_prog $dir/$dlname \$dldir/$dlname'
6755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6756       dlpath=$dir/\$dldll~
6757        $rm \$dlpath'
6758     shlibpath_overrides_runpath=yes
6759
6760     case $host_os in
6761     cygwin*)
6762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6765       ;;
6766     mingw*)
6767       # MinGW DLLs use traditional 'lib' prefix
6768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6771         # It is most probably a Windows format PATH printed by
6772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6773         # path with ; separators, and with drive letters. We can handle the
6774         # drive letters (cygwin fileutils understands them), so leave them,
6775         # especially as we might pass files found there to a mingw objdump,
6776         # which wouldn't understand a cygwinified path. Ahh.
6777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6778       else
6779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6780       fi
6781       ;;
6782     pw32*)
6783       # pw32 DLLs use 'pw' prefix rather than 'lib'
6784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6785       ;;
6786     esac
6787     ;;
6788
6789   *)
6790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6791     ;;
6792   esac
6793   dynamic_linker='Win32 ld.exe'
6794   # FIXME: first we should search . and the directory the executable is in
6795   shlibpath_var=PATH
6796   ;;
6797
6798 darwin* | rhapsody*)
6799   dynamic_linker="$host_os dyld"
6800   version_type=darwin
6801   need_lib_prefix=no
6802   need_version=no
6803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6804   soname_spec='${libname}${release}${major}$shared_ext'
6805   shlibpath_overrides_runpath=yes
6806   shlibpath_var=DYLD_LIBRARY_PATH
6807   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6809   if test "$GCC" = yes; then
6810     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"`
6811   else
6812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6813   fi
6814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6815   ;;
6816
6817 dgux*)
6818   version_type=linux
6819   need_lib_prefix=no
6820   need_version=no
6821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6822   soname_spec='${libname}${release}${shared_ext}$major'
6823   shlibpath_var=LD_LIBRARY_PATH
6824   ;;
6825
6826 freebsd1*)
6827   dynamic_linker=no
6828   ;;
6829
6830 kfreebsd*-gnu)
6831   version_type=linux
6832   need_lib_prefix=no
6833   need_version=no
6834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6835   soname_spec='${libname}${release}${shared_ext}$major'
6836   shlibpath_var=LD_LIBRARY_PATH
6837   shlibpath_overrides_runpath=no
6838   hardcode_into_libs=yes
6839   dynamic_linker='GNU ld.so'
6840   ;;
6841
6842 freebsd*)
6843   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6844   version_type=freebsd-$objformat
6845   case $version_type in
6846     freebsd-elf*)
6847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6848       need_version=no
6849       need_lib_prefix=no
6850       ;;
6851     freebsd-*)
6852       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6853       need_version=yes
6854       ;;
6855   esac
6856   shlibpath_var=LD_LIBRARY_PATH
6857   case $host_os in
6858   freebsd2*)
6859     shlibpath_overrides_runpath=yes
6860     ;;
6861   freebsd3.01* | freebsdelf3.01*)
6862     shlibpath_overrides_runpath=yes
6863     hardcode_into_libs=yes
6864     ;;
6865   *) # from 3.2 on
6866     shlibpath_overrides_runpath=no
6867     hardcode_into_libs=yes
6868     ;;
6869   esac
6870   ;;
6871
6872 gnu*)
6873   version_type=linux
6874   need_lib_prefix=no
6875   need_version=no
6876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6877   soname_spec='${libname}${release}${shared_ext}$major'
6878   shlibpath_var=LD_LIBRARY_PATH
6879   hardcode_into_libs=yes
6880   ;;
6881
6882 hpux9* | hpux10* | hpux11*)
6883   # Give a soname corresponding to the major version so that dld.sl refuses to
6884   # link against other versions.
6885   version_type=sunos
6886   need_lib_prefix=no
6887   need_version=no
6888   case "$host_cpu" in
6889   ia64*)
6890     shrext_cmds='.so'
6891     hardcode_into_libs=yes
6892     dynamic_linker="$host_os dld.so"
6893     shlibpath_var=LD_LIBRARY_PATH
6894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6896     soname_spec='${libname}${release}${shared_ext}$major'
6897     if test "X$HPUX_IA64_MODE" = X32; then
6898       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6899     else
6900       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6901     fi
6902     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6903     ;;
6904    hppa*64*)
6905      shrext_cmds='.sl'
6906      hardcode_into_libs=yes
6907      dynamic_linker="$host_os dld.sl"
6908      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6909      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6911      soname_spec='${libname}${release}${shared_ext}$major'
6912      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6913      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6914      ;;
6915    *)
6916     shrext_cmds='.sl'
6917     dynamic_linker="$host_os dld.sl"
6918     shlibpath_var=SHLIB_PATH
6919     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6921     soname_spec='${libname}${release}${shared_ext}$major'
6922     ;;
6923   esac
6924   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6925   postinstall_cmds='chmod 555 $lib'
6926   ;;
6927
6928 irix5* | irix6* | nonstopux*)
6929   case $host_os in
6930     nonstopux*) version_type=nonstopux ;;
6931     *)
6932         if test "$lt_cv_prog_gnu_ld" = yes; then
6933                 version_type=linux
6934         else
6935                 version_type=irix
6936         fi ;;
6937   esac
6938   need_lib_prefix=no
6939   need_version=no
6940   soname_spec='${libname}${release}${shared_ext}$major'
6941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6942   case $host_os in
6943   irix5* | nonstopux*)
6944     libsuff= shlibsuff=
6945     ;;
6946   *)
6947     case $LD in # libtool.m4 will add one of these switches to LD
6948     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6949       libsuff= shlibsuff= libmagic=32-bit;;
6950     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6951       libsuff=32 shlibsuff=N32 libmagic=N32;;
6952     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6953       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6954     *) libsuff= shlibsuff= libmagic=never-match;;
6955     esac
6956     ;;
6957   esac
6958   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6959   shlibpath_overrides_runpath=no
6960   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6961   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6962   hardcode_into_libs=yes
6963   ;;
6964
6965 # No shared lib support for Linux oldld, aout, or coff.
6966 linux*oldld* | linux*aout* | linux*coff*)
6967   dynamic_linker=no
6968   ;;
6969
6970 # This must be Linux ELF.
6971 linux*)
6972   version_type=linux
6973   need_lib_prefix=no
6974   need_version=no
6975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6976   soname_spec='${libname}${release}${shared_ext}$major'
6977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6978   shlibpath_var=LD_LIBRARY_PATH
6979   shlibpath_overrides_runpath=no
6980   # This implies no fast_install, which is unacceptable.
6981   # Some rework will be needed to allow for fast_install
6982   # before this can be enabled.
6983   hardcode_into_libs=yes
6984
6985   # Append ld.so.conf contents to the search path
6986   if test -f /etc/ld.so.conf; then
6987     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6988     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6989   fi
6990
6991   # We used to test for /lib/ld.so.1 and disable shared libraries on
6992   # powerpc, because MkLinux only supported shared libraries with the
6993   # GNU dynamic linker.  Since this was broken with cross compilers,
6994   # most powerpc-linux boxes support dynamic linking these days and
6995   # people can always --disable-shared, the test was removed, and we
6996   # assume the GNU/Linux dynamic linker is in use.
6997   dynamic_linker='GNU/Linux ld.so'
6998   ;;
6999
7000 knetbsd*-gnu)
7001   version_type=linux
7002   need_lib_prefix=no
7003   need_version=no
7004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7005   soname_spec='${libname}${release}${shared_ext}$major'
7006   shlibpath_var=LD_LIBRARY_PATH
7007   shlibpath_overrides_runpath=no
7008   hardcode_into_libs=yes
7009   dynamic_linker='GNU ld.so'
7010   ;;
7011
7012 netbsd*)
7013   version_type=sunos
7014   need_lib_prefix=no
7015   need_version=no
7016   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7018     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7019     dynamic_linker='NetBSD (a.out) ld.so'
7020   else
7021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7022     soname_spec='${libname}${release}${shared_ext}$major'
7023     dynamic_linker='NetBSD ld.elf_so'
7024   fi
7025   shlibpath_var=LD_LIBRARY_PATH
7026   shlibpath_overrides_runpath=yes
7027   hardcode_into_libs=yes
7028   ;;
7029
7030 newsos6)
7031   version_type=linux
7032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033   shlibpath_var=LD_LIBRARY_PATH
7034   shlibpath_overrides_runpath=yes
7035   ;;
7036
7037 nto-qnx*)
7038   version_type=linux
7039   need_lib_prefix=no
7040   need_version=no
7041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042   soname_spec='${libname}${release}${shared_ext}$major'
7043   shlibpath_var=LD_LIBRARY_PATH
7044   shlibpath_overrides_runpath=yes
7045   ;;
7046
7047 openbsd*)
7048   version_type=sunos
7049   need_lib_prefix=no
7050   need_version=no
7051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7052   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7053   shlibpath_var=LD_LIBRARY_PATH
7054   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7055     case $host_os in
7056       openbsd2.[89] | openbsd2.[89].*)
7057         shlibpath_overrides_runpath=no
7058         ;;
7059       *)
7060         shlibpath_overrides_runpath=yes
7061         ;;
7062       esac
7063   else
7064     shlibpath_overrides_runpath=yes
7065   fi
7066   ;;
7067
7068 os2*)
7069   libname_spec='$name'
7070   shrext_cmds=".dll"
7071   need_lib_prefix=no
7072   library_names_spec='$libname${shared_ext} $libname.a'
7073   dynamic_linker='OS/2 ld.exe'
7074   shlibpath_var=LIBPATH
7075   ;;
7076
7077 osf3* | osf4* | osf5*)
7078   version_type=osf
7079   need_lib_prefix=no
7080   need_version=no
7081   soname_spec='${libname}${release}${shared_ext}$major'
7082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7083   shlibpath_var=LD_LIBRARY_PATH
7084   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7085   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7086   ;;
7087
7088 sco3.2v5*)
7089   version_type=osf
7090   soname_spec='${libname}${release}${shared_ext}$major'
7091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7092   shlibpath_var=LD_LIBRARY_PATH
7093   ;;
7094
7095 solaris*)
7096   version_type=linux
7097   need_lib_prefix=no
7098   need_version=no
7099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100   soname_spec='${libname}${release}${shared_ext}$major'
7101   shlibpath_var=LD_LIBRARY_PATH
7102   shlibpath_overrides_runpath=yes
7103   hardcode_into_libs=yes
7104   # ldd complains unless libraries are executable
7105   postinstall_cmds='chmod +x $lib'
7106   ;;
7107
7108 sunos4*)
7109   version_type=sunos
7110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7111   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7112   shlibpath_var=LD_LIBRARY_PATH
7113   shlibpath_overrides_runpath=yes
7114   if test "$with_gnu_ld" = yes; then
7115     need_lib_prefix=no
7116   fi
7117   need_version=yes
7118   ;;
7119
7120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7121   version_type=linux
7122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7123   soname_spec='${libname}${release}${shared_ext}$major'
7124   shlibpath_var=LD_LIBRARY_PATH
7125   case $host_vendor in
7126     sni)
7127       shlibpath_overrides_runpath=no
7128       need_lib_prefix=no
7129       export_dynamic_flag_spec='${wl}-Blargedynsym'
7130       runpath_var=LD_RUN_PATH
7131       ;;
7132     siemens)
7133       need_lib_prefix=no
7134       ;;
7135     motorola)
7136       need_lib_prefix=no
7137       need_version=no
7138       shlibpath_overrides_runpath=no
7139       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7140       ;;
7141   esac
7142   ;;
7143
7144 sysv4*MP*)
7145   if test -d /usr/nec ;then
7146     version_type=linux
7147     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7148     soname_spec='$libname${shared_ext}.$major'
7149     shlibpath_var=LD_LIBRARY_PATH
7150   fi
7151   ;;
7152
7153 uts4*)
7154   version_type=linux
7155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7156   soname_spec='${libname}${release}${shared_ext}$major'
7157   shlibpath_var=LD_LIBRARY_PATH
7158   ;;
7159
7160 *)
7161   dynamic_linker=no
7162   ;;
7163 esac
7164 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7165 echo "${ECHO_T}$dynamic_linker" >&6
7166 test "$dynamic_linker" = no && can_build_shared=no
7167
7168
7169 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7170 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7171 if test "${libltdl_cv_shlibext+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174
7175 module=yes
7176 eval libltdl_cv_shlibext=$shrext_cmds
7177
7178 fi
7179 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7180 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7181 if test -n "$libltdl_cv_shlibext"; then
7182
7183 cat >>confdefs.h <<_ACEOF
7184 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7185 _ACEOF
7186
7187 fi
7188
7189
7190 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7191 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7192 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   libltdl_cv_shlibpath_var="$shlibpath_var"
7196 fi
7197 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7198 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7199 if test -n "$libltdl_cv_shlibpath_var"; then
7200
7201 cat >>confdefs.h <<_ACEOF
7202 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7203 _ACEOF
7204
7205 fi
7206
7207
7208 echo "$as_me:$LINENO: checking for the default library search path" >&5
7209 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7210 if test "${libltdl_cv_sys_search_path+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7214 fi
7215 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7216 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7217 if test -n "$libltdl_cv_sys_search_path"; then
7218   sys_search_path=
7219   for dir in $libltdl_cv_sys_search_path; do
7220     if test -z "$sys_search_path"; then
7221       sys_search_path="$dir"
7222     else
7223       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7224     fi
7225   done
7226
7227 cat >>confdefs.h <<_ACEOF
7228 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7229 _ACEOF
7230
7231 fi
7232
7233 echo "$as_me:$LINENO: checking for objdir" >&5
7234 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7235 if test "${libltdl_cv_objdir+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   libltdl_cv_objdir="$objdir"
7239   if test -n "$objdir"; then
7240     :
7241   else
7242     rm -f .libs 2>/dev/null
7243     mkdir .libs 2>/dev/null
7244     if test -d .libs; then
7245       libltdl_cv_objdir=.libs
7246     else
7247       # MS-DOS does not allow filenames that begin with a dot.
7248       libltdl_cv_objdir=_libs
7249     fi
7250   rmdir .libs 2>/dev/null
7251   fi
7252
7253 fi
7254 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7255 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7256
7257 cat >>confdefs.h <<_ACEOF
7258 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7259 _ACEOF
7260
7261
7262 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7263 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7264 if test "${lt_cv_path_NM+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   if test -n "$NM"; then
7268   # Let the user override the test.
7269   lt_cv_path_NM="$NM"
7270 else
7271   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7272   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7273     IFS="$lt_save_ifs"
7274     test -z "$ac_dir" && ac_dir=.
7275     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7276     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7277       # Check to see if the nm accepts a BSD-compat flag.
7278       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7279       #   nm: unknown option "B" ignored
7280       # Tru64's nm complains that /dev/null is an invalid object file
7281       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7282       */dev/null* | *'Invalid file or object type'*)
7283         lt_cv_path_NM="$tmp_nm -B"
7284         break
7285         ;;
7286       *)
7287         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7288         */dev/null*)
7289           lt_cv_path_NM="$tmp_nm -p"
7290           break
7291           ;;
7292         *)
7293           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7294           continue # so that we can try to find one that supports BSD flags
7295           ;;
7296         esac
7297       esac
7298     fi
7299   done
7300   IFS="$lt_save_ifs"
7301   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7302 fi
7303 fi
7304 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7305 echo "${ECHO_T}$lt_cv_path_NM" >&6
7306 NM="$lt_cv_path_NM"
7307
7308
7309
7310
7311
7312 # Check for command to grab the raw symbol name followed by C symbol from nm.
7313 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7314 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7315 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318
7319 # These are sane defaults that work on at least a few old systems.
7320 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7321
7322 # Character class describing NM global symbol codes.
7323 symcode='[BCDEGRST]'
7324
7325 # Regexp to match symbols that can be accessed directly from C.
7326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7327
7328 # Transform the above into a raw symbol and a C symbol.
7329 symxfrm='\1 \2\3 \3'
7330
7331 # Transform an extracted symbol line into a proper C declaration
7332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7333
7334 # Transform an extracted symbol line into symbol name and symbol address
7335 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'"
7336
7337 # Define system-specific variables.
7338 case $host_os in
7339 aix*)
7340   symcode='[BCDT]'
7341   ;;
7342 cygwin* | mingw* | pw32*)
7343   symcode='[ABCDGISTW]'
7344   ;;
7345 hpux*) # Its linker distinguishes data from code symbols
7346   if test "$host_cpu" = ia64; then
7347     symcode='[ABCDEGRST]'
7348   fi
7349   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7350   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'"
7351   ;;
7352 linux*)
7353   if test "$host_cpu" = ia64; then
7354     symcode='[ABCDGIRSTW]'
7355     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7356     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'"
7357   fi
7358   ;;
7359 irix* | nonstopux*)
7360   symcode='[BCDEGRST]'
7361   ;;
7362 osf*)
7363   symcode='[BCDEGQRST]'
7364   ;;
7365 solaris* | sysv5*)
7366   symcode='[BDRT]'
7367   ;;
7368 sysv4)
7369   symcode='[DFNSTU]'
7370   ;;
7371 esac
7372
7373 # Handle CRLF in mingw tool chain
7374 opt_cr=
7375 case $build_os in
7376 mingw*)
7377   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7378   ;;
7379 esac
7380
7381 # If we're using GNU nm, then use its standard symbol codes.
7382 case `$NM -V 2>&1` in
7383 *GNU* | *'with BFD'*)
7384   symcode='[ABCDGIRSTW]' ;;
7385 esac
7386
7387 # Try without a prefix undercore, then with it.
7388 for ac_symprfx in "" "_"; do
7389
7390   # Write the raw and C identifiers.
7391   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7392
7393   # Check to see that the pipe works correctly.
7394   pipe_works=no
7395
7396   rm -f conftest*
7397   cat > conftest.$ac_ext <<EOF
7398 #ifdef __cplusplus
7399 extern "C" {
7400 #endif
7401 char nm_test_var;
7402 void nm_test_func(){}
7403 #ifdef __cplusplus
7404 }
7405 #endif
7406 int main(){nm_test_var='a';nm_test_func();return(0);}
7407 EOF
7408
7409   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410   (eval $ac_compile) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; then
7414     # Now try to grab the symbols.
7415     nlist=conftest.nm
7416     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7417   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7418   ac_status=$?
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); } && test -s "$nlist"; then
7421       # Try sorting and uniquifying the output.
7422       if sort "$nlist" | uniq > "$nlist"T; then
7423         mv -f "$nlist"T "$nlist"
7424       else
7425         rm -f "$nlist"T
7426       fi
7427
7428       # Make sure that we snagged all the symbols we need.
7429       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7430         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7431           cat <<EOF > conftest.$ac_ext
7432 #ifdef __cplusplus
7433 extern "C" {
7434 #endif
7435
7436 EOF
7437           # Now generate the symbol file.
7438           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7439
7440           cat <<EOF >> conftest.$ac_ext
7441 #if defined (__STDC__) && __STDC__
7442 # define lt_ptr_t void *
7443 #else
7444 # define lt_ptr_t char *
7445 # define const
7446 #endif
7447
7448 /* The mapping between symbol names and symbols. */
7449 const struct {
7450   const char *name;
7451   lt_ptr_t address;
7452 }
7453 lt_preloaded_symbols[] =
7454 {
7455 EOF
7456           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7457           cat <<\EOF >> conftest.$ac_ext
7458   {0, (lt_ptr_t) 0}
7459 };
7460
7461 #ifdef __cplusplus
7462 }
7463 #endif
7464 EOF
7465           # Now try linking the two files.
7466           mv conftest.$ac_objext conftstm.$ac_objext
7467           lt_save_LIBS="$LIBS"
7468           lt_save_CFLAGS="$CFLAGS"
7469           LIBS="conftstm.$ac_objext"
7470           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7471           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472   (eval $ac_link) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7476             pipe_works=yes
7477           fi
7478           LIBS="$lt_save_LIBS"
7479           CFLAGS="$lt_save_CFLAGS"
7480         else
7481           echo "cannot find nm_test_func in $nlist" >&5
7482         fi
7483       else
7484         echo "cannot find nm_test_var in $nlist" >&5
7485       fi
7486     else
7487       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7488     fi
7489   else
7490     echo "$progname: failed program was:" >&5
7491     cat conftest.$ac_ext >&5
7492   fi
7493   rm -f conftest* conftst*
7494
7495   # Do not use the global_symbol_pipe unless it works.
7496   if test "$pipe_works" = yes; then
7497     break
7498   else
7499     lt_cv_sys_global_symbol_pipe=
7500   fi
7501 done
7502
7503 fi
7504
7505 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7506   lt_cv_sys_global_symbol_to_cdecl=
7507 fi
7508 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7509   echo "$as_me:$LINENO: result: failed" >&5
7510 echo "${ECHO_T}failed" >&6
7511 else
7512   echo "$as_me:$LINENO: result: ok" >&5
7513 echo "${ECHO_T}ok" >&6
7514 fi
7515
7516
7517 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7518 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7519 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7523     libltdl_cv_preloaded_symbols=yes
7524   else
7525     libltdl_cv_preloaded_symbols=no
7526   fi
7527
7528 fi
7529 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7530 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7531 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7532
7533 cat >>confdefs.h <<\_ACEOF
7534 #define HAVE_PRELOADED_SYMBOLS 1
7535 _ACEOF
7536
7537 fi
7538
7539 LIBADD_DL=
7540
7541 ac_ext=c
7542 ac_cpp='$CPP $CPPFLAGS'
7543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7546
7547
7548 echo "$as_me:$LINENO: checking for shl_load" >&5
7549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7550 if test "${ac_cv_func_shl_load+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h.  */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h.  */
7559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7561 #define shl_load innocuous_shl_load
7562
7563 /* System header to define __stub macros and hopefully few prototypes,
7564     which can conflict with char shl_load (); below.
7565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566     <limits.h> exists even on freestanding compilers.  */
7567
7568 #ifdef __STDC__
7569 # include <limits.h>
7570 #else
7571 # include <assert.h>
7572 #endif
7573
7574 #undef shl_load
7575
7576 /* Override any gcc2 internal prototype to avoid an error.  */
7577 #ifdef __cplusplus
7578 extern "C"
7579 {
7580 #endif
7581 /* We use char because int might match the return type of a gcc2
7582    builtin and then its argument prototype would still apply.  */
7583 char shl_load ();
7584 /* The GNU C library defines this for functions which it implements
7585     to always fail with ENOSYS.  Some functions are actually named
7586     something starting with __ and the normal name is an alias.  */
7587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7588 choke me
7589 #else
7590 char (*f) () = shl_load;
7591 #endif
7592 #ifdef __cplusplus
7593 }
7594 #endif
7595
7596 int
7597 main ()
7598 {
7599 return f != shl_load;
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606   (eval $ac_link) 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -z "$ac_c_werror_flag"
7614                          || test ! -s conftest.err'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; } &&
7620          { ac_try='test -s conftest$ac_exeext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   ac_cv_func_shl_load=yes
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_cv_func_shl_load=no
7632 fi
7633 rm -f conftest.err conftest.$ac_objext \
7634       conftest$ac_exeext conftest.$ac_ext
7635 fi
7636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7638 if test $ac_cv_func_shl_load = yes; then
7639
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_SHL_LOAD 1
7642 _ACEOF
7643
7644 else
7645   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7646 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7647 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   ac_check_lib_save_LIBS=$LIBS
7651 LIBS="-ldld  $LIBS"
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658
7659 /* Override any gcc2 internal prototype to avoid an error.  */
7660 #ifdef __cplusplus
7661 extern "C"
7662 #endif
7663 /* We use char because int might match the return type of a gcc2
7664    builtin and then its argument prototype would still apply.  */
7665 char shl_load ();
7666 int
7667 main ()
7668 {
7669 shl_load ();
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676   (eval $ac_link) 2>conftest.er1
7677   ac_status=$?
7678   grep -v '^ *+' conftest.er1 >conftest.err
7679   rm -f conftest.er1
7680   cat conftest.err >&5
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } &&
7683          { ac_try='test -z "$ac_c_werror_flag"
7684                          || test ! -s conftest.err'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; } &&
7690          { ac_try='test -s conftest$ac_exeext'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   ac_cv_lib_dld_shl_load=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_cv_lib_dld_shl_load=no
7702 fi
7703 rm -f conftest.err conftest.$ac_objext \
7704       conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7706 fi
7707 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7708 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7709 if test $ac_cv_lib_dld_shl_load = yes; then
7710
7711 cat >>confdefs.h <<\_ACEOF
7712 #define HAVE_SHL_LOAD 1
7713 _ACEOF
7714
7715         LIBADD_DL="$LIBADD_DL -ldld"
7716 else
7717   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   ac_check_lib_save_LIBS=$LIBS
7723 LIBS="-ldl  $LIBS"
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h.  */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h.  */
7730
7731 /* Override any gcc2 internal prototype to avoid an error.  */
7732 #ifdef __cplusplus
7733 extern "C"
7734 #endif
7735 /* We use char because int might match the return type of a gcc2
7736    builtin and then its argument prototype would still apply.  */
7737 char dlopen ();
7738 int
7739 main ()
7740 {
7741 dlopen ();
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748   (eval $ac_link) 2>conftest.er1
7749   ac_status=$?
7750   grep -v '^ *+' conftest.er1 >conftest.err
7751   rm -f conftest.er1
7752   cat conftest.err >&5
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } &&
7755          { ac_try='test -z "$ac_c_werror_flag"
7756                          || test ! -s conftest.err'
7757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758   (eval $ac_try) 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); }; } &&
7762          { ac_try='test -s conftest$ac_exeext'
7763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764   (eval $ac_try) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; }; then
7768   ac_cv_lib_dl_dlopen=yes
7769 else
7770   echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773 ac_cv_lib_dl_dlopen=no
7774 fi
7775 rm -f conftest.err conftest.$ac_objext \
7776       conftest$ac_exeext conftest.$ac_ext
7777 LIBS=$ac_check_lib_save_LIBS
7778 fi
7779 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7780 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7781 if test $ac_cv_lib_dl_dlopen = yes; then
7782
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LIBDL 1
7785 _ACEOF
7786
7787                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7788 else
7789   cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 #if HAVE_DLFCN_H
7796 #  include <dlfcn.h>
7797 #endif
7798
7799 int
7800 main ()
7801 {
7802 dlopen(0, 0);
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809   (eval $ac_link) 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } &&
7816          { ac_try='test -z "$ac_c_werror_flag"
7817                          || test ! -s conftest.err'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; } &&
7823          { ac_try='test -s conftest$ac_exeext'
7824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825   (eval $ac_try) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); }; }; then
7829
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_LIBDL 1
7832 _ACEOF
7833  libltdl_cv_func_dlopen="yes"
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7839 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7840 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lsvld  $LIBS"
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851
7852 /* Override any gcc2 internal prototype to avoid an error.  */
7853 #ifdef __cplusplus
7854 extern "C"
7855 #endif
7856 /* We use char because int might match the return type of a gcc2
7857    builtin and then its argument prototype would still apply.  */
7858 char dlopen ();
7859 int
7860 main ()
7861 {
7862 dlopen ();
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869   (eval $ac_link) 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } &&
7876          { ac_try='test -z "$ac_c_werror_flag"
7877                          || test ! -s conftest.err'
7878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879   (eval $ac_try) 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; } &&
7883          { ac_try='test -s conftest$ac_exeext'
7884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885   (eval $ac_try) 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); }; }; then
7889   ac_cv_lib_svld_dlopen=yes
7890 else
7891   echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_cv_lib_svld_dlopen=no
7895 fi
7896 rm -f conftest.err conftest.$ac_objext \
7897       conftest$ac_exeext conftest.$ac_ext
7898 LIBS=$ac_check_lib_save_LIBS
7899 fi
7900 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7901 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7902 if test $ac_cv_lib_svld_dlopen = yes; then
7903
7904 cat >>confdefs.h <<\_ACEOF
7905 #define HAVE_LIBDL 1
7906 _ACEOF
7907
7908                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7909 else
7910   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7911 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   ac_check_lib_save_LIBS=$LIBS
7916 LIBS="-ldld  $LIBS"
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h.  */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h.  */
7923
7924 /* Override any gcc2 internal prototype to avoid an error.  */
7925 #ifdef __cplusplus
7926 extern "C"
7927 #endif
7928 /* We use char because int might match the return type of a gcc2
7929    builtin and then its argument prototype would still apply.  */
7930 char dld_link ();
7931 int
7932 main ()
7933 {
7934 dld_link ();
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941   (eval $ac_link) 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } &&
7948          { ac_try='test -z "$ac_c_werror_flag"
7949                          || test ! -s conftest.err'
7950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951   (eval $ac_try) 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); }; } &&
7955          { ac_try='test -s conftest$ac_exeext'
7956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957   (eval $ac_try) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; }; then
7961   ac_cv_lib_dld_dld_link=yes
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 ac_cv_lib_dld_dld_link=no
7967 fi
7968 rm -f conftest.err conftest.$ac_objext \
7969       conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7971 fi
7972 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7973 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7974 if test $ac_cv_lib_dld_dld_link = yes; then
7975
7976 cat >>confdefs.h <<\_ACEOF
7977 #define HAVE_DLD 1
7978 _ACEOF
7979
7980                 LIBADD_DL="$LIBADD_DL -ldld"
7981 else
7982   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7983 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7984 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7995 #define _dyld_func_lookup innocuous__dyld_func_lookup
7996
7997 /* System header to define __stub macros and hopefully few prototypes,
7998     which can conflict with char _dyld_func_lookup (); below.
7999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8000     <limits.h> exists even on freestanding compilers.  */
8001
8002 #ifdef __STDC__
8003 # include <limits.h>
8004 #else
8005 # include <assert.h>
8006 #endif
8007
8008 #undef _dyld_func_lookup
8009
8010 /* Override any gcc2 internal prototype to avoid an error.  */
8011 #ifdef __cplusplus
8012 extern "C"
8013 {
8014 #endif
8015 /* We use char because int might match the return type of a gcc2
8016    builtin and then its argument prototype would still apply.  */
8017 char _dyld_func_lookup ();
8018 /* The GNU C library defines this for functions which it implements
8019     to always fail with ENOSYS.  Some functions are actually named
8020     something starting with __ and the normal name is an alias.  */
8021 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8022 choke me
8023 #else
8024 char (*f) () = _dyld_func_lookup;
8025 #endif
8026 #ifdef __cplusplus
8027 }
8028 #endif
8029
8030 int
8031 main ()
8032 {
8033 return f != _dyld_func_lookup;
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040   (eval $ac_link) 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } &&
8047          { ac_try='test -z "$ac_c_werror_flag"
8048                          || test ! -s conftest.err'
8049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050   (eval $ac_try) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; } &&
8054          { ac_try='test -s conftest$ac_exeext'
8055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056   (eval $ac_try) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   ac_cv_func__dyld_func_lookup=yes
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 ac_cv_func__dyld_func_lookup=no
8066 fi
8067 rm -f conftest.err conftest.$ac_objext \
8068       conftest$ac_exeext conftest.$ac_ext
8069 fi
8070 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8071 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8072 if test $ac_cv_func__dyld_func_lookup = yes; then
8073
8074 cat >>confdefs.h <<\_ACEOF
8075 #define HAVE_DYLD 1
8076 _ACEOF
8077
8078 fi
8079
8080
8081 fi
8082
8083
8084 fi
8085
8086
8087 fi
8088 rm -f conftest.err conftest.$ac_objext \
8089       conftest$ac_exeext conftest.$ac_ext
8090
8091 fi
8092
8093
8094 fi
8095
8096
8097 fi
8098
8099
8100 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8101 then
8102   lt_save_LIBS="$LIBS"
8103   LIBS="$LIBS $LIBADD_DL"
8104
8105 for ac_func in dlerror
8106 do
8107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8108 echo "$as_me:$LINENO: checking for $ac_func" >&5
8109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_var+set}\" = set"; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8121 #define $ac_func innocuous_$ac_func
8122
8123 /* System header to define __stub macros and hopefully few prototypes,
8124     which can conflict with char $ac_func (); below.
8125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126     <limits.h> exists even on freestanding compilers.  */
8127
8128 #ifdef __STDC__
8129 # include <limits.h>
8130 #else
8131 # include <assert.h>
8132 #endif
8133
8134 #undef $ac_func
8135
8136 /* Override any gcc2 internal prototype to avoid an error.  */
8137 #ifdef __cplusplus
8138 extern "C"
8139 {
8140 #endif
8141 /* We use char because int might match the return type of a gcc2
8142    builtin and then its argument prototype would still apply.  */
8143 char $ac_func ();
8144 /* The GNU C library defines this for functions which it implements
8145     to always fail with ENOSYS.  Some functions are actually named
8146     something starting with __ and the normal name is an alias.  */
8147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8148 choke me
8149 #else
8150 char (*f) () = $ac_func;
8151 #endif
8152 #ifdef __cplusplus
8153 }
8154 #endif
8155
8156 int
8157 main ()
8158 {
8159 return f != $ac_func;
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166   (eval $ac_link) 2>conftest.er1
8167   ac_status=$?
8168   grep -v '^ *+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } &&
8173          { ac_try='test -z "$ac_c_werror_flag"
8174                          || test ! -s conftest.err'
8175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176   (eval $ac_try) 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); }; } &&
8180          { ac_try='test -s conftest$ac_exeext'
8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182   (eval $ac_try) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   eval "$as_ac_var=yes"
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 eval "$as_ac_var=no"
8192 fi
8193 rm -f conftest.err conftest.$ac_objext \
8194       conftest$ac_exeext conftest.$ac_ext
8195 fi
8196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8198 if test `eval echo '${'$as_ac_var'}'` = yes; then
8199   cat >>confdefs.h <<_ACEOF
8200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8201 _ACEOF
8202
8203 fi
8204 done
8205
8206   LIBS="$lt_save_LIBS"
8207 fi
8208 ac_ext=c
8209 ac_cpp='$CPP $CPPFLAGS'
8210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8213
8214
8215
8216 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8217 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8218 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   ac_cv_sys_symbol_underscore=no
8222   cat > conftest.$ac_ext <<EOF
8223 void nm_test_func(){}
8224 int main(){nm_test_func;return 0;}
8225 EOF
8226   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8227   (eval $ac_compile) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; then
8231     # Now try to grab the symbols.
8232     ac_nlist=conftest.nm
8233     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8234   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } && test -s "$ac_nlist"; then
8238       # See whether the symbols have a leading underscore.
8239       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8240         ac_cv_sys_symbol_underscore=yes
8241       else
8242         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8243           :
8244         else
8245           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8246         fi
8247       fi
8248     else
8249       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8250     fi
8251   else
8252     echo "configure: failed program was:" >&5
8253     cat conftest.c >&5
8254   fi
8255   rm -rf conftest*
8256
8257 fi
8258 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8259 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8260
8261
8262 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8263   if test x"$libltdl_cv_func_dlopen" = xyes ||
8264      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8265         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8266 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8267 if test "${libltdl_cv_need_uscore+set}" = set; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   libltdl_cv_need_uscore=unknown
8271           save_LIBS="$LIBS"
8272           LIBS="$LIBS $LIBADD_DL"
8273           if test "$cross_compiling" = yes; then :
8274   libltdl_cv_need_uscore=cross
8275 else
8276   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8277   lt_status=$lt_dlunknown
8278   cat > conftest.$ac_ext <<EOF
8279 #line 8279 "configure"
8280 #include "confdefs.h"
8281
8282 #if HAVE_DLFCN_H
8283 #include <dlfcn.h>
8284 #endif
8285
8286 #include <stdio.h>
8287
8288 #ifdef RTLD_GLOBAL
8289 #  define LT_DLGLOBAL           RTLD_GLOBAL
8290 #else
8291 #  ifdef DL_GLOBAL
8292 #    define LT_DLGLOBAL         DL_GLOBAL
8293 #  else
8294 #    define LT_DLGLOBAL         0
8295 #  endif
8296 #endif
8297
8298 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8299    find out it does not work in some platform. */
8300 #ifndef LT_DLLAZY_OR_NOW
8301 #  ifdef RTLD_LAZY
8302 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8303 #  else
8304 #    ifdef DL_LAZY
8305 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8306 #    else
8307 #      ifdef RTLD_NOW
8308 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8309 #      else
8310 #        ifdef DL_NOW
8311 #          define LT_DLLAZY_OR_NOW      DL_NOW
8312 #        else
8313 #          define LT_DLLAZY_OR_NOW      0
8314 #        endif
8315 #      endif
8316 #    endif
8317 #  endif
8318 #endif
8319
8320 #ifdef __cplusplus
8321 extern "C" void exit (int);
8322 #endif
8323
8324 void fnord() { int i=42;}
8325 int main ()
8326 {
8327   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8328   int status = $lt_dlunknown;
8329
8330   if (self)
8331     {
8332       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8333       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8334       /* dlclose (self); */
8335     }
8336
8337     exit (status);
8338 }
8339 EOF
8340   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341   (eval $ac_link) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8345     (./conftest; exit; ) 2>/dev/null
8346     lt_status=$?
8347     case x$lt_status in
8348       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8349       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8350       x$lt_unknown|x*)  ;;
8351     esac
8352   else :
8353     # compilation failed
8354
8355   fi
8356 fi
8357 rm -fr conftest*
8358
8359           LIBS="$save_LIBS"
8360
8361 fi
8362 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8363 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8364   fi
8365 fi
8366
8367 if test x"$libltdl_cv_need_uscore" = xyes; then
8368
8369 cat >>confdefs.h <<\_ACEOF
8370 #define NEED_USCORE 1
8371 _ACEOF
8372
8373 fi
8374
8375
8376 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8377 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8378 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   # PORTME does your system automatically load deplibs for dlopen?
8382   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8383   # For now, we just catch OSes we know something about -- in the
8384   # future, we'll try test this programmatically.
8385   libltdl_cv_sys_dlopen_deplibs=unknown
8386   case "$host_os" in
8387   aix3*|aix4.1.*|aix4.2.*)
8388     # Unknown whether this is true for these versions of AIX, but
8389     # we want this `case' here to explicitly catch those versions.
8390     libltdl_cv_sys_dlopen_deplibs=unknown
8391     ;;
8392   aix[45]*)
8393     libltdl_cv_sys_dlopen_deplibs=yes
8394     ;;
8395   darwin*)
8396     # Assuming the user has installed a libdl from somewhere, this is true
8397     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8398     libltdl_cv_sys_dlopen_deplibs=yes
8399     ;;
8400   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8401     # GNU and its variants, using gnu ld.so (Glibc)
8402     libltdl_cv_sys_dlopen_deplibs=yes
8403     ;;
8404   hpux10*|hpux11*)
8405     libltdl_cv_sys_dlopen_deplibs=yes
8406     ;;
8407   irix[12345]*|irix6.[01]*)
8408     # Catch all versions of IRIX before 6.2, and indicate that we don't
8409     # know how it worked for any of those versions.
8410     libltdl_cv_sys_dlopen_deplibs=unknown
8411     ;;
8412   irix*)
8413     # The case above catches anything before 6.2, and it's known that
8414     # at 6.2 and later dlopen does load deplibs.
8415     libltdl_cv_sys_dlopen_deplibs=yes
8416     ;;
8417   netbsd*)
8418     libltdl_cv_sys_dlopen_deplibs=yes
8419     ;;
8420   openbsd*)
8421     libltdl_cv_sys_dlopen_deplibs=yes
8422     ;;
8423   osf[1234]*)
8424     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8425     # it did *not* use an RPATH in a shared library to find objects the
8426     # library depends on, so we explictly say `no'.
8427     libltdl_cv_sys_dlopen_deplibs=no
8428     ;;
8429   osf5.0|osf5.0a|osf5.1)
8430     # dlopen *does* load deplibs and with the right loader patch applied
8431     # it even uses RPATH in a shared library to search for shared objects
8432     # that the library depends on, but there's no easy way to know if that
8433     # patch is installed.  Since this is the case, all we can really
8434     # say is unknown -- it depends on the patch being installed.  If
8435     # it is, this changes to `yes'.  Without it, it would be `no'.
8436     libltdl_cv_sys_dlopen_deplibs=unknown
8437     ;;
8438   osf*)
8439     # the two cases above should catch all versions of osf <= 5.1.  Read
8440     # the comments above for what we know about them.
8441     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8442     # is used to find them so we can finally say `yes'.
8443     libltdl_cv_sys_dlopen_deplibs=yes
8444     ;;
8445   solaris*)
8446     libltdl_cv_sys_dlopen_deplibs=yes
8447     ;;
8448   esac
8449
8450 fi
8451 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8452 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8453 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8454
8455 cat >>confdefs.h <<\_ACEOF
8456 #define LTDL_DLOPEN_DEPLIBS 1
8457 _ACEOF
8458
8459 fi
8460
8461
8462 for ac_header in argz.h
8463 do
8464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8466   echo "$as_me:$LINENO: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 fi
8471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8473 else
8474   # Is the header compilable?
8475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h.  */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h.  */
8483 $ac_includes_default
8484 #include <$ac_header>
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488   (eval $ac_compile) 2>conftest.er1
8489   ac_status=$?
8490   grep -v '^ *+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -z "$ac_c_werror_flag"
8496                          || test ! -s conftest.err'
8497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498   (eval $ac_try) 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; } &&
8502          { ac_try='test -s conftest.$ac_objext'
8503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504   (eval $ac_try) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); }; }; then
8508   ac_header_compiler=yes
8509 else
8510   echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513 ac_header_compiler=no
8514 fi
8515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8517 echo "${ECHO_T}$ac_header_compiler" >&6
8518
8519 # Is the header present?
8520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528 #include <$ac_header>
8529 _ACEOF
8530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } >/dev/null; then
8538   if test -s conftest.err; then
8539     ac_cpp_err=$ac_c_preproc_warn_flag
8540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8541   else
8542     ac_cpp_err=
8543   fi
8544 else
8545   ac_cpp_err=yes
8546 fi
8547 if test -z "$ac_cpp_err"; then
8548   ac_header_preproc=yes
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553   ac_header_preproc=no
8554 fi
8555 rm -f conftest.err conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8557 echo "${ECHO_T}$ac_header_preproc" >&6
8558
8559 # So?  What about this header?
8560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8561   yes:no: )
8562     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8566     ac_header_preproc=yes
8567     ;;
8568   no:yes:* )
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8572 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8575     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8576 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8581     (
8582       cat <<\_ASBOX
8583 ## ----------------------------------- ##
8584 ## Report this to llvmbugs@cs.uiuc.edu ##
8585 ## ----------------------------------- ##
8586 _ASBOX
8587     ) |
8588       sed "s/^/$as_me: WARNING:     /" >&2
8589     ;;
8590 esac
8591 echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   eval "$as_ac_Header=\$ac_header_preproc"
8597 fi
8598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8600
8601 fi
8602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603   cat >>confdefs.h <<_ACEOF
8604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605 _ACEOF
8606
8607 fi
8608
8609 done
8610
8611
8612 echo "$as_me:$LINENO: checking for error_t" >&5
8613 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8614 if test "${ac_cv_type_error_t+set}" = set; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h.  */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h.  */
8623 #if HAVE_ARGZ_H
8624 #  include <argz.h>
8625 #endif
8626
8627 int
8628 main ()
8629 {
8630 if ((error_t *) 0)
8631   return 0;
8632 if (sizeof (error_t))
8633   return 0;
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640   (eval $ac_compile) 2>conftest.er1
8641   ac_status=$?
8642   grep -v '^ *+' conftest.er1 >conftest.err
8643   rm -f conftest.er1
8644   cat conftest.err >&5
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); } &&
8647          { ac_try='test -z "$ac_c_werror_flag"
8648                          || test ! -s conftest.err'
8649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650   (eval $ac_try) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); }; } &&
8654          { ac_try='test -s conftest.$ac_objext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_type_error_t=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_cv_type_error_t=no
8666 fi
8667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8670 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8671 if test $ac_cv_type_error_t = yes; then
8672
8673 cat >>confdefs.h <<_ACEOF
8674 #define HAVE_ERROR_T 1
8675 _ACEOF
8676
8677
8678 else
8679
8680 cat >>confdefs.h <<\_ACEOF
8681 #define error_t int
8682 _ACEOF
8683
8684 fi
8685
8686
8687
8688
8689
8690
8691
8692 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8693 do
8694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8695 echo "$as_me:$LINENO: checking for $ac_func" >&5
8696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8697 if eval "test \"\${$as_ac_var+set}\" = set"; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8708 #define $ac_func innocuous_$ac_func
8709
8710 /* System header to define __stub macros and hopefully few prototypes,
8711     which can conflict with char $ac_func (); below.
8712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713     <limits.h> exists even on freestanding compilers.  */
8714
8715 #ifdef __STDC__
8716 # include <limits.h>
8717 #else
8718 # include <assert.h>
8719 #endif
8720
8721 #undef $ac_func
8722
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 #ifdef __cplusplus
8725 extern "C"
8726 {
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729    builtin and then its argument prototype would still apply.  */
8730 char $ac_func ();
8731 /* The GNU C library defines this for functions which it implements
8732     to always fail with ENOSYS.  Some functions are actually named
8733     something starting with __ and the normal name is an alias.  */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735 choke me
8736 #else
8737 char (*f) () = $ac_func;
8738 #endif
8739 #ifdef __cplusplus
8740 }
8741 #endif
8742
8743 int
8744 main ()
8745 {
8746 return f != $ac_func;
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753   (eval $ac_link) 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -z "$ac_c_werror_flag"
8761                          || test ! -s conftest.err'
8762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763   (eval $ac_try) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; } &&
8767          { ac_try='test -s conftest$ac_exeext'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; }; then
8773   eval "$as_ac_var=yes"
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778 eval "$as_ac_var=no"
8779 fi
8780 rm -f conftest.err conftest.$ac_objext \
8781       conftest$ac_exeext conftest.$ac_ext
8782 fi
8783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8785 if test `eval echo '${'$as_ac_var'}'` = yes; then
8786   cat >>confdefs.h <<_ACEOF
8787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8788 _ACEOF
8789
8790 fi
8791 done
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8821                   stdio.h unistd.h
8822 do
8823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825   echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 fi
8830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8832 else
8833   # Is the header compilable?
8834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842 $ac_includes_default
8843 #include <$ac_header>
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847   (eval $ac_compile) 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } &&
8854          { ac_try='test -z "$ac_c_werror_flag"
8855                          || test ! -s conftest.err'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; } &&
8861          { ac_try='test -s conftest.$ac_objext'
8862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863   (eval $ac_try) 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; }; then
8867   ac_header_compiler=yes
8868 else
8869   echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872 ac_header_compiler=no
8873 fi
8874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876 echo "${ECHO_T}$ac_header_compiler" >&6
8877
8878 # Is the header present?
8879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 #include <$ac_header>
8888 _ACEOF
8889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8891   ac_status=$?
8892   grep -v '^ *+' conftest.er1 >conftest.err
8893   rm -f conftest.er1
8894   cat conftest.err >&5
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } >/dev/null; then
8897   if test -s conftest.err; then
8898     ac_cpp_err=$ac_c_preproc_warn_flag
8899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8900   else
8901     ac_cpp_err=
8902   fi
8903 else
8904   ac_cpp_err=yes
8905 fi
8906 if test -z "$ac_cpp_err"; then
8907   ac_header_preproc=yes
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912   ac_header_preproc=no
8913 fi
8914 rm -f conftest.err conftest.$ac_ext
8915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8916 echo "${ECHO_T}$ac_header_preproc" >&6
8917
8918 # So?  What about this header?
8919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8920   yes:no: )
8921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8925     ac_header_preproc=yes
8926     ;;
8927   no:yes:* )
8928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8940     (
8941       cat <<\_ASBOX
8942 ## ----------------------------------- ##
8943 ## Report this to llvmbugs@cs.uiuc.edu ##
8944 ## ----------------------------------- ##
8945 _ASBOX
8946     ) |
8947       sed "s/^/$as_me: WARNING:     /" >&2
8948     ;;
8949 esac
8950 echo "$as_me:$LINENO: checking for $ac_header" >&5
8951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   eval "$as_ac_Header=\$ac_header_preproc"
8956 fi
8957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8959
8960 fi
8961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8962   cat >>confdefs.h <<_ACEOF
8963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8964 _ACEOF
8965
8966 fi
8967
8968 done
8969
8970
8971
8972
8973
8974 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8975 do
8976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8978   echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 fi
8983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8985 else
8986   # Is the header compilable?
8987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995 $ac_includes_default
8996 #include <$ac_header>
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000   (eval $ac_compile) 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -z "$ac_c_werror_flag"
9008                          || test ! -s conftest.err'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; } &&
9014          { ac_try='test -s conftest.$ac_objext'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; }; then
9020   ac_header_compiler=yes
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 ac_header_compiler=no
9026 fi
9027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9029 echo "${ECHO_T}$ac_header_compiler" >&6
9030
9031 # Is the header present?
9032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040 #include <$ac_header>
9041 _ACEOF
9042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } >/dev/null; then
9050   if test -s conftest.err; then
9051     ac_cpp_err=$ac_c_preproc_warn_flag
9052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9053   else
9054     ac_cpp_err=
9055   fi
9056 else
9057   ac_cpp_err=yes
9058 fi
9059 if test -z "$ac_cpp_err"; then
9060   ac_header_preproc=yes
9061 else
9062   echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9064
9065   ac_header_preproc=no
9066 fi
9067 rm -f conftest.err conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9069 echo "${ECHO_T}$ac_header_preproc" >&6
9070
9071 # So?  What about this header?
9072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9073   yes:no: )
9074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9078     ac_header_preproc=yes
9079     ;;
9080   no:yes:* )
9081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9093     (
9094       cat <<\_ASBOX
9095 ## ----------------------------------- ##
9096 ## Report this to llvmbugs@cs.uiuc.edu ##
9097 ## ----------------------------------- ##
9098 _ASBOX
9099     ) |
9100       sed "s/^/$as_me: WARNING:     /" >&2
9101     ;;
9102 esac
9103 echo "$as_me:$LINENO: checking for $ac_header" >&5
9104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   eval "$as_ac_Header=\$ac_header_preproc"
9109 fi
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9112
9113 fi
9114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9115   cat >>confdefs.h <<_ACEOF
9116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9117 _ACEOF
9118
9119 fi
9120
9121 done
9122
9123
9124
9125 for ac_header in string.h strings.h
9126 do
9127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129   echo "$as_me:$LINENO: checking for $ac_header" >&5
9130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 fi
9134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9136 else
9137   # Is the header compilable?
9138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146 $ac_includes_default
9147 #include <$ac_header>
9148 _ACEOF
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151   (eval $ac_compile) 2>conftest.er1
9152   ac_status=$?
9153   grep -v '^ *+' conftest.er1 >conftest.err
9154   rm -f conftest.er1
9155   cat conftest.err >&5
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); } &&
9158          { ac_try='test -z "$ac_c_werror_flag"
9159                          || test ! -s conftest.err'
9160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161   (eval $ac_try) 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); }; } &&
9165          { ac_try='test -s conftest.$ac_objext'
9166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167   (eval $ac_try) 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; }; then
9171   ac_header_compiler=yes
9172 else
9173   echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176 ac_header_compiler=no
9177 fi
9178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9180 echo "${ECHO_T}$ac_header_compiler" >&6
9181
9182 # Is the header present?
9183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191 #include <$ac_header>
9192 _ACEOF
9193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9195   ac_status=$?
9196   grep -v '^ *+' conftest.er1 >conftest.err
9197   rm -f conftest.er1
9198   cat conftest.err >&5
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } >/dev/null; then
9201   if test -s conftest.err; then
9202     ac_cpp_err=$ac_c_preproc_warn_flag
9203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9204   else
9205     ac_cpp_err=
9206   fi
9207 else
9208   ac_cpp_err=yes
9209 fi
9210 if test -z "$ac_cpp_err"; then
9211   ac_header_preproc=yes
9212 else
9213   echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216   ac_header_preproc=no
9217 fi
9218 rm -f conftest.err conftest.$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9220 echo "${ECHO_T}$ac_header_preproc" >&6
9221
9222 # So?  What about this header?
9223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9224   yes:no: )
9225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9229     ac_header_preproc=yes
9230     ;;
9231   no:yes:* )
9232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9244     (
9245       cat <<\_ASBOX
9246 ## ----------------------------------- ##
9247 ## Report this to llvmbugs@cs.uiuc.edu ##
9248 ## ----------------------------------- ##
9249 _ASBOX
9250     ) |
9251       sed "s/^/$as_me: WARNING:     /" >&2
9252     ;;
9253 esac
9254 echo "$as_me:$LINENO: checking for $ac_header" >&5
9255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   eval "$as_ac_Header=\$ac_header_preproc"
9260 fi
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9263
9264 fi
9265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9266   cat >>confdefs.h <<_ACEOF
9267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9268 _ACEOF
9269  break
9270 fi
9271
9272 done
9273
9274
9275
9276
9277 for ac_func in strchr index
9278 do
9279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9280 echo "$as_me:$LINENO: checking for $ac_func" >&5
9281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9282 if eval "test \"\${$as_ac_var+set}\" = set"; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9293 #define $ac_func innocuous_$ac_func
9294
9295 /* System header to define __stub macros and hopefully few prototypes,
9296     which can conflict with char $ac_func (); below.
9297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298     <limits.h> exists even on freestanding compilers.  */
9299
9300 #ifdef __STDC__
9301 # include <limits.h>
9302 #else
9303 # include <assert.h>
9304 #endif
9305
9306 #undef $ac_func
9307
9308 /* Override any gcc2 internal prototype to avoid an error.  */
9309 #ifdef __cplusplus
9310 extern "C"
9311 {
9312 #endif
9313 /* We use char because int might match the return type of a gcc2
9314    builtin and then its argument prototype would still apply.  */
9315 char $ac_func ();
9316 /* The GNU C library defines this for functions which it implements
9317     to always fail with ENOSYS.  Some functions are actually named
9318     something starting with __ and the normal name is an alias.  */
9319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9320 choke me
9321 #else
9322 char (*f) () = $ac_func;
9323 #endif
9324 #ifdef __cplusplus
9325 }
9326 #endif
9327
9328 int
9329 main ()
9330 {
9331 return f != $ac_func;
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338   (eval $ac_link) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -z "$ac_c_werror_flag"
9346                          || test ! -s conftest.err'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; } &&
9352          { ac_try='test -s conftest$ac_exeext'
9353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354   (eval $ac_try) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; }; then
9358   eval "$as_ac_var=yes"
9359 else
9360   echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 eval "$as_ac_var=no"
9364 fi
9365 rm -f conftest.err conftest.$ac_objext \
9366       conftest$ac_exeext conftest.$ac_ext
9367 fi
9368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9370 if test `eval echo '${'$as_ac_var'}'` = yes; then
9371   cat >>confdefs.h <<_ACEOF
9372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9373 _ACEOF
9374  break
9375 fi
9376 done
9377
9378
9379
9380 for ac_func in strrchr rindex
9381 do
9382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9383 echo "$as_me:$LINENO: checking for $ac_func" >&5
9384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9385 if eval "test \"\${$as_ac_var+set}\" = set"; then
9386   echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388   cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9396 #define $ac_func innocuous_$ac_func
9397
9398 /* System header to define __stub macros and hopefully few prototypes,
9399     which can conflict with char $ac_func (); below.
9400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9401     <limits.h> exists even on freestanding compilers.  */
9402
9403 #ifdef __STDC__
9404 # include <limits.h>
9405 #else
9406 # include <assert.h>
9407 #endif
9408
9409 #undef $ac_func
9410
9411 /* Override any gcc2 internal prototype to avoid an error.  */
9412 #ifdef __cplusplus
9413 extern "C"
9414 {
9415 #endif
9416 /* We use char because int might match the return type of a gcc2
9417    builtin and then its argument prototype would still apply.  */
9418 char $ac_func ();
9419 /* The GNU C library defines this for functions which it implements
9420     to always fail with ENOSYS.  Some functions are actually named
9421     something starting with __ and the normal name is an alias.  */
9422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9423 choke me
9424 #else
9425 char (*f) () = $ac_func;
9426 #endif
9427 #ifdef __cplusplus
9428 }
9429 #endif
9430
9431 int
9432 main ()
9433 {
9434 return f != $ac_func;
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441   (eval $ac_link) 2>conftest.er1
9442   ac_status=$?
9443   grep -v '^ *+' conftest.er1 >conftest.err
9444   rm -f conftest.er1
9445   cat conftest.err >&5
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); } &&
9448          { ac_try='test -z "$ac_c_werror_flag"
9449                          || test ! -s conftest.err'
9450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451   (eval $ac_try) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); }; } &&
9455          { ac_try='test -s conftest$ac_exeext'
9456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457   (eval $ac_try) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }; }; then
9461   eval "$as_ac_var=yes"
9462 else
9463   echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466 eval "$as_ac_var=no"
9467 fi
9468 rm -f conftest.err conftest.$ac_objext \
9469       conftest$ac_exeext conftest.$ac_ext
9470 fi
9471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9473 if test `eval echo '${'$as_ac_var'}'` = yes; then
9474   cat >>confdefs.h <<_ACEOF
9475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9476 _ACEOF
9477  break
9478 fi
9479 done
9480
9481
9482
9483 for ac_func in memcpy bcopy
9484 do
9485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486 echo "$as_me:$LINENO: checking for $ac_func" >&5
9487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_var+set}\" = set"; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h.  */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h.  */
9497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9499 #define $ac_func innocuous_$ac_func
9500
9501 /* System header to define __stub macros and hopefully few prototypes,
9502     which can conflict with char $ac_func (); below.
9503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504     <limits.h> exists even on freestanding compilers.  */
9505
9506 #ifdef __STDC__
9507 # include <limits.h>
9508 #else
9509 # include <assert.h>
9510 #endif
9511
9512 #undef $ac_func
9513
9514 /* Override any gcc2 internal prototype to avoid an error.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 {
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520    builtin and then its argument prototype would still apply.  */
9521 char $ac_func ();
9522 /* The GNU C library defines this for functions which it implements
9523     to always fail with ENOSYS.  Some functions are actually named
9524     something starting with __ and the normal name is an alias.  */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9526 choke me
9527 #else
9528 char (*f) () = $ac_func;
9529 #endif
9530 #ifdef __cplusplus
9531 }
9532 #endif
9533
9534 int
9535 main ()
9536 {
9537 return f != $ac_func;
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544   (eval $ac_link) 2>conftest.er1
9545   ac_status=$?
9546   grep -v '^ *+' conftest.er1 >conftest.err
9547   rm -f conftest.er1
9548   cat conftest.err >&5
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -z "$ac_c_werror_flag"
9552                          || test ! -s conftest.err'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; } &&
9558          { ac_try='test -s conftest$ac_exeext'
9559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560   (eval $ac_try) 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); }; }; then
9564   eval "$as_ac_var=yes"
9565 else
9566   echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 eval "$as_ac_var=no"
9570 fi
9571 rm -f conftest.err conftest.$ac_objext \
9572       conftest$ac_exeext conftest.$ac_ext
9573 fi
9574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9576 if test `eval echo '${'$as_ac_var'}'` = yes; then
9577   cat >>confdefs.h <<_ACEOF
9578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9579 _ACEOF
9580  break
9581 fi
9582 done
9583
9584
9585
9586 for ac_func in memmove strcmp
9587 do
9588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9589 echo "$as_me:$LINENO: checking for $ac_func" >&5
9590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_var+set}\" = set"; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594   cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9602 #define $ac_func innocuous_$ac_func
9603
9604 /* System header to define __stub macros and hopefully few prototypes,
9605     which can conflict with char $ac_func (); below.
9606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607     <limits.h> exists even on freestanding compilers.  */
9608
9609 #ifdef __STDC__
9610 # include <limits.h>
9611 #else
9612 # include <assert.h>
9613 #endif
9614
9615 #undef $ac_func
9616
9617 /* Override any gcc2 internal prototype to avoid an error.  */
9618 #ifdef __cplusplus
9619 extern "C"
9620 {
9621 #endif
9622 /* We use char because int might match the return type of a gcc2
9623    builtin and then its argument prototype would still apply.  */
9624 char $ac_func ();
9625 /* The GNU C library defines this for functions which it implements
9626     to always fail with ENOSYS.  Some functions are actually named
9627     something starting with __ and the normal name is an alias.  */
9628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9629 choke me
9630 #else
9631 char (*f) () = $ac_func;
9632 #endif
9633 #ifdef __cplusplus
9634 }
9635 #endif
9636
9637 int
9638 main ()
9639 {
9640 return f != $ac_func;
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647   (eval $ac_link) 2>conftest.er1
9648   ac_status=$?
9649   grep -v '^ *+' conftest.er1 >conftest.err
9650   rm -f conftest.er1
9651   cat conftest.err >&5
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } &&
9654          { ac_try='test -z "$ac_c_werror_flag"
9655                          || test ! -s conftest.err'
9656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657   (eval $ac_try) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   eval "$as_ac_var=yes"
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 eval "$as_ac_var=no"
9673 fi
9674 rm -f conftest.err conftest.$ac_objext \
9675       conftest$ac_exeext conftest.$ac_ext
9676 fi
9677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9679 if test `eval echo '${'$as_ac_var'}'` = yes; then
9680   cat >>confdefs.h <<_ACEOF
9681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9682 _ACEOF
9683
9684 fi
9685 done
9686
9687
9688
9689
9690 for ac_func in closedir opendir readdir
9691 do
9692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9693 echo "$as_me:$LINENO: checking for $ac_func" >&5
9694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9695 if eval "test \"\${$as_ac_var+set}\" = set"; then
9696   echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698   cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9706 #define $ac_func innocuous_$ac_func
9707
9708 /* System header to define __stub macros and hopefully few prototypes,
9709     which can conflict with char $ac_func (); below.
9710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9711     <limits.h> exists even on freestanding compilers.  */
9712
9713 #ifdef __STDC__
9714 # include <limits.h>
9715 #else
9716 # include <assert.h>
9717 #endif
9718
9719 #undef $ac_func
9720
9721 /* Override any gcc2 internal prototype to avoid an error.  */
9722 #ifdef __cplusplus
9723 extern "C"
9724 {
9725 #endif
9726 /* We use char because int might match the return type of a gcc2
9727    builtin and then its argument prototype would still apply.  */
9728 char $ac_func ();
9729 /* The GNU C library defines this for functions which it implements
9730     to always fail with ENOSYS.  Some functions are actually named
9731     something starting with __ and the normal name is an alias.  */
9732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9733 choke me
9734 #else
9735 char (*f) () = $ac_func;
9736 #endif
9737 #ifdef __cplusplus
9738 }
9739 #endif
9740
9741 int
9742 main ()
9743 {
9744 return f != $ac_func;
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9751   (eval $ac_link) 2>conftest.er1
9752   ac_status=$?
9753   grep -v '^ *+' conftest.er1 >conftest.err
9754   rm -f conftest.er1
9755   cat conftest.err >&5
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } &&
9758          { ac_try='test -z "$ac_c_werror_flag"
9759                          || test ! -s conftest.err'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; } &&
9765          { ac_try='test -s conftest$ac_exeext'
9766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767   (eval $ac_try) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   eval "$as_ac_var=yes"
9772 else
9773   echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776 eval "$as_ac_var=no"
9777 fi
9778 rm -f conftest.err conftest.$ac_objext \
9779       conftest$ac_exeext conftest.$ac_ext
9780 fi
9781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9783 if test `eval echo '${'$as_ac_var'}'` = yes; then
9784   cat >>confdefs.h <<_ACEOF
9785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9786 _ACEOF
9787
9788 fi
9789 done
9790
9791
9792 # Check whether --enable-shared or --disable-shared was given.
9793 if test "${enable_shared+set}" = set; then
9794   enableval="$enable_shared"
9795   p=${PACKAGE-default}
9796     case $enableval in
9797     yes) enable_shared=yes ;;
9798     no) enable_shared=no ;;
9799     *)
9800       enable_shared=no
9801       # Look at the argument we got.  We use all the common list separators.
9802       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9803       for pkg in $enableval; do
9804         IFS="$lt_save_ifs"
9805         if test "X$pkg" = "X$p"; then
9806           enable_shared=yes
9807         fi
9808       done
9809       IFS="$lt_save_ifs"
9810       ;;
9811     esac
9812 else
9813   enable_shared=yes
9814 fi;
9815
9816 # Check whether --enable-static or --disable-static was given.
9817 if test "${enable_static+set}" = set; then
9818   enableval="$enable_static"
9819   p=${PACKAGE-default}
9820     case $enableval in
9821     yes) enable_static=yes ;;
9822     no) enable_static=no ;;
9823     *)
9824      enable_static=no
9825       # Look at the argument we got.  We use all the common list separators.
9826       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9827       for pkg in $enableval; do
9828         IFS="$lt_save_ifs"
9829         if test "X$pkg" = "X$p"; then
9830           enable_static=yes
9831         fi
9832       done
9833       IFS="$lt_save_ifs"
9834       ;;
9835     esac
9836 else
9837   enable_static=yes
9838 fi;
9839
9840 # Check whether --enable-fast-install or --disable-fast-install was given.
9841 if test "${enable_fast_install+set}" = set; then
9842   enableval="$enable_fast_install"
9843   p=${PACKAGE-default}
9844     case $enableval in
9845     yes) enable_fast_install=yes ;;
9846     no) enable_fast_install=no ;;
9847     *)
9848       enable_fast_install=no
9849       # Look at the argument we got.  We use all the common list separators.
9850       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9851       for pkg in $enableval; do
9852         IFS="$lt_save_ifs"
9853         if test "X$pkg" = "X$p"; then
9854           enable_fast_install=yes
9855         fi
9856       done
9857       IFS="$lt_save_ifs"
9858       ;;
9859     esac
9860 else
9861   enable_fast_install=yes
9862 fi;
9863
9864 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9865 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9866 if test "${lt_cv_path_SED+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   # Loop through the user's path and test for sed and gsed.
9870 # Then use that list of sed's as ones to test for truncation.
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874   IFS=$as_save_IFS
9875   test -z "$as_dir" && as_dir=.
9876   for lt_ac_prog in sed gsed; do
9877     for ac_exec_ext in '' $ac_executable_extensions; do
9878       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9879         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9880       fi
9881     done
9882   done
9883 done
9884 lt_ac_max=0
9885 lt_ac_count=0
9886 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9887 # along with /bin/sed that truncates output.
9888 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9889   test ! -f $lt_ac_sed && break
9890   cat /dev/null > conftest.in
9891   lt_ac_count=0
9892   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9893   # Check for GNU sed and select it if it is found.
9894   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9895     lt_cv_path_SED=$lt_ac_sed
9896     break
9897   fi
9898   while true; do
9899     cat conftest.in conftest.in >conftest.tmp
9900     mv conftest.tmp conftest.in
9901     cp conftest.in conftest.nl
9902     echo >>conftest.nl
9903     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9904     cmp -s conftest.out conftest.nl || break
9905     # 10000 chars as input seems more than enough
9906     test $lt_ac_count -gt 10 && break
9907     lt_ac_count=`expr $lt_ac_count + 1`
9908     if test $lt_ac_count -gt $lt_ac_max; then
9909       lt_ac_max=$lt_ac_count
9910       lt_cv_path_SED=$lt_ac_sed
9911     fi
9912   done
9913 done
9914
9915 fi
9916
9917 SED=$lt_cv_path_SED
9918 echo "$as_me:$LINENO: result: $SED" >&5
9919 echo "${ECHO_T}$SED" >&6
9920
9921
9922 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9923 if test "${with_gnu_ld+set}" = set; then
9924   withval="$with_gnu_ld"
9925   test "$withval" = no || with_gnu_ld=yes
9926 else
9927   with_gnu_ld=no
9928 fi;
9929 ac_prog=ld
9930 if test "$GCC" = yes; then
9931   # Check if gcc -print-prog-name=ld gives a path.
9932   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9933 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9934   case $host in
9935   *-*-mingw*)
9936     # gcc leaves a trailing carriage return which upsets mingw
9937     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9938   *)
9939     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9940   esac
9941   case $ac_prog in
9942     # Accept absolute paths.
9943     [\\/]* | ?:[\\/]*)
9944       re_direlt='/[^/][^/]*/\.\./'
9945       # Canonicalize the pathname of ld
9946       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9947       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9948         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9949       done
9950       test -z "$LD" && LD="$ac_prog"
9951       ;;
9952   "")
9953     # If it fails, then pretend we aren't using GCC.
9954     ac_prog=ld
9955     ;;
9956   *)
9957     # If it is relative, then search for the first ld in PATH.
9958     with_gnu_ld=unknown
9959     ;;
9960   esac
9961 elif test "$with_gnu_ld" = yes; then
9962   echo "$as_me:$LINENO: checking for GNU ld" >&5
9963 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9964 else
9965   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9966 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9967 fi
9968 if test "${lt_cv_path_LD+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   if test -z "$LD"; then
9972   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9973   for ac_dir in $PATH; do
9974     IFS="$lt_save_ifs"
9975     test -z "$ac_dir" && ac_dir=.
9976     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9977       lt_cv_path_LD="$ac_dir/$ac_prog"
9978       # Check to see if the program is GNU ld.  I'd rather use --version,
9979       # but apparently some GNU ld's only accept -v.
9980       # Break only if it was the GNU/non-GNU ld that we prefer.
9981       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9982       *GNU* | *'with BFD'*)
9983         test "$with_gnu_ld" != no && break
9984         ;;
9985       *)
9986         test "$with_gnu_ld" != yes && break
9987         ;;
9988       esac
9989     fi
9990   done
9991   IFS="$lt_save_ifs"
9992 else
9993   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9994 fi
9995 fi
9996
9997 LD="$lt_cv_path_LD"
9998 if test -n "$LD"; then
9999   echo "$as_me:$LINENO: result: $LD" >&5
10000 echo "${ECHO_T}$LD" >&6
10001 else
10002   echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10004 fi
10005 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10006 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10007    { (exit 1); exit 1; }; }
10008 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10009 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10010 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10014 case `$LD -v 2>&1 </dev/null` in
10015 *GNU* | *'with BFD'*)
10016   lt_cv_prog_gnu_ld=yes
10017   ;;
10018 *)
10019   lt_cv_prog_gnu_ld=no
10020   ;;
10021 esac
10022 fi
10023 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10024 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10025 with_gnu_ld=$lt_cv_prog_gnu_ld
10026
10027
10028 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10029 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10030 if test "${lt_cv_ld_reload_flag+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033   lt_cv_ld_reload_flag='-r'
10034 fi
10035 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10036 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10037 reload_flag=$lt_cv_ld_reload_flag
10038 case $reload_flag in
10039 "" | " "*) ;;
10040 *) reload_flag=" $reload_flag" ;;
10041 esac
10042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10043 case $host_os in
10044   darwin*)
10045     if test "$GCC" = yes; then
10046       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10047     else
10048       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10049     fi
10050     ;;
10051 esac
10052
10053 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10054 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10055 if test "${lt_cv_deplibs_check_method+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   lt_cv_file_magic_cmd='$MAGIC_CMD'
10059 lt_cv_file_magic_test_file=
10060 lt_cv_deplibs_check_method='unknown'
10061 # Need to set the preceding variable on all platforms that support
10062 # interlibrary dependencies.
10063 # 'none' -- dependencies not supported.
10064 # `unknown' -- same as none, but documents that we really don't know.
10065 # 'pass_all' -- all dependencies passed with no checks.
10066 # 'test_compile' -- check by making test program.
10067 # 'file_magic [[regex]]' -- check by looking for files in library path
10068 # which responds to the $file_magic_cmd with a given extended regex.
10069 # If you have `file' or equivalent on your system and you're not sure
10070 # whether `pass_all' will *always* work, you probably want this one.
10071
10072 case $host_os in
10073 aix4* | aix5*)
10074   lt_cv_deplibs_check_method=pass_all
10075   ;;
10076
10077 beos*)
10078   lt_cv_deplibs_check_method=pass_all
10079   ;;
10080
10081 bsdi[45]*)
10082   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10083   lt_cv_file_magic_cmd='/usr/bin/file -L'
10084   lt_cv_file_magic_test_file=/shlib/libc.so
10085   ;;
10086
10087 cygwin*)
10088   # func_win32_libid is a shell function defined in ltmain.sh
10089   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10090   lt_cv_file_magic_cmd='func_win32_libid'
10091   ;;
10092
10093 mingw* | pw32*)
10094   # Base MSYS/MinGW do not provide the 'file' command needed by
10095   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10096   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10097   lt_cv_file_magic_cmd='$OBJDUMP -f'
10098   ;;
10099
10100 darwin* | rhapsody*)
10101   lt_cv_deplibs_check_method=pass_all
10102   ;;
10103
10104 freebsd* | kfreebsd*-gnu)
10105   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10106     case $host_cpu in
10107     i*86 )
10108       # Not sure whether the presence of OpenBSD here was a mistake.
10109       # Let's accept both of them until this is cleared up.
10110       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10111       lt_cv_file_magic_cmd=/usr/bin/file
10112       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10113       ;;
10114     esac
10115   else
10116     lt_cv_deplibs_check_method=pass_all
10117   fi
10118   ;;
10119
10120 gnu*)
10121   lt_cv_deplibs_check_method=pass_all
10122   ;;
10123
10124 hpux10.20* | hpux11*)
10125   lt_cv_file_magic_cmd=/usr/bin/file
10126   case "$host_cpu" in
10127   ia64*)
10128     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10129     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10130     ;;
10131   hppa*64*)
10132     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]'
10133     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10134     ;;
10135   *)
10136     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10137     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10138     ;;
10139   esac
10140   ;;
10141
10142 irix5* | irix6* | nonstopux*)
10143   case $LD in
10144   *-32|*"-32 ") libmagic=32-bit;;
10145   *-n32|*"-n32 ") libmagic=N32;;
10146   *-64|*"-64 ") libmagic=64-bit;;
10147   *) libmagic=never-match;;
10148   esac
10149   lt_cv_deplibs_check_method=pass_all
10150   ;;
10151
10152 # This must be Linux ELF.
10153 linux*)
10154   lt_cv_deplibs_check_method=pass_all
10155   ;;
10156
10157 netbsd*)
10158   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10160   else
10161     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10162   fi
10163   ;;
10164
10165 newos6*)
10166   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10167   lt_cv_file_magic_cmd=/usr/bin/file
10168   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10169   ;;
10170
10171 nto-qnx*)
10172   lt_cv_deplibs_check_method=unknown
10173   ;;
10174
10175 openbsd*)
10176   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10178   else
10179     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10180   fi
10181   ;;
10182
10183 osf3* | osf4* | osf5*)
10184   lt_cv_deplibs_check_method=pass_all
10185   ;;
10186
10187 sco3.2v5*)
10188   lt_cv_deplibs_check_method=pass_all
10189   ;;
10190
10191 solaris*)
10192   lt_cv_deplibs_check_method=pass_all
10193   ;;
10194
10195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196   case $host_vendor in
10197   motorola)
10198     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]'
10199     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10200     ;;
10201   ncr)
10202     lt_cv_deplibs_check_method=pass_all
10203     ;;
10204   sequent)
10205     lt_cv_file_magic_cmd='/bin/file'
10206     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10207     ;;
10208   sni)
10209     lt_cv_file_magic_cmd='/bin/file'
10210     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10211     lt_cv_file_magic_test_file=/lib/libc.so
10212     ;;
10213   siemens)
10214     lt_cv_deplibs_check_method=pass_all
10215     ;;
10216   esac
10217   ;;
10218
10219 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10220   lt_cv_deplibs_check_method=pass_all
10221   ;;
10222 esac
10223
10224 fi
10225 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10226 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10227 file_magic_cmd=$lt_cv_file_magic_cmd
10228 deplibs_check_method=$lt_cv_deplibs_check_method
10229 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10230
10231
10232
10233 # If no C compiler was specified, use CC.
10234 LTCC=${LTCC-"$CC"}
10235
10236 # Allow CC to be a program name with arguments.
10237 compiler=$CC
10238
10239 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10240 if test "${enable_libtool_lock+set}" = set; then
10241   enableval="$enable_libtool_lock"
10242
10243 fi;
10244 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10245
10246 # Some flags need to be propagated to the compiler or linker for good
10247 # libtool support.
10248 case $host in
10249 ia64-*-hpux*)
10250   # Find out which ABI we are using.
10251   echo 'int i;' > conftest.$ac_ext
10252   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253   (eval $ac_compile) 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; then
10257     case `/usr/bin/file conftest.$ac_objext` in
10258     *ELF-32*)
10259       HPUX_IA64_MODE="32"
10260       ;;
10261     *ELF-64*)
10262       HPUX_IA64_MODE="64"
10263       ;;
10264     esac
10265   fi
10266   rm -rf conftest*
10267   ;;
10268 *-*-irix6*)
10269   # Find out which ABI we are using.
10270   echo '#line 10270 "configure"' > conftest.$ac_ext
10271   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272   (eval $ac_compile) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; then
10276    if test "$lt_cv_prog_gnu_ld" = yes; then
10277     case `/usr/bin/file conftest.$ac_objext` in
10278     *32-bit*)
10279       LD="${LD-ld} -melf32bsmip"
10280       ;;
10281     *N32*)
10282       LD="${LD-ld} -melf32bmipn32"
10283       ;;
10284     *64-bit*)
10285       LD="${LD-ld} -melf64bmip"
10286       ;;
10287     esac
10288    else
10289     case `/usr/bin/file conftest.$ac_objext` in
10290     *32-bit*)
10291       LD="${LD-ld} -32"
10292       ;;
10293     *N32*)
10294       LD="${LD-ld} -n32"
10295       ;;
10296     *64-bit*)
10297       LD="${LD-ld} -64"
10298       ;;
10299     esac
10300    fi
10301   fi
10302   rm -rf conftest*
10303   ;;
10304
10305 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10306   # Find out which ABI we are using.
10307   echo 'int i;' > conftest.$ac_ext
10308   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309   (eval $ac_compile) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; then
10313     case "`/usr/bin/file conftest.o`" in
10314     *32-bit*)
10315       case $host in
10316         x86_64-*linux*)
10317           LD="${LD-ld} -m elf_i386"
10318           ;;
10319         ppc64-*linux*|powerpc64-*linux*)
10320           LD="${LD-ld} -m elf32ppclinux"
10321           ;;
10322         s390x-*linux*)
10323           LD="${LD-ld} -m elf_s390"
10324           ;;
10325         sparc64-*linux*)
10326           LD="${LD-ld} -m elf32_sparc"
10327           ;;
10328       esac
10329       ;;
10330     *64-bit*)
10331       case $host in
10332         x86_64-*linux*)
10333           LD="${LD-ld} -m elf_x86_64"
10334           ;;
10335         ppc*-*linux*|powerpc*-*linux*)
10336           LD="${LD-ld} -m elf64ppc"
10337           ;;
10338         s390*-*linux*)
10339           LD="${LD-ld} -m elf64_s390"
10340           ;;
10341         sparc*-*linux*)
10342           LD="${LD-ld} -m elf64_sparc"
10343           ;;
10344       esac
10345       ;;
10346     esac
10347   fi
10348   rm -rf conftest*
10349   ;;
10350
10351 *-*-sco3.2v5*)
10352   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10353   SAVE_CFLAGS="$CFLAGS"
10354   CFLAGS="$CFLAGS -belf"
10355   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10356 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10357 if test "${lt_cv_cc_needs_belf+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   ac_ext=c
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365
10366      cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376   (eval $ac_link) 2>conftest.er1
10377   ac_status=$?
10378   grep -v '^ *+' conftest.er1 >conftest.err
10379   rm -f conftest.er1
10380   cat conftest.err >&5
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } &&
10383          { ac_try='test -z "$ac_c_werror_flag"
10384                          || test ! -s conftest.err'
10385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386   (eval $ac_try) 2>&5
10387   ac_status=$?
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); }; } &&
10390          { ac_try='test -s conftest$ac_exeext'
10391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392   (eval $ac_try) 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; }; then
10396   lt_cv_cc_needs_belf=yes
10397 else
10398   echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 lt_cv_cc_needs_belf=no
10402 fi
10403 rm -f conftest.err conftest.$ac_objext \
10404       conftest$ac_exeext conftest.$ac_ext
10405      ac_ext=c
10406 ac_cpp='$CPP $CPPFLAGS'
10407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10410
10411 fi
10412 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10413 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10414   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10415     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10416     CFLAGS="$SAVE_CFLAGS"
10417   fi
10418   ;;
10419
10420 esac
10421
10422 need_locks="$enable_libtool_lock"
10423
10424
10425
10426
10427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10428     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10429     (test "X$CXX" != "Xg++"))) ; then
10430   ac_ext=cc
10431 ac_cpp='$CXXCPP $CPPFLAGS'
10432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10435 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10437 if test -z "$CXXCPP"; then
10438   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441       # Double quotes because CXXCPP needs to be expanded
10442     for CXXCPP in "$CXX -E" "/lib/cpp"
10443     do
10444       ac_preproc_ok=false
10445 for ac_cxx_preproc_warn_flag in '' yes
10446 do
10447   # Use a header file that comes with gcc, so configuring glibc
10448   # with a fresh cross-compiler works.
10449   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10450   # <limits.h> exists even on freestanding compilers.
10451   # On the NeXT, cc -E runs the code through the compiler's parser,
10452   # not just through cpp. "Syntax error" is here to catch this case.
10453   cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 #ifdef __STDC__
10460 # include <limits.h>
10461 #else
10462 # include <assert.h>
10463 #endif
10464                      Syntax error
10465 _ACEOF
10466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } >/dev/null; then
10474   if test -s conftest.err; then
10475     ac_cpp_err=$ac_cxx_preproc_warn_flag
10476     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10477   else
10478     ac_cpp_err=
10479   fi
10480 else
10481   ac_cpp_err=yes
10482 fi
10483 if test -z "$ac_cpp_err"; then
10484   :
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489   # Broken: fails on valid input.
10490 continue
10491 fi
10492 rm -f conftest.err conftest.$ac_ext
10493
10494   # OK, works on sane cases.  Now check whether non-existent headers
10495   # can be detected and how.
10496   cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 #include <ac_nonexistent.h>
10503 _ACEOF
10504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10506   ac_status=$?
10507   grep -v '^ *+' conftest.er1 >conftest.err
10508   rm -f conftest.er1
10509   cat conftest.err >&5
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } >/dev/null; then
10512   if test -s conftest.err; then
10513     ac_cpp_err=$ac_cxx_preproc_warn_flag
10514     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10515   else
10516     ac_cpp_err=
10517   fi
10518 else
10519   ac_cpp_err=yes
10520 fi
10521 if test -z "$ac_cpp_err"; then
10522   # Broken: success on invalid input.
10523 continue
10524 else
10525   echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10527
10528   # Passes both tests.
10529 ac_preproc_ok=:
10530 break
10531 fi
10532 rm -f conftest.err conftest.$ac_ext
10533
10534 done
10535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10536 rm -f conftest.err conftest.$ac_ext
10537 if $ac_preproc_ok; then
10538   break
10539 fi
10540
10541     done
10542     ac_cv_prog_CXXCPP=$CXXCPP
10543
10544 fi
10545   CXXCPP=$ac_cv_prog_CXXCPP
10546 else
10547   ac_cv_prog_CXXCPP=$CXXCPP
10548 fi
10549 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10550 echo "${ECHO_T}$CXXCPP" >&6
10551 ac_preproc_ok=false
10552 for ac_cxx_preproc_warn_flag in '' yes
10553 do
10554   # Use a header file that comes with gcc, so configuring glibc
10555   # with a fresh cross-compiler works.
10556   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10557   # <limits.h> exists even on freestanding compilers.
10558   # On the NeXT, cc -E runs the code through the compiler's parser,
10559   # not just through cpp. "Syntax error" is here to catch this case.
10560   cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566 #ifdef __STDC__
10567 # include <limits.h>
10568 #else
10569 # include <assert.h>
10570 #endif
10571                      Syntax error
10572 _ACEOF
10573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10575   ac_status=$?
10576   grep -v '^ *+' conftest.er1 >conftest.err
10577   rm -f conftest.er1
10578   cat conftest.err >&5
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } >/dev/null; then
10581   if test -s conftest.err; then
10582     ac_cpp_err=$ac_cxx_preproc_warn_flag
10583     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10584   else
10585     ac_cpp_err=
10586   fi
10587 else
10588   ac_cpp_err=yes
10589 fi
10590 if test -z "$ac_cpp_err"; then
10591   :
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596   # Broken: fails on valid input.
10597 continue
10598 fi
10599 rm -f conftest.err conftest.$ac_ext
10600
10601   # OK, works on sane cases.  Now check whether non-existent headers
10602   # can be detected and how.
10603   cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609 #include <ac_nonexistent.h>
10610 _ACEOF
10611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } >/dev/null; then
10619   if test -s conftest.err; then
10620     ac_cpp_err=$ac_cxx_preproc_warn_flag
10621     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10622   else
10623     ac_cpp_err=
10624   fi
10625 else
10626   ac_cpp_err=yes
10627 fi
10628 if test -z "$ac_cpp_err"; then
10629   # Broken: success on invalid input.
10630 continue
10631 else
10632   echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635   # Passes both tests.
10636 ac_preproc_ok=:
10637 break
10638 fi
10639 rm -f conftest.err conftest.$ac_ext
10640
10641 done
10642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10643 rm -f conftest.err conftest.$ac_ext
10644 if $ac_preproc_ok; then
10645   :
10646 else
10647   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10648 See \`config.log' for more details." >&5
10649 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10650 See \`config.log' for more details." >&2;}
10651    { (exit 1); exit 1; }; }
10652 fi
10653
10654 ac_ext=cc
10655 ac_cpp='$CXXCPP $CPPFLAGS'
10656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10659
10660 fi
10661
10662
10663 ac_ext=f
10664 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10665 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10666 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10667 if test -n "$ac_tool_prefix"; then
10668   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10669   do
10670     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10672 echo "$as_me:$LINENO: checking for $ac_word" >&5
10673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10674 if test "${ac_cv_prog_F77+set}" = set; then
10675   echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677   if test -n "$F77"; then
10678   ac_cv_prog_F77="$F77" # Let the user override the test.
10679 else
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10682 do
10683   IFS=$as_save_IFS
10684   test -z "$as_dir" && as_dir=.
10685   for ac_exec_ext in '' $ac_executable_extensions; do
10686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10687     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10689     break 2
10690   fi
10691 done
10692 done
10693
10694 fi
10695 fi
10696 F77=$ac_cv_prog_F77
10697 if test -n "$F77"; then
10698   echo "$as_me:$LINENO: result: $F77" >&5
10699 echo "${ECHO_T}$F77" >&6
10700 else
10701   echo "$as_me:$LINENO: result: no" >&5
10702 echo "${ECHO_T}no" >&6
10703 fi
10704
10705     test -n "$F77" && break
10706   done
10707 fi
10708 if test -z "$F77"; then
10709   ac_ct_F77=$F77
10710   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10711 do
10712   # Extract the first word of "$ac_prog", so it can be a program name with args.
10713 set dummy $ac_prog; ac_word=$2
10714 echo "$as_me:$LINENO: checking for $ac_word" >&5
10715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10716 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719   if test -n "$ac_ct_F77"; then
10720   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10724 do
10725   IFS=$as_save_IFS
10726   test -z "$as_dir" && as_dir=.
10727   for ac_exec_ext in '' $ac_executable_extensions; do
10728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729     ac_cv_prog_ac_ct_F77="$ac_prog"
10730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10731     break 2
10732   fi
10733 done
10734 done
10735
10736 fi
10737 fi
10738 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10739 if test -n "$ac_ct_F77"; then
10740   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10741 echo "${ECHO_T}$ac_ct_F77" >&6
10742 else
10743   echo "$as_me:$LINENO: result: no" >&5
10744 echo "${ECHO_T}no" >&6
10745 fi
10746
10747   test -n "$ac_ct_F77" && break
10748 done
10749
10750   F77=$ac_ct_F77
10751 fi
10752
10753
10754 # Provide some information about the compiler.
10755 echo "$as_me:10755:" \
10756      "checking for Fortran 77 compiler version" >&5
10757 ac_compiler=`set X $ac_compile; echo $2`
10758 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10759   (eval $ac_compiler --version </dev/null >&5) 2>&5
10760   ac_status=$?
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); }
10763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10764   (eval $ac_compiler -v </dev/null >&5) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }
10768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10769   (eval $ac_compiler -V </dev/null >&5) 2>&5
10770   ac_status=$?
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); }
10773 rm -f a.out
10774
10775 # If we don't use `.F' as extension, the preprocessor is not run on the
10776 # input file.  (Note that this only needs to work for GNU compilers.)
10777 ac_save_ext=$ac_ext
10778 ac_ext=F
10779 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10780 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10781 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   cat >conftest.$ac_ext <<_ACEOF
10785       program main
10786 #ifndef __GNUC__
10787        choke me
10788 #endif
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_compiler_gnu=yes
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 ac_compiler_gnu=no
10820 fi
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10823
10824 fi
10825 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10826 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10827 ac_ext=$ac_save_ext
10828 ac_test_FFLAGS=${FFLAGS+set}
10829 ac_save_FFLAGS=$FFLAGS
10830 FFLAGS=
10831 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10832 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10833 if test "${ac_cv_prog_f77_g+set}" = set; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836   FFLAGS=-g
10837 cat >conftest.$ac_ext <<_ACEOF
10838       program main
10839
10840       end
10841 _ACEOF
10842 rm -f conftest.$ac_objext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10844   (eval $ac_compile) 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_f77_werror_flag"
10852                          || test ! -s conftest.err'
10853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854   (eval $ac_try) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; } &&
10858          { ac_try='test -s conftest.$ac_objext'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_cv_prog_f77_g=yes
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_cv_prog_f77_g=no
10870 fi
10871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10872
10873 fi
10874 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10875 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10876 if test "$ac_test_FFLAGS" = set; then
10877   FFLAGS=$ac_save_FFLAGS
10878 elif test $ac_cv_prog_f77_g = yes; then
10879   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10880     FFLAGS="-g -O2"
10881   else
10882     FFLAGS="-g"
10883   fi
10884 else
10885   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10886     FFLAGS="-O2"
10887   else
10888     FFLAGS=
10889   fi
10890 fi
10891
10892 G77=`test $ac_compiler_gnu = yes && echo yes`
10893 ac_ext=c
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10898
10899
10900
10901 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10902
10903 # find the maximum length of command line arguments
10904 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10905 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10906 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10907   echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909     i=0
10910   teststring="ABCD"
10911
10912   case $build_os in
10913   msdosdjgpp*)
10914     # On DJGPP, this test can blow up pretty badly due to problems in libc
10915     # (any single argument exceeding 2000 bytes causes a buffer overrun
10916     # during glob expansion).  Even if it were fixed, the result of this
10917     # check would be larger than it should be.
10918     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10919     ;;
10920
10921   gnu*)
10922     # Under GNU Hurd, this test is not required because there is
10923     # no limit to the length of command line arguments.
10924     # Libtool will interpret -1 as no limit whatsoever
10925     lt_cv_sys_max_cmd_len=-1;
10926     ;;
10927
10928   cygwin* | mingw*)
10929     # On Win9x/ME, this test blows up -- it succeeds, but takes
10930     # about 5 minutes as the teststring grows exponentially.
10931     # Worse, since 9x/ME are not pre-emptively multitasking,
10932     # you end up with a "frozen" computer, even though with patience
10933     # the test eventually succeeds (with a max line length of 256k).
10934     # Instead, let's just punt: use the minimum linelength reported by
10935     # all of the supported platforms: 8192 (on NT/2K/XP).
10936     lt_cv_sys_max_cmd_len=8192;
10937     ;;
10938
10939   amigaos*)
10940     # On AmigaOS with pdksh, this test takes hours, literally.
10941     # So we just punt and use a minimum line length of 8192.
10942     lt_cv_sys_max_cmd_len=8192;
10943     ;;
10944
10945   netbsd* | freebsd* | openbsd* | darwin* )
10946     # This has been around since 386BSD, at least.  Likely further.
10947     if test -x /sbin/sysctl; then
10948       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10949     elif test -x /usr/sbin/sysctl; then
10950       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10951     else
10952       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10953     fi
10954     # And add a safety zone
10955     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10956     ;;
10957
10958  *)
10959     # If test is not a shell built-in, we'll probably end up computing a
10960     # maximum length that is only half of the actual maximum length, but
10961     # we can't tell.
10962     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10963     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10964                = "XX$teststring") >/dev/null 2>&1 &&
10965             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10966             lt_cv_sys_max_cmd_len=$new_result &&
10967             test $i != 17 # 1/2 MB should be enough
10968     do
10969       i=`expr $i + 1`
10970       teststring=$teststring$teststring
10971     done
10972     teststring=
10973     # Add a significant safety factor because C++ compilers can tack on massive
10974     # amounts of additional arguments before passing them to the linker.
10975     # It appears as though 1/2 is a usable value.
10976     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10977     ;;
10978   esac
10979
10980 fi
10981
10982 if test -n $lt_cv_sys_max_cmd_len ; then
10983   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10984 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10985 else
10986   echo "$as_me:$LINENO: result: none" >&5
10987 echo "${ECHO_T}none" >&6
10988 fi
10989
10990
10991
10992
10993 # Check for command to grab the raw symbol name followed by C symbol from nm.
10994 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10995 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10996 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10997   echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999
11000 # These are sane defaults that work on at least a few old systems.
11001 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11002
11003 # Character class describing NM global symbol codes.
11004 symcode='[BCDEGRST]'
11005
11006 # Regexp to match symbols that can be accessed directly from C.
11007 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11008
11009 # Transform the above into a raw symbol and a C symbol.
11010 symxfrm='\1 \2\3 \3'
11011
11012 # Transform an extracted symbol line into a proper C declaration
11013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11014
11015 # Transform an extracted symbol line into symbol name and symbol address
11016 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'"
11017
11018 # Define system-specific variables.
11019 case $host_os in
11020 aix*)
11021   symcode='[BCDT]'
11022   ;;
11023 cygwin* | mingw* | pw32*)
11024   symcode='[ABCDGISTW]'
11025   ;;
11026 hpux*) # Its linker distinguishes data from code symbols
11027   if test "$host_cpu" = ia64; then
11028     symcode='[ABCDEGRST]'
11029   fi
11030   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11031   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'"
11032   ;;
11033 linux*)
11034   if test "$host_cpu" = ia64; then
11035     symcode='[ABCDGIRSTW]'
11036     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11037     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'"
11038   fi
11039   ;;
11040 irix* | nonstopux*)
11041   symcode='[BCDEGRST]'
11042   ;;
11043 osf*)
11044   symcode='[BCDEGQRST]'
11045   ;;
11046 solaris* | sysv5*)
11047   symcode='[BDRT]'
11048   ;;
11049 sysv4)
11050   symcode='[DFNSTU]'
11051   ;;
11052 esac
11053
11054 # Handle CRLF in mingw tool chain
11055 opt_cr=
11056 case $build_os in
11057 mingw*)
11058   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11059   ;;
11060 esac
11061
11062 # If we're using GNU nm, then use its standard symbol codes.
11063 case `$NM -V 2>&1` in
11064 *GNU* | *'with BFD'*)
11065   symcode='[ABCDGIRSTW]' ;;
11066 esac
11067
11068 # Try without a prefix undercore, then with it.
11069 for ac_symprfx in "" "_"; do
11070
11071   # Write the raw and C identifiers.
11072   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11073
11074   # Check to see that the pipe works correctly.
11075   pipe_works=no
11076
11077   rm -f conftest*
11078   cat > conftest.$ac_ext <<EOF
11079 #ifdef __cplusplus
11080 extern "C" {
11081 #endif
11082 char nm_test_var;
11083 void nm_test_func(){}
11084 #ifdef __cplusplus
11085 }
11086 #endif
11087 int main(){nm_test_var='a';nm_test_func();return(0);}
11088 EOF
11089
11090   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091   (eval $ac_compile) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; then
11095     # Now try to grab the symbols.
11096     nlist=conftest.nm
11097     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11098   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } && test -s "$nlist"; then
11102       # Try sorting and uniquifying the output.
11103       if sort "$nlist" | uniq > "$nlist"T; then
11104         mv -f "$nlist"T "$nlist"
11105       else
11106         rm -f "$nlist"T
11107       fi
11108
11109       # Make sure that we snagged all the symbols we need.
11110       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11111         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11112           cat <<EOF > conftest.$ac_ext
11113 #ifdef __cplusplus
11114 extern "C" {
11115 #endif
11116
11117 EOF
11118           # Now generate the symbol file.
11119           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11120
11121           cat <<EOF >> conftest.$ac_ext
11122 #if defined (__STDC__) && __STDC__
11123 # define lt_ptr_t void *
11124 #else
11125 # define lt_ptr_t char *
11126 # define const
11127 #endif
11128
11129 /* The mapping between symbol names and symbols. */
11130 const struct {
11131   const char *name;
11132   lt_ptr_t address;
11133 }
11134 lt_preloaded_symbols[] =
11135 {
11136 EOF
11137           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11138           cat <<\EOF >> conftest.$ac_ext
11139   {0, (lt_ptr_t) 0}
11140 };
11141
11142 #ifdef __cplusplus
11143 }
11144 #endif
11145 EOF
11146           # Now try linking the two files.
11147           mv conftest.$ac_objext conftstm.$ac_objext
11148           lt_save_LIBS="$LIBS"
11149           lt_save_CFLAGS="$CFLAGS"
11150           LIBS="conftstm.$ac_objext"
11151           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11152           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153   (eval $ac_link) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11157             pipe_works=yes
11158           fi
11159           LIBS="$lt_save_LIBS"
11160           CFLAGS="$lt_save_CFLAGS"
11161         else
11162           echo "cannot find nm_test_func in $nlist" >&5
11163         fi
11164       else
11165         echo "cannot find nm_test_var in $nlist" >&5
11166       fi
11167     else
11168       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11169     fi
11170   else
11171     echo "$progname: failed program was:" >&5
11172     cat conftest.$ac_ext >&5
11173   fi
11174   rm -f conftest* conftst*
11175
11176   # Do not use the global_symbol_pipe unless it works.
11177   if test "$pipe_works" = yes; then
11178     break
11179   else
11180     lt_cv_sys_global_symbol_pipe=
11181   fi
11182 done
11183
11184 fi
11185
11186 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11187   lt_cv_sys_global_symbol_to_cdecl=
11188 fi
11189 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11190   echo "$as_me:$LINENO: result: failed" >&5
11191 echo "${ECHO_T}failed" >&6
11192 else
11193   echo "$as_me:$LINENO: result: ok" >&5
11194 echo "${ECHO_T}ok" >&6
11195 fi
11196
11197 echo "$as_me:$LINENO: checking for objdir" >&5
11198 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11199 if test "${lt_cv_objdir+set}" = set; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202   rm -f .libs 2>/dev/null
11203 mkdir .libs 2>/dev/null
11204 if test -d .libs; then
11205   lt_cv_objdir=.libs
11206 else
11207   # MS-DOS does not allow filenames that begin with a dot.
11208   lt_cv_objdir=_libs
11209 fi
11210 rmdir .libs 2>/dev/null
11211 fi
11212 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11213 echo "${ECHO_T}$lt_cv_objdir" >&6
11214 objdir=$lt_cv_objdir
11215
11216
11217
11218
11219
11220 case $host_os in
11221 aix3*)
11222   # AIX sometimes has problems with the GCC collect2 program.  For some
11223   # reason, if we set the COLLECT_NAMES environment variable, the problems
11224   # vanish in a puff of smoke.
11225   if test "X${COLLECT_NAMES+set}" != Xset; then
11226     COLLECT_NAMES=
11227     export COLLECT_NAMES
11228   fi
11229   ;;
11230 esac
11231
11232 # Sed substitution that helps us do robust quoting.  It backslashifies
11233 # metacharacters that are still active within double-quoted strings.
11234 Xsed='sed -e s/^X//'
11235 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11236
11237 # Same as above, but do not quote variable references.
11238 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11239
11240 # Sed substitution to delay expansion of an escaped shell variable in a
11241 # double_quote_subst'ed string.
11242 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11243
11244 # Sed substitution to avoid accidental globbing in evaled expressions
11245 no_glob_subst='s/\*/\\\*/g'
11246
11247 # Constants:
11248 rm="rm -f"
11249
11250 # Global variables:
11251 default_ofile=mklib
11252 can_build_shared=yes
11253
11254 # All known linkers require a `.a' archive for static linking (except M$VC,
11255 # which needs '.lib').
11256 libext=a
11257 ltmain="$ac_aux_dir/ltmain.sh"
11258 ofile="$default_ofile"
11259 with_gnu_ld="$lt_cv_prog_gnu_ld"
11260
11261 if test -n "$ac_tool_prefix"; then
11262   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11263 set dummy ${ac_tool_prefix}ar; ac_word=$2
11264 echo "$as_me:$LINENO: checking for $ac_word" >&5
11265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11266 if test "${ac_cv_prog_AR+set}" = set; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   if test -n "$AR"; then
11270   ac_cv_prog_AR="$AR" # Let the user override the test.
11271 else
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11274 do
11275   IFS=$as_save_IFS
11276   test -z "$as_dir" && as_dir=.
11277   for ac_exec_ext in '' $ac_executable_extensions; do
11278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279     ac_cv_prog_AR="${ac_tool_prefix}ar"
11280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281     break 2
11282   fi
11283 done
11284 done
11285
11286 fi
11287 fi
11288 AR=$ac_cv_prog_AR
11289 if test -n "$AR"; then
11290   echo "$as_me:$LINENO: result: $AR" >&5
11291 echo "${ECHO_T}$AR" >&6
11292 else
11293   echo "$as_me:$LINENO: result: no" >&5
11294 echo "${ECHO_T}no" >&6
11295 fi
11296
11297 fi
11298 if test -z "$ac_cv_prog_AR"; then
11299   ac_ct_AR=$AR
11300   # Extract the first word of "ar", so it can be a program name with args.
11301 set dummy ar; ac_word=$2
11302 echo "$as_me:$LINENO: checking for $ac_word" >&5
11303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11304 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307   if test -n "$ac_ct_AR"; then
11308   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11309 else
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313   IFS=$as_save_IFS
11314   test -z "$as_dir" && as_dir=.
11315   for ac_exec_ext in '' $ac_executable_extensions; do
11316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317     ac_cv_prog_ac_ct_AR="ar"
11318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11319     break 2
11320   fi
11321 done
11322 done
11323
11324   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11325 fi
11326 fi
11327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11328 if test -n "$ac_ct_AR"; then
11329   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11330 echo "${ECHO_T}$ac_ct_AR" >&6
11331 else
11332   echo "$as_me:$LINENO: result: no" >&5
11333 echo "${ECHO_T}no" >&6
11334 fi
11335
11336   AR=$ac_ct_AR
11337 else
11338   AR="$ac_cv_prog_AR"
11339 fi
11340
11341 if test -n "$ac_tool_prefix"; then
11342   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11344 echo "$as_me:$LINENO: checking for $ac_word" >&5
11345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346 if test "${ac_cv_prog_RANLIB+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   if test -n "$RANLIB"; then
11350   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355   IFS=$as_save_IFS
11356   test -z "$as_dir" && as_dir=.
11357   for ac_exec_ext in '' $ac_executable_extensions; do
11358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361     break 2
11362   fi
11363 done
11364 done
11365
11366 fi
11367 fi
11368 RANLIB=$ac_cv_prog_RANLIB
11369 if test -n "$RANLIB"; then
11370   echo "$as_me:$LINENO: result: $RANLIB" >&5
11371 echo "${ECHO_T}$RANLIB" >&6
11372 else
11373   echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6
11375 fi
11376
11377 fi
11378 if test -z "$ac_cv_prog_RANLIB"; then
11379   ac_ct_RANLIB=$RANLIB
11380   # Extract the first word of "ranlib", so it can be a program name with args.
11381 set dummy ranlib; ac_word=$2
11382 echo "$as_me:$LINENO: checking for $ac_word" >&5
11383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   if test -n "$ac_ct_RANLIB"; then
11388   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11389 else
11390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11392 do
11393   IFS=$as_save_IFS
11394   test -z "$as_dir" && as_dir=.
11395   for ac_exec_ext in '' $ac_executable_extensions; do
11396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397     ac_cv_prog_ac_ct_RANLIB="ranlib"
11398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11399     break 2
11400   fi
11401 done
11402 done
11403
11404   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11405 fi
11406 fi
11407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11408 if test -n "$ac_ct_RANLIB"; then
11409   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11410 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11411 else
11412   echo "$as_me:$LINENO: result: no" >&5
11413 echo "${ECHO_T}no" >&6
11414 fi
11415
11416   RANLIB=$ac_ct_RANLIB
11417 else
11418   RANLIB="$ac_cv_prog_RANLIB"
11419 fi
11420
11421 if test -n "$ac_tool_prefix"; then
11422   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11423 set dummy ${ac_tool_prefix}strip; ac_word=$2
11424 echo "$as_me:$LINENO: checking for $ac_word" >&5
11425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11426 if test "${ac_cv_prog_STRIP+set}" = set; then
11427   echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429   if test -n "$STRIP"; then
11430   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11431 else
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435   IFS=$as_save_IFS
11436   test -z "$as_dir" && as_dir=.
11437   for ac_exec_ext in '' $ac_executable_extensions; do
11438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11441     break 2
11442   fi
11443 done
11444 done
11445
11446 fi
11447 fi
11448 STRIP=$ac_cv_prog_STRIP
11449 if test -n "$STRIP"; then
11450   echo "$as_me:$LINENO: result: $STRIP" >&5
11451 echo "${ECHO_T}$STRIP" >&6
11452 else
11453   echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6
11455 fi
11456
11457 fi
11458 if test -z "$ac_cv_prog_STRIP"; then
11459   ac_ct_STRIP=$STRIP
11460   # Extract the first word of "strip", so it can be a program name with args.
11461 set dummy strip; ac_word=$2
11462 echo "$as_me:$LINENO: checking for $ac_word" >&5
11463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11464 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   if test -n "$ac_ct_STRIP"; then
11468   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11469 else
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11472 do
11473   IFS=$as_save_IFS
11474   test -z "$as_dir" && as_dir=.
11475   for ac_exec_ext in '' $ac_executable_extensions; do
11476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477     ac_cv_prog_ac_ct_STRIP="strip"
11478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11479     break 2
11480   fi
11481 done
11482 done
11483
11484   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11485 fi
11486 fi
11487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11488 if test -n "$ac_ct_STRIP"; then
11489   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11490 echo "${ECHO_T}$ac_ct_STRIP" >&6
11491 else
11492   echo "$as_me:$LINENO: result: no" >&5
11493 echo "${ECHO_T}no" >&6
11494 fi
11495
11496   STRIP=$ac_ct_STRIP
11497 else
11498   STRIP="$ac_cv_prog_STRIP"
11499 fi
11500
11501
11502 old_CC="$CC"
11503 old_CFLAGS="$CFLAGS"
11504
11505 # Set sane defaults for various variables
11506 test -z "$AR" && AR=ar
11507 test -z "$AR_FLAGS" && AR_FLAGS=cru
11508 test -z "$AS" && AS=as
11509 test -z "$CC" && CC=cc
11510 test -z "$LTCC" && LTCC=$CC
11511 test -z "$DLLTOOL" && DLLTOOL=dlltool
11512 test -z "$LD" && LD=ld
11513 test -z "$LN_S" && LN_S="ln -s"
11514 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11515 test -z "$NM" && NM=nm
11516 test -z "$SED" && SED=sed
11517 test -z "$OBJDUMP" && OBJDUMP=objdump
11518 test -z "$RANLIB" && RANLIB=:
11519 test -z "$STRIP" && STRIP=:
11520 test -z "$ac_objext" && ac_objext=o
11521
11522 # Determine commands to create old-style static archives.
11523 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11524 old_postinstall_cmds='chmod 644 $oldlib'
11525 old_postuninstall_cmds=
11526
11527 if test -n "$RANLIB"; then
11528   case $host_os in
11529   openbsd*)
11530     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11531     ;;
11532   *)
11533     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11534     ;;
11535   esac
11536   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11537 fi
11538
11539 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11540
11541 # Only perform the check for file, if the check method requires it
11542 case $deplibs_check_method in
11543 file_magic*)
11544   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11545     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11546 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   case $MAGIC_CMD in
11551 [\\/*] |  ?:[\\/]*)
11552   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11553   ;;
11554 *)
11555   lt_save_MAGIC_CMD="$MAGIC_CMD"
11556   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11557   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11558   for ac_dir in $ac_dummy; do
11559     IFS="$lt_save_ifs"
11560     test -z "$ac_dir" && ac_dir=.
11561     if test -f $ac_dir/${ac_tool_prefix}file; then
11562       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11563       if test -n "$file_magic_test_file"; then
11564         case $deplibs_check_method in
11565         "file_magic "*)
11566           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11567           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11568           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11569             $EGREP "$file_magic_regex" > /dev/null; then
11570             :
11571           else
11572             cat <<EOF 1>&2
11573
11574 *** Warning: the command libtool uses to detect shared libraries,
11575 *** $file_magic_cmd, produces output that libtool cannot recognize.
11576 *** The result is that libtool may fail to recognize shared libraries
11577 *** as such.  This will affect the creation of libtool libraries that
11578 *** depend on shared libraries, but programs linked with such libtool
11579 *** libraries will work regardless of this problem.  Nevertheless, you
11580 *** may want to report the problem to your system manager and/or to
11581 *** bug-libtool@gnu.org
11582
11583 EOF
11584           fi ;;
11585         esac
11586       fi
11587       break
11588     fi
11589   done
11590   IFS="$lt_save_ifs"
11591   MAGIC_CMD="$lt_save_MAGIC_CMD"
11592   ;;
11593 esac
11594 fi
11595
11596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11597 if test -n "$MAGIC_CMD"; then
11598   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11599 echo "${ECHO_T}$MAGIC_CMD" >&6
11600 else
11601   echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11603 fi
11604
11605 if test -z "$lt_cv_path_MAGIC_CMD"; then
11606   if test -n "$ac_tool_prefix"; then
11607     echo "$as_me:$LINENO: checking for file" >&5
11608 echo $ECHO_N "checking for file... $ECHO_C" >&6
11609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   case $MAGIC_CMD in
11613 [\\/*] |  ?:[\\/]*)
11614   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11615   ;;
11616 *)
11617   lt_save_MAGIC_CMD="$MAGIC_CMD"
11618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11619   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11620   for ac_dir in $ac_dummy; do
11621     IFS="$lt_save_ifs"
11622     test -z "$ac_dir" && ac_dir=.
11623     if test -f $ac_dir/file; then
11624       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11625       if test -n "$file_magic_test_file"; then
11626         case $deplibs_check_method in
11627         "file_magic "*)
11628           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11629           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11630           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11631             $EGREP "$file_magic_regex" > /dev/null; then
11632             :
11633           else
11634             cat <<EOF 1>&2
11635
11636 *** Warning: the command libtool uses to detect shared libraries,
11637 *** $file_magic_cmd, produces output that libtool cannot recognize.
11638 *** The result is that libtool may fail to recognize shared libraries
11639 *** as such.  This will affect the creation of libtool libraries that
11640 *** depend on shared libraries, but programs linked with such libtool
11641 *** libraries will work regardless of this problem.  Nevertheless, you
11642 *** may want to report the problem to your system manager and/or to
11643 *** bug-libtool@gnu.org
11644
11645 EOF
11646           fi ;;
11647         esac
11648       fi
11649       break
11650     fi
11651   done
11652   IFS="$lt_save_ifs"
11653   MAGIC_CMD="$lt_save_MAGIC_CMD"
11654   ;;
11655 esac
11656 fi
11657
11658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11659 if test -n "$MAGIC_CMD"; then
11660   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11661 echo "${ECHO_T}$MAGIC_CMD" >&6
11662 else
11663   echo "$as_me:$LINENO: result: no" >&5
11664 echo "${ECHO_T}no" >&6
11665 fi
11666
11667   else
11668     MAGIC_CMD=:
11669   fi
11670 fi
11671
11672   fi
11673   ;;
11674 esac
11675
11676 enable_dlopen=yes
11677 enable_win32_dll=no
11678
11679 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11680 if test "${enable_libtool_lock+set}" = set; then
11681   enableval="$enable_libtool_lock"
11682
11683 fi;
11684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11685
11686
11687 # Check whether --with-pic or --without-pic was given.
11688 if test "${with_pic+set}" = set; then
11689   withval="$with_pic"
11690   pic_mode="$withval"
11691 else
11692   pic_mode=default
11693 fi;
11694 test -z "$pic_mode" && pic_mode=default
11695
11696 # Use C for the default configuration in the libtool script
11697 tagname=
11698 lt_save_CC="$CC"
11699 ac_ext=c
11700 ac_cpp='$CPP $CPPFLAGS'
11701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11704
11705
11706 # Source file extension for C test sources.
11707 ac_ext=c
11708
11709 # Object file extension for compiled C test sources.
11710 objext=o
11711 objext=$objext
11712
11713 # Code to be used in simple compile tests
11714 lt_simple_compile_test_code="int some_variable = 0;\n"
11715
11716 # Code to be used in simple link tests
11717 lt_simple_link_test_code='int main(){return(0);}\n'
11718
11719
11720 # If no C compiler was specified, use CC.
11721 LTCC=${LTCC-"$CC"}
11722
11723 # Allow CC to be a program name with arguments.
11724 compiler=$CC
11725
11726
11727 #
11728 # Check for any special shared library compilation flags.
11729 #
11730 lt_prog_cc_shlib=
11731 if test "$GCC" = no; then
11732   case $host_os in
11733   sco3.2v5*)
11734     lt_prog_cc_shlib='-belf'
11735     ;;
11736   esac
11737 fi
11738 if test -n "$lt_prog_cc_shlib"; then
11739   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11740 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11741   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11742   else
11743     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11744 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11745     lt_cv_prog_cc_can_build_shared=no
11746   fi
11747 fi
11748
11749
11750 #
11751 # Check to make sure the static flag actually works.
11752 #
11753 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11754 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11755 if test "${lt_prog_compiler_static_works+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   lt_prog_compiler_static_works=no
11759    save_LDFLAGS="$LDFLAGS"
11760    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11761    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11762    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11763      # The compiler can only warn and ignore the option if not recognized
11764      # So say no if there are warnings
11765      if test -s conftest.err; then
11766        # Append any errors to the config.log.
11767        cat conftest.err 1>&5
11768      else
11769        lt_prog_compiler_static_works=yes
11770      fi
11771    fi
11772    $rm conftest*
11773    LDFLAGS="$save_LDFLAGS"
11774
11775 fi
11776 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11777 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11778
11779 if test x"$lt_prog_compiler_static_works" = xyes; then
11780     :
11781 else
11782     lt_prog_compiler_static=
11783 fi
11784
11785
11786
11787
11788 lt_prog_compiler_no_builtin_flag=
11789
11790 if test "$GCC" = yes; then
11791   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11792
11793
11794 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11795 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11796 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799   lt_cv_prog_compiler_rtti_exceptions=no
11800   ac_outfile=conftest.$ac_objext
11801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11802    lt_compiler_flag="-fno-rtti -fno-exceptions"
11803    # Insert the option either (1) after the last *FLAGS variable, or
11804    # (2) before a word containing "conftest.", or (3) at the end.
11805    # Note that $ac_compile itself does not contain backslashes and begins
11806    # with a dollar sign (not a hyphen), so the echo should work correctly.
11807    # The option is referenced via a variable to avoid confusing sed.
11808    lt_compile=`echo "$ac_compile" | $SED \
11809    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11811    -e 's:$: $lt_compiler_flag:'`
11812    (eval echo "\"\$as_me:11812: $lt_compile\"" >&5)
11813    (eval "$lt_compile" 2>conftest.err)
11814    ac_status=$?
11815    cat conftest.err >&5
11816    echo "$as_me:11816: \$? = $ac_status" >&5
11817    if (exit $ac_status) && test -s "$ac_outfile"; then
11818      # The compiler can only warn and ignore the option if not recognized
11819      # So say no if there are warnings
11820      if test ! -s conftest.err; then
11821        lt_cv_prog_compiler_rtti_exceptions=yes
11822      fi
11823    fi
11824    $rm conftest*
11825
11826 fi
11827 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11828 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11829
11830 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11831     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11832 else
11833     :
11834 fi
11835
11836 fi
11837
11838 lt_prog_compiler_wl=
11839 lt_prog_compiler_pic=
11840 lt_prog_compiler_static=
11841
11842 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11843 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11844
11845   if test "$GCC" = yes; then
11846     lt_prog_compiler_wl='-Wl,'
11847     lt_prog_compiler_static='-static'
11848
11849     case $host_os in
11850       aix*)
11851       # All AIX code is PIC.
11852       if test "$host_cpu" = ia64; then
11853         # AIX 5 now supports IA64 processor
11854         lt_prog_compiler_static='-Bstatic'
11855       fi
11856       ;;
11857
11858     amigaos*)
11859       # FIXME: we need at least 68020 code to build shared libraries, but
11860       # adding the `-m68020' flag to GCC prevents building anything better,
11861       # like `-m68040'.
11862       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11863       ;;
11864
11865     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11866       # PIC is the default for these OSes.
11867       ;;
11868
11869     mingw* | pw32* | os2*)
11870       # This hack is so that the source file can tell whether it is being
11871       # built for inclusion in a dll (and should export symbols for example).
11872       lt_prog_compiler_pic='-DDLL_EXPORT'
11873       ;;
11874
11875     darwin* | rhapsody*)
11876       # PIC is the default on this platform
11877       # Common symbols not allowed in MH_DYLIB files
11878       lt_prog_compiler_pic='-fno-common'
11879       ;;
11880
11881     msdosdjgpp*)
11882       # Just because we use GCC doesn't mean we suddenly get shared libraries
11883       # on systems that don't support them.
11884       lt_prog_compiler_can_build_shared=no
11885       enable_shared=no
11886       ;;
11887
11888     sysv4*MP*)
11889       if test -d /usr/nec; then
11890         lt_prog_compiler_pic=-Kconform_pic
11891       fi
11892       ;;
11893
11894     hpux*)
11895       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11896       # not for PA HP-UX.
11897       case "$host_cpu" in
11898       hppa*64*|ia64*)
11899         # +Z the default
11900         ;;
11901       *)
11902         lt_prog_compiler_pic='-fPIC'
11903         ;;
11904       esac
11905       ;;
11906
11907     *)
11908       lt_prog_compiler_pic='-fPIC'
11909       ;;
11910     esac
11911   else
11912     # PORTME Check for flag to pass linker flags through the system compiler.
11913     case $host_os in
11914     aix*)
11915       lt_prog_compiler_wl='-Wl,'
11916       if test "$host_cpu" = ia64; then
11917         # AIX 5 now supports IA64 processor
11918         lt_prog_compiler_static='-Bstatic'
11919       else
11920         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11921       fi
11922       ;;
11923       darwin*)
11924         # PIC is the default on this platform
11925         # Common symbols not allowed in MH_DYLIB files
11926        case "$cc_basename" in
11927          xlc*)
11928          lt_prog_compiler_pic='-qnocommon'
11929          lt_prog_compiler_wl='-Wl,'
11930          ;;
11931        esac
11932        ;;
11933
11934     mingw* | pw32* | os2*)
11935       # This hack is so that the source file can tell whether it is being
11936       # built for inclusion in a dll (and should export symbols for example).
11937       lt_prog_compiler_pic='-DDLL_EXPORT'
11938       ;;
11939
11940     hpux9* | hpux10* | hpux11*)
11941       lt_prog_compiler_wl='-Wl,'
11942       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11943       # not for PA HP-UX.
11944       case "$host_cpu" in
11945       hppa*64*|ia64*)
11946         # +Z the default
11947         ;;
11948       *)
11949         lt_prog_compiler_pic='+Z'
11950         ;;
11951       esac
11952       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11953       lt_prog_compiler_static='${wl}-a ${wl}archive'
11954       ;;
11955
11956     irix5* | irix6* | nonstopux*)
11957       lt_prog_compiler_wl='-Wl,'
11958       # PIC (with -KPIC) is the default.
11959       lt_prog_compiler_static='-non_shared'
11960       ;;
11961
11962     newsos6)
11963       lt_prog_compiler_pic='-KPIC'
11964       lt_prog_compiler_static='-Bstatic'
11965       ;;
11966
11967     linux*)
11968       case $CC in
11969       icc* | ecc*)
11970         lt_prog_compiler_wl='-Wl,'
11971         lt_prog_compiler_pic='-KPIC'
11972         lt_prog_compiler_static='-static'
11973         ;;
11974       ccc*)
11975         lt_prog_compiler_wl='-Wl,'
11976         # All Alpha code is PIC.
11977         lt_prog_compiler_static='-non_shared'
11978         ;;
11979       esac
11980       ;;
11981
11982     osf3* | osf4* | osf5*)
11983       lt_prog_compiler_wl='-Wl,'
11984       # All OSF/1 code is PIC.
11985       lt_prog_compiler_static='-non_shared'
11986       ;;
11987
11988     sco3.2v5*)
11989       lt_prog_compiler_pic='-Kpic'
11990       lt_prog_compiler_static='-dn'
11991       ;;
11992
11993     solaris*)
11994       lt_prog_compiler_wl='-Wl,'
11995       lt_prog_compiler_pic='-KPIC'
11996       lt_prog_compiler_static='-Bstatic'
11997       ;;
11998
11999     sunos4*)
12000       lt_prog_compiler_wl='-Qoption ld '
12001       lt_prog_compiler_pic='-PIC'
12002       lt_prog_compiler_static='-Bstatic'
12003       ;;
12004
12005     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12006       lt_prog_compiler_wl='-Wl,'
12007       lt_prog_compiler_pic='-KPIC'
12008       lt_prog_compiler_static='-Bstatic'
12009       ;;
12010
12011     sysv4*MP*)
12012       if test -d /usr/nec ;then
12013         lt_prog_compiler_pic='-Kconform_pic'
12014         lt_prog_compiler_static='-Bstatic'
12015       fi
12016       ;;
12017
12018     uts4*)
12019       lt_prog_compiler_pic='-pic'
12020       lt_prog_compiler_static='-Bstatic'
12021       ;;
12022
12023     *)
12024       lt_prog_compiler_can_build_shared=no
12025       ;;
12026     esac
12027   fi
12028
12029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12030 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12031
12032 #
12033 # Check to make sure the PIC flag actually works.
12034 #
12035 if test -n "$lt_prog_compiler_pic"; then
12036
12037 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12039 if test "${lt_prog_compiler_pic_works+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   lt_prog_compiler_pic_works=no
12043   ac_outfile=conftest.$ac_objext
12044    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12045    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12046    # Insert the option either (1) after the last *FLAGS variable, or
12047    # (2) before a word containing "conftest.", or (3) at the end.
12048    # Note that $ac_compile itself does not contain backslashes and begins
12049    # with a dollar sign (not a hyphen), so the echo should work correctly.
12050    # The option is referenced via a variable to avoid confusing sed.
12051    lt_compile=`echo "$ac_compile" | $SED \
12052    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12053    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12054    -e 's:$: $lt_compiler_flag:'`
12055    (eval echo "\"\$as_me:12055: $lt_compile\"" >&5)
12056    (eval "$lt_compile" 2>conftest.err)
12057    ac_status=$?
12058    cat conftest.err >&5
12059    echo "$as_me:12059: \$? = $ac_status" >&5
12060    if (exit $ac_status) && test -s "$ac_outfile"; then
12061      # The compiler can only warn and ignore the option if not recognized
12062      # So say no if there are warnings
12063      if test ! -s conftest.err; then
12064        lt_prog_compiler_pic_works=yes
12065      fi
12066    fi
12067    $rm conftest*
12068
12069 fi
12070 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12071 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12072
12073 if test x"$lt_prog_compiler_pic_works" = xyes; then
12074     case $lt_prog_compiler_pic in
12075      "" | " "*) ;;
12076      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12077      esac
12078 else
12079     lt_prog_compiler_pic=
12080      lt_prog_compiler_can_build_shared=no
12081 fi
12082
12083 fi
12084 case "$host_os" in
12085   # For platforms which do not support PIC, -DPIC is meaningless:
12086   *djgpp*)
12087     lt_prog_compiler_pic=
12088     ;;
12089   *)
12090     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12091     ;;
12092 esac
12093
12094 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12096 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   lt_cv_prog_compiler_c_o=no
12100    $rm -r conftest 2>/dev/null
12101    mkdir conftest
12102    cd conftest
12103    mkdir out
12104    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12105
12106    lt_compiler_flag="-o out/conftest2.$ac_objext"
12107    # Insert the option either (1) after the last *FLAGS variable, or
12108    # (2) before a word containing "conftest.", or (3) at the end.
12109    # Note that $ac_compile itself does not contain backslashes and begins
12110    # with a dollar sign (not a hyphen), so the echo should work correctly.
12111    lt_compile=`echo "$ac_compile" | $SED \
12112    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12114    -e 's:$: $lt_compiler_flag:'`
12115    (eval echo "\"\$as_me:12115: $lt_compile\"" >&5)
12116    (eval "$lt_compile" 2>out/conftest.err)
12117    ac_status=$?
12118    cat out/conftest.err >&5
12119    echo "$as_me:12119: \$? = $ac_status" >&5
12120    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12121    then
12122      # The compiler can only warn and ignore the option if not recognized
12123      # So say no if there are warnings
12124      if test ! -s out/conftest.err; then
12125        lt_cv_prog_compiler_c_o=yes
12126      fi
12127    fi
12128    chmod u+w .
12129    $rm conftest*
12130    # SGI C++ compiler will create directory out/ii_files/ for
12131    # template instantiation
12132    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12133    $rm out/* && rmdir out
12134    cd ..
12135    rmdir conftest
12136    $rm conftest*
12137
12138 fi
12139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12141
12142
12143 hard_links="nottested"
12144 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12145   # do not overwrite the value of need_locks provided by the user
12146   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12148   hard_links=yes
12149   $rm conftest*
12150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12151   touch conftest.a
12152   ln conftest.a conftest.b 2>&5 || hard_links=no
12153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12154   echo "$as_me:$LINENO: result: $hard_links" >&5
12155 echo "${ECHO_T}$hard_links" >&6
12156   if test "$hard_links" = no; then
12157     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12159     need_locks=warn
12160   fi
12161 else
12162   need_locks=no
12163 fi
12164
12165 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12167
12168   runpath_var=
12169   allow_undefined_flag=
12170   enable_shared_with_static_runtimes=no
12171   archive_cmds=
12172   archive_expsym_cmds=
12173   old_archive_From_new_cmds=
12174   old_archive_from_expsyms_cmds=
12175   export_dynamic_flag_spec=
12176   whole_archive_flag_spec=
12177   thread_safe_flag_spec=
12178   hardcode_libdir_flag_spec=
12179   hardcode_libdir_flag_spec_ld=
12180   hardcode_libdir_separator=
12181   hardcode_direct=no
12182   hardcode_minus_L=no
12183   hardcode_shlibpath_var=unsupported
12184   link_all_deplibs=unknown
12185   hardcode_automatic=no
12186   module_cmds=
12187   module_expsym_cmds=
12188   always_export_symbols=no
12189   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12190   # include_expsyms should be a list of space-separated symbols to be *always*
12191   # included in the symbol list
12192   include_expsyms=
12193   # exclude_expsyms can be an extended regexp of symbols to exclude
12194   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12195   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12196   # as well as any symbol that contains `d'.
12197   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12198   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12199   # platforms (ab)use it in PIC code, but their linkers get confused if
12200   # the symbol is explicitly referenced.  Since portable code cannot
12201   # rely on this symbol name, it's probably fine to never include it in
12202   # preloaded symbol tables.
12203   extract_expsyms_cmds=
12204
12205   case $host_os in
12206   cygwin* | mingw* | pw32*)
12207     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12208     # When not using gcc, we currently assume that we are using
12209     # Microsoft Visual C++.
12210     if test "$GCC" != yes; then
12211       with_gnu_ld=no
12212     fi
12213     ;;
12214   openbsd*)
12215     with_gnu_ld=no
12216     ;;
12217   esac
12218
12219   ld_shlibs=yes
12220   if test "$with_gnu_ld" = yes; then
12221     # If archive_cmds runs LD, not CC, wlarc should be empty
12222     wlarc='${wl}'
12223
12224     # See if GNU ld supports shared libraries.
12225     case $host_os in
12226     aix3* | aix4* | aix5*)
12227       # On AIX/PPC, the GNU linker is very broken
12228       if test "$host_cpu" != ia64; then
12229         ld_shlibs=no
12230         cat <<EOF 1>&2
12231
12232 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12233 *** to be unable to reliably create shared libraries on AIX.
12234 *** Therefore, libtool is disabling shared libraries support.  If you
12235 *** really care for shared libraries, you may want to modify your PATH
12236 *** so that a non-GNU linker is found, and then restart.
12237
12238 EOF
12239       fi
12240       ;;
12241
12242     amigaos*)
12243       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)'
12244       hardcode_libdir_flag_spec='-L$libdir'
12245       hardcode_minus_L=yes
12246
12247       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12248       # that the semantics of dynamic libraries on AmigaOS, at least up
12249       # to version 4, is to share data among multiple programs linked
12250       # with the same dynamic library.  Since this doesn't match the
12251       # behavior of shared libraries on other platforms, we can't use
12252       # them.
12253       ld_shlibs=no
12254       ;;
12255
12256     beos*)
12257       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12258         allow_undefined_flag=unsupported
12259         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12260         # support --undefined.  This deserves some investigation.  FIXME
12261         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12262       else
12263         ld_shlibs=no
12264       fi
12265       ;;
12266
12267     cygwin* | mingw* | pw32*)
12268       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12269       # as there is no search path for DLLs.
12270       hardcode_libdir_flag_spec='-L$libdir'
12271       allow_undefined_flag=unsupported
12272       always_export_symbols=no
12273       enable_shared_with_static_runtimes=yes
12274       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12275
12276       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12277         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12278         # If the export-symbols file already is a .def file (1st line
12279         # is EXPORTS), use it as is; otherwise, prepend...
12280         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12281           cp $export_symbols $output_objdir/$soname.def;
12282         else
12283           echo EXPORTS > $output_objdir/$soname.def;
12284           cat $export_symbols >> $output_objdir/$soname.def;
12285         fi~
12286         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12287       else
12288         ld_shlibs=no
12289       fi
12290       ;;
12291
12292     netbsd*)
12293       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12294         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12295         wlarc=
12296       else
12297         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12298         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12299       fi
12300       ;;
12301
12302     solaris* | sysv5*)
12303       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12304         ld_shlibs=no
12305         cat <<EOF 1>&2
12306
12307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12308 *** create shared libraries on Solaris systems.  Therefore, libtool
12309 *** is disabling shared libraries support.  We urge you to upgrade GNU
12310 *** binutils to release 2.9.1 or newer.  Another option is to modify
12311 *** your PATH or compiler configuration so that the native linker is
12312 *** used, and then restart.
12313
12314 EOF
12315       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12318       else
12319         ld_shlibs=no
12320       fi
12321       ;;
12322
12323     sunos4*)
12324       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12325       wlarc=
12326       hardcode_direct=yes
12327       hardcode_shlibpath_var=no
12328       ;;
12329
12330   linux*)
12331     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12332         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12333         archive_cmds="$tmp_archive_cmds"
12334       supports_anon_versioning=no
12335       case `$LD -v 2>/dev/null` in
12336         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12337         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12338         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12339         *\ 2.11.*) ;; # other 2.11 versions
12340         *) supports_anon_versioning=yes ;;
12341       esac
12342       if test $supports_anon_versioning = yes; then
12343         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12345 $echo "local: *; };" >> $output_objdir/$libname.ver~
12346         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12347       else
12348         archive_expsym_cmds="$tmp_archive_cmds"
12349       fi
12350     else
12351       ld_shlibs=no
12352     fi
12353     ;;
12354
12355     *)
12356       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12357         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12358         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12359       else
12360         ld_shlibs=no
12361       fi
12362       ;;
12363     esac
12364
12365     if test "$ld_shlibs" = yes; then
12366       runpath_var=LD_RUN_PATH
12367       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12368       export_dynamic_flag_spec='${wl}--export-dynamic'
12369       # ancient GNU ld didn't support --whole-archive et. al.
12370       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12371         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12372       else
12373         whole_archive_flag_spec=
12374       fi
12375     fi
12376   else
12377     # PORTME fill in a description of your system's linker (not GNU ld)
12378     case $host_os in
12379     aix3*)
12380       allow_undefined_flag=unsupported
12381       always_export_symbols=yes
12382       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'
12383       # Note: this linker hardcodes the directories in LIBPATH if there
12384       # are no directories specified by -L.
12385       hardcode_minus_L=yes
12386       if test "$GCC" = yes && test -z "$link_static_flag"; then
12387         # Neither direct hardcoding nor static linking is supported with a
12388         # broken collect2.
12389         hardcode_direct=unsupported
12390       fi
12391       ;;
12392
12393     aix4* | aix5*)
12394       if test "$host_cpu" = ia64; then
12395         # On IA64, the linker does run time linking by default, so we don't
12396         # have to do anything special.
12397         aix_use_runtimelinking=no
12398         exp_sym_flag='-Bexport'
12399         no_entry_flag=""
12400       else
12401         # If we're using GNU nm, then we don't want the "-C" option.
12402         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12403         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12404           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'
12405         else
12406           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'
12407         fi
12408         aix_use_runtimelinking=no
12409
12410         # Test if we are trying to use run time linking or normal
12411         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12412         # need to do runtime linking.
12413         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12414           for ld_flag in $LDFLAGS; do
12415           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12416             aix_use_runtimelinking=yes
12417             break
12418           fi
12419           done
12420         esac
12421
12422         exp_sym_flag='-bexport'
12423         no_entry_flag='-bnoentry'
12424       fi
12425
12426       # When large executables or shared objects are built, AIX ld can
12427       # have problems creating the table of contents.  If linking a library
12428       # or program results in "error TOC overflow" add -mminimal-toc to
12429       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12430       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12431
12432       archive_cmds=''
12433       hardcode_direct=yes
12434       hardcode_libdir_separator=':'
12435       link_all_deplibs=yes
12436
12437       if test "$GCC" = yes; then
12438         case $host_os in aix4.012|aix4.012.*)
12439         # We only want to do this on AIX 4.2 and lower, the check
12440         # below for broken collect2 doesn't work under 4.3+
12441           collect2name=`${CC} -print-prog-name=collect2`
12442           if test -f "$collect2name" && \
12443            strings "$collect2name" | grep resolve_lib_name >/dev/null
12444           then
12445           # We have reworked collect2
12446           hardcode_direct=yes
12447           else
12448           # We have old collect2
12449           hardcode_direct=unsupported
12450           # It fails to find uninstalled libraries when the uninstalled
12451           # path is not listed in the libpath.  Setting hardcode_minus_L
12452           # to unsupported forces relinking
12453           hardcode_minus_L=yes
12454           hardcode_libdir_flag_spec='-L$libdir'
12455           hardcode_libdir_separator=
12456           fi
12457         esac
12458         shared_flag='-shared'
12459       else
12460         # not using gcc
12461         if test "$host_cpu" = ia64; then
12462         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12463         # chokes on -Wl,-G. The following line is correct:
12464           shared_flag='-G'
12465         else
12466         if test "$aix_use_runtimelinking" = yes; then
12467             shared_flag='${wl}-G'
12468           else
12469             shared_flag='${wl}-bM:SRE'
12470         fi
12471         fi
12472       fi
12473
12474       # It seems that -bexpall does not export symbols beginning with
12475       # underscore (_), so it is better to generate a list of symbols to export.
12476       always_export_symbols=yes
12477       if test "$aix_use_runtimelinking" = yes; then
12478         # Warning - without using the other runtime loading flags (-brtl),
12479         # -berok will link without error, but may produce a broken library.
12480         allow_undefined_flag='-berok'
12481        # Determine the default libpath from the value encoded in an empty executable.
12482        cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488
12489 int
12490 main ()
12491 {
12492
12493   ;
12494   return 0;
12495 }
12496 _ACEOF
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499   (eval $ac_link) 2>conftest.er1
12500   ac_status=$?
12501   grep -v '^ *+' conftest.er1 >conftest.err
12502   rm -f conftest.er1
12503   cat conftest.err >&5
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); } &&
12506          { ac_try='test -z "$ac_c_werror_flag"
12507                          || test ! -s conftest.err'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; } &&
12513          { ac_try='test -s conftest$ac_exeext'
12514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515   (eval $ac_try) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; }; then
12519
12520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12521 }'`
12522 # Check for a 64-bit object if we didn't find anything.
12523 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; }
12524 }'`; fi
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 fi
12530 rm -f conftest.err conftest.$ac_objext \
12531       conftest$ac_exeext conftest.$ac_ext
12532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12533
12534        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12535         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"
12536        else
12537         if test "$host_cpu" = ia64; then
12538           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12539           allow_undefined_flag="-z nodefs"
12540           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"
12541         else
12542          # Determine the default libpath from the value encoded in an empty executable.
12543          cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549
12550 int
12551 main ()
12552 {
12553
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560   (eval $ac_link) 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } &&
12567          { ac_try='test -z "$ac_c_werror_flag"
12568                          || test ! -s conftest.err'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; } &&
12574          { ac_try='test -s conftest$ac_exeext'
12575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576   (eval $ac_try) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; }; then
12580
12581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12582 }'`
12583 # Check for a 64-bit object if we didn't find anything.
12584 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; }
12585 }'`; fi
12586 else
12587   echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 fi
12591 rm -f conftest.err conftest.$ac_objext \
12592       conftest$ac_exeext conftest.$ac_ext
12593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12594
12595          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12596           # Warning - without using the other run time loading flags,
12597           # -berok will link without error, but may produce a broken library.
12598           no_undefined_flag=' ${wl}-bernotok'
12599           allow_undefined_flag=' ${wl}-berok'
12600           # -bexpall does not export symbols beginning with underscore (_)
12601           always_export_symbols=yes
12602           # Exported symbols can be pulled into shared objects from archives
12603           whole_archive_flag_spec=' '
12604           archive_cmds_need_lc=yes
12605           # This is similar to how AIX traditionally builds it's shared libraries.
12606           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'
12607         fi
12608       fi
12609       ;;
12610
12611     amigaos*)
12612       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)'
12613       hardcode_libdir_flag_spec='-L$libdir'
12614       hardcode_minus_L=yes
12615       # see comment about different semantics on the GNU ld section
12616       ld_shlibs=no
12617       ;;
12618
12619     bsdi[45]*)
12620       export_dynamic_flag_spec=-rdynamic
12621       ;;
12622
12623     cygwin* | mingw* | pw32*)
12624       # When not using gcc, we currently assume that we are using
12625       # Microsoft Visual C++.
12626       # hardcode_libdir_flag_spec is actually meaningless, as there is
12627       # no search path for DLLs.
12628       hardcode_libdir_flag_spec=' '
12629       allow_undefined_flag=unsupported
12630       # Tell ltmain to make .lib files, not .a files.
12631       libext=lib
12632       # Tell ltmain to make .dll files, not .so files.
12633       shrext_cmds=".dll"
12634       # FIXME: Setting linknames here is a bad hack.
12635       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12636       # The linker will automatically build a .lib file if we build a DLL.
12637       old_archive_From_new_cmds='true'
12638       # FIXME: Should let the user specify the lib program.
12639       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12640       fix_srcfile_path='`cygpath -w "$srcfile"`'
12641       enable_shared_with_static_runtimes=yes
12642       ;;
12643
12644     darwin* | rhapsody*)
12645       case "$host_os" in
12646         rhapsody* | darwin1.[012])
12647          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12648          ;;
12649        *) # Darwin 1.3 on
12650          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12651            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12652          else
12653            case ${MACOSX_DEPLOYMENT_TARGET} in
12654              10.[012])
12655                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12656                ;;
12657              10.*)
12658                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12659                ;;
12660            esac
12661          fi
12662          ;;
12663       esac
12664       archive_cmds_need_lc=no
12665       hardcode_direct=no
12666       hardcode_automatic=yes
12667       hardcode_shlibpath_var=unsupported
12668       whole_archive_flag_spec=''
12669       link_all_deplibs=yes
12670     if test "$GCC" = yes ; then
12671         output_verbose_link_cmd='echo'
12672         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12673       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12674       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12675       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}'
12676       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}'
12677     else
12678       case "$cc_basename" in
12679         xlc*)
12680          output_verbose_link_cmd='echo'
12681          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12682          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12683           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12684          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}'
12685           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}'
12686           ;;
12687        *)
12688          ld_shlibs=no
12689           ;;
12690       esac
12691     fi
12692       ;;
12693
12694     dgux*)
12695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12696       hardcode_libdir_flag_spec='-L$libdir'
12697       hardcode_shlibpath_var=no
12698       ;;
12699
12700     freebsd1*)
12701       ld_shlibs=no
12702       ;;
12703
12704     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12705     # support.  Future versions do this automatically, but an explicit c++rt0.o
12706     # does not break anything, and helps significantly (at the cost of a little
12707     # extra space).
12708     freebsd2.2*)
12709       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12710       hardcode_libdir_flag_spec='-R$libdir'
12711       hardcode_direct=yes
12712       hardcode_shlibpath_var=no
12713       ;;
12714
12715     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12716     freebsd2*)
12717       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12718       hardcode_direct=yes
12719       hardcode_minus_L=yes
12720       hardcode_shlibpath_var=no
12721       ;;
12722
12723     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12724     freebsd* | kfreebsd*-gnu)
12725       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12726       hardcode_libdir_flag_spec='-R$libdir'
12727       hardcode_direct=yes
12728       hardcode_shlibpath_var=no
12729       ;;
12730
12731     hpux9*)
12732       if test "$GCC" = yes; then
12733         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'
12734       else
12735         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'
12736       fi
12737       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12738       hardcode_libdir_separator=:
12739       hardcode_direct=yes
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       export_dynamic_flag_spec='${wl}-E'
12745       ;;
12746
12747     hpux10* | hpux11*)
12748       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12749         case "$host_cpu" in
12750         hppa*64*|ia64*)
12751           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12752           ;;
12753         *)
12754           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12755           ;;
12756         esac
12757       else
12758         case "$host_cpu" in
12759         hppa*64*|ia64*)
12760           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12761           ;;
12762         *)
12763           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12764           ;;
12765         esac
12766       fi
12767       if test "$with_gnu_ld" = no; then
12768         case "$host_cpu" in
12769         hppa*64*)
12770           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12771           hardcode_libdir_flag_spec_ld='+b $libdir'
12772           hardcode_libdir_separator=:
12773           hardcode_direct=no
12774           hardcode_shlibpath_var=no
12775           ;;
12776         ia64*)
12777           hardcode_libdir_flag_spec='-L$libdir'
12778           hardcode_direct=no
12779           hardcode_shlibpath_var=no
12780
12781           # hardcode_minus_L: Not really in the search PATH,
12782           # but as the default location of the library.
12783           hardcode_minus_L=yes
12784           ;;
12785         *)
12786           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12787           hardcode_libdir_separator=:
12788           hardcode_direct=yes
12789           export_dynamic_flag_spec='${wl}-E'
12790
12791           # hardcode_minus_L: Not really in the search PATH,
12792           # but as the default location of the library.
12793           hardcode_minus_L=yes
12794           ;;
12795         esac
12796       fi
12797       ;;
12798
12799     irix5* | irix6* | nonstopux*)
12800       if test "$GCC" = yes; then
12801         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'
12802       else
12803         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'
12804         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12805       fi
12806       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12807       hardcode_libdir_separator=:
12808       link_all_deplibs=yes
12809       ;;
12810
12811     netbsd*)
12812       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12813         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12814       else
12815         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12816       fi
12817       hardcode_libdir_flag_spec='-R$libdir'
12818       hardcode_direct=yes
12819       hardcode_shlibpath_var=no
12820       ;;
12821
12822     newsos6)
12823       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12824       hardcode_direct=yes
12825       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12826       hardcode_libdir_separator=:
12827       hardcode_shlibpath_var=no
12828       ;;
12829
12830     openbsd*)
12831       hardcode_direct=yes
12832       hardcode_shlibpath_var=no
12833       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12834         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12835         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12836         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12837         export_dynamic_flag_spec='${wl}-E'
12838       else
12839        case $host_os in
12840          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12841            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12842            hardcode_libdir_flag_spec='-R$libdir'
12843            ;;
12844          *)
12845            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12846            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12847            ;;
12848        esac
12849       fi
12850       ;;
12851
12852     os2*)
12853       hardcode_libdir_flag_spec='-L$libdir'
12854       hardcode_minus_L=yes
12855       allow_undefined_flag=unsupported
12856       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'
12857       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12858       ;;
12859
12860     osf3*)
12861       if test "$GCC" = yes; then
12862         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12863         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'
12864       else
12865         allow_undefined_flag=' -expect_unresolved \*'
12866         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'
12867       fi
12868       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12869       hardcode_libdir_separator=:
12870       ;;
12871
12872     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12873       if test "$GCC" = yes; then
12874         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12875         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'
12876         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12877       else
12878         allow_undefined_flag=' -expect_unresolved \*'
12879         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'
12880         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12881         $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'
12882
12883         # Both c and cxx compiler support -rpath directly
12884         hardcode_libdir_flag_spec='-rpath $libdir'
12885       fi
12886       hardcode_libdir_separator=:
12887       ;;
12888
12889     sco3.2v5*)
12890       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12891       hardcode_shlibpath_var=no
12892       export_dynamic_flag_spec='${wl}-Bexport'
12893       runpath_var=LD_RUN_PATH
12894       hardcode_runpath_var=yes
12895       ;;
12896
12897     solaris*)
12898       no_undefined_flag=' -z text'
12899       if test "$GCC" = yes; then
12900         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12901         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12902           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12903       else
12904         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12906         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12907       fi
12908       hardcode_libdir_flag_spec='-R$libdir'
12909       hardcode_shlibpath_var=no
12910       case $host_os in
12911       solaris2.[0-5] | solaris2.[0-5].*) ;;
12912       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12913         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12914       esac
12915       link_all_deplibs=yes
12916       ;;
12917
12918     sunos4*)
12919       if test "x$host_vendor" = xsequent; then
12920         # Use $CC to link under sequent, because it throws in some extra .o
12921         # files that make .init and .fini sections work.
12922         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12923       else
12924         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12925       fi
12926       hardcode_libdir_flag_spec='-L$libdir'
12927       hardcode_direct=yes
12928       hardcode_minus_L=yes
12929       hardcode_shlibpath_var=no
12930       ;;
12931
12932     sysv4)
12933       case $host_vendor in
12934         sni)
12935           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936           hardcode_direct=yes # is this really true???
12937         ;;
12938         siemens)
12939           ## LD is ld it makes a PLAMLIB
12940           ## CC just makes a GrossModule.
12941           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12942           reload_cmds='$CC -r -o $output$reload_objs'
12943           hardcode_direct=no
12944         ;;
12945         motorola)
12946           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12947           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12948         ;;
12949       esac
12950       runpath_var='LD_RUN_PATH'
12951       hardcode_shlibpath_var=no
12952       ;;
12953
12954     sysv4.3*)
12955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12956       hardcode_shlibpath_var=no
12957       export_dynamic_flag_spec='-Bexport'
12958       ;;
12959
12960     sysv4*MP*)
12961       if test -d /usr/nec; then
12962         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963         hardcode_shlibpath_var=no
12964         runpath_var=LD_RUN_PATH
12965         hardcode_runpath_var=yes
12966         ld_shlibs=yes
12967       fi
12968       ;;
12969
12970     sysv4.2uw2*)
12971       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12972       hardcode_direct=yes
12973       hardcode_minus_L=no
12974       hardcode_shlibpath_var=no
12975       hardcode_runpath_var=yes
12976       runpath_var=LD_RUN_PATH
12977       ;;
12978
12979    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12980       no_undefined_flag='${wl}-z ${wl}text'
12981       if test "$GCC" = yes; then
12982         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12983       else
12984         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12985       fi
12986       runpath_var='LD_RUN_PATH'
12987       hardcode_shlibpath_var=no
12988       ;;
12989
12990     sysv5*)
12991       no_undefined_flag=' -z text'
12992       # $CC -shared without GNU ld will not create a library from C++
12993       # object files and a static libstdc++, better avoid it by now
12994       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12995       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12996                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12997       hardcode_libdir_flag_spec=
12998       hardcode_shlibpath_var=no
12999       runpath_var='LD_RUN_PATH'
13000       ;;
13001
13002     uts4*)
13003       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004       hardcode_libdir_flag_spec='-L$libdir'
13005       hardcode_shlibpath_var=no
13006       ;;
13007
13008     *)
13009       ld_shlibs=no
13010       ;;
13011     esac
13012   fi
13013
13014 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13015 echo "${ECHO_T}$ld_shlibs" >&6
13016 test "$ld_shlibs" = no && can_build_shared=no
13017
13018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13019 if test "$GCC" = yes; then
13020   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13021 fi
13022
13023 #
13024 # Do we need to explicitly link libc?
13025 #
13026 case "x$archive_cmds_need_lc" in
13027 x|xyes)
13028   # Assume -lc should be added
13029   archive_cmds_need_lc=yes
13030
13031   if test "$enable_shared" = yes && test "$GCC" = yes; then
13032     case $archive_cmds in
13033     *'~'*)
13034       # FIXME: we may have to deal with multi-command sequences.
13035       ;;
13036     '$CC '*)
13037       # Test whether the compiler implicitly links with -lc since on some
13038       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13039       # to ld, don't add -lc before -lgcc.
13040       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13042       $rm conftest*
13043       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13044
13045       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046   (eval $ac_compile) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } 2>conftest.err; then
13050         soname=conftest
13051         lib=conftest
13052         libobjs=conftest.$ac_objext
13053         deplibs=
13054         wl=$lt_prog_compiler_wl
13055         compiler_flags=-v
13056         linker_flags=-v
13057         verstring=
13058         output_objdir=.
13059         libname=conftest
13060         lt_save_allow_undefined_flag=$allow_undefined_flag
13061         allow_undefined_flag=
13062         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13063   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }
13067         then
13068           archive_cmds_need_lc=no
13069         else
13070           archive_cmds_need_lc=yes
13071         fi
13072         allow_undefined_flag=$lt_save_allow_undefined_flag
13073       else
13074         cat conftest.err 1>&5
13075       fi
13076       $rm conftest*
13077       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13078 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13079       ;;
13080     esac
13081   fi
13082   ;;
13083 esac
13084
13085 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13087 library_names_spec=
13088 libname_spec='lib$name'
13089 soname_spec=
13090 shrext_cmds=".so"
13091 postinstall_cmds=
13092 postuninstall_cmds=
13093 finish_cmds=
13094 finish_eval=
13095 shlibpath_var=
13096 shlibpath_overrides_runpath=unknown
13097 version_type=none
13098 dynamic_linker="$host_os ld.so"
13099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13100 if test "$GCC" = yes; then
13101   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13102   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13103     # if the path contains ";" then we assume it to be the separator
13104     # otherwise default to the standard path separator (i.e. ":") - it is
13105     # assumed that no part of a normal pathname contains ";" but that should
13106     # okay in the real world where ";" in dirpaths is itself problematic.
13107     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13108   else
13109     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13110   fi
13111 else
13112   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13113 fi
13114 need_lib_prefix=unknown
13115 hardcode_into_libs=no
13116
13117 # when you set need_version to no, make sure it does not cause -set_version
13118 # flags to be left without arguments
13119 need_version=unknown
13120
13121 case $host_os in
13122 aix3*)
13123   version_type=linux
13124   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13125   shlibpath_var=LIBPATH
13126
13127   # AIX 3 has no versioning support, so we append a major version to the name.
13128   soname_spec='${libname}${release}${shared_ext}$major'
13129   ;;
13130
13131 aix4* | aix5*)
13132   version_type=linux
13133   need_lib_prefix=no
13134   need_version=no
13135   hardcode_into_libs=yes
13136   if test "$host_cpu" = ia64; then
13137     # AIX 5 supports IA64
13138     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13139     shlibpath_var=LD_LIBRARY_PATH
13140   else
13141     # With GCC up to 2.95.x, collect2 would create an import file
13142     # for dependence libraries.  The import file would start with
13143     # the line `#! .'.  This would cause the generated library to
13144     # depend on `.', always an invalid library.  This was fixed in
13145     # development snapshots of GCC prior to 3.0.
13146     case $host_os in
13147       aix4 | aix4.[01] | aix4.[01].*)
13148       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13149            echo ' yes '
13150            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13151         :
13152       else
13153         can_build_shared=no
13154       fi
13155       ;;
13156     esac
13157     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13158     # soname into executable. Probably we can add versioning support to
13159     # collect2, so additional links can be useful in future.
13160     if test "$aix_use_runtimelinking" = yes; then
13161       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13162       # instead of lib<name>.a to let people know that these are not
13163       # typical AIX shared libraries.
13164       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13165     else
13166       # We preserve .a as extension for shared libraries through AIX4.2
13167       # and later when we are not doing run time linking.
13168       library_names_spec='${libname}${release}.a $libname.a'
13169       soname_spec='${libname}${release}${shared_ext}$major'
13170     fi
13171     shlibpath_var=LIBPATH
13172   fi
13173   ;;
13174
13175 amigaos*)
13176   library_names_spec='$libname.ixlibrary $libname.a'
13177   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13178   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'
13179   ;;
13180
13181 beos*)
13182   library_names_spec='${libname}${shared_ext}'
13183   dynamic_linker="$host_os ld.so"
13184   shlibpath_var=LIBRARY_PATH
13185   ;;
13186
13187 bsdi[45]*)
13188   version_type=linux
13189   need_version=no
13190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191   soname_spec='${libname}${release}${shared_ext}$major'
13192   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13193   shlibpath_var=LD_LIBRARY_PATH
13194   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13195   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13196   # the default ld.so.conf also contains /usr/contrib/lib and
13197   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13198   # libtool to hard-code these into programs
13199   ;;
13200
13201 cygwin* | mingw* | pw32*)
13202   version_type=windows
13203   shrext_cmds=".dll"
13204   need_version=no
13205   need_lib_prefix=no
13206
13207   case $GCC,$host_os in
13208   yes,cygwin* | yes,mingw* | yes,pw32*)
13209     library_names_spec='$libname.dll.a'
13210     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13211     postinstall_cmds='base_file=`basename \${file}`~
13212       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13213       dldir=$destdir/`dirname \$dlpath`~
13214       test -d \$dldir || mkdir -p \$dldir~
13215       $install_prog $dir/$dlname \$dldir/$dlname'
13216     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13217       dlpath=$dir/\$dldll~
13218        $rm \$dlpath'
13219     shlibpath_overrides_runpath=yes
13220
13221     case $host_os in
13222     cygwin*)
13223       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13224       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13225       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13226       ;;
13227     mingw*)
13228       # MinGW DLLs use traditional 'lib' prefix
13229       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13230       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13231       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13232         # It is most probably a Windows format PATH printed by
13233         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13234         # path with ; separators, and with drive letters. We can handle the
13235         # drive letters (cygwin fileutils understands them), so leave them,
13236         # especially as we might pass files found there to a mingw objdump,
13237         # which wouldn't understand a cygwinified path. Ahh.
13238         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13239       else
13240         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13241       fi
13242       ;;
13243     pw32*)
13244       # pw32 DLLs use 'pw' prefix rather than 'lib'
13245       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13246       ;;
13247     esac
13248     ;;
13249
13250   *)
13251     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13252     ;;
13253   esac
13254   dynamic_linker='Win32 ld.exe'
13255   # FIXME: first we should search . and the directory the executable is in
13256   shlibpath_var=PATH
13257   ;;
13258
13259 darwin* | rhapsody*)
13260   dynamic_linker="$host_os dyld"
13261   version_type=darwin
13262   need_lib_prefix=no
13263   need_version=no
13264   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13265   soname_spec='${libname}${release}${major}$shared_ext'
13266   shlibpath_overrides_runpath=yes
13267   shlibpath_var=DYLD_LIBRARY_PATH
13268   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13269   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13270   if test "$GCC" = yes; then
13271     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"`
13272   else
13273     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13274   fi
13275   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13276   ;;
13277
13278 dgux*)
13279   version_type=linux
13280   need_lib_prefix=no
13281   need_version=no
13282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13283   soname_spec='${libname}${release}${shared_ext}$major'
13284   shlibpath_var=LD_LIBRARY_PATH
13285   ;;
13286
13287 freebsd1*)
13288   dynamic_linker=no
13289   ;;
13290
13291 kfreebsd*-gnu)
13292   version_type=linux
13293   need_lib_prefix=no
13294   need_version=no
13295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13296   soname_spec='${libname}${release}${shared_ext}$major'
13297   shlibpath_var=LD_LIBRARY_PATH
13298   shlibpath_overrides_runpath=no
13299   hardcode_into_libs=yes
13300   dynamic_linker='GNU ld.so'
13301   ;;
13302
13303 freebsd*)
13304   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13305   version_type=freebsd-$objformat
13306   case $version_type in
13307     freebsd-elf*)
13308       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13309       need_version=no
13310       need_lib_prefix=no
13311       ;;
13312     freebsd-*)
13313       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13314       need_version=yes
13315       ;;
13316   esac
13317   shlibpath_var=LD_LIBRARY_PATH
13318   case $host_os in
13319   freebsd2*)
13320     shlibpath_overrides_runpath=yes
13321     ;;
13322   freebsd3.01* | freebsdelf3.01*)
13323     shlibpath_overrides_runpath=yes
13324     hardcode_into_libs=yes
13325     ;;
13326   *) # from 3.2 on
13327     shlibpath_overrides_runpath=no
13328     hardcode_into_libs=yes
13329     ;;
13330   esac
13331   ;;
13332
13333 gnu*)
13334   version_type=linux
13335   need_lib_prefix=no
13336   need_version=no
13337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13338   soname_spec='${libname}${release}${shared_ext}$major'
13339   shlibpath_var=LD_LIBRARY_PATH
13340   hardcode_into_libs=yes
13341   ;;
13342
13343 hpux9* | hpux10* | hpux11*)
13344   # Give a soname corresponding to the major version so that dld.sl refuses to
13345   # link against other versions.
13346   version_type=sunos
13347   need_lib_prefix=no
13348   need_version=no
13349   case "$host_cpu" in
13350   ia64*)
13351     shrext_cmds='.so'
13352     hardcode_into_libs=yes
13353     dynamic_linker="$host_os dld.so"
13354     shlibpath_var=LD_LIBRARY_PATH
13355     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357     soname_spec='${libname}${release}${shared_ext}$major'
13358     if test "X$HPUX_IA64_MODE" = X32; then
13359       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13360     else
13361       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13362     fi
13363     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13364     ;;
13365    hppa*64*)
13366      shrext_cmds='.sl'
13367      hardcode_into_libs=yes
13368      dynamic_linker="$host_os dld.sl"
13369      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13370      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372      soname_spec='${libname}${release}${shared_ext}$major'
13373      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13374      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13375      ;;
13376    *)
13377     shrext_cmds='.sl'
13378     dynamic_linker="$host_os dld.sl"
13379     shlibpath_var=SHLIB_PATH
13380     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382     soname_spec='${libname}${release}${shared_ext}$major'
13383     ;;
13384   esac
13385   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13386   postinstall_cmds='chmod 555 $lib'
13387   ;;
13388
13389 irix5* | irix6* | nonstopux*)
13390   case $host_os in
13391     nonstopux*) version_type=nonstopux ;;
13392     *)
13393         if test "$lt_cv_prog_gnu_ld" = yes; then
13394                 version_type=linux
13395         else
13396                 version_type=irix
13397         fi ;;
13398   esac
13399   need_lib_prefix=no
13400   need_version=no
13401   soname_spec='${libname}${release}${shared_ext}$major'
13402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13403   case $host_os in
13404   irix5* | nonstopux*)
13405     libsuff= shlibsuff=
13406     ;;
13407   *)
13408     case $LD in # libtool.m4 will add one of these switches to LD
13409     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13410       libsuff= shlibsuff= libmagic=32-bit;;
13411     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13412       libsuff=32 shlibsuff=N32 libmagic=N32;;
13413     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13414       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13415     *) libsuff= shlibsuff= libmagic=never-match;;
13416     esac
13417     ;;
13418   esac
13419   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13420   shlibpath_overrides_runpath=no
13421   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13422   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13423   hardcode_into_libs=yes
13424   ;;
13425
13426 # No shared lib support for Linux oldld, aout, or coff.
13427 linux*oldld* | linux*aout* | linux*coff*)
13428   dynamic_linker=no
13429   ;;
13430
13431 # This must be Linux ELF.
13432 linux*)
13433   version_type=linux
13434   need_lib_prefix=no
13435   need_version=no
13436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437   soname_spec='${libname}${release}${shared_ext}$major'
13438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13439   shlibpath_var=LD_LIBRARY_PATH
13440   shlibpath_overrides_runpath=no
13441   # This implies no fast_install, which is unacceptable.
13442   # Some rework will be needed to allow for fast_install
13443   # before this can be enabled.
13444   hardcode_into_libs=yes
13445
13446   # Append ld.so.conf contents to the search path
13447   if test -f /etc/ld.so.conf; then
13448     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13449     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13450   fi
13451
13452   # We used to test for /lib/ld.so.1 and disable shared libraries on
13453   # powerpc, because MkLinux only supported shared libraries with the
13454   # GNU dynamic linker.  Since this was broken with cross compilers,
13455   # most powerpc-linux boxes support dynamic linking these days and
13456   # people can always --disable-shared, the test was removed, and we
13457   # assume the GNU/Linux dynamic linker is in use.
13458   dynamic_linker='GNU/Linux ld.so'
13459   ;;
13460
13461 knetbsd*-gnu)
13462   version_type=linux
13463   need_lib_prefix=no
13464   need_version=no
13465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13466   soname_spec='${libname}${release}${shared_ext}$major'
13467   shlibpath_var=LD_LIBRARY_PATH
13468   shlibpath_overrides_runpath=no
13469   hardcode_into_libs=yes
13470   dynamic_linker='GNU ld.so'
13471   ;;
13472
13473 netbsd*)
13474   version_type=sunos
13475   need_lib_prefix=no
13476   need_version=no
13477   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13479     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480     dynamic_linker='NetBSD (a.out) ld.so'
13481   else
13482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13483     soname_spec='${libname}${release}${shared_ext}$major'
13484     dynamic_linker='NetBSD ld.elf_so'
13485   fi
13486   shlibpath_var=LD_LIBRARY_PATH
13487   shlibpath_overrides_runpath=yes
13488   hardcode_into_libs=yes
13489   ;;
13490
13491 newsos6)
13492   version_type=linux
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494   shlibpath_var=LD_LIBRARY_PATH
13495   shlibpath_overrides_runpath=yes
13496   ;;
13497
13498 nto-qnx*)
13499   version_type=linux
13500   need_lib_prefix=no
13501   need_version=no
13502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503   soname_spec='${libname}${release}${shared_ext}$major'
13504   shlibpath_var=LD_LIBRARY_PATH
13505   shlibpath_overrides_runpath=yes
13506   ;;
13507
13508 openbsd*)
13509   version_type=sunos
13510   need_lib_prefix=no
13511   need_version=no
13512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13514   shlibpath_var=LD_LIBRARY_PATH
13515   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13516     case $host_os in
13517       openbsd2.[89] | openbsd2.[89].*)
13518         shlibpath_overrides_runpath=no
13519         ;;
13520       *)
13521         shlibpath_overrides_runpath=yes
13522         ;;
13523       esac
13524   else
13525     shlibpath_overrides_runpath=yes
13526   fi
13527   ;;
13528
13529 os2*)
13530   libname_spec='$name'
13531   shrext_cmds=".dll"
13532   need_lib_prefix=no
13533   library_names_spec='$libname${shared_ext} $libname.a'
13534   dynamic_linker='OS/2 ld.exe'
13535   shlibpath_var=LIBPATH
13536   ;;
13537
13538 osf3* | osf4* | osf5*)
13539   version_type=osf
13540   need_lib_prefix=no
13541   need_version=no
13542   soname_spec='${libname}${release}${shared_ext}$major'
13543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544   shlibpath_var=LD_LIBRARY_PATH
13545   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13546   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13547   ;;
13548
13549 sco3.2v5*)
13550   version_type=osf
13551   soname_spec='${libname}${release}${shared_ext}$major'
13552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13553   shlibpath_var=LD_LIBRARY_PATH
13554   ;;
13555
13556 solaris*)
13557   version_type=linux
13558   need_lib_prefix=no
13559   need_version=no
13560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561   soname_spec='${libname}${release}${shared_ext}$major'
13562   shlibpath_var=LD_LIBRARY_PATH
13563   shlibpath_overrides_runpath=yes
13564   hardcode_into_libs=yes
13565   # ldd complains unless libraries are executable
13566   postinstall_cmds='chmod +x $lib'
13567   ;;
13568
13569 sunos4*)
13570   version_type=sunos
13571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13572   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13573   shlibpath_var=LD_LIBRARY_PATH
13574   shlibpath_overrides_runpath=yes
13575   if test "$with_gnu_ld" = yes; then
13576     need_lib_prefix=no
13577   fi
13578   need_version=yes
13579   ;;
13580
13581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13582   version_type=linux
13583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584   soname_spec='${libname}${release}${shared_ext}$major'
13585   shlibpath_var=LD_LIBRARY_PATH
13586   case $host_vendor in
13587     sni)
13588       shlibpath_overrides_runpath=no
13589       need_lib_prefix=no
13590       export_dynamic_flag_spec='${wl}-Blargedynsym'
13591       runpath_var=LD_RUN_PATH
13592       ;;
13593     siemens)
13594       need_lib_prefix=no
13595       ;;
13596     motorola)
13597       need_lib_prefix=no
13598       need_version=no
13599       shlibpath_overrides_runpath=no
13600       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13601       ;;
13602   esac
13603   ;;
13604
13605 sysv4*MP*)
13606   if test -d /usr/nec ;then
13607     version_type=linux
13608     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13609     soname_spec='$libname${shared_ext}.$major'
13610     shlibpath_var=LD_LIBRARY_PATH
13611   fi
13612   ;;
13613
13614 uts4*)
13615   version_type=linux
13616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617   soname_spec='${libname}${release}${shared_ext}$major'
13618   shlibpath_var=LD_LIBRARY_PATH
13619   ;;
13620
13621 *)
13622   dynamic_linker=no
13623   ;;
13624 esac
13625 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13626 echo "${ECHO_T}$dynamic_linker" >&6
13627 test "$dynamic_linker" = no && can_build_shared=no
13628
13629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13631 hardcode_action=
13632 if test -n "$hardcode_libdir_flag_spec" || \
13633    test -n "$runpath_var" || \
13634    test "X$hardcode_automatic" = "Xyes" ; then
13635
13636   # We can hardcode non-existant directories.
13637   if test "$hardcode_direct" != no &&
13638      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639      # have to relink, otherwise we might link with an installed library
13640      # when we should be linking with a yet-to-be-installed one
13641      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13642      test "$hardcode_minus_L" != no; then
13643     # Linking always hardcodes the temporary library directory.
13644     hardcode_action=relink
13645   else
13646     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647     hardcode_action=immediate
13648   fi
13649 else
13650   # We cannot hardcode anything, or else we can only hardcode existing
13651   # directories.
13652   hardcode_action=unsupported
13653 fi
13654 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13655 echo "${ECHO_T}$hardcode_action" >&6
13656
13657 if test "$hardcode_action" = relink; then
13658   # Fast installation is not supported
13659   enable_fast_install=no
13660 elif test "$shlibpath_overrides_runpath" = yes ||
13661      test "$enable_shared" = no; then
13662   # Fast installation is not necessary
13663   enable_fast_install=needless
13664 fi
13665
13666 striplib=
13667 old_striplib=
13668 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13669 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13670 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13671   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13672   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13673   echo "$as_me:$LINENO: result: yes" >&5
13674 echo "${ECHO_T}yes" >&6
13675 else
13676 # FIXME - insert some real tests, host_os isn't really good enough
13677   case $host_os in
13678    darwin*)
13679        if test -n "$STRIP" ; then
13680          striplib="$STRIP -x"
13681          echo "$as_me:$LINENO: result: yes" >&5
13682 echo "${ECHO_T}yes" >&6
13683        else
13684   echo "$as_me:$LINENO: result: no" >&5
13685 echo "${ECHO_T}no" >&6
13686 fi
13687        ;;
13688    *)
13689   echo "$as_me:$LINENO: result: no" >&5
13690 echo "${ECHO_T}no" >&6
13691     ;;
13692   esac
13693 fi
13694
13695 if test "x$enable_dlopen" != xyes; then
13696   enable_dlopen=unknown
13697   enable_dlopen_self=unknown
13698   enable_dlopen_self_static=unknown
13699 else
13700   lt_cv_dlopen=no
13701   lt_cv_dlopen_libs=
13702
13703   case $host_os in
13704   beos*)
13705     lt_cv_dlopen="load_add_on"
13706     lt_cv_dlopen_libs=
13707     lt_cv_dlopen_self=yes
13708     ;;
13709
13710   mingw* | pw32*)
13711     lt_cv_dlopen="LoadLibrary"
13712     lt_cv_dlopen_libs=
13713    ;;
13714
13715   cygwin*)
13716     lt_cv_dlopen="dlopen"
13717     lt_cv_dlopen_libs=
13718    ;;
13719
13720   darwin*)
13721   # if libdl is installed we need to link against it
13722     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   ac_check_lib_save_LIBS=$LIBS
13728 LIBS="-ldl  $LIBS"
13729 cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h.  */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h.  */
13735
13736 /* Override any gcc2 internal prototype to avoid an error.  */
13737 #ifdef __cplusplus
13738 extern "C"
13739 #endif
13740 /* We use char because int might match the return type of a gcc2
13741    builtin and then its argument prototype would still apply.  */
13742 char dlopen ();
13743 int
13744 main ()
13745 {
13746 dlopen ();
13747   ;
13748   return 0;
13749 }
13750 _ACEOF
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13753   (eval $ac_link) 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -z "$ac_c_werror_flag"
13761                          || test ! -s conftest.err'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; } &&
13767          { ac_try='test -s conftest$ac_exeext'
13768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769   (eval $ac_try) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }; then
13773   ac_cv_lib_dl_dlopen=yes
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ac_cv_lib_dl_dlopen=no
13779 fi
13780 rm -f conftest.err conftest.$ac_objext \
13781       conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13783 fi
13784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13786 if test $ac_cv_lib_dl_dlopen = yes; then
13787   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13788 else
13789
13790     lt_cv_dlopen="dyld"
13791     lt_cv_dlopen_libs=
13792     lt_cv_dlopen_self=yes
13793
13794 fi
13795
13796    ;;
13797
13798   *)
13799     echo "$as_me:$LINENO: checking for shl_load" >&5
13800 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13801 if test "${ac_cv_func_shl_load+set}" = set; then
13802   echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804   cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h.  */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h.  */
13810 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13812 #define shl_load innocuous_shl_load
13813
13814 /* System header to define __stub macros and hopefully few prototypes,
13815     which can conflict with char shl_load (); below.
13816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13817     <limits.h> exists even on freestanding compilers.  */
13818
13819 #ifdef __STDC__
13820 # include <limits.h>
13821 #else
13822 # include <assert.h>
13823 #endif
13824
13825 #undef shl_load
13826
13827 /* Override any gcc2 internal prototype to avoid an error.  */
13828 #ifdef __cplusplus
13829 extern "C"
13830 {
13831 #endif
13832 /* We use char because int might match the return type of a gcc2
13833    builtin and then its argument prototype would still apply.  */
13834 char shl_load ();
13835 /* The GNU C library defines this for functions which it implements
13836     to always fail with ENOSYS.  Some functions are actually named
13837     something starting with __ and the normal name is an alias.  */
13838 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13839 choke me
13840 #else
13841 char (*f) () = shl_load;
13842 #endif
13843 #ifdef __cplusplus
13844 }
13845 #endif
13846
13847 int
13848 main ()
13849 {
13850 return f != shl_load;
13851   ;
13852   return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext conftest$ac_exeext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13857   (eval $ac_link) 2>conftest.er1
13858   ac_status=$?
13859   grep -v '^ *+' conftest.er1 >conftest.err
13860   rm -f conftest.er1
13861   cat conftest.err >&5
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); } &&
13864          { ac_try='test -z "$ac_c_werror_flag"
13865                          || test ! -s conftest.err'
13866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867   (eval $ac_try) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; } &&
13871          { ac_try='test -s conftest$ac_exeext'
13872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873   (eval $ac_try) 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; }; then
13877   ac_cv_func_shl_load=yes
13878 else
13879   echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882 ac_cv_func_shl_load=no
13883 fi
13884 rm -f conftest.err conftest.$ac_objext \
13885       conftest$ac_exeext conftest.$ac_ext
13886 fi
13887 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13888 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13889 if test $ac_cv_func_shl_load = yes; then
13890   lt_cv_dlopen="shl_load"
13891 else
13892   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13893 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13895   echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897   ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-ldld  $LIBS"
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905
13906 /* Override any gcc2 internal prototype to avoid an error.  */
13907 #ifdef __cplusplus
13908 extern "C"
13909 #endif
13910 /* We use char because int might match the return type of a gcc2
13911    builtin and then its argument prototype would still apply.  */
13912 char shl_load ();
13913 int
13914 main ()
13915 {
13916 shl_load ();
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923   (eval $ac_link) 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } &&
13930          { ac_try='test -z "$ac_c_werror_flag"
13931                          || test ! -s conftest.err'
13932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933   (eval $ac_try) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; } &&
13937          { ac_try='test -s conftest$ac_exeext'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_cv_lib_dld_shl_load=yes
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948 ac_cv_lib_dld_shl_load=no
13949 fi
13950 rm -f conftest.err conftest.$ac_objext \
13951       conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13953 fi
13954 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13956 if test $ac_cv_lib_dld_shl_load = yes; then
13957   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13958 else
13959   echo "$as_me:$LINENO: checking for dlopen" >&5
13960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13961 if test "${ac_cv_func_dlopen+set}" = set; then
13962   echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964   cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h.  */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h.  */
13970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13972 #define dlopen innocuous_dlopen
13973
13974 /* System header to define __stub macros and hopefully few prototypes,
13975     which can conflict with char dlopen (); below.
13976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13977     <limits.h> exists even on freestanding compilers.  */
13978
13979 #ifdef __STDC__
13980 # include <limits.h>
13981 #else
13982 # include <assert.h>
13983 #endif
13984
13985 #undef dlopen
13986
13987 /* Override any gcc2 internal prototype to avoid an error.  */
13988 #ifdef __cplusplus
13989 extern "C"
13990 {
13991 #endif
13992 /* We use char because int might match the return type of a gcc2
13993    builtin and then its argument prototype would still apply.  */
13994 char dlopen ();
13995 /* The GNU C library defines this for functions which it implements
13996     to always fail with ENOSYS.  Some functions are actually named
13997     something starting with __ and the normal name is an alias.  */
13998 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13999 choke me
14000 #else
14001 char (*f) () = dlopen;
14002 #endif
14003 #ifdef __cplusplus
14004 }
14005 #endif
14006
14007 int
14008 main ()
14009 {
14010 return f != dlopen;
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017   (eval $ac_link) 2>conftest.er1
14018   ac_status=$?
14019   grep -v '^ *+' conftest.er1 >conftest.err
14020   rm -f conftest.er1
14021   cat conftest.err >&5
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } &&
14024          { ac_try='test -z "$ac_c_werror_flag"
14025                          || test ! -s conftest.err'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; } &&
14031          { ac_try='test -s conftest$ac_exeext'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; }; then
14037   ac_cv_func_dlopen=yes
14038 else
14039   echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_cv_func_dlopen=no
14043 fi
14044 rm -f conftest.err conftest.$ac_objext \
14045       conftest$ac_exeext conftest.$ac_ext
14046 fi
14047 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14048 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14049 if test $ac_cv_func_dlopen = yes; then
14050   lt_cv_dlopen="dlopen"
14051 else
14052   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14053 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-ldl  $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065
14066 /* Override any gcc2 internal prototype to avoid an error.  */
14067 #ifdef __cplusplus
14068 extern "C"
14069 #endif
14070 /* We use char because int might match the return type of a gcc2
14071    builtin and then its argument prototype would still apply.  */
14072 char dlopen ();
14073 int
14074 main ()
14075 {
14076 dlopen ();
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083   (eval $ac_link) 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } &&
14090          { ac_try='test -z "$ac_c_werror_flag"
14091                          || test ! -s conftest.err'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; } &&
14097          { ac_try='test -s conftest$ac_exeext'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103   ac_cv_lib_dl_dlopen=yes
14104 else
14105   echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_cv_lib_dl_dlopen=no
14109 fi
14110 rm -f conftest.err conftest.$ac_objext \
14111       conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14113 fi
14114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14116 if test $ac_cv_lib_dl_dlopen = yes; then
14117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14118 else
14119   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14120 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14121 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124   ac_check_lib_save_LIBS=$LIBS
14125 LIBS="-lsvld  $LIBS"
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h.  */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h.  */
14132
14133 /* Override any gcc2 internal prototype to avoid an error.  */
14134 #ifdef __cplusplus
14135 extern "C"
14136 #endif
14137 /* We use char because int might match the return type of a gcc2
14138    builtin and then its argument prototype would still apply.  */
14139 char dlopen ();
14140 int
14141 main ()
14142 {
14143 dlopen ();
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 rm -f conftest.$ac_objext conftest$ac_exeext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14150   (eval $ac_link) 2>conftest.er1
14151   ac_status=$?
14152   grep -v '^ *+' conftest.er1 >conftest.err
14153   rm -f conftest.er1
14154   cat conftest.err >&5
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); } &&
14157          { ac_try='test -z "$ac_c_werror_flag"
14158                          || test ! -s conftest.err'
14159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160   (eval $ac_try) 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); }; } &&
14164          { ac_try='test -s conftest$ac_exeext'
14165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166   (eval $ac_try) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   ac_cv_lib_svld_dlopen=yes
14171 else
14172   echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 ac_cv_lib_svld_dlopen=no
14176 fi
14177 rm -f conftest.err conftest.$ac_objext \
14178       conftest$ac_exeext conftest.$ac_ext
14179 LIBS=$ac_check_lib_save_LIBS
14180 fi
14181 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14183 if test $ac_cv_lib_svld_dlopen = yes; then
14184   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14185 else
14186   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14187 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14188 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   ac_check_lib_save_LIBS=$LIBS
14192 LIBS="-ldld  $LIBS"
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199
14200 /* Override any gcc2 internal prototype to avoid an error.  */
14201 #ifdef __cplusplus
14202 extern "C"
14203 #endif
14204 /* We use char because int might match the return type of a gcc2
14205    builtin and then its argument prototype would still apply.  */
14206 char dld_link ();
14207 int
14208 main ()
14209 {
14210 dld_link ();
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14217   (eval $ac_link) 2>conftest.er1
14218   ac_status=$?
14219   grep -v '^ *+' conftest.er1 >conftest.err
14220   rm -f conftest.er1
14221   cat conftest.err >&5
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); } &&
14224          { ac_try='test -z "$ac_c_werror_flag"
14225                          || test ! -s conftest.err'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; } &&
14231          { ac_try='test -s conftest$ac_exeext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_cv_lib_dld_dld_link=yes
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242 ac_cv_lib_dld_dld_link=no
14243 fi
14244 rm -f conftest.err conftest.$ac_objext \
14245       conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS
14247 fi
14248 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14250 if test $ac_cv_lib_dld_dld_link = yes; then
14251   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14252 fi
14253
14254
14255 fi
14256
14257
14258 fi
14259
14260
14261 fi
14262
14263
14264 fi
14265
14266
14267 fi
14268
14269     ;;
14270   esac
14271
14272   if test "x$lt_cv_dlopen" != xno; then
14273     enable_dlopen=yes
14274   else
14275     enable_dlopen=no
14276   fi
14277
14278   case $lt_cv_dlopen in
14279   dlopen)
14280     save_CPPFLAGS="$CPPFLAGS"
14281     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14282
14283     save_LDFLAGS="$LDFLAGS"
14284     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14285
14286     save_LIBS="$LIBS"
14287     LIBS="$lt_cv_dlopen_libs $LIBS"
14288
14289     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14290 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14291 if test "${lt_cv_dlopen_self+set}" = set; then
14292   echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294           if test "$cross_compiling" = yes; then :
14295   lt_cv_dlopen_self=cross
14296 else
14297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14298   lt_status=$lt_dlunknown
14299   cat > conftest.$ac_ext <<EOF
14300 #line 14300 "configure"
14301 #include "confdefs.h"
14302
14303 #if HAVE_DLFCN_H
14304 #include <dlfcn.h>
14305 #endif
14306
14307 #include <stdio.h>
14308
14309 #ifdef RTLD_GLOBAL
14310 #  define LT_DLGLOBAL           RTLD_GLOBAL
14311 #else
14312 #  ifdef DL_GLOBAL
14313 #    define LT_DLGLOBAL         DL_GLOBAL
14314 #  else
14315 #    define LT_DLGLOBAL         0
14316 #  endif
14317 #endif
14318
14319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14320    find out it does not work in some platform. */
14321 #ifndef LT_DLLAZY_OR_NOW
14322 #  ifdef RTLD_LAZY
14323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14324 #  else
14325 #    ifdef DL_LAZY
14326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14327 #    else
14328 #      ifdef RTLD_NOW
14329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14330 #      else
14331 #        ifdef DL_NOW
14332 #          define LT_DLLAZY_OR_NOW      DL_NOW
14333 #        else
14334 #          define LT_DLLAZY_OR_NOW      0
14335 #        endif
14336 #      endif
14337 #    endif
14338 #  endif
14339 #endif
14340
14341 #ifdef __cplusplus
14342 extern "C" void exit (int);
14343 #endif
14344
14345 void fnord() { int i=42;}
14346 int main ()
14347 {
14348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14349   int status = $lt_dlunknown;
14350
14351   if (self)
14352     {
14353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14354       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14355       /* dlclose (self); */
14356     }
14357
14358     exit (status);
14359 }
14360 EOF
14361   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362   (eval $ac_link) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14366     (./conftest; exit; ) 2>/dev/null
14367     lt_status=$?
14368     case x$lt_status in
14369       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14370       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14371       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14372     esac
14373   else :
14374     # compilation failed
14375     lt_cv_dlopen_self=no
14376   fi
14377 fi
14378 rm -fr conftest*
14379
14380
14381 fi
14382 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14384
14385     if test "x$lt_cv_dlopen_self" = xyes; then
14386       LDFLAGS="$LDFLAGS $link_static_flag"
14387       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14389 if test "${lt_cv_dlopen_self_static+set}" = set; then
14390   echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392           if test "$cross_compiling" = yes; then :
14393   lt_cv_dlopen_self_static=cross
14394 else
14395   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14396   lt_status=$lt_dlunknown
14397   cat > conftest.$ac_ext <<EOF
14398 #line 14398 "configure"
14399 #include "confdefs.h"
14400
14401 #if HAVE_DLFCN_H
14402 #include <dlfcn.h>
14403 #endif
14404
14405 #include <stdio.h>
14406
14407 #ifdef RTLD_GLOBAL
14408 #  define LT_DLGLOBAL           RTLD_GLOBAL
14409 #else
14410 #  ifdef DL_GLOBAL
14411 #    define LT_DLGLOBAL         DL_GLOBAL
14412 #  else
14413 #    define LT_DLGLOBAL         0
14414 #  endif
14415 #endif
14416
14417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14418    find out it does not work in some platform. */
14419 #ifndef LT_DLLAZY_OR_NOW
14420 #  ifdef RTLD_LAZY
14421 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14422 #  else
14423 #    ifdef DL_LAZY
14424 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14425 #    else
14426 #      ifdef RTLD_NOW
14427 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14428 #      else
14429 #        ifdef DL_NOW
14430 #          define LT_DLLAZY_OR_NOW      DL_NOW
14431 #        else
14432 #          define LT_DLLAZY_OR_NOW      0
14433 #        endif
14434 #      endif
14435 #    endif
14436 #  endif
14437 #endif
14438
14439 #ifdef __cplusplus
14440 extern "C" void exit (int);
14441 #endif
14442
14443 void fnord() { int i=42;}
14444 int main ()
14445 {
14446   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14447   int status = $lt_dlunknown;
14448
14449   if (self)
14450     {
14451       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14452       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14453       /* dlclose (self); */
14454     }
14455
14456     exit (status);
14457 }
14458 EOF
14459   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460   (eval $ac_link) 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14464     (./conftest; exit; ) 2>/dev/null
14465     lt_status=$?
14466     case x$lt_status in
14467       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14468       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14469       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14470     esac
14471   else :
14472     # compilation failed
14473     lt_cv_dlopen_self_static=no
14474   fi
14475 fi
14476 rm -fr conftest*
14477
14478
14479 fi
14480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14481 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14482     fi
14483
14484     CPPFLAGS="$save_CPPFLAGS"
14485     LDFLAGS="$save_LDFLAGS"
14486     LIBS="$save_LIBS"
14487     ;;
14488   esac
14489
14490   case $lt_cv_dlopen_self in
14491   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14492   *) enable_dlopen_self=unknown ;;
14493   esac
14494
14495   case $lt_cv_dlopen_self_static in
14496   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14497   *) enable_dlopen_self_static=unknown ;;
14498   esac
14499 fi
14500
14501
14502 # Report which librarie types wil actually be built
14503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14506 echo "${ECHO_T}$can_build_shared" >&6
14507
14508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14510 test "$can_build_shared" = "no" && enable_shared=no
14511
14512 # On AIX, shared libraries and static libraries use the same namespace, and
14513 # are all built from PIC.
14514 case "$host_os" in
14515 aix3*)
14516   test "$enable_shared" = yes && enable_static=no
14517   if test -n "$RANLIB"; then
14518     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14519     postinstall_cmds='$RANLIB $lib'
14520   fi
14521   ;;
14522
14523 aix4* | aix5*)
14524   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14525     test "$enable_shared" = yes && enable_static=no
14526   fi
14527     ;;
14528 esac
14529 echo "$as_me:$LINENO: result: $enable_shared" >&5
14530 echo "${ECHO_T}$enable_shared" >&6
14531
14532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14534 # Make sure either enable_shared or enable_static is yes.
14535 test "$enable_shared" = yes || enable_static=yes
14536 echo "$as_me:$LINENO: result: $enable_static" >&5
14537 echo "${ECHO_T}$enable_static" >&6
14538
14539 # The else clause should only fire when bootstrapping the
14540 # libtool distribution, otherwise you forgot to ship ltmain.sh
14541 # with your package, and you will get complaints that there are
14542 # no rules to generate ltmain.sh.
14543 if test -f "$ltmain"; then
14544   # See if we are running on zsh, and set the options which allow our commands through
14545   # without removal of \ escapes.
14546   if test -n "${ZSH_VERSION+set}" ; then
14547     setopt NO_GLOB_SUBST
14548   fi
14549   # Now quote all the things that may contain metacharacters while being
14550   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14551   # variables and quote the copies for generation of the libtool script.
14552   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14553     SED SHELL STRIP \
14554     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14555     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14556     deplibs_check_method reload_flag reload_cmds need_locks \
14557     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14558     lt_cv_sys_global_symbol_to_c_name_address \
14559     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14560     old_postinstall_cmds old_postuninstall_cmds \
14561     compiler \
14562     CC \
14563     LD \
14564     lt_prog_compiler_wl \
14565     lt_prog_compiler_pic \
14566     lt_prog_compiler_static \
14567     lt_prog_compiler_no_builtin_flag \
14568     export_dynamic_flag_spec \
14569     thread_safe_flag_spec \
14570     whole_archive_flag_spec \
14571     enable_shared_with_static_runtimes \
14572     old_archive_cmds \
14573     old_archive_from_new_cmds \
14574     predep_objects \
14575     postdep_objects \
14576     predeps \
14577     postdeps \
14578     compiler_lib_search_path \
14579     archive_cmds \
14580     archive_expsym_cmds \
14581     postinstall_cmds \
14582     postuninstall_cmds \
14583     old_archive_from_expsyms_cmds \
14584     allow_undefined_flag \
14585     no_undefined_flag \
14586     export_symbols_cmds \
14587     hardcode_libdir_flag_spec \
14588     hardcode_libdir_flag_spec_ld \
14589     hardcode_libdir_separator \
14590     hardcode_automatic \
14591     module_cmds \
14592     module_expsym_cmds \
14593     lt_cv_prog_compiler_c_o \
14594     exclude_expsyms \
14595     include_expsyms; do
14596
14597     case $var in
14598     old_archive_cmds | \
14599     old_archive_from_new_cmds | \
14600     archive_cmds | \
14601     archive_expsym_cmds | \
14602     module_cmds | \
14603     module_expsym_cmds | \
14604     old_archive_from_expsyms_cmds | \
14605     export_symbols_cmds | \
14606     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14607     postinstall_cmds | postuninstall_cmds | \
14608     old_postinstall_cmds | old_postuninstall_cmds | \
14609     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14610       # Double-quote double-evaled strings.
14611       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14612       ;;
14613     *)
14614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14615       ;;
14616     esac
14617   done
14618
14619   case $lt_echo in
14620   *'\$0 --fallback-echo"')
14621     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14622     ;;
14623   esac
14624
14625 cfgfile="${ofile}T"
14626   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14627   $rm -f "$cfgfile"
14628   { echo "$as_me:$LINENO: creating $ofile" >&5
14629 echo "$as_me: creating $ofile" >&6;}
14630
14631   cat <<__EOF__ >> "$cfgfile"
14632 #! $SHELL
14633
14634 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14635 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14637 #
14638 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14639 # Free Software Foundation, Inc.
14640 #
14641 # This file is part of GNU Libtool:
14642 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14643 #
14644 # This program is free software; you can redistribute it and/or modify
14645 # it under the terms of the GNU General Public License as published by
14646 # the Free Software Foundation; either version 2 of the License, or
14647 # (at your option) any later version.
14648 #
14649 # This program is distributed in the hope that it will be useful, but
14650 # WITHOUT ANY WARRANTY; without even the implied warranty of
14651 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14652 # General Public License for more details.
14653 #
14654 # You should have received a copy of the GNU General Public License
14655 # along with this program; if not, write to the Free Software
14656 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14657 #
14658 # As a special exception to the GNU General Public License, if you
14659 # distribute this file as part of a program that contains a
14660 # configuration script generated by Autoconf, you may include it under
14661 # the same distribution terms that you use for the rest of that program.
14662
14663 # A sed program that does not truncate output.
14664 SED=$lt_SED
14665
14666 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14667 Xsed="$SED -e s/^X//"
14668
14669 # The HP-UX ksh and POSIX shell print the target directory to stdout
14670 # if CDPATH is set.
14671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14672
14673 # The names of the tagged configurations supported by this script.
14674 available_tags=
14675
14676 # ### BEGIN LIBTOOL CONFIG
14677
14678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14679
14680 # Shell to use when invoking shell scripts.
14681 SHELL=$lt_SHELL
14682
14683 # Whether or not to build shared libraries.
14684 build_libtool_libs=$enable_shared
14685
14686 # Whether or not to build static libraries.
14687 build_old_libs=$enable_static
14688
14689 # Whether or not to add -lc for building shared libraries.
14690 build_libtool_need_lc=$archive_cmds_need_lc
14691
14692 # Whether or not to disallow shared libs when runtime libs are static
14693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14694
14695 # Whether or not to optimize for fast installation.
14696 fast_install=$enable_fast_install
14697
14698 # The host system.
14699 host_alias=$host_alias
14700 host=$host
14701
14702 # An echo program that does not interpret backslashes.
14703 echo=$lt_echo
14704
14705 # The archiver.
14706 AR=$lt_AR
14707 AR_FLAGS=$lt_AR_FLAGS
14708
14709 # A C compiler.
14710 LTCC=$lt_LTCC
14711
14712 # A language-specific compiler.
14713 CC=$lt_compiler
14714
14715 # Is the compiler the GNU C compiler?
14716 with_gcc=$GCC
14717
14718 # An ERE matcher.
14719 EGREP=$lt_EGREP
14720
14721 # The linker used to build libraries.
14722 LD=$lt_LD
14723
14724 # Whether we need hard or soft links.
14725 LN_S=$lt_LN_S
14726
14727 # A BSD-compatible nm program.
14728 NM=$lt_NM
14729
14730 # A symbol stripping program
14731 STRIP=$lt_STRIP
14732
14733 # Used to examine libraries when file_magic_cmd begins "file"
14734 MAGIC_CMD=$MAGIC_CMD
14735
14736 # Used on cygwin: DLL creation program.
14737 DLLTOOL="$DLLTOOL"
14738
14739 # Used on cygwin: object dumper.
14740 OBJDUMP="$OBJDUMP"
14741
14742 # Used on cygwin: assembler.
14743 AS="$AS"
14744
14745 # The name of the directory that contains temporary libtool files.
14746 objdir=$objdir
14747
14748 # How to create reloadable object files.
14749 reload_flag=$lt_reload_flag
14750 reload_cmds=$lt_reload_cmds
14751
14752 # How to pass a linker flag through the compiler.
14753 wl=$lt_lt_prog_compiler_wl
14754
14755 # Object file suffix (normally "o").
14756 objext="$ac_objext"
14757
14758 # Old archive suffix (normally "a").
14759 libext="$libext"
14760
14761 # Shared library suffix (normally ".so").
14762 shrext_cmds='$shrext_cmds'
14763
14764 # Executable file suffix (normally "").
14765 exeext="$exeext"
14766
14767 # Additional compiler flags for building library objects.
14768 pic_flag=$lt_lt_prog_compiler_pic
14769 pic_mode=$pic_mode
14770
14771 # What is the maximum length of a command?
14772 max_cmd_len=$lt_cv_sys_max_cmd_len
14773
14774 # Does compiler simultaneously support -c and -o options?
14775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14776
14777 # Must we lock files when doing compilation ?
14778 need_locks=$lt_need_locks
14779
14780 # Do we need the lib prefix for modules?
14781 need_lib_prefix=$need_lib_prefix
14782
14783 # Do we need a version for libraries?
14784 need_version=$need_version
14785
14786 # Whether dlopen is supported.
14787 dlopen_support=$enable_dlopen
14788
14789 # Whether dlopen of programs is supported.
14790 dlopen_self=$enable_dlopen_self
14791
14792 # Whether dlopen of statically linked programs is supported.
14793 dlopen_self_static=$enable_dlopen_self_static
14794
14795 # Compiler flag to prevent dynamic linking.
14796 link_static_flag=$lt_lt_prog_compiler_static
14797
14798 # Compiler flag to turn off builtin functions.
14799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14800
14801 # Compiler flag to allow reflexive dlopens.
14802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14803
14804 # Compiler flag to generate shared objects directly from archives.
14805 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14806
14807 # Compiler flag to generate thread-safe objects.
14808 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14809
14810 # Library versioning type.
14811 version_type=$version_type
14812
14813 # Format of library name prefix.
14814 libname_spec=$lt_libname_spec
14815
14816 # List of archive names.  First name is the real one, the rest are links.
14817 # The last name is the one that the linker finds with -lNAME.
14818 library_names_spec=$lt_library_names_spec
14819
14820 # The coded name of the library, if different from the real name.
14821 soname_spec=$lt_soname_spec
14822
14823 # Commands used to build and install an old-style archive.
14824 RANLIB=$lt_RANLIB
14825 old_archive_cmds=$lt_old_archive_cmds
14826 old_postinstall_cmds=$lt_old_postinstall_cmds
14827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14828
14829 # Create an old-style archive from a shared archive.
14830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14831
14832 # Create a temporary old-style archive to link instead of a shared archive.
14833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14834
14835 # Commands used to build and install a shared archive.
14836 archive_cmds=$lt_archive_cmds
14837 archive_expsym_cmds=$lt_archive_expsym_cmds
14838 postinstall_cmds=$lt_postinstall_cmds
14839 postuninstall_cmds=$lt_postuninstall_cmds
14840
14841 # Commands used to build a loadable module (assumed same as above if empty)
14842 module_cmds=$lt_module_cmds
14843 module_expsym_cmds=$lt_module_expsym_cmds
14844
14845 # Commands to strip libraries.
14846 old_striplib=$lt_old_striplib
14847 striplib=$lt_striplib
14848
14849 # Dependencies to place before the objects being linked to create a
14850 # shared library.
14851 predep_objects=$lt_predep_objects
14852
14853 # Dependencies to place after the objects being linked to create a
14854 # shared library.
14855 postdep_objects=$lt_postdep_objects
14856
14857 # Dependencies to place before the objects being linked to create a
14858 # shared library.
14859 predeps=$lt_predeps
14860
14861 # Dependencies to place after the objects being linked to create a
14862 # shared library.
14863 postdeps=$lt_postdeps
14864
14865 # The library search path used internally by the compiler when linking
14866 # a shared library.
14867 compiler_lib_search_path=$lt_compiler_lib_search_path
14868
14869 # Method to check whether dependent libraries are shared objects.
14870 deplibs_check_method=$lt_deplibs_check_method
14871
14872 # Command to use when deplibs_check_method == file_magic.
14873 file_magic_cmd=$lt_file_magic_cmd
14874
14875 # Flag that allows shared libraries with undefined symbols to be built.
14876 allow_undefined_flag=$lt_allow_undefined_flag
14877
14878 # Flag that forces no undefined symbols.
14879 no_undefined_flag=$lt_no_undefined_flag
14880
14881 # Commands used to finish a libtool library installation in a directory.
14882 finish_cmds=$lt_finish_cmds
14883
14884 # Same as above, but a single script fragment to be evaled but not shown.
14885 finish_eval=$lt_finish_eval
14886
14887 # Take the output of nm and produce a listing of raw symbols and C names.
14888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14889
14890 # Transform the output of nm in a proper C declaration
14891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14892
14893 # Transform the output of nm in a C name address pair
14894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14895
14896 # This is the shared library runtime path variable.
14897 runpath_var=$runpath_var
14898
14899 # This is the shared library path variable.
14900 shlibpath_var=$shlibpath_var
14901
14902 # Is shlibpath searched before the hard-coded library search path?
14903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14904
14905 # How to hardcode a shared library path into an executable.
14906 hardcode_action=$hardcode_action
14907
14908 # Whether we should hardcode library paths into libraries.
14909 hardcode_into_libs=$hardcode_into_libs
14910
14911 # Flag to hardcode \$libdir into a binary during linking.
14912 # This must work even if \$libdir does not exist.
14913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14914
14915 # If ld is used when linking, flag to hardcode \$libdir into
14916 # a binary during linking. This must work even if \$libdir does
14917 # not exist.
14918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14919
14920 # Whether we need a single -rpath flag with a separated argument.
14921 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14922
14923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14924 # resulting binary.
14925 hardcode_direct=$hardcode_direct
14926
14927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14928 # resulting binary.
14929 hardcode_minus_L=$hardcode_minus_L
14930
14931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14932 # the resulting binary.
14933 hardcode_shlibpath_var=$hardcode_shlibpath_var
14934
14935 # Set to yes if building a shared library automatically hardcodes DIR into the library
14936 # and all subsequent libraries and executables linked against it.
14937 hardcode_automatic=$hardcode_automatic
14938
14939 # Variables whose values should be saved in libtool wrapper scripts and
14940 # restored at relink time.
14941 variables_saved_for_relink="$variables_saved_for_relink"
14942
14943 # Whether libtool must link a program against all its dependency libraries.
14944 link_all_deplibs=$link_all_deplibs
14945
14946 # Compile-time system search path for libraries
14947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14948
14949 # Run-time system search path for libraries
14950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14951
14952 # Fix the shell variable \$srcfile for the compiler.
14953 fix_srcfile_path="$fix_srcfile_path"
14954
14955 # Set to yes if exported symbols are required.
14956 always_export_symbols=$always_export_symbols
14957
14958 # The commands to list exported symbols.
14959 export_symbols_cmds=$lt_export_symbols_cmds
14960
14961 # The commands to extract the exported symbol list from a shared archive.
14962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14963
14964 # Symbols that should not be listed in the preloaded symbols.
14965 exclude_expsyms=$lt_exclude_expsyms
14966
14967 # Symbols that must always be exported.
14968 include_expsyms=$lt_include_expsyms
14969
14970 # ### END LIBTOOL CONFIG
14971
14972 __EOF__
14973
14974
14975   case $host_os in
14976   aix3*)
14977     cat <<\EOF >> "$cfgfile"
14978
14979 # AIX sometimes has problems with the GCC collect2 program.  For some
14980 # reason, if we set the COLLECT_NAMES environment variable, the problems
14981 # vanish in a puff of smoke.
14982 if test "X${COLLECT_NAMES+set}" != Xset; then
14983   COLLECT_NAMES=
14984   export COLLECT_NAMES
14985 fi
14986 EOF
14987     ;;
14988   esac
14989
14990   # We use sed instead of cat because bash on DJGPP gets confused if
14991   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14992   # text mode, it properly converts lines to CR/LF.  This bash problem
14993   # is reportedly fixed, but why not run on old versions too?
14994   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14995
14996   mv -f "$cfgfile" "$ofile" || \
14997     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14998   chmod +x "$ofile"
14999
15000 else
15001   # If there is no Makefile yet, we rely on a make rule to execute
15002   # `config.status --recheck' to rerun these tests and create the
15003   # libtool script then.
15004   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15005   if test -f "$ltmain_in"; then
15006     test -f Makefile && make "$ltmain"
15007   fi
15008 fi
15009
15010
15011 ac_ext=c
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017 CC="$lt_save_CC"
15018
15019
15020 # Check whether --with-tags or --without-tags was given.
15021 if test "${with_tags+set}" = set; then
15022   withval="$with_tags"
15023   tagnames="$withval"
15024 fi;
15025
15026 if test -f "$ltmain" && test -n "$tagnames"; then
15027   if test ! -f "${ofile}"; then
15028     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15029 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15030   fi
15031
15032   if test -z "$LTCC"; then
15033     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15034     if test -z "$LTCC"; then
15035       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15036 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15037     else
15038       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15039 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15040     fi
15041   fi
15042
15043   # Extract list of available tagged configurations in $ofile.
15044   # Note that this assumes the entire list is on one line.
15045   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15046
15047   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15048   for tagname in $tagnames; do
15049     IFS="$lt_save_ifs"
15050     # Check whether tagname contains only valid characters
15051     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15052     "") ;;
15053     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15054 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15055    { (exit 1); exit 1; }; }
15056         ;;
15057     esac
15058
15059     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15060     then
15061       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15062 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15063    { (exit 1); exit 1; }; }
15064     fi
15065
15066     # Update the list of available tags.
15067     if test -n "$tagname"; then
15068       echo appending configuration tag "$tagname" to $ofile
15069
15070       case $tagname in
15071       CXX)
15072         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15073             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15074             (test "X$CXX" != "Xg++"))) ; then
15075           ac_ext=cc
15076 ac_cpp='$CXXCPP $CPPFLAGS'
15077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15080
15081
15082
15083
15084 archive_cmds_need_lc_CXX=no
15085 allow_undefined_flag_CXX=
15086 always_export_symbols_CXX=no
15087 archive_expsym_cmds_CXX=
15088 export_dynamic_flag_spec_CXX=
15089 hardcode_direct_CXX=no
15090 hardcode_libdir_flag_spec_CXX=
15091 hardcode_libdir_flag_spec_ld_CXX=
15092 hardcode_libdir_separator_CXX=
15093 hardcode_minus_L_CXX=no
15094 hardcode_automatic_CXX=no
15095 module_cmds_CXX=
15096 module_expsym_cmds_CXX=
15097 link_all_deplibs_CXX=unknown
15098 old_archive_cmds_CXX=$old_archive_cmds
15099 no_undefined_flag_CXX=
15100 whole_archive_flag_spec_CXX=
15101 enable_shared_with_static_runtimes_CXX=no
15102
15103 # Dependencies to place before and after the object being linked:
15104 predep_objects_CXX=
15105 postdep_objects_CXX=
15106 predeps_CXX=
15107 postdeps_CXX=
15108 compiler_lib_search_path_CXX=
15109
15110 # Source file extension for C++ test sources.
15111 ac_ext=cc
15112
15113 # Object file extension for compiled C++ test sources.
15114 objext=o
15115 objext_CXX=$objext
15116
15117 # Code to be used in simple compile tests
15118 lt_simple_compile_test_code="int some_variable = 0;\n"
15119
15120 # Code to be used in simple link tests
15121 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15122
15123 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15124
15125 # If no C compiler was specified, use CC.
15126 LTCC=${LTCC-"$CC"}
15127
15128 # Allow CC to be a program name with arguments.
15129 compiler=$CC
15130
15131
15132 # Allow CC to be a program name with arguments.
15133 lt_save_CC=$CC
15134 lt_save_LD=$LD
15135 lt_save_GCC=$GCC
15136 GCC=$GXX
15137 lt_save_with_gnu_ld=$with_gnu_ld
15138 lt_save_path_LD=$lt_cv_path_LD
15139 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15140   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15141 else
15142   unset lt_cv_prog_gnu_ld
15143 fi
15144 if test -n "${lt_cv_path_LDCXX+set}"; then
15145   lt_cv_path_LD=$lt_cv_path_LDCXX
15146 else
15147   unset lt_cv_path_LD
15148 fi
15149 test -z "${LDCXX+set}" || LD=$LDCXX
15150 CC=${CXX-"c++"}
15151 compiler=$CC
15152 compiler_CXX=$CC
15153 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15154
15155 # We don't want -fno-exception wen compiling C++ code, so set the
15156 # no_builtin_flag separately
15157 if test "$GXX" = yes; then
15158   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15159 else
15160   lt_prog_compiler_no_builtin_flag_CXX=
15161 fi
15162
15163 if test "$GXX" = yes; then
15164   # Set up default GNU C++ configuration
15165
15166
15167 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15168 if test "${with_gnu_ld+set}" = set; then
15169   withval="$with_gnu_ld"
15170   test "$withval" = no || with_gnu_ld=yes
15171 else
15172   with_gnu_ld=no
15173 fi;
15174 ac_prog=ld
15175 if test "$GCC" = yes; then
15176   # Check if gcc -print-prog-name=ld gives a path.
15177   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15178 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15179   case $host in
15180   *-*-mingw*)
15181     # gcc leaves a trailing carriage return which upsets mingw
15182     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15183   *)
15184     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15185   esac
15186   case $ac_prog in
15187     # Accept absolute paths.
15188     [\\/]* | ?:[\\/]*)
15189       re_direlt='/[^/][^/]*/\.\./'
15190       # Canonicalize the pathname of ld
15191       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15192       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15193         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15194       done
15195       test -z "$LD" && LD="$ac_prog"
15196       ;;
15197   "")
15198     # If it fails, then pretend we aren't using GCC.
15199     ac_prog=ld
15200     ;;
15201   *)
15202     # If it is relative, then search for the first ld in PATH.
15203     with_gnu_ld=unknown
15204     ;;
15205   esac
15206 elif test "$with_gnu_ld" = yes; then
15207   echo "$as_me:$LINENO: checking for GNU ld" >&5
15208 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15209 else
15210   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15211 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15212 fi
15213 if test "${lt_cv_path_LD+set}" = set; then
15214   echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216   if test -z "$LD"; then
15217   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15218   for ac_dir in $PATH; do
15219     IFS="$lt_save_ifs"
15220     test -z "$ac_dir" && ac_dir=.
15221     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15222       lt_cv_path_LD="$ac_dir/$ac_prog"
15223       # Check to see if the program is GNU ld.  I'd rather use --version,
15224       # but apparently some GNU ld's only accept -v.
15225       # Break only if it was the GNU/non-GNU ld that we prefer.
15226       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15227       *GNU* | *'with BFD'*)
15228         test "$with_gnu_ld" != no && break
15229         ;;
15230       *)
15231         test "$with_gnu_ld" != yes && break
15232         ;;
15233       esac
15234     fi
15235   done
15236   IFS="$lt_save_ifs"
15237 else
15238   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15239 fi
15240 fi
15241
15242 LD="$lt_cv_path_LD"
15243 if test -n "$LD"; then
15244   echo "$as_me:$LINENO: result: $LD" >&5
15245 echo "${ECHO_T}$LD" >&6
15246 else
15247   echo "$as_me:$LINENO: result: no" >&5
15248 echo "${ECHO_T}no" >&6
15249 fi
15250 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15251 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15252    { (exit 1); exit 1; }; }
15253 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15254 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15255 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15259 case `$LD -v 2>&1 </dev/null` in
15260 *GNU* | *'with BFD'*)
15261   lt_cv_prog_gnu_ld=yes
15262   ;;
15263 *)
15264   lt_cv_prog_gnu_ld=no
15265   ;;
15266 esac
15267 fi
15268 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15269 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15270 with_gnu_ld=$lt_cv_prog_gnu_ld
15271
15272
15273
15274   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15275   # archiving commands below assume that GNU ld is being used.
15276   if test "$with_gnu_ld" = yes; then
15277     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15278     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'
15279
15280     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15281     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15282
15283     # If archive_cmds runs LD, not CC, wlarc should be empty
15284     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15285     #     investigate it a little bit more. (MM)
15286     wlarc='${wl}'
15287
15288     # ancient GNU ld didn't support --whole-archive et. al.
15289     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15290         grep 'no-whole-archive' > /dev/null; then
15291       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15292     else
15293       whole_archive_flag_spec_CXX=
15294     fi
15295   else
15296     with_gnu_ld=no
15297     wlarc=
15298
15299     # A generic and very simple default shared library creation
15300     # command for GNU C++ for the case where it uses the native
15301     # linker, instead of GNU ld.  If possible, this setting should
15302     # overridden to take advantage of the native linker features on
15303     # the platform it is being used on.
15304     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15305   fi
15306
15307   # Commands to make compiler produce verbose output that lists
15308   # what "hidden" libraries, object files and flags are used when
15309   # linking a shared library.
15310   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15311
15312 else
15313   GXX=no
15314   with_gnu_ld=no
15315   wlarc=
15316 fi
15317
15318 # PORTME: fill in a description of your system's C++ link characteristics
15319 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15320 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15321 ld_shlibs_CXX=yes
15322 case $host_os in
15323   aix3*)
15324     # FIXME: insert proper C++ library support
15325     ld_shlibs_CXX=no
15326     ;;
15327   aix4* | aix5*)
15328     if test "$host_cpu" = ia64; then
15329       # On IA64, the linker does run time linking by default, so we don't
15330       # have to do anything special.
15331       aix_use_runtimelinking=no
15332       exp_sym_flag='-Bexport'
15333       no_entry_flag=""
15334     else
15335       aix_use_runtimelinking=no
15336
15337       # Test if we are trying to use run time linking or normal
15338       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15339       # need to do runtime linking.
15340       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15341         for ld_flag in $LDFLAGS; do
15342           case $ld_flag in
15343           *-brtl*)
15344             aix_use_runtimelinking=yes
15345             break
15346             ;;
15347           esac
15348         done
15349       esac
15350
15351       exp_sym_flag='-bexport'
15352       no_entry_flag='-bnoentry'
15353     fi
15354
15355     # When large executables or shared objects are built, AIX ld can
15356     # have problems creating the table of contents.  If linking a library
15357     # or program results in "error TOC overflow" add -mminimal-toc to
15358     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15359     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15360
15361     archive_cmds_CXX=''
15362     hardcode_direct_CXX=yes
15363     hardcode_libdir_separator_CXX=':'
15364     link_all_deplibs_CXX=yes
15365
15366     if test "$GXX" = yes; then
15367       case $host_os in aix4.012|aix4.012.*)
15368       # We only want to do this on AIX 4.2 and lower, the check
15369       # below for broken collect2 doesn't work under 4.3+
15370         collect2name=`${CC} -print-prog-name=collect2`
15371         if test -f "$collect2name" && \
15372            strings "$collect2name" | grep resolve_lib_name >/dev/null
15373         then
15374           # We have reworked collect2
15375           hardcode_direct_CXX=yes
15376         else
15377           # We have old collect2
15378           hardcode_direct_CXX=unsupported
15379           # It fails to find uninstalled libraries when the uninstalled
15380           # path is not listed in the libpath.  Setting hardcode_minus_L
15381           # to unsupported forces relinking
15382           hardcode_minus_L_CXX=yes
15383           hardcode_libdir_flag_spec_CXX='-L$libdir'
15384           hardcode_libdir_separator_CXX=
15385         fi
15386       esac
15387       shared_flag='-shared'
15388     else
15389       # not using gcc
15390       if test "$host_cpu" = ia64; then
15391         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15392         # chokes on -Wl,-G. The following line is correct:
15393         shared_flag='-G'
15394       else
15395         if test "$aix_use_runtimelinking" = yes; then
15396           shared_flag='${wl}-G'
15397         else
15398           shared_flag='${wl}-bM:SRE'
15399         fi
15400       fi
15401     fi
15402
15403     # It seems that -bexpall does not export symbols beginning with
15404     # underscore (_), so it is better to generate a list of symbols to export.
15405     always_export_symbols_CXX=yes
15406     if test "$aix_use_runtimelinking" = yes; then
15407       # Warning - without using the other runtime loading flags (-brtl),
15408       # -berok will link without error, but may produce a broken library.
15409       allow_undefined_flag_CXX='-berok'
15410       # Determine the default libpath from the value encoded in an empty executable.
15411       cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h.  */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h.  */
15417
15418 int
15419 main ()
15420 {
15421
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428   (eval $ac_link) 2>conftest.er1
15429   ac_status=$?
15430   grep -v '^ *+' conftest.er1 >conftest.err
15431   rm -f conftest.er1
15432   cat conftest.err >&5
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } &&
15435          { ac_try='test -z "$ac_cxx_werror_flag"
15436                          || test ! -s conftest.err'
15437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438   (eval $ac_try) 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; } &&
15442          { ac_try='test -s conftest$ac_exeext'
15443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444   (eval $ac_try) 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; }; then
15448
15449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15450 }'`
15451 # Check for a 64-bit object if we didn't find anything.
15452 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; }
15453 }'`; fi
15454 else
15455   echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 fi
15459 rm -f conftest.err conftest.$ac_objext \
15460       conftest$ac_exeext conftest.$ac_ext
15461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15462
15463       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15464
15465       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"
15466      else
15467       if test "$host_cpu" = ia64; then
15468         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15469         allow_undefined_flag_CXX="-z nodefs"
15470         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"
15471       else
15472         # Determine the default libpath from the value encoded in an empty executable.
15473         cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479
15480 int
15481 main ()
15482 {
15483
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490   (eval $ac_link) 2>conftest.er1
15491   ac_status=$?
15492   grep -v '^ *+' conftest.er1 >conftest.err
15493   rm -f conftest.er1
15494   cat conftest.err >&5
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } &&
15497          { ac_try='test -z "$ac_cxx_werror_flag"
15498                          || test ! -s conftest.err'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; } &&
15504          { ac_try='test -s conftest$ac_exeext'
15505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506   (eval $ac_try) 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; }; then
15510
15511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15512 }'`
15513 # Check for a 64-bit object if we didn't find anything.
15514 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; }
15515 }'`; fi
15516 else
15517   echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15519
15520 fi
15521 rm -f conftest.err conftest.$ac_objext \
15522       conftest$ac_exeext conftest.$ac_ext
15523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15524
15525         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15526         # Warning - without using the other run time loading flags,
15527         # -berok will link without error, but may produce a broken library.
15528         no_undefined_flag_CXX=' ${wl}-bernotok'
15529         allow_undefined_flag_CXX=' ${wl}-berok'
15530         # -bexpall does not export symbols beginning with underscore (_)
15531         always_export_symbols_CXX=yes
15532         # Exported symbols can be pulled into shared objects from archives
15533         whole_archive_flag_spec_CXX=' '
15534         archive_cmds_need_lc_CXX=yes
15535         # This is similar to how AIX traditionally builds it's shared libraries.
15536         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'
15537       fi
15538     fi
15539     ;;
15540   chorus*)
15541     case $cc_basename in
15542       *)
15543         # FIXME: insert proper C++ library support
15544         ld_shlibs_CXX=no
15545         ;;
15546     esac
15547     ;;
15548
15549
15550   cygwin* | mingw* | pw32*)
15551     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15552     # as there is no search path for DLLs.
15553     hardcode_libdir_flag_spec_CXX='-L$libdir'
15554     allow_undefined_flag_CXX=unsupported
15555     always_export_symbols_CXX=no
15556     enable_shared_with_static_runtimes_CXX=yes
15557
15558     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15559       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'
15560       # If the export-symbols file already is a .def file (1st line
15561       # is EXPORTS), use it as is; otherwise, prepend...
15562       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15563         cp $export_symbols $output_objdir/$soname.def;
15564       else
15565         echo EXPORTS > $output_objdir/$soname.def;
15566         cat $export_symbols >> $output_objdir/$soname.def;
15567       fi~
15568       $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'
15569     else
15570       ld_shlibs_CXX=no
15571     fi
15572   ;;
15573       darwin* | rhapsody*)
15574         case "$host_os" in
15575         rhapsody* | darwin1.[012])
15576          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15577          ;;
15578        *) # Darwin 1.3 on
15579          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15580            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15581          else
15582            case ${MACOSX_DEPLOYMENT_TARGET} in
15583              10.[012])
15584                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15585                ;;
15586              10.*)
15587                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15588                ;;
15589            esac
15590          fi
15591          ;;
15592         esac
15593       archive_cmds_need_lc_CXX=no
15594       hardcode_direct_CXX=no
15595       hardcode_automatic_CXX=yes
15596       hardcode_shlibpath_var_CXX=unsupported
15597       whole_archive_flag_spec_CXX=''
15598       link_all_deplibs_CXX=yes
15599
15600     if test "$GXX" = yes ; then
15601       lt_int_apple_cc_single_mod=no
15602       output_verbose_link_cmd='echo'
15603       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15604        lt_int_apple_cc_single_mod=yes
15605       fi
15606       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15607        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15608       else
15609           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'
15610         fi
15611         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15612         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15613           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15614             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}'
15615           else
15616             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}'
15617           fi
15618             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}'
15619       else
15620       case "$cc_basename" in
15621         xlc*)
15622          output_verbose_link_cmd='echo'
15623           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'
15624           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15625           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15626           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}'
15627           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}'
15628           ;;
15629        *)
15630          ld_shlibs_CXX=no
15631           ;;
15632       esac
15633       fi
15634         ;;
15635
15636   dgux*)
15637     case $cc_basename in
15638       ec++)
15639         # FIXME: insert proper C++ library support
15640         ld_shlibs_CXX=no
15641         ;;
15642       ghcx)
15643         # Green Hills C++ Compiler
15644         # FIXME: insert proper C++ library support
15645         ld_shlibs_CXX=no
15646         ;;
15647       *)
15648         # FIXME: insert proper C++ library support
15649         ld_shlibs_CXX=no
15650         ;;
15651     esac
15652     ;;
15653   freebsd12*)
15654     # C++ shared libraries reported to be fairly broken before switch to ELF
15655     ld_shlibs_CXX=no
15656     ;;
15657   freebsd-elf*)
15658     archive_cmds_need_lc_CXX=no
15659     ;;
15660   freebsd* | kfreebsd*-gnu)
15661     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15662     # conventions
15663     ld_shlibs_CXX=yes
15664     ;;
15665   gnu*)
15666     ;;
15667   hpux9*)
15668     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669     hardcode_libdir_separator_CXX=:
15670     export_dynamic_flag_spec_CXX='${wl}-E'
15671     hardcode_direct_CXX=yes
15672     hardcode_minus_L_CXX=yes # Not in the search PATH,
15673                                 # but as the default
15674                                 # location of the library.
15675
15676     case $cc_basename in
15677     CC)
15678       # FIXME: insert proper C++ library support
15679       ld_shlibs_CXX=no
15680       ;;
15681     aCC)
15682       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'
15683       # Commands to make compiler produce verbose output that lists
15684       # what "hidden" libraries, object files and flags are used when
15685       # linking a shared library.
15686       #
15687       # There doesn't appear to be a way to prevent this compiler from
15688       # explicitly linking system object files so we need to strip them
15689       # from the output so that they don't get included in the library
15690       # dependencies.
15691       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'
15692       ;;
15693     *)
15694       if test "$GXX" = yes; then
15695         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'
15696       else
15697         # FIXME: insert proper C++ library support
15698         ld_shlibs_CXX=no
15699       fi
15700       ;;
15701     esac
15702     ;;
15703   hpux10*|hpux11*)
15704     if test $with_gnu_ld = no; then
15705       case "$host_cpu" in
15706       hppa*64*)
15707         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15708         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15709         hardcode_libdir_separator_CXX=:
15710         ;;
15711       ia64*)
15712         hardcode_libdir_flag_spec_CXX='-L$libdir'
15713         ;;
15714       *)
15715         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15716         hardcode_libdir_separator_CXX=:
15717         export_dynamic_flag_spec_CXX='${wl}-E'
15718         ;;
15719       esac
15720     fi
15721     case "$host_cpu" in
15722     hppa*64*)
15723       hardcode_direct_CXX=no
15724       hardcode_shlibpath_var_CXX=no
15725       ;;
15726     ia64*)
15727       hardcode_direct_CXX=no
15728       hardcode_shlibpath_var_CXX=no
15729       hardcode_minus_L_CXX=yes # Not in the search PATH,
15730                                               # but as the default
15731                                               # location of the library.
15732       ;;
15733     *)
15734       hardcode_direct_CXX=yes
15735       hardcode_minus_L_CXX=yes # Not in the search PATH,
15736                                               # but as the default
15737                                               # location of the library.
15738       ;;
15739     esac
15740
15741     case $cc_basename in
15742       CC)
15743         # FIXME: insert proper C++ library support
15744         ld_shlibs_CXX=no
15745         ;;
15746       aCC)
15747         case "$host_cpu" in
15748         hppa*64*|ia64*)
15749           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15750           ;;
15751         *)
15752           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15753           ;;
15754         esac
15755         # Commands to make compiler produce verbose output that lists
15756         # what "hidden" libraries, object files and flags are used when
15757         # linking a shared library.
15758         #
15759         # There doesn't appear to be a way to prevent this compiler from
15760         # explicitly linking system object files so we need to strip them
15761         # from the output so that they don't get included in the library
15762         # dependencies.
15763         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'
15764         ;;
15765       *)
15766         if test "$GXX" = yes; then
15767           if test $with_gnu_ld = no; then
15768             case "$host_cpu" in
15769             ia64*|hppa*64*)
15770               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15771               ;;
15772             *)
15773               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'
15774               ;;
15775             esac
15776           fi
15777         else
15778           # FIXME: insert proper C++ library support
15779           ld_shlibs_CXX=no
15780         fi
15781         ;;
15782     esac
15783     ;;
15784   irix5* | irix6*)
15785     case $cc_basename in
15786       CC)
15787         # SGI C++
15788         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'
15789
15790         # Archives containing C++ object files must be created using
15791         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15792         # necessary to make sure instantiated templates are included
15793         # in the archive.
15794         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15795         ;;
15796       *)
15797         if test "$GXX" = yes; then
15798           if test "$with_gnu_ld" = no; then
15799             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'
15800           else
15801             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'
15802           fi
15803         fi
15804         link_all_deplibs_CXX=yes
15805         ;;
15806     esac
15807     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15808     hardcode_libdir_separator_CXX=:
15809     ;;
15810   linux*)
15811     case $cc_basename in
15812       KCC)
15813         # Kuck and Associates, Inc. (KAI) C++ Compiler
15814
15815         # KCC will only create a shared library if the output file
15816         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15817         # to its proper name (with version) after linking.
15818         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'
15819         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'
15820         # Commands to make compiler produce verbose output that lists
15821         # what "hidden" libraries, object files and flags are used when
15822         # linking a shared library.
15823         #
15824         # There doesn't appear to be a way to prevent this compiler from
15825         # explicitly linking system object files so we need to strip them
15826         # from the output so that they don't get included in the library
15827         # dependencies.
15828         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'
15829
15830         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15831         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15832
15833         # Archives containing C++ object files must be created using
15834         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15835         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15836         ;;
15837       icpc)
15838         # Intel C++
15839         with_gnu_ld=yes
15840         # version 8.0 and above of icpc choke on multiply defined symbols
15841         # if we add $predep_objects and $postdep_objects, however 7.1 and
15842         # earlier do not add the objects themselves.
15843         case `$CC -V 2>&1` in
15844         *"Version 7."*)
15845           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846           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'
15847           ;;
15848         *)  # Version 8.0 or newer
15849           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15850         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15851           ;;
15852         esac
15853         archive_cmds_need_lc_CXX=no
15854         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15855         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15856         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15857         ;;
15858       cxx)
15859         # Compaq C++
15860         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15861         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'
15862
15863         runpath_var=LD_RUN_PATH
15864         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15865         hardcode_libdir_separator_CXX=:
15866
15867         # Commands to make compiler produce verbose output that lists
15868         # what "hidden" libraries, object files and flags are used when
15869         # linking a shared library.
15870         #
15871         # There doesn't appear to be a way to prevent this compiler from
15872         # explicitly linking system object files so we need to strip them
15873         # from the output so that they don't get included in the library
15874         # dependencies.
15875         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'
15876         ;;
15877     esac
15878     ;;
15879   lynxos*)
15880     # FIXME: insert proper C++ library support
15881     ld_shlibs_CXX=no
15882     ;;
15883   m88k*)
15884     # FIXME: insert proper C++ library support
15885     ld_shlibs_CXX=no
15886     ;;
15887   mvs*)
15888     case $cc_basename in
15889       cxx)
15890         # FIXME: insert proper C++ library support
15891         ld_shlibs_CXX=no
15892         ;;
15893       *)
15894         # FIXME: insert proper C++ library support
15895         ld_shlibs_CXX=no
15896         ;;
15897     esac
15898     ;;
15899   netbsd*)
15900     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15901       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15902       wlarc=
15903       hardcode_libdir_flag_spec_CXX='-R$libdir'
15904       hardcode_direct_CXX=yes
15905       hardcode_shlibpath_var_CXX=no
15906     fi
15907     # Workaround some broken pre-1.5 toolchains
15908     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15909     ;;
15910   openbsd2*)
15911     # C++ shared libraries are fairly broken
15912     ld_shlibs_CXX=no
15913     ;;
15914   openbsd*)
15915     hardcode_direct_CXX=yes
15916     hardcode_shlibpath_var_CXX=no
15917     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15918     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15919     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15920       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15921       export_dynamic_flag_spec_CXX='${wl}-E'
15922       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15923     fi
15924     output_verbose_link_cmd='echo'
15925     ;;
15926   osf3*)
15927     case $cc_basename in
15928       KCC)
15929         # Kuck and Associates, Inc. (KAI) C++ Compiler
15930
15931         # KCC will only create a shared library if the output file
15932         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15933         # to its proper name (with version) after linking.
15934         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'
15935
15936         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15937         hardcode_libdir_separator_CXX=:
15938
15939         # Archives containing C++ object files must be created using
15940         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15941         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15942
15943         ;;
15944       RCC)
15945         # Rational C++ 2.4.1
15946         # FIXME: insert proper C++ library support
15947         ld_shlibs_CXX=no
15948         ;;
15949       cxx)
15950         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15951         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'
15952
15953         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15954         hardcode_libdir_separator_CXX=:
15955
15956         # Commands to make compiler produce verbose output that lists
15957         # what "hidden" libraries, object files and flags are used when
15958         # linking a shared library.
15959         #
15960         # There doesn't appear to be a way to prevent this compiler from
15961         # explicitly linking system object files so we need to strip them
15962         # from the output so that they don't get included in the library
15963         # dependencies.
15964         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'
15965         ;;
15966       *)
15967         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15968           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15969           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'
15970
15971           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15972           hardcode_libdir_separator_CXX=:
15973
15974           # Commands to make compiler produce verbose output that lists
15975           # what "hidden" libraries, object files and flags are used when
15976           # linking a shared library.
15977           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15978
15979         else
15980           # FIXME: insert proper C++ library support
15981           ld_shlibs_CXX=no
15982         fi
15983         ;;
15984     esac
15985     ;;
15986   osf4* | osf5*)
15987     case $cc_basename in
15988       KCC)
15989         # Kuck and Associates, Inc. (KAI) C++ Compiler
15990
15991         # KCC will only create a shared library if the output file
15992         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15993         # to its proper name (with version) after linking.
15994         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'
15995
15996         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15997         hardcode_libdir_separator_CXX=:
15998
15999         # Archives containing C++ object files must be created using
16000         # the KAI C++ compiler.
16001         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16002         ;;
16003       RCC)
16004         # Rational C++ 2.4.1
16005         # FIXME: insert proper C++ library support
16006         ld_shlibs_CXX=no
16007         ;;
16008       cxx)
16009         allow_undefined_flag_CXX=' -expect_unresolved \*'
16010         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'
16011         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16012           echo "-hidden">> $lib.exp~
16013           $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~
16014           $rm $lib.exp'
16015
16016         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16017         hardcode_libdir_separator_CXX=:
16018
16019         # Commands to make compiler produce verbose output that lists
16020         # what "hidden" libraries, object files and flags are used when
16021         # linking a shared library.
16022         #
16023         # There doesn't appear to be a way to prevent this compiler from
16024         # explicitly linking system object files so we need to strip them
16025         # from the output so that they don't get included in the library
16026         # dependencies.
16027         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'
16028         ;;
16029       *)
16030         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16031           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16032          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'
16033
16034           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16035           hardcode_libdir_separator_CXX=:
16036
16037           # Commands to make compiler produce verbose output that lists
16038           # what "hidden" libraries, object files and flags are used when
16039           # linking a shared library.
16040           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16041
16042         else
16043           # FIXME: insert proper C++ library support
16044           ld_shlibs_CXX=no
16045         fi
16046         ;;
16047     esac
16048     ;;
16049   psos*)
16050     # FIXME: insert proper C++ library support
16051     ld_shlibs_CXX=no
16052     ;;
16053   sco*)
16054     archive_cmds_need_lc_CXX=no
16055     case $cc_basename in
16056       CC)
16057         # FIXME: insert proper C++ library support
16058         ld_shlibs_CXX=no
16059         ;;
16060       *)
16061         # FIXME: insert proper C++ library support
16062         ld_shlibs_CXX=no
16063         ;;
16064     esac
16065     ;;
16066   sunos4*)
16067     case $cc_basename in
16068       CC)
16069         # Sun C++ 4.x
16070         # FIXME: insert proper C++ library support
16071         ld_shlibs_CXX=no
16072         ;;
16073       lcc)
16074         # Lucid
16075         # FIXME: insert proper C++ library support
16076         ld_shlibs_CXX=no
16077         ;;
16078       *)
16079         # FIXME: insert proper C++ library support
16080         ld_shlibs_CXX=no
16081         ;;
16082     esac
16083     ;;
16084   solaris*)
16085     case $cc_basename in
16086       CC)
16087         # Sun C++ 4.2, 5.x and Centerline C++
16088         no_undefined_flag_CXX=' -zdefs'
16089         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16090         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16091         $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'
16092
16093         hardcode_libdir_flag_spec_CXX='-R$libdir'
16094         hardcode_shlibpath_var_CXX=no
16095         case $host_os in
16096           solaris2.0-5 | solaris2.0-5.*) ;;
16097           *)
16098             # The C++ compiler is used as linker so we must use $wl
16099             # flag to pass the commands to the underlying system
16100             # linker.
16101             # Supported since Solaris 2.6 (maybe 2.5.1?)
16102             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16103             ;;
16104         esac
16105         link_all_deplibs_CXX=yes
16106
16107         # Commands to make compiler produce verbose output that lists
16108         # what "hidden" libraries, object files and flags are used when
16109         # linking a shared library.
16110         #
16111         # There doesn't appear to be a way to prevent this compiler from
16112         # explicitly linking system object files so we need to strip them
16113         # from the output so that they don't get included in the library
16114         # dependencies.
16115         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'
16116
16117         # Archives containing C++ object files must be created using
16118         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16119         # necessary to make sure instantiated templates are included
16120         # in the archive.
16121         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16122         ;;
16123       gcx)
16124         # Green Hills C++ Compiler
16125         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16126
16127         # The C++ compiler must be used to create the archive.
16128         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16129         ;;
16130       *)
16131         # GNU C++ compiler with Solaris linker
16132         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16133           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16134           if $CC --version | grep -v '^2\.7' > /dev/null; then
16135             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16136             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16138
16139             # Commands to make compiler produce verbose output that lists
16140             # what "hidden" libraries, object files and flags are used when
16141             # linking a shared library.
16142             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16143           else
16144             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16145             # platform.
16146             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16147             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16149
16150             # Commands to make compiler produce verbose output that lists
16151             # what "hidden" libraries, object files and flags are used when
16152             # linking a shared library.
16153             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16154           fi
16155
16156           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16157         fi
16158         ;;
16159     esac
16160     ;;
16161   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16162     archive_cmds_need_lc_CXX=no
16163     ;;
16164   tandem*)
16165     case $cc_basename in
16166       NCC)
16167         # NonStop-UX NCC 3.20
16168         # FIXME: insert proper C++ library support
16169         ld_shlibs_CXX=no
16170         ;;
16171       *)
16172         # FIXME: insert proper C++ library support
16173         ld_shlibs_CXX=no
16174         ;;
16175     esac
16176     ;;
16177   vxworks*)
16178     # FIXME: insert proper C++ library support
16179     ld_shlibs_CXX=no
16180     ;;
16181   *)
16182     # FIXME: insert proper C++ library support
16183     ld_shlibs_CXX=no
16184     ;;
16185 esac
16186 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16187 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16188 test "$ld_shlibs_CXX" = no && can_build_shared=no
16189
16190 GCC_CXX="$GXX"
16191 LD_CXX="$LD"
16192
16193
16194 cat > conftest.$ac_ext <<EOF
16195 class Foo
16196 {
16197 public:
16198   Foo (void) { a = 0; }
16199 private:
16200   int a;
16201 };
16202 EOF
16203
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205   (eval $ac_compile) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; then
16209   # Parse the compiler output and extract the necessary
16210   # objects, libraries and library flags.
16211
16212   # Sentinel used to keep track of whether or not we are before
16213   # the conftest object file.
16214   pre_test_object_deps_done=no
16215
16216   # The `*' in the case matches for architectures that use `case' in
16217   # $output_verbose_cmd can trigger glob expansion during the loop
16218   # eval without this substitution.
16219   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16220
16221   for p in `eval $output_verbose_link_cmd`; do
16222     case $p in
16223
16224     -L* | -R* | -l*)
16225        # Some compilers place space between "-{L,R}" and the path.
16226        # Remove the space.
16227        if test $p = "-L" \
16228           || test $p = "-R"; then
16229          prev=$p
16230          continue
16231        else
16232          prev=
16233        fi
16234
16235        if test "$pre_test_object_deps_done" = no; then
16236          case $p in
16237          -L* | -R*)
16238            # Internal compiler library paths should come after those
16239            # provided the user.  The postdeps already come after the
16240            # user supplied libs so there is no need to process them.
16241            if test -z "$compiler_lib_search_path_CXX"; then
16242              compiler_lib_search_path_CXX="${prev}${p}"
16243            else
16244              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16245            fi
16246            ;;
16247          # The "-l" case would never come before the object being
16248          # linked, so don't bother handling this case.
16249          esac
16250        else
16251          if test -z "$postdeps_CXX"; then
16252            postdeps_CXX="${prev}${p}"
16253          else
16254            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16255          fi
16256        fi
16257        ;;
16258
16259     *.$objext)
16260        # This assumes that the test object file only shows up
16261        # once in the compiler output.
16262        if test "$p" = "conftest.$objext"; then
16263          pre_test_object_deps_done=yes
16264          continue
16265        fi
16266
16267        if test "$pre_test_object_deps_done" = no; then
16268          if test -z "$predep_objects_CXX"; then
16269            predep_objects_CXX="$p"
16270          else
16271            predep_objects_CXX="$predep_objects_CXX $p"
16272          fi
16273        else
16274          if test -z "$postdep_objects_CXX"; then
16275            postdep_objects_CXX="$p"
16276          else
16277            postdep_objects_CXX="$postdep_objects_CXX $p"
16278          fi
16279        fi
16280        ;;
16281
16282     *) ;; # Ignore the rest.
16283
16284     esac
16285   done
16286
16287   # Clean up.
16288   rm -f a.out a.exe
16289 else
16290   echo "libtool.m4: error: problem compiling CXX test program"
16291 fi
16292
16293 $rm -f confest.$objext
16294
16295 case " $postdeps_CXX " in
16296 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16297 esac
16298
16299 lt_prog_compiler_wl_CXX=
16300 lt_prog_compiler_pic_CXX=
16301 lt_prog_compiler_static_CXX=
16302
16303 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16304 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16305
16306   # C++ specific cases for pic, static, wl, etc.
16307   if test "$GXX" = yes; then
16308     lt_prog_compiler_wl_CXX='-Wl,'
16309     lt_prog_compiler_static_CXX='-static'
16310
16311     case $host_os in
16312     aix*)
16313       # All AIX code is PIC.
16314       if test "$host_cpu" = ia64; then
16315         # AIX 5 now supports IA64 processor
16316         lt_prog_compiler_static_CXX='-Bstatic'
16317       fi
16318       ;;
16319     amigaos*)
16320       # FIXME: we need at least 68020 code to build shared libraries, but
16321       # adding the `-m68020' flag to GCC prevents building anything better,
16322       # like `-m68040'.
16323       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16324       ;;
16325     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16326       # PIC is the default for these OSes.
16327       ;;
16328     mingw* | os2* | pw32*)
16329       # This hack is so that the source file can tell whether it is being
16330       # built for inclusion in a dll (and should export symbols for example).
16331       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16332       ;;
16333     darwin* | rhapsody*)
16334       # PIC is the default on this platform
16335       # Common symbols not allowed in MH_DYLIB files
16336       lt_prog_compiler_pic_CXX='-fno-common'
16337       ;;
16338     *djgpp*)
16339       # DJGPP does not support shared libraries at all
16340       lt_prog_compiler_pic_CXX=
16341       ;;
16342     sysv4*MP*)
16343       if test -d /usr/nec; then
16344         lt_prog_compiler_pic_CXX=-Kconform_pic
16345       fi
16346       ;;
16347     hpux*)
16348       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16349       # not for PA HP-UX.
16350       case "$host_cpu" in
16351       hppa*64*|ia64*)
16352         ;;
16353       *)
16354         lt_prog_compiler_pic_CXX='-fPIC'
16355         ;;
16356       esac
16357       ;;
16358     *)
16359       lt_prog_compiler_pic_CXX='-fPIC'
16360       ;;
16361     esac
16362   else
16363     case $host_os in
16364       aix4* | aix5*)
16365         # All AIX code is PIC.
16366         if test "$host_cpu" = ia64; then
16367           # AIX 5 now supports IA64 processor
16368           lt_prog_compiler_static_CXX='-Bstatic'
16369         else
16370           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16371         fi
16372         ;;
16373       chorus*)
16374         case $cc_basename in
16375         cxch68)
16376           # Green Hills C++ Compiler
16377           # _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"
16378           ;;
16379         esac
16380         ;;
16381        darwin*)
16382          # PIC is the default on this platform
16383          # Common symbols not allowed in MH_DYLIB files
16384          case "$cc_basename" in
16385            xlc*)
16386            lt_prog_compiler_pic_CXX='-qnocommon'
16387            lt_prog_compiler_wl_CXX='-Wl,'
16388            ;;
16389          esac
16390        ;;
16391       dgux*)
16392         case $cc_basename in
16393           ec++)
16394             lt_prog_compiler_pic_CXX='-KPIC'
16395             ;;
16396           ghcx)
16397             # Green Hills C++ Compiler
16398             lt_prog_compiler_pic_CXX='-pic'
16399             ;;
16400           *)
16401             ;;
16402         esac
16403         ;;
16404       freebsd* | kfreebsd*-gnu)
16405         # FreeBSD uses GNU C++
16406         ;;
16407       hpux9* | hpux10* | hpux11*)
16408         case $cc_basename in
16409           CC)
16410             lt_prog_compiler_wl_CXX='-Wl,'
16411             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16412             if test "$host_cpu" != ia64; then
16413               lt_prog_compiler_pic_CXX='+Z'
16414             fi
16415             ;;
16416           aCC)
16417             lt_prog_compiler_wl_CXX='-Wl,'
16418             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16419             case "$host_cpu" in
16420             hppa*64*|ia64*)
16421               # +Z the default
16422               ;;
16423             *)
16424               lt_prog_compiler_pic_CXX='+Z'
16425               ;;
16426             esac
16427             ;;
16428           *)
16429             ;;
16430         esac
16431         ;;
16432       irix5* | irix6* | nonstopux*)
16433         case $cc_basename in
16434           CC)
16435             lt_prog_compiler_wl_CXX='-Wl,'
16436             lt_prog_compiler_static_CXX='-non_shared'
16437             # CC pic flag -KPIC is the default.
16438             ;;
16439           *)
16440             ;;
16441         esac
16442         ;;
16443       linux*)
16444         case $cc_basename in
16445           KCC)
16446             # KAI C++ Compiler
16447             lt_prog_compiler_wl_CXX='--backend -Wl,'
16448             lt_prog_compiler_pic_CXX='-fPIC'
16449             ;;
16450           icpc)
16451             # Intel C++
16452             lt_prog_compiler_wl_CXX='-Wl,'
16453             lt_prog_compiler_pic_CXX='-KPIC'
16454             lt_prog_compiler_static_CXX='-static'
16455             ;;
16456           cxx)
16457             # Compaq C++
16458             # Make sure the PIC flag is empty.  It appears that all Alpha
16459             # Linux and Compaq Tru64 Unix objects are PIC.
16460             lt_prog_compiler_pic_CXX=
16461             lt_prog_compiler_static_CXX='-non_shared'
16462             ;;
16463           *)
16464             ;;
16465         esac
16466         ;;
16467       lynxos*)
16468         ;;
16469       m88k*)
16470         ;;
16471       mvs*)
16472         case $cc_basename in
16473           cxx)
16474             lt_prog_compiler_pic_CXX='-W c,exportall'
16475             ;;
16476           *)
16477             ;;
16478         esac
16479         ;;
16480       netbsd*)
16481         ;;
16482       osf3* | osf4* | osf5*)
16483         case $cc_basename in
16484           KCC)
16485             lt_prog_compiler_wl_CXX='--backend -Wl,'
16486             ;;
16487           RCC)
16488             # Rational C++ 2.4.1
16489             lt_prog_compiler_pic_CXX='-pic'
16490             ;;
16491           cxx)
16492             # Digital/Compaq C++
16493             lt_prog_compiler_wl_CXX='-Wl,'
16494             # Make sure the PIC flag is empty.  It appears that all Alpha
16495             # Linux and Compaq Tru64 Unix objects are PIC.
16496             lt_prog_compiler_pic_CXX=
16497             lt_prog_compiler_static_CXX='-non_shared'
16498             ;;
16499           *)
16500             ;;
16501         esac
16502         ;;
16503       psos*)
16504         ;;
16505       sco*)
16506         case $cc_basename in
16507           CC)
16508             lt_prog_compiler_pic_CXX='-fPIC'
16509             ;;
16510           *)
16511             ;;
16512         esac
16513         ;;
16514       solaris*)
16515         case $cc_basename in
16516           CC)
16517             # Sun C++ 4.2, 5.x and Centerline C++
16518             lt_prog_compiler_pic_CXX='-KPIC'
16519             lt_prog_compiler_static_CXX='-Bstatic'
16520             lt_prog_compiler_wl_CXX='-Qoption ld '
16521             ;;
16522           gcx)
16523             # Green Hills C++ Compiler
16524             lt_prog_compiler_pic_CXX='-PIC'
16525             ;;
16526           *)
16527             ;;
16528         esac
16529         ;;
16530       sunos4*)
16531         case $cc_basename in
16532           CC)
16533             # Sun C++ 4.x
16534             lt_prog_compiler_pic_CXX='-pic'
16535             lt_prog_compiler_static_CXX='-Bstatic'
16536             ;;
16537           lcc)
16538             # Lucid
16539             lt_prog_compiler_pic_CXX='-pic'
16540             ;;
16541           *)
16542             ;;
16543         esac
16544         ;;
16545       tandem*)
16546         case $cc_basename in
16547           NCC)
16548             # NonStop-UX NCC 3.20
16549             lt_prog_compiler_pic_CXX='-KPIC'
16550             ;;
16551           *)
16552             ;;
16553         esac
16554         ;;
16555       unixware*)
16556         ;;
16557       vxworks*)
16558         ;;
16559       *)
16560         lt_prog_compiler_can_build_shared_CXX=no
16561         ;;
16562     esac
16563   fi
16564
16565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16566 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16567
16568 #
16569 # Check to make sure the PIC flag actually works.
16570 #
16571 if test -n "$lt_prog_compiler_pic_CXX"; then
16572
16573 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16574 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16575 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16576   echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578   lt_prog_compiler_pic_works_CXX=no
16579   ac_outfile=conftest.$ac_objext
16580    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16581    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16582    # Insert the option either (1) after the last *FLAGS variable, or
16583    # (2) before a word containing "conftest.", or (3) at the end.
16584    # Note that $ac_compile itself does not contain backslashes and begins
16585    # with a dollar sign (not a hyphen), so the echo should work correctly.
16586    # The option is referenced via a variable to avoid confusing sed.
16587    lt_compile=`echo "$ac_compile" | $SED \
16588    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16590    -e 's:$: $lt_compiler_flag:'`
16591    (eval echo "\"\$as_me:16591: $lt_compile\"" >&5)
16592    (eval "$lt_compile" 2>conftest.err)
16593    ac_status=$?
16594    cat conftest.err >&5
16595    echo "$as_me:16595: \$? = $ac_status" >&5
16596    if (exit $ac_status) && test -s "$ac_outfile"; then
16597      # The compiler can only warn and ignore the option if not recognized
16598      # So say no if there are warnings
16599      if test ! -s conftest.err; then
16600        lt_prog_compiler_pic_works_CXX=yes
16601      fi
16602    fi
16603    $rm conftest*
16604
16605 fi
16606 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16607 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16608
16609 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16610     case $lt_prog_compiler_pic_CXX in
16611      "" | " "*) ;;
16612      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16613      esac
16614 else
16615     lt_prog_compiler_pic_CXX=
16616      lt_prog_compiler_can_build_shared_CXX=no
16617 fi
16618
16619 fi
16620 case "$host_os" in
16621   # For platforms which do not support PIC, -DPIC is meaningless:
16622   *djgpp*)
16623     lt_prog_compiler_pic_CXX=
16624     ;;
16625   *)
16626     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16627     ;;
16628 esac
16629
16630 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16631 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16632 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   lt_cv_prog_compiler_c_o_CXX=no
16636    $rm -r conftest 2>/dev/null
16637    mkdir conftest
16638    cd conftest
16639    mkdir out
16640    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16641
16642    lt_compiler_flag="-o out/conftest2.$ac_objext"
16643    # Insert the option either (1) after the last *FLAGS variable, or
16644    # (2) before a word containing "conftest.", or (3) at the end.
16645    # Note that $ac_compile itself does not contain backslashes and begins
16646    # with a dollar sign (not a hyphen), so the echo should work correctly.
16647    lt_compile=`echo "$ac_compile" | $SED \
16648    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16650    -e 's:$: $lt_compiler_flag:'`
16651    (eval echo "\"\$as_me:16651: $lt_compile\"" >&5)
16652    (eval "$lt_compile" 2>out/conftest.err)
16653    ac_status=$?
16654    cat out/conftest.err >&5
16655    echo "$as_me:16655: \$? = $ac_status" >&5
16656    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16657    then
16658      # The compiler can only warn and ignore the option if not recognized
16659      # So say no if there are warnings
16660      if test ! -s out/conftest.err; then
16661        lt_cv_prog_compiler_c_o_CXX=yes
16662      fi
16663    fi
16664    chmod u+w .
16665    $rm conftest*
16666    # SGI C++ compiler will create directory out/ii_files/ for
16667    # template instantiation
16668    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16669    $rm out/* && rmdir out
16670    cd ..
16671    rmdir conftest
16672    $rm conftest*
16673
16674 fi
16675 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16676 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16677
16678
16679 hard_links="nottested"
16680 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16681   # do not overwrite the value of need_locks provided by the user
16682   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16683 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16684   hard_links=yes
16685   $rm conftest*
16686   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16687   touch conftest.a
16688   ln conftest.a conftest.b 2>&5 || hard_links=no
16689   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16690   echo "$as_me:$LINENO: result: $hard_links" >&5
16691 echo "${ECHO_T}$hard_links" >&6
16692   if test "$hard_links" = no; then
16693     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16694 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16695     need_locks=warn
16696   fi
16697 else
16698   need_locks=no
16699 fi
16700
16701 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16702 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16703
16704   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16705   case $host_os in
16706   aix4* | aix5*)
16707     # If we're using GNU nm, then we don't want the "-C" option.
16708     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16709     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16710       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'
16711     else
16712       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'
16713     fi
16714     ;;
16715   pw32*)
16716     export_symbols_cmds_CXX="$ltdll_cmds"
16717   ;;
16718   cygwin* | mingw*)
16719     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16720   ;;
16721   *)
16722     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16723   ;;
16724   esac
16725
16726 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16727 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16728 test "$ld_shlibs_CXX" = no && can_build_shared=no
16729
16730 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16731 if test "$GCC" = yes; then
16732   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16733 fi
16734
16735 #
16736 # Do we need to explicitly link libc?
16737 #
16738 case "x$archive_cmds_need_lc_CXX" in
16739 x|xyes)
16740   # Assume -lc should be added
16741   archive_cmds_need_lc_CXX=yes
16742
16743   if test "$enable_shared" = yes && test "$GCC" = yes; then
16744     case $archive_cmds_CXX in
16745     *'~'*)
16746       # FIXME: we may have to deal with multi-command sequences.
16747       ;;
16748     '$CC '*)
16749       # Test whether the compiler implicitly links with -lc since on some
16750       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16751       # to ld, don't add -lc before -lgcc.
16752       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16753 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16754       $rm conftest*
16755       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16756
16757       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16758   (eval $ac_compile) 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } 2>conftest.err; then
16762         soname=conftest
16763         lib=conftest
16764         libobjs=conftest.$ac_objext
16765         deplibs=
16766         wl=$lt_prog_compiler_wl_CXX
16767         compiler_flags=-v
16768         linker_flags=-v
16769         verstring=
16770         output_objdir=.
16771         libname=conftest
16772         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16773         allow_undefined_flag_CXX=
16774         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16775   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }
16779         then
16780           archive_cmds_need_lc_CXX=no
16781         else
16782           archive_cmds_need_lc_CXX=yes
16783         fi
16784         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16785       else
16786         cat conftest.err 1>&5
16787       fi
16788       $rm conftest*
16789       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16790 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16791       ;;
16792     esac
16793   fi
16794   ;;
16795 esac
16796
16797 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16799 library_names_spec=
16800 libname_spec='lib$name'
16801 soname_spec=
16802 shrext_cmds=".so"
16803 postinstall_cmds=
16804 postuninstall_cmds=
16805 finish_cmds=
16806 finish_eval=
16807 shlibpath_var=
16808 shlibpath_overrides_runpath=unknown
16809 version_type=none
16810 dynamic_linker="$host_os ld.so"
16811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16812 if test "$GCC" = yes; then
16813   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16814   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16815     # if the path contains ";" then we assume it to be the separator
16816     # otherwise default to the standard path separator (i.e. ":") - it is
16817     # assumed that no part of a normal pathname contains ";" but that should
16818     # okay in the real world where ";" in dirpaths is itself problematic.
16819     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16820   else
16821     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16822   fi
16823 else
16824   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16825 fi
16826 need_lib_prefix=unknown
16827 hardcode_into_libs=no
16828
16829 # when you set need_version to no, make sure it does not cause -set_version
16830 # flags to be left without arguments
16831 need_version=unknown
16832
16833 case $host_os in
16834 aix3*)
16835   version_type=linux
16836   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16837   shlibpath_var=LIBPATH
16838
16839   # AIX 3 has no versioning support, so we append a major version to the name.
16840   soname_spec='${libname}${release}${shared_ext}$major'
16841   ;;
16842
16843 aix4* | aix5*)
16844   version_type=linux
16845   need_lib_prefix=no
16846   need_version=no
16847   hardcode_into_libs=yes
16848   if test "$host_cpu" = ia64; then
16849     # AIX 5 supports IA64
16850     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16851     shlibpath_var=LD_LIBRARY_PATH
16852   else
16853     # With GCC up to 2.95.x, collect2 would create an import file
16854     # for dependence libraries.  The import file would start with
16855     # the line `#! .'.  This would cause the generated library to
16856     # depend on `.', always an invalid library.  This was fixed in
16857     # development snapshots of GCC prior to 3.0.
16858     case $host_os in
16859       aix4 | aix4.[01] | aix4.[01].*)
16860       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16861            echo ' yes '
16862            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16863         :
16864       else
16865         can_build_shared=no
16866       fi
16867       ;;
16868     esac
16869     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16870     # soname into executable. Probably we can add versioning support to
16871     # collect2, so additional links can be useful in future.
16872     if test "$aix_use_runtimelinking" = yes; then
16873       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16874       # instead of lib<name>.a to let people know that these are not
16875       # typical AIX shared libraries.
16876       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877     else
16878       # We preserve .a as extension for shared libraries through AIX4.2
16879       # and later when we are not doing run time linking.
16880       library_names_spec='${libname}${release}.a $libname.a'
16881       soname_spec='${libname}${release}${shared_ext}$major'
16882     fi
16883     shlibpath_var=LIBPATH
16884   fi
16885   ;;
16886
16887 amigaos*)
16888   library_names_spec='$libname.ixlibrary $libname.a'
16889   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16890   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'
16891   ;;
16892
16893 beos*)
16894   library_names_spec='${libname}${shared_ext}'
16895   dynamic_linker="$host_os ld.so"
16896   shlibpath_var=LIBRARY_PATH
16897   ;;
16898
16899 bsdi[45]*)
16900   version_type=linux
16901   need_version=no
16902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903   soname_spec='${libname}${release}${shared_ext}$major'
16904   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16905   shlibpath_var=LD_LIBRARY_PATH
16906   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16907   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16908   # the default ld.so.conf also contains /usr/contrib/lib and
16909   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16910   # libtool to hard-code these into programs
16911   ;;
16912
16913 cygwin* | mingw* | pw32*)
16914   version_type=windows
16915   shrext_cmds=".dll"
16916   need_version=no
16917   need_lib_prefix=no
16918
16919   case $GCC,$host_os in
16920   yes,cygwin* | yes,mingw* | yes,pw32*)
16921     library_names_spec='$libname.dll.a'
16922     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16923     postinstall_cmds='base_file=`basename \${file}`~
16924       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16925       dldir=$destdir/`dirname \$dlpath`~
16926       test -d \$dldir || mkdir -p \$dldir~
16927       $install_prog $dir/$dlname \$dldir/$dlname'
16928     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16929       dlpath=$dir/\$dldll~
16930        $rm \$dlpath'
16931     shlibpath_overrides_runpath=yes
16932
16933     case $host_os in
16934     cygwin*)
16935       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16936       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16937       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16938       ;;
16939     mingw*)
16940       # MinGW DLLs use traditional 'lib' prefix
16941       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16942       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16943       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16944         # It is most probably a Windows format PATH printed by
16945         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16946         # path with ; separators, and with drive letters. We can handle the
16947         # drive letters (cygwin fileutils understands them), so leave them,
16948         # especially as we might pass files found there to a mingw objdump,
16949         # which wouldn't understand a cygwinified path. Ahh.
16950         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16951       else
16952         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16953       fi
16954       ;;
16955     pw32*)
16956       # pw32 DLLs use 'pw' prefix rather than 'lib'
16957       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16958       ;;
16959     esac
16960     ;;
16961
16962   *)
16963     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16964     ;;
16965   esac
16966   dynamic_linker='Win32 ld.exe'
16967   # FIXME: first we should search . and the directory the executable is in
16968   shlibpath_var=PATH
16969   ;;
16970
16971 darwin* | rhapsody*)
16972   dynamic_linker="$host_os dyld"
16973   version_type=darwin
16974   need_lib_prefix=no
16975   need_version=no
16976   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16977   soname_spec='${libname}${release}${major}$shared_ext'
16978   shlibpath_overrides_runpath=yes
16979   shlibpath_var=DYLD_LIBRARY_PATH
16980   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16981   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16982   if test "$GCC" = yes; then
16983     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"`
16984   else
16985     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16986   fi
16987   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16988   ;;
16989
16990 dgux*)
16991   version_type=linux
16992   need_lib_prefix=no
16993   need_version=no
16994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16995   soname_spec='${libname}${release}${shared_ext}$major'
16996   shlibpath_var=LD_LIBRARY_PATH
16997   ;;
16998
16999 freebsd1*)
17000   dynamic_linker=no
17001   ;;
17002
17003 kfreebsd*-gnu)
17004   version_type=linux
17005   need_lib_prefix=no
17006   need_version=no
17007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17008   soname_spec='${libname}${release}${shared_ext}$major'
17009   shlibpath_var=LD_LIBRARY_PATH
17010   shlibpath_overrides_runpath=no
17011   hardcode_into_libs=yes
17012   dynamic_linker='GNU ld.so'
17013   ;;
17014
17015 freebsd*)
17016   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17017   version_type=freebsd-$objformat
17018   case $version_type in
17019     freebsd-elf*)
17020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17021       need_version=no
17022       need_lib_prefix=no
17023       ;;
17024     freebsd-*)
17025       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17026       need_version=yes
17027       ;;
17028   esac
17029   shlibpath_var=LD_LIBRARY_PATH
17030   case $host_os in
17031   freebsd2*)
17032     shlibpath_overrides_runpath=yes
17033     ;;
17034   freebsd3.01* | freebsdelf3.01*)
17035     shlibpath_overrides_runpath=yes
17036     hardcode_into_libs=yes
17037     ;;
17038   *) # from 3.2 on
17039     shlibpath_overrides_runpath=no
17040     hardcode_into_libs=yes
17041     ;;
17042   esac
17043   ;;
17044
17045 gnu*)
17046   version_type=linux
17047   need_lib_prefix=no
17048   need_version=no
17049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17050   soname_spec='${libname}${release}${shared_ext}$major'
17051   shlibpath_var=LD_LIBRARY_PATH
17052   hardcode_into_libs=yes
17053   ;;
17054
17055 hpux9* | hpux10* | hpux11*)
17056   # Give a soname corresponding to the major version so that dld.sl refuses to
17057   # link against other versions.
17058   version_type=sunos
17059   need_lib_prefix=no
17060   need_version=no
17061   case "$host_cpu" in
17062   ia64*)
17063     shrext_cmds='.so'
17064     hardcode_into_libs=yes
17065     dynamic_linker="$host_os dld.so"
17066     shlibpath_var=LD_LIBRARY_PATH
17067     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069     soname_spec='${libname}${release}${shared_ext}$major'
17070     if test "X$HPUX_IA64_MODE" = X32; then
17071       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17072     else
17073       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17074     fi
17075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17076     ;;
17077    hppa*64*)
17078      shrext_cmds='.sl'
17079      hardcode_into_libs=yes
17080      dynamic_linker="$host_os dld.sl"
17081      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17082      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17083      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084      soname_spec='${libname}${release}${shared_ext}$major'
17085      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17086      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17087      ;;
17088    *)
17089     shrext_cmds='.sl'
17090     dynamic_linker="$host_os dld.sl"
17091     shlibpath_var=SHLIB_PATH
17092     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094     soname_spec='${libname}${release}${shared_ext}$major'
17095     ;;
17096   esac
17097   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17098   postinstall_cmds='chmod 555 $lib'
17099   ;;
17100
17101 irix5* | irix6* | nonstopux*)
17102   case $host_os in
17103     nonstopux*) version_type=nonstopux ;;
17104     *)
17105         if test "$lt_cv_prog_gnu_ld" = yes; then
17106                 version_type=linux
17107         else
17108                 version_type=irix
17109         fi ;;
17110   esac
17111   need_lib_prefix=no
17112   need_version=no
17113   soname_spec='${libname}${release}${shared_ext}$major'
17114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17115   case $host_os in
17116   irix5* | nonstopux*)
17117     libsuff= shlibsuff=
17118     ;;
17119   *)
17120     case $LD in # libtool.m4 will add one of these switches to LD
17121     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17122       libsuff= shlibsuff= libmagic=32-bit;;
17123     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17124       libsuff=32 shlibsuff=N32 libmagic=N32;;
17125     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17126       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17127     *) libsuff= shlibsuff= libmagic=never-match;;
17128     esac
17129     ;;
17130   esac
17131   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17132   shlibpath_overrides_runpath=no
17133   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17134   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17135   hardcode_into_libs=yes
17136   ;;
17137
17138 # No shared lib support for Linux oldld, aout, or coff.
17139 linux*oldld* | linux*aout* | linux*coff*)
17140   dynamic_linker=no
17141   ;;
17142
17143 # This must be Linux ELF.
17144 linux*)
17145   version_type=linux
17146   need_lib_prefix=no
17147   need_version=no
17148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149   soname_spec='${libname}${release}${shared_ext}$major'
17150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   shlibpath_overrides_runpath=no
17153   # This implies no fast_install, which is unacceptable.
17154   # Some rework will be needed to allow for fast_install
17155   # before this can be enabled.
17156   hardcode_into_libs=yes
17157
17158   # Append ld.so.conf contents to the search path
17159   if test -f /etc/ld.so.conf; then
17160     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17161     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17162   fi
17163
17164   # We used to test for /lib/ld.so.1 and disable shared libraries on
17165   # powerpc, because MkLinux only supported shared libraries with the
17166   # GNU dynamic linker.  Since this was broken with cross compilers,
17167   # most powerpc-linux boxes support dynamic linking these days and
17168   # people can always --disable-shared, the test was removed, and we
17169   # assume the GNU/Linux dynamic linker is in use.
17170   dynamic_linker='GNU/Linux ld.so'
17171   ;;
17172
17173 knetbsd*-gnu)
17174   version_type=linux
17175   need_lib_prefix=no
17176   need_version=no
17177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17178   soname_spec='${libname}${release}${shared_ext}$major'
17179   shlibpath_var=LD_LIBRARY_PATH
17180   shlibpath_overrides_runpath=no
17181   hardcode_into_libs=yes
17182   dynamic_linker='GNU ld.so'
17183   ;;
17184
17185 netbsd*)
17186   version_type=sunos
17187   need_lib_prefix=no
17188   need_version=no
17189   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192     dynamic_linker='NetBSD (a.out) ld.so'
17193   else
17194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195     soname_spec='${libname}${release}${shared_ext}$major'
17196     dynamic_linker='NetBSD ld.elf_so'
17197   fi
17198   shlibpath_var=LD_LIBRARY_PATH
17199   shlibpath_overrides_runpath=yes
17200   hardcode_into_libs=yes
17201   ;;
17202
17203 newsos6)
17204   version_type=linux
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206   shlibpath_var=LD_LIBRARY_PATH
17207   shlibpath_overrides_runpath=yes
17208   ;;
17209
17210 nto-qnx*)
17211   version_type=linux
17212   need_lib_prefix=no
17213   need_version=no
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215   soname_spec='${libname}${release}${shared_ext}$major'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   shlibpath_overrides_runpath=yes
17218   ;;
17219
17220 openbsd*)
17221   version_type=sunos
17222   need_lib_prefix=no
17223   need_version=no
17224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17226   shlibpath_var=LD_LIBRARY_PATH
17227   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17228     case $host_os in
17229       openbsd2.[89] | openbsd2.[89].*)
17230         shlibpath_overrides_runpath=no
17231         ;;
17232       *)
17233         shlibpath_overrides_runpath=yes
17234         ;;
17235       esac
17236   else
17237     shlibpath_overrides_runpath=yes
17238   fi
17239   ;;
17240
17241 os2*)
17242   libname_spec='$name'
17243   shrext_cmds=".dll"
17244   need_lib_prefix=no
17245   library_names_spec='$libname${shared_ext} $libname.a'
17246   dynamic_linker='OS/2 ld.exe'
17247   shlibpath_var=LIBPATH
17248   ;;
17249
17250 osf3* | osf4* | osf5*)
17251   version_type=osf
17252   need_lib_prefix=no
17253   need_version=no
17254   soname_spec='${libname}${release}${shared_ext}$major'
17255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256   shlibpath_var=LD_LIBRARY_PATH
17257   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17258   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17259   ;;
17260
17261 sco3.2v5*)
17262   version_type=osf
17263   soname_spec='${libname}${release}${shared_ext}$major'
17264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17265   shlibpath_var=LD_LIBRARY_PATH
17266   ;;
17267
17268 solaris*)
17269   version_type=linux
17270   need_lib_prefix=no
17271   need_version=no
17272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273   soname_spec='${libname}${release}${shared_ext}$major'
17274   shlibpath_var=LD_LIBRARY_PATH
17275   shlibpath_overrides_runpath=yes
17276   hardcode_into_libs=yes
17277   # ldd complains unless libraries are executable
17278   postinstall_cmds='chmod +x $lib'
17279   ;;
17280
17281 sunos4*)
17282   version_type=sunos
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17284   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17285   shlibpath_var=LD_LIBRARY_PATH
17286   shlibpath_overrides_runpath=yes
17287   if test "$with_gnu_ld" = yes; then
17288     need_lib_prefix=no
17289   fi
17290   need_version=yes
17291   ;;
17292
17293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17294   version_type=linux
17295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296   soname_spec='${libname}${release}${shared_ext}$major'
17297   shlibpath_var=LD_LIBRARY_PATH
17298   case $host_vendor in
17299     sni)
17300       shlibpath_overrides_runpath=no
17301       need_lib_prefix=no
17302       export_dynamic_flag_spec='${wl}-Blargedynsym'
17303       runpath_var=LD_RUN_PATH
17304       ;;
17305     siemens)
17306       need_lib_prefix=no
17307       ;;
17308     motorola)
17309       need_lib_prefix=no
17310       need_version=no
17311       shlibpath_overrides_runpath=no
17312       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17313       ;;
17314   esac
17315   ;;
17316
17317 sysv4*MP*)
17318   if test -d /usr/nec ;then
17319     version_type=linux
17320     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17321     soname_spec='$libname${shared_ext}.$major'
17322     shlibpath_var=LD_LIBRARY_PATH
17323   fi
17324   ;;
17325
17326 uts4*)
17327   version_type=linux
17328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   shlibpath_var=LD_LIBRARY_PATH
17331   ;;
17332
17333 *)
17334   dynamic_linker=no
17335   ;;
17336 esac
17337 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17338 echo "${ECHO_T}$dynamic_linker" >&6
17339 test "$dynamic_linker" = no && can_build_shared=no
17340
17341 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17343 hardcode_action_CXX=
17344 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17345    test -n "$runpath_var_CXX" || \
17346    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17347
17348   # We can hardcode non-existant directories.
17349   if test "$hardcode_direct_CXX" != no &&
17350      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17351      # have to relink, otherwise we might link with an installed library
17352      # when we should be linking with a yet-to-be-installed one
17353      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17354      test "$hardcode_minus_L_CXX" != no; then
17355     # Linking always hardcodes the temporary library directory.
17356     hardcode_action_CXX=relink
17357   else
17358     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17359     hardcode_action_CXX=immediate
17360   fi
17361 else
17362   # We cannot hardcode anything, or else we can only hardcode existing
17363   # directories.
17364   hardcode_action_CXX=unsupported
17365 fi
17366 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17367 echo "${ECHO_T}$hardcode_action_CXX" >&6
17368
17369 if test "$hardcode_action_CXX" = relink; then
17370   # Fast installation is not supported
17371   enable_fast_install=no
17372 elif test "$shlibpath_overrides_runpath" = yes ||
17373      test "$enable_shared" = no; then
17374   # Fast installation is not necessary
17375   enable_fast_install=needless
17376 fi
17377
17378 striplib=
17379 old_striplib=
17380 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17381 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17382 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17383   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17384   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17385   echo "$as_me:$LINENO: result: yes" >&5
17386 echo "${ECHO_T}yes" >&6
17387 else
17388 # FIXME - insert some real tests, host_os isn't really good enough
17389   case $host_os in
17390    darwin*)
17391        if test -n "$STRIP" ; then
17392          striplib="$STRIP -x"
17393          echo "$as_me:$LINENO: result: yes" >&5
17394 echo "${ECHO_T}yes" >&6
17395        else
17396   echo "$as_me:$LINENO: result: no" >&5
17397 echo "${ECHO_T}no" >&6
17398 fi
17399        ;;
17400    *)
17401   echo "$as_me:$LINENO: result: no" >&5
17402 echo "${ECHO_T}no" >&6
17403     ;;
17404   esac
17405 fi
17406
17407 if test "x$enable_dlopen" != xyes; then
17408   enable_dlopen=unknown
17409   enable_dlopen_self=unknown
17410   enable_dlopen_self_static=unknown
17411 else
17412   lt_cv_dlopen=no
17413   lt_cv_dlopen_libs=
17414
17415   case $host_os in
17416   beos*)
17417     lt_cv_dlopen="load_add_on"
17418     lt_cv_dlopen_libs=
17419     lt_cv_dlopen_self=yes
17420     ;;
17421
17422   mingw* | pw32*)
17423     lt_cv_dlopen="LoadLibrary"
17424     lt_cv_dlopen_libs=
17425    ;;
17426
17427   cygwin*)
17428     lt_cv_dlopen="dlopen"
17429     lt_cv_dlopen_libs=
17430    ;;
17431
17432   darwin*)
17433   # if libdl is installed we need to link against it
17434     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17435 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   ac_check_lib_save_LIBS=$LIBS
17440 LIBS="-ldl  $LIBS"
17441 cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447
17448 /* Override any gcc2 internal prototype to avoid an error.  */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 /* We use char because int might match the return type of a gcc2
17453    builtin and then its argument prototype would still apply.  */
17454 char dlopen ();
17455 int
17456 main ()
17457 {
17458 dlopen ();
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17465   (eval $ac_link) 2>conftest.er1
17466   ac_status=$?
17467   grep -v '^ *+' conftest.er1 >conftest.err
17468   rm -f conftest.er1
17469   cat conftest.err >&5
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); } &&
17472          { ac_try='test -z "$ac_cxx_werror_flag"
17473                          || test ! -s conftest.err'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; } &&
17479          { ac_try='test -s conftest$ac_exeext'
17480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481   (eval $ac_try) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); }; }; then
17485   ac_cv_lib_dl_dlopen=yes
17486 else
17487   echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17489
17490 ac_cv_lib_dl_dlopen=no
17491 fi
17492 rm -f conftest.err conftest.$ac_objext \
17493       conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17495 fi
17496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17498 if test $ac_cv_lib_dl_dlopen = yes; then
17499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17500 else
17501
17502     lt_cv_dlopen="dyld"
17503     lt_cv_dlopen_libs=
17504     lt_cv_dlopen_self=yes
17505
17506 fi
17507
17508    ;;
17509
17510   *)
17511     echo "$as_me:$LINENO: checking for shl_load" >&5
17512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17513 if test "${ac_cv_func_shl_load+set}" = set; then
17514   echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516   cat >conftest.$ac_ext <<_ACEOF
17517 /* confdefs.h.  */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h.  */
17522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17524 #define shl_load innocuous_shl_load
17525
17526 /* System header to define __stub macros and hopefully few prototypes,
17527     which can conflict with char shl_load (); below.
17528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529     <limits.h> exists even on freestanding compilers.  */
17530
17531 #ifdef __STDC__
17532 # include <limits.h>
17533 #else
17534 # include <assert.h>
17535 #endif
17536
17537 #undef shl_load
17538
17539 /* Override any gcc2 internal prototype to avoid an error.  */
17540 #ifdef __cplusplus
17541 extern "C"
17542 {
17543 #endif
17544 /* We use char because int might match the return type of a gcc2
17545    builtin and then its argument prototype would still apply.  */
17546 char shl_load ();
17547 /* The GNU C library defines this for functions which it implements
17548     to always fail with ENOSYS.  Some functions are actually named
17549     something starting with __ and the normal name is an alias.  */
17550 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17551 choke me
17552 #else
17553 char (*f) () = shl_load;
17554 #endif
17555 #ifdef __cplusplus
17556 }
17557 #endif
17558
17559 int
17560 main ()
17561 {
17562 return f != shl_load;
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17569   (eval $ac_link) 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } &&
17576          { ac_try='test -z "$ac_cxx_werror_flag"
17577                          || test ! -s conftest.err'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest$ac_exeext'
17584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585   (eval $ac_try) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; }; then
17589   ac_cv_func_shl_load=yes
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 ac_cv_func_shl_load=no
17595 fi
17596 rm -f conftest.err conftest.$ac_objext \
17597       conftest$ac_exeext conftest.$ac_ext
17598 fi
17599 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17601 if test $ac_cv_func_shl_load = yes; then
17602   lt_cv_dlopen="shl_load"
17603 else
17604   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17607   echo $ECHO_N "(cached) $ECHO_C" >&6
17608 else
17609   ac_check_lib_save_LIBS=$LIBS
17610 LIBS="-ldld  $LIBS"
17611 cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617
17618 /* Override any gcc2 internal prototype to avoid an error.  */
17619 #ifdef __cplusplus
17620 extern "C"
17621 #endif
17622 /* We use char because int might match the return type of a gcc2
17623    builtin and then its argument prototype would still apply.  */
17624 char shl_load ();
17625 int
17626 main ()
17627 {
17628 shl_load ();
17629   ;
17630   return 0;
17631 }
17632 _ACEOF
17633 rm -f conftest.$ac_objext conftest$ac_exeext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635   (eval $ac_link) 2>conftest.er1
17636   ac_status=$?
17637   grep -v '^ *+' conftest.er1 >conftest.err
17638   rm -f conftest.er1
17639   cat conftest.err >&5
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); } &&
17642          { ac_try='test -z "$ac_cxx_werror_flag"
17643                          || test ! -s conftest.err'
17644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645   (eval $ac_try) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; } &&
17649          { ac_try='test -s conftest$ac_exeext'
17650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651   (eval $ac_try) 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; }; then
17655   ac_cv_lib_dld_shl_load=yes
17656 else
17657   echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 ac_cv_lib_dld_shl_load=no
17661 fi
17662 rm -f conftest.err conftest.$ac_objext \
17663       conftest$ac_exeext conftest.$ac_ext
17664 LIBS=$ac_check_lib_save_LIBS
17665 fi
17666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17668 if test $ac_cv_lib_dld_shl_load = yes; then
17669   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17670 else
17671   echo "$as_me:$LINENO: checking for dlopen" >&5
17672 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17673 if test "${ac_cv_func_dlopen+set}" = set; then
17674   echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676   cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h.  */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h.  */
17682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17684 #define dlopen innocuous_dlopen
17685
17686 /* System header to define __stub macros and hopefully few prototypes,
17687     which can conflict with char dlopen (); below.
17688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17689     <limits.h> exists even on freestanding compilers.  */
17690
17691 #ifdef __STDC__
17692 # include <limits.h>
17693 #else
17694 # include <assert.h>
17695 #endif
17696
17697 #undef dlopen
17698
17699 /* Override any gcc2 internal prototype to avoid an error.  */
17700 #ifdef __cplusplus
17701 extern "C"
17702 {
17703 #endif
17704 /* We use char because int might match the return type of a gcc2
17705    builtin and then its argument prototype would still apply.  */
17706 char dlopen ();
17707 /* The GNU C library defines this for functions which it implements
17708     to always fail with ENOSYS.  Some functions are actually named
17709     something starting with __ and the normal name is an alias.  */
17710 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17711 choke me
17712 #else
17713 char (*f) () = dlopen;
17714 #endif
17715 #ifdef __cplusplus
17716 }
17717 #endif
17718
17719 int
17720 main ()
17721 {
17722 return f != dlopen;
17723   ;
17724   return 0;
17725 }
17726 _ACEOF
17727 rm -f conftest.$ac_objext conftest$ac_exeext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729   (eval $ac_link) 2>conftest.er1
17730   ac_status=$?
17731   grep -v '^ *+' conftest.er1 >conftest.err
17732   rm -f conftest.er1
17733   cat conftest.err >&5
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); } &&
17736          { ac_try='test -z "$ac_cxx_werror_flag"
17737                          || test ! -s conftest.err'
17738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739   (eval $ac_try) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; } &&
17743          { ac_try='test -s conftest$ac_exeext'
17744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745   (eval $ac_try) 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; }; then
17749   ac_cv_func_dlopen=yes
17750 else
17751   echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754 ac_cv_func_dlopen=no
17755 fi
17756 rm -f conftest.err conftest.$ac_objext \
17757       conftest$ac_exeext conftest.$ac_ext
17758 fi
17759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17761 if test $ac_cv_func_dlopen = yes; then
17762   lt_cv_dlopen="dlopen"
17763 else
17764   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-ldl  $LIBS"
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h.  */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h.  */
17777
17778 /* Override any gcc2 internal prototype to avoid an error.  */
17779 #ifdef __cplusplus
17780 extern "C"
17781 #endif
17782 /* We use char because int might match the return type of a gcc2
17783    builtin and then its argument prototype would still apply.  */
17784 char dlopen ();
17785 int
17786 main ()
17787 {
17788 dlopen ();
17789   ;
17790   return 0;
17791 }
17792 _ACEOF
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17795   (eval $ac_link) 2>conftest.er1
17796   ac_status=$?
17797   grep -v '^ *+' conftest.er1 >conftest.err
17798   rm -f conftest.er1
17799   cat conftest.err >&5
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } &&
17802          { ac_try='test -z "$ac_cxx_werror_flag"
17803                          || test ! -s conftest.err'
17804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805   (eval $ac_try) 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; } &&
17809          { ac_try='test -s conftest$ac_exeext'
17810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811   (eval $ac_try) 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; }; then
17815   ac_cv_lib_dl_dlopen=yes
17816 else
17817   echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820 ac_cv_lib_dl_dlopen=no
17821 fi
17822 rm -f conftest.err conftest.$ac_objext \
17823       conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17825 fi
17826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17828 if test $ac_cv_lib_dl_dlopen = yes; then
17829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17830 else
17831   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17834   echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836   ac_check_lib_save_LIBS=$LIBS
17837 LIBS="-lsvld  $LIBS"
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844
17845 /* Override any gcc2 internal prototype to avoid an error.  */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 /* We use char because int might match the return type of a gcc2
17850    builtin and then its argument prototype would still apply.  */
17851 char dlopen ();
17852 int
17853 main ()
17854 {
17855 dlopen ();
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862   (eval $ac_link) 2>conftest.er1
17863   ac_status=$?
17864   grep -v '^ *+' conftest.er1 >conftest.err
17865   rm -f conftest.er1
17866   cat conftest.err >&5
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } &&
17869          { ac_try='test -z "$ac_cxx_werror_flag"
17870                          || test ! -s conftest.err'
17871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872   (eval $ac_try) 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; } &&
17876          { ac_try='test -s conftest$ac_exeext'
17877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878   (eval $ac_try) 2>&5
17879   ac_status=$?
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); }; }; then
17882   ac_cv_lib_svld_dlopen=yes
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887 ac_cv_lib_svld_dlopen=no
17888 fi
17889 rm -f conftest.err conftest.$ac_objext \
17890       conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17892 fi
17893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17895 if test $ac_cv_lib_svld_dlopen = yes; then
17896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17897 else
17898   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903   ac_check_lib_save_LIBS=$LIBS
17904 LIBS="-ldld  $LIBS"
17905 cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911
17912 /* Override any gcc2 internal prototype to avoid an error.  */
17913 #ifdef __cplusplus
17914 extern "C"
17915 #endif
17916 /* We use char because int might match the return type of a gcc2
17917    builtin and then its argument prototype would still apply.  */
17918 char dld_link ();
17919 int
17920 main ()
17921 {
17922 dld_link ();
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929   (eval $ac_link) 2>conftest.er1
17930   ac_status=$?
17931   grep -v '^ *+' conftest.er1 >conftest.err
17932   rm -f conftest.er1
17933   cat conftest.err >&5
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } &&
17936          { ac_try='test -z "$ac_cxx_werror_flag"
17937                          || test ! -s conftest.err'
17938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939   (eval $ac_try) 2>&5
17940   ac_status=$?
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); }; } &&
17943          { ac_try='test -s conftest$ac_exeext'
17944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945   (eval $ac_try) 2>&5
17946   ac_status=$?
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); }; }; then
17949   ac_cv_lib_dld_dld_link=yes
17950 else
17951   echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 ac_cv_lib_dld_dld_link=no
17955 fi
17956 rm -f conftest.err conftest.$ac_objext \
17957       conftest$ac_exeext conftest.$ac_ext
17958 LIBS=$ac_check_lib_save_LIBS
17959 fi
17960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17961 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17962 if test $ac_cv_lib_dld_dld_link = yes; then
17963   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17964 fi
17965
17966
17967 fi
17968
17969
17970 fi
17971
17972
17973 fi
17974
17975
17976 fi
17977
17978
17979 fi
17980
17981     ;;
17982   esac
17983
17984   if test "x$lt_cv_dlopen" != xno; then
17985     enable_dlopen=yes
17986   else
17987     enable_dlopen=no
17988   fi
17989
17990   case $lt_cv_dlopen in
17991   dlopen)
17992     save_CPPFLAGS="$CPPFLAGS"
17993     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17994
17995     save_LDFLAGS="$LDFLAGS"
17996     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17997
17998     save_LIBS="$LIBS"
17999     LIBS="$lt_cv_dlopen_libs $LIBS"
18000
18001     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18002 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18003 if test "${lt_cv_dlopen_self+set}" = set; then
18004   echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006           if test "$cross_compiling" = yes; then :
18007   lt_cv_dlopen_self=cross
18008 else
18009   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18010   lt_status=$lt_dlunknown
18011   cat > conftest.$ac_ext <<EOF
18012 #line 18012 "configure"
18013 #include "confdefs.h"
18014
18015 #if HAVE_DLFCN_H
18016 #include <dlfcn.h>
18017 #endif
18018
18019 #include <stdio.h>
18020
18021 #ifdef RTLD_GLOBAL
18022 #  define LT_DLGLOBAL           RTLD_GLOBAL
18023 #else
18024 #  ifdef DL_GLOBAL
18025 #    define LT_DLGLOBAL         DL_GLOBAL
18026 #  else
18027 #    define LT_DLGLOBAL         0
18028 #  endif
18029 #endif
18030
18031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18032    find out it does not work in some platform. */
18033 #ifndef LT_DLLAZY_OR_NOW
18034 #  ifdef RTLD_LAZY
18035 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18036 #  else
18037 #    ifdef DL_LAZY
18038 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18039 #    else
18040 #      ifdef RTLD_NOW
18041 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18042 #      else
18043 #        ifdef DL_NOW
18044 #          define LT_DLLAZY_OR_NOW      DL_NOW
18045 #        else
18046 #          define LT_DLLAZY_OR_NOW      0
18047 #        endif
18048 #      endif
18049 #    endif
18050 #  endif
18051 #endif
18052
18053 #ifdef __cplusplus
18054 extern "C" void exit (int);
18055 #endif
18056
18057 void fnord() { int i=42;}
18058 int main ()
18059 {
18060   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18061   int status = $lt_dlunknown;
18062
18063   if (self)
18064     {
18065       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18066       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18067       /* dlclose (self); */
18068     }
18069
18070     exit (status);
18071 }
18072 EOF
18073   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074   (eval $ac_link) 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18078     (./conftest; exit; ) 2>/dev/null
18079     lt_status=$?
18080     case x$lt_status in
18081       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18082       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18083       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18084     esac
18085   else :
18086     # compilation failed
18087     lt_cv_dlopen_self=no
18088   fi
18089 fi
18090 rm -fr conftest*
18091
18092
18093 fi
18094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18095 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18096
18097     if test "x$lt_cv_dlopen_self" = xyes; then
18098       LDFLAGS="$LDFLAGS $link_static_flag"
18099       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18100 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18101 if test "${lt_cv_dlopen_self_static+set}" = set; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104           if test "$cross_compiling" = yes; then :
18105   lt_cv_dlopen_self_static=cross
18106 else
18107   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18108   lt_status=$lt_dlunknown
18109   cat > conftest.$ac_ext <<EOF
18110 #line 18110 "configure"
18111 #include "confdefs.h"
18112
18113 #if HAVE_DLFCN_H
18114 #include <dlfcn.h>
18115 #endif
18116
18117 #include <stdio.h>
18118
18119 #ifdef RTLD_GLOBAL
18120 #  define LT_DLGLOBAL           RTLD_GLOBAL
18121 #else
18122 #  ifdef DL_GLOBAL
18123 #    define LT_DLGLOBAL         DL_GLOBAL
18124 #  else
18125 #    define LT_DLGLOBAL         0
18126 #  endif
18127 #endif
18128
18129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18130    find out it does not work in some platform. */
18131 #ifndef LT_DLLAZY_OR_NOW
18132 #  ifdef RTLD_LAZY
18133 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18134 #  else
18135 #    ifdef DL_LAZY
18136 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18137 #    else
18138 #      ifdef RTLD_NOW
18139 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18140 #      else
18141 #        ifdef DL_NOW
18142 #          define LT_DLLAZY_OR_NOW      DL_NOW
18143 #        else
18144 #          define LT_DLLAZY_OR_NOW      0
18145 #        endif
18146 #      endif
18147 #    endif
18148 #  endif
18149 #endif
18150
18151 #ifdef __cplusplus
18152 extern "C" void exit (int);
18153 #endif
18154
18155 void fnord() { int i=42;}
18156 int main ()
18157 {
18158   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18159   int status = $lt_dlunknown;
18160
18161   if (self)
18162     {
18163       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18164       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18165       /* dlclose (self); */
18166     }
18167
18168     exit (status);
18169 }
18170 EOF
18171   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172   (eval $ac_link) 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18176     (./conftest; exit; ) 2>/dev/null
18177     lt_status=$?
18178     case x$lt_status in
18179       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18180       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18181       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18182     esac
18183   else :
18184     # compilation failed
18185     lt_cv_dlopen_self_static=no
18186   fi
18187 fi
18188 rm -fr conftest*
18189
18190
18191 fi
18192 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18193 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18194     fi
18195
18196     CPPFLAGS="$save_CPPFLAGS"
18197     LDFLAGS="$save_LDFLAGS"
18198     LIBS="$save_LIBS"
18199     ;;
18200   esac
18201
18202   case $lt_cv_dlopen_self in
18203   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18204   *) enable_dlopen_self=unknown ;;
18205   esac
18206
18207   case $lt_cv_dlopen_self_static in
18208   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18209   *) enable_dlopen_self_static=unknown ;;
18210   esac
18211 fi
18212
18213
18214 # The else clause should only fire when bootstrapping the
18215 # libtool distribution, otherwise you forgot to ship ltmain.sh
18216 # with your package, and you will get complaints that there are
18217 # no rules to generate ltmain.sh.
18218 if test -f "$ltmain"; then
18219   # See if we are running on zsh, and set the options which allow our commands through
18220   # without removal of \ escapes.
18221   if test -n "${ZSH_VERSION+set}" ; then
18222     setopt NO_GLOB_SUBST
18223   fi
18224   # Now quote all the things that may contain metacharacters while being
18225   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18226   # variables and quote the copies for generation of the libtool script.
18227   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18228     SED SHELL STRIP \
18229     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18230     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18231     deplibs_check_method reload_flag reload_cmds need_locks \
18232     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18233     lt_cv_sys_global_symbol_to_c_name_address \
18234     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18235     old_postinstall_cmds old_postuninstall_cmds \
18236     compiler_CXX \
18237     CC_CXX \
18238     LD_CXX \
18239     lt_prog_compiler_wl_CXX \
18240     lt_prog_compiler_pic_CXX \
18241     lt_prog_compiler_static_CXX \
18242     lt_prog_compiler_no_builtin_flag_CXX \
18243     export_dynamic_flag_spec_CXX \
18244     thread_safe_flag_spec_CXX \
18245     whole_archive_flag_spec_CXX \
18246     enable_shared_with_static_runtimes_CXX \
18247     old_archive_cmds_CXX \
18248     old_archive_from_new_cmds_CXX \
18249     predep_objects_CXX \
18250     postdep_objects_CXX \
18251     predeps_CXX \
18252     postdeps_CXX \
18253     compiler_lib_search_path_CXX \
18254     archive_cmds_CXX \
18255     archive_expsym_cmds_CXX \
18256     postinstall_cmds_CXX \
18257     postuninstall_cmds_CXX \
18258     old_archive_from_expsyms_cmds_CXX \
18259     allow_undefined_flag_CXX \
18260     no_undefined_flag_CXX \
18261     export_symbols_cmds_CXX \
18262     hardcode_libdir_flag_spec_CXX \
18263     hardcode_libdir_flag_spec_ld_CXX \
18264     hardcode_libdir_separator_CXX \
18265     hardcode_automatic_CXX \
18266     module_cmds_CXX \
18267     module_expsym_cmds_CXX \
18268     lt_cv_prog_compiler_c_o_CXX \
18269     exclude_expsyms_CXX \
18270     include_expsyms_CXX; do
18271
18272     case $var in
18273     old_archive_cmds_CXX | \
18274     old_archive_from_new_cmds_CXX | \
18275     archive_cmds_CXX | \
18276     archive_expsym_cmds_CXX | \
18277     module_cmds_CXX | \
18278     module_expsym_cmds_CXX | \
18279     old_archive_from_expsyms_cmds_CXX | \
18280     export_symbols_cmds_CXX | \
18281     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18282     postinstall_cmds | postuninstall_cmds | \
18283     old_postinstall_cmds | old_postuninstall_cmds | \
18284     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18285       # Double-quote double-evaled strings.
18286       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18287       ;;
18288     *)
18289       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18290       ;;
18291     esac
18292   done
18293
18294   case $lt_echo in
18295   *'\$0 --fallback-echo"')
18296     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18297     ;;
18298   esac
18299
18300 cfgfile="$ofile"
18301
18302   cat <<__EOF__ >> "$cfgfile"
18303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18304
18305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18306
18307 # Shell to use when invoking shell scripts.
18308 SHELL=$lt_SHELL
18309
18310 # Whether or not to build shared libraries.
18311 build_libtool_libs=$enable_shared
18312
18313 # Whether or not to build static libraries.
18314 build_old_libs=$enable_static
18315
18316 # Whether or not to add -lc for building shared libraries.
18317 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18318
18319 # Whether or not to disallow shared libs when runtime libs are static
18320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18321
18322 # Whether or not to optimize for fast installation.
18323 fast_install=$enable_fast_install
18324
18325 # The host system.
18326 host_alias=$host_alias
18327 host=$host
18328
18329 # An echo program that does not interpret backslashes.
18330 echo=$lt_echo
18331
18332 # The archiver.
18333 AR=$lt_AR
18334 AR_FLAGS=$lt_AR_FLAGS
18335
18336 # A C compiler.
18337 LTCC=$lt_LTCC
18338
18339 # A language-specific compiler.
18340 CC=$lt_compiler_CXX
18341
18342 # Is the compiler the GNU C compiler?
18343 with_gcc=$GCC_CXX
18344
18345 # An ERE matcher.
18346 EGREP=$lt_EGREP
18347
18348 # The linker used to build libraries.
18349 LD=$lt_LD_CXX
18350
18351 # Whether we need hard or soft links.
18352 LN_S=$lt_LN_S
18353
18354 # A BSD-compatible nm program.
18355 NM=$lt_NM
18356
18357 # A symbol stripping program
18358 STRIP=$lt_STRIP
18359
18360 # Used to examine libraries when file_magic_cmd begins "file"
18361 MAGIC_CMD=$MAGIC_CMD
18362
18363 # Used on cygwin: DLL creation program.
18364 DLLTOOL="$DLLTOOL"
18365
18366 # Used on cygwin: object dumper.
18367 OBJDUMP="$OBJDUMP"
18368
18369 # Used on cygwin: assembler.
18370 AS="$AS"
18371
18372 # The name of the directory that contains temporary libtool files.
18373 objdir=$objdir
18374
18375 # How to create reloadable object files.
18376 reload_flag=$lt_reload_flag
18377 reload_cmds=$lt_reload_cmds
18378
18379 # How to pass a linker flag through the compiler.
18380 wl=$lt_lt_prog_compiler_wl_CXX
18381
18382 # Object file suffix (normally "o").
18383 objext="$ac_objext"
18384
18385 # Old archive suffix (normally "a").
18386 libext="$libext"
18387
18388 # Shared library suffix (normally ".so").
18389 shrext_cmds='$shrext_cmds'
18390
18391 # Executable file suffix (normally "").
18392 exeext="$exeext"
18393
18394 # Additional compiler flags for building library objects.
18395 pic_flag=$lt_lt_prog_compiler_pic_CXX
18396 pic_mode=$pic_mode
18397
18398 # What is the maximum length of a command?
18399 max_cmd_len=$lt_cv_sys_max_cmd_len
18400
18401 # Does compiler simultaneously support -c and -o options?
18402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18403
18404 # Must we lock files when doing compilation ?
18405 need_locks=$lt_need_locks
18406
18407 # Do we need the lib prefix for modules?
18408 need_lib_prefix=$need_lib_prefix
18409
18410 # Do we need a version for libraries?
18411 need_version=$need_version
18412
18413 # Whether dlopen is supported.
18414 dlopen_support=$enable_dlopen
18415
18416 # Whether dlopen of programs is supported.
18417 dlopen_self=$enable_dlopen_self
18418
18419 # Whether dlopen of statically linked programs is supported.
18420 dlopen_self_static=$enable_dlopen_self_static
18421
18422 # Compiler flag to prevent dynamic linking.
18423 link_static_flag=$lt_lt_prog_compiler_static_CXX
18424
18425 # Compiler flag to turn off builtin functions.
18426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18427
18428 # Compiler flag to allow reflexive dlopens.
18429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18430
18431 # Compiler flag to generate shared objects directly from archives.
18432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18433
18434 # Compiler flag to generate thread-safe objects.
18435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18436
18437 # Library versioning type.
18438 version_type=$version_type
18439
18440 # Format of library name prefix.
18441 libname_spec=$lt_libname_spec
18442
18443 # List of archive names.  First name is the real one, the rest are links.
18444 # The last name is the one that the linker finds with -lNAME.
18445 library_names_spec=$lt_library_names_spec
18446
18447 # The coded name of the library, if different from the real name.
18448 soname_spec=$lt_soname_spec
18449
18450 # Commands used to build and install an old-style archive.
18451 RANLIB=$lt_RANLIB
18452 old_archive_cmds=$lt_old_archive_cmds_CXX
18453 old_postinstall_cmds=$lt_old_postinstall_cmds
18454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18455
18456 # Create an old-style archive from a shared archive.
18457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18458
18459 # Create a temporary old-style archive to link instead of a shared archive.
18460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18461
18462 # Commands used to build and install a shared archive.
18463 archive_cmds=$lt_archive_cmds_CXX
18464 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18465 postinstall_cmds=$lt_postinstall_cmds
18466 postuninstall_cmds=$lt_postuninstall_cmds
18467
18468 # Commands used to build a loadable module (assumed same as above if empty)
18469 module_cmds=$lt_module_cmds_CXX
18470 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18471
18472 # Commands to strip libraries.
18473 old_striplib=$lt_old_striplib
18474 striplib=$lt_striplib
18475
18476 # Dependencies to place before the objects being linked to create a
18477 # shared library.
18478 predep_objects=$lt_predep_objects_CXX
18479
18480 # Dependencies to place after the objects being linked to create a
18481 # shared library.
18482 postdep_objects=$lt_postdep_objects_CXX
18483
18484 # Dependencies to place before the objects being linked to create a
18485 # shared library.
18486 predeps=$lt_predeps_CXX
18487
18488 # Dependencies to place after the objects being linked to create a
18489 # shared library.
18490 postdeps=$lt_postdeps_CXX
18491
18492 # The library search path used internally by the compiler when linking
18493 # a shared library.
18494 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18495
18496 # Method to check whether dependent libraries are shared objects.
18497 deplibs_check_method=$lt_deplibs_check_method
18498
18499 # Command to use when deplibs_check_method == file_magic.
18500 file_magic_cmd=$lt_file_magic_cmd
18501
18502 # Flag that allows shared libraries with undefined symbols to be built.
18503 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18504
18505 # Flag that forces no undefined symbols.
18506 no_undefined_flag=$lt_no_undefined_flag_CXX
18507
18508 # Commands used to finish a libtool library installation in a directory.
18509 finish_cmds=$lt_finish_cmds
18510
18511 # Same as above, but a single script fragment to be evaled but not shown.
18512 finish_eval=$lt_finish_eval
18513
18514 # Take the output of nm and produce a listing of raw symbols and C names.
18515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18516
18517 # Transform the output of nm in a proper C declaration
18518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18519
18520 # Transform the output of nm in a C name address pair
18521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18522
18523 # This is the shared library runtime path variable.
18524 runpath_var=$runpath_var
18525
18526 # This is the shared library path variable.
18527 shlibpath_var=$shlibpath_var
18528
18529 # Is shlibpath searched before the hard-coded library search path?
18530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18531
18532 # How to hardcode a shared library path into an executable.
18533 hardcode_action=$hardcode_action_CXX
18534
18535 # Whether we should hardcode library paths into libraries.
18536 hardcode_into_libs=$hardcode_into_libs
18537
18538 # Flag to hardcode \$libdir into a binary during linking.
18539 # This must work even if \$libdir does not exist.
18540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18541
18542 # If ld is used when linking, flag to hardcode \$libdir into
18543 # a binary during linking. This must work even if \$libdir does
18544 # not exist.
18545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18546
18547 # Whether we need a single -rpath flag with a separated argument.
18548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18549
18550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18551 # resulting binary.
18552 hardcode_direct=$hardcode_direct_CXX
18553
18554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18555 # resulting binary.
18556 hardcode_minus_L=$hardcode_minus_L_CXX
18557
18558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18559 # the resulting binary.
18560 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18561
18562 # Set to yes if building a shared library automatically hardcodes DIR into the library
18563 # and all subsequent libraries and executables linked against it.
18564 hardcode_automatic=$hardcode_automatic_CXX
18565
18566 # Variables whose values should be saved in libtool wrapper scripts and
18567 # restored at relink time.
18568 variables_saved_for_relink="$variables_saved_for_relink"
18569
18570 # Whether libtool must link a program against all its dependency libraries.
18571 link_all_deplibs=$link_all_deplibs_CXX
18572
18573 # Compile-time system search path for libraries
18574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18575
18576 # Run-time system search path for libraries
18577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18578
18579 # Fix the shell variable \$srcfile for the compiler.
18580 fix_srcfile_path="$fix_srcfile_path_CXX"
18581
18582 # Set to yes if exported symbols are required.
18583 always_export_symbols=$always_export_symbols_CXX
18584
18585 # The commands to list exported symbols.
18586 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18587
18588 # The commands to extract the exported symbol list from a shared archive.
18589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18590
18591 # Symbols that should not be listed in the preloaded symbols.
18592 exclude_expsyms=$lt_exclude_expsyms_CXX
18593
18594 # Symbols that must always be exported.
18595 include_expsyms=$lt_include_expsyms_CXX
18596
18597 # ### END LIBTOOL TAG CONFIG: $tagname
18598
18599 __EOF__
18600
18601
18602 else
18603   # If there is no Makefile yet, we rely on a make rule to execute
18604   # `config.status --recheck' to rerun these tests and create the
18605   # libtool script then.
18606   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18607   if test -f "$ltmain_in"; then
18608     test -f Makefile && make "$ltmain"
18609   fi
18610 fi
18611
18612
18613 ac_ext=c
18614 ac_cpp='$CPP $CPPFLAGS'
18615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18618
18619 CC=$lt_save_CC
18620 LDCXX=$LD
18621 LD=$lt_save_LD
18622 GCC=$lt_save_GCC
18623 with_gnu_ldcxx=$with_gnu_ld
18624 with_gnu_ld=$lt_save_with_gnu_ld
18625 lt_cv_path_LDCXX=$lt_cv_path_LD
18626 lt_cv_path_LD=$lt_save_path_LD
18627 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18628 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18629
18630         else
18631           tagname=""
18632         fi
18633         ;;
18634
18635       F77)
18636         if test -n "$F77" && test "X$F77" != "Xno"; then
18637
18638 ac_ext=f
18639 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18640 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18642
18643
18644 archive_cmds_need_lc_F77=no
18645 allow_undefined_flag_F77=
18646 always_export_symbols_F77=no
18647 archive_expsym_cmds_F77=
18648 export_dynamic_flag_spec_F77=
18649 hardcode_direct_F77=no
18650 hardcode_libdir_flag_spec_F77=
18651 hardcode_libdir_flag_spec_ld_F77=
18652 hardcode_libdir_separator_F77=
18653 hardcode_minus_L_F77=no
18654 hardcode_automatic_F77=no
18655 module_cmds_F77=
18656 module_expsym_cmds_F77=
18657 link_all_deplibs_F77=unknown
18658 old_archive_cmds_F77=$old_archive_cmds
18659 no_undefined_flag_F77=
18660 whole_archive_flag_spec_F77=
18661 enable_shared_with_static_runtimes_F77=no
18662
18663 # Source file extension for f77 test sources.
18664 ac_ext=f
18665
18666 # Object file extension for compiled f77 test sources.
18667 objext=o
18668 objext_F77=$objext
18669
18670 # Code to be used in simple compile tests
18671 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18672
18673 # Code to be used in simple link tests
18674 lt_simple_link_test_code="      program t\n      end\n"
18675
18676 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18677
18678 # If no C compiler was specified, use CC.
18679 LTCC=${LTCC-"$CC"}
18680
18681 # Allow CC to be a program name with arguments.
18682 compiler=$CC
18683
18684
18685 # Allow CC to be a program name with arguments.
18686 lt_save_CC="$CC"
18687 CC=${F77-"f77"}
18688 compiler=$CC
18689 compiler_F77=$CC
18690 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18691
18692 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18693 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18694 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18695 echo "${ECHO_T}$can_build_shared" >&6
18696
18697 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18698 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18699 test "$can_build_shared" = "no" && enable_shared=no
18700
18701 # On AIX, shared libraries and static libraries use the same namespace, and
18702 # are all built from PIC.
18703 case "$host_os" in
18704 aix3*)
18705   test "$enable_shared" = yes && enable_static=no
18706   if test -n "$RANLIB"; then
18707     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18708     postinstall_cmds='$RANLIB $lib'
18709   fi
18710   ;;
18711 aix4* | aix5*)
18712   test "$enable_shared" = yes && enable_static=no
18713   ;;
18714 esac
18715 echo "$as_me:$LINENO: result: $enable_shared" >&5
18716 echo "${ECHO_T}$enable_shared" >&6
18717
18718 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18719 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18720 # Make sure either enable_shared or enable_static is yes.
18721 test "$enable_shared" = yes || enable_static=yes
18722 echo "$as_me:$LINENO: result: $enable_static" >&5
18723 echo "${ECHO_T}$enable_static" >&6
18724
18725 test "$ld_shlibs_F77" = no && can_build_shared=no
18726
18727 GCC_F77="$G77"
18728 LD_F77="$LD"
18729
18730 lt_prog_compiler_wl_F77=
18731 lt_prog_compiler_pic_F77=
18732 lt_prog_compiler_static_F77=
18733
18734 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18736
18737   if test "$GCC" = yes; then
18738     lt_prog_compiler_wl_F77='-Wl,'
18739     lt_prog_compiler_static_F77='-static'
18740
18741     case $host_os in
18742       aix*)
18743       # All AIX code is PIC.
18744       if test "$host_cpu" = ia64; then
18745         # AIX 5 now supports IA64 processor
18746         lt_prog_compiler_static_F77='-Bstatic'
18747       fi
18748       ;;
18749
18750     amigaos*)
18751       # FIXME: we need at least 68020 code to build shared libraries, but
18752       # adding the `-m68020' flag to GCC prevents building anything better,
18753       # like `-m68040'.
18754       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18755       ;;
18756
18757     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18758       # PIC is the default for these OSes.
18759       ;;
18760
18761     mingw* | pw32* | os2*)
18762       # This hack is so that the source file can tell whether it is being
18763       # built for inclusion in a dll (and should export symbols for example).
18764       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18765       ;;
18766
18767     darwin* | rhapsody*)
18768       # PIC is the default on this platform
18769       # Common symbols not allowed in MH_DYLIB files
18770       lt_prog_compiler_pic_F77='-fno-common'
18771       ;;
18772
18773     msdosdjgpp*)
18774       # Just because we use GCC doesn't mean we suddenly get shared libraries
18775       # on systems that don't support them.
18776       lt_prog_compiler_can_build_shared_F77=no
18777       enable_shared=no
18778       ;;
18779
18780     sysv4*MP*)
18781       if test -d /usr/nec; then
18782         lt_prog_compiler_pic_F77=-Kconform_pic
18783       fi
18784       ;;
18785
18786     hpux*)
18787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18788       # not for PA HP-UX.
18789       case "$host_cpu" in
18790       hppa*64*|ia64*)
18791         # +Z the default
18792         ;;
18793       *)
18794         lt_prog_compiler_pic_F77='-fPIC'
18795         ;;
18796       esac
18797       ;;
18798
18799     *)
18800       lt_prog_compiler_pic_F77='-fPIC'
18801       ;;
18802     esac
18803   else
18804     # PORTME Check for flag to pass linker flags through the system compiler.
18805     case $host_os in
18806     aix*)
18807       lt_prog_compiler_wl_F77='-Wl,'
18808       if test "$host_cpu" = ia64; then
18809         # AIX 5 now supports IA64 processor
18810         lt_prog_compiler_static_F77='-Bstatic'
18811       else
18812         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18813       fi
18814       ;;
18815       darwin*)
18816         # PIC is the default on this platform
18817         # Common symbols not allowed in MH_DYLIB files
18818        case "$cc_basename" in
18819          xlc*)
18820          lt_prog_compiler_pic_F77='-qnocommon'
18821          lt_prog_compiler_wl_F77='-Wl,'
18822          ;;
18823        esac
18824        ;;
18825
18826     mingw* | pw32* | os2*)
18827       # This hack is so that the source file can tell whether it is being
18828       # built for inclusion in a dll (and should export symbols for example).
18829       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18830       ;;
18831
18832     hpux9* | hpux10* | hpux11*)
18833       lt_prog_compiler_wl_F77='-Wl,'
18834       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18835       # not for PA HP-UX.
18836       case "$host_cpu" in
18837       hppa*64*|ia64*)
18838         # +Z the default
18839         ;;
18840       *)
18841         lt_prog_compiler_pic_F77='+Z'
18842         ;;
18843       esac
18844       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18845       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18846       ;;
18847
18848     irix5* | irix6* | nonstopux*)
18849       lt_prog_compiler_wl_F77='-Wl,'
18850       # PIC (with -KPIC) is the default.
18851       lt_prog_compiler_static_F77='-non_shared'
18852       ;;
18853
18854     newsos6)
18855       lt_prog_compiler_pic_F77='-KPIC'
18856       lt_prog_compiler_static_F77='-Bstatic'
18857       ;;
18858
18859     linux*)
18860       case $CC in
18861       icc* | ecc*)
18862         lt_prog_compiler_wl_F77='-Wl,'
18863         lt_prog_compiler_pic_F77='-KPIC'
18864         lt_prog_compiler_static_F77='-static'
18865         ;;
18866       ccc*)
18867         lt_prog_compiler_wl_F77='-Wl,'
18868         # All Alpha code is PIC.
18869         lt_prog_compiler_static_F77='-non_shared'
18870         ;;
18871       esac
18872       ;;
18873
18874     osf3* | osf4* | osf5*)
18875       lt_prog_compiler_wl_F77='-Wl,'
18876       # All OSF/1 code is PIC.
18877       lt_prog_compiler_static_F77='-non_shared'
18878       ;;
18879
18880     sco3.2v5*)
18881       lt_prog_compiler_pic_F77='-Kpic'
18882       lt_prog_compiler_static_F77='-dn'
18883       ;;
18884
18885     solaris*)
18886       lt_prog_compiler_wl_F77='-Wl,'
18887       lt_prog_compiler_pic_F77='-KPIC'
18888       lt_prog_compiler_static_F77='-Bstatic'
18889       ;;
18890
18891     sunos4*)
18892       lt_prog_compiler_wl_F77='-Qoption ld '
18893       lt_prog_compiler_pic_F77='-PIC'
18894       lt_prog_compiler_static_F77='-Bstatic'
18895       ;;
18896
18897     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18898       lt_prog_compiler_wl_F77='-Wl,'
18899       lt_prog_compiler_pic_F77='-KPIC'
18900       lt_prog_compiler_static_F77='-Bstatic'
18901       ;;
18902
18903     sysv4*MP*)
18904       if test -d /usr/nec ;then
18905         lt_prog_compiler_pic_F77='-Kconform_pic'
18906         lt_prog_compiler_static_F77='-Bstatic'
18907       fi
18908       ;;
18909
18910     uts4*)
18911       lt_prog_compiler_pic_F77='-pic'
18912       lt_prog_compiler_static_F77='-Bstatic'
18913       ;;
18914
18915     *)
18916       lt_prog_compiler_can_build_shared_F77=no
18917       ;;
18918     esac
18919   fi
18920
18921 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18922 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18923
18924 #
18925 # Check to make sure the PIC flag actually works.
18926 #
18927 if test -n "$lt_prog_compiler_pic_F77"; then
18928
18929 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18930 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18931 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934   lt_prog_compiler_pic_works_F77=no
18935   ac_outfile=conftest.$ac_objext
18936    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18937    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18938    # Insert the option either (1) after the last *FLAGS variable, or
18939    # (2) before a word containing "conftest.", or (3) at the end.
18940    # Note that $ac_compile itself does not contain backslashes and begins
18941    # with a dollar sign (not a hyphen), so the echo should work correctly.
18942    # The option is referenced via a variable to avoid confusing sed.
18943    lt_compile=`echo "$ac_compile" | $SED \
18944    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18946    -e 's:$: $lt_compiler_flag:'`
18947    (eval echo "\"\$as_me:18947: $lt_compile\"" >&5)
18948    (eval "$lt_compile" 2>conftest.err)
18949    ac_status=$?
18950    cat conftest.err >&5
18951    echo "$as_me:18951: \$? = $ac_status" >&5
18952    if (exit $ac_status) && test -s "$ac_outfile"; then
18953      # The compiler can only warn and ignore the option if not recognized
18954      # So say no if there are warnings
18955      if test ! -s conftest.err; then
18956        lt_prog_compiler_pic_works_F77=yes
18957      fi
18958    fi
18959    $rm conftest*
18960
18961 fi
18962 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18963 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18964
18965 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18966     case $lt_prog_compiler_pic_F77 in
18967      "" | " "*) ;;
18968      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18969      esac
18970 else
18971     lt_prog_compiler_pic_F77=
18972      lt_prog_compiler_can_build_shared_F77=no
18973 fi
18974
18975 fi
18976 case "$host_os" in
18977   # For platforms which do not support PIC, -DPIC is meaningless:
18978   *djgpp*)
18979     lt_prog_compiler_pic_F77=
18980     ;;
18981   *)
18982     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18983     ;;
18984 esac
18985
18986 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18987 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18988 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   lt_cv_prog_compiler_c_o_F77=no
18992    $rm -r conftest 2>/dev/null
18993    mkdir conftest
18994    cd conftest
18995    mkdir out
18996    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18997
18998    lt_compiler_flag="-o out/conftest2.$ac_objext"
18999    # Insert the option either (1) after the last *FLAGS variable, or
19000    # (2) before a word containing "conftest.", or (3) at the end.
19001    # Note that $ac_compile itself does not contain backslashes and begins
19002    # with a dollar sign (not a hyphen), so the echo should work correctly.
19003    lt_compile=`echo "$ac_compile" | $SED \
19004    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19006    -e 's:$: $lt_compiler_flag:'`
19007    (eval echo "\"\$as_me:19007: $lt_compile\"" >&5)
19008    (eval "$lt_compile" 2>out/conftest.err)
19009    ac_status=$?
19010    cat out/conftest.err >&5
19011    echo "$as_me:19011: \$? = $ac_status" >&5
19012    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19013    then
19014      # The compiler can only warn and ignore the option if not recognized
19015      # So say no if there are warnings
19016      if test ! -s out/conftest.err; then
19017        lt_cv_prog_compiler_c_o_F77=yes
19018      fi
19019    fi
19020    chmod u+w .
19021    $rm conftest*
19022    # SGI C++ compiler will create directory out/ii_files/ for
19023    # template instantiation
19024    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19025    $rm out/* && rmdir out
19026    cd ..
19027    rmdir conftest
19028    $rm conftest*
19029
19030 fi
19031 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19032 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19033
19034
19035 hard_links="nottested"
19036 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19037   # do not overwrite the value of need_locks provided by the user
19038   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19039 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19040   hard_links=yes
19041   $rm conftest*
19042   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19043   touch conftest.a
19044   ln conftest.a conftest.b 2>&5 || hard_links=no
19045   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19046   echo "$as_me:$LINENO: result: $hard_links" >&5
19047 echo "${ECHO_T}$hard_links" >&6
19048   if test "$hard_links" = no; then
19049     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19050 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19051     need_locks=warn
19052   fi
19053 else
19054   need_locks=no
19055 fi
19056
19057 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19058 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19059
19060   runpath_var=
19061   allow_undefined_flag_F77=
19062   enable_shared_with_static_runtimes_F77=no
19063   archive_cmds_F77=
19064   archive_expsym_cmds_F77=
19065   old_archive_From_new_cmds_F77=
19066   old_archive_from_expsyms_cmds_F77=
19067   export_dynamic_flag_spec_F77=
19068   whole_archive_flag_spec_F77=
19069   thread_safe_flag_spec_F77=
19070   hardcode_libdir_flag_spec_F77=
19071   hardcode_libdir_flag_spec_ld_F77=
19072   hardcode_libdir_separator_F77=
19073   hardcode_direct_F77=no
19074   hardcode_minus_L_F77=no
19075   hardcode_shlibpath_var_F77=unsupported
19076   link_all_deplibs_F77=unknown
19077   hardcode_automatic_F77=no
19078   module_cmds_F77=
19079   module_expsym_cmds_F77=
19080   always_export_symbols_F77=no
19081   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19082   # include_expsyms should be a list of space-separated symbols to be *always*
19083   # included in the symbol list
19084   include_expsyms_F77=
19085   # exclude_expsyms can be an extended regexp of symbols to exclude
19086   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19087   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19088   # as well as any symbol that contains `d'.
19089   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19090   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19091   # platforms (ab)use it in PIC code, but their linkers get confused if
19092   # the symbol is explicitly referenced.  Since portable code cannot
19093   # rely on this symbol name, it's probably fine to never include it in
19094   # preloaded symbol tables.
19095   extract_expsyms_cmds=
19096
19097   case $host_os in
19098   cygwin* | mingw* | pw32*)
19099     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19100     # When not using gcc, we currently assume that we are using
19101     # Microsoft Visual C++.
19102     if test "$GCC" != yes; then
19103       with_gnu_ld=no
19104     fi
19105     ;;
19106   openbsd*)
19107     with_gnu_ld=no
19108     ;;
19109   esac
19110
19111   ld_shlibs_F77=yes
19112   if test "$with_gnu_ld" = yes; then
19113     # If archive_cmds runs LD, not CC, wlarc should be empty
19114     wlarc='${wl}'
19115
19116     # See if GNU ld supports shared libraries.
19117     case $host_os in
19118     aix3* | aix4* | aix5*)
19119       # On AIX/PPC, the GNU linker is very broken
19120       if test "$host_cpu" != ia64; then
19121         ld_shlibs_F77=no
19122         cat <<EOF 1>&2
19123
19124 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19125 *** to be unable to reliably create shared libraries on AIX.
19126 *** Therefore, libtool is disabling shared libraries support.  If you
19127 *** really care for shared libraries, you may want to modify your PATH
19128 *** so that a non-GNU linker is found, and then restart.
19129
19130 EOF
19131       fi
19132       ;;
19133
19134     amigaos*)
19135       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)'
19136       hardcode_libdir_flag_spec_F77='-L$libdir'
19137       hardcode_minus_L_F77=yes
19138
19139       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19140       # that the semantics of dynamic libraries on AmigaOS, at least up
19141       # to version 4, is to share data among multiple programs linked
19142       # with the same dynamic library.  Since this doesn't match the
19143       # behavior of shared libraries on other platforms, we can't use
19144       # them.
19145       ld_shlibs_F77=no
19146       ;;
19147
19148     beos*)
19149       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19150         allow_undefined_flag_F77=unsupported
19151         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19152         # support --undefined.  This deserves some investigation.  FIXME
19153         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19154       else
19155         ld_shlibs_F77=no
19156       fi
19157       ;;
19158
19159     cygwin* | mingw* | pw32*)
19160       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19161       # as there is no search path for DLLs.
19162       hardcode_libdir_flag_spec_F77='-L$libdir'
19163       allow_undefined_flag_F77=unsupported
19164       always_export_symbols_F77=no
19165       enable_shared_with_static_runtimes_F77=yes
19166       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19167
19168       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19169         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19170         # If the export-symbols file already is a .def file (1st line
19171         # is EXPORTS), use it as is; otherwise, prepend...
19172         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19173           cp $export_symbols $output_objdir/$soname.def;
19174         else
19175           echo EXPORTS > $output_objdir/$soname.def;
19176           cat $export_symbols >> $output_objdir/$soname.def;
19177         fi~
19178         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19179       else
19180         ld_shlibs=no
19181       fi
19182       ;;
19183
19184     netbsd*)
19185       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19186         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19187         wlarc=
19188       else
19189         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19190         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19191       fi
19192       ;;
19193
19194     solaris* | sysv5*)
19195       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19196         ld_shlibs_F77=no
19197         cat <<EOF 1>&2
19198
19199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19200 *** create shared libraries on Solaris systems.  Therefore, libtool
19201 *** is disabling shared libraries support.  We urge you to upgrade GNU
19202 *** binutils to release 2.9.1 or newer.  Another option is to modify
19203 *** your PATH or compiler configuration so that the native linker is
19204 *** used, and then restart.
19205
19206 EOF
19207       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19208         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19210       else
19211         ld_shlibs_F77=no
19212       fi
19213       ;;
19214
19215     sunos4*)
19216       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19217       wlarc=
19218       hardcode_direct_F77=yes
19219       hardcode_shlibpath_var_F77=no
19220       ;;
19221
19222   linux*)
19223     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19224         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19225         archive_cmds_F77="$tmp_archive_cmds"
19226       supports_anon_versioning=no
19227       case `$LD -v 2>/dev/null` in
19228         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19229         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19230         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19231         *\ 2.11.*) ;; # other 2.11 versions
19232         *) supports_anon_versioning=yes ;;
19233       esac
19234       if test $supports_anon_versioning = yes; then
19235         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19237 $echo "local: *; };" >> $output_objdir/$libname.ver~
19238         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19239       else
19240         archive_expsym_cmds_F77="$tmp_archive_cmds"
19241       fi
19242     else
19243       ld_shlibs_F77=no
19244     fi
19245     ;;
19246
19247     *)
19248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19249         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19251       else
19252         ld_shlibs_F77=no
19253       fi
19254       ;;
19255     esac
19256
19257     if test "$ld_shlibs_F77" = yes; then
19258       runpath_var=LD_RUN_PATH
19259       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19260       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19261       # ancient GNU ld didn't support --whole-archive et. al.
19262       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19263         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19264       else
19265         whole_archive_flag_spec_F77=
19266       fi
19267     fi
19268   else
19269     # PORTME fill in a description of your system's linker (not GNU ld)
19270     case $host_os in
19271     aix3*)
19272       allow_undefined_flag_F77=unsupported
19273       always_export_symbols_F77=yes
19274       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'
19275       # Note: this linker hardcodes the directories in LIBPATH if there
19276       # are no directories specified by -L.
19277       hardcode_minus_L_F77=yes
19278       if test "$GCC" = yes && test -z "$link_static_flag"; then
19279         # Neither direct hardcoding nor static linking is supported with a
19280         # broken collect2.
19281         hardcode_direct_F77=unsupported
19282       fi
19283       ;;
19284
19285     aix4* | aix5*)
19286       if test "$host_cpu" = ia64; then
19287         # On IA64, the linker does run time linking by default, so we don't
19288         # have to do anything special.
19289         aix_use_runtimelinking=no
19290         exp_sym_flag='-Bexport'
19291         no_entry_flag=""
19292       else
19293         # If we're using GNU nm, then we don't want the "-C" option.
19294         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19295         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19296           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'
19297         else
19298           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'
19299         fi
19300         aix_use_runtimelinking=no
19301
19302         # Test if we are trying to use run time linking or normal
19303         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19304         # need to do runtime linking.
19305         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19306           for ld_flag in $LDFLAGS; do
19307           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19308             aix_use_runtimelinking=yes
19309             break
19310           fi
19311           done
19312         esac
19313
19314         exp_sym_flag='-bexport'
19315         no_entry_flag='-bnoentry'
19316       fi
19317
19318       # When large executables or shared objects are built, AIX ld can
19319       # have problems creating the table of contents.  If linking a library
19320       # or program results in "error TOC overflow" add -mminimal-toc to
19321       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19322       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19323
19324       archive_cmds_F77=''
19325       hardcode_direct_F77=yes
19326       hardcode_libdir_separator_F77=':'
19327       link_all_deplibs_F77=yes
19328
19329       if test "$GCC" = yes; then
19330         case $host_os in aix4.012|aix4.012.*)
19331         # We only want to do this on AIX 4.2 and lower, the check
19332         # below for broken collect2 doesn't work under 4.3+
19333           collect2name=`${CC} -print-prog-name=collect2`
19334           if test -f "$collect2name" && \
19335            strings "$collect2name" | grep resolve_lib_name >/dev/null
19336           then
19337           # We have reworked collect2
19338           hardcode_direct_F77=yes
19339           else
19340           # We have old collect2
19341           hardcode_direct_F77=unsupported
19342           # It fails to find uninstalled libraries when the uninstalled
19343           # path is not listed in the libpath.  Setting hardcode_minus_L
19344           # to unsupported forces relinking
19345           hardcode_minus_L_F77=yes
19346           hardcode_libdir_flag_spec_F77='-L$libdir'
19347           hardcode_libdir_separator_F77=
19348           fi
19349         esac
19350         shared_flag='-shared'
19351       else
19352         # not using gcc
19353         if test "$host_cpu" = ia64; then
19354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19355         # chokes on -Wl,-G. The following line is correct:
19356           shared_flag='-G'
19357         else
19358         if test "$aix_use_runtimelinking" = yes; then
19359             shared_flag='${wl}-G'
19360           else
19361             shared_flag='${wl}-bM:SRE'
19362         fi
19363         fi
19364       fi
19365
19366       # It seems that -bexpall does not export symbols beginning with
19367       # underscore (_), so it is better to generate a list of symbols to export.
19368       always_export_symbols_F77=yes
19369       if test "$aix_use_runtimelinking" = yes; then
19370         # Warning - without using the other runtime loading flags (-brtl),
19371         # -berok will link without error, but may produce a broken library.
19372         allow_undefined_flag_F77='-berok'
19373        # Determine the default libpath from the value encoded in an empty executable.
19374        cat >conftest.$ac_ext <<_ACEOF
19375       program main
19376
19377       end
19378 _ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19381   (eval $ac_link) 2>conftest.er1
19382   ac_status=$?
19383   grep -v '^ *+' conftest.er1 >conftest.err
19384   rm -f conftest.er1
19385   cat conftest.err >&5
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); } &&
19388          { ac_try='test -z "$ac_f77_werror_flag"
19389                          || test ! -s conftest.err'
19390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391   (eval $ac_try) 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; } &&
19395          { ac_try='test -s conftest$ac_exeext'
19396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397   (eval $ac_try) 2>&5
19398   ac_status=$?
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); }; }; then
19401
19402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19403 }'`
19404 # Check for a 64-bit object if we didn't find anything.
19405 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; }
19406 }'`; fi
19407 else
19408   echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 fi
19412 rm -f conftest.err conftest.$ac_objext \
19413       conftest$ac_exeext conftest.$ac_ext
19414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19415
19416        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19417         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"
19418        else
19419         if test "$host_cpu" = ia64; then
19420           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19421           allow_undefined_flag_F77="-z nodefs"
19422           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"
19423         else
19424          # Determine the default libpath from the value encoded in an empty executable.
19425          cat >conftest.$ac_ext <<_ACEOF
19426       program main
19427
19428       end
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432   (eval $ac_link) 2>conftest.er1
19433   ac_status=$?
19434   grep -v '^ *+' conftest.er1 >conftest.err
19435   rm -f conftest.er1
19436   cat conftest.err >&5
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } &&
19439          { ac_try='test -z "$ac_f77_werror_flag"
19440                          || test ! -s conftest.err'
19441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442   (eval $ac_try) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; } &&
19446          { ac_try='test -s conftest$ac_exeext'
19447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448   (eval $ac_try) 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; }; then
19452
19453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19454 }'`
19455 # Check for a 64-bit object if we didn't find anything.
19456 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; }
19457 }'`; fi
19458 else
19459   echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 fi
19463 rm -f conftest.err conftest.$ac_objext \
19464       conftest$ac_exeext conftest.$ac_ext
19465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19466
19467          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19468           # Warning - without using the other run time loading flags,
19469           # -berok will link without error, but may produce a broken library.
19470           no_undefined_flag_F77=' ${wl}-bernotok'
19471           allow_undefined_flag_F77=' ${wl}-berok'
19472           # -bexpall does not export symbols beginning with underscore (_)
19473           always_export_symbols_F77=yes
19474           # Exported symbols can be pulled into shared objects from archives
19475           whole_archive_flag_spec_F77=' '
19476           archive_cmds_need_lc_F77=yes
19477           # This is similar to how AIX traditionally builds it's shared libraries.
19478           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'
19479         fi
19480       fi
19481       ;;
19482
19483     amigaos*)
19484       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)'
19485       hardcode_libdir_flag_spec_F77='-L$libdir'
19486       hardcode_minus_L_F77=yes
19487       # see comment about different semantics on the GNU ld section
19488       ld_shlibs_F77=no
19489       ;;
19490
19491     bsdi[45]*)
19492       export_dynamic_flag_spec_F77=-rdynamic
19493       ;;
19494
19495     cygwin* | mingw* | pw32*)
19496       # When not using gcc, we currently assume that we are using
19497       # Microsoft Visual C++.
19498       # hardcode_libdir_flag_spec is actually meaningless, as there is
19499       # no search path for DLLs.
19500       hardcode_libdir_flag_spec_F77=' '
19501       allow_undefined_flag_F77=unsupported
19502       # Tell ltmain to make .lib files, not .a files.
19503       libext=lib
19504       # Tell ltmain to make .dll files, not .so files.
19505       shrext_cmds=".dll"
19506       # FIXME: Setting linknames here is a bad hack.
19507       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19508       # The linker will automatically build a .lib file if we build a DLL.
19509       old_archive_From_new_cmds_F77='true'
19510       # FIXME: Should let the user specify the lib program.
19511       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19512       fix_srcfile_path='`cygpath -w "$srcfile"`'
19513       enable_shared_with_static_runtimes_F77=yes
19514       ;;
19515
19516     darwin* | rhapsody*)
19517       case "$host_os" in
19518         rhapsody* | darwin1.[012])
19519          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19520          ;;
19521        *) # Darwin 1.3 on
19522          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19523            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19524          else
19525            case ${MACOSX_DEPLOYMENT_TARGET} in
19526              10.[012])
19527                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19528                ;;
19529              10.*)
19530                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19531                ;;
19532            esac
19533          fi
19534          ;;
19535       esac
19536       archive_cmds_need_lc_F77=no
19537       hardcode_direct_F77=no
19538       hardcode_automatic_F77=yes
19539       hardcode_shlibpath_var_F77=unsupported
19540       whole_archive_flag_spec_F77=''
19541       link_all_deplibs_F77=yes
19542     if test "$GCC" = yes ; then
19543         output_verbose_link_cmd='echo'
19544         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19545       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19546       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19547       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}'
19548       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}'
19549     else
19550       case "$cc_basename" in
19551         xlc*)
19552          output_verbose_link_cmd='echo'
19553          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19554          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19555           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19556          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}'
19557           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}'
19558           ;;
19559        *)
19560          ld_shlibs_F77=no
19561           ;;
19562       esac
19563     fi
19564       ;;
19565
19566     dgux*)
19567       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19568       hardcode_libdir_flag_spec_F77='-L$libdir'
19569       hardcode_shlibpath_var_F77=no
19570       ;;
19571
19572     freebsd1*)
19573       ld_shlibs_F77=no
19574       ;;
19575
19576     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19577     # support.  Future versions do this automatically, but an explicit c++rt0.o
19578     # does not break anything, and helps significantly (at the cost of a little
19579     # extra space).
19580     freebsd2.2*)
19581       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19582       hardcode_libdir_flag_spec_F77='-R$libdir'
19583       hardcode_direct_F77=yes
19584       hardcode_shlibpath_var_F77=no
19585       ;;
19586
19587     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19588     freebsd2*)
19589       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19590       hardcode_direct_F77=yes
19591       hardcode_minus_L_F77=yes
19592       hardcode_shlibpath_var_F77=no
19593       ;;
19594
19595     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19596     freebsd* | kfreebsd*-gnu)
19597       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19598       hardcode_libdir_flag_spec_F77='-R$libdir'
19599       hardcode_direct_F77=yes
19600       hardcode_shlibpath_var_F77=no
19601       ;;
19602
19603     hpux9*)
19604       if test "$GCC" = yes; then
19605         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'
19606       else
19607         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'
19608       fi
19609       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19610       hardcode_libdir_separator_F77=:
19611       hardcode_direct_F77=yes
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       export_dynamic_flag_spec_F77='${wl}-E'
19617       ;;
19618
19619     hpux10* | hpux11*)
19620       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19621         case "$host_cpu" in
19622         hppa*64*|ia64*)
19623           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19624           ;;
19625         *)
19626           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19627           ;;
19628         esac
19629       else
19630         case "$host_cpu" in
19631         hppa*64*|ia64*)
19632           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19633           ;;
19634         *)
19635           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19636           ;;
19637         esac
19638       fi
19639       if test "$with_gnu_ld" = no; then
19640         case "$host_cpu" in
19641         hppa*64*)
19642           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19643           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19644           hardcode_libdir_separator_F77=:
19645           hardcode_direct_F77=no
19646           hardcode_shlibpath_var_F77=no
19647           ;;
19648         ia64*)
19649           hardcode_libdir_flag_spec_F77='-L$libdir'
19650           hardcode_direct_F77=no
19651           hardcode_shlibpath_var_F77=no
19652
19653           # hardcode_minus_L: Not really in the search PATH,
19654           # but as the default location of the library.
19655           hardcode_minus_L_F77=yes
19656           ;;
19657         *)
19658           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19659           hardcode_libdir_separator_F77=:
19660           hardcode_direct_F77=yes
19661           export_dynamic_flag_spec_F77='${wl}-E'
19662
19663           # hardcode_minus_L: Not really in the search PATH,
19664           # but as the default location of the library.
19665           hardcode_minus_L_F77=yes
19666           ;;
19667         esac
19668       fi
19669       ;;
19670
19671     irix5* | irix6* | nonstopux*)
19672       if test "$GCC" = yes; then
19673         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'
19674       else
19675         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'
19676         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19677       fi
19678       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19679       hardcode_libdir_separator_F77=:
19680       link_all_deplibs_F77=yes
19681       ;;
19682
19683     netbsd*)
19684       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19685         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19686       else
19687         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19688       fi
19689       hardcode_libdir_flag_spec_F77='-R$libdir'
19690       hardcode_direct_F77=yes
19691       hardcode_shlibpath_var_F77=no
19692       ;;
19693
19694     newsos6)
19695       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19696       hardcode_direct_F77=yes
19697       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19698       hardcode_libdir_separator_F77=:
19699       hardcode_shlibpath_var_F77=no
19700       ;;
19701
19702     openbsd*)
19703       hardcode_direct_F77=yes
19704       hardcode_shlibpath_var_F77=no
19705       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19706         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19707         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19708         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19709         export_dynamic_flag_spec_F77='${wl}-E'
19710       else
19711        case $host_os in
19712          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19713            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19714            hardcode_libdir_flag_spec_F77='-R$libdir'
19715            ;;
19716          *)
19717            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19718            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19719            ;;
19720        esac
19721       fi
19722       ;;
19723
19724     os2*)
19725       hardcode_libdir_flag_spec_F77='-L$libdir'
19726       hardcode_minus_L_F77=yes
19727       allow_undefined_flag_F77=unsupported
19728       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'
19729       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19730       ;;
19731
19732     osf3*)
19733       if test "$GCC" = yes; then
19734         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19735         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'
19736       else
19737         allow_undefined_flag_F77=' -expect_unresolved \*'
19738         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'
19739       fi
19740       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19741       hardcode_libdir_separator_F77=:
19742       ;;
19743
19744     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19745       if test "$GCC" = yes; then
19746         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19747         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'
19748         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19749       else
19750         allow_undefined_flag_F77=' -expect_unresolved \*'
19751         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'
19752         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~
19753         $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'
19754
19755         # Both c and cxx compiler support -rpath directly
19756         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19757       fi
19758       hardcode_libdir_separator_F77=:
19759       ;;
19760
19761     sco3.2v5*)
19762       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19763       hardcode_shlibpath_var_F77=no
19764       export_dynamic_flag_spec_F77='${wl}-Bexport'
19765       runpath_var=LD_RUN_PATH
19766       hardcode_runpath_var=yes
19767       ;;
19768
19769     solaris*)
19770       no_undefined_flag_F77=' -z text'
19771       if test "$GCC" = yes; then
19772         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19773         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19774           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19775       else
19776         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19778         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19779       fi
19780       hardcode_libdir_flag_spec_F77='-R$libdir'
19781       hardcode_shlibpath_var_F77=no
19782       case $host_os in
19783       solaris2.[0-5] | solaris2.[0-5].*) ;;
19784       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19785         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19786       esac
19787       link_all_deplibs_F77=yes
19788       ;;
19789
19790     sunos4*)
19791       if test "x$host_vendor" = xsequent; then
19792         # Use $CC to link under sequent, because it throws in some extra .o
19793         # files that make .init and .fini sections work.
19794         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19795       else
19796         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19797       fi
19798       hardcode_libdir_flag_spec_F77='-L$libdir'
19799       hardcode_direct_F77=yes
19800       hardcode_minus_L_F77=yes
19801       hardcode_shlibpath_var_F77=no
19802       ;;
19803
19804     sysv4)
19805       case $host_vendor in
19806         sni)
19807           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19808           hardcode_direct_F77=yes # is this really true???
19809         ;;
19810         siemens)
19811           ## LD is ld it makes a PLAMLIB
19812           ## CC just makes a GrossModule.
19813           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19814           reload_cmds_F77='$CC -r -o $output$reload_objs'
19815           hardcode_direct_F77=no
19816         ;;
19817         motorola)
19818           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19819           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19820         ;;
19821       esac
19822       runpath_var='LD_RUN_PATH'
19823       hardcode_shlibpath_var_F77=no
19824       ;;
19825
19826     sysv4.3*)
19827       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19828       hardcode_shlibpath_var_F77=no
19829       export_dynamic_flag_spec_F77='-Bexport'
19830       ;;
19831
19832     sysv4*MP*)
19833       if test -d /usr/nec; then
19834         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835         hardcode_shlibpath_var_F77=no
19836         runpath_var=LD_RUN_PATH
19837         hardcode_runpath_var=yes
19838         ld_shlibs_F77=yes
19839       fi
19840       ;;
19841
19842     sysv4.2uw2*)
19843       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19844       hardcode_direct_F77=yes
19845       hardcode_minus_L_F77=no
19846       hardcode_shlibpath_var_F77=no
19847       hardcode_runpath_var=yes
19848       runpath_var=LD_RUN_PATH
19849       ;;
19850
19851    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19852       no_undefined_flag_F77='${wl}-z ${wl}text'
19853       if test "$GCC" = yes; then
19854         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19855       else
19856         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19857       fi
19858       runpath_var='LD_RUN_PATH'
19859       hardcode_shlibpath_var_F77=no
19860       ;;
19861
19862     sysv5*)
19863       no_undefined_flag_F77=' -z text'
19864       # $CC -shared without GNU ld will not create a library from C++
19865       # object files and a static libstdc++, better avoid it by now
19866       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19867       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19868                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19869       hardcode_libdir_flag_spec_F77=
19870       hardcode_shlibpath_var_F77=no
19871       runpath_var='LD_RUN_PATH'
19872       ;;
19873
19874     uts4*)
19875       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19876       hardcode_libdir_flag_spec_F77='-L$libdir'
19877       hardcode_shlibpath_var_F77=no
19878       ;;
19879
19880     *)
19881       ld_shlibs_F77=no
19882       ;;
19883     esac
19884   fi
19885
19886 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19887 echo "${ECHO_T}$ld_shlibs_F77" >&6
19888 test "$ld_shlibs_F77" = no && can_build_shared=no
19889
19890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19891 if test "$GCC" = yes; then
19892   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19893 fi
19894
19895 #
19896 # Do we need to explicitly link libc?
19897 #
19898 case "x$archive_cmds_need_lc_F77" in
19899 x|xyes)
19900   # Assume -lc should be added
19901   archive_cmds_need_lc_F77=yes
19902
19903   if test "$enable_shared" = yes && test "$GCC" = yes; then
19904     case $archive_cmds_F77 in
19905     *'~'*)
19906       # FIXME: we may have to deal with multi-command sequences.
19907       ;;
19908     '$CC '*)
19909       # Test whether the compiler implicitly links with -lc since on some
19910       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19911       # to ld, don't add -lc before -lgcc.
19912       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19913 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19914       $rm conftest*
19915       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19916
19917       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19918   (eval $ac_compile) 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); } 2>conftest.err; then
19922         soname=conftest
19923         lib=conftest
19924         libobjs=conftest.$ac_objext
19925         deplibs=
19926         wl=$lt_prog_compiler_wl_F77
19927         compiler_flags=-v
19928         linker_flags=-v
19929         verstring=
19930         output_objdir=.
19931         libname=conftest
19932         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19933         allow_undefined_flag_F77=
19934         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19935   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19936   ac_status=$?
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); }
19939         then
19940           archive_cmds_need_lc_F77=no
19941         else
19942           archive_cmds_need_lc_F77=yes
19943         fi
19944         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19945       else
19946         cat conftest.err 1>&5
19947       fi
19948       $rm conftest*
19949       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19950 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19951       ;;
19952     esac
19953   fi
19954   ;;
19955 esac
19956
19957 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19959 library_names_spec=
19960 libname_spec='lib$name'
19961 soname_spec=
19962 shrext_cmds=".so"
19963 postinstall_cmds=
19964 postuninstall_cmds=
19965 finish_cmds=
19966 finish_eval=
19967 shlibpath_var=
19968 shlibpath_overrides_runpath=unknown
19969 version_type=none
19970 dynamic_linker="$host_os ld.so"
19971 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19972 if test "$GCC" = yes; then
19973   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19974   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19975     # if the path contains ";" then we assume it to be the separator
19976     # otherwise default to the standard path separator (i.e. ":") - it is
19977     # assumed that no part of a normal pathname contains ";" but that should
19978     # okay in the real world where ";" in dirpaths is itself problematic.
19979     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19980   else
19981     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19982   fi
19983 else
19984   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19985 fi
19986 need_lib_prefix=unknown
19987 hardcode_into_libs=no
19988
19989 # when you set need_version to no, make sure it does not cause -set_version
19990 # flags to be left without arguments
19991 need_version=unknown
19992
19993 case $host_os in
19994 aix3*)
19995   version_type=linux
19996   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19997   shlibpath_var=LIBPATH
19998
19999   # AIX 3 has no versioning support, so we append a major version to the name.
20000   soname_spec='${libname}${release}${shared_ext}$major'
20001   ;;
20002
20003 aix4* | aix5*)
20004   version_type=linux
20005   need_lib_prefix=no
20006   need_version=no
20007   hardcode_into_libs=yes
20008   if test "$host_cpu" = ia64; then
20009     # AIX 5 supports IA64
20010     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20011     shlibpath_var=LD_LIBRARY_PATH
20012   else
20013     # With GCC up to 2.95.x, collect2 would create an import file
20014     # for dependence libraries.  The import file would start with
20015     # the line `#! .'.  This would cause the generated library to
20016     # depend on `.', always an invalid library.  This was fixed in
20017     # development snapshots of GCC prior to 3.0.
20018     case $host_os in
20019       aix4 | aix4.[01] | aix4.[01].*)
20020       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20021            echo ' yes '
20022            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20023         :
20024       else
20025         can_build_shared=no
20026       fi
20027       ;;
20028     esac
20029     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20030     # soname into executable. Probably we can add versioning support to
20031     # collect2, so additional links can be useful in future.
20032     if test "$aix_use_runtimelinking" = yes; then
20033       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20034       # instead of lib<name>.a to let people know that these are not
20035       # typical AIX shared libraries.
20036       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037     else
20038       # We preserve .a as extension for shared libraries through AIX4.2
20039       # and later when we are not doing run time linking.
20040       library_names_spec='${libname}${release}.a $libname.a'
20041       soname_spec='${libname}${release}${shared_ext}$major'
20042     fi
20043     shlibpath_var=LIBPATH
20044   fi
20045   ;;
20046
20047 amigaos*)
20048   library_names_spec='$libname.ixlibrary $libname.a'
20049   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20050   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'
20051   ;;
20052
20053 beos*)
20054   library_names_spec='${libname}${shared_ext}'
20055   dynamic_linker="$host_os ld.so"
20056   shlibpath_var=LIBRARY_PATH
20057   ;;
20058
20059 bsdi[45]*)
20060   version_type=linux
20061   need_version=no
20062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063   soname_spec='${libname}${release}${shared_ext}$major'
20064   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20065   shlibpath_var=LD_LIBRARY_PATH
20066   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20067   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20068   # the default ld.so.conf also contains /usr/contrib/lib and
20069   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20070   # libtool to hard-code these into programs
20071   ;;
20072
20073 cygwin* | mingw* | pw32*)
20074   version_type=windows
20075   shrext_cmds=".dll"
20076   need_version=no
20077   need_lib_prefix=no
20078
20079   case $GCC,$host_os in
20080   yes,cygwin* | yes,mingw* | yes,pw32*)
20081     library_names_spec='$libname.dll.a'
20082     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20083     postinstall_cmds='base_file=`basename \${file}`~
20084       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20085       dldir=$destdir/`dirname \$dlpath`~
20086       test -d \$dldir || mkdir -p \$dldir~
20087       $install_prog $dir/$dlname \$dldir/$dlname'
20088     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20089       dlpath=$dir/\$dldll~
20090        $rm \$dlpath'
20091     shlibpath_overrides_runpath=yes
20092
20093     case $host_os in
20094     cygwin*)
20095       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20096       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20097       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20098       ;;
20099     mingw*)
20100       # MinGW DLLs use traditional 'lib' prefix
20101       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20102       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20103       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20104         # It is most probably a Windows format PATH printed by
20105         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20106         # path with ; separators, and with drive letters. We can handle the
20107         # drive letters (cygwin fileutils understands them), so leave them,
20108         # especially as we might pass files found there to a mingw objdump,
20109         # which wouldn't understand a cygwinified path. Ahh.
20110         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20111       else
20112         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20113       fi
20114       ;;
20115     pw32*)
20116       # pw32 DLLs use 'pw' prefix rather than 'lib'
20117       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20118       ;;
20119     esac
20120     ;;
20121
20122   *)
20123     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20124     ;;
20125   esac
20126   dynamic_linker='Win32 ld.exe'
20127   # FIXME: first we should search . and the directory the executable is in
20128   shlibpath_var=PATH
20129   ;;
20130
20131 darwin* | rhapsody*)
20132   dynamic_linker="$host_os dyld"
20133   version_type=darwin
20134   need_lib_prefix=no
20135   need_version=no
20136   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20137   soname_spec='${libname}${release}${major}$shared_ext'
20138   shlibpath_overrides_runpath=yes
20139   shlibpath_var=DYLD_LIBRARY_PATH
20140   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20141   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20142   if test "$GCC" = yes; then
20143     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"`
20144   else
20145     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20146   fi
20147   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20148   ;;
20149
20150 dgux*)
20151   version_type=linux
20152   need_lib_prefix=no
20153   need_version=no
20154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20155   soname_spec='${libname}${release}${shared_ext}$major'
20156   shlibpath_var=LD_LIBRARY_PATH
20157   ;;
20158
20159 freebsd1*)
20160   dynamic_linker=no
20161   ;;
20162
20163 kfreebsd*-gnu)
20164   version_type=linux
20165   need_lib_prefix=no
20166   need_version=no
20167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20168   soname_spec='${libname}${release}${shared_ext}$major'
20169   shlibpath_var=LD_LIBRARY_PATH
20170   shlibpath_overrides_runpath=no
20171   hardcode_into_libs=yes
20172   dynamic_linker='GNU ld.so'
20173   ;;
20174
20175 freebsd*)
20176   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20177   version_type=freebsd-$objformat
20178   case $version_type in
20179     freebsd-elf*)
20180       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20181       need_version=no
20182       need_lib_prefix=no
20183       ;;
20184     freebsd-*)
20185       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20186       need_version=yes
20187       ;;
20188   esac
20189   shlibpath_var=LD_LIBRARY_PATH
20190   case $host_os in
20191   freebsd2*)
20192     shlibpath_overrides_runpath=yes
20193     ;;
20194   freebsd3.01* | freebsdelf3.01*)
20195     shlibpath_overrides_runpath=yes
20196     hardcode_into_libs=yes
20197     ;;
20198   *) # from 3.2 on
20199     shlibpath_overrides_runpath=no
20200     hardcode_into_libs=yes
20201     ;;
20202   esac
20203   ;;
20204
20205 gnu*)
20206   version_type=linux
20207   need_lib_prefix=no
20208   need_version=no
20209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20210   soname_spec='${libname}${release}${shared_ext}$major'
20211   shlibpath_var=LD_LIBRARY_PATH
20212   hardcode_into_libs=yes
20213   ;;
20214
20215 hpux9* | hpux10* | hpux11*)
20216   # Give a soname corresponding to the major version so that dld.sl refuses to
20217   # link against other versions.
20218   version_type=sunos
20219   need_lib_prefix=no
20220   need_version=no
20221   case "$host_cpu" in
20222   ia64*)
20223     shrext_cmds='.so'
20224     hardcode_into_libs=yes
20225     dynamic_linker="$host_os dld.so"
20226     shlibpath_var=LD_LIBRARY_PATH
20227     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229     soname_spec='${libname}${release}${shared_ext}$major'
20230     if test "X$HPUX_IA64_MODE" = X32; then
20231       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20232     else
20233       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20234     fi
20235     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20236     ;;
20237    hppa*64*)
20238      shrext_cmds='.sl'
20239      hardcode_into_libs=yes
20240      dynamic_linker="$host_os dld.sl"
20241      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20242      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20243      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244      soname_spec='${libname}${release}${shared_ext}$major'
20245      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20246      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20247      ;;
20248    *)
20249     shrext_cmds='.sl'
20250     dynamic_linker="$host_os dld.sl"
20251     shlibpath_var=SHLIB_PATH
20252     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254     soname_spec='${libname}${release}${shared_ext}$major'
20255     ;;
20256   esac
20257   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20258   postinstall_cmds='chmod 555 $lib'
20259   ;;
20260
20261 irix5* | irix6* | nonstopux*)
20262   case $host_os in
20263     nonstopux*) version_type=nonstopux ;;
20264     *)
20265         if test "$lt_cv_prog_gnu_ld" = yes; then
20266                 version_type=linux
20267         else
20268                 version_type=irix
20269         fi ;;
20270   esac
20271   need_lib_prefix=no
20272   need_version=no
20273   soname_spec='${libname}${release}${shared_ext}$major'
20274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20275   case $host_os in
20276   irix5* | nonstopux*)
20277     libsuff= shlibsuff=
20278     ;;
20279   *)
20280     case $LD in # libtool.m4 will add one of these switches to LD
20281     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20282       libsuff= shlibsuff= libmagic=32-bit;;
20283     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20284       libsuff=32 shlibsuff=N32 libmagic=N32;;
20285     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20286       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20287     *) libsuff= shlibsuff= libmagic=never-match;;
20288     esac
20289     ;;
20290   esac
20291   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20292   shlibpath_overrides_runpath=no
20293   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20294   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20295   hardcode_into_libs=yes
20296   ;;
20297
20298 # No shared lib support for Linux oldld, aout, or coff.
20299 linux*oldld* | linux*aout* | linux*coff*)
20300   dynamic_linker=no
20301   ;;
20302
20303 # This must be Linux ELF.
20304 linux*)
20305   version_type=linux
20306   need_lib_prefix=no
20307   need_version=no
20308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309   soname_spec='${libname}${release}${shared_ext}$major'
20310   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20311   shlibpath_var=LD_LIBRARY_PATH
20312   shlibpath_overrides_runpath=no
20313   # This implies no fast_install, which is unacceptable.
20314   # Some rework will be needed to allow for fast_install
20315   # before this can be enabled.
20316   hardcode_into_libs=yes
20317
20318   # Append ld.so.conf contents to the search path
20319   if test -f /etc/ld.so.conf; then
20320     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20321     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20322   fi
20323
20324   # We used to test for /lib/ld.so.1 and disable shared libraries on
20325   # powerpc, because MkLinux only supported shared libraries with the
20326   # GNU dynamic linker.  Since this was broken with cross compilers,
20327   # most powerpc-linux boxes support dynamic linking these days and
20328   # people can always --disable-shared, the test was removed, and we
20329   # assume the GNU/Linux dynamic linker is in use.
20330   dynamic_linker='GNU/Linux ld.so'
20331   ;;
20332
20333 knetbsd*-gnu)
20334   version_type=linux
20335   need_lib_prefix=no
20336   need_version=no
20337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20338   soname_spec='${libname}${release}${shared_ext}$major'
20339   shlibpath_var=LD_LIBRARY_PATH
20340   shlibpath_overrides_runpath=no
20341   hardcode_into_libs=yes
20342   dynamic_linker='GNU ld.so'
20343   ;;
20344
20345 netbsd*)
20346   version_type=sunos
20347   need_lib_prefix=no
20348   need_version=no
20349   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352     dynamic_linker='NetBSD (a.out) ld.so'
20353   else
20354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20355     soname_spec='${libname}${release}${shared_ext}$major'
20356     dynamic_linker='NetBSD ld.elf_so'
20357   fi
20358   shlibpath_var=LD_LIBRARY_PATH
20359   shlibpath_overrides_runpath=yes
20360   hardcode_into_libs=yes
20361   ;;
20362
20363 newsos6)
20364   version_type=linux
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366   shlibpath_var=LD_LIBRARY_PATH
20367   shlibpath_overrides_runpath=yes
20368   ;;
20369
20370 nto-qnx*)
20371   version_type=linux
20372   need_lib_prefix=no
20373   need_version=no
20374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375   soname_spec='${libname}${release}${shared_ext}$major'
20376   shlibpath_var=LD_LIBRARY_PATH
20377   shlibpath_overrides_runpath=yes
20378   ;;
20379
20380 openbsd*)
20381   version_type=sunos
20382   need_lib_prefix=no
20383   need_version=no
20384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20386   shlibpath_var=LD_LIBRARY_PATH
20387   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20388     case $host_os in
20389       openbsd2.[89] | openbsd2.[89].*)
20390         shlibpath_overrides_runpath=no
20391         ;;
20392       *)
20393         shlibpath_overrides_runpath=yes
20394         ;;
20395       esac
20396   else
20397     shlibpath_overrides_runpath=yes
20398   fi
20399   ;;
20400
20401 os2*)
20402   libname_spec='$name'
20403   shrext_cmds=".dll"
20404   need_lib_prefix=no
20405   library_names_spec='$libname${shared_ext} $libname.a'
20406   dynamic_linker='OS/2 ld.exe'
20407   shlibpath_var=LIBPATH
20408   ;;
20409
20410 osf3* | osf4* | osf5*)
20411   version_type=osf
20412   need_lib_prefix=no
20413   need_version=no
20414   soname_spec='${libname}${release}${shared_ext}$major'
20415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416   shlibpath_var=LD_LIBRARY_PATH
20417   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20418   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20419   ;;
20420
20421 sco3.2v5*)
20422   version_type=osf
20423   soname_spec='${libname}${release}${shared_ext}$major'
20424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425   shlibpath_var=LD_LIBRARY_PATH
20426   ;;
20427
20428 solaris*)
20429   version_type=linux
20430   need_lib_prefix=no
20431   need_version=no
20432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433   soname_spec='${libname}${release}${shared_ext}$major'
20434   shlibpath_var=LD_LIBRARY_PATH
20435   shlibpath_overrides_runpath=yes
20436   hardcode_into_libs=yes
20437   # ldd complains unless libraries are executable
20438   postinstall_cmds='chmod +x $lib'
20439   ;;
20440
20441 sunos4*)
20442   version_type=sunos
20443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20444   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20445   shlibpath_var=LD_LIBRARY_PATH
20446   shlibpath_overrides_runpath=yes
20447   if test "$with_gnu_ld" = yes; then
20448     need_lib_prefix=no
20449   fi
20450   need_version=yes
20451   ;;
20452
20453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20454   version_type=linux
20455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456   soname_spec='${libname}${release}${shared_ext}$major'
20457   shlibpath_var=LD_LIBRARY_PATH
20458   case $host_vendor in
20459     sni)
20460       shlibpath_overrides_runpath=no
20461       need_lib_prefix=no
20462       export_dynamic_flag_spec='${wl}-Blargedynsym'
20463       runpath_var=LD_RUN_PATH
20464       ;;
20465     siemens)
20466       need_lib_prefix=no
20467       ;;
20468     motorola)
20469       need_lib_prefix=no
20470       need_version=no
20471       shlibpath_overrides_runpath=no
20472       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20473       ;;
20474   esac
20475   ;;
20476
20477 sysv4*MP*)
20478   if test -d /usr/nec ;then
20479     version_type=linux
20480     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20481     soname_spec='$libname${shared_ext}.$major'
20482     shlibpath_var=LD_LIBRARY_PATH
20483   fi
20484   ;;
20485
20486 uts4*)
20487   version_type=linux
20488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489   soname_spec='${libname}${release}${shared_ext}$major'
20490   shlibpath_var=LD_LIBRARY_PATH
20491   ;;
20492
20493 *)
20494   dynamic_linker=no
20495   ;;
20496 esac
20497 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20498 echo "${ECHO_T}$dynamic_linker" >&6
20499 test "$dynamic_linker" = no && can_build_shared=no
20500
20501 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20502 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20503 hardcode_action_F77=
20504 if test -n "$hardcode_libdir_flag_spec_F77" || \
20505    test -n "$runpath_var_F77" || \
20506    test "X$hardcode_automatic_F77" = "Xyes" ; then
20507
20508   # We can hardcode non-existant directories.
20509   if test "$hardcode_direct_F77" != no &&
20510      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20511      # have to relink, otherwise we might link with an installed library
20512      # when we should be linking with a yet-to-be-installed one
20513      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20514      test "$hardcode_minus_L_F77" != no; then
20515     # Linking always hardcodes the temporary library directory.
20516     hardcode_action_F77=relink
20517   else
20518     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20519     hardcode_action_F77=immediate
20520   fi
20521 else
20522   # We cannot hardcode anything, or else we can only hardcode existing
20523   # directories.
20524   hardcode_action_F77=unsupported
20525 fi
20526 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20527 echo "${ECHO_T}$hardcode_action_F77" >&6
20528
20529 if test "$hardcode_action_F77" = relink; then
20530   # Fast installation is not supported
20531   enable_fast_install=no
20532 elif test "$shlibpath_overrides_runpath" = yes ||
20533      test "$enable_shared" = no; then
20534   # Fast installation is not necessary
20535   enable_fast_install=needless
20536 fi
20537
20538 striplib=
20539 old_striplib=
20540 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20541 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20542 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20543   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20544   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20545   echo "$as_me:$LINENO: result: yes" >&5
20546 echo "${ECHO_T}yes" >&6
20547 else
20548 # FIXME - insert some real tests, host_os isn't really good enough
20549   case $host_os in
20550    darwin*)
20551        if test -n "$STRIP" ; then
20552          striplib="$STRIP -x"
20553          echo "$as_me:$LINENO: result: yes" >&5
20554 echo "${ECHO_T}yes" >&6
20555        else
20556   echo "$as_me:$LINENO: result: no" >&5
20557 echo "${ECHO_T}no" >&6
20558 fi
20559        ;;
20560    *)
20561   echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6
20563     ;;
20564   esac
20565 fi
20566
20567
20568
20569 # The else clause should only fire when bootstrapping the
20570 # libtool distribution, otherwise you forgot to ship ltmain.sh
20571 # with your package, and you will get complaints that there are
20572 # no rules to generate ltmain.sh.
20573 if test -f "$ltmain"; then
20574   # See if we are running on zsh, and set the options which allow our commands through
20575   # without removal of \ escapes.
20576   if test -n "${ZSH_VERSION+set}" ; then
20577     setopt NO_GLOB_SUBST
20578   fi
20579   # Now quote all the things that may contain metacharacters while being
20580   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20581   # variables and quote the copies for generation of the libtool script.
20582   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20583     SED SHELL STRIP \
20584     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20585     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20586     deplibs_check_method reload_flag reload_cmds need_locks \
20587     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20588     lt_cv_sys_global_symbol_to_c_name_address \
20589     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20590     old_postinstall_cmds old_postuninstall_cmds \
20591     compiler_F77 \
20592     CC_F77 \
20593     LD_F77 \
20594     lt_prog_compiler_wl_F77 \
20595     lt_prog_compiler_pic_F77 \
20596     lt_prog_compiler_static_F77 \
20597     lt_prog_compiler_no_builtin_flag_F77 \
20598     export_dynamic_flag_spec_F77 \
20599     thread_safe_flag_spec_F77 \
20600     whole_archive_flag_spec_F77 \
20601     enable_shared_with_static_runtimes_F77 \
20602     old_archive_cmds_F77 \
20603     old_archive_from_new_cmds_F77 \
20604     predep_objects_F77 \
20605     postdep_objects_F77 \
20606     predeps_F77 \
20607     postdeps_F77 \
20608     compiler_lib_search_path_F77 \
20609     archive_cmds_F77 \
20610     archive_expsym_cmds_F77 \
20611     postinstall_cmds_F77 \
20612     postuninstall_cmds_F77 \
20613     old_archive_from_expsyms_cmds_F77 \
20614     allow_undefined_flag_F77 \
20615     no_undefined_flag_F77 \
20616     export_symbols_cmds_F77 \
20617     hardcode_libdir_flag_spec_F77 \
20618     hardcode_libdir_flag_spec_ld_F77 \
20619     hardcode_libdir_separator_F77 \
20620     hardcode_automatic_F77 \
20621     module_cmds_F77 \
20622     module_expsym_cmds_F77 \
20623     lt_cv_prog_compiler_c_o_F77 \
20624     exclude_expsyms_F77 \
20625     include_expsyms_F77; do
20626
20627     case $var in
20628     old_archive_cmds_F77 | \
20629     old_archive_from_new_cmds_F77 | \
20630     archive_cmds_F77 | \
20631     archive_expsym_cmds_F77 | \
20632     module_cmds_F77 | \
20633     module_expsym_cmds_F77 | \
20634     old_archive_from_expsyms_cmds_F77 | \
20635     export_symbols_cmds_F77 | \
20636     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20637     postinstall_cmds | postuninstall_cmds | \
20638     old_postinstall_cmds | old_postuninstall_cmds | \
20639     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20640       # Double-quote double-evaled strings.
20641       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20642       ;;
20643     *)
20644       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20645       ;;
20646     esac
20647   done
20648
20649   case $lt_echo in
20650   *'\$0 --fallback-echo"')
20651     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20652     ;;
20653   esac
20654
20655 cfgfile="$ofile"
20656
20657   cat <<__EOF__ >> "$cfgfile"
20658 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20659
20660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20661
20662 # Shell to use when invoking shell scripts.
20663 SHELL=$lt_SHELL
20664
20665 # Whether or not to build shared libraries.
20666 build_libtool_libs=$enable_shared
20667
20668 # Whether or not to build static libraries.
20669 build_old_libs=$enable_static
20670
20671 # Whether or not to add -lc for building shared libraries.
20672 build_libtool_need_lc=$archive_cmds_need_lc_F77
20673
20674 # Whether or not to disallow shared libs when runtime libs are static
20675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20676
20677 # Whether or not to optimize for fast installation.
20678 fast_install=$enable_fast_install
20679
20680 # The host system.
20681 host_alias=$host_alias
20682 host=$host
20683
20684 # An echo program that does not interpret backslashes.
20685 echo=$lt_echo
20686
20687 # The archiver.
20688 AR=$lt_AR
20689 AR_FLAGS=$lt_AR_FLAGS
20690
20691 # A C compiler.
20692 LTCC=$lt_LTCC
20693
20694 # A language-specific compiler.
20695 CC=$lt_compiler_F77
20696
20697 # Is the compiler the GNU C compiler?
20698 with_gcc=$GCC_F77
20699
20700 # An ERE matcher.
20701 EGREP=$lt_EGREP
20702
20703 # The linker used to build libraries.
20704 LD=$lt_LD_F77
20705
20706 # Whether we need hard or soft links.
20707 LN_S=$lt_LN_S
20708
20709 # A BSD-compatible nm program.
20710 NM=$lt_NM
20711
20712 # A symbol stripping program
20713 STRIP=$lt_STRIP
20714
20715 # Used to examine libraries when file_magic_cmd begins "file"
20716 MAGIC_CMD=$MAGIC_CMD
20717
20718 # Used on cygwin: DLL creation program.
20719 DLLTOOL="$DLLTOOL"
20720
20721 # Used on cygwin: object dumper.
20722 OBJDUMP="$OBJDUMP"
20723
20724 # Used on cygwin: assembler.
20725 AS="$AS"
20726
20727 # The name of the directory that contains temporary libtool files.
20728 objdir=$objdir
20729
20730 # How to create reloadable object files.
20731 reload_flag=$lt_reload_flag
20732 reload_cmds=$lt_reload_cmds
20733
20734 # How to pass a linker flag through the compiler.
20735 wl=$lt_lt_prog_compiler_wl_F77
20736
20737 # Object file suffix (normally "o").
20738 objext="$ac_objext"
20739
20740 # Old archive suffix (normally "a").
20741 libext="$libext"
20742
20743 # Shared library suffix (normally ".so").
20744 shrext_cmds='$shrext_cmds'
20745
20746 # Executable file suffix (normally "").
20747 exeext="$exeext"
20748
20749 # Additional compiler flags for building library objects.
20750 pic_flag=$lt_lt_prog_compiler_pic_F77
20751 pic_mode=$pic_mode
20752
20753 # What is the maximum length of a command?
20754 max_cmd_len=$lt_cv_sys_max_cmd_len
20755
20756 # Does compiler simultaneously support -c and -o options?
20757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20758
20759 # Must we lock files when doing compilation ?
20760 need_locks=$lt_need_locks
20761
20762 # Do we need the lib prefix for modules?
20763 need_lib_prefix=$need_lib_prefix
20764
20765 # Do we need a version for libraries?
20766 need_version=$need_version
20767
20768 # Whether dlopen is supported.
20769 dlopen_support=$enable_dlopen
20770
20771 # Whether dlopen of programs is supported.
20772 dlopen_self=$enable_dlopen_self
20773
20774 # Whether dlopen of statically linked programs is supported.
20775 dlopen_self_static=$enable_dlopen_self_static
20776
20777 # Compiler flag to prevent dynamic linking.
20778 link_static_flag=$lt_lt_prog_compiler_static_F77
20779
20780 # Compiler flag to turn off builtin functions.
20781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20782
20783 # Compiler flag to allow reflexive dlopens.
20784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20785
20786 # Compiler flag to generate shared objects directly from archives.
20787 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20788
20789 # Compiler flag to generate thread-safe objects.
20790 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20791
20792 # Library versioning type.
20793 version_type=$version_type
20794
20795 # Format of library name prefix.
20796 libname_spec=$lt_libname_spec
20797
20798 # List of archive names.  First name is the real one, the rest are links.
20799 # The last name is the one that the linker finds with -lNAME.
20800 library_names_spec=$lt_library_names_spec
20801
20802 # The coded name of the library, if different from the real name.
20803 soname_spec=$lt_soname_spec
20804
20805 # Commands used to build and install an old-style archive.
20806 RANLIB=$lt_RANLIB
20807 old_archive_cmds=$lt_old_archive_cmds_F77
20808 old_postinstall_cmds=$lt_old_postinstall_cmds
20809 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20810
20811 # Create an old-style archive from a shared archive.
20812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20813
20814 # Create a temporary old-style archive to link instead of a shared archive.
20815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20816
20817 # Commands used to build and install a shared archive.
20818 archive_cmds=$lt_archive_cmds_F77
20819 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20820 postinstall_cmds=$lt_postinstall_cmds
20821 postuninstall_cmds=$lt_postuninstall_cmds
20822
20823 # Commands used to build a loadable module (assumed same as above if empty)
20824 module_cmds=$lt_module_cmds_F77
20825 module_expsym_cmds=$lt_module_expsym_cmds_F77
20826
20827 # Commands to strip libraries.
20828 old_striplib=$lt_old_striplib
20829 striplib=$lt_striplib
20830
20831 # Dependencies to place before the objects being linked to create a
20832 # shared library.
20833 predep_objects=$lt_predep_objects_F77
20834
20835 # Dependencies to place after the objects being linked to create a
20836 # shared library.
20837 postdep_objects=$lt_postdep_objects_F77
20838
20839 # Dependencies to place before the objects being linked to create a
20840 # shared library.
20841 predeps=$lt_predeps_F77
20842
20843 # Dependencies to place after the objects being linked to create a
20844 # shared library.
20845 postdeps=$lt_postdeps_F77
20846
20847 # The library search path used internally by the compiler when linking
20848 # a shared library.
20849 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20850
20851 # Method to check whether dependent libraries are shared objects.
20852 deplibs_check_method=$lt_deplibs_check_method
20853
20854 # Command to use when deplibs_check_method == file_magic.
20855 file_magic_cmd=$lt_file_magic_cmd
20856
20857 # Flag that allows shared libraries with undefined symbols to be built.
20858 allow_undefined_flag=$lt_allow_undefined_flag_F77
20859
20860 # Flag that forces no undefined symbols.
20861 no_undefined_flag=$lt_no_undefined_flag_F77
20862
20863 # Commands used to finish a libtool library installation in a directory.
20864 finish_cmds=$lt_finish_cmds
20865
20866 # Same as above, but a single script fragment to be evaled but not shown.
20867 finish_eval=$lt_finish_eval
20868
20869 # Take the output of nm and produce a listing of raw symbols and C names.
20870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20871
20872 # Transform the output of nm in a proper C declaration
20873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20874
20875 # Transform the output of nm in a C name address pair
20876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20877
20878 # This is the shared library runtime path variable.
20879 runpath_var=$runpath_var
20880
20881 # This is the shared library path variable.
20882 shlibpath_var=$shlibpath_var
20883
20884 # Is shlibpath searched before the hard-coded library search path?
20885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20886
20887 # How to hardcode a shared library path into an executable.
20888 hardcode_action=$hardcode_action_F77
20889
20890 # Whether we should hardcode library paths into libraries.
20891 hardcode_into_libs=$hardcode_into_libs
20892
20893 # Flag to hardcode \$libdir into a binary during linking.
20894 # This must work even if \$libdir does not exist.
20895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20896
20897 # If ld is used when linking, flag to hardcode \$libdir into
20898 # a binary during linking. This must work even if \$libdir does
20899 # not exist.
20900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20901
20902 # Whether we need a single -rpath flag with a separated argument.
20903 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20904
20905 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20906 # resulting binary.
20907 hardcode_direct=$hardcode_direct_F77
20908
20909 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20910 # resulting binary.
20911 hardcode_minus_L=$hardcode_minus_L_F77
20912
20913 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20914 # the resulting binary.
20915 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20916
20917 # Set to yes if building a shared library automatically hardcodes DIR into the library
20918 # and all subsequent libraries and executables linked against it.
20919 hardcode_automatic=$hardcode_automatic_F77
20920
20921 # Variables whose values should be saved in libtool wrapper scripts and
20922 # restored at relink time.
20923 variables_saved_for_relink="$variables_saved_for_relink"
20924
20925 # Whether libtool must link a program against all its dependency libraries.
20926 link_all_deplibs=$link_all_deplibs_F77
20927
20928 # Compile-time system search path for libraries
20929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20930
20931 # Run-time system search path for libraries
20932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20933
20934 # Fix the shell variable \$srcfile for the compiler.
20935 fix_srcfile_path="$fix_srcfile_path_F77"
20936
20937 # Set to yes if exported symbols are required.
20938 always_export_symbols=$always_export_symbols_F77
20939
20940 # The commands to list exported symbols.
20941 export_symbols_cmds=$lt_export_symbols_cmds_F77
20942
20943 # The commands to extract the exported symbol list from a shared archive.
20944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20945
20946 # Symbols that should not be listed in the preloaded symbols.
20947 exclude_expsyms=$lt_exclude_expsyms_F77
20948
20949 # Symbols that must always be exported.
20950 include_expsyms=$lt_include_expsyms_F77
20951
20952 # ### END LIBTOOL TAG CONFIG: $tagname
20953
20954 __EOF__
20955
20956
20957 else
20958   # If there is no Makefile yet, we rely on a make rule to execute
20959   # `config.status --recheck' to rerun these tests and create the
20960   # libtool script then.
20961   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20962   if test -f "$ltmain_in"; then
20963     test -f Makefile && make "$ltmain"
20964   fi
20965 fi
20966
20967
20968 ac_ext=c
20969 ac_cpp='$CPP $CPPFLAGS'
20970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20973
20974 CC="$lt_save_CC"
20975
20976         else
20977           tagname=""
20978         fi
20979         ;;
20980
20981       GCJ)
20982         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20983           ac_ext=c
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988
20989
20990 # Source file extension for Java test sources.
20991 ac_ext=java
20992
20993 # Object file extension for compiled Java test sources.
20994 objext=o
20995 objext_GCJ=$objext
20996
20997 # Code to be used in simple compile tests
20998 lt_simple_compile_test_code="class foo {}\n"
20999
21000 # Code to be used in simple link tests
21001 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21002
21003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21004
21005 # If no C compiler was specified, use CC.
21006 LTCC=${LTCC-"$CC"}
21007
21008 # Allow CC to be a program name with arguments.
21009 compiler=$CC
21010
21011
21012 # Allow CC to be a program name with arguments.
21013 lt_save_CC="$CC"
21014 CC=${GCJ-"gcj"}
21015 compiler=$CC
21016 compiler_GCJ=$CC
21017
21018 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21019 archive_cmds_need_lc_GCJ=no
21020
21021
21022 lt_prog_compiler_no_builtin_flag_GCJ=
21023
21024 if test "$GCC" = yes; then
21025   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21026
21027
21028 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21029 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21030 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21031   echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033   lt_cv_prog_compiler_rtti_exceptions=no
21034   ac_outfile=conftest.$ac_objext
21035    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21036    lt_compiler_flag="-fno-rtti -fno-exceptions"
21037    # Insert the option either (1) after the last *FLAGS variable, or
21038    # (2) before a word containing "conftest.", or (3) at the end.
21039    # Note that $ac_compile itself does not contain backslashes and begins
21040    # with a dollar sign (not a hyphen), so the echo should work correctly.
21041    # The option is referenced via a variable to avoid confusing sed.
21042    lt_compile=`echo "$ac_compile" | $SED \
21043    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21045    -e 's:$: $lt_compiler_flag:'`
21046    (eval echo "\"\$as_me:21046: $lt_compile\"" >&5)
21047    (eval "$lt_compile" 2>conftest.err)
21048    ac_status=$?
21049    cat conftest.err >&5
21050    echo "$as_me:21050: \$? = $ac_status" >&5
21051    if (exit $ac_status) && test -s "$ac_outfile"; then
21052      # The compiler can only warn and ignore the option if not recognized
21053      # So say no if there are warnings
21054      if test ! -s conftest.err; then
21055        lt_cv_prog_compiler_rtti_exceptions=yes
21056      fi
21057    fi
21058    $rm conftest*
21059
21060 fi
21061 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21062 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21063
21064 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21065     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21066 else
21067     :
21068 fi
21069
21070 fi
21071
21072 lt_prog_compiler_wl_GCJ=
21073 lt_prog_compiler_pic_GCJ=
21074 lt_prog_compiler_static_GCJ=
21075
21076 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21077 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21078
21079   if test "$GCC" = yes; then
21080     lt_prog_compiler_wl_GCJ='-Wl,'
21081     lt_prog_compiler_static_GCJ='-static'
21082
21083     case $host_os in
21084       aix*)
21085       # All AIX code is PIC.
21086       if test "$host_cpu" = ia64; then
21087         # AIX 5 now supports IA64 processor
21088         lt_prog_compiler_static_GCJ='-Bstatic'
21089       fi
21090       ;;
21091
21092     amigaos*)
21093       # FIXME: we need at least 68020 code to build shared libraries, but
21094       # adding the `-m68020' flag to GCC prevents building anything better,
21095       # like `-m68040'.
21096       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21097       ;;
21098
21099     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21100       # PIC is the default for these OSes.
21101       ;;
21102
21103     mingw* | pw32* | os2*)
21104       # This hack is so that the source file can tell whether it is being
21105       # built for inclusion in a dll (and should export symbols for example).
21106       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21107       ;;
21108
21109     darwin* | rhapsody*)
21110       # PIC is the default on this platform
21111       # Common symbols not allowed in MH_DYLIB files
21112       lt_prog_compiler_pic_GCJ='-fno-common'
21113       ;;
21114
21115     msdosdjgpp*)
21116       # Just because we use GCC doesn't mean we suddenly get shared libraries
21117       # on systems that don't support them.
21118       lt_prog_compiler_can_build_shared_GCJ=no
21119       enable_shared=no
21120       ;;
21121
21122     sysv4*MP*)
21123       if test -d /usr/nec; then
21124         lt_prog_compiler_pic_GCJ=-Kconform_pic
21125       fi
21126       ;;
21127
21128     hpux*)
21129       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21130       # not for PA HP-UX.
21131       case "$host_cpu" in
21132       hppa*64*|ia64*)
21133         # +Z the default
21134         ;;
21135       *)
21136         lt_prog_compiler_pic_GCJ='-fPIC'
21137         ;;
21138       esac
21139       ;;
21140
21141     *)
21142       lt_prog_compiler_pic_GCJ='-fPIC'
21143       ;;
21144     esac
21145   else
21146     # PORTME Check for flag to pass linker flags through the system compiler.
21147     case $host_os in
21148     aix*)
21149       lt_prog_compiler_wl_GCJ='-Wl,'
21150       if test "$host_cpu" = ia64; then
21151         # AIX 5 now supports IA64 processor
21152         lt_prog_compiler_static_GCJ='-Bstatic'
21153       else
21154         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21155       fi
21156       ;;
21157       darwin*)
21158         # PIC is the default on this platform
21159         # Common symbols not allowed in MH_DYLIB files
21160        case "$cc_basename" in
21161          xlc*)
21162          lt_prog_compiler_pic_GCJ='-qnocommon'
21163          lt_prog_compiler_wl_GCJ='-Wl,'
21164          ;;
21165        esac
21166        ;;
21167
21168     mingw* | pw32* | os2*)
21169       # This hack is so that the source file can tell whether it is being
21170       # built for inclusion in a dll (and should export symbols for example).
21171       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21172       ;;
21173
21174     hpux9* | hpux10* | hpux11*)
21175       lt_prog_compiler_wl_GCJ='-Wl,'
21176       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21177       # not for PA HP-UX.
21178       case "$host_cpu" in
21179       hppa*64*|ia64*)
21180         # +Z the default
21181         ;;
21182       *)
21183         lt_prog_compiler_pic_GCJ='+Z'
21184         ;;
21185       esac
21186       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21187       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21188       ;;
21189
21190     irix5* | irix6* | nonstopux*)
21191       lt_prog_compiler_wl_GCJ='-Wl,'
21192       # PIC (with -KPIC) is the default.
21193       lt_prog_compiler_static_GCJ='-non_shared'
21194       ;;
21195
21196     newsos6)
21197       lt_prog_compiler_pic_GCJ='-KPIC'
21198       lt_prog_compiler_static_GCJ='-Bstatic'
21199       ;;
21200
21201     linux*)
21202       case $CC in
21203       icc* | ecc*)
21204         lt_prog_compiler_wl_GCJ='-Wl,'
21205         lt_prog_compiler_pic_GCJ='-KPIC'
21206         lt_prog_compiler_static_GCJ='-static'
21207         ;;
21208       ccc*)
21209         lt_prog_compiler_wl_GCJ='-Wl,'
21210         # All Alpha code is PIC.
21211         lt_prog_compiler_static_GCJ='-non_shared'
21212         ;;
21213       esac
21214       ;;
21215
21216     osf3* | osf4* | osf5*)
21217       lt_prog_compiler_wl_GCJ='-Wl,'
21218       # All OSF/1 code is PIC.
21219       lt_prog_compiler_static_GCJ='-non_shared'
21220       ;;
21221
21222     sco3.2v5*)
21223       lt_prog_compiler_pic_GCJ='-Kpic'
21224       lt_prog_compiler_static_GCJ='-dn'
21225       ;;
21226
21227     solaris*)
21228       lt_prog_compiler_wl_GCJ='-Wl,'
21229       lt_prog_compiler_pic_GCJ='-KPIC'
21230       lt_prog_compiler_static_GCJ='-Bstatic'
21231       ;;
21232
21233     sunos4*)
21234       lt_prog_compiler_wl_GCJ='-Qoption ld '
21235       lt_prog_compiler_pic_GCJ='-PIC'
21236       lt_prog_compiler_static_GCJ='-Bstatic'
21237       ;;
21238
21239     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21240       lt_prog_compiler_wl_GCJ='-Wl,'
21241       lt_prog_compiler_pic_GCJ='-KPIC'
21242       lt_prog_compiler_static_GCJ='-Bstatic'
21243       ;;
21244
21245     sysv4*MP*)
21246       if test -d /usr/nec ;then
21247         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21248         lt_prog_compiler_static_GCJ='-Bstatic'
21249       fi
21250       ;;
21251
21252     uts4*)
21253       lt_prog_compiler_pic_GCJ='-pic'
21254       lt_prog_compiler_static_GCJ='-Bstatic'
21255       ;;
21256
21257     *)
21258       lt_prog_compiler_can_build_shared_GCJ=no
21259       ;;
21260     esac
21261   fi
21262
21263 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21264 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21265
21266 #
21267 # Check to make sure the PIC flag actually works.
21268 #
21269 if test -n "$lt_prog_compiler_pic_GCJ"; then
21270
21271 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21273 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21274   echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276   lt_prog_compiler_pic_works_GCJ=no
21277   ac_outfile=conftest.$ac_objext
21278    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21279    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21280    # Insert the option either (1) after the last *FLAGS variable, or
21281    # (2) before a word containing "conftest.", or (3) at the end.
21282    # Note that $ac_compile itself does not contain backslashes and begins
21283    # with a dollar sign (not a hyphen), so the echo should work correctly.
21284    # The option is referenced via a variable to avoid confusing sed.
21285    lt_compile=`echo "$ac_compile" | $SED \
21286    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21288    -e 's:$: $lt_compiler_flag:'`
21289    (eval echo "\"\$as_me:21289: $lt_compile\"" >&5)
21290    (eval "$lt_compile" 2>conftest.err)
21291    ac_status=$?
21292    cat conftest.err >&5
21293    echo "$as_me:21293: \$? = $ac_status" >&5
21294    if (exit $ac_status) && test -s "$ac_outfile"; then
21295      # The compiler can only warn and ignore the option if not recognized
21296      # So say no if there are warnings
21297      if test ! -s conftest.err; then
21298        lt_prog_compiler_pic_works_GCJ=yes
21299      fi
21300    fi
21301    $rm conftest*
21302
21303 fi
21304 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21305 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21306
21307 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21308     case $lt_prog_compiler_pic_GCJ in
21309      "" | " "*) ;;
21310      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21311      esac
21312 else
21313     lt_prog_compiler_pic_GCJ=
21314      lt_prog_compiler_can_build_shared_GCJ=no
21315 fi
21316
21317 fi
21318 case "$host_os" in
21319   # For platforms which do not support PIC, -DPIC is meaningless:
21320   *djgpp*)
21321     lt_prog_compiler_pic_GCJ=
21322     ;;
21323   *)
21324     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21325     ;;
21326 esac
21327
21328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21330 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21331   echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333   lt_cv_prog_compiler_c_o_GCJ=no
21334    $rm -r conftest 2>/dev/null
21335    mkdir conftest
21336    cd conftest
21337    mkdir out
21338    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21339
21340    lt_compiler_flag="-o out/conftest2.$ac_objext"
21341    # Insert the option either (1) after the last *FLAGS variable, or
21342    # (2) before a word containing "conftest.", or (3) at the end.
21343    # Note that $ac_compile itself does not contain backslashes and begins
21344    # with a dollar sign (not a hyphen), so the echo should work correctly.
21345    lt_compile=`echo "$ac_compile" | $SED \
21346    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21348    -e 's:$: $lt_compiler_flag:'`
21349    (eval echo "\"\$as_me:21349: $lt_compile\"" >&5)
21350    (eval "$lt_compile" 2>out/conftest.err)
21351    ac_status=$?
21352    cat out/conftest.err >&5
21353    echo "$as_me:21353: \$? = $ac_status" >&5
21354    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21355    then
21356      # The compiler can only warn and ignore the option if not recognized
21357      # So say no if there are warnings
21358      if test ! -s out/conftest.err; then
21359        lt_cv_prog_compiler_c_o_GCJ=yes
21360      fi
21361    fi
21362    chmod u+w .
21363    $rm conftest*
21364    # SGI C++ compiler will create directory out/ii_files/ for
21365    # template instantiation
21366    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21367    $rm out/* && rmdir out
21368    cd ..
21369    rmdir conftest
21370    $rm conftest*
21371
21372 fi
21373 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21374 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21375
21376
21377 hard_links="nottested"
21378 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21379   # do not overwrite the value of need_locks provided by the user
21380   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21381 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21382   hard_links=yes
21383   $rm conftest*
21384   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21385   touch conftest.a
21386   ln conftest.a conftest.b 2>&5 || hard_links=no
21387   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21388   echo "$as_me:$LINENO: result: $hard_links" >&5
21389 echo "${ECHO_T}$hard_links" >&6
21390   if test "$hard_links" = no; then
21391     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21392 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21393     need_locks=warn
21394   fi
21395 else
21396   need_locks=no
21397 fi
21398
21399 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21400 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21401
21402   runpath_var=
21403   allow_undefined_flag_GCJ=
21404   enable_shared_with_static_runtimes_GCJ=no
21405   archive_cmds_GCJ=
21406   archive_expsym_cmds_GCJ=
21407   old_archive_From_new_cmds_GCJ=
21408   old_archive_from_expsyms_cmds_GCJ=
21409   export_dynamic_flag_spec_GCJ=
21410   whole_archive_flag_spec_GCJ=
21411   thread_safe_flag_spec_GCJ=
21412   hardcode_libdir_flag_spec_GCJ=
21413   hardcode_libdir_flag_spec_ld_GCJ=
21414   hardcode_libdir_separator_GCJ=
21415   hardcode_direct_GCJ=no
21416   hardcode_minus_L_GCJ=no
21417   hardcode_shlibpath_var_GCJ=unsupported
21418   link_all_deplibs_GCJ=unknown
21419   hardcode_automatic_GCJ=no
21420   module_cmds_GCJ=
21421   module_expsym_cmds_GCJ=
21422   always_export_symbols_GCJ=no
21423   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21424   # include_expsyms should be a list of space-separated symbols to be *always*
21425   # included in the symbol list
21426   include_expsyms_GCJ=
21427   # exclude_expsyms can be an extended regexp of symbols to exclude
21428   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21429   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21430   # as well as any symbol that contains `d'.
21431   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21432   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21433   # platforms (ab)use it in PIC code, but their linkers get confused if
21434   # the symbol is explicitly referenced.  Since portable code cannot
21435   # rely on this symbol name, it's probably fine to never include it in
21436   # preloaded symbol tables.
21437   extract_expsyms_cmds=
21438
21439   case $host_os in
21440   cygwin* | mingw* | pw32*)
21441     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21442     # When not using gcc, we currently assume that we are using
21443     # Microsoft Visual C++.
21444     if test "$GCC" != yes; then
21445       with_gnu_ld=no
21446     fi
21447     ;;
21448   openbsd*)
21449     with_gnu_ld=no
21450     ;;
21451   esac
21452
21453   ld_shlibs_GCJ=yes
21454   if test "$with_gnu_ld" = yes; then
21455     # If archive_cmds runs LD, not CC, wlarc should be empty
21456     wlarc='${wl}'
21457
21458     # See if GNU ld supports shared libraries.
21459     case $host_os in
21460     aix3* | aix4* | aix5*)
21461       # On AIX/PPC, the GNU linker is very broken
21462       if test "$host_cpu" != ia64; then
21463         ld_shlibs_GCJ=no
21464         cat <<EOF 1>&2
21465
21466 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21467 *** to be unable to reliably create shared libraries on AIX.
21468 *** Therefore, libtool is disabling shared libraries support.  If you
21469 *** really care for shared libraries, you may want to modify your PATH
21470 *** so that a non-GNU linker is found, and then restart.
21471
21472 EOF
21473       fi
21474       ;;
21475
21476     amigaos*)
21477       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)'
21478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21479       hardcode_minus_L_GCJ=yes
21480
21481       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21482       # that the semantics of dynamic libraries on AmigaOS, at least up
21483       # to version 4, is to share data among multiple programs linked
21484       # with the same dynamic library.  Since this doesn't match the
21485       # behavior of shared libraries on other platforms, we can't use
21486       # them.
21487       ld_shlibs_GCJ=no
21488       ;;
21489
21490     beos*)
21491       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21492         allow_undefined_flag_GCJ=unsupported
21493         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21494         # support --undefined.  This deserves some investigation.  FIXME
21495         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21496       else
21497         ld_shlibs_GCJ=no
21498       fi
21499       ;;
21500
21501     cygwin* | mingw* | pw32*)
21502       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21503       # as there is no search path for DLLs.
21504       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21505       allow_undefined_flag_GCJ=unsupported
21506       always_export_symbols_GCJ=no
21507       enable_shared_with_static_runtimes_GCJ=yes
21508       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21509
21510       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21511         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21512         # If the export-symbols file already is a .def file (1st line
21513         # is EXPORTS), use it as is; otherwise, prepend...
21514         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21515           cp $export_symbols $output_objdir/$soname.def;
21516         else
21517           echo EXPORTS > $output_objdir/$soname.def;
21518           cat $export_symbols >> $output_objdir/$soname.def;
21519         fi~
21520         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21521       else
21522         ld_shlibs=no
21523       fi
21524       ;;
21525
21526     netbsd*)
21527       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21528         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21529         wlarc=
21530       else
21531         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21532         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21533       fi
21534       ;;
21535
21536     solaris* | sysv5*)
21537       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21538         ld_shlibs_GCJ=no
21539         cat <<EOF 1>&2
21540
21541 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21542 *** create shared libraries on Solaris systems.  Therefore, libtool
21543 *** is disabling shared libraries support.  We urge you to upgrade GNU
21544 *** binutils to release 2.9.1 or newer.  Another option is to modify
21545 *** your PATH or compiler configuration so that the native linker is
21546 *** used, and then restart.
21547
21548 EOF
21549       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21550         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21551         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21552       else
21553         ld_shlibs_GCJ=no
21554       fi
21555       ;;
21556
21557     sunos4*)
21558       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21559       wlarc=
21560       hardcode_direct_GCJ=yes
21561       hardcode_shlibpath_var_GCJ=no
21562       ;;
21563
21564   linux*)
21565     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21566         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21567         archive_cmds_GCJ="$tmp_archive_cmds"
21568       supports_anon_versioning=no
21569       case `$LD -v 2>/dev/null` in
21570         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21571         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21572         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21573         *\ 2.11.*) ;; # other 2.11 versions
21574         *) supports_anon_versioning=yes ;;
21575       esac
21576       if test $supports_anon_versioning = yes; then
21577         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21579 $echo "local: *; };" >> $output_objdir/$libname.ver~
21580         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21581       else
21582         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21583       fi
21584     else
21585       ld_shlibs_GCJ=no
21586     fi
21587     ;;
21588
21589     *)
21590       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21591         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21592         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21593       else
21594         ld_shlibs_GCJ=no
21595       fi
21596       ;;
21597     esac
21598
21599     if test "$ld_shlibs_GCJ" = yes; then
21600       runpath_var=LD_RUN_PATH
21601       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21602       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21603       # ancient GNU ld didn't support --whole-archive et. al.
21604       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21605         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21606       else
21607         whole_archive_flag_spec_GCJ=
21608       fi
21609     fi
21610   else
21611     # PORTME fill in a description of your system's linker (not GNU ld)
21612     case $host_os in
21613     aix3*)
21614       allow_undefined_flag_GCJ=unsupported
21615       always_export_symbols_GCJ=yes
21616       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'
21617       # Note: this linker hardcodes the directories in LIBPATH if there
21618       # are no directories specified by -L.
21619       hardcode_minus_L_GCJ=yes
21620       if test "$GCC" = yes && test -z "$link_static_flag"; then
21621         # Neither direct hardcoding nor static linking is supported with a
21622         # broken collect2.
21623         hardcode_direct_GCJ=unsupported
21624       fi
21625       ;;
21626
21627     aix4* | aix5*)
21628       if test "$host_cpu" = ia64; then
21629         # On IA64, the linker does run time linking by default, so we don't
21630         # have to do anything special.
21631         aix_use_runtimelinking=no
21632         exp_sym_flag='-Bexport'
21633         no_entry_flag=""
21634       else
21635         # If we're using GNU nm, then we don't want the "-C" option.
21636         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21637         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21638           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'
21639         else
21640           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'
21641         fi
21642         aix_use_runtimelinking=no
21643
21644         # Test if we are trying to use run time linking or normal
21645         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21646         # need to do runtime linking.
21647         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21648           for ld_flag in $LDFLAGS; do
21649           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21650             aix_use_runtimelinking=yes
21651             break
21652           fi
21653           done
21654         esac
21655
21656         exp_sym_flag='-bexport'
21657         no_entry_flag='-bnoentry'
21658       fi
21659
21660       # When large executables or shared objects are built, AIX ld can
21661       # have problems creating the table of contents.  If linking a library
21662       # or program results in "error TOC overflow" add -mminimal-toc to
21663       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21664       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21665
21666       archive_cmds_GCJ=''
21667       hardcode_direct_GCJ=yes
21668       hardcode_libdir_separator_GCJ=':'
21669       link_all_deplibs_GCJ=yes
21670
21671       if test "$GCC" = yes; then
21672         case $host_os in aix4.012|aix4.012.*)
21673         # We only want to do this on AIX 4.2 and lower, the check
21674         # below for broken collect2 doesn't work under 4.3+
21675           collect2name=`${CC} -print-prog-name=collect2`
21676           if test -f "$collect2name" && \
21677            strings "$collect2name" | grep resolve_lib_name >/dev/null
21678           then
21679           # We have reworked collect2
21680           hardcode_direct_GCJ=yes
21681           else
21682           # We have old collect2
21683           hardcode_direct_GCJ=unsupported
21684           # It fails to find uninstalled libraries when the uninstalled
21685           # path is not listed in the libpath.  Setting hardcode_minus_L
21686           # to unsupported forces relinking
21687           hardcode_minus_L_GCJ=yes
21688           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21689           hardcode_libdir_separator_GCJ=
21690           fi
21691         esac
21692         shared_flag='-shared'
21693       else
21694         # not using gcc
21695         if test "$host_cpu" = ia64; then
21696         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21697         # chokes on -Wl,-G. The following line is correct:
21698           shared_flag='-G'
21699         else
21700         if test "$aix_use_runtimelinking" = yes; then
21701             shared_flag='${wl}-G'
21702           else
21703             shared_flag='${wl}-bM:SRE'
21704         fi
21705         fi
21706       fi
21707
21708       # It seems that -bexpall does not export symbols beginning with
21709       # underscore (_), so it is better to generate a list of symbols to export.
21710       always_export_symbols_GCJ=yes
21711       if test "$aix_use_runtimelinking" = yes; then
21712         # Warning - without using the other runtime loading flags (-brtl),
21713         # -berok will link without error, but may produce a broken library.
21714         allow_undefined_flag_GCJ='-berok'
21715        # Determine the default libpath from the value encoded in an empty executable.
21716        cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722
21723 int
21724 main ()
21725 {
21726
21727   ;
21728   return 0;
21729 }
21730 _ACEOF
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21733   (eval $ac_link) 2>conftest.er1
21734   ac_status=$?
21735   grep -v '^ *+' conftest.er1 >conftest.err
21736   rm -f conftest.er1
21737   cat conftest.err >&5
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } &&
21740          { ac_try='test -z "$ac_c_werror_flag"
21741                          || test ! -s conftest.err'
21742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743   (eval $ac_try) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; } &&
21747          { ac_try='test -s conftest$ac_exeext'
21748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749   (eval $ac_try) 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); }; }; then
21753
21754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21755 }'`
21756 # Check for a 64-bit object if we didn't find anything.
21757 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; }
21758 }'`; fi
21759 else
21760   echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21762
21763 fi
21764 rm -f conftest.err conftest.$ac_objext \
21765       conftest$ac_exeext conftest.$ac_ext
21766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21767
21768        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21769         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"
21770        else
21771         if test "$host_cpu" = ia64; then
21772           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21773           allow_undefined_flag_GCJ="-z nodefs"
21774           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"
21775         else
21776          # Determine the default libpath from the value encoded in an empty executable.
21777          cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h.  */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h.  */
21783
21784 int
21785 main ()
21786 {
21787
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext conftest$ac_exeext
21793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21794   (eval $ac_link) 2>conftest.er1
21795   ac_status=$?
21796   grep -v '^ *+' conftest.er1 >conftest.err
21797   rm -f conftest.er1
21798   cat conftest.err >&5
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); } &&
21801          { ac_try='test -z "$ac_c_werror_flag"
21802                          || test ! -s conftest.err'
21803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; } &&
21808          { ac_try='test -s conftest$ac_exeext'
21809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810   (eval $ac_try) 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); }; }; then
21814
21815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21816 }'`
21817 # Check for a 64-bit object if we didn't find anything.
21818 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; }
21819 }'`; fi
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 fi
21825 rm -f conftest.err conftest.$ac_objext \
21826       conftest$ac_exeext conftest.$ac_ext
21827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21828
21829          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21830           # Warning - without using the other run time loading flags,
21831           # -berok will link without error, but may produce a broken library.
21832           no_undefined_flag_GCJ=' ${wl}-bernotok'
21833           allow_undefined_flag_GCJ=' ${wl}-berok'
21834           # -bexpall does not export symbols beginning with underscore (_)
21835           always_export_symbols_GCJ=yes
21836           # Exported symbols can be pulled into shared objects from archives
21837           whole_archive_flag_spec_GCJ=' '
21838           archive_cmds_need_lc_GCJ=yes
21839           # This is similar to how AIX traditionally builds it's shared libraries.
21840           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'
21841         fi
21842       fi
21843       ;;
21844
21845     amigaos*)
21846       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)'
21847       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21848       hardcode_minus_L_GCJ=yes
21849       # see comment about different semantics on the GNU ld section
21850       ld_shlibs_GCJ=no
21851       ;;
21852
21853     bsdi[45]*)
21854       export_dynamic_flag_spec_GCJ=-rdynamic
21855       ;;
21856
21857     cygwin* | mingw* | pw32*)
21858       # When not using gcc, we currently assume that we are using
21859       # Microsoft Visual C++.
21860       # hardcode_libdir_flag_spec is actually meaningless, as there is
21861       # no search path for DLLs.
21862       hardcode_libdir_flag_spec_GCJ=' '
21863       allow_undefined_flag_GCJ=unsupported
21864       # Tell ltmain to make .lib files, not .a files.
21865       libext=lib
21866       # Tell ltmain to make .dll files, not .so files.
21867       shrext_cmds=".dll"
21868       # FIXME: Setting linknames here is a bad hack.
21869       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21870       # The linker will automatically build a .lib file if we build a DLL.
21871       old_archive_From_new_cmds_GCJ='true'
21872       # FIXME: Should let the user specify the lib program.
21873       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21874       fix_srcfile_path='`cygpath -w "$srcfile"`'
21875       enable_shared_with_static_runtimes_GCJ=yes
21876       ;;
21877
21878     darwin* | rhapsody*)
21879       case "$host_os" in
21880         rhapsody* | darwin1.[012])
21881          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21882          ;;
21883        *) # Darwin 1.3 on
21884          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21885            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21886          else
21887            case ${MACOSX_DEPLOYMENT_TARGET} in
21888              10.[012])
21889                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21890                ;;
21891              10.*)
21892                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21893                ;;
21894            esac
21895          fi
21896          ;;
21897       esac
21898       archive_cmds_need_lc_GCJ=no
21899       hardcode_direct_GCJ=no
21900       hardcode_automatic_GCJ=yes
21901       hardcode_shlibpath_var_GCJ=unsupported
21902       whole_archive_flag_spec_GCJ=''
21903       link_all_deplibs_GCJ=yes
21904     if test "$GCC" = yes ; then
21905         output_verbose_link_cmd='echo'
21906         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21907       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21908       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21909       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}'
21910       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}'
21911     else
21912       case "$cc_basename" in
21913         xlc*)
21914          output_verbose_link_cmd='echo'
21915          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21916          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21917           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21918          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}'
21919           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}'
21920           ;;
21921        *)
21922          ld_shlibs_GCJ=no
21923           ;;
21924       esac
21925     fi
21926       ;;
21927
21928     dgux*)
21929       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21930       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21931       hardcode_shlibpath_var_GCJ=no
21932       ;;
21933
21934     freebsd1*)
21935       ld_shlibs_GCJ=no
21936       ;;
21937
21938     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21939     # support.  Future versions do this automatically, but an explicit c++rt0.o
21940     # does not break anything, and helps significantly (at the cost of a little
21941     # extra space).
21942     freebsd2.2*)
21943       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21945       hardcode_direct_GCJ=yes
21946       hardcode_shlibpath_var_GCJ=no
21947       ;;
21948
21949     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21950     freebsd2*)
21951       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21952       hardcode_direct_GCJ=yes
21953       hardcode_minus_L_GCJ=yes
21954       hardcode_shlibpath_var_GCJ=no
21955       ;;
21956
21957     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21958     freebsd* | kfreebsd*-gnu)
21959       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21960       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21961       hardcode_direct_GCJ=yes
21962       hardcode_shlibpath_var_GCJ=no
21963       ;;
21964
21965     hpux9*)
21966       if test "$GCC" = yes; then
21967         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'
21968       else
21969         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'
21970       fi
21971       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21972       hardcode_libdir_separator_GCJ=:
21973       hardcode_direct_GCJ=yes
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       export_dynamic_flag_spec_GCJ='${wl}-E'
21979       ;;
21980
21981     hpux10* | hpux11*)
21982       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21983         case "$host_cpu" in
21984         hppa*64*|ia64*)
21985           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21986           ;;
21987         *)
21988           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21989           ;;
21990         esac
21991       else
21992         case "$host_cpu" in
21993         hppa*64*|ia64*)
21994           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21995           ;;
21996         *)
21997           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21998           ;;
21999         esac
22000       fi
22001       if test "$with_gnu_ld" = no; then
22002         case "$host_cpu" in
22003         hppa*64*)
22004           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22005           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22006           hardcode_libdir_separator_GCJ=:
22007           hardcode_direct_GCJ=no
22008           hardcode_shlibpath_var_GCJ=no
22009           ;;
22010         ia64*)
22011           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22012           hardcode_direct_GCJ=no
22013           hardcode_shlibpath_var_GCJ=no
22014
22015           # hardcode_minus_L: Not really in the search PATH,
22016           # but as the default location of the library.
22017           hardcode_minus_L_GCJ=yes
22018           ;;
22019         *)
22020           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22021           hardcode_libdir_separator_GCJ=:
22022           hardcode_direct_GCJ=yes
22023           export_dynamic_flag_spec_GCJ='${wl}-E'
22024
22025           # hardcode_minus_L: Not really in the search PATH,
22026           # but as the default location of the library.
22027           hardcode_minus_L_GCJ=yes
22028           ;;
22029         esac
22030       fi
22031       ;;
22032
22033     irix5* | irix6* | nonstopux*)
22034       if test "$GCC" = yes; then
22035         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'
22036       else
22037         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'
22038         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22039       fi
22040       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22041       hardcode_libdir_separator_GCJ=:
22042       link_all_deplibs_GCJ=yes
22043       ;;
22044
22045     netbsd*)
22046       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22047         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22048       else
22049         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22050       fi
22051       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22052       hardcode_direct_GCJ=yes
22053       hardcode_shlibpath_var_GCJ=no
22054       ;;
22055
22056     newsos6)
22057       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22058       hardcode_direct_GCJ=yes
22059       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22060       hardcode_libdir_separator_GCJ=:
22061       hardcode_shlibpath_var_GCJ=no
22062       ;;
22063
22064     openbsd*)
22065       hardcode_direct_GCJ=yes
22066       hardcode_shlibpath_var_GCJ=no
22067       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22068         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22069         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22070         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22071         export_dynamic_flag_spec_GCJ='${wl}-E'
22072       else
22073        case $host_os in
22074          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22075            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22076            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22077            ;;
22078          *)
22079            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22080            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22081            ;;
22082        esac
22083       fi
22084       ;;
22085
22086     os2*)
22087       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22088       hardcode_minus_L_GCJ=yes
22089       allow_undefined_flag_GCJ=unsupported
22090       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'
22091       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22092       ;;
22093
22094     osf3*)
22095       if test "$GCC" = yes; then
22096         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22097         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'
22098       else
22099         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22100         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'
22101       fi
22102       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22103       hardcode_libdir_separator_GCJ=:
22104       ;;
22105
22106     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22107       if test "$GCC" = yes; then
22108         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22109         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'
22110         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22111       else
22112         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22113         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'
22114         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~
22115         $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'
22116
22117         # Both c and cxx compiler support -rpath directly
22118         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22119       fi
22120       hardcode_libdir_separator_GCJ=:
22121       ;;
22122
22123     sco3.2v5*)
22124       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22125       hardcode_shlibpath_var_GCJ=no
22126       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22127       runpath_var=LD_RUN_PATH
22128       hardcode_runpath_var=yes
22129       ;;
22130
22131     solaris*)
22132       no_undefined_flag_GCJ=' -z text'
22133       if test "$GCC" = yes; then
22134         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22135         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22136           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22137       else
22138         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22139         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22140         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22141       fi
22142       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22143       hardcode_shlibpath_var_GCJ=no
22144       case $host_os in
22145       solaris2.[0-5] | solaris2.[0-5].*) ;;
22146       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22147         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22148       esac
22149       link_all_deplibs_GCJ=yes
22150       ;;
22151
22152     sunos4*)
22153       if test "x$host_vendor" = xsequent; then
22154         # Use $CC to link under sequent, because it throws in some extra .o
22155         # files that make .init and .fini sections work.
22156         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22157       else
22158         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22159       fi
22160       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22161       hardcode_direct_GCJ=yes
22162       hardcode_minus_L_GCJ=yes
22163       hardcode_shlibpath_var_GCJ=no
22164       ;;
22165
22166     sysv4)
22167       case $host_vendor in
22168         sni)
22169           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22170           hardcode_direct_GCJ=yes # is this really true???
22171         ;;
22172         siemens)
22173           ## LD is ld it makes a PLAMLIB
22174           ## CC just makes a GrossModule.
22175           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22176           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22177           hardcode_direct_GCJ=no
22178         ;;
22179         motorola)
22180           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22181           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22182         ;;
22183       esac
22184       runpath_var='LD_RUN_PATH'
22185       hardcode_shlibpath_var_GCJ=no
22186       ;;
22187
22188     sysv4.3*)
22189       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22190       hardcode_shlibpath_var_GCJ=no
22191       export_dynamic_flag_spec_GCJ='-Bexport'
22192       ;;
22193
22194     sysv4*MP*)
22195       if test -d /usr/nec; then
22196         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197         hardcode_shlibpath_var_GCJ=no
22198         runpath_var=LD_RUN_PATH
22199         hardcode_runpath_var=yes
22200         ld_shlibs_GCJ=yes
22201       fi
22202       ;;
22203
22204     sysv4.2uw2*)
22205       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22206       hardcode_direct_GCJ=yes
22207       hardcode_minus_L_GCJ=no
22208       hardcode_shlibpath_var_GCJ=no
22209       hardcode_runpath_var=yes
22210       runpath_var=LD_RUN_PATH
22211       ;;
22212
22213    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22214       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22215       if test "$GCC" = yes; then
22216         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22217       else
22218         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22219       fi
22220       runpath_var='LD_RUN_PATH'
22221       hardcode_shlibpath_var_GCJ=no
22222       ;;
22223
22224     sysv5*)
22225       no_undefined_flag_GCJ=' -z text'
22226       # $CC -shared without GNU ld will not create a library from C++
22227       # object files and a static libstdc++, better avoid it by now
22228       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22229       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22230                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22231       hardcode_libdir_flag_spec_GCJ=
22232       hardcode_shlibpath_var_GCJ=no
22233       runpath_var='LD_RUN_PATH'
22234       ;;
22235
22236     uts4*)
22237       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22239       hardcode_shlibpath_var_GCJ=no
22240       ;;
22241
22242     *)
22243       ld_shlibs_GCJ=no
22244       ;;
22245     esac
22246   fi
22247
22248 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22249 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22250 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22251
22252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22253 if test "$GCC" = yes; then
22254   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22255 fi
22256
22257 #
22258 # Do we need to explicitly link libc?
22259 #
22260 case "x$archive_cmds_need_lc_GCJ" in
22261 x|xyes)
22262   # Assume -lc should be added
22263   archive_cmds_need_lc_GCJ=yes
22264
22265   if test "$enable_shared" = yes && test "$GCC" = yes; then
22266     case $archive_cmds_GCJ in
22267     *'~'*)
22268       # FIXME: we may have to deal with multi-command sequences.
22269       ;;
22270     '$CC '*)
22271       # Test whether the compiler implicitly links with -lc since on some
22272       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22273       # to ld, don't add -lc before -lgcc.
22274       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22275 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22276       $rm conftest*
22277       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22278
22279       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22280   (eval $ac_compile) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } 2>conftest.err; then
22284         soname=conftest
22285         lib=conftest
22286         libobjs=conftest.$ac_objext
22287         deplibs=
22288         wl=$lt_prog_compiler_wl_GCJ
22289         compiler_flags=-v
22290         linker_flags=-v
22291         verstring=
22292         output_objdir=.
22293         libname=conftest
22294         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22295         allow_undefined_flag_GCJ=
22296         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22297   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22298   ac_status=$?
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); }
22301         then
22302           archive_cmds_need_lc_GCJ=no
22303         else
22304           archive_cmds_need_lc_GCJ=yes
22305         fi
22306         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22307       else
22308         cat conftest.err 1>&5
22309       fi
22310       $rm conftest*
22311       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22312 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22313       ;;
22314     esac
22315   fi
22316   ;;
22317 esac
22318
22319 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22320 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22321 library_names_spec=
22322 libname_spec='lib$name'
22323 soname_spec=
22324 shrext_cmds=".so"
22325 postinstall_cmds=
22326 postuninstall_cmds=
22327 finish_cmds=
22328 finish_eval=
22329 shlibpath_var=
22330 shlibpath_overrides_runpath=unknown
22331 version_type=none
22332 dynamic_linker="$host_os ld.so"
22333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22334 if test "$GCC" = yes; then
22335   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22336   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22337     # if the path contains ";" then we assume it to be the separator
22338     # otherwise default to the standard path separator (i.e. ":") - it is
22339     # assumed that no part of a normal pathname contains ";" but that should
22340     # okay in the real world where ";" in dirpaths is itself problematic.
22341     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22342   else
22343     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22344   fi
22345 else
22346   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22347 fi
22348 need_lib_prefix=unknown
22349 hardcode_into_libs=no
22350
22351 # when you set need_version to no, make sure it does not cause -set_version
22352 # flags to be left without arguments
22353 need_version=unknown
22354
22355 case $host_os in
22356 aix3*)
22357   version_type=linux
22358   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22359   shlibpath_var=LIBPATH
22360
22361   # AIX 3 has no versioning support, so we append a major version to the name.
22362   soname_spec='${libname}${release}${shared_ext}$major'
22363   ;;
22364
22365 aix4* | aix5*)
22366   version_type=linux
22367   need_lib_prefix=no
22368   need_version=no
22369   hardcode_into_libs=yes
22370   if test "$host_cpu" = ia64; then
22371     # AIX 5 supports IA64
22372     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373     shlibpath_var=LD_LIBRARY_PATH
22374   else
22375     # With GCC up to 2.95.x, collect2 would create an import file
22376     # for dependence libraries.  The import file would start with
22377     # the line `#! .'.  This would cause the generated library to
22378     # depend on `.', always an invalid library.  This was fixed in
22379     # development snapshots of GCC prior to 3.0.
22380     case $host_os in
22381       aix4 | aix4.[01] | aix4.[01].*)
22382       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22383            echo ' yes '
22384            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22385         :
22386       else
22387         can_build_shared=no
22388       fi
22389       ;;
22390     esac
22391     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392     # soname into executable. Probably we can add versioning support to
22393     # collect2, so additional links can be useful in future.
22394     if test "$aix_use_runtimelinking" = yes; then
22395       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396       # instead of lib<name>.a to let people know that these are not
22397       # typical AIX shared libraries.
22398       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22399     else
22400       # We preserve .a as extension for shared libraries through AIX4.2
22401       # and later when we are not doing run time linking.
22402       library_names_spec='${libname}${release}.a $libname.a'
22403       soname_spec='${libname}${release}${shared_ext}$major'
22404     fi
22405     shlibpath_var=LIBPATH
22406   fi
22407   ;;
22408
22409 amigaos*)
22410   library_names_spec='$libname.ixlibrary $libname.a'
22411   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22412   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'
22413   ;;
22414
22415 beos*)
22416   library_names_spec='${libname}${shared_ext}'
22417   dynamic_linker="$host_os ld.so"
22418   shlibpath_var=LIBRARY_PATH
22419   ;;
22420
22421 bsdi[45]*)
22422   version_type=linux
22423   need_version=no
22424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425   soname_spec='${libname}${release}${shared_ext}$major'
22426   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22427   shlibpath_var=LD_LIBRARY_PATH
22428   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22429   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22430   # the default ld.so.conf also contains /usr/contrib/lib and
22431   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22432   # libtool to hard-code these into programs
22433   ;;
22434
22435 cygwin* | mingw* | pw32*)
22436   version_type=windows
22437   shrext_cmds=".dll"
22438   need_version=no
22439   need_lib_prefix=no
22440
22441   case $GCC,$host_os in
22442   yes,cygwin* | yes,mingw* | yes,pw32*)
22443     library_names_spec='$libname.dll.a'
22444     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22445     postinstall_cmds='base_file=`basename \${file}`~
22446       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22447       dldir=$destdir/`dirname \$dlpath`~
22448       test -d \$dldir || mkdir -p \$dldir~
22449       $install_prog $dir/$dlname \$dldir/$dlname'
22450     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22451       dlpath=$dir/\$dldll~
22452        $rm \$dlpath'
22453     shlibpath_overrides_runpath=yes
22454
22455     case $host_os in
22456     cygwin*)
22457       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22458       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22459       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22460       ;;
22461     mingw*)
22462       # MinGW DLLs use traditional 'lib' prefix
22463       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22465       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22466         # It is most probably a Windows format PATH printed by
22467         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22468         # path with ; separators, and with drive letters. We can handle the
22469         # drive letters (cygwin fileutils understands them), so leave them,
22470         # especially as we might pass files found there to a mingw objdump,
22471         # which wouldn't understand a cygwinified path. Ahh.
22472         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22473       else
22474         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22475       fi
22476       ;;
22477     pw32*)
22478       # pw32 DLLs use 'pw' prefix rather than 'lib'
22479       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22480       ;;
22481     esac
22482     ;;
22483
22484   *)
22485     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22486     ;;
22487   esac
22488   dynamic_linker='Win32 ld.exe'
22489   # FIXME: first we should search . and the directory the executable is in
22490   shlibpath_var=PATH
22491   ;;
22492
22493 darwin* | rhapsody*)
22494   dynamic_linker="$host_os dyld"
22495   version_type=darwin
22496   need_lib_prefix=no
22497   need_version=no
22498   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22499   soname_spec='${libname}${release}${major}$shared_ext'
22500   shlibpath_overrides_runpath=yes
22501   shlibpath_var=DYLD_LIBRARY_PATH
22502   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22503   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22504   if test "$GCC" = yes; then
22505     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"`
22506   else
22507     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22508   fi
22509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22510   ;;
22511
22512 dgux*)
22513   version_type=linux
22514   need_lib_prefix=no
22515   need_version=no
22516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22517   soname_spec='${libname}${release}${shared_ext}$major'
22518   shlibpath_var=LD_LIBRARY_PATH
22519   ;;
22520
22521 freebsd1*)
22522   dynamic_linker=no
22523   ;;
22524
22525 kfreebsd*-gnu)
22526   version_type=linux
22527   need_lib_prefix=no
22528   need_version=no
22529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22530   soname_spec='${libname}${release}${shared_ext}$major'
22531   shlibpath_var=LD_LIBRARY_PATH
22532   shlibpath_overrides_runpath=no
22533   hardcode_into_libs=yes
22534   dynamic_linker='GNU ld.so'
22535   ;;
22536
22537 freebsd*)
22538   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22539   version_type=freebsd-$objformat
22540   case $version_type in
22541     freebsd-elf*)
22542       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22543       need_version=no
22544       need_lib_prefix=no
22545       ;;
22546     freebsd-*)
22547       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22548       need_version=yes
22549       ;;
22550   esac
22551   shlibpath_var=LD_LIBRARY_PATH
22552   case $host_os in
22553   freebsd2*)
22554     shlibpath_overrides_runpath=yes
22555     ;;
22556   freebsd3.01* | freebsdelf3.01*)
22557     shlibpath_overrides_runpath=yes
22558     hardcode_into_libs=yes
22559     ;;
22560   *) # from 3.2 on
22561     shlibpath_overrides_runpath=no
22562     hardcode_into_libs=yes
22563     ;;
22564   esac
22565   ;;
22566
22567 gnu*)
22568   version_type=linux
22569   need_lib_prefix=no
22570   need_version=no
22571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22572   soname_spec='${libname}${release}${shared_ext}$major'
22573   shlibpath_var=LD_LIBRARY_PATH
22574   hardcode_into_libs=yes
22575   ;;
22576
22577 hpux9* | hpux10* | hpux11*)
22578   # Give a soname corresponding to the major version so that dld.sl refuses to
22579   # link against other versions.
22580   version_type=sunos
22581   need_lib_prefix=no
22582   need_version=no
22583   case "$host_cpu" in
22584   ia64*)
22585     shrext_cmds='.so'
22586     hardcode_into_libs=yes
22587     dynamic_linker="$host_os dld.so"
22588     shlibpath_var=LD_LIBRARY_PATH
22589     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591     soname_spec='${libname}${release}${shared_ext}$major'
22592     if test "X$HPUX_IA64_MODE" = X32; then
22593       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22594     else
22595       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22596     fi
22597     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22598     ;;
22599    hppa*64*)
22600      shrext_cmds='.sl'
22601      hardcode_into_libs=yes
22602      dynamic_linker="$host_os dld.sl"
22603      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22604      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22605      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22606      soname_spec='${libname}${release}${shared_ext}$major'
22607      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22608      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22609      ;;
22610    *)
22611     shrext_cmds='.sl'
22612     dynamic_linker="$host_os dld.sl"
22613     shlibpath_var=SHLIB_PATH
22614     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22616     soname_spec='${libname}${release}${shared_ext}$major'
22617     ;;
22618   esac
22619   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22620   postinstall_cmds='chmod 555 $lib'
22621   ;;
22622
22623 irix5* | irix6* | nonstopux*)
22624   case $host_os in
22625     nonstopux*) version_type=nonstopux ;;
22626     *)
22627         if test "$lt_cv_prog_gnu_ld" = yes; then
22628                 version_type=linux
22629         else
22630                 version_type=irix
22631         fi ;;
22632   esac
22633   need_lib_prefix=no
22634   need_version=no
22635   soname_spec='${libname}${release}${shared_ext}$major'
22636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22637   case $host_os in
22638   irix5* | nonstopux*)
22639     libsuff= shlibsuff=
22640     ;;
22641   *)
22642     case $LD in # libtool.m4 will add one of these switches to LD
22643     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22644       libsuff= shlibsuff= libmagic=32-bit;;
22645     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22646       libsuff=32 shlibsuff=N32 libmagic=N32;;
22647     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22648       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22649     *) libsuff= shlibsuff= libmagic=never-match;;
22650     esac
22651     ;;
22652   esac
22653   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22654   shlibpath_overrides_runpath=no
22655   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22656   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22657   hardcode_into_libs=yes
22658   ;;
22659
22660 # No shared lib support for Linux oldld, aout, or coff.
22661 linux*oldld* | linux*aout* | linux*coff*)
22662   dynamic_linker=no
22663   ;;
22664
22665 # This must be Linux ELF.
22666 linux*)
22667   version_type=linux
22668   need_lib_prefix=no
22669   need_version=no
22670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671   soname_spec='${libname}${release}${shared_ext}$major'
22672   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22673   shlibpath_var=LD_LIBRARY_PATH
22674   shlibpath_overrides_runpath=no
22675   # This implies no fast_install, which is unacceptable.
22676   # Some rework will be needed to allow for fast_install
22677   # before this can be enabled.
22678   hardcode_into_libs=yes
22679
22680   # Append ld.so.conf contents to the search path
22681   if test -f /etc/ld.so.conf; then
22682     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22683     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22684   fi
22685
22686   # We used to test for /lib/ld.so.1 and disable shared libraries on
22687   # powerpc, because MkLinux only supported shared libraries with the
22688   # GNU dynamic linker.  Since this was broken with cross compilers,
22689   # most powerpc-linux boxes support dynamic linking these days and
22690   # people can always --disable-shared, the test was removed, and we
22691   # assume the GNU/Linux dynamic linker is in use.
22692   dynamic_linker='GNU/Linux ld.so'
22693   ;;
22694
22695 knetbsd*-gnu)
22696   version_type=linux
22697   need_lib_prefix=no
22698   need_version=no
22699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22700   soname_spec='${libname}${release}${shared_ext}$major'
22701   shlibpath_var=LD_LIBRARY_PATH
22702   shlibpath_overrides_runpath=no
22703   hardcode_into_libs=yes
22704   dynamic_linker='GNU ld.so'
22705   ;;
22706
22707 netbsd*)
22708   version_type=sunos
22709   need_lib_prefix=no
22710   need_version=no
22711   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22713     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22714     dynamic_linker='NetBSD (a.out) ld.so'
22715   else
22716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22717     soname_spec='${libname}${release}${shared_ext}$major'
22718     dynamic_linker='NetBSD ld.elf_so'
22719   fi
22720   shlibpath_var=LD_LIBRARY_PATH
22721   shlibpath_overrides_runpath=yes
22722   hardcode_into_libs=yes
22723   ;;
22724
22725 newsos6)
22726   version_type=linux
22727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728   shlibpath_var=LD_LIBRARY_PATH
22729   shlibpath_overrides_runpath=yes
22730   ;;
22731
22732 nto-qnx*)
22733   version_type=linux
22734   need_lib_prefix=no
22735   need_version=no
22736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737   soname_spec='${libname}${release}${shared_ext}$major'
22738   shlibpath_var=LD_LIBRARY_PATH
22739   shlibpath_overrides_runpath=yes
22740   ;;
22741
22742 openbsd*)
22743   version_type=sunos
22744   need_lib_prefix=no
22745   need_version=no
22746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22747   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22748   shlibpath_var=LD_LIBRARY_PATH
22749   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22750     case $host_os in
22751       openbsd2.[89] | openbsd2.[89].*)
22752         shlibpath_overrides_runpath=no
22753         ;;
22754       *)
22755         shlibpath_overrides_runpath=yes
22756         ;;
22757       esac
22758   else
22759     shlibpath_overrides_runpath=yes
22760   fi
22761   ;;
22762
22763 os2*)
22764   libname_spec='$name'
22765   shrext_cmds=".dll"
22766   need_lib_prefix=no
22767   library_names_spec='$libname${shared_ext} $libname.a'
22768   dynamic_linker='OS/2 ld.exe'
22769   shlibpath_var=LIBPATH
22770   ;;
22771
22772 osf3* | osf4* | osf5*)
22773   version_type=osf
22774   need_lib_prefix=no
22775   need_version=no
22776   soname_spec='${libname}${release}${shared_ext}$major'
22777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22778   shlibpath_var=LD_LIBRARY_PATH
22779   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22780   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22781   ;;
22782
22783 sco3.2v5*)
22784   version_type=osf
22785   soname_spec='${libname}${release}${shared_ext}$major'
22786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787   shlibpath_var=LD_LIBRARY_PATH
22788   ;;
22789
22790 solaris*)
22791   version_type=linux
22792   need_lib_prefix=no
22793   need_version=no
22794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795   soname_spec='${libname}${release}${shared_ext}$major'
22796   shlibpath_var=LD_LIBRARY_PATH
22797   shlibpath_overrides_runpath=yes
22798   hardcode_into_libs=yes
22799   # ldd complains unless libraries are executable
22800   postinstall_cmds='chmod +x $lib'
22801   ;;
22802
22803 sunos4*)
22804   version_type=sunos
22805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22806   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22807   shlibpath_var=LD_LIBRARY_PATH
22808   shlibpath_overrides_runpath=yes
22809   if test "$with_gnu_ld" = yes; then
22810     need_lib_prefix=no
22811   fi
22812   need_version=yes
22813   ;;
22814
22815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22816   version_type=linux
22817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22818   soname_spec='${libname}${release}${shared_ext}$major'
22819   shlibpath_var=LD_LIBRARY_PATH
22820   case $host_vendor in
22821     sni)
22822       shlibpath_overrides_runpath=no
22823       need_lib_prefix=no
22824       export_dynamic_flag_spec='${wl}-Blargedynsym'
22825       runpath_var=LD_RUN_PATH
22826       ;;
22827     siemens)
22828       need_lib_prefix=no
22829       ;;
22830     motorola)
22831       need_lib_prefix=no
22832       need_version=no
22833       shlibpath_overrides_runpath=no
22834       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22835       ;;
22836   esac
22837   ;;
22838
22839 sysv4*MP*)
22840   if test -d /usr/nec ;then
22841     version_type=linux
22842     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22843     soname_spec='$libname${shared_ext}.$major'
22844     shlibpath_var=LD_LIBRARY_PATH
22845   fi
22846   ;;
22847
22848 uts4*)
22849   version_type=linux
22850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851   soname_spec='${libname}${release}${shared_ext}$major'
22852   shlibpath_var=LD_LIBRARY_PATH
22853   ;;
22854
22855 *)
22856   dynamic_linker=no
22857   ;;
22858 esac
22859 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22860 echo "${ECHO_T}$dynamic_linker" >&6
22861 test "$dynamic_linker" = no && can_build_shared=no
22862
22863 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22865 hardcode_action_GCJ=
22866 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22867    test -n "$runpath_var_GCJ" || \
22868    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22869
22870   # We can hardcode non-existant directories.
22871   if test "$hardcode_direct_GCJ" != no &&
22872      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22873      # have to relink, otherwise we might link with an installed library
22874      # when we should be linking with a yet-to-be-installed one
22875      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22876      test "$hardcode_minus_L_GCJ" != no; then
22877     # Linking always hardcodes the temporary library directory.
22878     hardcode_action_GCJ=relink
22879   else
22880     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22881     hardcode_action_GCJ=immediate
22882   fi
22883 else
22884   # We cannot hardcode anything, or else we can only hardcode existing
22885   # directories.
22886   hardcode_action_GCJ=unsupported
22887 fi
22888 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22889 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22890
22891 if test "$hardcode_action_GCJ" = relink; then
22892   # Fast installation is not supported
22893   enable_fast_install=no
22894 elif test "$shlibpath_overrides_runpath" = yes ||
22895      test "$enable_shared" = no; then
22896   # Fast installation is not necessary
22897   enable_fast_install=needless
22898 fi
22899
22900 striplib=
22901 old_striplib=
22902 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22903 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22904 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22905   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22906   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22907   echo "$as_me:$LINENO: result: yes" >&5
22908 echo "${ECHO_T}yes" >&6
22909 else
22910 # FIXME - insert some real tests, host_os isn't really good enough
22911   case $host_os in
22912    darwin*)
22913        if test -n "$STRIP" ; then
22914          striplib="$STRIP -x"
22915          echo "$as_me:$LINENO: result: yes" >&5
22916 echo "${ECHO_T}yes" >&6
22917        else
22918   echo "$as_me:$LINENO: result: no" >&5
22919 echo "${ECHO_T}no" >&6
22920 fi
22921        ;;
22922    *)
22923   echo "$as_me:$LINENO: result: no" >&5
22924 echo "${ECHO_T}no" >&6
22925     ;;
22926   esac
22927 fi
22928
22929 if test "x$enable_dlopen" != xyes; then
22930   enable_dlopen=unknown
22931   enable_dlopen_self=unknown
22932   enable_dlopen_self_static=unknown
22933 else
22934   lt_cv_dlopen=no
22935   lt_cv_dlopen_libs=
22936
22937   case $host_os in
22938   beos*)
22939     lt_cv_dlopen="load_add_on"
22940     lt_cv_dlopen_libs=
22941     lt_cv_dlopen_self=yes
22942     ;;
22943
22944   mingw* | pw32*)
22945     lt_cv_dlopen="LoadLibrary"
22946     lt_cv_dlopen_libs=
22947    ;;
22948
22949   cygwin*)
22950     lt_cv_dlopen="dlopen"
22951     lt_cv_dlopen_libs=
22952    ;;
22953
22954   darwin*)
22955   # if libdl is installed we need to link against it
22956     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22959   echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961   ac_check_lib_save_LIBS=$LIBS
22962 LIBS="-ldl  $LIBS"
22963 cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969
22970 /* Override any gcc2 internal prototype to avoid an error.  */
22971 #ifdef __cplusplus
22972 extern "C"
22973 #endif
22974 /* We use char because int might match the return type of a gcc2
22975    builtin and then its argument prototype would still apply.  */
22976 char dlopen ();
22977 int
22978 main ()
22979 {
22980 dlopen ();
22981   ;
22982   return 0;
22983 }
22984 _ACEOF
22985 rm -f conftest.$ac_objext conftest$ac_exeext
22986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22987   (eval $ac_link) 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } &&
22994          { ac_try='test -z "$ac_c_werror_flag"
22995                          || test ! -s conftest.err'
22996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997   (eval $ac_try) 2>&5
22998   ac_status=$?
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); }; } &&
23001          { ac_try='test -s conftest$ac_exeext'
23002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003   (eval $ac_try) 2>&5
23004   ac_status=$?
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); }; }; then
23007   ac_cv_lib_dl_dlopen=yes
23008 else
23009   echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23011
23012 ac_cv_lib_dl_dlopen=no
23013 fi
23014 rm -f conftest.err conftest.$ac_objext \
23015       conftest$ac_exeext conftest.$ac_ext
23016 LIBS=$ac_check_lib_save_LIBS
23017 fi
23018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23020 if test $ac_cv_lib_dl_dlopen = yes; then
23021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23022 else
23023
23024     lt_cv_dlopen="dyld"
23025     lt_cv_dlopen_libs=
23026     lt_cv_dlopen_self=yes
23027
23028 fi
23029
23030    ;;
23031
23032   *)
23033     echo "$as_me:$LINENO: checking for shl_load" >&5
23034 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23035 if test "${ac_cv_func_shl_load+set}" = set; then
23036   echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23038   cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h.  */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h.  */
23044 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23046 #define shl_load innocuous_shl_load
23047
23048 /* System header to define __stub macros and hopefully few prototypes,
23049     which can conflict with char shl_load (); below.
23050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23051     <limits.h> exists even on freestanding compilers.  */
23052
23053 #ifdef __STDC__
23054 # include <limits.h>
23055 #else
23056 # include <assert.h>
23057 #endif
23058
23059 #undef shl_load
23060
23061 /* Override any gcc2 internal prototype to avoid an error.  */
23062 #ifdef __cplusplus
23063 extern "C"
23064 {
23065 #endif
23066 /* We use char because int might match the return type of a gcc2
23067    builtin and then its argument prototype would still apply.  */
23068 char shl_load ();
23069 /* The GNU C library defines this for functions which it implements
23070     to always fail with ENOSYS.  Some functions are actually named
23071     something starting with __ and the normal name is an alias.  */
23072 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23073 choke me
23074 #else
23075 char (*f) () = shl_load;
23076 #endif
23077 #ifdef __cplusplus
23078 }
23079 #endif
23080
23081 int
23082 main ()
23083 {
23084 return f != shl_load;
23085   ;
23086   return 0;
23087 }
23088 _ACEOF
23089 rm -f conftest.$ac_objext conftest$ac_exeext
23090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23091   (eval $ac_link) 2>conftest.er1
23092   ac_status=$?
23093   grep -v '^ *+' conftest.er1 >conftest.err
23094   rm -f conftest.er1
23095   cat conftest.err >&5
23096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); } &&
23098          { ac_try='test -z "$ac_c_werror_flag"
23099                          || test ! -s conftest.err'
23100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101   (eval $ac_try) 2>&5
23102   ac_status=$?
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); }; } &&
23105          { ac_try='test -s conftest$ac_exeext'
23106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107   (eval $ac_try) 2>&5
23108   ac_status=$?
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); }; }; then
23111   ac_cv_func_shl_load=yes
23112 else
23113   echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23115
23116 ac_cv_func_shl_load=no
23117 fi
23118 rm -f conftest.err conftest.$ac_objext \
23119       conftest$ac_exeext conftest.$ac_ext
23120 fi
23121 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23122 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23123 if test $ac_cv_func_shl_load = yes; then
23124   lt_cv_dlopen="shl_load"
23125 else
23126   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23127 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23128 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23129   echo $ECHO_N "(cached) $ECHO_C" >&6
23130 else
23131   ac_check_lib_save_LIBS=$LIBS
23132 LIBS="-ldld  $LIBS"
23133 cat >conftest.$ac_ext <<_ACEOF
23134 /* confdefs.h.  */
23135 _ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h.  */
23139
23140 /* Override any gcc2 internal prototype to avoid an error.  */
23141 #ifdef __cplusplus
23142 extern "C"
23143 #endif
23144 /* We use char because int might match the return type of a gcc2
23145    builtin and then its argument prototype would still apply.  */
23146 char shl_load ();
23147 int
23148 main ()
23149 {
23150 shl_load ();
23151   ;
23152   return 0;
23153 }
23154 _ACEOF
23155 rm -f conftest.$ac_objext conftest$ac_exeext
23156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23157   (eval $ac_link) 2>conftest.er1
23158   ac_status=$?
23159   grep -v '^ *+' conftest.er1 >conftest.err
23160   rm -f conftest.er1
23161   cat conftest.err >&5
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); } &&
23164          { ac_try='test -z "$ac_c_werror_flag"
23165                          || test ! -s conftest.err'
23166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); }; } &&
23171          { ac_try='test -s conftest$ac_exeext'
23172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173   (eval $ac_try) 2>&5
23174   ac_status=$?
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); }; }; then
23177   ac_cv_lib_dld_shl_load=yes
23178 else
23179   echo "$as_me: failed program was:" >&5
23180 sed 's/^/| /' conftest.$ac_ext >&5
23181
23182 ac_cv_lib_dld_shl_load=no
23183 fi
23184 rm -f conftest.err conftest.$ac_objext \
23185       conftest$ac_exeext conftest.$ac_ext
23186 LIBS=$ac_check_lib_save_LIBS
23187 fi
23188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23189 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23190 if test $ac_cv_lib_dld_shl_load = yes; then
23191   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23192 else
23193   echo "$as_me:$LINENO: checking for dlopen" >&5
23194 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23195 if test "${ac_cv_func_dlopen+set}" = set; then
23196   echo $ECHO_N "(cached) $ECHO_C" >&6
23197 else
23198   cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23206 #define dlopen innocuous_dlopen
23207
23208 /* System header to define __stub macros and hopefully few prototypes,
23209     which can conflict with char dlopen (); below.
23210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23211     <limits.h> exists even on freestanding compilers.  */
23212
23213 #ifdef __STDC__
23214 # include <limits.h>
23215 #else
23216 # include <assert.h>
23217 #endif
23218
23219 #undef dlopen
23220
23221 /* Override any gcc2 internal prototype to avoid an error.  */
23222 #ifdef __cplusplus
23223 extern "C"
23224 {
23225 #endif
23226 /* We use char because int might match the return type of a gcc2
23227    builtin and then its argument prototype would still apply.  */
23228 char dlopen ();
23229 /* The GNU C library defines this for functions which it implements
23230     to always fail with ENOSYS.  Some functions are actually named
23231     something starting with __ and the normal name is an alias.  */
23232 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23233 choke me
23234 #else
23235 char (*f) () = dlopen;
23236 #endif
23237 #ifdef __cplusplus
23238 }
23239 #endif
23240
23241 int
23242 main ()
23243 {
23244 return f != dlopen;
23245   ;
23246   return 0;
23247 }
23248 _ACEOF
23249 rm -f conftest.$ac_objext conftest$ac_exeext
23250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23251   (eval $ac_link) 2>conftest.er1
23252   ac_status=$?
23253   grep -v '^ *+' conftest.er1 >conftest.err
23254   rm -f conftest.er1
23255   cat conftest.err >&5
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); } &&
23258          { ac_try='test -z "$ac_c_werror_flag"
23259                          || test ! -s conftest.err'
23260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261   (eval $ac_try) 2>&5
23262   ac_status=$?
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); }; } &&
23265          { ac_try='test -s conftest$ac_exeext'
23266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267   (eval $ac_try) 2>&5
23268   ac_status=$?
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); }; }; then
23271   ac_cv_func_dlopen=yes
23272 else
23273   echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23275
23276 ac_cv_func_dlopen=no
23277 fi
23278 rm -f conftest.err conftest.$ac_objext \
23279       conftest$ac_exeext conftest.$ac_ext
23280 fi
23281 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23282 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23283 if test $ac_cv_func_dlopen = yes; then
23284   lt_cv_dlopen="dlopen"
23285 else
23286   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23287 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23289   echo $ECHO_N "(cached) $ECHO_C" >&6
23290 else
23291   ac_check_lib_save_LIBS=$LIBS
23292 LIBS="-ldl  $LIBS"
23293 cat >conftest.$ac_ext <<_ACEOF
23294 /* confdefs.h.  */
23295 _ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h.  */
23299
23300 /* Override any gcc2 internal prototype to avoid an error.  */
23301 #ifdef __cplusplus
23302 extern "C"
23303 #endif
23304 /* We use char because int might match the return type of a gcc2
23305    builtin and then its argument prototype would still apply.  */
23306 char dlopen ();
23307 int
23308 main ()
23309 {
23310 dlopen ();
23311   ;
23312   return 0;
23313 }
23314 _ACEOF
23315 rm -f conftest.$ac_objext conftest$ac_exeext
23316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23317   (eval $ac_link) 2>conftest.er1
23318   ac_status=$?
23319   grep -v '^ *+' conftest.er1 >conftest.err
23320   rm -f conftest.er1
23321   cat conftest.err >&5
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); } &&
23324          { ac_try='test -z "$ac_c_werror_flag"
23325                          || test ! -s conftest.err'
23326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327   (eval $ac_try) 2>&5
23328   ac_status=$?
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); }; } &&
23331          { ac_try='test -s conftest$ac_exeext'
23332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333   (eval $ac_try) 2>&5
23334   ac_status=$?
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); }; }; then
23337   ac_cv_lib_dl_dlopen=yes
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342 ac_cv_lib_dl_dlopen=no
23343 fi
23344 rm -f conftest.err conftest.$ac_objext \
23345       conftest$ac_exeext conftest.$ac_ext
23346 LIBS=$ac_check_lib_save_LIBS
23347 fi
23348 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23350 if test $ac_cv_lib_dl_dlopen = yes; then
23351   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23352 else
23353   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23354 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23355 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23356   echo $ECHO_N "(cached) $ECHO_C" >&6
23357 else
23358   ac_check_lib_save_LIBS=$LIBS
23359 LIBS="-lsvld  $LIBS"
23360 cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366
23367 /* Override any gcc2 internal prototype to avoid an error.  */
23368 #ifdef __cplusplus
23369 extern "C"
23370 #endif
23371 /* We use char because int might match the return type of a gcc2
23372    builtin and then its argument prototype would still apply.  */
23373 char dlopen ();
23374 int
23375 main ()
23376 {
23377 dlopen ();
23378   ;
23379   return 0;
23380 }
23381 _ACEOF
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23384   (eval $ac_link) 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } &&
23391          { ac_try='test -z "$ac_c_werror_flag"
23392                          || test ! -s conftest.err'
23393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394   (eval $ac_try) 2>&5
23395   ac_status=$?
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); }; } &&
23398          { ac_try='test -s conftest$ac_exeext'
23399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400   (eval $ac_try) 2>&5
23401   ac_status=$?
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); }; }; then
23404   ac_cv_lib_svld_dlopen=yes
23405 else
23406   echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23408
23409 ac_cv_lib_svld_dlopen=no
23410 fi
23411 rm -f conftest.err conftest.$ac_objext \
23412       conftest$ac_exeext conftest.$ac_ext
23413 LIBS=$ac_check_lib_save_LIBS
23414 fi
23415 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23416 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23417 if test $ac_cv_lib_svld_dlopen = yes; then
23418   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23419 else
23420   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23421 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23423   echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425   ac_check_lib_save_LIBS=$LIBS
23426 LIBS="-ldld  $LIBS"
23427 cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h.  */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h.  */
23433
23434 /* Override any gcc2 internal prototype to avoid an error.  */
23435 #ifdef __cplusplus
23436 extern "C"
23437 #endif
23438 /* We use char because int might match the return type of a gcc2
23439    builtin and then its argument prototype would still apply.  */
23440 char dld_link ();
23441 int
23442 main ()
23443 {
23444 dld_link ();
23445   ;
23446   return 0;
23447 }
23448 _ACEOF
23449 rm -f conftest.$ac_objext conftest$ac_exeext
23450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23451   (eval $ac_link) 2>conftest.er1
23452   ac_status=$?
23453   grep -v '^ *+' conftest.er1 >conftest.err
23454   rm -f conftest.er1
23455   cat conftest.err >&5
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); } &&
23458          { ac_try='test -z "$ac_c_werror_flag"
23459                          || test ! -s conftest.err'
23460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461   (eval $ac_try) 2>&5
23462   ac_status=$?
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); }; } &&
23465          { ac_try='test -s conftest$ac_exeext'
23466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467   (eval $ac_try) 2>&5
23468   ac_status=$?
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); }; }; then
23471   ac_cv_lib_dld_dld_link=yes
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476 ac_cv_lib_dld_dld_link=no
23477 fi
23478 rm -f conftest.err conftest.$ac_objext \
23479       conftest$ac_exeext conftest.$ac_ext
23480 LIBS=$ac_check_lib_save_LIBS
23481 fi
23482 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23483 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23484 if test $ac_cv_lib_dld_dld_link = yes; then
23485   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23486 fi
23487
23488
23489 fi
23490
23491
23492 fi
23493
23494
23495 fi
23496
23497
23498 fi
23499
23500
23501 fi
23502
23503     ;;
23504   esac
23505
23506   if test "x$lt_cv_dlopen" != xno; then
23507     enable_dlopen=yes
23508   else
23509     enable_dlopen=no
23510   fi
23511
23512   case $lt_cv_dlopen in
23513   dlopen)
23514     save_CPPFLAGS="$CPPFLAGS"
23515     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23516
23517     save_LDFLAGS="$LDFLAGS"
23518     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23519
23520     save_LIBS="$LIBS"
23521     LIBS="$lt_cv_dlopen_libs $LIBS"
23522
23523     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23524 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23525 if test "${lt_cv_dlopen_self+set}" = set; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528           if test "$cross_compiling" = yes; then :
23529   lt_cv_dlopen_self=cross
23530 else
23531   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23532   lt_status=$lt_dlunknown
23533   cat > conftest.$ac_ext <<EOF
23534 #line 23534 "configure"
23535 #include "confdefs.h"
23536
23537 #if HAVE_DLFCN_H
23538 #include <dlfcn.h>
23539 #endif
23540
23541 #include <stdio.h>
23542
23543 #ifdef RTLD_GLOBAL
23544 #  define LT_DLGLOBAL           RTLD_GLOBAL
23545 #else
23546 #  ifdef DL_GLOBAL
23547 #    define LT_DLGLOBAL         DL_GLOBAL
23548 #  else
23549 #    define LT_DLGLOBAL         0
23550 #  endif
23551 #endif
23552
23553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23554    find out it does not work in some platform. */
23555 #ifndef LT_DLLAZY_OR_NOW
23556 #  ifdef RTLD_LAZY
23557 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23558 #  else
23559 #    ifdef DL_LAZY
23560 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23561 #    else
23562 #      ifdef RTLD_NOW
23563 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23564 #      else
23565 #        ifdef DL_NOW
23566 #          define LT_DLLAZY_OR_NOW      DL_NOW
23567 #        else
23568 #          define LT_DLLAZY_OR_NOW      0
23569 #        endif
23570 #      endif
23571 #    endif
23572 #  endif
23573 #endif
23574
23575 #ifdef __cplusplus
23576 extern "C" void exit (int);
23577 #endif
23578
23579 void fnord() { int i=42;}
23580 int main ()
23581 {
23582   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23583   int status = $lt_dlunknown;
23584
23585   if (self)
23586     {
23587       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23588       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23589       /* dlclose (self); */
23590     }
23591
23592     exit (status);
23593 }
23594 EOF
23595   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596   (eval $ac_link) 2>&5
23597   ac_status=$?
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23600     (./conftest; exit; ) 2>/dev/null
23601     lt_status=$?
23602     case x$lt_status in
23603       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23604       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23605       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23606     esac
23607   else :
23608     # compilation failed
23609     lt_cv_dlopen_self=no
23610   fi
23611 fi
23612 rm -fr conftest*
23613
23614
23615 fi
23616 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23617 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23618
23619     if test "x$lt_cv_dlopen_self" = xyes; then
23620       LDFLAGS="$LDFLAGS $link_static_flag"
23621       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23622 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23623 if test "${lt_cv_dlopen_self_static+set}" = set; then
23624   echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626           if test "$cross_compiling" = yes; then :
23627   lt_cv_dlopen_self_static=cross
23628 else
23629   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23630   lt_status=$lt_dlunknown
23631   cat > conftest.$ac_ext <<EOF
23632 #line 23632 "configure"
23633 #include "confdefs.h"
23634
23635 #if HAVE_DLFCN_H
23636 #include <dlfcn.h>
23637 #endif
23638
23639 #include <stdio.h>
23640
23641 #ifdef RTLD_GLOBAL
23642 #  define LT_DLGLOBAL           RTLD_GLOBAL
23643 #else
23644 #  ifdef DL_GLOBAL
23645 #    define LT_DLGLOBAL         DL_GLOBAL
23646 #  else
23647 #    define LT_DLGLOBAL         0
23648 #  endif
23649 #endif
23650
23651 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23652    find out it does not work in some platform. */
23653 #ifndef LT_DLLAZY_OR_NOW
23654 #  ifdef RTLD_LAZY
23655 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23656 #  else
23657 #    ifdef DL_LAZY
23658 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23659 #    else
23660 #      ifdef RTLD_NOW
23661 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23662 #      else
23663 #        ifdef DL_NOW
23664 #          define LT_DLLAZY_OR_NOW      DL_NOW
23665 #        else
23666 #          define LT_DLLAZY_OR_NOW      0
23667 #        endif
23668 #      endif
23669 #    endif
23670 #  endif
23671 #endif
23672
23673 #ifdef __cplusplus
23674 extern "C" void exit (int);
23675 #endif
23676
23677 void fnord() { int i=42;}
23678 int main ()
23679 {
23680   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23681   int status = $lt_dlunknown;
23682
23683   if (self)
23684     {
23685       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23686       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23687       /* dlclose (self); */
23688     }
23689
23690     exit (status);
23691 }
23692 EOF
23693   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23694   (eval $ac_link) 2>&5
23695   ac_status=$?
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23698     (./conftest; exit; ) 2>/dev/null
23699     lt_status=$?
23700     case x$lt_status in
23701       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23702       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23703       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23704     esac
23705   else :
23706     # compilation failed
23707     lt_cv_dlopen_self_static=no
23708   fi
23709 fi
23710 rm -fr conftest*
23711
23712
23713 fi
23714 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23715 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23716     fi
23717
23718     CPPFLAGS="$save_CPPFLAGS"
23719     LDFLAGS="$save_LDFLAGS"
23720     LIBS="$save_LIBS"
23721     ;;
23722   esac
23723
23724   case $lt_cv_dlopen_self in
23725   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23726   *) enable_dlopen_self=unknown ;;
23727   esac
23728
23729   case $lt_cv_dlopen_self_static in
23730   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23731   *) enable_dlopen_self_static=unknown ;;
23732   esac
23733 fi
23734
23735
23736 # The else clause should only fire when bootstrapping the
23737 # libtool distribution, otherwise you forgot to ship ltmain.sh
23738 # with your package, and you will get complaints that there are
23739 # no rules to generate ltmain.sh.
23740 if test -f "$ltmain"; then
23741   # See if we are running on zsh, and set the options which allow our commands through
23742   # without removal of \ escapes.
23743   if test -n "${ZSH_VERSION+set}" ; then
23744     setopt NO_GLOB_SUBST
23745   fi
23746   # Now quote all the things that may contain metacharacters while being
23747   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23748   # variables and quote the copies for generation of the libtool script.
23749   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23750     SED SHELL STRIP \
23751     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23752     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23753     deplibs_check_method reload_flag reload_cmds need_locks \
23754     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23755     lt_cv_sys_global_symbol_to_c_name_address \
23756     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23757     old_postinstall_cmds old_postuninstall_cmds \
23758     compiler_GCJ \
23759     CC_GCJ \
23760     LD_GCJ \
23761     lt_prog_compiler_wl_GCJ \
23762     lt_prog_compiler_pic_GCJ \
23763     lt_prog_compiler_static_GCJ \
23764     lt_prog_compiler_no_builtin_flag_GCJ \
23765     export_dynamic_flag_spec_GCJ \
23766     thread_safe_flag_spec_GCJ \
23767     whole_archive_flag_spec_GCJ \
23768     enable_shared_with_static_runtimes_GCJ \
23769     old_archive_cmds_GCJ \
23770     old_archive_from_new_cmds_GCJ \
23771     predep_objects_GCJ \
23772     postdep_objects_GCJ \
23773     predeps_GCJ \
23774     postdeps_GCJ \
23775     compiler_lib_search_path_GCJ \
23776     archive_cmds_GCJ \
23777     archive_expsym_cmds_GCJ \
23778     postinstall_cmds_GCJ \
23779     postuninstall_cmds_GCJ \
23780     old_archive_from_expsyms_cmds_GCJ \
23781     allow_undefined_flag_GCJ \
23782     no_undefined_flag_GCJ \
23783     export_symbols_cmds_GCJ \
23784     hardcode_libdir_flag_spec_GCJ \
23785     hardcode_libdir_flag_spec_ld_GCJ \
23786     hardcode_libdir_separator_GCJ \
23787     hardcode_automatic_GCJ \
23788     module_cmds_GCJ \
23789     module_expsym_cmds_GCJ \
23790     lt_cv_prog_compiler_c_o_GCJ \
23791     exclude_expsyms_GCJ \
23792     include_expsyms_GCJ; do
23793
23794     case $var in
23795     old_archive_cmds_GCJ | \
23796     old_archive_from_new_cmds_GCJ | \
23797     archive_cmds_GCJ | \
23798     archive_expsym_cmds_GCJ | \
23799     module_cmds_GCJ | \
23800     module_expsym_cmds_GCJ | \
23801     old_archive_from_expsyms_cmds_GCJ | \
23802     export_symbols_cmds_GCJ | \
23803     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23804     postinstall_cmds | postuninstall_cmds | \
23805     old_postinstall_cmds | old_postuninstall_cmds | \
23806     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23807       # Double-quote double-evaled strings.
23808       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23809       ;;
23810     *)
23811       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23812       ;;
23813     esac
23814   done
23815
23816   case $lt_echo in
23817   *'\$0 --fallback-echo"')
23818     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23819     ;;
23820   esac
23821
23822 cfgfile="$ofile"
23823
23824   cat <<__EOF__ >> "$cfgfile"
23825 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23826
23827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23828
23829 # Shell to use when invoking shell scripts.
23830 SHELL=$lt_SHELL
23831
23832 # Whether or not to build shared libraries.
23833 build_libtool_libs=$enable_shared
23834
23835 # Whether or not to build static libraries.
23836 build_old_libs=$enable_static
23837
23838 # Whether or not to add -lc for building shared libraries.
23839 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23840
23841 # Whether or not to disallow shared libs when runtime libs are static
23842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23843
23844 # Whether or not to optimize for fast installation.
23845 fast_install=$enable_fast_install
23846
23847 # The host system.
23848 host_alias=$host_alias
23849 host=$host
23850
23851 # An echo program that does not interpret backslashes.
23852 echo=$lt_echo
23853
23854 # The archiver.
23855 AR=$lt_AR
23856 AR_FLAGS=$lt_AR_FLAGS
23857
23858 # A C compiler.
23859 LTCC=$lt_LTCC
23860
23861 # A language-specific compiler.
23862 CC=$lt_compiler_GCJ
23863
23864 # Is the compiler the GNU C compiler?
23865 with_gcc=$GCC_GCJ
23866
23867 # An ERE matcher.
23868 EGREP=$lt_EGREP
23869
23870 # The linker used to build libraries.
23871 LD=$lt_LD_GCJ
23872
23873 # Whether we need hard or soft links.
23874 LN_S=$lt_LN_S
23875
23876 # A BSD-compatible nm program.
23877 NM=$lt_NM
23878
23879 # A symbol stripping program
23880 STRIP=$lt_STRIP
23881
23882 # Used to examine libraries when file_magic_cmd begins "file"
23883 MAGIC_CMD=$MAGIC_CMD
23884
23885 # Used on cygwin: DLL creation program.
23886 DLLTOOL="$DLLTOOL"
23887
23888 # Used on cygwin: object dumper.
23889 OBJDUMP="$OBJDUMP"
23890
23891 # Used on cygwin: assembler.
23892 AS="$AS"
23893
23894 # The name of the directory that contains temporary libtool files.
23895 objdir=$objdir
23896
23897 # How to create reloadable object files.
23898 reload_flag=$lt_reload_flag
23899 reload_cmds=$lt_reload_cmds
23900
23901 # How to pass a linker flag through the compiler.
23902 wl=$lt_lt_prog_compiler_wl_GCJ
23903
23904 # Object file suffix (normally "o").
23905 objext="$ac_objext"
23906
23907 # Old archive suffix (normally "a").
23908 libext="$libext"
23909
23910 # Shared library suffix (normally ".so").
23911 shrext_cmds='$shrext_cmds'
23912
23913 # Executable file suffix (normally "").
23914 exeext="$exeext"
23915
23916 # Additional compiler flags for building library objects.
23917 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23918 pic_mode=$pic_mode
23919
23920 # What is the maximum length of a command?
23921 max_cmd_len=$lt_cv_sys_max_cmd_len
23922
23923 # Does compiler simultaneously support -c and -o options?
23924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23925
23926 # Must we lock files when doing compilation ?
23927 need_locks=$lt_need_locks
23928
23929 # Do we need the lib prefix for modules?
23930 need_lib_prefix=$need_lib_prefix
23931
23932 # Do we need a version for libraries?
23933 need_version=$need_version
23934
23935 # Whether dlopen is supported.
23936 dlopen_support=$enable_dlopen
23937
23938 # Whether dlopen of programs is supported.
23939 dlopen_self=$enable_dlopen_self
23940
23941 # Whether dlopen of statically linked programs is supported.
23942 dlopen_self_static=$enable_dlopen_self_static
23943
23944 # Compiler flag to prevent dynamic linking.
23945 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23946
23947 # Compiler flag to turn off builtin functions.
23948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23949
23950 # Compiler flag to allow reflexive dlopens.
23951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23952
23953 # Compiler flag to generate shared objects directly from archives.
23954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23955
23956 # Compiler flag to generate thread-safe objects.
23957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23958
23959 # Library versioning type.
23960 version_type=$version_type
23961
23962 # Format of library name prefix.
23963 libname_spec=$lt_libname_spec
23964
23965 # List of archive names.  First name is the real one, the rest are links.
23966 # The last name is the one that the linker finds with -lNAME.
23967 library_names_spec=$lt_library_names_spec
23968
23969 # The coded name of the library, if different from the real name.
23970 soname_spec=$lt_soname_spec
23971
23972 # Commands used to build and install an old-style archive.
23973 RANLIB=$lt_RANLIB
23974 old_archive_cmds=$lt_old_archive_cmds_GCJ
23975 old_postinstall_cmds=$lt_old_postinstall_cmds
23976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23977
23978 # Create an old-style archive from a shared archive.
23979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23980
23981 # Create a temporary old-style archive to link instead of a shared archive.
23982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23983
23984 # Commands used to build and install a shared archive.
23985 archive_cmds=$lt_archive_cmds_GCJ
23986 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23987 postinstall_cmds=$lt_postinstall_cmds
23988 postuninstall_cmds=$lt_postuninstall_cmds
23989
23990 # Commands used to build a loadable module (assumed same as above if empty)
23991 module_cmds=$lt_module_cmds_GCJ
23992 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23993
23994 # Commands to strip libraries.
23995 old_striplib=$lt_old_striplib
23996 striplib=$lt_striplib
23997
23998 # Dependencies to place before the objects being linked to create a
23999 # shared library.
24000 predep_objects=$lt_predep_objects_GCJ
24001
24002 # Dependencies to place after the objects being linked to create a
24003 # shared library.
24004 postdep_objects=$lt_postdep_objects_GCJ
24005
24006 # Dependencies to place before the objects being linked to create a
24007 # shared library.
24008 predeps=$lt_predeps_GCJ
24009
24010 # Dependencies to place after the objects being linked to create a
24011 # shared library.
24012 postdeps=$lt_postdeps_GCJ
24013
24014 # The library search path used internally by the compiler when linking
24015 # a shared library.
24016 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24017
24018 # Method to check whether dependent libraries are shared objects.
24019 deplibs_check_method=$lt_deplibs_check_method
24020
24021 # Command to use when deplibs_check_method == file_magic.
24022 file_magic_cmd=$lt_file_magic_cmd
24023
24024 # Flag that allows shared libraries with undefined symbols to be built.
24025 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24026
24027 # Flag that forces no undefined symbols.
24028 no_undefined_flag=$lt_no_undefined_flag_GCJ
24029
24030 # Commands used to finish a libtool library installation in a directory.
24031 finish_cmds=$lt_finish_cmds
24032
24033 # Same as above, but a single script fragment to be evaled but not shown.
24034 finish_eval=$lt_finish_eval
24035
24036 # Take the output of nm and produce a listing of raw symbols and C names.
24037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24038
24039 # Transform the output of nm in a proper C declaration
24040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24041
24042 # Transform the output of nm in a C name address pair
24043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24044
24045 # This is the shared library runtime path variable.
24046 runpath_var=$runpath_var
24047
24048 # This is the shared library path variable.
24049 shlibpath_var=$shlibpath_var
24050
24051 # Is shlibpath searched before the hard-coded library search path?
24052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24053
24054 # How to hardcode a shared library path into an executable.
24055 hardcode_action=$hardcode_action_GCJ
24056
24057 # Whether we should hardcode library paths into libraries.
24058 hardcode_into_libs=$hardcode_into_libs
24059
24060 # Flag to hardcode \$libdir into a binary during linking.
24061 # This must work even if \$libdir does not exist.
24062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24063
24064 # If ld is used when linking, flag to hardcode \$libdir into
24065 # a binary during linking. This must work even if \$libdir does
24066 # not exist.
24067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24068
24069 # Whether we need a single -rpath flag with a separated argument.
24070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24071
24072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24073 # resulting binary.
24074 hardcode_direct=$hardcode_direct_GCJ
24075
24076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24077 # resulting binary.
24078 hardcode_minus_L=$hardcode_minus_L_GCJ
24079
24080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24081 # the resulting binary.
24082 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24083
24084 # Set to yes if building a shared library automatically hardcodes DIR into the library
24085 # and all subsequent libraries and executables linked against it.
24086 hardcode_automatic=$hardcode_automatic_GCJ
24087
24088 # Variables whose values should be saved in libtool wrapper scripts and
24089 # restored at relink time.
24090 variables_saved_for_relink="$variables_saved_for_relink"
24091
24092 # Whether libtool must link a program against all its dependency libraries.
24093 link_all_deplibs=$link_all_deplibs_GCJ
24094
24095 # Compile-time system search path for libraries
24096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24097
24098 # Run-time system search path for libraries
24099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24100
24101 # Fix the shell variable \$srcfile for the compiler.
24102 fix_srcfile_path="$fix_srcfile_path_GCJ"
24103
24104 # Set to yes if exported symbols are required.
24105 always_export_symbols=$always_export_symbols_GCJ
24106
24107 # The commands to list exported symbols.
24108 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24109
24110 # The commands to extract the exported symbol list from a shared archive.
24111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24112
24113 # Symbols that should not be listed in the preloaded symbols.
24114 exclude_expsyms=$lt_exclude_expsyms_GCJ
24115
24116 # Symbols that must always be exported.
24117 include_expsyms=$lt_include_expsyms_GCJ
24118
24119 # ### END LIBTOOL TAG CONFIG: $tagname
24120
24121 __EOF__
24122
24123
24124 else
24125   # If there is no Makefile yet, we rely on a make rule to execute
24126   # `config.status --recheck' to rerun these tests and create the
24127   # libtool script then.
24128   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24129   if test -f "$ltmain_in"; then
24130     test -f Makefile && make "$ltmain"
24131   fi
24132 fi
24133
24134
24135 ac_ext=c
24136 ac_cpp='$CPP $CPPFLAGS'
24137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24140
24141 CC="$lt_save_CC"
24142
24143         else
24144           tagname=""
24145         fi
24146         ;;
24147
24148       RC)
24149         ac_ext=c
24150 ac_cpp='$CPP $CPPFLAGS'
24151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24154
24155
24156 # Source file extension for RC test sources.
24157 ac_ext=rc
24158
24159 # Object file extension for compiled RC test sources.
24160 objext=o
24161 objext_RC=$objext
24162
24163 # Code to be used in simple compile tests
24164 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24165
24166 # Code to be used in simple link tests
24167 lt_simple_link_test_code="$lt_simple_compile_test_code"
24168
24169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24170
24171 # If no C compiler was specified, use CC.
24172 LTCC=${LTCC-"$CC"}
24173
24174 # Allow CC to be a program name with arguments.
24175 compiler=$CC
24176
24177
24178 # Allow CC to be a program name with arguments.
24179 lt_save_CC="$CC"
24180 CC=${RC-"windres"}
24181 compiler=$CC
24182 compiler_RC=$CC
24183 lt_cv_prog_compiler_c_o_RC=yes
24184
24185 # The else clause should only fire when bootstrapping the
24186 # libtool distribution, otherwise you forgot to ship ltmain.sh
24187 # with your package, and you will get complaints that there are
24188 # no rules to generate ltmain.sh.
24189 if test -f "$ltmain"; then
24190   # See if we are running on zsh, and set the options which allow our commands through
24191   # without removal of \ escapes.
24192   if test -n "${ZSH_VERSION+set}" ; then
24193     setopt NO_GLOB_SUBST
24194   fi
24195   # Now quote all the things that may contain metacharacters while being
24196   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24197   # variables and quote the copies for generation of the libtool script.
24198   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24199     SED SHELL STRIP \
24200     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24201     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24202     deplibs_check_method reload_flag reload_cmds need_locks \
24203     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24204     lt_cv_sys_global_symbol_to_c_name_address \
24205     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24206     old_postinstall_cmds old_postuninstall_cmds \
24207     compiler_RC \
24208     CC_RC \
24209     LD_RC \
24210     lt_prog_compiler_wl_RC \
24211     lt_prog_compiler_pic_RC \
24212     lt_prog_compiler_static_RC \
24213     lt_prog_compiler_no_builtin_flag_RC \
24214     export_dynamic_flag_spec_RC \
24215     thread_safe_flag_spec_RC \
24216     whole_archive_flag_spec_RC \
24217     enable_shared_with_static_runtimes_RC \
24218     old_archive_cmds_RC \
24219     old_archive_from_new_cmds_RC \
24220     predep_objects_RC \
24221     postdep_objects_RC \
24222     predeps_RC \
24223     postdeps_RC \
24224     compiler_lib_search_path_RC \
24225     archive_cmds_RC \
24226     archive_expsym_cmds_RC \
24227     postinstall_cmds_RC \
24228     postuninstall_cmds_RC \
24229     old_archive_from_expsyms_cmds_RC \
24230     allow_undefined_flag_RC \
24231     no_undefined_flag_RC \
24232     export_symbols_cmds_RC \
24233     hardcode_libdir_flag_spec_RC \
24234     hardcode_libdir_flag_spec_ld_RC \
24235     hardcode_libdir_separator_RC \
24236     hardcode_automatic_RC \
24237     module_cmds_RC \
24238     module_expsym_cmds_RC \
24239     lt_cv_prog_compiler_c_o_RC \
24240     exclude_expsyms_RC \
24241     include_expsyms_RC; do
24242
24243     case $var in
24244     old_archive_cmds_RC | \
24245     old_archive_from_new_cmds_RC | \
24246     archive_cmds_RC | \
24247     archive_expsym_cmds_RC | \
24248     module_cmds_RC | \
24249     module_expsym_cmds_RC | \
24250     old_archive_from_expsyms_cmds_RC | \
24251     export_symbols_cmds_RC | \
24252     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24253     postinstall_cmds | postuninstall_cmds | \
24254     old_postinstall_cmds | old_postuninstall_cmds | \
24255     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24256       # Double-quote double-evaled strings.
24257       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24258       ;;
24259     *)
24260       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24261       ;;
24262     esac
24263   done
24264
24265   case $lt_echo in
24266   *'\$0 --fallback-echo"')
24267     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24268     ;;
24269   esac
24270
24271 cfgfile="$ofile"
24272
24273   cat <<__EOF__ >> "$cfgfile"
24274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24275
24276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24277
24278 # Shell to use when invoking shell scripts.
24279 SHELL=$lt_SHELL
24280
24281 # Whether or not to build shared libraries.
24282 build_libtool_libs=$enable_shared
24283
24284 # Whether or not to build static libraries.
24285 build_old_libs=$enable_static
24286
24287 # Whether or not to add -lc for building shared libraries.
24288 build_libtool_need_lc=$archive_cmds_need_lc_RC
24289
24290 # Whether or not to disallow shared libs when runtime libs are static
24291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24292
24293 # Whether or not to optimize for fast installation.
24294 fast_install=$enable_fast_install
24295
24296 # The host system.
24297 host_alias=$host_alias
24298 host=$host
24299
24300 # An echo program that does not interpret backslashes.
24301 echo=$lt_echo
24302
24303 # The archiver.
24304 AR=$lt_AR
24305 AR_FLAGS=$lt_AR_FLAGS
24306
24307 # A C compiler.
24308 LTCC=$lt_LTCC
24309
24310 # A language-specific compiler.
24311 CC=$lt_compiler_RC
24312
24313 # Is the compiler the GNU C compiler?
24314 with_gcc=$GCC_RC
24315
24316 # An ERE matcher.
24317 EGREP=$lt_EGREP
24318
24319 # The linker used to build libraries.
24320 LD=$lt_LD_RC
24321
24322 # Whether we need hard or soft links.
24323 LN_S=$lt_LN_S
24324
24325 # A BSD-compatible nm program.
24326 NM=$lt_NM
24327
24328 # A symbol stripping program
24329 STRIP=$lt_STRIP
24330
24331 # Used to examine libraries when file_magic_cmd begins "file"
24332 MAGIC_CMD=$MAGIC_CMD
24333
24334 # Used on cygwin: DLL creation program.
24335 DLLTOOL="$DLLTOOL"
24336
24337 # Used on cygwin: object dumper.
24338 OBJDUMP="$OBJDUMP"
24339
24340 # Used on cygwin: assembler.
24341 AS="$AS"
24342
24343 # The name of the directory that contains temporary libtool files.
24344 objdir=$objdir
24345
24346 # How to create reloadable object files.
24347 reload_flag=$lt_reload_flag
24348 reload_cmds=$lt_reload_cmds
24349
24350 # How to pass a linker flag through the compiler.
24351 wl=$lt_lt_prog_compiler_wl_RC
24352
24353 # Object file suffix (normally "o").
24354 objext="$ac_objext"
24355
24356 # Old archive suffix (normally "a").
24357 libext="$libext"
24358
24359 # Shared library suffix (normally ".so").
24360 shrext_cmds='$shrext_cmds'
24361
24362 # Executable file suffix (normally "").
24363 exeext="$exeext"
24364
24365 # Additional compiler flags for building library objects.
24366 pic_flag=$lt_lt_prog_compiler_pic_RC
24367 pic_mode=$pic_mode
24368
24369 # What is the maximum length of a command?
24370 max_cmd_len=$lt_cv_sys_max_cmd_len
24371
24372 # Does compiler simultaneously support -c and -o options?
24373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24374
24375 # Must we lock files when doing compilation ?
24376 need_locks=$lt_need_locks
24377
24378 # Do we need the lib prefix for modules?
24379 need_lib_prefix=$need_lib_prefix
24380
24381 # Do we need a version for libraries?
24382 need_version=$need_version
24383
24384 # Whether dlopen is supported.
24385 dlopen_support=$enable_dlopen
24386
24387 # Whether dlopen of programs is supported.
24388 dlopen_self=$enable_dlopen_self
24389
24390 # Whether dlopen of statically linked programs is supported.
24391 dlopen_self_static=$enable_dlopen_self_static
24392
24393 # Compiler flag to prevent dynamic linking.
24394 link_static_flag=$lt_lt_prog_compiler_static_RC
24395
24396 # Compiler flag to turn off builtin functions.
24397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24398
24399 # Compiler flag to allow reflexive dlopens.
24400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24401
24402 # Compiler flag to generate shared objects directly from archives.
24403 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24404
24405 # Compiler flag to generate thread-safe objects.
24406 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24407
24408 # Library versioning type.
24409 version_type=$version_type
24410
24411 # Format of library name prefix.
24412 libname_spec=$lt_libname_spec
24413
24414 # List of archive names.  First name is the real one, the rest are links.
24415 # The last name is the one that the linker finds with -lNAME.
24416 library_names_spec=$lt_library_names_spec
24417
24418 # The coded name of the library, if different from the real name.
24419 soname_spec=$lt_soname_spec
24420
24421 # Commands used to build and install an old-style archive.
24422 RANLIB=$lt_RANLIB
24423 old_archive_cmds=$lt_old_archive_cmds_RC
24424 old_postinstall_cmds=$lt_old_postinstall_cmds
24425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24426
24427 # Create an old-style archive from a shared archive.
24428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24429
24430 # Create a temporary old-style archive to link instead of a shared archive.
24431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24432
24433 # Commands used to build and install a shared archive.
24434 archive_cmds=$lt_archive_cmds_RC
24435 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24436 postinstall_cmds=$lt_postinstall_cmds
24437 postuninstall_cmds=$lt_postuninstall_cmds
24438
24439 # Commands used to build a loadable module (assumed same as above if empty)
24440 module_cmds=$lt_module_cmds_RC
24441 module_expsym_cmds=$lt_module_expsym_cmds_RC
24442
24443 # Commands to strip libraries.
24444 old_striplib=$lt_old_striplib
24445 striplib=$lt_striplib
24446
24447 # Dependencies to place before the objects being linked to create a
24448 # shared library.
24449 predep_objects=$lt_predep_objects_RC
24450
24451 # Dependencies to place after the objects being linked to create a
24452 # shared library.
24453 postdep_objects=$lt_postdep_objects_RC
24454
24455 # Dependencies to place before the objects being linked to create a
24456 # shared library.
24457 predeps=$lt_predeps_RC
24458
24459 # Dependencies to place after the objects being linked to create a
24460 # shared library.
24461 postdeps=$lt_postdeps_RC
24462
24463 # The library search path used internally by the compiler when linking
24464 # a shared library.
24465 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24466
24467 # Method to check whether dependent libraries are shared objects.
24468 deplibs_check_method=$lt_deplibs_check_method
24469
24470 # Command to use when deplibs_check_method == file_magic.
24471 file_magic_cmd=$lt_file_magic_cmd
24472
24473 # Flag that allows shared libraries with undefined symbols to be built.
24474 allow_undefined_flag=$lt_allow_undefined_flag_RC
24475
24476 # Flag that forces no undefined symbols.
24477 no_undefined_flag=$lt_no_undefined_flag_RC
24478
24479 # Commands used to finish a libtool library installation in a directory.
24480 finish_cmds=$lt_finish_cmds
24481
24482 # Same as above, but a single script fragment to be evaled but not shown.
24483 finish_eval=$lt_finish_eval
24484
24485 # Take the output of nm and produce a listing of raw symbols and C names.
24486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24487
24488 # Transform the output of nm in a proper C declaration
24489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24490
24491 # Transform the output of nm in a C name address pair
24492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24493
24494 # This is the shared library runtime path variable.
24495 runpath_var=$runpath_var
24496
24497 # This is the shared library path variable.
24498 shlibpath_var=$shlibpath_var
24499
24500 # Is shlibpath searched before the hard-coded library search path?
24501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24502
24503 # How to hardcode a shared library path into an executable.
24504 hardcode_action=$hardcode_action_RC
24505
24506 # Whether we should hardcode library paths into libraries.
24507 hardcode_into_libs=$hardcode_into_libs
24508
24509 # Flag to hardcode \$libdir into a binary during linking.
24510 # This must work even if \$libdir does not exist.
24511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24512
24513 # If ld is used when linking, flag to hardcode \$libdir into
24514 # a binary during linking. This must work even if \$libdir does
24515 # not exist.
24516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24517
24518 # Whether we need a single -rpath flag with a separated argument.
24519 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24520
24521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24522 # resulting binary.
24523 hardcode_direct=$hardcode_direct_RC
24524
24525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24526 # resulting binary.
24527 hardcode_minus_L=$hardcode_minus_L_RC
24528
24529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24530 # the resulting binary.
24531 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24532
24533 # Set to yes if building a shared library automatically hardcodes DIR into the library
24534 # and all subsequent libraries and executables linked against it.
24535 hardcode_automatic=$hardcode_automatic_RC
24536
24537 # Variables whose values should be saved in libtool wrapper scripts and
24538 # restored at relink time.
24539 variables_saved_for_relink="$variables_saved_for_relink"
24540
24541 # Whether libtool must link a program against all its dependency libraries.
24542 link_all_deplibs=$link_all_deplibs_RC
24543
24544 # Compile-time system search path for libraries
24545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24546
24547 # Run-time system search path for libraries
24548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24549
24550 # Fix the shell variable \$srcfile for the compiler.
24551 fix_srcfile_path="$fix_srcfile_path_RC"
24552
24553 # Set to yes if exported symbols are required.
24554 always_export_symbols=$always_export_symbols_RC
24555
24556 # The commands to list exported symbols.
24557 export_symbols_cmds=$lt_export_symbols_cmds_RC
24558
24559 # The commands to extract the exported symbol list from a shared archive.
24560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24561
24562 # Symbols that should not be listed in the preloaded symbols.
24563 exclude_expsyms=$lt_exclude_expsyms_RC
24564
24565 # Symbols that must always be exported.
24566 include_expsyms=$lt_include_expsyms_RC
24567
24568 # ### END LIBTOOL TAG CONFIG: $tagname
24569
24570 __EOF__
24571
24572
24573 else
24574   # If there is no Makefile yet, we rely on a make rule to execute
24575   # `config.status --recheck' to rerun these tests and create the
24576   # libtool script then.
24577   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24578   if test -f "$ltmain_in"; then
24579     test -f Makefile && make "$ltmain"
24580   fi
24581 fi
24582
24583
24584 ac_ext=c
24585 ac_cpp='$CPP $CPPFLAGS'
24586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24589
24590 CC="$lt_save_CC"
24591
24592         ;;
24593
24594       *)
24595         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24596 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24597    { (exit 1); exit 1; }; }
24598         ;;
24599       esac
24600
24601       # Append the new tag name to the list of available tags.
24602       if test -n "$tagname" ; then
24603       available_tags="$available_tags $tagname"
24604     fi
24605     fi
24606   done
24607   IFS="$lt_save_ifs"
24608
24609   # Now substitute the updated list of available tags.
24610   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24611     mv "${ofile}T" "$ofile"
24612     chmod +x "$ofile"
24613   else
24614     rm -f "${ofile}T"
24615     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24616 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24617    { (exit 1); exit 1; }; }
24618   fi
24619 fi
24620
24621
24622
24623 # This can be used to rebuild libtool when needed
24624 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24625
24626 # Always use our own libtool.
24627 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24628
24629 # Prevent multiple expansion
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651 if test "$lt_cv_dlopen_self" = "yes" ; then
24652
24653 cat >>confdefs.h <<\_ACEOF
24654 #define CAN_DLOPEN_SELF 1
24655 _ACEOF
24656
24657 fi
24658
24659 etags_version=`$ETAGS --version 2>&1`
24660 case "$etags_version" in
24661         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24662         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24663         *) ETAGSFLAGS="" ;;
24664 esac
24665 ETAGSFLAGS=$ETAGSFLAGS
24666
24667
24668 if test "$WITH_LLVMGCCDIR" = "default" ; then
24669   LLVMGCC="llvm-gcc${EXEEXT}"
24670   LLVMGXX="llvm-g++${EXEEXT}"
24671   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24672 set dummy $LLVMGCC; ac_word=$2
24673 echo "$as_me:$LINENO: checking for $ac_word" >&5
24674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24675 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24676   echo $ECHO_N "(cached) $ECHO_C" >&6
24677 else
24678   case $LLVMGCC in
24679   [\\/]* | ?:[\\/]*)
24680   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24681   ;;
24682   *)
24683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24684 for as_dir in $PATH
24685 do
24686   IFS=$as_save_IFS
24687   test -z "$as_dir" && as_dir=.
24688   for ac_exec_ext in '' $ac_executable_extensions; do
24689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24690     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24692     break 2
24693   fi
24694 done
24695 done
24696
24697   ;;
24698 esac
24699 fi
24700 LLVMGCC=$ac_cv_path_LLVMGCC
24701
24702 if test -n "$LLVMGCC"; then
24703   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24704 echo "${ECHO_T}$LLVMGCC" >&6
24705 else
24706   echo "$as_me:$LINENO: result: no" >&5
24707 echo "${ECHO_T}no" >&6
24708 fi
24709
24710   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24711 set dummy $LLVMGXX; ac_word=$2
24712 echo "$as_me:$LINENO: checking for $ac_word" >&5
24713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24714 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24715   echo $ECHO_N "(cached) $ECHO_C" >&6
24716 else
24717   case $LLVMGXX in
24718   [\\/]* | ?:[\\/]*)
24719   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24720   ;;
24721   *)
24722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24723 for as_dir in $PATH
24724 do
24725   IFS=$as_save_IFS
24726   test -z "$as_dir" && as_dir=.
24727   for ac_exec_ext in '' $ac_executable_extensions; do
24728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24729     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24731     break 2
24732   fi
24733 done
24734 done
24735
24736   ;;
24737 esac
24738 fi
24739 LLVMGXX=$ac_cv_path_LLVMGXX
24740
24741 if test -n "$LLVMGXX"; then
24742   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24743 echo "${ECHO_T}$LLVMGXX" >&6
24744 else
24745   echo "$as_me:$LINENO: result: no" >&5
24746 echo "${ECHO_T}no" >&6
24747 fi
24748
24749 else
24750   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24751   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24752   LLVMGCC=$LLVMGCC
24753
24754   LLVMGXX=$LLVMGXX
24755
24756 fi
24757
24758 echo "$as_me:$LINENO: checking tool compatibility" >&5
24759 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24760
24761 ICC=no
24762 IXX=no
24763 case $CC in
24764   icc*|icpc*)
24765     ICC=yes
24766     IXX=yes
24767     ;;
24768    *)
24769     ;;
24770 esac
24771
24772 if test "$GCC" != "yes" && test "$ICC" != "yes"
24773 then
24774   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24775 echo "$as_me: error: gcc|icc required but not found" >&2;}
24776    { (exit 1); exit 1; }; }
24777 fi
24778
24779 if test "$GXX" != "yes" && test "$IXX" != "yes"
24780 then
24781   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24782 echo "$as_me: error: g++|icc required but not found" >&2;}
24783    { (exit 1); exit 1; }; }
24784 fi
24785
24786 if test "$GCC" = "yes"
24787 then
24788   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24789   if test "$gccmajor" -lt "3"
24790   then
24791     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24792 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24793    { (exit 1); exit 1; }; }
24794   fi
24795 fi
24796
24797 if test -z "$llvm_cv_gnu_make_command"
24798 then
24799   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24800 echo "$as_me: error: GNU Make required but not found" >&2;}
24801    { (exit 1); exit 1; }; }
24802 fi
24803
24804 echo "$as_me:$LINENO: result: ok" >&5
24805 echo "${ECHO_T}ok" >&6
24806
24807
24808
24809 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24810 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24811 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24812   echo $ECHO_N "(cached) $ECHO_C" >&6
24813 else
24814   ac_check_lib_save_LIBS=$LIBS
24815 LIBS="-lelf  $LIBS"
24816 cat >conftest.$ac_ext <<_ACEOF
24817 /* confdefs.h.  */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h.  */
24822
24823 /* Override any gcc2 internal prototype to avoid an error.  */
24824 #ifdef __cplusplus
24825 extern "C"
24826 #endif
24827 /* We use char because int might match the return type of a gcc2
24828    builtin and then its argument prototype would still apply.  */
24829 char elf_begin ();
24830 int
24831 main ()
24832 {
24833 elf_begin ();
24834   ;
24835   return 0;
24836 }
24837 _ACEOF
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24840   (eval $ac_link) 2>conftest.er1
24841   ac_status=$?
24842   grep -v '^ *+' conftest.er1 >conftest.err
24843   rm -f conftest.er1
24844   cat conftest.err >&5
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); } &&
24847          { ac_try='test -z "$ac_c_werror_flag"
24848                          || test ! -s conftest.err'
24849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850   (eval $ac_try) 2>&5
24851   ac_status=$?
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); }; } &&
24854          { ac_try='test -s conftest$ac_exeext'
24855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856   (eval $ac_try) 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); }; }; then
24860   ac_cv_lib_elf_elf_begin=yes
24861 else
24862   echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865 ac_cv_lib_elf_elf_begin=no
24866 fi
24867 rm -f conftest.err conftest.$ac_objext \
24868       conftest$ac_exeext conftest.$ac_ext
24869 LIBS=$ac_check_lib_save_LIBS
24870 fi
24871 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24872 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24873 if test $ac_cv_lib_elf_elf_begin = yes; then
24874   cat >>confdefs.h <<_ACEOF
24875 #define HAVE_LIBELF 1
24876 _ACEOF
24877
24878   LIBS="-lelf $LIBS"
24879
24880 fi
24881
24882
24883
24884 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24885 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24886 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24887   echo $ECHO_N "(cached) $ECHO_C" >&6
24888 else
24889   ac_func_search_save_LIBS=$LIBS
24890 ac_cv_search_lt_dlopen=no
24891 cat >conftest.$ac_ext <<_ACEOF
24892 /* confdefs.h.  */
24893 _ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h.  */
24897
24898 /* Override any gcc2 internal prototype to avoid an error.  */
24899 #ifdef __cplusplus
24900 extern "C"
24901 #endif
24902 /* We use char because int might match the return type of a gcc2
24903    builtin and then its argument prototype would still apply.  */
24904 char lt_dlopen ();
24905 int
24906 main ()
24907 {
24908 lt_dlopen ();
24909   ;
24910   return 0;
24911 }
24912 _ACEOF
24913 rm -f conftest.$ac_objext conftest$ac_exeext
24914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24915   (eval $ac_link) 2>conftest.er1
24916   ac_status=$?
24917   grep -v '^ *+' conftest.er1 >conftest.err
24918   rm -f conftest.er1
24919   cat conftest.err >&5
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); } &&
24922          { ac_try='test -z "$ac_c_werror_flag"
24923                          || test ! -s conftest.err'
24924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925   (eval $ac_try) 2>&5
24926   ac_status=$?
24927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928   (exit $ac_status); }; } &&
24929          { ac_try='test -s conftest$ac_exeext'
24930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931   (eval $ac_try) 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); }; }; then
24935   ac_cv_search_lt_dlopen="none required"
24936 else
24937   echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24939
24940 fi
24941 rm -f conftest.err conftest.$ac_objext \
24942       conftest$ac_exeext conftest.$ac_ext
24943 if test "$ac_cv_search_lt_dlopen" = no; then
24944   for ac_lib in ltdl; do
24945     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24946     cat >conftest.$ac_ext <<_ACEOF
24947 /* confdefs.h.  */
24948 _ACEOF
24949 cat confdefs.h >>conftest.$ac_ext
24950 cat >>conftest.$ac_ext <<_ACEOF
24951 /* end confdefs.h.  */
24952
24953 /* Override any gcc2 internal prototype to avoid an error.  */
24954 #ifdef __cplusplus
24955 extern "C"
24956 #endif
24957 /* We use char because int might match the return type of a gcc2
24958    builtin and then its argument prototype would still apply.  */
24959 char lt_dlopen ();
24960 int
24961 main ()
24962 {
24963 lt_dlopen ();
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext conftest$ac_exeext
24969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24970   (eval $ac_link) 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } &&
24977          { ac_try='test -z "$ac_c_werror_flag"
24978                          || test ! -s conftest.err'
24979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980   (eval $ac_try) 2>&5
24981   ac_status=$?
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); }; } &&
24984          { ac_try='test -s conftest$ac_exeext'
24985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986   (eval $ac_try) 2>&5
24987   ac_status=$?
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); }; }; then
24990   ac_cv_search_lt_dlopen="-l$ac_lib"
24991 break
24992 else
24993   echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24995
24996 fi
24997 rm -f conftest.err conftest.$ac_objext \
24998       conftest$ac_exeext conftest.$ac_ext
24999   done
25000 fi
25001 LIBS=$ac_func_search_save_LIBS
25002 fi
25003 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25004 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25005 if test "$ac_cv_search_lt_dlopen" != no; then
25006   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25007
25008 cat >>confdefs.h <<\_ACEOF
25009 #define HAVE_LT_DLOPEN 1
25010 _ACEOF
25011
25012 else
25013   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25014                            not be available" >&5
25015 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25016                            not be available" >&2;}
25017 fi
25018
25019
25020 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25021 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25022 if test "${ac_cv_search_dlopen+set}" = set; then
25023   echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025   ac_func_search_save_LIBS=$LIBS
25026 ac_cv_search_dlopen=no
25027 cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033
25034 /* Override any gcc2 internal prototype to avoid an error.  */
25035 #ifdef __cplusplus
25036 extern "C"
25037 #endif
25038 /* We use char because int might match the return type of a gcc2
25039    builtin and then its argument prototype would still apply.  */
25040 char dlopen ();
25041 int
25042 main ()
25043 {
25044 dlopen ();
25045   ;
25046   return 0;
25047 }
25048 _ACEOF
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25051   (eval $ac_link) 2>conftest.er1
25052   ac_status=$?
25053   grep -v '^ *+' conftest.er1 >conftest.err
25054   rm -f conftest.er1
25055   cat conftest.err >&5
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); } &&
25058          { ac_try='test -z "$ac_c_werror_flag"
25059                          || test ! -s conftest.err'
25060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061   (eval $ac_try) 2>&5
25062   ac_status=$?
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); }; } &&
25065          { ac_try='test -s conftest$ac_exeext'
25066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); }; }; then
25071   ac_cv_search_dlopen="none required"
25072 else
25073   echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25075
25076 fi
25077 rm -f conftest.err conftest.$ac_objext \
25078       conftest$ac_exeext conftest.$ac_ext
25079 if test "$ac_cv_search_dlopen" = no; then
25080   for ac_lib in dl; do
25081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25082     cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088
25089 /* Override any gcc2 internal prototype to avoid an error.  */
25090 #ifdef __cplusplus
25091 extern "C"
25092 #endif
25093 /* We use char because int might match the return type of a gcc2
25094    builtin and then its argument prototype would still apply.  */
25095 char dlopen ();
25096 int
25097 main ()
25098 {
25099 dlopen ();
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106   (eval $ac_link) 2>conftest.er1
25107   ac_status=$?
25108   grep -v '^ *+' conftest.er1 >conftest.err
25109   rm -f conftest.er1
25110   cat conftest.err >&5
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } &&
25113          { ac_try='test -z "$ac_c_werror_flag"
25114                          || test ! -s conftest.err'
25115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116   (eval $ac_try) 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; } &&
25120          { ac_try='test -s conftest$ac_exeext'
25121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122   (eval $ac_try) 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; }; then
25126   ac_cv_search_dlopen="-l$ac_lib"
25127 break
25128 else
25129   echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25131
25132 fi
25133 rm -f conftest.err conftest.$ac_objext \
25134       conftest$ac_exeext conftest.$ac_ext
25135   done
25136 fi
25137 LIBS=$ac_func_search_save_LIBS
25138 fi
25139 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25140 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25141 if test "$ac_cv_search_dlopen" != no; then
25142   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25143
25144 cat >>confdefs.h <<\_ACEOF
25145 #define HAVE_DLOPEN 1
25146 _ACEOF
25147
25148 else
25149   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25150 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25151 fi
25152
25153
25154 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25155 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25156 if test "${ac_cv_search_mallinfo+set}" = set; then
25157   echo $ECHO_N "(cached) $ECHO_C" >&6
25158 else
25159   ac_func_search_save_LIBS=$LIBS
25160 ac_cv_search_mallinfo=no
25161 cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h.  */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h.  */
25167
25168 /* Override any gcc2 internal prototype to avoid an error.  */
25169 #ifdef __cplusplus
25170 extern "C"
25171 #endif
25172 /* We use char because int might match the return type of a gcc2
25173    builtin and then its argument prototype would still apply.  */
25174 char mallinfo ();
25175 int
25176 main ()
25177 {
25178 mallinfo ();
25179   ;
25180   return 0;
25181 }
25182 _ACEOF
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185   (eval $ac_link) 2>conftest.er1
25186   ac_status=$?
25187   grep -v '^ *+' conftest.er1 >conftest.err
25188   rm -f conftest.er1
25189   cat conftest.err >&5
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); } &&
25192          { ac_try='test -z "$ac_c_werror_flag"
25193                          || test ! -s conftest.err'
25194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195   (eval $ac_try) 2>&5
25196   ac_status=$?
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); }; } &&
25199          { ac_try='test -s conftest$ac_exeext'
25200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201   (eval $ac_try) 2>&5
25202   ac_status=$?
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); }; }; then
25205   ac_cv_search_mallinfo="none required"
25206 else
25207   echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25209
25210 fi
25211 rm -f conftest.err conftest.$ac_objext \
25212       conftest$ac_exeext conftest.$ac_ext
25213 if test "$ac_cv_search_mallinfo" = no; then
25214   for ac_lib in malloc; do
25215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25216     cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h.  */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h.  */
25222
25223 /* Override any gcc2 internal prototype to avoid an error.  */
25224 #ifdef __cplusplus
25225 extern "C"
25226 #endif
25227 /* We use char because int might match the return type of a gcc2
25228    builtin and then its argument prototype would still apply.  */
25229 char mallinfo ();
25230 int
25231 main ()
25232 {
25233 mallinfo ();
25234   ;
25235   return 0;
25236 }
25237 _ACEOF
25238 rm -f conftest.$ac_objext conftest$ac_exeext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25240   (eval $ac_link) 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } &&
25247          { ac_try='test -z "$ac_c_werror_flag"
25248                          || test ! -s conftest.err'
25249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250   (eval $ac_try) 2>&5
25251   ac_status=$?
25252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253   (exit $ac_status); }; } &&
25254          { ac_try='test -s conftest$ac_exeext'
25255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256   (eval $ac_try) 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; }; then
25260   ac_cv_search_mallinfo="-l$ac_lib"
25261 break
25262 else
25263   echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25265
25266 fi
25267 rm -f conftest.err conftest.$ac_objext \
25268       conftest$ac_exeext conftest.$ac_ext
25269   done
25270 fi
25271 LIBS=$ac_func_search_save_LIBS
25272 fi
25273 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25274 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25275 if test "$ac_cv_search_mallinfo" != no; then
25276   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25277
25278 cat >>confdefs.h <<\_ACEOF
25279 #define HAVE_MALLINFO 1
25280 _ACEOF
25281
25282 fi
25283
25284
25285
25286 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25287 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25288 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 else
25291   ac_check_lib_save_LIBS=$LIBS
25292 LIBS="-lpthread  $LIBS"
25293 cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299
25300 /* Override any gcc2 internal prototype to avoid an error.  */
25301 #ifdef __cplusplus
25302 extern "C"
25303 #endif
25304 /* We use char because int might match the return type of a gcc2
25305    builtin and then its argument prototype would still apply.  */
25306 char pthread_mutex_init ();
25307 int
25308 main ()
25309 {
25310 pthread_mutex_init ();
25311   ;
25312   return 0;
25313 }
25314 _ACEOF
25315 rm -f conftest.$ac_objext conftest$ac_exeext
25316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25317   (eval $ac_link) 2>conftest.er1
25318   ac_status=$?
25319   grep -v '^ *+' conftest.er1 >conftest.err
25320   rm -f conftest.er1
25321   cat conftest.err >&5
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); } &&
25324          { ac_try='test -z "$ac_c_werror_flag"
25325                          || test ! -s conftest.err'
25326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327   (eval $ac_try) 2>&5
25328   ac_status=$?
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); }; } &&
25331          { ac_try='test -s conftest$ac_exeext'
25332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333   (eval $ac_try) 2>&5
25334   ac_status=$?
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); }; }; then
25337   ac_cv_lib_pthread_pthread_mutex_init=yes
25338 else
25339   echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25341
25342 ac_cv_lib_pthread_pthread_mutex_init=no
25343 fi
25344 rm -f conftest.err conftest.$ac_objext \
25345       conftest$ac_exeext conftest.$ac_ext
25346 LIBS=$ac_check_lib_save_LIBS
25347 fi
25348 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25349 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25350 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25351   cat >>confdefs.h <<_ACEOF
25352 #define HAVE_LIBPTHREAD 1
25353 _ACEOF
25354
25355   LIBS="-lpthread $LIBS"
25356
25357 fi
25358
25359 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25360 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25361 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25362   echo $ECHO_N "(cached) $ECHO_C" >&6
25363 else
25364   ac_func_search_save_LIBS=$LIBS
25365 ac_cv_search_pthread_mutex_lock=no
25366 cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h.  */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h.  */
25372
25373 /* Override any gcc2 internal prototype to avoid an error.  */
25374 #ifdef __cplusplus
25375 extern "C"
25376 #endif
25377 /* We use char because int might match the return type of a gcc2
25378    builtin and then its argument prototype would still apply.  */
25379 char pthread_mutex_lock ();
25380 int
25381 main ()
25382 {
25383 pthread_mutex_lock ();
25384   ;
25385   return 0;
25386 }
25387 _ACEOF
25388 rm -f conftest.$ac_objext conftest$ac_exeext
25389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25390   (eval $ac_link) 2>conftest.er1
25391   ac_status=$?
25392   grep -v '^ *+' conftest.er1 >conftest.err
25393   rm -f conftest.er1
25394   cat conftest.err >&5
25395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396   (exit $ac_status); } &&
25397          { ac_try='test -z "$ac_c_werror_flag"
25398                          || test ! -s conftest.err'
25399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400   (eval $ac_try) 2>&5
25401   ac_status=$?
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); }; } &&
25404          { ac_try='test -s conftest$ac_exeext'
25405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406   (eval $ac_try) 2>&5
25407   ac_status=$?
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); }; }; then
25410   ac_cv_search_pthread_mutex_lock="none required"
25411 else
25412   echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25414
25415 fi
25416 rm -f conftest.err conftest.$ac_objext \
25417       conftest$ac_exeext conftest.$ac_ext
25418 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25419   for ac_lib in pthread; do
25420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25421     cat >conftest.$ac_ext <<_ACEOF
25422 /* confdefs.h.  */
25423 _ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h.  */
25427
25428 /* Override any gcc2 internal prototype to avoid an error.  */
25429 #ifdef __cplusplus
25430 extern "C"
25431 #endif
25432 /* We use char because int might match the return type of a gcc2
25433    builtin and then its argument prototype would still apply.  */
25434 char pthread_mutex_lock ();
25435 int
25436 main ()
25437 {
25438 pthread_mutex_lock ();
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25445   (eval $ac_link) 2>conftest.er1
25446   ac_status=$?
25447   grep -v '^ *+' conftest.er1 >conftest.err
25448   rm -f conftest.er1
25449   cat conftest.err >&5
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); } &&
25452          { ac_try='test -z "$ac_c_werror_flag"
25453                          || test ! -s conftest.err'
25454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455   (eval $ac_try) 2>&5
25456   ac_status=$?
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); }; } &&
25459          { ac_try='test -s conftest$ac_exeext'
25460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461   (eval $ac_try) 2>&5
25462   ac_status=$?
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); }; }; then
25465   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25466 break
25467 else
25468   echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471 fi
25472 rm -f conftest.err conftest.$ac_objext \
25473       conftest$ac_exeext conftest.$ac_ext
25474   done
25475 fi
25476 LIBS=$ac_func_search_save_LIBS
25477 fi
25478 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25479 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25480 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25481   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25482
25483 cat >>confdefs.h <<\_ACEOF
25484 #define HAVE_PTHREAD_MUTEX_LOCK 1
25485 _ACEOF
25486
25487 fi
25488
25489
25490
25491
25492
25493
25494
25495
25496 ac_header_dirent=no
25497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25498   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25499 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25500 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25502   echo $ECHO_N "(cached) $ECHO_C" >&6
25503 else
25504   cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h.  */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h.  */
25510 #include <sys/types.h>
25511 #include <$ac_hdr>
25512
25513 int
25514 main ()
25515 {
25516 if ((DIR *) 0)
25517 return 0;
25518   ;
25519   return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524   (eval $ac_compile) 2>conftest.er1
25525   ac_status=$?
25526   grep -v '^ *+' conftest.er1 >conftest.err
25527   rm -f conftest.er1
25528   cat conftest.err >&5
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); } &&
25531          { ac_try='test -z "$ac_c_werror_flag"
25532                          || test ! -s conftest.err'
25533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534   (eval $ac_try) 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); }; } &&
25538          { ac_try='test -s conftest.$ac_objext'
25539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540   (eval $ac_try) 2>&5
25541   ac_status=$?
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); }; }; then
25544   eval "$as_ac_Header=yes"
25545 else
25546   echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25548
25549 eval "$as_ac_Header=no"
25550 fi
25551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25552 fi
25553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25556   cat >>confdefs.h <<_ACEOF
25557 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25558 _ACEOF
25559
25560 ac_header_dirent=$ac_hdr; break
25561 fi
25562
25563 done
25564 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25565 if test $ac_header_dirent = dirent.h; then
25566   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25567 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25568 if test "${ac_cv_search_opendir+set}" = set; then
25569   echo $ECHO_N "(cached) $ECHO_C" >&6
25570 else
25571   ac_func_search_save_LIBS=$LIBS
25572 ac_cv_search_opendir=no
25573 cat >conftest.$ac_ext <<_ACEOF
25574 /* confdefs.h.  */
25575 _ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h.  */
25579
25580 /* Override any gcc2 internal prototype to avoid an error.  */
25581 #ifdef __cplusplus
25582 extern "C"
25583 #endif
25584 /* We use char because int might match the return type of a gcc2
25585    builtin and then its argument prototype would still apply.  */
25586 char opendir ();
25587 int
25588 main ()
25589 {
25590 opendir ();
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25597   (eval $ac_link) 2>conftest.er1
25598   ac_status=$?
25599   grep -v '^ *+' conftest.er1 >conftest.err
25600   rm -f conftest.er1
25601   cat conftest.err >&5
25602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603   (exit $ac_status); } &&
25604          { ac_try='test -z "$ac_c_werror_flag"
25605                          || test ! -s conftest.err'
25606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607   (eval $ac_try) 2>&5
25608   ac_status=$?
25609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610   (exit $ac_status); }; } &&
25611          { ac_try='test -s conftest$ac_exeext'
25612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613   (eval $ac_try) 2>&5
25614   ac_status=$?
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); }; }; then
25617   ac_cv_search_opendir="none required"
25618 else
25619   echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622 fi
25623 rm -f conftest.err conftest.$ac_objext \
25624       conftest$ac_exeext conftest.$ac_ext
25625 if test "$ac_cv_search_opendir" = no; then
25626   for ac_lib in dir; do
25627     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25628     cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634
25635 /* Override any gcc2 internal prototype to avoid an error.  */
25636 #ifdef __cplusplus
25637 extern "C"
25638 #endif
25639 /* We use char because int might match the return type of a gcc2
25640    builtin and then its argument prototype would still apply.  */
25641 char opendir ();
25642 int
25643 main ()
25644 {
25645 opendir ();
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 rm -f conftest.$ac_objext conftest$ac_exeext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652   (eval $ac_link) 2>conftest.er1
25653   ac_status=$?
25654   grep -v '^ *+' conftest.er1 >conftest.err
25655   rm -f conftest.er1
25656   cat conftest.err >&5
25657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658   (exit $ac_status); } &&
25659          { ac_try='test -z "$ac_c_werror_flag"
25660                          || test ! -s conftest.err'
25661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25662   (eval $ac_try) 2>&5
25663   ac_status=$?
25664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665   (exit $ac_status); }; } &&
25666          { ac_try='test -s conftest$ac_exeext'
25667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668   (eval $ac_try) 2>&5
25669   ac_status=$?
25670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671   (exit $ac_status); }; }; then
25672   ac_cv_search_opendir="-l$ac_lib"
25673 break
25674 else
25675   echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678 fi
25679 rm -f conftest.err conftest.$ac_objext \
25680       conftest$ac_exeext conftest.$ac_ext
25681   done
25682 fi
25683 LIBS=$ac_func_search_save_LIBS
25684 fi
25685 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25686 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25687 if test "$ac_cv_search_opendir" != no; then
25688   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25689
25690 fi
25691
25692 else
25693   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25694 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25695 if test "${ac_cv_search_opendir+set}" = set; then
25696   echo $ECHO_N "(cached) $ECHO_C" >&6
25697 else
25698   ac_func_search_save_LIBS=$LIBS
25699 ac_cv_search_opendir=no
25700 cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h.  */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h.  */
25706
25707 /* Override any gcc2 internal prototype to avoid an error.  */
25708 #ifdef __cplusplus
25709 extern "C"
25710 #endif
25711 /* We use char because int might match the return type of a gcc2
25712    builtin and then its argument prototype would still apply.  */
25713 char opendir ();
25714 int
25715 main ()
25716 {
25717 opendir ();
25718   ;
25719   return 0;
25720 }
25721 _ACEOF
25722 rm -f conftest.$ac_objext conftest$ac_exeext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25724   (eval $ac_link) 2>conftest.er1
25725   ac_status=$?
25726   grep -v '^ *+' conftest.er1 >conftest.err
25727   rm -f conftest.er1
25728   cat conftest.err >&5
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); } &&
25731          { ac_try='test -z "$ac_c_werror_flag"
25732                          || test ! -s conftest.err'
25733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734   (eval $ac_try) 2>&5
25735   ac_status=$?
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); }; } &&
25738          { ac_try='test -s conftest$ac_exeext'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; }; then
25744   ac_cv_search_opendir="none required"
25745 else
25746   echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25748
25749 fi
25750 rm -f conftest.err conftest.$ac_objext \
25751       conftest$ac_exeext conftest.$ac_ext
25752 if test "$ac_cv_search_opendir" = no; then
25753   for ac_lib in x; do
25754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25755     cat >conftest.$ac_ext <<_ACEOF
25756 /* confdefs.h.  */
25757 _ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h.  */
25761
25762 /* Override any gcc2 internal prototype to avoid an error.  */
25763 #ifdef __cplusplus
25764 extern "C"
25765 #endif
25766 /* We use char because int might match the return type of a gcc2
25767    builtin and then its argument prototype would still apply.  */
25768 char opendir ();
25769 int
25770 main ()
25771 {
25772 opendir ();
25773   ;
25774   return 0;
25775 }
25776 _ACEOF
25777 rm -f conftest.$ac_objext conftest$ac_exeext
25778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779   (eval $ac_link) 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } &&
25786          { ac_try='test -z "$ac_c_werror_flag"
25787                          || test ! -s conftest.err'
25788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); }; } &&
25793          { ac_try='test -s conftest$ac_exeext'
25794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795   (eval $ac_try) 2>&5
25796   ac_status=$?
25797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798   (exit $ac_status); }; }; then
25799   ac_cv_search_opendir="-l$ac_lib"
25800 break
25801 else
25802   echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25804
25805 fi
25806 rm -f conftest.err conftest.$ac_objext \
25807       conftest$ac_exeext conftest.$ac_ext
25808   done
25809 fi
25810 LIBS=$ac_func_search_save_LIBS
25811 fi
25812 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25813 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25814 if test "$ac_cv_search_opendir" != no; then
25815   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25816
25817 fi
25818
25819 fi
25820
25821 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25822 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25823 if test "${ac_cv_header_mmap_anon+set}" = set; then
25824   echo $ECHO_N "(cached) $ECHO_C" >&6
25825 else
25826    ac_ext=c
25827 ac_cpp='$CPP $CPPFLAGS'
25828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25831
25832   cat >conftest.$ac_ext <<_ACEOF
25833 /* confdefs.h.  */
25834 _ACEOF
25835 cat confdefs.h >>conftest.$ac_ext
25836 cat >>conftest.$ac_ext <<_ACEOF
25837 /* end confdefs.h.  */
25838 #include <sys/mman.h>
25839 #include <unistd.h>
25840 #include <fcntl.h>
25841 int
25842 main ()
25843 {
25844 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25845   ;
25846   return 0;
25847 }
25848 _ACEOF
25849 rm -f conftest.$ac_objext
25850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25851   (eval $ac_compile) 2>conftest.er1
25852   ac_status=$?
25853   grep -v '^ *+' conftest.er1 >conftest.err
25854   rm -f conftest.er1
25855   cat conftest.err >&5
25856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857   (exit $ac_status); } &&
25858          { ac_try='test -z "$ac_c_werror_flag"
25859                          || test ! -s conftest.err'
25860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861   (eval $ac_try) 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; } &&
25865          { ac_try='test -s conftest.$ac_objext'
25866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867   (eval $ac_try) 2>&5
25868   ac_status=$?
25869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870   (exit $ac_status); }; }; then
25871   ac_cv_header_mmap_anon=yes
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876 ac_cv_header_mmap_anon=no
25877 fi
25878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25879   ac_ext=c
25880 ac_cpp='$CPP $CPPFLAGS'
25881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25884
25885
25886 fi
25887 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25888 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25889 if test "$ac_cv_header_mmap_anon" = yes; then
25890
25891 cat >>confdefs.h <<\_ACEOF
25892 #define HAVE_MMAP_ANONYMOUS 1
25893 _ACEOF
25894
25895 fi
25896
25897 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25898 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25899 if test "${ac_cv_header_stat_broken+set}" = set; then
25900   echo $ECHO_N "(cached) $ECHO_C" >&6
25901 else
25902   cat >conftest.$ac_ext <<_ACEOF
25903 /* confdefs.h.  */
25904 _ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h.  */
25908 #include <sys/types.h>
25909 #include <sys/stat.h>
25910
25911 #if defined(S_ISBLK) && defined(S_IFDIR)
25912 # if S_ISBLK (S_IFDIR)
25913 You lose.
25914 # endif
25915 #endif
25916
25917 #if defined(S_ISBLK) && defined(S_IFCHR)
25918 # if S_ISBLK (S_IFCHR)
25919 You lose.
25920 # endif
25921 #endif
25922
25923 #if defined(S_ISLNK) && defined(S_IFREG)
25924 # if S_ISLNK (S_IFREG)
25925 You lose.
25926 # endif
25927 #endif
25928
25929 #if defined(S_ISSOCK) && defined(S_IFREG)
25930 # if S_ISSOCK (S_IFREG)
25931 You lose.
25932 # endif
25933 #endif
25934
25935 _ACEOF
25936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25937   $EGREP "You lose" >/dev/null 2>&1; then
25938   ac_cv_header_stat_broken=yes
25939 else
25940   ac_cv_header_stat_broken=no
25941 fi
25942 rm -f conftest*
25943
25944 fi
25945 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25946 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25947 if test $ac_cv_header_stat_broken = yes; then
25948
25949 cat >>confdefs.h <<\_ACEOF
25950 #define STAT_MACROS_BROKEN 1
25951 _ACEOF
25952
25953 fi
25954
25955 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25957 if test "${ac_cv_header_stdc+set}" = set; then
25958   echo $ECHO_N "(cached) $ECHO_C" >&6
25959 else
25960   cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966 #include <stdlib.h>
25967 #include <stdarg.h>
25968 #include <string.h>
25969 #include <float.h>
25970
25971 int
25972 main ()
25973 {
25974
25975   ;
25976   return 0;
25977 }
25978 _ACEOF
25979 rm -f conftest.$ac_objext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981   (eval $ac_compile) 2>conftest.er1
25982   ac_status=$?
25983   grep -v '^ *+' conftest.er1 >conftest.err
25984   rm -f conftest.er1
25985   cat conftest.err >&5
25986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987   (exit $ac_status); } &&
25988          { ac_try='test -z "$ac_c_werror_flag"
25989                          || test ! -s conftest.err'
25990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991   (eval $ac_try) 2>&5
25992   ac_status=$?
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); }; } &&
25995          { ac_try='test -s conftest.$ac_objext'
25996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997   (eval $ac_try) 2>&5
25998   ac_status=$?
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); }; }; then
26001   ac_cv_header_stdc=yes
26002 else
26003   echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26005
26006 ac_cv_header_stdc=no
26007 fi
26008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26009
26010 if test $ac_cv_header_stdc = yes; then
26011   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 #include <string.h>
26019
26020 _ACEOF
26021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26022   $EGREP "memchr" >/dev/null 2>&1; then
26023   :
26024 else
26025   ac_cv_header_stdc=no
26026 fi
26027 rm -f conftest*
26028
26029 fi
26030
26031 if test $ac_cv_header_stdc = yes; then
26032   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26033   cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 #include <stdlib.h>
26040
26041 _ACEOF
26042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26043   $EGREP "free" >/dev/null 2>&1; then
26044   :
26045 else
26046   ac_cv_header_stdc=no
26047 fi
26048 rm -f conftest*
26049
26050 fi
26051
26052 if test $ac_cv_header_stdc = yes; then
26053   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26054   if test "$cross_compiling" = yes; then
26055   :
26056 else
26057   cat >conftest.$ac_ext <<_ACEOF
26058 /* confdefs.h.  */
26059 _ACEOF
26060 cat confdefs.h >>conftest.$ac_ext
26061 cat >>conftest.$ac_ext <<_ACEOF
26062 /* end confdefs.h.  */
26063 #include <ctype.h>
26064 #if ((' ' & 0x0FF) == 0x020)
26065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26067 #else
26068 # define ISLOWER(c) \
26069                    (('a' <= (c) && (c) <= 'i') \
26070                      || ('j' <= (c) && (c) <= 'r') \
26071                      || ('s' <= (c) && (c) <= 'z'))
26072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26073 #endif
26074
26075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26076 int
26077 main ()
26078 {
26079   int i;
26080   for (i = 0; i < 256; i++)
26081     if (XOR (islower (i), ISLOWER (i))
26082         || toupper (i) != TOUPPER (i))
26083       exit(2);
26084   exit (0);
26085 }
26086 _ACEOF
26087 rm -f conftest$ac_exeext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26089   (eval $ac_link) 2>&5
26090   ac_status=$?
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094   (eval $ac_try) 2>&5
26095   ac_status=$?
26096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097   (exit $ac_status); }; }; then
26098   :
26099 else
26100   echo "$as_me: program exited with status $ac_status" >&5
26101 echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26103
26104 ( exit $ac_status )
26105 ac_cv_header_stdc=no
26106 fi
26107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26108 fi
26109 fi
26110 fi
26111 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26113 if test $ac_cv_header_stdc = yes; then
26114
26115 cat >>confdefs.h <<\_ACEOF
26116 #define STDC_HEADERS 1
26117 _ACEOF
26118
26119 fi
26120
26121 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26122 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26123 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26124   echo $ECHO_N "(cached) $ECHO_C" >&6
26125 else
26126   cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h.  */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h.  */
26132 #include <sys/types.h>
26133 #include <sys/wait.h>
26134 #ifndef WEXITSTATUS
26135 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26136 #endif
26137 #ifndef WIFEXITED
26138 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26139 #endif
26140
26141 int
26142 main ()
26143 {
26144   int s;
26145   wait (&s);
26146   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26147   ;
26148   return 0;
26149 }
26150 _ACEOF
26151 rm -f conftest.$ac_objext
26152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26153   (eval $ac_compile) 2>conftest.er1
26154   ac_status=$?
26155   grep -v '^ *+' conftest.er1 >conftest.err
26156   rm -f conftest.er1
26157   cat conftest.err >&5
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); } &&
26160          { ac_try='test -z "$ac_c_werror_flag"
26161                          || test ! -s conftest.err'
26162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163   (eval $ac_try) 2>&5
26164   ac_status=$?
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); }; } &&
26167          { ac_try='test -s conftest.$ac_objext'
26168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169   (eval $ac_try) 2>&5
26170   ac_status=$?
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); }; }; then
26173   ac_cv_header_sys_wait_h=yes
26174 else
26175   echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178 ac_cv_header_sys_wait_h=no
26179 fi
26180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26181 fi
26182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26183 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26184 if test $ac_cv_header_sys_wait_h = yes; then
26185
26186 cat >>confdefs.h <<\_ACEOF
26187 #define HAVE_SYS_WAIT_H 1
26188 _ACEOF
26189
26190 fi
26191
26192 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26193 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26194 if test "${ac_cv_header_time+set}" = set; then
26195   echo $ECHO_N "(cached) $ECHO_C" >&6
26196 else
26197   cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203 #include <sys/types.h>
26204 #include <sys/time.h>
26205 #include <time.h>
26206
26207 int
26208 main ()
26209 {
26210 if ((struct tm *) 0)
26211 return 0;
26212   ;
26213   return 0;
26214 }
26215 _ACEOF
26216 rm -f conftest.$ac_objext
26217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26218   (eval $ac_compile) 2>conftest.er1
26219   ac_status=$?
26220   grep -v '^ *+' conftest.er1 >conftest.err
26221   rm -f conftest.er1
26222   cat conftest.err >&5
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); } &&
26225          { ac_try='test -z "$ac_c_werror_flag"
26226                          || test ! -s conftest.err'
26227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228   (eval $ac_try) 2>&5
26229   ac_status=$?
26230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231   (exit $ac_status); }; } &&
26232          { ac_try='test -s conftest.$ac_objext'
26233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234   (eval $ac_try) 2>&5
26235   ac_status=$?
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); }; }; then
26238   ac_cv_header_time=yes
26239 else
26240   echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243 ac_cv_header_time=no
26244 fi
26245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26246 fi
26247 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26248 echo "${ECHO_T}$ac_cv_header_time" >&6
26249 if test $ac_cv_header_time = yes; then
26250
26251 cat >>confdefs.h <<\_ACEOF
26252 #define TIME_WITH_SYS_TIME 1
26253 _ACEOF
26254
26255 fi
26256
26257
26258
26259
26260
26261
26262
26263
26264 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26265 do
26266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
26273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26275 else
26276   # Is the header compilable?
26277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285 $ac_includes_default
26286 #include <$ac_header>
26287 _ACEOF
26288 rm -f conftest.$ac_objext
26289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26290   (eval $ac_compile) 2>conftest.er1
26291   ac_status=$?
26292   grep -v '^ *+' conftest.er1 >conftest.err
26293   rm -f conftest.er1
26294   cat conftest.err >&5
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); } &&
26297          { ac_try='test -z "$ac_c_werror_flag"
26298                          || test ! -s conftest.err'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; } &&
26304          { ac_try='test -s conftest.$ac_objext'
26305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306   (eval $ac_try) 2>&5
26307   ac_status=$?
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); }; }; then
26310   ac_header_compiler=yes
26311 else
26312   echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ac_header_compiler=no
26316 fi
26317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26319 echo "${ECHO_T}$ac_header_compiler" >&6
26320
26321 # Is the header present?
26322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26324 cat >conftest.$ac_ext <<_ACEOF
26325 /* confdefs.h.  */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h.  */
26330 #include <$ac_header>
26331 _ACEOF
26332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26334   ac_status=$?
26335   grep -v '^ *+' conftest.er1 >conftest.err
26336   rm -f conftest.er1
26337   cat conftest.err >&5
26338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339   (exit $ac_status); } >/dev/null; then
26340   if test -s conftest.err; then
26341     ac_cpp_err=$ac_c_preproc_warn_flag
26342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26343   else
26344     ac_cpp_err=
26345   fi
26346 else
26347   ac_cpp_err=yes
26348 fi
26349 if test -z "$ac_cpp_err"; then
26350   ac_header_preproc=yes
26351 else
26352   echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26354
26355   ac_header_preproc=no
26356 fi
26357 rm -f conftest.err conftest.$ac_ext
26358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359 echo "${ECHO_T}$ac_header_preproc" >&6
26360
26361 # So?  What about this header?
26362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26363   yes:no: )
26364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26368     ac_header_preproc=yes
26369     ;;
26370   no:yes:* )
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26383     (
26384       cat <<\_ASBOX
26385 ## ----------------------------------- ##
26386 ## Report this to llvmbugs@cs.uiuc.edu ##
26387 ## ----------------------------------- ##
26388 _ASBOX
26389     ) |
26390       sed "s/^/$as_me: WARNING:     /" >&2
26391     ;;
26392 esac
26393 echo "$as_me:$LINENO: checking for $ac_header" >&5
26394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26396   echo $ECHO_N "(cached) $ECHO_C" >&6
26397 else
26398   eval "$as_ac_Header=\$ac_header_preproc"
26399 fi
26400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26402
26403 fi
26404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26405   cat >>confdefs.h <<_ACEOF
26406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26407 _ACEOF
26408
26409 fi
26410
26411 done
26412
26413
26414
26415
26416
26417
26418
26419 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26420 do
26421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
26428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26430 else
26431   # Is the header compilable?
26432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26434 cat >conftest.$ac_ext <<_ACEOF
26435 /* confdefs.h.  */
26436 _ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h.  */
26440 $ac_includes_default
26441 #include <$ac_header>
26442 _ACEOF
26443 rm -f conftest.$ac_objext
26444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26445   (eval $ac_compile) 2>conftest.er1
26446   ac_status=$?
26447   grep -v '^ *+' conftest.er1 >conftest.err
26448   rm -f conftest.er1
26449   cat conftest.err >&5
26450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451   (exit $ac_status); } &&
26452          { ac_try='test -z "$ac_c_werror_flag"
26453                          || test ! -s conftest.err'
26454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455   (eval $ac_try) 2>&5
26456   ac_status=$?
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); }; } &&
26459          { ac_try='test -s conftest.$ac_objext'
26460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461   (eval $ac_try) 2>&5
26462   ac_status=$?
26463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464   (exit $ac_status); }; }; then
26465   ac_header_compiler=yes
26466 else
26467   echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26469
26470 ac_header_compiler=no
26471 fi
26472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26474 echo "${ECHO_T}$ac_header_compiler" >&6
26475
26476 # Is the header present?
26477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26479 cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h.  */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h.  */
26485 #include <$ac_header>
26486 _ACEOF
26487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26489   ac_status=$?
26490   grep -v '^ *+' conftest.er1 >conftest.err
26491   rm -f conftest.er1
26492   cat conftest.err >&5
26493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494   (exit $ac_status); } >/dev/null; then
26495   if test -s conftest.err; then
26496     ac_cpp_err=$ac_c_preproc_warn_flag
26497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26498   else
26499     ac_cpp_err=
26500   fi
26501 else
26502   ac_cpp_err=yes
26503 fi
26504 if test -z "$ac_cpp_err"; then
26505   ac_header_preproc=yes
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510   ac_header_preproc=no
26511 fi
26512 rm -f conftest.err conftest.$ac_ext
26513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26514 echo "${ECHO_T}$ac_header_preproc" >&6
26515
26516 # So?  What about this header?
26517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26518   yes:no: )
26519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26523     ac_header_preproc=yes
26524     ;;
26525   no:yes:* )
26526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26538     (
26539       cat <<\_ASBOX
26540 ## ----------------------------------- ##
26541 ## Report this to llvmbugs@cs.uiuc.edu ##
26542 ## ----------------------------------- ##
26543 _ASBOX
26544     ) |
26545       sed "s/^/$as_me: WARNING:     /" >&2
26546     ;;
26547 esac
26548 echo "$as_me:$LINENO: checking for $ac_header" >&5
26549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26551   echo $ECHO_N "(cached) $ECHO_C" >&6
26552 else
26553   eval "$as_ac_Header=\$ac_header_preproc"
26554 fi
26555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26557
26558 fi
26559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26560   cat >>confdefs.h <<_ACEOF
26561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26562 _ACEOF
26563
26564 fi
26565
26566 done
26567
26568
26569 for ac_header in windows.h
26570 do
26571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26573   echo "$as_me:$LINENO: checking for $ac_header" >&5
26574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26576   echo $ECHO_N "(cached) $ECHO_C" >&6
26577 fi
26578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26580 else
26581   # Is the header compilable?
26582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26584 cat >conftest.$ac_ext <<_ACEOF
26585 /* confdefs.h.  */
26586 _ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h.  */
26590 $ac_includes_default
26591 #include <$ac_header>
26592 _ACEOF
26593 rm -f conftest.$ac_objext
26594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26595   (eval $ac_compile) 2>conftest.er1
26596   ac_status=$?
26597   grep -v '^ *+' conftest.er1 >conftest.err
26598   rm -f conftest.er1
26599   cat conftest.err >&5
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); } &&
26602          { ac_try='test -z "$ac_c_werror_flag"
26603                          || test ! -s conftest.err'
26604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605   (eval $ac_try) 2>&5
26606   ac_status=$?
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); }; } &&
26609          { ac_try='test -s conftest.$ac_objext'
26610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611   (eval $ac_try) 2>&5
26612   ac_status=$?
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); }; }; then
26615   ac_header_compiler=yes
26616 else
26617   echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26619
26620 ac_header_compiler=no
26621 fi
26622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26624 echo "${ECHO_T}$ac_header_compiler" >&6
26625
26626 # Is the header present?
26627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26629 cat >conftest.$ac_ext <<_ACEOF
26630 /* confdefs.h.  */
26631 _ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h.  */
26635 #include <$ac_header>
26636 _ACEOF
26637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26639   ac_status=$?
26640   grep -v '^ *+' conftest.er1 >conftest.err
26641   rm -f conftest.er1
26642   cat conftest.err >&5
26643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644   (exit $ac_status); } >/dev/null; then
26645   if test -s conftest.err; then
26646     ac_cpp_err=$ac_c_preproc_warn_flag
26647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26648   else
26649     ac_cpp_err=
26650   fi
26651 else
26652   ac_cpp_err=yes
26653 fi
26654 if test -z "$ac_cpp_err"; then
26655   ac_header_preproc=yes
26656 else
26657   echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26659
26660   ac_header_preproc=no
26661 fi
26662 rm -f conftest.err conftest.$ac_ext
26663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26664 echo "${ECHO_T}$ac_header_preproc" >&6
26665
26666 # So?  What about this header?
26667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26668   yes:no: )
26669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26673     ac_header_preproc=yes
26674     ;;
26675   no:yes:* )
26676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26688     (
26689       cat <<\_ASBOX
26690 ## ----------------------------------- ##
26691 ## Report this to llvmbugs@cs.uiuc.edu ##
26692 ## ----------------------------------- ##
26693 _ASBOX
26694     ) |
26695       sed "s/^/$as_me: WARNING:     /" >&2
26696     ;;
26697 esac
26698 echo "$as_me:$LINENO: checking for $ac_header" >&5
26699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26701   echo $ECHO_N "(cached) $ECHO_C" >&6
26702 else
26703   eval "$as_ac_Header=\$ac_header_preproc"
26704 fi
26705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26707
26708 fi
26709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26710   cat >>confdefs.h <<_ACEOF
26711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26712 _ACEOF
26713
26714 fi
26715
26716 done
26717
26718
26719
26720
26721
26722
26723 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26724 do
26725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727   echo "$as_me:$LINENO: checking for $ac_header" >&5
26728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26730   echo $ECHO_N "(cached) $ECHO_C" >&6
26731 fi
26732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26734 else
26735   # Is the header compilable?
26736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26738 cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h.  */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h.  */
26744 $ac_includes_default
26745 #include <$ac_header>
26746 _ACEOF
26747 rm -f conftest.$ac_objext
26748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26749   (eval $ac_compile) 2>conftest.er1
26750   ac_status=$?
26751   grep -v '^ *+' conftest.er1 >conftest.err
26752   rm -f conftest.er1
26753   cat conftest.err >&5
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); } &&
26756          { ac_try='test -z "$ac_c_werror_flag"
26757                          || test ! -s conftest.err'
26758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759   (eval $ac_try) 2>&5
26760   ac_status=$?
26761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); }; } &&
26763          { ac_try='test -s conftest.$ac_objext'
26764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765   (eval $ac_try) 2>&5
26766   ac_status=$?
26767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768   (exit $ac_status); }; }; then
26769   ac_header_compiler=yes
26770 else
26771   echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774 ac_header_compiler=no
26775 fi
26776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26778 echo "${ECHO_T}$ac_header_compiler" >&6
26779
26780 # Is the header present?
26781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26783 cat >conftest.$ac_ext <<_ACEOF
26784 /* confdefs.h.  */
26785 _ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h.  */
26789 #include <$ac_header>
26790 _ACEOF
26791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26793   ac_status=$?
26794   grep -v '^ *+' conftest.er1 >conftest.err
26795   rm -f conftest.er1
26796   cat conftest.err >&5
26797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798   (exit $ac_status); } >/dev/null; then
26799   if test -s conftest.err; then
26800     ac_cpp_err=$ac_c_preproc_warn_flag
26801     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26802   else
26803     ac_cpp_err=
26804   fi
26805 else
26806   ac_cpp_err=yes
26807 fi
26808 if test -z "$ac_cpp_err"; then
26809   ac_header_preproc=yes
26810 else
26811   echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26813
26814   ac_header_preproc=no
26815 fi
26816 rm -f conftest.err conftest.$ac_ext
26817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26818 echo "${ECHO_T}$ac_header_preproc" >&6
26819
26820 # So?  What about this header?
26821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26822   yes:no: )
26823     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26827     ac_header_preproc=yes
26828     ;;
26829   no:yes:* )
26830     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26832     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26833 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26834     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26836     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26837 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26840     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26842     (
26843       cat <<\_ASBOX
26844 ## ----------------------------------- ##
26845 ## Report this to llvmbugs@cs.uiuc.edu ##
26846 ## ----------------------------------- ##
26847 _ASBOX
26848     ) |
26849       sed "s/^/$as_me: WARNING:     /" >&2
26850     ;;
26851 esac
26852 echo "$as_me:$LINENO: checking for $ac_header" >&5
26853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26855   echo $ECHO_N "(cached) $ECHO_C" >&6
26856 else
26857   eval "$as_ac_Header=\$ac_header_preproc"
26858 fi
26859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26861
26862 fi
26863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26864   cat >>confdefs.h <<_ACEOF
26865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26866 _ACEOF
26867
26868 fi
26869
26870 done
26871
26872
26873
26874 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26875 do
26876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26878   echo "$as_me:$LINENO: checking for $ac_header" >&5
26879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881   echo $ECHO_N "(cached) $ECHO_C" >&6
26882 fi
26883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26885 else
26886   # Is the header compilable?
26887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26889 cat >conftest.$ac_ext <<_ACEOF
26890 /* confdefs.h.  */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h.  */
26895 $ac_includes_default
26896 #include <$ac_header>
26897 _ACEOF
26898 rm -f conftest.$ac_objext
26899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900   (eval $ac_compile) 2>conftest.er1
26901   ac_status=$?
26902   grep -v '^ *+' conftest.er1 >conftest.err
26903   rm -f conftest.er1
26904   cat conftest.err >&5
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); } &&
26907          { ac_try='test -z "$ac_c_werror_flag"
26908                          || test ! -s conftest.err'
26909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910   (eval $ac_try) 2>&5
26911   ac_status=$?
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); }; } &&
26914          { ac_try='test -s conftest.$ac_objext'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; }; then
26920   ac_header_compiler=yes
26921 else
26922   echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925 ac_header_compiler=no
26926 fi
26927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26929 echo "${ECHO_T}$ac_header_compiler" >&6
26930
26931 # Is the header present?
26932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26934 cat >conftest.$ac_ext <<_ACEOF
26935 /* confdefs.h.  */
26936 _ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h.  */
26940 #include <$ac_header>
26941 _ACEOF
26942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26944   ac_status=$?
26945   grep -v '^ *+' conftest.er1 >conftest.err
26946   rm -f conftest.er1
26947   cat conftest.err >&5
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); } >/dev/null; then
26950   if test -s conftest.err; then
26951     ac_cpp_err=$ac_c_preproc_warn_flag
26952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26953   else
26954     ac_cpp_err=
26955   fi
26956 else
26957   ac_cpp_err=yes
26958 fi
26959 if test -z "$ac_cpp_err"; then
26960   ac_header_preproc=yes
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965   ac_header_preproc=no
26966 fi
26967 rm -f conftest.err conftest.$ac_ext
26968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26969 echo "${ECHO_T}$ac_header_preproc" >&6
26970
26971 # So?  What about this header?
26972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26973   yes:no: )
26974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26978     ac_header_preproc=yes
26979     ;;
26980   no:yes:* )
26981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26993     (
26994       cat <<\_ASBOX
26995 ## ----------------------------------- ##
26996 ## Report this to llvmbugs@cs.uiuc.edu ##
26997 ## ----------------------------------- ##
26998 _ASBOX
26999     ) |
27000       sed "s/^/$as_me: WARNING:     /" >&2
27001     ;;
27002 esac
27003 echo "$as_me:$LINENO: checking for $ac_header" >&5
27004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27006   echo $ECHO_N "(cached) $ECHO_C" >&6
27007 else
27008   eval "$as_ac_Header=\$ac_header_preproc"
27009 fi
27010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27012
27013 fi
27014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27015   cat >>confdefs.h <<_ACEOF
27016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27017 _ACEOF
27018
27019 fi
27020
27021 done
27022
27023
27024
27025 echo "$as_me:$LINENO: checking for pid_t" >&5
27026 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27027 if test "${ac_cv_type_pid_t+set}" = set; then
27028   echo $ECHO_N "(cached) $ECHO_C" >&6
27029 else
27030   cat >conftest.$ac_ext <<_ACEOF
27031 /* confdefs.h.  */
27032 _ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h.  */
27036 $ac_includes_default
27037 int
27038 main ()
27039 {
27040 if ((pid_t *) 0)
27041   return 0;
27042 if (sizeof (pid_t))
27043   return 0;
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27050   (eval $ac_compile) 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag"
27058                          || test ! -s conftest.err'
27059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060   (eval $ac_try) 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; } &&
27064          { ac_try='test -s conftest.$ac_objext'
27065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066   (eval $ac_try) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); }; }; then
27070   ac_cv_type_pid_t=yes
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075 ac_cv_type_pid_t=no
27076 fi
27077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27078 fi
27079 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27080 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27081 if test $ac_cv_type_pid_t = yes; then
27082   :
27083 else
27084
27085 cat >>confdefs.h <<_ACEOF
27086 #define pid_t int
27087 _ACEOF
27088
27089 fi
27090
27091 echo "$as_me:$LINENO: checking for size_t" >&5
27092 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27093 if test "${ac_cv_type_size_t+set}" = set; then
27094   echo $ECHO_N "(cached) $ECHO_C" >&6
27095 else
27096   cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h.  */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h.  */
27102 $ac_includes_default
27103 int
27104 main ()
27105 {
27106 if ((size_t *) 0)
27107   return 0;
27108 if (sizeof (size_t))
27109   return 0;
27110   ;
27111   return 0;
27112 }
27113 _ACEOF
27114 rm -f conftest.$ac_objext
27115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27116   (eval $ac_compile) 2>conftest.er1
27117   ac_status=$?
27118   grep -v '^ *+' conftest.er1 >conftest.err
27119   rm -f conftest.er1
27120   cat conftest.err >&5
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); } &&
27123          { ac_try='test -z "$ac_c_werror_flag"
27124                          || test ! -s conftest.err'
27125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126   (eval $ac_try) 2>&5
27127   ac_status=$?
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; } &&
27130          { ac_try='test -s conftest.$ac_objext'
27131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132   (eval $ac_try) 2>&5
27133   ac_status=$?
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); }; }; then
27136   ac_cv_type_size_t=yes
27137 else
27138   echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 ac_cv_type_size_t=no
27142 fi
27143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27144 fi
27145 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27146 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27147 if test $ac_cv_type_size_t = yes; then
27148   :
27149 else
27150
27151 cat >>confdefs.h <<_ACEOF
27152 #define size_t unsigned
27153 _ACEOF
27154
27155 fi
27156
27157 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27158 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27159 if test "${ac_cv_type_signal+set}" = set; then
27160   echo $ECHO_N "(cached) $ECHO_C" >&6
27161 else
27162   cat >conftest.$ac_ext <<_ACEOF
27163 /* confdefs.h.  */
27164 _ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h.  */
27168 #include <sys/types.h>
27169 #include <signal.h>
27170 #ifdef signal
27171 # undef signal
27172 #endif
27173 #ifdef __cplusplus
27174 extern "C" void (*signal (int, void (*)(int)))(int);
27175 #else
27176 void (*signal ()) ();
27177 #endif
27178
27179 int
27180 main ()
27181 {
27182 int i;
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27189   (eval $ac_compile) 2>conftest.er1
27190   ac_status=$?
27191   grep -v '^ *+' conftest.er1 >conftest.err
27192   rm -f conftest.er1
27193   cat conftest.err >&5
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); } &&
27196          { ac_try='test -z "$ac_c_werror_flag"
27197                          || test ! -s conftest.err'
27198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199   (eval $ac_try) 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; } &&
27203          { ac_try='test -s conftest.$ac_objext'
27204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205   (eval $ac_try) 2>&5
27206   ac_status=$?
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); }; }; then
27209   ac_cv_type_signal=void
27210 else
27211   echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214 ac_cv_type_signal=int
27215 fi
27216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27217 fi
27218 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27219 echo "${ECHO_T}$ac_cv_type_signal" >&6
27220
27221 cat >>confdefs.h <<_ACEOF
27222 #define RETSIGTYPE $ac_cv_type_signal
27223 _ACEOF
27224
27225
27226 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27227 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27228 if test "${ac_cv_struct_tm+set}" = set; then
27229   echo $ECHO_N "(cached) $ECHO_C" >&6
27230 else
27231   cat >conftest.$ac_ext <<_ACEOF
27232 /* confdefs.h.  */
27233 _ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h.  */
27237 #include <sys/types.h>
27238 #include <time.h>
27239
27240 int
27241 main ()
27242 {
27243 struct tm *tp; tp->tm_sec;
27244   ;
27245   return 0;
27246 }
27247 _ACEOF
27248 rm -f conftest.$ac_objext
27249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27250   (eval $ac_compile) 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } &&
27257          { ac_try='test -z "$ac_c_werror_flag"
27258                          || test ! -s conftest.err'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; } &&
27264          { ac_try='test -s conftest.$ac_objext'
27265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266   (eval $ac_try) 2>&5
27267   ac_status=$?
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); }; }; then
27270   ac_cv_struct_tm=time.h
27271 else
27272   echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27274
27275 ac_cv_struct_tm=sys/time.h
27276 fi
27277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27278 fi
27279 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27280 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27281 if test $ac_cv_struct_tm = sys/time.h; then
27282
27283 cat >>confdefs.h <<\_ACEOF
27284 #define TM_IN_SYS_TIME 1
27285 _ACEOF
27286
27287 fi
27288
27289 echo "$as_me:$LINENO: checking for int64_t" >&5
27290 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27291 if test "${ac_cv_type_int64_t+set}" = set; then
27292   echo $ECHO_N "(cached) $ECHO_C" >&6
27293 else
27294   cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300 $ac_includes_default
27301 int
27302 main ()
27303 {
27304 if ((int64_t *) 0)
27305   return 0;
27306 if (sizeof (int64_t))
27307   return 0;
27308   ;
27309   return 0;
27310 }
27311 _ACEOF
27312 rm -f conftest.$ac_objext
27313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27314   (eval $ac_compile) 2>conftest.er1
27315   ac_status=$?
27316   grep -v '^ *+' conftest.er1 >conftest.err
27317   rm -f conftest.er1
27318   cat conftest.err >&5
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); } &&
27321          { ac_try='test -z "$ac_c_werror_flag"
27322                          || test ! -s conftest.err'
27323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324   (eval $ac_try) 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); }; } &&
27328          { ac_try='test -s conftest.$ac_objext'
27329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330   (eval $ac_try) 2>&5
27331   ac_status=$?
27332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); }; }; then
27334   ac_cv_type_int64_t=yes
27335 else
27336   echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27338
27339 ac_cv_type_int64_t=no
27340 fi
27341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27342 fi
27343 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27344 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27345 if test $ac_cv_type_int64_t = yes; then
27346
27347 cat >>confdefs.h <<_ACEOF
27348 #define HAVE_INT64_T 1
27349 _ACEOF
27350
27351
27352 else
27353   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27354 echo "$as_me: error: Type int64_t required but not found" >&2;}
27355    { (exit 1); exit 1; }; }
27356 fi
27357
27358 echo "$as_me:$LINENO: checking for uint64_t" >&5
27359 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27360 if test "${ac_cv_type_uint64_t+set}" = set; then
27361   echo $ECHO_N "(cached) $ECHO_C" >&6
27362 else
27363   cat >conftest.$ac_ext <<_ACEOF
27364 /* confdefs.h.  */
27365 _ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h.  */
27369 $ac_includes_default
27370 int
27371 main ()
27372 {
27373 if ((uint64_t *) 0)
27374   return 0;
27375 if (sizeof (uint64_t))
27376   return 0;
27377   ;
27378   return 0;
27379 }
27380 _ACEOF
27381 rm -f conftest.$ac_objext
27382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27383   (eval $ac_compile) 2>conftest.er1
27384   ac_status=$?
27385   grep -v '^ *+' conftest.er1 >conftest.err
27386   rm -f conftest.er1
27387   cat conftest.err >&5
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); } &&
27390          { ac_try='test -z "$ac_c_werror_flag"
27391                          || test ! -s conftest.err'
27392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393   (eval $ac_try) 2>&5
27394   ac_status=$?
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); }; } &&
27397          { ac_try='test -s conftest.$ac_objext'
27398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399   (eval $ac_try) 2>&5
27400   ac_status=$?
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); }; }; then
27403   ac_cv_type_uint64_t=yes
27404 else
27405   echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27407
27408 ac_cv_type_uint64_t=no
27409 fi
27410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27411 fi
27412 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27413 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27414 if test $ac_cv_type_uint64_t = yes; then
27415
27416 cat >>confdefs.h <<_ACEOF
27417 #define HAVE_UINT64_T 1
27418 _ACEOF
27419
27420
27421 else
27422   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27423 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27424 if test "${ac_cv_type_u_int64_t+set}" = set; then
27425   echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427   cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 $ac_includes_default
27434 int
27435 main ()
27436 {
27437 if ((u_int64_t *) 0)
27438   return 0;
27439 if (sizeof (u_int64_t))
27440   return 0;
27441   ;
27442   return 0;
27443 }
27444 _ACEOF
27445 rm -f conftest.$ac_objext
27446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27447   (eval $ac_compile) 2>conftest.er1
27448   ac_status=$?
27449   grep -v '^ *+' conftest.er1 >conftest.err
27450   rm -f conftest.er1
27451   cat conftest.err >&5
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); } &&
27454          { ac_try='test -z "$ac_c_werror_flag"
27455                          || test ! -s conftest.err'
27456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457   (eval $ac_try) 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); }; } &&
27461          { ac_try='test -s conftest.$ac_objext'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; }; then
27467   ac_cv_type_u_int64_t=yes
27468 else
27469   echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472 ac_cv_type_u_int64_t=no
27473 fi
27474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27475 fi
27476 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27477 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27478 if test $ac_cv_type_u_int64_t = yes; then
27479
27480 cat >>confdefs.h <<_ACEOF
27481 #define HAVE_U_INT64_T 1
27482 _ACEOF
27483
27484
27485 else
27486   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27487 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27488    { (exit 1); exit 1; }; }
27489 fi
27490
27491 fi
27492
27493
27494
27495
27496
27497
27498
27499
27500 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27501 do
27502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27503 echo "$as_me:$LINENO: checking for $ac_func" >&5
27504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27505 if eval "test \"\${$as_ac_var+set}\" = set"; then
27506   echo $ECHO_N "(cached) $ECHO_C" >&6
27507 else
27508   cat >conftest.$ac_ext <<_ACEOF
27509 /* confdefs.h.  */
27510 _ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h.  */
27514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27516 #define $ac_func innocuous_$ac_func
27517
27518 /* System header to define __stub macros and hopefully few prototypes,
27519     which can conflict with char $ac_func (); below.
27520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27521     <limits.h> exists even on freestanding compilers.  */
27522
27523 #ifdef __STDC__
27524 # include <limits.h>
27525 #else
27526 # include <assert.h>
27527 #endif
27528
27529 #undef $ac_func
27530
27531 /* Override any gcc2 internal prototype to avoid an error.  */
27532 #ifdef __cplusplus
27533 extern "C"
27534 {
27535 #endif
27536 /* We use char because int might match the return type of a gcc2
27537    builtin and then its argument prototype would still apply.  */
27538 char $ac_func ();
27539 /* The GNU C library defines this for functions which it implements
27540     to always fail with ENOSYS.  Some functions are actually named
27541     something starting with __ and the normal name is an alias.  */
27542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27543 choke me
27544 #else
27545 char (*f) () = $ac_func;
27546 #endif
27547 #ifdef __cplusplus
27548 }
27549 #endif
27550
27551 int
27552 main ()
27553 {
27554 return f != $ac_func;
27555   ;
27556   return 0;
27557 }
27558 _ACEOF
27559 rm -f conftest.$ac_objext conftest$ac_exeext
27560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27561   (eval $ac_link) 2>conftest.er1
27562   ac_status=$?
27563   grep -v '^ *+' conftest.er1 >conftest.err
27564   rm -f conftest.er1
27565   cat conftest.err >&5
27566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567   (exit $ac_status); } &&
27568          { ac_try='test -z "$ac_c_werror_flag"
27569                          || test ! -s conftest.err'
27570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571   (eval $ac_try) 2>&5
27572   ac_status=$?
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); }; } &&
27575          { ac_try='test -s conftest$ac_exeext'
27576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27577   (eval $ac_try) 2>&5
27578   ac_status=$?
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); }; }; then
27581   eval "$as_ac_var=yes"
27582 else
27583   echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27585
27586 eval "$as_ac_var=no"
27587 fi
27588 rm -f conftest.err conftest.$ac_objext \
27589       conftest$ac_exeext conftest.$ac_ext
27590 fi
27591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27593 if test `eval echo '${'$as_ac_var'}'` = yes; then
27594   cat >>confdefs.h <<_ACEOF
27595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27596 _ACEOF
27597
27598 fi
27599 done
27600
27601
27602
27603
27604
27605 for ac_func in isatty mkdtemp mkstemp mktemp
27606 do
27607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27608 echo "$as_me:$LINENO: checking for $ac_func" >&5
27609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27610 if eval "test \"\${$as_ac_var+set}\" = set"; then
27611   echo $ECHO_N "(cached) $ECHO_C" >&6
27612 else
27613   cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h.  */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h.  */
27619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27621 #define $ac_func innocuous_$ac_func
27622
27623 /* System header to define __stub macros and hopefully few prototypes,
27624     which can conflict with char $ac_func (); below.
27625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27626     <limits.h> exists even on freestanding compilers.  */
27627
27628 #ifdef __STDC__
27629 # include <limits.h>
27630 #else
27631 # include <assert.h>
27632 #endif
27633
27634 #undef $ac_func
27635
27636 /* Override any gcc2 internal prototype to avoid an error.  */
27637 #ifdef __cplusplus
27638 extern "C"
27639 {
27640 #endif
27641 /* We use char because int might match the return type of a gcc2
27642    builtin and then its argument prototype would still apply.  */
27643 char $ac_func ();
27644 /* The GNU C library defines this for functions which it implements
27645     to always fail with ENOSYS.  Some functions are actually named
27646     something starting with __ and the normal name is an alias.  */
27647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27648 choke me
27649 #else
27650 char (*f) () = $ac_func;
27651 #endif
27652 #ifdef __cplusplus
27653 }
27654 #endif
27655
27656 int
27657 main ()
27658 {
27659 return f != $ac_func;
27660   ;
27661   return 0;
27662 }
27663 _ACEOF
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27666   (eval $ac_link) 2>conftest.er1
27667   ac_status=$?
27668   grep -v '^ *+' conftest.er1 >conftest.err
27669   rm -f conftest.er1
27670   cat conftest.err >&5
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); } &&
27673          { ac_try='test -z "$ac_c_werror_flag"
27674                          || test ! -s conftest.err'
27675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676   (eval $ac_try) 2>&5
27677   ac_status=$?
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); }; } &&
27680          { ac_try='test -s conftest$ac_exeext'
27681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682   (eval $ac_try) 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; }; then
27686   eval "$as_ac_var=yes"
27687 else
27688   echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27690
27691 eval "$as_ac_var=no"
27692 fi
27693 rm -f conftest.err conftest.$ac_objext \
27694       conftest$ac_exeext conftest.$ac_ext
27695 fi
27696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27698 if test `eval echo '${'$as_ac_var'}'` = yes; then
27699   cat >>confdefs.h <<_ACEOF
27700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27701 _ACEOF
27702
27703 fi
27704 done
27705
27706
27707
27708
27709
27710
27711
27712 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27713 do
27714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27715 echo "$as_me:$LINENO: checking for $ac_func" >&5
27716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27717 if eval "test \"\${$as_ac_var+set}\" = set"; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27728 #define $ac_func innocuous_$ac_func
27729
27730 /* System header to define __stub macros and hopefully few prototypes,
27731     which can conflict with char $ac_func (); below.
27732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27733     <limits.h> exists even on freestanding compilers.  */
27734
27735 #ifdef __STDC__
27736 # include <limits.h>
27737 #else
27738 # include <assert.h>
27739 #endif
27740
27741 #undef $ac_func
27742
27743 /* Override any gcc2 internal prototype to avoid an error.  */
27744 #ifdef __cplusplus
27745 extern "C"
27746 {
27747 #endif
27748 /* We use char because int might match the return type of a gcc2
27749    builtin and then its argument prototype would still apply.  */
27750 char $ac_func ();
27751 /* The GNU C library defines this for functions which it implements
27752     to always fail with ENOSYS.  Some functions are actually named
27753     something starting with __ and the normal name is an alias.  */
27754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27755 choke me
27756 #else
27757 char (*f) () = $ac_func;
27758 #endif
27759 #ifdef __cplusplus
27760 }
27761 #endif
27762
27763 int
27764 main ()
27765 {
27766 return f != $ac_func;
27767   ;
27768   return 0;
27769 }
27770 _ACEOF
27771 rm -f conftest.$ac_objext conftest$ac_exeext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27773   (eval $ac_link) 2>conftest.er1
27774   ac_status=$?
27775   grep -v '^ *+' conftest.er1 >conftest.err
27776   rm -f conftest.er1
27777   cat conftest.err >&5
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); } &&
27780          { ac_try='test -z "$ac_c_werror_flag"
27781                          || test ! -s conftest.err'
27782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783   (eval $ac_try) 2>&5
27784   ac_status=$?
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); }; } &&
27787          { ac_try='test -s conftest$ac_exeext'
27788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789   (eval $ac_try) 2>&5
27790   ac_status=$?
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); }; }; then
27793   eval "$as_ac_var=yes"
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798 eval "$as_ac_var=no"
27799 fi
27800 rm -f conftest.err conftest.$ac_objext \
27801       conftest$ac_exeext conftest.$ac_ext
27802 fi
27803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27805 if test `eval echo '${'$as_ac_var'}'` = yes; then
27806   cat >>confdefs.h <<_ACEOF
27807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27808 _ACEOF
27809
27810 fi
27811 done
27812
27813
27814
27815
27816 for ac_func in strtoll strtoq sysconf
27817 do
27818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27819 echo "$as_me:$LINENO: checking for $ac_func" >&5
27820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27821 if eval "test \"\${$as_ac_var+set}\" = set"; then
27822   echo $ECHO_N "(cached) $ECHO_C" >&6
27823 else
27824   cat >conftest.$ac_ext <<_ACEOF
27825 /* confdefs.h.  */
27826 _ACEOF
27827 cat confdefs.h >>conftest.$ac_ext
27828 cat >>conftest.$ac_ext <<_ACEOF
27829 /* end confdefs.h.  */
27830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27832 #define $ac_func innocuous_$ac_func
27833
27834 /* System header to define __stub macros and hopefully few prototypes,
27835     which can conflict with char $ac_func (); below.
27836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27837     <limits.h> exists even on freestanding compilers.  */
27838
27839 #ifdef __STDC__
27840 # include <limits.h>
27841 #else
27842 # include <assert.h>
27843 #endif
27844
27845 #undef $ac_func
27846
27847 /* Override any gcc2 internal prototype to avoid an error.  */
27848 #ifdef __cplusplus
27849 extern "C"
27850 {
27851 #endif
27852 /* We use char because int might match the return type of a gcc2
27853    builtin and then its argument prototype would still apply.  */
27854 char $ac_func ();
27855 /* The GNU C library defines this for functions which it implements
27856     to always fail with ENOSYS.  Some functions are actually named
27857     something starting with __ and the normal name is an alias.  */
27858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27859 choke me
27860 #else
27861 char (*f) () = $ac_func;
27862 #endif
27863 #ifdef __cplusplus
27864 }
27865 #endif
27866
27867 int
27868 main ()
27869 {
27870 return f != $ac_func;
27871   ;
27872   return 0;
27873 }
27874 _ACEOF
27875 rm -f conftest.$ac_objext conftest$ac_exeext
27876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27877   (eval $ac_link) 2>conftest.er1
27878   ac_status=$?
27879   grep -v '^ *+' conftest.er1 >conftest.err
27880   rm -f conftest.er1
27881   cat conftest.err >&5
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); } &&
27884          { ac_try='test -z "$ac_c_werror_flag"
27885                          || test ! -s conftest.err'
27886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887   (eval $ac_try) 2>&5
27888   ac_status=$?
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); }; } &&
27891          { ac_try='test -s conftest$ac_exeext'
27892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893   (eval $ac_try) 2>&5
27894   ac_status=$?
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); }; }; then
27897   eval "$as_ac_var=yes"
27898 else
27899   echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902 eval "$as_ac_var=no"
27903 fi
27904 rm -f conftest.err conftest.$ac_objext \
27905       conftest$ac_exeext conftest.$ac_ext
27906 fi
27907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27909 if test `eval echo '${'$as_ac_var'}'` = yes; then
27910   cat >>confdefs.h <<_ACEOF
27911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27912 _ACEOF
27913
27914 fi
27915 done
27916
27917 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27918 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27919 if test "${llvm_cv_c_printf_a+set}" = set; then
27920   echo $ECHO_N "(cached) $ECHO_C" >&6
27921 else
27922   ac_ext=c
27923 ac_cpp='$CPP $CPPFLAGS'
27924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27927
27928  if test "$cross_compiling" = yes; then
27929   llvmac_cv_c_printf_a=no
27930 else
27931   cat >conftest.$ac_ext <<_ACEOF
27932
27933   /* confdefs.h.  */
27934 _ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h.  */
27938
27939 #include <stdio.h>
27940 #include <stdlib.h>
27941
27942 int
27943 main ()
27944 {
27945
27946 volatile double A, B;
27947 char Buffer[100];
27948 A = 1;
27949 A /= 10.0;
27950 sprintf(Buffer, "%a", A);
27951 B = atof(Buffer);
27952 if (A != B)
27953   return (1);
27954 if (A != 0x1.999999999999ap-4)
27955   return (1);
27956 return (0);
27957   ;
27958   return 0;
27959 }
27960 _ACEOF
27961 rm -f conftest$ac_exeext
27962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27963   (eval $ac_link) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968   (eval $ac_try) 2>&5
27969   ac_status=$?
27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); }; }; then
27972   llvm_cv_c_printf_a=yes
27973 else
27974   echo "$as_me: program exited with status $ac_status" >&5
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978 ( exit $ac_status )
27979 llvmac_cv_c_printf_a=no
27980 fi
27981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27982 fi
27983  ac_ext=c
27984 ac_cpp='$CPP $CPPFLAGS'
27985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27988
27989 fi
27990 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27991 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27992  if test "$llvm_cv_c_printf_a" = "yes"; then
27993
27994 cat >>confdefs.h <<\_ACEOF
27995 #define HAVE_PRINTF_A 1
27996 _ACEOF
27997
27998  fi
27999
28000 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28001 # for constant arguments.  Useless!
28002 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28003 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28004 if test "${ac_cv_working_alloca_h+set}" = set; then
28005   echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007   cat >conftest.$ac_ext <<_ACEOF
28008 /* confdefs.h.  */
28009 _ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h.  */
28013 #include <alloca.h>
28014 int
28015 main ()
28016 {
28017 char *p = (char *) alloca (2 * sizeof (int));
28018   ;
28019   return 0;
28020 }
28021 _ACEOF
28022 rm -f conftest.$ac_objext conftest$ac_exeext
28023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28024   (eval $ac_link) 2>conftest.er1
28025   ac_status=$?
28026   grep -v '^ *+' conftest.er1 >conftest.err
28027   rm -f conftest.er1
28028   cat conftest.err >&5
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); } &&
28031          { ac_try='test -z "$ac_c_werror_flag"
28032                          || test ! -s conftest.err'
28033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034   (eval $ac_try) 2>&5
28035   ac_status=$?
28036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037   (exit $ac_status); }; } &&
28038          { ac_try='test -s conftest$ac_exeext'
28039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040   (eval $ac_try) 2>&5
28041   ac_status=$?
28042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043   (exit $ac_status); }; }; then
28044   ac_cv_working_alloca_h=yes
28045 else
28046   echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28048
28049 ac_cv_working_alloca_h=no
28050 fi
28051 rm -f conftest.err conftest.$ac_objext \
28052       conftest$ac_exeext conftest.$ac_ext
28053 fi
28054 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28055 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28056 if test $ac_cv_working_alloca_h = yes; then
28057
28058 cat >>confdefs.h <<\_ACEOF
28059 #define HAVE_ALLOCA_H 1
28060 _ACEOF
28061
28062 fi
28063
28064 echo "$as_me:$LINENO: checking for alloca" >&5
28065 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28066 if test "${ac_cv_func_alloca_works+set}" = set; then
28067   echo $ECHO_N "(cached) $ECHO_C" >&6
28068 else
28069   cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h.  */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h.  */
28075 #ifdef __GNUC__
28076 # define alloca __builtin_alloca
28077 #else
28078 # ifdef _MSC_VER
28079 #  include <malloc.h>
28080 #  define alloca _alloca
28081 # else
28082 #  if HAVE_ALLOCA_H
28083 #   include <alloca.h>
28084 #  else
28085 #   ifdef _AIX
28086  #pragma alloca
28087 #   else
28088 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28089 char *alloca ();
28090 #    endif
28091 #   endif
28092 #  endif
28093 # endif
28094 #endif
28095
28096 int
28097 main ()
28098 {
28099 char *p = (char *) alloca (1);
28100   ;
28101   return 0;
28102 }
28103 _ACEOF
28104 rm -f conftest.$ac_objext conftest$ac_exeext
28105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28106   (eval $ac_link) 2>conftest.er1
28107   ac_status=$?
28108   grep -v '^ *+' conftest.er1 >conftest.err
28109   rm -f conftest.er1
28110   cat conftest.err >&5
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); } &&
28113          { ac_try='test -z "$ac_c_werror_flag"
28114                          || test ! -s conftest.err'
28115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116   (eval $ac_try) 2>&5
28117   ac_status=$?
28118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119   (exit $ac_status); }; } &&
28120          { ac_try='test -s conftest$ac_exeext'
28121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122   (eval $ac_try) 2>&5
28123   ac_status=$?
28124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125   (exit $ac_status); }; }; then
28126   ac_cv_func_alloca_works=yes
28127 else
28128   echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28130
28131 ac_cv_func_alloca_works=no
28132 fi
28133 rm -f conftest.err conftest.$ac_objext \
28134       conftest$ac_exeext conftest.$ac_ext
28135 fi
28136 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28137 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28138
28139 if test $ac_cv_func_alloca_works = yes; then
28140
28141 cat >>confdefs.h <<\_ACEOF
28142 #define HAVE_ALLOCA 1
28143 _ACEOF
28144
28145 else
28146   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28147 # that cause trouble.  Some versions do not even contain alloca or
28148 # contain a buggy version.  If you still want to use their alloca,
28149 # use ar to extract alloca.o from them instead of compiling alloca.c.
28150
28151 ALLOCA=alloca.$ac_objext
28152
28153 cat >>confdefs.h <<\_ACEOF
28154 #define C_ALLOCA 1
28155 _ACEOF
28156
28157
28158 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28159 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28160 if test "${ac_cv_os_cray+set}" = set; then
28161   echo $ECHO_N "(cached) $ECHO_C" >&6
28162 else
28163   cat >conftest.$ac_ext <<_ACEOF
28164 /* confdefs.h.  */
28165 _ACEOF
28166 cat confdefs.h >>conftest.$ac_ext
28167 cat >>conftest.$ac_ext <<_ACEOF
28168 /* end confdefs.h.  */
28169 #if defined(CRAY) && ! defined(CRAY2)
28170 webecray
28171 #else
28172 wenotbecray
28173 #endif
28174
28175 _ACEOF
28176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28177   $EGREP "webecray" >/dev/null 2>&1; then
28178   ac_cv_os_cray=yes
28179 else
28180   ac_cv_os_cray=no
28181 fi
28182 rm -f conftest*
28183
28184 fi
28185 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28186 echo "${ECHO_T}$ac_cv_os_cray" >&6
28187 if test $ac_cv_os_cray = yes; then
28188   for ac_func in _getb67 GETB67 getb67; do
28189     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28190 echo "$as_me:$LINENO: checking for $ac_func" >&5
28191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28192 if eval "test \"\${$as_ac_var+set}\" = set"; then
28193   echo $ECHO_N "(cached) $ECHO_C" >&6
28194 else
28195   cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h.  */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h.  */
28201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28203 #define $ac_func innocuous_$ac_func
28204
28205 /* System header to define __stub macros and hopefully few prototypes,
28206     which can conflict with char $ac_func (); below.
28207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28208     <limits.h> exists even on freestanding compilers.  */
28209
28210 #ifdef __STDC__
28211 # include <limits.h>
28212 #else
28213 # include <assert.h>
28214 #endif
28215
28216 #undef $ac_func
28217
28218 /* Override any gcc2 internal prototype to avoid an error.  */
28219 #ifdef __cplusplus
28220 extern "C"
28221 {
28222 #endif
28223 /* We use char because int might match the return type of a gcc2
28224    builtin and then its argument prototype would still apply.  */
28225 char $ac_func ();
28226 /* The GNU C library defines this for functions which it implements
28227     to always fail with ENOSYS.  Some functions are actually named
28228     something starting with __ and the normal name is an alias.  */
28229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28230 choke me
28231 #else
28232 char (*f) () = $ac_func;
28233 #endif
28234 #ifdef __cplusplus
28235 }
28236 #endif
28237
28238 int
28239 main ()
28240 {
28241 return f != $ac_func;
28242   ;
28243   return 0;
28244 }
28245 _ACEOF
28246 rm -f conftest.$ac_objext conftest$ac_exeext
28247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28248   (eval $ac_link) 2>conftest.er1
28249   ac_status=$?
28250   grep -v '^ *+' conftest.er1 >conftest.err
28251   rm -f conftest.er1
28252   cat conftest.err >&5
28253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254   (exit $ac_status); } &&
28255          { ac_try='test -z "$ac_c_werror_flag"
28256                          || test ! -s conftest.err'
28257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258   (eval $ac_try) 2>&5
28259   ac_status=$?
28260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261   (exit $ac_status); }; } &&
28262          { ac_try='test -s conftest$ac_exeext'
28263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264   (eval $ac_try) 2>&5
28265   ac_status=$?
28266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267   (exit $ac_status); }; }; then
28268   eval "$as_ac_var=yes"
28269 else
28270   echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28272
28273 eval "$as_ac_var=no"
28274 fi
28275 rm -f conftest.err conftest.$ac_objext \
28276       conftest$ac_exeext conftest.$ac_ext
28277 fi
28278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28280 if test `eval echo '${'$as_ac_var'}'` = yes; then
28281
28282 cat >>confdefs.h <<_ACEOF
28283 #define CRAY_STACKSEG_END $ac_func
28284 _ACEOF
28285
28286     break
28287 fi
28288
28289   done
28290 fi
28291
28292 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28293 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28294 if test "${ac_cv_c_stack_direction+set}" = set; then
28295   echo $ECHO_N "(cached) $ECHO_C" >&6
28296 else
28297   if test "$cross_compiling" = yes; then
28298   ac_cv_c_stack_direction=0
28299 else
28300   cat >conftest.$ac_ext <<_ACEOF
28301 /* confdefs.h.  */
28302 _ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h.  */
28306 int
28307 find_stack_direction ()
28308 {
28309   static char *addr = 0;
28310   auto char dummy;
28311   if (addr == 0)
28312     {
28313       addr = &dummy;
28314       return find_stack_direction ();
28315     }
28316   else
28317     return (&dummy > addr) ? 1 : -1;
28318 }
28319
28320 int
28321 main ()
28322 {
28323   exit (find_stack_direction () < 0);
28324 }
28325 _ACEOF
28326 rm -f conftest$ac_exeext
28327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328   (eval $ac_link) 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333   (eval $ac_try) 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); }; }; then
28337   ac_cv_c_stack_direction=1
28338 else
28339   echo "$as_me: program exited with status $ac_status" >&5
28340 echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28342
28343 ( exit $ac_status )
28344 ac_cv_c_stack_direction=-1
28345 fi
28346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28347 fi
28348 fi
28349 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28350 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28351
28352 cat >>confdefs.h <<_ACEOF
28353 #define STACK_DIRECTION $ac_cv_c_stack_direction
28354 _ACEOF
28355
28356
28357 fi
28358
28359
28360 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28361 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28362 if test "${ac_cv_func_rand48+set}" = set; then
28363   echo $ECHO_N "(cached) $ECHO_C" >&6
28364 else
28365   ac_ext=cc
28366 ac_cpp='$CXXCPP $CPPFLAGS'
28367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28370
28371    cat >conftest.$ac_ext <<_ACEOF
28372 /* confdefs.h.  */
28373 _ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h.  */
28377 #include <stdlib.h>
28378 int
28379 main ()
28380 {
28381 srand48(0);lrand48();drand48();
28382   ;
28383   return 0;
28384 }
28385 _ACEOF
28386 rm -f conftest.$ac_objext
28387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28388   (eval $ac_compile) 2>conftest.er1
28389   ac_status=$?
28390   grep -v '^ *+' conftest.er1 >conftest.err
28391   rm -f conftest.er1
28392   cat conftest.err >&5
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } &&
28395          { ac_try='test -z "$ac_cxx_werror_flag"
28396                          || test ! -s conftest.err'
28397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398   (eval $ac_try) 2>&5
28399   ac_status=$?
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); }; } &&
28402          { ac_try='test -s conftest.$ac_objext'
28403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404   (eval $ac_try) 2>&5
28405   ac_status=$?
28406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407   (exit $ac_status); }; }; then
28408   ac_cv_func_rand48=yes
28409 else
28410   echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28412
28413 ac_cv_func_rand48=no
28414 fi
28415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28416   ac_ext=c
28417 ac_cpp='$CPP $CPPFLAGS'
28418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28421
28422 fi
28423 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28424 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28425
28426 if test "$ac_cv_func_rand48" = "yes" ; then
28427
28428 cat >>confdefs.h <<\_ACEOF
28429 #define HAVE_RAND48 1
28430 _ACEOF
28431
28432 fi
28433
28434
28435 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28436 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28437 if test "${ac_cv_cxx_namespaces+set}" = set; then
28438   echo $ECHO_N "(cached) $ECHO_C" >&6
28439 else
28440   ac_ext=cc
28441 ac_cpp='$CXXCPP $CPPFLAGS'
28442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28445
28446  cat >conftest.$ac_ext <<_ACEOF
28447 /* confdefs.h.  */
28448 _ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h.  */
28452 namespace Outer { namespace Inner { int i = 0; }}
28453 int
28454 main ()
28455 {
28456 using namespace Outer::Inner; return i;
28457   ;
28458   return 0;
28459 }
28460 _ACEOF
28461 rm -f conftest.$ac_objext
28462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28463   (eval $ac_compile) 2>conftest.er1
28464   ac_status=$?
28465   grep -v '^ *+' conftest.er1 >conftest.err
28466   rm -f conftest.er1
28467   cat conftest.err >&5
28468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469   (exit $ac_status); } &&
28470          { ac_try='test -z "$ac_cxx_werror_flag"
28471                          || test ! -s conftest.err'
28472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473   (eval $ac_try) 2>&5
28474   ac_status=$?
28475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476   (exit $ac_status); }; } &&
28477          { ac_try='test -s conftest.$ac_objext'
28478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479   (eval $ac_try) 2>&5
28480   ac_status=$?
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); }; }; then
28483   ac_cv_cxx_namespaces=yes
28484 else
28485   echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488 ac_cv_cxx_namespaces=no
28489 fi
28490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28491  ac_ext=c
28492 ac_cpp='$CPP $CPPFLAGS'
28493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28496
28497
28498 fi
28499 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28500 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28501 if test "$ac_cv_cxx_namespaces" = yes; then
28502
28503 cat >>confdefs.h <<\_ACEOF
28504 #define HAVE_NAMESPACES
28505 _ACEOF
28506
28507 fi
28508
28509 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28510 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28511 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28512   echo $ECHO_N "(cached) $ECHO_C" >&6
28513 else
28514
28515   ac_ext=cc
28516 ac_cpp='$CXXCPP $CPPFLAGS'
28517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28520
28521   cat >conftest.$ac_ext <<_ACEOF
28522 /* confdefs.h.  */
28523 _ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h.  */
28527 #include <ext/hash_map>
28528 #ifdef HAVE_NAMESPACES
28529 using namespace std;
28530 #endif
28531 int
28532 main ()
28533 {
28534 hash_map<int, int> t;
28535   ;
28536   return 0;
28537 }
28538 _ACEOF
28539 rm -f conftest.$ac_objext
28540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28541   (eval $ac_compile) 2>conftest.er1
28542   ac_status=$?
28543   grep -v '^ *+' conftest.er1 >conftest.err
28544   rm -f conftest.er1
28545   cat conftest.err >&5
28546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547   (exit $ac_status); } &&
28548          { ac_try='test -z "$ac_cxx_werror_flag"
28549                          || test ! -s conftest.err'
28550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551   (eval $ac_try) 2>&5
28552   ac_status=$?
28553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554   (exit $ac_status); }; } &&
28555          { ac_try='test -s conftest.$ac_objext'
28556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557   (eval $ac_try) 2>&5
28558   ac_status=$?
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); }; }; then
28561   ac_cv_cxx_have_std_ext_hash_map=yes
28562 else
28563   echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 ac_cv_cxx_have_std_ext_hash_map=no
28567 fi
28568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28569   ac_ext=c
28570 ac_cpp='$CPP $CPPFLAGS'
28571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28574
28575 fi
28576 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28577 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28578  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28579  then
28580
28581 cat >>confdefs.h <<\_ACEOF
28582 #define HAVE_STD_EXT_HASH_MAP 1
28583 _ACEOF
28584
28585  else
28586
28587 cat >>confdefs.h <<\_ACEOF
28588 #define HAVE_STD_EXT_HASH_MAP 0
28589 _ACEOF
28590
28591  fi
28592
28593  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28594 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28595 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28596   echo $ECHO_N "(cached) $ECHO_C" >&6
28597 else
28598
28599   ac_ext=cc
28600 ac_cpp='$CXXCPP $CPPFLAGS'
28601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28604
28605   cat >conftest.$ac_ext <<_ACEOF
28606 /* confdefs.h.  */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h.  */
28611 #include <ext/hash_map>
28612 #ifdef HAVE_NAMESPACES
28613 using namespace __gnu_cxx;
28614 #endif
28615 int
28616 main ()
28617 {
28618 hash_map<int,int> t;
28619   ;
28620   return 0;
28621 }
28622 _ACEOF
28623 rm -f conftest.$ac_objext
28624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28625   (eval $ac_compile) 2>conftest.er1
28626   ac_status=$?
28627   grep -v '^ *+' conftest.er1 >conftest.err
28628   rm -f conftest.er1
28629   cat conftest.err >&5
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); } &&
28632          { ac_try='test -z "$ac_cxx_werror_flag"
28633                          || test ! -s conftest.err'
28634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635   (eval $ac_try) 2>&5
28636   ac_status=$?
28637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638   (exit $ac_status); }; } &&
28639          { ac_try='test -s conftest.$ac_objext'
28640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641   (eval $ac_try) 2>&5
28642   ac_status=$?
28643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644   (exit $ac_status); }; }; then
28645   ac_cv_cxx_have_gnu_ext_hash_map=yes
28646 else
28647   echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28649
28650 ac_cv_cxx_have_gnu_ext_hash_map=no
28651 fi
28652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28653   ac_ext=c
28654 ac_cpp='$CPP $CPPFLAGS'
28655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28658
28659 fi
28660 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28661 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28662  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28663  then
28664
28665 cat >>confdefs.h <<\_ACEOF
28666 #define HAVE_GNU_EXT_HASH_MAP 1
28667 _ACEOF
28668
28669  else
28670
28671 cat >>confdefs.h <<\_ACEOF
28672 #define HAVE_GNU_EXT_HASH_MAP 0
28673 _ACEOF
28674
28675  fi
28676
28677  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28678 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28679 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28680   echo $ECHO_N "(cached) $ECHO_C" >&6
28681 else
28682
28683   ac_ext=cc
28684 ac_cpp='$CXXCPP $CPPFLAGS'
28685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28688
28689   cat >conftest.$ac_ext <<_ACEOF
28690 /* confdefs.h.  */
28691 _ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h.  */
28695 #include <hash_map>
28696 int
28697 main ()
28698 {
28699 hash_map<int,int> t;
28700   ;
28701   return 0;
28702 }
28703 _ACEOF
28704 rm -f conftest.$ac_objext
28705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28706   (eval $ac_compile) 2>conftest.er1
28707   ac_status=$?
28708   grep -v '^ *+' conftest.er1 >conftest.err
28709   rm -f conftest.er1
28710   cat conftest.err >&5
28711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712   (exit $ac_status); } &&
28713          { ac_try='test -z "$ac_cxx_werror_flag"
28714                          || test ! -s conftest.err'
28715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716   (eval $ac_try) 2>&5
28717   ac_status=$?
28718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719   (exit $ac_status); }; } &&
28720          { ac_try='test -s conftest.$ac_objext'
28721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722   (eval $ac_try) 2>&5
28723   ac_status=$?
28724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725   (exit $ac_status); }; }; then
28726   ac_cv_cxx_have_global_hash_map=yes
28727 else
28728   echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28730
28731 ac_cv_cxx_have_global_hash_map=no
28732 fi
28733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28734   ac_ext=c
28735 ac_cpp='$CPP $CPPFLAGS'
28736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28739
28740 fi
28741 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28742 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28743  if test "$ac_cv_cxx_have_global_hash_map" = yes
28744  then
28745
28746 cat >>confdefs.h <<\_ACEOF
28747 #define HAVE_GLOBAL_HASH_MAP 1
28748 _ACEOF
28749
28750  else
28751
28752 cat >>confdefs.h <<\_ACEOF
28753 #define HAVE_GLOBAL_HASH_MAP 0
28754 _ACEOF
28755
28756  fi
28757
28758 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28759 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28760 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28761   echo $ECHO_N "(cached) $ECHO_C" >&6
28762 else
28763
28764   ac_ext=cc
28765 ac_cpp='$CXXCPP $CPPFLAGS'
28766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28769
28770   cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h.  */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h.  */
28776 #include <ext/hash_set>
28777 #ifdef HAVE_NAMESPACES
28778 using namespace std;
28779 #endif
28780 int
28781 main ()
28782 {
28783 hash_set<int> t;
28784   ;
28785   return 0;
28786 }
28787 _ACEOF
28788 rm -f conftest.$ac_objext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28790   (eval $ac_compile) 2>conftest.er1
28791   ac_status=$?
28792   grep -v '^ *+' conftest.er1 >conftest.err
28793   rm -f conftest.er1
28794   cat conftest.err >&5
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); } &&
28797          { ac_try='test -z "$ac_cxx_werror_flag"
28798                          || test ! -s conftest.err'
28799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800   (eval $ac_try) 2>&5
28801   ac_status=$?
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); }; } &&
28804          { ac_try='test -s conftest.$ac_objext'
28805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806   (eval $ac_try) 2>&5
28807   ac_status=$?
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); }; }; then
28810   ac_cv_cxx_have_std_ext_hash_set=yes
28811 else
28812   echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28814
28815 ac_cv_cxx_have_std_ext_hash_set=no
28816 fi
28817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28818   ac_ext=c
28819 ac_cpp='$CPP $CPPFLAGS'
28820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28823
28824 fi
28825 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28826 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28827  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28828  then
28829
28830 cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_STD_EXT_HASH_SET 1
28832 _ACEOF
28833
28834  else
28835
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_STD_EXT_HASH_SET 0
28838 _ACEOF
28839
28840  fi
28841
28842  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28843 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28844 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28845   echo $ECHO_N "(cached) $ECHO_C" >&6
28846 else
28847
28848   ac_ext=cc
28849 ac_cpp='$CXXCPP $CPPFLAGS'
28850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28853
28854   cat >conftest.$ac_ext <<_ACEOF
28855 /* confdefs.h.  */
28856 _ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h.  */
28860 #include <ext/hash_set>
28861 #ifdef HAVE_NAMESPACES
28862 using namespace __gnu_cxx;
28863 #endif
28864 int
28865 main ()
28866 {
28867 hash_set<int> t;
28868   ;
28869   return 0;
28870 }
28871 _ACEOF
28872 rm -f conftest.$ac_objext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28874   (eval $ac_compile) 2>conftest.er1
28875   ac_status=$?
28876   grep -v '^ *+' conftest.er1 >conftest.err
28877   rm -f conftest.er1
28878   cat conftest.err >&5
28879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880   (exit $ac_status); } &&
28881          { ac_try='test -z "$ac_cxx_werror_flag"
28882                          || test ! -s conftest.err'
28883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884   (eval $ac_try) 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; } &&
28888          { ac_try='test -s conftest.$ac_objext'
28889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890   (eval $ac_try) 2>&5
28891   ac_status=$?
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); }; }; then
28894   ac_cv_cxx_have_gnu_ext_hash_set=yes
28895 else
28896   echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28898
28899 ac_cv_cxx_have_gnu_ext_hash_set=no
28900 fi
28901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28902   ac_ext=c
28903 ac_cpp='$CPP $CPPFLAGS'
28904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28907
28908 fi
28909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28910 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28911  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28912  then
28913
28914 cat >>confdefs.h <<\_ACEOF
28915 #define HAVE_GNU_EXT_HASH_SET 1
28916 _ACEOF
28917
28918  else
28919
28920 cat >>confdefs.h <<\_ACEOF
28921 #define HAVE_GNU_EXT_HASH_SET 0
28922 _ACEOF
28923
28924  fi
28925
28926  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28927 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28928 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28929   echo $ECHO_N "(cached) $ECHO_C" >&6
28930 else
28931
28932   ac_ext=cc
28933 ac_cpp='$CXXCPP $CPPFLAGS'
28934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28937
28938   cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 #include <hash_set>
28945 int
28946 main ()
28947 {
28948 hash_set<int> t; return 0;
28949   ;
28950   return 0;
28951 }
28952 _ACEOF
28953 rm -f conftest.$ac_objext
28954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28955   (eval $ac_compile) 2>conftest.er1
28956   ac_status=$?
28957   grep -v '^ *+' conftest.er1 >conftest.err
28958   rm -f conftest.er1
28959   cat conftest.err >&5
28960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961   (exit $ac_status); } &&
28962          { ac_try='test -z "$ac_cxx_werror_flag"
28963                          || test ! -s conftest.err'
28964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965   (eval $ac_try) 2>&5
28966   ac_status=$?
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); }; } &&
28969          { ac_try='test -s conftest.$ac_objext'
28970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971   (eval $ac_try) 2>&5
28972   ac_status=$?
28973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974   (exit $ac_status); }; }; then
28975   ac_cv_cxx_have_global_hash_set=yes
28976 else
28977   echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28979
28980 ac_cv_cxx_have_global_hash_set=no
28981 fi
28982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28983   ac_ext=c
28984 ac_cpp='$CPP $CPPFLAGS'
28985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28988
28989 fi
28990 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28991 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28992  if test "$ac_cv_cxx_have_global_hash_set" = yes
28993  then
28994
28995 cat >>confdefs.h <<\_ACEOF
28996 #define HAVE_GLOBAL_HASH_SET 1
28997 _ACEOF
28998
28999  else
29000
29001 cat >>confdefs.h <<\_ACEOF
29002 #define HAVE_GLOBAL_HASH_SET 0
29003 _ACEOF
29004
29005  fi
29006
29007 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29008 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29009 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29010   echo $ECHO_N "(cached) $ECHO_C" >&6
29011 else
29012
29013   ac_ext=cc
29014 ac_cpp='$CXXCPP $CPPFLAGS'
29015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29018
29019   cat >conftest.$ac_ext <<_ACEOF
29020 /* confdefs.h.  */
29021 _ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h.  */
29025 #include <iterator>
29026 #ifdef HAVE_NAMESPACES
29027 using namespace std;
29028 #endif
29029 int
29030 main ()
29031 {
29032 iterator<int,int,int> t; return 0;
29033   ;
29034   return 0;
29035 }
29036 _ACEOF
29037 rm -f conftest.$ac_objext
29038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29039   (eval $ac_compile) 2>conftest.er1
29040   ac_status=$?
29041   grep -v '^ *+' conftest.er1 >conftest.err
29042   rm -f conftest.er1
29043   cat conftest.err >&5
29044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); } &&
29046          { ac_try='test -z "$ac_cxx_werror_flag"
29047                          || test ! -s conftest.err'
29048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049   (eval $ac_try) 2>&5
29050   ac_status=$?
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); }; } &&
29053          { ac_try='test -s conftest.$ac_objext'
29054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055   (eval $ac_try) 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); }; }; then
29059   ac_cv_cxx_have_std_iterator=yes
29060 else
29061   echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064 ac_cv_cxx_have_std_iterator=no
29065 fi
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29067   ac_ext=c
29068 ac_cpp='$CPP $CPPFLAGS'
29069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29072
29073
29074 fi
29075 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29076 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29077 if test "$ac_cv_cxx_have_std_iterator" = yes
29078 then
29079
29080 cat >>confdefs.h <<\_ACEOF
29081 #define HAVE_STD_ITERATOR 1
29082 _ACEOF
29083
29084 else
29085
29086 cat >>confdefs.h <<\_ACEOF
29087 #define HAVE_STD_ITERATOR 0
29088 _ACEOF
29089
29090 fi
29091
29092 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29093 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29094 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29095   echo $ECHO_N "(cached) $ECHO_C" >&6
29096 else
29097
29098   ac_ext=cc
29099 ac_cpp='$CXXCPP $CPPFLAGS'
29100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29103
29104   cat >conftest.$ac_ext <<_ACEOF
29105 /* confdefs.h.  */
29106 _ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h.  */
29110 #include <iterator>
29111 #ifdef HAVE_NAMESPACES
29112 using namespace std;
29113 #endif
29114 int
29115 main ()
29116 {
29117 bidirectional_iterator<int,int> t; return 0;
29118   ;
29119   return 0;
29120 }
29121 _ACEOF
29122 rm -f conftest.$ac_objext
29123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29124   (eval $ac_compile) 2>conftest.er1
29125   ac_status=$?
29126   grep -v '^ *+' conftest.er1 >conftest.err
29127   rm -f conftest.er1
29128   cat conftest.err >&5
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); } &&
29131          { ac_try='test -z "$ac_cxx_werror_flag"
29132                          || test ! -s conftest.err'
29133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134   (eval $ac_try) 2>&5
29135   ac_status=$?
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); }; } &&
29138          { ac_try='test -s conftest.$ac_objext'
29139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29140   (eval $ac_try) 2>&5
29141   ac_status=$?
29142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143   (exit $ac_status); }; }; then
29144   ac_cv_cxx_have_bi_iterator=yes
29145 else
29146   echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29148
29149 ac_cv_cxx_have_bi_iterator=no
29150 fi
29151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29152   ac_ext=c
29153 ac_cpp='$CPP $CPPFLAGS'
29154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29157
29158
29159 fi
29160 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29161 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29162 if test "$ac_cv_cxx_have_bi_iterator" = yes
29163 then
29164
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_BI_ITERATOR 1
29167 _ACEOF
29168
29169 else
29170
29171 cat >>confdefs.h <<\_ACEOF
29172 #define HAVE_BI_ITERATOR 0
29173 _ACEOF
29174
29175 fi
29176
29177 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29178 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29179 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29180   echo $ECHO_N "(cached) $ECHO_C" >&6
29181 else
29182
29183   ac_ext=cc
29184 ac_cpp='$CXXCPP $CPPFLAGS'
29185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29188
29189   cat >conftest.$ac_ext <<_ACEOF
29190 /* confdefs.h.  */
29191 _ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h.  */
29195 #include <iterator>
29196 #ifdef HAVE_NAMESPACES
29197 using namespace std;
29198 #endif
29199 int
29200 main ()
29201 {
29202 forward_iterator<int,int> t; return 0;
29203   ;
29204   return 0;
29205 }
29206 _ACEOF
29207 rm -f conftest.$ac_objext
29208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29209   (eval $ac_compile) 2>conftest.er1
29210   ac_status=$?
29211   grep -v '^ *+' conftest.er1 >conftest.err
29212   rm -f conftest.er1
29213   cat conftest.err >&5
29214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215   (exit $ac_status); } &&
29216          { ac_try='test -z "$ac_cxx_werror_flag"
29217                          || test ! -s conftest.err'
29218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29219   (eval $ac_try) 2>&5
29220   ac_status=$?
29221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222   (exit $ac_status); }; } &&
29223          { ac_try='test -s conftest.$ac_objext'
29224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225   (eval $ac_try) 2>&5
29226   ac_status=$?
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); }; }; then
29229   ac_cv_cxx_have_fwd_iterator=yes
29230 else
29231   echo "$as_me: failed program was:" >&5
29232 sed 's/^/| /' conftest.$ac_ext >&5
29233
29234 ac_cv_cxx_have_fwd_iterator=no
29235 fi
29236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29237   ac_ext=c
29238 ac_cpp='$CPP $CPPFLAGS'
29239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29242
29243
29244 fi
29245 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29246 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29247 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29248 then
29249
29250 cat >>confdefs.h <<\_ACEOF
29251 #define HAVE_FWD_ITERATOR 1
29252 _ACEOF
29253
29254 else
29255
29256 cat >>confdefs.h <<\_ACEOF
29257 #define HAVE_FWD_ITERATOR 0
29258 _ACEOF
29259
29260 fi
29261
29262
29263 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29264 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29265 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29266   echo $ECHO_N "(cached) $ECHO_C" >&6
29267 else
29268   ac_ext=cc
29269 ac_cpp='$CXXCPP $CPPFLAGS'
29270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29273
29274    cat >conftest.$ac_ext <<_ACEOF
29275 /* confdefs.h.  */
29276 _ACEOF
29277 cat confdefs.h >>conftest.$ac_ext
29278 cat >>conftest.$ac_ext <<_ACEOF
29279 /* end confdefs.h.  */
29280 #include <math.h>
29281 int
29282 main ()
29283 {
29284 float f; isnan(f);
29285   ;
29286   return 0;
29287 }
29288 _ACEOF
29289 rm -f conftest.$ac_objext
29290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29291   (eval $ac_compile) 2>conftest.er1
29292   ac_status=$?
29293   grep -v '^ *+' conftest.er1 >conftest.err
29294   rm -f conftest.er1
29295   cat conftest.err >&5
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); } &&
29298          { ac_try='test -z "$ac_cxx_werror_flag"
29299                          || test ! -s conftest.err'
29300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301   (eval $ac_try) 2>&5
29302   ac_status=$?
29303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304   (exit $ac_status); }; } &&
29305          { ac_try='test -s conftest.$ac_objext'
29306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307   (eval $ac_try) 2>&5
29308   ac_status=$?
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); }; }; then
29311   ac_cv_func_isnan_in_math_h=yes
29312 else
29313   echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315
29316 ac_cv_func_isnan_in_math_h=no
29317 fi
29318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29319   ac_ext=c
29320 ac_cpp='$CPP $CPPFLAGS'
29321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29324
29325 fi
29326 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29327 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29328
29329
29330 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29331
29332 cat >>confdefs.h <<\_ACEOF
29333 #define HAVE_ISNAN_IN_MATH_H 1
29334 _ACEOF
29335
29336 fi
29337
29338 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29339 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29340 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29341   echo $ECHO_N "(cached) $ECHO_C" >&6
29342 else
29343   ac_ext=cc
29344 ac_cpp='$CXXCPP $CPPFLAGS'
29345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29348
29349    cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h.  */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h.  */
29355 #include <cmath>
29356 int
29357 main ()
29358 {
29359 float f; isnan(f);
29360   ;
29361   return 0;
29362 }
29363 _ACEOF
29364 rm -f conftest.$ac_objext
29365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29366   (eval $ac_compile) 2>conftest.er1
29367   ac_status=$?
29368   grep -v '^ *+' conftest.er1 >conftest.err
29369   rm -f conftest.er1
29370   cat conftest.err >&5
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); } &&
29373          { ac_try='test -z "$ac_cxx_werror_flag"
29374                          || test ! -s conftest.err'
29375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376   (eval $ac_try) 2>&5
29377   ac_status=$?
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); }; } &&
29380          { ac_try='test -s conftest.$ac_objext'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; }; then
29386   ac_cv_func_isnan_in_cmath=yes
29387 else
29388   echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29390
29391 ac_cv_func_isnan_in_cmath=no
29392 fi
29393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29394   ac_ext=c
29395 ac_cpp='$CPP $CPPFLAGS'
29396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29399
29400 fi
29401 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29402 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29403
29404 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29405
29406 cat >>confdefs.h <<\_ACEOF
29407 #define HAVE_ISNAN_IN_CMATH 1
29408 _ACEOF
29409
29410 fi
29411
29412 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29413 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29414 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417   ac_ext=cc
29418 ac_cpp='$CXXCPP $CPPFLAGS'
29419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29422
29423    cat >conftest.$ac_ext <<_ACEOF
29424 /* confdefs.h.  */
29425 _ACEOF
29426 cat confdefs.h >>conftest.$ac_ext
29427 cat >>conftest.$ac_ext <<_ACEOF
29428 /* end confdefs.h.  */
29429 #include <cmath>
29430 int
29431 main ()
29432 {
29433 float f; std::isnan(f);
29434   ;
29435   return 0;
29436 }
29437 _ACEOF
29438 rm -f conftest.$ac_objext
29439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29440   (eval $ac_compile) 2>conftest.er1
29441   ac_status=$?
29442   grep -v '^ *+' conftest.er1 >conftest.err
29443   rm -f conftest.er1
29444   cat conftest.err >&5
29445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446   (exit $ac_status); } &&
29447          { ac_try='test -z "$ac_cxx_werror_flag"
29448                          || test ! -s conftest.err'
29449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29450   (eval $ac_try) 2>&5
29451   ac_status=$?
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); }; } &&
29454          { ac_try='test -s conftest.$ac_objext'
29455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456   (eval $ac_try) 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; }; then
29460   ac_cv_func_std_isnan_in_cmath=yes
29461 else
29462   echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29464
29465 ac_cv_func_std_isnan_in_cmath=no
29466 fi
29467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29468   ac_ext=c
29469 ac_cpp='$CPP $CPPFLAGS'
29470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29473
29474 fi
29475 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29476 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29477
29478 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29479
29480 cat >>confdefs.h <<\_ACEOF
29481 #define HAVE_STD_ISNAN_IN_CMATH 1
29482 _ACEOF
29483
29484 fi
29485
29486
29487 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29488 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29489 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29490   echo $ECHO_N "(cached) $ECHO_C" >&6
29491 else
29492   ac_ext=cc
29493 ac_cpp='$CXXCPP $CPPFLAGS'
29494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29497
29498    cat >conftest.$ac_ext <<_ACEOF
29499 /* confdefs.h.  */
29500 _ACEOF
29501 cat confdefs.h >>conftest.$ac_ext
29502 cat >>conftest.$ac_ext <<_ACEOF
29503 /* end confdefs.h.  */
29504 #include <math.h>
29505 int
29506 main ()
29507 {
29508 float f; isinf(f);
29509   ;
29510   return 0;
29511 }
29512 _ACEOF
29513 rm -f conftest.$ac_objext
29514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29515   (eval $ac_compile) 2>conftest.er1
29516   ac_status=$?
29517   grep -v '^ *+' conftest.er1 >conftest.err
29518   rm -f conftest.er1
29519   cat conftest.err >&5
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); } &&
29522          { ac_try='test -z "$ac_cxx_werror_flag"
29523                          || test ! -s conftest.err'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; } &&
29529          { ac_try='test -s conftest.$ac_objext'
29530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531   (eval $ac_try) 2>&5
29532   ac_status=$?
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); }; }; then
29535   ac_cv_func_isinf_in_math_h=yes
29536 else
29537   echo "$as_me: failed program was:" >&5
29538 sed 's/^/| /' conftest.$ac_ext >&5
29539
29540 ac_cv_func_isinf_in_math_h=no
29541 fi
29542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29543   ac_ext=c
29544 ac_cpp='$CPP $CPPFLAGS'
29545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29548
29549 fi
29550 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29551 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29552
29553 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29554
29555 cat >>confdefs.h <<\_ACEOF
29556 #define HAVE_ISINF_IN_MATH_H 1
29557 _ACEOF
29558
29559 fi
29560
29561 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29562 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29563 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29564   echo $ECHO_N "(cached) $ECHO_C" >&6
29565 else
29566   ac_ext=cc
29567 ac_cpp='$CXXCPP $CPPFLAGS'
29568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29571
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 <cmath>
29579 int
29580 main ()
29581 {
29582 float f; isinf(f);
29583   ;
29584   return 0;
29585 }
29586 _ACEOF
29587 rm -f conftest.$ac_objext
29588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29589   (eval $ac_compile) 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_cxx_werror_flag"
29597                          || test ! -s conftest.err'
29598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599   (eval $ac_try) 2>&5
29600   ac_status=$?
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); }; } &&
29603          { ac_try='test -s conftest.$ac_objext'
29604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605   (eval $ac_try) 2>&5
29606   ac_status=$?
29607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608   (exit $ac_status); }; }; then
29609   ac_cv_func_isinf_in_cmath=yes
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614 ac_cv_func_isinf_in_cmath=no
29615 fi
29616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29617   ac_ext=c
29618 ac_cpp='$CPP $CPPFLAGS'
29619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29622
29623 fi
29624 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29625 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29626
29627 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29628
29629 cat >>confdefs.h <<\_ACEOF
29630 #define HAVE_ISINF_IN_CMATH 1
29631 _ACEOF
29632
29633 fi
29634
29635 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29636 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29637 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29638   echo $ECHO_N "(cached) $ECHO_C" >&6
29639 else
29640   ac_ext=cc
29641 ac_cpp='$CXXCPP $CPPFLAGS'
29642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29645
29646    cat >conftest.$ac_ext <<_ACEOF
29647 /* confdefs.h.  */
29648 _ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h.  */
29652 #include <cmath>
29653 int
29654 main ()
29655 {
29656 float f; std::isinf(f)}
29657   ;
29658   return 0;
29659 }
29660 _ACEOF
29661 rm -f conftest.$ac_objext
29662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29663   (eval $ac_compile) 2>conftest.er1
29664   ac_status=$?
29665   grep -v '^ *+' conftest.er1 >conftest.err
29666   rm -f conftest.er1
29667   cat conftest.err >&5
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); } &&
29670          { ac_try='test -z "$ac_cxx_werror_flag"
29671                          || test ! -s conftest.err'
29672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673   (eval $ac_try) 2>&5
29674   ac_status=$?
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); }; } &&
29677          { ac_try='test -s conftest.$ac_objext'
29678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679   (eval $ac_try) 2>&5
29680   ac_status=$?
29681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682   (exit $ac_status); }; }; then
29683   ac_cv_func_std_isinf_in_cmath=yes
29684 else
29685   echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29687
29688 ac_cv_func_std_isinf_in_cmath=no
29689 fi
29690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29691   ac_ext=c
29692 ac_cpp='$CPP $CPPFLAGS'
29693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29696
29697 fi
29698 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29699 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29700
29701 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29702
29703 cat >>confdefs.h <<\_ACEOF
29704 #define HAVE_STD_ISINF_IN_CMATH 1
29705 _ACEOF
29706
29707 fi
29708
29709 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29710 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29711 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29712   echo $ECHO_N "(cached) $ECHO_C" >&6
29713 else
29714   ac_ext=cc
29715 ac_cpp='$CXXCPP $CPPFLAGS'
29716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29719
29720    cat >conftest.$ac_ext <<_ACEOF
29721 /* confdefs.h.  */
29722 _ACEOF
29723 cat confdefs.h >>conftest.$ac_ext
29724 cat >>conftest.$ac_ext <<_ACEOF
29725 /* end confdefs.h.  */
29726 #include <ieeefp.h>
29727 int
29728 main ()
29729 {
29730 float f; finite(f);
29731   ;
29732   return 0;
29733 }
29734 _ACEOF
29735 rm -f conftest.$ac_objext
29736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29737   (eval $ac_compile) 2>conftest.er1
29738   ac_status=$?
29739   grep -v '^ *+' conftest.er1 >conftest.err
29740   rm -f conftest.er1
29741   cat conftest.err >&5
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); } &&
29744          { ac_try='test -z "$ac_cxx_werror_flag"
29745                          || test ! -s conftest.err'
29746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747   (eval $ac_try) 2>&5
29748   ac_status=$?
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); }; } &&
29751          { ac_try='test -s conftest.$ac_objext'
29752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29753   (eval $ac_try) 2>&5
29754   ac_status=$?
29755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); }; }; then
29757   ac_cv_func_finite_in_ieeefp_h=yes
29758 else
29759   echo "$as_me: failed program was:" >&5
29760 sed 's/^/| /' conftest.$ac_ext >&5
29761
29762 ac_cv_func_finite_in_ieeefp_h=no
29763 fi
29764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29765   ac_ext=c
29766 ac_cpp='$CPP $CPPFLAGS'
29767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29770
29771 fi
29772 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29773 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29774
29775 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29776
29777 cat >>confdefs.h <<\_ACEOF
29778 #define HAVE_FINITE_IN_IEEEFP_H 1
29779 _ACEOF
29780
29781 fi
29782
29783
29784
29785
29786
29787 for ac_header in stdlib.h unistd.h
29788 do
29789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29791   echo "$as_me:$LINENO: checking for $ac_header" >&5
29792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29794   echo $ECHO_N "(cached) $ECHO_C" >&6
29795 fi
29796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29798 else
29799   # Is the header compilable?
29800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29802 cat >conftest.$ac_ext <<_ACEOF
29803 /* confdefs.h.  */
29804 _ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h.  */
29808 $ac_includes_default
29809 #include <$ac_header>
29810 _ACEOF
29811 rm -f conftest.$ac_objext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29813   (eval $ac_compile) 2>conftest.er1
29814   ac_status=$?
29815   grep -v '^ *+' conftest.er1 >conftest.err
29816   rm -f conftest.er1
29817   cat conftest.err >&5
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); } &&
29820          { ac_try='test -z "$ac_c_werror_flag"
29821                          || test ! -s conftest.err'
29822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823   (eval $ac_try) 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; } &&
29827          { ac_try='test -s conftest.$ac_objext'
29828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829   (eval $ac_try) 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; }; then
29833   ac_header_compiler=yes
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838 ac_header_compiler=no
29839 fi
29840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29842 echo "${ECHO_T}$ac_header_compiler" >&6
29843
29844 # Is the header present?
29845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29847 cat >conftest.$ac_ext <<_ACEOF
29848 /* confdefs.h.  */
29849 _ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h.  */
29853 #include <$ac_header>
29854 _ACEOF
29855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29857   ac_status=$?
29858   grep -v '^ *+' conftest.er1 >conftest.err
29859   rm -f conftest.er1
29860   cat conftest.err >&5
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); } >/dev/null; then
29863   if test -s conftest.err; then
29864     ac_cpp_err=$ac_c_preproc_warn_flag
29865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29866   else
29867     ac_cpp_err=
29868   fi
29869 else
29870   ac_cpp_err=yes
29871 fi
29872 if test -z "$ac_cpp_err"; then
29873   ac_header_preproc=yes
29874 else
29875   echo "$as_me: failed program was:" >&5
29876 sed 's/^/| /' conftest.$ac_ext >&5
29877
29878   ac_header_preproc=no
29879 fi
29880 rm -f conftest.err conftest.$ac_ext
29881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29882 echo "${ECHO_T}$ac_header_preproc" >&6
29883
29884 # So?  What about this header?
29885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29886   yes:no: )
29887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29891     ac_header_preproc=yes
29892     ;;
29893   no:yes:* )
29894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29906     (
29907       cat <<\_ASBOX
29908 ## ----------------------------------- ##
29909 ## Report this to llvmbugs@cs.uiuc.edu ##
29910 ## ----------------------------------- ##
29911 _ASBOX
29912     ) |
29913       sed "s/^/$as_me: WARNING:     /" >&2
29914     ;;
29915 esac
29916 echo "$as_me:$LINENO: checking for $ac_header" >&5
29917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29919   echo $ECHO_N "(cached) $ECHO_C" >&6
29920 else
29921   eval "$as_ac_Header=\$ac_header_preproc"
29922 fi
29923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29925
29926 fi
29927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29928   cat >>confdefs.h <<_ACEOF
29929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29930 _ACEOF
29931
29932 fi
29933
29934 done
29935
29936
29937 for ac_func in getpagesize
29938 do
29939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29940 echo "$as_me:$LINENO: checking for $ac_func" >&5
29941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29942 if eval "test \"\${$as_ac_var+set}\" = set"; then
29943   echo $ECHO_N "(cached) $ECHO_C" >&6
29944 else
29945   cat >conftest.$ac_ext <<_ACEOF
29946 /* confdefs.h.  */
29947 _ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h.  */
29951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29953 #define $ac_func innocuous_$ac_func
29954
29955 /* System header to define __stub macros and hopefully few prototypes,
29956     which can conflict with char $ac_func (); below.
29957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29958     <limits.h> exists even on freestanding compilers.  */
29959
29960 #ifdef __STDC__
29961 # include <limits.h>
29962 #else
29963 # include <assert.h>
29964 #endif
29965
29966 #undef $ac_func
29967
29968 /* Override any gcc2 internal prototype to avoid an error.  */
29969 #ifdef __cplusplus
29970 extern "C"
29971 {
29972 #endif
29973 /* We use char because int might match the return type of a gcc2
29974    builtin and then its argument prototype would still apply.  */
29975 char $ac_func ();
29976 /* The GNU C library defines this for functions which it implements
29977     to always fail with ENOSYS.  Some functions are actually named
29978     something starting with __ and the normal name is an alias.  */
29979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29980 choke me
29981 #else
29982 char (*f) () = $ac_func;
29983 #endif
29984 #ifdef __cplusplus
29985 }
29986 #endif
29987
29988 int
29989 main ()
29990 {
29991 return f != $ac_func;
29992   ;
29993   return 0;
29994 }
29995 _ACEOF
29996 rm -f conftest.$ac_objext conftest$ac_exeext
29997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29998   (eval $ac_link) 2>conftest.er1
29999   ac_status=$?
30000   grep -v '^ *+' conftest.er1 >conftest.err
30001   rm -f conftest.er1
30002   cat conftest.err >&5
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); } &&
30005          { ac_try='test -z "$ac_c_werror_flag"
30006                          || test ! -s conftest.err'
30007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008   (eval $ac_try) 2>&5
30009   ac_status=$?
30010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011   (exit $ac_status); }; } &&
30012          { ac_try='test -s conftest$ac_exeext'
30013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30014   (eval $ac_try) 2>&5
30015   ac_status=$?
30016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017   (exit $ac_status); }; }; then
30018   eval "$as_ac_var=yes"
30019 else
30020   echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30022
30023 eval "$as_ac_var=no"
30024 fi
30025 rm -f conftest.err conftest.$ac_objext \
30026       conftest$ac_exeext conftest.$ac_ext
30027 fi
30028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30030 if test `eval echo '${'$as_ac_var'}'` = yes; then
30031   cat >>confdefs.h <<_ACEOF
30032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30033 _ACEOF
30034
30035 fi
30036 done
30037
30038 echo "$as_me:$LINENO: checking for working mmap" >&5
30039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30041   echo $ECHO_N "(cached) $ECHO_C" >&6
30042 else
30043   if test "$cross_compiling" = yes; then
30044   ac_cv_func_mmap_fixed_mapped=no
30045 else
30046   cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052 $ac_includes_default
30053 /* malloc might have been renamed as rpl_malloc. */
30054 #undef malloc
30055
30056 /* Thanks to Mike Haertel and Jim Avera for this test.
30057    Here is a matrix of mmap possibilities:
30058         mmap private not fixed
30059         mmap private fixed at somewhere currently unmapped
30060         mmap private fixed at somewhere already mapped
30061         mmap shared not fixed
30062         mmap shared fixed at somewhere currently unmapped
30063         mmap shared fixed at somewhere already mapped
30064    For private mappings, we should verify that changes cannot be read()
30065    back from the file, nor mmap's back from the file at a different
30066    address.  (There have been systems where private was not correctly
30067    implemented like the infamous i386 svr4.0, and systems where the
30068    VM page cache was not coherent with the file system buffer cache
30069    like early versions of FreeBSD and possibly contemporary NetBSD.)
30070    For shared mappings, we should conversely verify that changes get
30071    propagated back to all the places they're supposed to be.
30072
30073    Grep wants private fixed already mapped.
30074    The main things grep needs to know about mmap are:
30075    * does it exist and is it safe to write into the mmap'd area
30076    * how to use it (BSD variants)  */
30077
30078 #include <fcntl.h>
30079 #include <sys/mman.h>
30080
30081 #if !STDC_HEADERS && !HAVE_STDLIB_H
30082 char *malloc ();
30083 #endif
30084
30085 /* This mess was copied from the GNU getpagesize.h.  */
30086 #if !HAVE_GETPAGESIZE
30087 /* Assume that all systems that can run configure have sys/param.h.  */
30088 # if !HAVE_SYS_PARAM_H
30089 #  define HAVE_SYS_PARAM_H 1
30090 # endif
30091
30092 # ifdef _SC_PAGESIZE
30093 #  define getpagesize() sysconf(_SC_PAGESIZE)
30094 # else /* no _SC_PAGESIZE */
30095 #  if HAVE_SYS_PARAM_H
30096 #   include <sys/param.h>
30097 #   ifdef EXEC_PAGESIZE
30098 #    define getpagesize() EXEC_PAGESIZE
30099 #   else /* no EXEC_PAGESIZE */
30100 #    ifdef NBPG
30101 #     define getpagesize() NBPG * CLSIZE
30102 #     ifndef CLSIZE
30103 #      define CLSIZE 1
30104 #     endif /* no CLSIZE */
30105 #    else /* no NBPG */
30106 #     ifdef NBPC
30107 #      define getpagesize() NBPC
30108 #     else /* no NBPC */
30109 #      ifdef PAGESIZE
30110 #       define getpagesize() PAGESIZE
30111 #      endif /* PAGESIZE */
30112 #     endif /* no NBPC */
30113 #    endif /* no NBPG */
30114 #   endif /* no EXEC_PAGESIZE */
30115 #  else /* no HAVE_SYS_PARAM_H */
30116 #   define getpagesize() 8192   /* punt totally */
30117 #  endif /* no HAVE_SYS_PARAM_H */
30118 # endif /* no _SC_PAGESIZE */
30119
30120 #endif /* no HAVE_GETPAGESIZE */
30121
30122 int
30123 main ()
30124 {
30125   char *data, *data2, *data3;
30126   int i, pagesize;
30127   int fd;
30128
30129   pagesize = getpagesize ();
30130
30131   /* First, make a file with some known garbage in it. */
30132   data = (char *) malloc (pagesize);
30133   if (!data)
30134     exit (1);
30135   for (i = 0; i < pagesize; ++i)
30136     *(data + i) = rand ();
30137   umask (0);
30138   fd = creat ("conftest.mmap", 0600);
30139   if (fd < 0)
30140     exit (1);
30141   if (write (fd, data, pagesize) != pagesize)
30142     exit (1);
30143   close (fd);
30144
30145   /* Next, try to mmap the file at a fixed address which already has
30146      something else allocated at it.  If we can, also make sure that
30147      we see the same garbage.  */
30148   fd = open ("conftest.mmap", O_RDWR);
30149   if (fd < 0)
30150     exit (1);
30151   data2 = (char *) malloc (2 * pagesize);
30152   if (!data2)
30153     exit (1);
30154   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30155   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30156                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30157     exit (1);
30158   for (i = 0; i < pagesize; ++i)
30159     if (*(data + i) != *(data2 + i))
30160       exit (1);
30161
30162   /* Finally, make sure that changes to the mapped area do not
30163      percolate back to the file as seen by read().  (This is a bug on
30164      some variants of i386 svr4.0.)  */
30165   for (i = 0; i < pagesize; ++i)
30166     *(data2 + i) = *(data2 + i) + 1;
30167   data3 = (char *) malloc (pagesize);
30168   if (!data3)
30169     exit (1);
30170   if (read (fd, data3, pagesize) != pagesize)
30171     exit (1);
30172   for (i = 0; i < pagesize; ++i)
30173     if (*(data + i) != *(data3 + i))
30174       exit (1);
30175   close (fd);
30176   exit (0);
30177 }
30178 _ACEOF
30179 rm -f conftest$ac_exeext
30180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30181   (eval $ac_link) 2>&5
30182   ac_status=$?
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186   (eval $ac_try) 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; }; then
30190   ac_cv_func_mmap_fixed_mapped=yes
30191 else
30192   echo "$as_me: program exited with status $ac_status" >&5
30193 echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30195
30196 ( exit $ac_status )
30197 ac_cv_func_mmap_fixed_mapped=no
30198 fi
30199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30200 fi
30201 fi
30202 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30203 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30204 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30205
30206 cat >>confdefs.h <<\_ACEOF
30207 #define HAVE_MMAP 1
30208 _ACEOF
30209
30210 fi
30211 rm -f conftest.mmap
30212
30213 echo "$as_me:$LINENO: checking for mmap of files" >&5
30214 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30215 if test "${ac_cv_func_mmap_file+set}" = set; then
30216   echo $ECHO_N "(cached) $ECHO_C" >&6
30217 else
30218    ac_ext=c
30219 ac_cpp='$CPP $CPPFLAGS'
30220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30223
30224   if test "$cross_compiling" = yes; then
30225   ac_cv_func_mmap_file=no
30226 else
30227   cat >conftest.$ac_ext <<_ACEOF
30228
30229     /* confdefs.h.  */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h.  */
30234
30235 #include <sys/types.h>
30236 #include <sys/mman.h>
30237 #include <fcntl.h>
30238
30239 int
30240 main ()
30241 {
30242
30243   int fd;
30244   fd = creat ("foo",0777);
30245   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30246   unlink ("foo");
30247   return (fd != (int) MAP_FAILED);
30248   ;
30249   return 0;
30250 }
30251 _ACEOF
30252 rm -f conftest$ac_exeext
30253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30254   (eval $ac_link) 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259   (eval $ac_try) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); }; }; then
30263   ac_cv_func_mmap_file=yes
30264 else
30265   echo "$as_me: program exited with status $ac_status" >&5
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269 ( exit $ac_status )
30270 ac_cv_func_mmap_file=no
30271 fi
30272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30273 fi
30274   ac_ext=c
30275 ac_cpp='$CPP $CPPFLAGS'
30276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30279
30280
30281 fi
30282 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30283 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30284 if test "$ac_cv_func_mmap_file" = yes; then
30285
30286 cat >>confdefs.h <<\_ACEOF
30287 #define HAVE_MMAP_FILE
30288 _ACEOF
30289
30290    MMAP_FILE=yes
30291
30292 fi
30293
30294 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30295 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30296 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30297   echo $ECHO_N "(cached) $ECHO_C" >&6
30298 else
30299   if test "$llvm_cv_os_type" = "Interix" ; then
30300    ac_cv_need_dev_zero_for_mmap=yes
30301  else
30302    ac_cv_need_dev_zero_for_mmap=no
30303  fi
30304
30305 fi
30306 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30307 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30308 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30309
30310 cat >>confdefs.h <<\_ACEOF
30311 #define NEED_DEV_ZERO_FOR_MMAP 1
30312 _ACEOF
30313
30314 fi
30315 echo "$as_me:$LINENO: checking for mprotect" >&5
30316 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30317 if test "${ac_cv_func_mprotect+set}" = set; then
30318   echo $ECHO_N "(cached) $ECHO_C" >&6
30319 else
30320   cat >conftest.$ac_ext <<_ACEOF
30321 /* confdefs.h.  */
30322 _ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h.  */
30326 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30328 #define mprotect innocuous_mprotect
30329
30330 /* System header to define __stub macros and hopefully few prototypes,
30331     which can conflict with char mprotect (); below.
30332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30333     <limits.h> exists even on freestanding compilers.  */
30334
30335 #ifdef __STDC__
30336 # include <limits.h>
30337 #else
30338 # include <assert.h>
30339 #endif
30340
30341 #undef mprotect
30342
30343 /* Override any gcc2 internal prototype to avoid an error.  */
30344 #ifdef __cplusplus
30345 extern "C"
30346 {
30347 #endif
30348 /* We use char because int might match the return type of a gcc2
30349    builtin and then its argument prototype would still apply.  */
30350 char mprotect ();
30351 /* The GNU C library defines this for functions which it implements
30352     to always fail with ENOSYS.  Some functions are actually named
30353     something starting with __ and the normal name is an alias.  */
30354 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30355 choke me
30356 #else
30357 char (*f) () = mprotect;
30358 #endif
30359 #ifdef __cplusplus
30360 }
30361 #endif
30362
30363 int
30364 main ()
30365 {
30366 return f != mprotect;
30367   ;
30368   return 0;
30369 }
30370 _ACEOF
30371 rm -f conftest.$ac_objext conftest$ac_exeext
30372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30373   (eval $ac_link) 2>conftest.er1
30374   ac_status=$?
30375   grep -v '^ *+' conftest.er1 >conftest.err
30376   rm -f conftest.er1
30377   cat conftest.err >&5
30378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379   (exit $ac_status); } &&
30380          { ac_try='test -z "$ac_c_werror_flag"
30381                          || test ! -s conftest.err'
30382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383   (eval $ac_try) 2>&5
30384   ac_status=$?
30385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386   (exit $ac_status); }; } &&
30387          { ac_try='test -s conftest$ac_exeext'
30388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389   (eval $ac_try) 2>&5
30390   ac_status=$?
30391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); }; }; then
30393   ac_cv_func_mprotect=yes
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30397
30398 ac_cv_func_mprotect=no
30399 fi
30400 rm -f conftest.err conftest.$ac_objext \
30401       conftest$ac_exeext conftest.$ac_ext
30402 fi
30403 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30404 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30405 if test $ac_cv_func_mprotect = yes; then
30406   :
30407 else
30408   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30409 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30410    { (exit 1); exit 1; }; }
30411 fi
30412
30413
30414 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30415 then
30416   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30417 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30418 fi
30419 if test "$ac_cv_func_mmap_file" = "no"
30420 then
30421   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30422 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30423 fi
30424
30425
30426 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30427 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30428 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30429   echo $ECHO_N "(cached) $ECHO_C" >&6
30430 else
30431   llvm_cv_llvmgcc_sanity="no"
30432 if test -x "$LLVMGCC" ; then
30433   cp /dev/null conftest.c
30434   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30435   if test $? -eq 0 ; then
30436     llvm_cv_llvmgcc_sanity="yes"
30437   fi
30438   rm conftest.c
30439 fi
30440 fi
30441 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30442 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30443
30444 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30445   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30446   LLVMCC1=$llvmcc1path
30447
30448   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30449   LLVMCC1PLUS=$llvmcc1pluspath
30450
30451   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30452   LLVMGCCDIR=$llvmgccdir
30453
30454 fi
30455
30456 SHLIBEXT=$libltdl_cv_shlibext
30457
30458
30459 # Translate the various configuration directories and other basic
30460 # information into substitutions that will end up in Makefile.config.in
30461 # that these configured values can be used by the makefiles
30462 eval LLVM_PREFIX="${prefix}";
30463 eval LLVM_BINDIR="${prefix}/bin";
30464 eval LLVM_LIBDIR="${prefix}/lib";
30465 eval LLVM_DATADIR="${prefix}/share/llvm";
30466 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30467 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30468 eval LLVM_INCLUDEDIR="${prefix}/include";
30469 eval LLVM_INFODIR="${prefix}/info";
30470 eval LLVM_MANDIR="${prefix}/man";
30471 LLVM_CONFIGTIME=`date`
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483 # Place the various directores into the config.h file as #defines so that we
30484 # can know about the installation paths within LLVM.
30485
30486 cat >>confdefs.h <<_ACEOF
30487 #define LLVM_PREFIX "$LLVM_PREFIX"
30488 _ACEOF
30489
30490
30491 cat >>confdefs.h <<_ACEOF
30492 #define LLVM_BINDIR "$LLVM_BINDIR"
30493 _ACEOF
30494
30495
30496 cat >>confdefs.h <<_ACEOF
30497 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30498 _ACEOF
30499
30500
30501 cat >>confdefs.h <<_ACEOF
30502 #define LLVM_DATADIR "$LLVM_DATADIR"
30503 _ACEOF
30504
30505
30506 cat >>confdefs.h <<_ACEOF
30507 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30508 _ACEOF
30509
30510
30511 cat >>confdefs.h <<_ACEOF
30512 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30513 _ACEOF
30514
30515
30516 cat >>confdefs.h <<_ACEOF
30517 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30518 _ACEOF
30519
30520
30521 cat >>confdefs.h <<_ACEOF
30522 #define LLVM_INFODIR "$LLVM_INFODIR"
30523 _ACEOF
30524
30525
30526 cat >>confdefs.h <<_ACEOF
30527 #define LLVM_MANDIR "$LLVM_MANDIR"
30528 _ACEOF
30529
30530
30531 cat >>confdefs.h <<_ACEOF
30532 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30533 _ACEOF
30534
30535
30536
30537           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30538
30539           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30540
30541           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30542
30543           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30544
30545           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30546
30547
30548           ac_config_files="$ac_config_files Makefile.config"
30549
30550
30551           ac_config_files="$ac_config_files docs/doxygen.cfg"
30552
30553
30554           ac_config_commands="$ac_config_commands setup"
30555
30556           ac_config_commands="$ac_config_commands Makefile"
30557
30558
30559           ac_config_commands="$ac_config_commands Makefile.common"
30560
30561
30562           ac_config_commands="$ac_config_commands examples/Makefile"
30563
30564
30565           ac_config_commands="$ac_config_commands lib/Makefile"
30566
30567
30568           ac_config_commands="$ac_config_commands runtime/Makefile"
30569
30570
30571           ac_config_commands="$ac_config_commands test/Makefile"
30572
30573
30574           ac_config_commands="$ac_config_commands test/Makefile.tests"
30575
30576
30577           ac_config_commands="$ac_config_commands tools/Makefile"
30578
30579
30580           ac_config_commands="$ac_config_commands utils/Makefile"
30581
30582
30583           ac_config_commands="$ac_config_commands projects/Makefile"
30584
30585
30586
30587 cat >confcache <<\_ACEOF
30588 # This file is a shell script that caches the results of configure
30589 # tests run on this system so they can be shared between configure
30590 # scripts and configure runs, see configure's option --config-cache.
30591 # It is not useful on other systems.  If it contains results you don't
30592 # want to keep, you may remove or edit it.
30593 #
30594 # config.status only pays attention to the cache file if you give it
30595 # the --recheck option to rerun configure.
30596 #
30597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30599 # following values.
30600
30601 _ACEOF
30602
30603 # The following way of writing the cache mishandles newlines in values,
30604 # but we know of no workaround that is simple, portable, and efficient.
30605 # So, don't put newlines in cache variables' values.
30606 # Ultrix sh set writes to stderr and can't be redirected directly,
30607 # and sets the high bit in the cache file unless we assign to the vars.
30608 {
30609   (set) 2>&1 |
30610     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30611     *ac_space=\ *)
30612       # `set' does not quote correctly, so add quotes (double-quote
30613       # substitution turns \\\\ into \\, and sed turns \\ into \).
30614       sed -n \
30615         "s/'/'\\\\''/g;
30616           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30617       ;;
30618     *)
30619       # `set' quotes correctly as required by POSIX, so do not add quotes.
30620       sed -n \
30621         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30622       ;;
30623     esac;
30624 } |
30625   sed '
30626      t clear
30627      : clear
30628      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30629      t end
30630      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30631      : end' >>confcache
30632 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30633   if test -w $cache_file; then
30634     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30635     cat confcache >$cache_file
30636   else
30637     echo "not updating unwritable cache $cache_file"
30638   fi
30639 fi
30640 rm -f confcache
30641
30642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30643 # Let make expand exec_prefix.
30644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30645
30646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30648 # trailing colons and then remove the whole line if VPATH becomes empty
30649 # (actually we leave an empty line to preserve line numbers).
30650 if test "x$srcdir" = x.; then
30651   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30652 s/:*\$(srcdir):*/:/;
30653 s/:*\${srcdir}:*/:/;
30654 s/:*@srcdir@:*/:/;
30655 s/^\([^=]*=[     ]*\):*/\1/;
30656 s/:*$//;
30657 s/^[^=]*=[       ]*$//;
30658 }'
30659 fi
30660
30661 DEFS=-DHAVE_CONFIG_H
30662
30663 ac_libobjs=
30664 ac_ltlibobjs=
30665 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30666   # 1. Remove the extension, and $U if already installed.
30667   ac_i=`echo "$ac_i" |
30668          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30669   # 2. Add them.
30670   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30671   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30672 done
30673 LIBOBJS=$ac_libobjs
30674
30675 LTLIBOBJS=$ac_ltlibobjs
30676
30677
30678 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30679   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30680 Usually this means the macro was only invoked conditionally." >&5
30681 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30682 Usually this means the macro was only invoked conditionally." >&2;}
30683    { (exit 1); exit 1; }; }
30684 fi
30685 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30686   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30687 Usually this means the macro was only invoked conditionally." >&5
30688 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30689 Usually this means the macro was only invoked conditionally." >&2;}
30690    { (exit 1); exit 1; }; }
30691 fi
30692
30693 : ${CONFIG_STATUS=./config.status}
30694 ac_clean_files_save=$ac_clean_files
30695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30696 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30697 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30698 cat >$CONFIG_STATUS <<_ACEOF
30699 #! $SHELL
30700 # Generated by $as_me.
30701 # Run this file to recreate the current configuration.
30702 # Compiler output produced by configure, useful for debugging
30703 # configure, is in config.log if it exists.
30704
30705 debug=false
30706 ac_cs_recheck=false
30707 ac_cs_silent=false
30708 SHELL=\${CONFIG_SHELL-$SHELL}
30709 _ACEOF
30710
30711 cat >>$CONFIG_STATUS <<\_ACEOF
30712 ## --------------------- ##
30713 ## M4sh Initialization.  ##
30714 ## --------------------- ##
30715
30716 # Be Bourne compatible
30717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30718   emulate sh
30719   NULLCMD=:
30720   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30721   # is contrary to our usage.  Disable this feature.
30722   alias -g '${1+"$@"}'='"$@"'
30723 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30724   set -o posix
30725 fi
30726 DUALCASE=1; export DUALCASE # for MKS sh
30727
30728 # Support unset when possible.
30729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30730   as_unset=unset
30731 else
30732   as_unset=false
30733 fi
30734
30735
30736 # Work around bugs in pre-3.0 UWIN ksh.
30737 $as_unset ENV MAIL MAILPATH
30738 PS1='$ '
30739 PS2='> '
30740 PS4='+ '
30741
30742 # NLS nuisances.
30743 for as_var in \
30744   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30745   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30746   LC_TELEPHONE LC_TIME
30747 do
30748   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30749     eval $as_var=C; export $as_var
30750   else
30751     $as_unset $as_var
30752   fi
30753 done
30754
30755 # Required to use basename.
30756 if expr a : '\(a\)' >/dev/null 2>&1; then
30757   as_expr=expr
30758 else
30759   as_expr=false
30760 fi
30761
30762 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30763   as_basename=basename
30764 else
30765   as_basename=false
30766 fi
30767
30768
30769 # Name of the executable.
30770 as_me=`$as_basename "$0" ||
30771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30772          X"$0" : 'X\(//\)$' \| \
30773          X"$0" : 'X\(/\)$' \| \
30774          .     : '\(.\)' 2>/dev/null ||
30775 echo X/"$0" |
30776     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30777           /^X\/\(\/\/\)$/{ s//\1/; q; }
30778           /^X\/\(\/\).*/{ s//\1/; q; }
30779           s/.*/./; q'`
30780
30781
30782 # PATH needs CR, and LINENO needs CR and PATH.
30783 # Avoid depending upon Character Ranges.
30784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30787 as_cr_digits='0123456789'
30788 as_cr_alnum=$as_cr_Letters$as_cr_digits
30789
30790 # The user is always right.
30791 if test "${PATH_SEPARATOR+set}" != set; then
30792   echo "#! /bin/sh" >conf$$.sh
30793   echo  "exit 0"   >>conf$$.sh
30794   chmod +x conf$$.sh
30795   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30796     PATH_SEPARATOR=';'
30797   else
30798     PATH_SEPARATOR=:
30799   fi
30800   rm -f conf$$.sh
30801 fi
30802
30803
30804   as_lineno_1=$LINENO
30805   as_lineno_2=$LINENO
30806   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30807   test "x$as_lineno_1" != "x$as_lineno_2" &&
30808   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30809   # Find who we are.  Look in the path if we contain no path at all
30810   # relative or not.
30811   case $0 in
30812     *[\\/]* ) as_myself=$0 ;;
30813     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30814 for as_dir in $PATH
30815 do
30816   IFS=$as_save_IFS
30817   test -z "$as_dir" && as_dir=.
30818   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30819 done
30820
30821        ;;
30822   esac
30823   # We did not find ourselves, most probably we were run as `sh COMMAND'
30824   # in which case we are not to be found in the path.
30825   if test "x$as_myself" = x; then
30826     as_myself=$0
30827   fi
30828   if test ! -f "$as_myself"; then
30829     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30830 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30831    { (exit 1); exit 1; }; }
30832   fi
30833   case $CONFIG_SHELL in
30834   '')
30835     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30836 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30837 do
30838   IFS=$as_save_IFS
30839   test -z "$as_dir" && as_dir=.
30840   for as_base in sh bash ksh sh5; do
30841          case $as_dir in
30842          /*)
30843            if ("$as_dir/$as_base" -c '
30844   as_lineno_1=$LINENO
30845   as_lineno_2=$LINENO
30846   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30847   test "x$as_lineno_1" != "x$as_lineno_2" &&
30848   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30849              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30850              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30851              CONFIG_SHELL=$as_dir/$as_base
30852              export CONFIG_SHELL
30853              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30854            fi;;
30855          esac
30856        done
30857 done
30858 ;;
30859   esac
30860
30861   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30862   # uniformly replaced by the line number.  The first 'sed' inserts a
30863   # line-number line before each line; the second 'sed' does the real
30864   # work.  The second script uses 'N' to pair each line-number line
30865   # with the numbered line, and appends trailing '-' during
30866   # substitution so that $LINENO is not a special case at line end.
30867   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30868   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30869   sed '=' <$as_myself |
30870     sed '
30871       N
30872       s,$,-,
30873       : loop
30874       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30875       t loop
30876       s,-$,,
30877       s,^['$as_cr_digits']*\n,,
30878     ' >$as_me.lineno &&
30879   chmod +x $as_me.lineno ||
30880     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30881 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30882    { (exit 1); exit 1; }; }
30883
30884   # Don't try to exec as it changes $[0], causing all sort of problems
30885   # (the dirname of $[0] is not the place where we might find the
30886   # original and so on.  Autoconf is especially sensible to this).
30887   . ./$as_me.lineno
30888   # Exit status is that of the last command.
30889   exit
30890 }
30891
30892
30893 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30894   *c*,-n*) ECHO_N= ECHO_C='
30895 ' ECHO_T='      ' ;;
30896   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30897   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30898 esac
30899
30900 if expr a : '\(a\)' >/dev/null 2>&1; then
30901   as_expr=expr
30902 else
30903   as_expr=false
30904 fi
30905
30906 rm -f conf$$ conf$$.exe conf$$.file
30907 echo >conf$$.file
30908 if ln -s conf$$.file conf$$ 2>/dev/null; then
30909   # We could just check for DJGPP; but this test a) works b) is more generic
30910   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30911   if test -f conf$$.exe; then
30912     # Don't use ln at all; we don't have any links
30913     as_ln_s='cp -p'
30914   else
30915     as_ln_s='ln -s'
30916   fi
30917 elif ln conf$$.file conf$$ 2>/dev/null; then
30918   as_ln_s=ln
30919 else
30920   as_ln_s='cp -p'
30921 fi
30922 rm -f conf$$ conf$$.exe conf$$.file
30923
30924 if mkdir -p . 2>/dev/null; then
30925   as_mkdir_p=:
30926 else
30927   test -d ./-p && rmdir ./-p
30928   as_mkdir_p=false
30929 fi
30930
30931 as_executable_p="test -f"
30932
30933 # Sed expression to map a string onto a valid CPP name.
30934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30935
30936 # Sed expression to map a string onto a valid variable name.
30937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30938
30939
30940 # IFS
30941 # We need space, tab and new line, in precisely that order.
30942 as_nl='
30943 '
30944 IFS="   $as_nl"
30945
30946 # CDPATH.
30947 $as_unset CDPATH
30948
30949 exec 6>&1
30950
30951 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30952 # report actual input values of CONFIG_FILES etc. instead of their
30953 # values after options handling.  Logging --version etc. is OK.
30954 exec 5>>config.log
30955 {
30956   echo
30957   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30958 ## Running $as_me. ##
30959 _ASBOX
30960 } >&5
30961 cat >&5 <<_CSEOF
30962
30963 This file was extended by llvm $as_me 1.6cvs, which was
30964 generated by GNU Autoconf 2.59.  Invocation command line was
30965
30966   CONFIG_FILES    = $CONFIG_FILES
30967   CONFIG_HEADERS  = $CONFIG_HEADERS
30968   CONFIG_LINKS    = $CONFIG_LINKS
30969   CONFIG_COMMANDS = $CONFIG_COMMANDS
30970   $ $0 $@
30971
30972 _CSEOF
30973 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30974 echo >&5
30975 _ACEOF
30976
30977 # Files that config.status was made for.
30978 if test -n "$ac_config_files"; then
30979   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30980 fi
30981
30982 if test -n "$ac_config_headers"; then
30983   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30984 fi
30985
30986 if test -n "$ac_config_links"; then
30987   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30988 fi
30989
30990 if test -n "$ac_config_commands"; then
30991   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30992 fi
30993
30994 cat >>$CONFIG_STATUS <<\_ACEOF
30995
30996 ac_cs_usage="\
30997 \`$as_me' instantiates files from templates according to the
30998 current configuration.
30999
31000 Usage: $0 [OPTIONS] [FILE]...
31001
31002   -h, --help       print this help, then exit
31003   -V, --version    print version number, then exit
31004   -q, --quiet      do not print progress messages
31005   -d, --debug      don't remove temporary files
31006       --recheck    update $as_me by reconfiguring in the same conditions
31007   --file=FILE[:TEMPLATE]
31008                    instantiate the configuration file FILE
31009   --header=FILE[:TEMPLATE]
31010                    instantiate the configuration header FILE
31011
31012 Configuration files:
31013 $config_files
31014
31015 Configuration headers:
31016 $config_headers
31017
31018 Configuration commands:
31019 $config_commands
31020
31021 Report bugs to <bug-autoconf@gnu.org>."
31022 _ACEOF
31023
31024 cat >>$CONFIG_STATUS <<_ACEOF
31025 ac_cs_version="\\
31026 llvm config.status 1.6cvs
31027 configured by $0, generated by GNU Autoconf 2.59,
31028   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31029
31030 Copyright (C) 2003 Free Software Foundation, Inc.
31031 This config.status script is free software; the Free Software Foundation
31032 gives unlimited permission to copy, distribute and modify it."
31033 srcdir=$srcdir
31034 INSTALL="$INSTALL"
31035 _ACEOF
31036
31037 cat >>$CONFIG_STATUS <<\_ACEOF
31038 # If no file are specified by the user, then we need to provide default
31039 # value.  By we need to know if files were specified by the user.
31040 ac_need_defaults=:
31041 while test $# != 0
31042 do
31043   case $1 in
31044   --*=*)
31045     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31046     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31047     ac_shift=:
31048     ;;
31049   -*)
31050     ac_option=$1
31051     ac_optarg=$2
31052     ac_shift=shift
31053     ;;
31054   *) # This is not an option, so the user has probably given explicit
31055      # arguments.
31056      ac_option=$1
31057      ac_need_defaults=false;;
31058   esac
31059
31060   case $ac_option in
31061   # Handling of the options.
31062 _ACEOF
31063 cat >>$CONFIG_STATUS <<\_ACEOF
31064   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31065     ac_cs_recheck=: ;;
31066   --version | --vers* | -V )
31067     echo "$ac_cs_version"; exit 0 ;;
31068   --he | --h)
31069     # Conflict between --help and --header
31070     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31071 Try \`$0 --help' for more information." >&5
31072 echo "$as_me: error: ambiguous option: $1
31073 Try \`$0 --help' for more information." >&2;}
31074    { (exit 1); exit 1; }; };;
31075   --help | --hel | -h )
31076     echo "$ac_cs_usage"; exit 0 ;;
31077   --debug | --d* | -d )
31078     debug=: ;;
31079   --file | --fil | --fi | --f )
31080     $ac_shift
31081     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31082     ac_need_defaults=false;;
31083   --header | --heade | --head | --hea )
31084     $ac_shift
31085     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31086     ac_need_defaults=false;;
31087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31088   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31089     ac_cs_silent=: ;;
31090
31091   # This is an error.
31092   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31093 Try \`$0 --help' for more information." >&5
31094 echo "$as_me: error: unrecognized option: $1
31095 Try \`$0 --help' for more information." >&2;}
31096    { (exit 1); exit 1; }; } ;;
31097
31098   *) ac_config_targets="$ac_config_targets $1" ;;
31099
31100   esac
31101   shift
31102 done
31103
31104 ac_configure_extra_args=
31105
31106 if $ac_cs_silent; then
31107   exec 6>/dev/null
31108   ac_configure_extra_args="$ac_configure_extra_args --silent"
31109 fi
31110
31111 _ACEOF
31112 cat >>$CONFIG_STATUS <<_ACEOF
31113 if \$ac_cs_recheck; then
31114   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31115   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31116 fi
31117
31118 _ACEOF
31119
31120 cat >>$CONFIG_STATUS <<_ACEOF
31121 #
31122 # INIT-COMMANDS section.
31123 #
31124
31125 llvm_src="${srcdir}"
31126
31127 _ACEOF
31128
31129
31130
31131 cat >>$CONFIG_STATUS <<\_ACEOF
31132 for ac_config_target in $ac_config_targets
31133 do
31134   case "$ac_config_target" in
31135   # Handling of arguments.
31136   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31137   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31138   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31139   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31140   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31141   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31142   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31143   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31144   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31145   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31146   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31147   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31148   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31149   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31150   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31151   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31152   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31153   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31154   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31156    { (exit 1); exit 1; }; };;
31157   esac
31158 done
31159
31160 # If the user did not use the arguments to specify the items to instantiate,
31161 # then the envvar interface is used.  Set only those that are not.
31162 # We use the long form for the default assignment because of an extremely
31163 # bizarre bug on SunOS 4.1.3.
31164 if $ac_need_defaults; then
31165   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31166   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31167   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31168 fi
31169
31170 # Have a temporary directory for convenience.  Make it in the build tree
31171 # simply because there is no reason to put it here, and in addition,
31172 # creating and moving files from /tmp can sometimes cause problems.
31173 # Create a temporary directory, and hook for its removal unless debugging.
31174 $debug ||
31175 {
31176   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31177   trap '{ (exit 1); exit 1; }' 1 2 13 15
31178 }
31179
31180 # Create a (secure) tmp directory for tmp files.
31181
31182 {
31183   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31184   test -n "$tmp" && test -d "$tmp"
31185 }  ||
31186 {
31187   tmp=./confstat$$-$RANDOM
31188   (umask 077 && mkdir $tmp)
31189 } ||
31190 {
31191    echo "$me: cannot create a temporary directory in ." >&2
31192    { (exit 1); exit 1; }
31193 }
31194
31195 _ACEOF
31196
31197 cat >>$CONFIG_STATUS <<_ACEOF
31198
31199 #
31200 # CONFIG_FILES section.
31201 #
31202
31203 # No need to generate the scripts if there are no CONFIG_FILES.
31204 # This happens for instance when ./config.status config.h
31205 if test -n "\$CONFIG_FILES"; then
31206   # Protect against being on the right side of a sed subst in config.status.
31207   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31208    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31209 s,@SHELL@,$SHELL,;t t
31210 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31211 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31212 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31213 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31214 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31215 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31216 s,@exec_prefix@,$exec_prefix,;t t
31217 s,@prefix@,$prefix,;t t
31218 s,@program_transform_name@,$program_transform_name,;t t
31219 s,@bindir@,$bindir,;t t
31220 s,@sbindir@,$sbindir,;t t
31221 s,@libexecdir@,$libexecdir,;t t
31222 s,@datadir@,$datadir,;t t
31223 s,@sysconfdir@,$sysconfdir,;t t
31224 s,@sharedstatedir@,$sharedstatedir,;t t
31225 s,@localstatedir@,$localstatedir,;t t
31226 s,@libdir@,$libdir,;t t
31227 s,@includedir@,$includedir,;t t
31228 s,@oldincludedir@,$oldincludedir,;t t
31229 s,@infodir@,$infodir,;t t
31230 s,@mandir@,$mandir,;t t
31231 s,@build_alias@,$build_alias,;t t
31232 s,@host_alias@,$host_alias,;t t
31233 s,@target_alias@,$target_alias,;t t
31234 s,@DEFS@,$DEFS,;t t
31235 s,@ECHO_C@,$ECHO_C,;t t
31236 s,@ECHO_N@,$ECHO_N,;t t
31237 s,@ECHO_T@,$ECHO_T,;t t
31238 s,@LIBS@,$LIBS,;t t
31239 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31240 s,@subdirs@,$subdirs,;t t
31241 s,@build@,$build,;t t
31242 s,@build_cpu@,$build_cpu,;t t
31243 s,@build_vendor@,$build_vendor,;t t
31244 s,@build_os@,$build_os,;t t
31245 s,@host@,$host,;t t
31246 s,@host_cpu@,$host_cpu,;t t
31247 s,@host_vendor@,$host_vendor,;t t
31248 s,@host_os@,$host_os,;t t
31249 s,@target@,$target,;t t
31250 s,@target_cpu@,$target_cpu,;t t
31251 s,@target_vendor@,$target_vendor,;t t
31252 s,@target_os@,$target_os,;t t
31253 s,@OS@,$OS,;t t
31254 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31255 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31256 s,@ARCH@,$ARCH,;t t
31257 s,@ENDIAN@,$ENDIAN,;t t
31258 s,@CC@,$CC,;t t
31259 s,@CFLAGS@,$CFLAGS,;t t
31260 s,@LDFLAGS@,$LDFLAGS,;t t
31261 s,@CPPFLAGS@,$CPPFLAGS,;t t
31262 s,@ac_ct_CC@,$ac_ct_CC,;t t
31263 s,@EXEEXT@,$EXEEXT,;t t
31264 s,@OBJEXT@,$OBJEXT,;t t
31265 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31266 s,@JIT@,$JIT,;t t
31267 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31268 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31269 s,@CPP@,$CPP,;t t
31270 s,@CXX@,$CXX,;t t
31271 s,@CXXFLAGS@,$CXXFLAGS,;t t
31272 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31273 s,@LEX@,$LEX,;t t
31274 s,@LEXLIB@,$LEXLIB,;t t
31275 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31276 s,@FLEX@,$FLEX,;t t
31277 s,@YACC@,$YACC,;t t
31278 s,@BISON@,$BISON,;t t
31279 s,@ifGNUmake@,$ifGNUmake,;t t
31280 s,@LN_S@,$LN_S,;t t
31281 s,@CMP@,$CMP,;t t
31282 s,@CP@,$CP,;t t
31283 s,@DATE@,$DATE,;t t
31284 s,@FIND@,$FIND,;t t
31285 s,@GREP@,$GREP,;t t
31286 s,@MKDIR@,$MKDIR,;t t
31287 s,@MV@,$MV,;t t
31288 s,@RANLIB@,$RANLIB,;t t
31289 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31290 s,@RM@,$RM,;t t
31291 s,@SED@,$SED,;t t
31292 s,@TAR@,$TAR,;t t
31293 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31294 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31295 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31296 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31297 s,@BZIP2@,$BZIP2,;t t
31298 s,@DOT@,$DOT,;t t
31299 s,@DOXYGEN@,$DOXYGEN,;t t
31300 s,@ETAGS@,$ETAGS,;t t
31301 s,@GROFF@,$GROFF,;t t
31302 s,@GZIP@,$GZIP,;t t
31303 s,@POD2HTML@,$POD2HTML,;t t
31304 s,@POD2MAN@,$POD2MAN,;t t
31305 s,@RUNTEST@,$RUNTEST,;t t
31306 s,@TCLSH@,$TCLSH,;t t
31307 s,@ZIP@,$ZIP,;t t
31308 s,@EGREP@,$EGREP,;t t
31309 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31310 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31311 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31312 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31313 s,@LIBADD_DL@,$LIBADD_DL,;t t
31314 s,@ECHO@,$ECHO,;t t
31315 s,@AR@,$AR,;t t
31316 s,@ac_ct_AR@,$ac_ct_AR,;t t
31317 s,@STRIP@,$STRIP,;t t
31318 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31319 s,@CXXCPP@,$CXXCPP,;t t
31320 s,@F77@,$F77,;t t
31321 s,@FFLAGS@,$FFLAGS,;t t
31322 s,@ac_ct_F77@,$ac_ct_F77,;t t
31323 s,@LIBTOOL@,$LIBTOOL,;t t
31324 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31325 s,@LLVMGCC@,$LLVMGCC,;t t
31326 s,@LLVMGXX@,$LLVMGXX,;t t
31327 s,@ALLOCA@,$ALLOCA,;t t
31328 s,@MMAP_FILE@,$MMAP_FILE,;t t
31329 s,@LLVMCC1@,$LLVMCC1,;t t
31330 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31331 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31332 s,@SHLIBEXT@,$SHLIBEXT,;t t
31333 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31334 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31335 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31336 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31337 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31338 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31339 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31340 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31341 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31342 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31343 s,@LIBOBJS@,$LIBOBJS,;t t
31344 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31345 CEOF
31346
31347 _ACEOF
31348
31349   cat >>$CONFIG_STATUS <<\_ACEOF
31350   # Split the substitutions into bite-sized pieces for seds with
31351   # small command number limits, like on Digital OSF/1 and HP-UX.
31352   ac_max_sed_lines=48
31353   ac_sed_frag=1 # Number of current file.
31354   ac_beg=1 # First line for current file.
31355   ac_end=$ac_max_sed_lines # Line after last line for current file.
31356   ac_more_lines=:
31357   ac_sed_cmds=
31358   while $ac_more_lines; do
31359     if test $ac_beg -gt 1; then
31360       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31361     else
31362       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31363     fi
31364     if test ! -s $tmp/subs.frag; then
31365       ac_more_lines=false
31366     else
31367       # The purpose of the label and of the branching condition is to
31368       # speed up the sed processing (if there are no `@' at all, there
31369       # is no need to browse any of the substitutions).
31370       # These are the two extra sed commands mentioned above.
31371       (echo ':t
31372   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31373       if test -z "$ac_sed_cmds"; then
31374         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31375       else
31376         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31377       fi
31378       ac_sed_frag=`expr $ac_sed_frag + 1`
31379       ac_beg=$ac_end
31380       ac_end=`expr $ac_end + $ac_max_sed_lines`
31381     fi
31382   done
31383   if test -z "$ac_sed_cmds"; then
31384     ac_sed_cmds=cat
31385   fi
31386 fi # test -n "$CONFIG_FILES"
31387
31388 _ACEOF
31389 cat >>$CONFIG_STATUS <<\_ACEOF
31390 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31391   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31392   case $ac_file in
31393   - | *:- | *:-:* ) # input from stdin
31394         cat >$tmp/stdin
31395         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31396         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31397   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31398         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31399   * )   ac_file_in=$ac_file.in ;;
31400   esac
31401
31402   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31403   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31405          X"$ac_file" : 'X\(//\)[^/]' \| \
31406          X"$ac_file" : 'X\(//\)$' \| \
31407          X"$ac_file" : 'X\(/\)' \| \
31408          .     : '\(.\)' 2>/dev/null ||
31409 echo X"$ac_file" |
31410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31411           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31412           /^X\(\/\/\)$/{ s//\1/; q; }
31413           /^X\(\/\).*/{ s//\1/; q; }
31414           s/.*/./; q'`
31415   { if $as_mkdir_p; then
31416     mkdir -p "$ac_dir"
31417   else
31418     as_dir="$ac_dir"
31419     as_dirs=
31420     while test ! -d "$as_dir"; do
31421       as_dirs="$as_dir $as_dirs"
31422       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31424          X"$as_dir" : 'X\(//\)[^/]' \| \
31425          X"$as_dir" : 'X\(//\)$' \| \
31426          X"$as_dir" : 'X\(/\)' \| \
31427          .     : '\(.\)' 2>/dev/null ||
31428 echo X"$as_dir" |
31429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31431           /^X\(\/\/\)$/{ s//\1/; q; }
31432           /^X\(\/\).*/{ s//\1/; q; }
31433           s/.*/./; q'`
31434     done
31435     test ! -n "$as_dirs" || mkdir $as_dirs
31436   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31438    { (exit 1); exit 1; }; }; }
31439
31440   ac_builddir=.
31441
31442 if test "$ac_dir" != .; then
31443   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31444   # A "../" for each directory in $ac_dir_suffix.
31445   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31446 else
31447   ac_dir_suffix= ac_top_builddir=
31448 fi
31449
31450 case $srcdir in
31451   .)  # No --srcdir option.  We are building in place.
31452     ac_srcdir=.
31453     if test -z "$ac_top_builddir"; then
31454        ac_top_srcdir=.
31455     else
31456        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31457     fi ;;
31458   [\\/]* | ?:[\\/]* )  # Absolute path.
31459     ac_srcdir=$srcdir$ac_dir_suffix;
31460     ac_top_srcdir=$srcdir ;;
31461   *) # Relative path.
31462     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31463     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31464 esac
31465
31466 # Do not use `cd foo && pwd` to compute absolute paths, because
31467 # the directories may not exist.
31468 case `pwd` in
31469 .) ac_abs_builddir="$ac_dir";;
31470 *)
31471   case "$ac_dir" in
31472   .) ac_abs_builddir=`pwd`;;
31473   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31474   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31475   esac;;
31476 esac
31477 case $ac_abs_builddir in
31478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31479 *)
31480   case ${ac_top_builddir}. in
31481   .) ac_abs_top_builddir=$ac_abs_builddir;;
31482   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31483   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31484   esac;;
31485 esac
31486 case $ac_abs_builddir in
31487 .) ac_abs_srcdir=$ac_srcdir;;
31488 *)
31489   case $ac_srcdir in
31490   .) ac_abs_srcdir=$ac_abs_builddir;;
31491   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31492   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31493   esac;;
31494 esac
31495 case $ac_abs_builddir in
31496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31497 *)
31498   case $ac_top_srcdir in
31499   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31500   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31501   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31502   esac;;
31503 esac
31504
31505
31506   case $INSTALL in
31507   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31508   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31509   esac
31510
31511   if test x"$ac_file" != x-; then
31512     { echo "$as_me:$LINENO: creating $ac_file" >&5
31513 echo "$as_me: creating $ac_file" >&6;}
31514     rm -f "$ac_file"
31515   fi
31516   # Let's still pretend it is `configure' which instantiates (i.e., don't
31517   # use $as_me), people would be surprised to read:
31518   #    /* config.h.  Generated by config.status.  */
31519   if test x"$ac_file" = x-; then
31520     configure_input=
31521   else
31522     configure_input="$ac_file.  "
31523   fi
31524   configure_input=$configure_input"Generated from `echo $ac_file_in |
31525                                      sed 's,.*/,,'` by configure."
31526
31527   # First look for the input files in the build tree, otherwise in the
31528   # src tree.
31529   ac_file_inputs=`IFS=:
31530     for f in $ac_file_in; do
31531       case $f in
31532       -) echo $tmp/stdin ;;
31533       [\\/$]*)
31534          # Absolute (can't be DOS-style, as IFS=:)
31535          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31536 echo "$as_me: error: cannot find input file: $f" >&2;}
31537    { (exit 1); exit 1; }; }
31538          echo "$f";;
31539       *) # Relative
31540          if test -f "$f"; then
31541            # Build tree
31542            echo "$f"
31543          elif test -f "$srcdir/$f"; then
31544            # Source tree
31545            echo "$srcdir/$f"
31546          else
31547            # /dev/null tree
31548            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31549 echo "$as_me: error: cannot find input file: $f" >&2;}
31550    { (exit 1); exit 1; }; }
31551          fi;;
31552       esac
31553     done` || { (exit 1); exit 1; }
31554 _ACEOF
31555 cat >>$CONFIG_STATUS <<_ACEOF
31556   sed "$ac_vpsub
31557 $extrasub
31558 _ACEOF
31559 cat >>$CONFIG_STATUS <<\_ACEOF
31560 :t
31561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31562 s,@configure_input@,$configure_input,;t t
31563 s,@srcdir@,$ac_srcdir,;t t
31564 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31565 s,@top_srcdir@,$ac_top_srcdir,;t t
31566 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31567 s,@builddir@,$ac_builddir,;t t
31568 s,@abs_builddir@,$ac_abs_builddir,;t t
31569 s,@top_builddir@,$ac_top_builddir,;t t
31570 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31571 s,@INSTALL@,$ac_INSTALL,;t t
31572 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31573   rm -f $tmp/stdin
31574   if test x"$ac_file" != x-; then
31575     mv $tmp/out $ac_file
31576   else
31577     cat $tmp/out
31578     rm -f $tmp/out
31579   fi
31580
31581 done
31582 _ACEOF
31583 cat >>$CONFIG_STATUS <<\_ACEOF
31584
31585 #
31586 # CONFIG_HEADER section.
31587 #
31588
31589 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31590 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31591 #
31592 # ac_d sets the value in "#define NAME VALUE" lines.
31593 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31594 ac_dB='[         ].*$,\1#\2'
31595 ac_dC=' '
31596 ac_dD=',;t'
31597 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31598 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31599 ac_uB='$,\1#\2define\3'
31600 ac_uC=' '
31601 ac_uD=',;t'
31602
31603 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31604   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31605   case $ac_file in
31606   - | *:- | *:-:* ) # input from stdin
31607         cat >$tmp/stdin
31608         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31609         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31610   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31611         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31612   * )   ac_file_in=$ac_file.in ;;
31613   esac
31614
31615   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31616 echo "$as_me: creating $ac_file" >&6;}
31617
31618   # First look for the input files in the build tree, otherwise in the
31619   # src tree.
31620   ac_file_inputs=`IFS=:
31621     for f in $ac_file_in; do
31622       case $f in
31623       -) echo $tmp/stdin ;;
31624       [\\/$]*)
31625          # Absolute (can't be DOS-style, as IFS=:)
31626          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31627 echo "$as_me: error: cannot find input file: $f" >&2;}
31628    { (exit 1); exit 1; }; }
31629          # Do quote $f, to prevent DOS paths from being IFS'd.
31630          echo "$f";;
31631       *) # Relative
31632          if test -f "$f"; then
31633            # Build tree
31634            echo "$f"
31635          elif test -f "$srcdir/$f"; then
31636            # Source tree
31637            echo "$srcdir/$f"
31638          else
31639            # /dev/null tree
31640            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31641 echo "$as_me: error: cannot find input file: $f" >&2;}
31642    { (exit 1); exit 1; }; }
31643          fi;;
31644       esac
31645     done` || { (exit 1); exit 1; }
31646   # Remove the trailing spaces.
31647   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31648
31649 _ACEOF
31650
31651 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31652 # `conftest.undefs', that substitutes the proper values into
31653 # config.h.in to produce config.h.  The first handles `#define'
31654 # templates, and the second `#undef' templates.
31655 # And first: Protect against being on the right side of a sed subst in
31656 # config.status.  Protect against being in an unquoted here document
31657 # in config.status.
31658 rm -f conftest.defines conftest.undefs
31659 # Using a here document instead of a string reduces the quoting nightmare.
31660 # Putting comments in sed scripts is not portable.
31661 #
31662 # `end' is used to avoid that the second main sed command (meant for
31663 # 0-ary CPP macros) applies to n-ary macro definitions.
31664 # See the Autoconf documentation for `clear'.
31665 cat >confdef2sed.sed <<\_ACEOF
31666 s/[\\&,]/\\&/g
31667 s,[\\$`],\\&,g
31668 t clear
31669 : clear
31670 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31671 t end
31672 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31673 : end
31674 _ACEOF
31675 # If some macros were called several times there might be several times
31676 # the same #defines, which is useless.  Nevertheless, we may not want to
31677 # sort them, since we want the *last* AC-DEFINE to be honored.
31678 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31679 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31680 rm -f confdef2sed.sed
31681
31682 # This sed command replaces #undef with comments.  This is necessary, for
31683 # example, in the case of _POSIX_SOURCE, which is predefined and required
31684 # on some systems where configure will not decide to define it.
31685 cat >>conftest.undefs <<\_ACEOF
31686 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31687 _ACEOF
31688
31689 # Break up conftest.defines because some shells have a limit on the size
31690 # of here documents, and old seds have small limits too (100 cmds).
31691 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31692 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31693 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31694 echo '  :' >>$CONFIG_STATUS
31695 rm -f conftest.tail
31696 while grep . conftest.defines >/dev/null
31697 do
31698   # Write a limited-size here document to $tmp/defines.sed.
31699   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31700   # Speed up: don't consider the non `#define' lines.
31701   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31702   # Work around the forget-to-reset-the-flag bug.
31703   echo 't clr' >>$CONFIG_STATUS
31704   echo ': clr' >>$CONFIG_STATUS
31705   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31706   echo 'CEOF
31707   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31708   rm -f $tmp/in
31709   mv $tmp/out $tmp/in
31710 ' >>$CONFIG_STATUS
31711   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31712   rm -f conftest.defines
31713   mv conftest.tail conftest.defines
31714 done
31715 rm -f conftest.defines
31716 echo '  fi # grep' >>$CONFIG_STATUS
31717 echo >>$CONFIG_STATUS
31718
31719 # Break up conftest.undefs because some shells have a limit on the size
31720 # of here documents, and old seds have small limits too (100 cmds).
31721 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31722 rm -f conftest.tail
31723 while grep . conftest.undefs >/dev/null
31724 do
31725   # Write a limited-size here document to $tmp/undefs.sed.
31726   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31727   # Speed up: don't consider the non `#undef'
31728   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31729   # Work around the forget-to-reset-the-flag bug.
31730   echo 't clr' >>$CONFIG_STATUS
31731   echo ': clr' >>$CONFIG_STATUS
31732   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31733   echo 'CEOF
31734   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31735   rm -f $tmp/in
31736   mv $tmp/out $tmp/in
31737 ' >>$CONFIG_STATUS
31738   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31739   rm -f conftest.undefs
31740   mv conftest.tail conftest.undefs
31741 done
31742 rm -f conftest.undefs
31743
31744 cat >>$CONFIG_STATUS <<\_ACEOF
31745   # Let's still pretend it is `configure' which instantiates (i.e., don't
31746   # use $as_me), people would be surprised to read:
31747   #    /* config.h.  Generated by config.status.  */
31748   if test x"$ac_file" = x-; then
31749     echo "/* Generated by configure.  */" >$tmp/config.h
31750   else
31751     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31752   fi
31753   cat $tmp/in >>$tmp/config.h
31754   rm -f $tmp/in
31755   if test x"$ac_file" != x-; then
31756     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31757       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31758 echo "$as_me: $ac_file is unchanged" >&6;}
31759     else
31760       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31762          X"$ac_file" : 'X\(//\)[^/]' \| \
31763          X"$ac_file" : 'X\(//\)$' \| \
31764          X"$ac_file" : 'X\(/\)' \| \
31765          .     : '\(.\)' 2>/dev/null ||
31766 echo X"$ac_file" |
31767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31768           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31769           /^X\(\/\/\)$/{ s//\1/; q; }
31770           /^X\(\/\).*/{ s//\1/; q; }
31771           s/.*/./; q'`
31772       { if $as_mkdir_p; then
31773     mkdir -p "$ac_dir"
31774   else
31775     as_dir="$ac_dir"
31776     as_dirs=
31777     while test ! -d "$as_dir"; do
31778       as_dirs="$as_dir $as_dirs"
31779       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31781          X"$as_dir" : 'X\(//\)[^/]' \| \
31782          X"$as_dir" : 'X\(//\)$' \| \
31783          X"$as_dir" : 'X\(/\)' \| \
31784          .     : '\(.\)' 2>/dev/null ||
31785 echo X"$as_dir" |
31786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31787           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31788           /^X\(\/\/\)$/{ s//\1/; q; }
31789           /^X\(\/\).*/{ s//\1/; q; }
31790           s/.*/./; q'`
31791     done
31792     test ! -n "$as_dirs" || mkdir $as_dirs
31793   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31795    { (exit 1); exit 1; }; }; }
31796
31797       rm -f $ac_file
31798       mv $tmp/config.h $ac_file
31799     fi
31800   else
31801     cat $tmp/config.h
31802     rm -f $tmp/config.h
31803   fi
31804 done
31805 _ACEOF
31806 cat >>$CONFIG_STATUS <<\_ACEOF
31807
31808 #
31809 # CONFIG_COMMANDS section.
31810 #
31811 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31812   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31813   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31814   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31815 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31816          X"$ac_dest" : 'X\(//\)[^/]' \| \
31817          X"$ac_dest" : 'X\(//\)$' \| \
31818          X"$ac_dest" : 'X\(/\)' \| \
31819          .     : '\(.\)' 2>/dev/null ||
31820 echo X"$ac_dest" |
31821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31822           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31823           /^X\(\/\/\)$/{ s//\1/; q; }
31824           /^X\(\/\).*/{ s//\1/; q; }
31825           s/.*/./; q'`
31826   { if $as_mkdir_p; then
31827     mkdir -p "$ac_dir"
31828   else
31829     as_dir="$ac_dir"
31830     as_dirs=
31831     while test ! -d "$as_dir"; do
31832       as_dirs="$as_dir $as_dirs"
31833       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31835          X"$as_dir" : 'X\(//\)[^/]' \| \
31836          X"$as_dir" : 'X\(//\)$' \| \
31837          X"$as_dir" : 'X\(/\)' \| \
31838          .     : '\(.\)' 2>/dev/null ||
31839 echo X"$as_dir" |
31840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31842           /^X\(\/\/\)$/{ s//\1/; q; }
31843           /^X\(\/\).*/{ s//\1/; q; }
31844           s/.*/./; q'`
31845     done
31846     test ! -n "$as_dirs" || mkdir $as_dirs
31847   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31848 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31849    { (exit 1); exit 1; }; }; }
31850
31851   ac_builddir=.
31852
31853 if test "$ac_dir" != .; then
31854   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31855   # A "../" for each directory in $ac_dir_suffix.
31856   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31857 else
31858   ac_dir_suffix= ac_top_builddir=
31859 fi
31860
31861 case $srcdir in
31862   .)  # No --srcdir option.  We are building in place.
31863     ac_srcdir=.
31864     if test -z "$ac_top_builddir"; then
31865        ac_top_srcdir=.
31866     else
31867        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31868     fi ;;
31869   [\\/]* | ?:[\\/]* )  # Absolute path.
31870     ac_srcdir=$srcdir$ac_dir_suffix;
31871     ac_top_srcdir=$srcdir ;;
31872   *) # Relative path.
31873     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31874     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31875 esac
31876
31877 # Do not use `cd foo && pwd` to compute absolute paths, because
31878 # the directories may not exist.
31879 case `pwd` in
31880 .) ac_abs_builddir="$ac_dir";;
31881 *)
31882   case "$ac_dir" in
31883   .) ac_abs_builddir=`pwd`;;
31884   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31885   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31886   esac;;
31887 esac
31888 case $ac_abs_builddir in
31889 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31890 *)
31891   case ${ac_top_builddir}. in
31892   .) ac_abs_top_builddir=$ac_abs_builddir;;
31893   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31894   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31895   esac;;
31896 esac
31897 case $ac_abs_builddir in
31898 .) ac_abs_srcdir=$ac_srcdir;;
31899 *)
31900   case $ac_srcdir in
31901   .) ac_abs_srcdir=$ac_abs_builddir;;
31902   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31903   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31904   esac;;
31905 esac
31906 case $ac_abs_builddir in
31907 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31908 *)
31909   case $ac_top_srcdir in
31910   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31911   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31912   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31913   esac;;
31914 esac
31915
31916
31917   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31918 echo "$as_me: executing $ac_dest commands" >&6;}
31919   case $ac_dest in
31920     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31921    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31922     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31923    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31924     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31925    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31926     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31927    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31928     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31929    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31930     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31931    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31932     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31933    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31934     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31935    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31936     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31937    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31938     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31939    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31940   esac
31941 done
31942 _ACEOF
31943
31944 cat >>$CONFIG_STATUS <<\_ACEOF
31945
31946 { (exit 0); exit 0; }
31947 _ACEOF
31948 chmod +x $CONFIG_STATUS
31949 ac_clean_files=$ac_clean_files_save
31950
31951
31952 # configure is writing to config.log, and then calls config.status.
31953 # config.status does its own redirection, appending to config.log.
31954 # Unfortunately, on DOS this fails, as config.log is still kept open
31955 # by configure, so config.status won't be able to write to it; its
31956 # output is simply discarded.  So we exec the FD to /dev/null,
31957 # effectively closing config.log, so it can be properly (re)opened and
31958 # appended to by config.status.  When coming back to configure, we
31959 # need to make the FD available again.
31960 if test "$no_create" != yes; then
31961   ac_cs_success=:
31962   ac_config_status_args=
31963   test "$silent" = yes &&
31964     ac_config_status_args="$ac_config_status_args --quiet"
31965   exec 5>/dev/null
31966   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31967   exec 5>>config.log
31968   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31969   # would make configure fail if this is the last instruction.
31970   $ac_cs_success || { (exit 1); exit 1; }
31971 fi
31972
31973 #
31974 # CONFIG_SUBDIRS section.
31975 #
31976 if test "$no_recursion" != yes; then
31977
31978   # Remove --cache-file and --srcdir arguments so they do not pile up.
31979   ac_sub_configure_args=
31980   ac_prev=
31981   for ac_arg in $ac_configure_args; do
31982     if test -n "$ac_prev"; then
31983       ac_prev=
31984       continue
31985     fi
31986     case $ac_arg in
31987     -cache-file | --cache-file | --cache-fil | --cache-fi \
31988     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31989       ac_prev=cache_file ;;
31990     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31991     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31992     | --c=*)
31993       ;;
31994     --config-cache | -C)
31995       ;;
31996     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31997       ac_prev=srcdir ;;
31998     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31999       ;;
32000     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32001       ac_prev=prefix ;;
32002     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32003       ;;
32004     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32005     esac
32006   done
32007
32008   # Always prepend --prefix to ensure using the same prefix
32009   # in subdir configurations.
32010   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32011
32012   ac_popdir=`pwd`
32013   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32014
32015     # Do not complain, so a configure script can configure whichever
32016     # parts of a large source tree are present.
32017     test -d $srcdir/$ac_dir || continue
32018
32019     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32020 echo "$as_me: configuring in $ac_dir" >&6;}
32021     { if $as_mkdir_p; then
32022     mkdir -p "$ac_dir"
32023   else
32024     as_dir="$ac_dir"
32025     as_dirs=
32026     while test ! -d "$as_dir"; do
32027       as_dirs="$as_dir $as_dirs"
32028       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32030          X"$as_dir" : 'X\(//\)[^/]' \| \
32031          X"$as_dir" : 'X\(//\)$' \| \
32032          X"$as_dir" : 'X\(/\)' \| \
32033          .     : '\(.\)' 2>/dev/null ||
32034 echo X"$as_dir" |
32035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32036           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32037           /^X\(\/\/\)$/{ s//\1/; q; }
32038           /^X\(\/\).*/{ s//\1/; q; }
32039           s/.*/./; q'`
32040     done
32041     test ! -n "$as_dirs" || mkdir $as_dirs
32042   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32043 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32044    { (exit 1); exit 1; }; }; }
32045
32046     ac_builddir=.
32047
32048 if test "$ac_dir" != .; then
32049   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32050   # A "../" for each directory in $ac_dir_suffix.
32051   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32052 else
32053   ac_dir_suffix= ac_top_builddir=
32054 fi
32055
32056 case $srcdir in
32057   .)  # No --srcdir option.  We are building in place.
32058     ac_srcdir=.
32059     if test -z "$ac_top_builddir"; then
32060        ac_top_srcdir=.
32061     else
32062        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32063     fi ;;
32064   [\\/]* | ?:[\\/]* )  # Absolute path.
32065     ac_srcdir=$srcdir$ac_dir_suffix;
32066     ac_top_srcdir=$srcdir ;;
32067   *) # Relative path.
32068     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32069     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32070 esac
32071
32072 # Do not use `cd foo && pwd` to compute absolute paths, because
32073 # the directories may not exist.
32074 case `pwd` in
32075 .) ac_abs_builddir="$ac_dir";;
32076 *)
32077   case "$ac_dir" in
32078   .) ac_abs_builddir=`pwd`;;
32079   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32080   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32081   esac;;
32082 esac
32083 case $ac_abs_builddir in
32084 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32085 *)
32086   case ${ac_top_builddir}. in
32087   .) ac_abs_top_builddir=$ac_abs_builddir;;
32088   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32089   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32090   esac;;
32091 esac
32092 case $ac_abs_builddir in
32093 .) ac_abs_srcdir=$ac_srcdir;;
32094 *)
32095   case $ac_srcdir in
32096   .) ac_abs_srcdir=$ac_abs_builddir;;
32097   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32098   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32099   esac;;
32100 esac
32101 case $ac_abs_builddir in
32102 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32103 *)
32104   case $ac_top_srcdir in
32105   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32106   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32107   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32108   esac;;
32109 esac
32110
32111
32112     cd $ac_dir
32113
32114     # Check for guested configure; otherwise get Cygnus style configure.
32115     if test -f $ac_srcdir/configure.gnu; then
32116       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32117     elif test -f $ac_srcdir/configure; then
32118       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32119     elif test -f $ac_srcdir/configure.in; then
32120       ac_sub_configure=$ac_configure
32121     else
32122       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32124       ac_sub_configure=
32125     fi
32126
32127     # The recursion is here.
32128     if test -n "$ac_sub_configure"; then
32129       # Make the cache file name correct relative to the subdirectory.
32130       case $cache_file in
32131       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32132       *) # Relative path.
32133         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32134       esac
32135
32136       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32137 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32138       # The eval makes quoting arguments work.
32139       eval $ac_sub_configure $ac_sub_configure_args \
32140            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32141         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32142 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32143    { (exit 1); exit 1; }; }
32144     fi
32145
32146     cd $ac_popdir
32147   done
32148 fi
32149
32150
32151 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32152  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32153 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32154  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32155 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32156  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32157 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32158  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32159 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32160  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32161 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32162 fi