Put the path to the Graphviz program in the #defines so it can be used.
[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
5104 cat >>confdefs.h <<\_ACEOF
5105 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5106 _ACEOF
5107
5108 fi
5109
5110 # Find a good install program.  We prefer a C program (faster),
5111 # so one script is as good as another.  But avoid the broken or
5112 # incompatible versions:
5113 # SysV /etc/install, /usr/sbin/install
5114 # SunOS /usr/etc/install
5115 # IRIX /sbin/install
5116 # AIX /bin/install
5117 # AmigaOS /C/install, which installs bootblocks on floppy discs
5118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5121 # OS/2's system install, which has a completely different semantic
5122 # ./install, which can be erroneously created by make from ./install.sh.
5123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5125 if test -z "$INSTALL"; then
5126 if test "${ac_cv_path_install+set}" = set; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   # Account for people who put trailing slashes in PATH elements.
5135 case $as_dir/ in
5136   ./ | .// | /cC/* | \
5137   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5138   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5139   /usr/ucb/* ) ;;
5140   *)
5141     # OSF1 and SCO ODT 3.0 have their own names for install.
5142     # Don't use installbsd from OSF since it installs stuff as root
5143     # by default.
5144     for ac_prog in ginstall scoinst install; do
5145       for ac_exec_ext in '' $ac_executable_extensions; do
5146         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5147           if test $ac_prog = install &&
5148             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5149             # AIX install.  It has an incompatible calling convention.
5150             :
5151           elif test $ac_prog = install &&
5152             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5153             # program-specific install script used by HP pwplus--don't use.
5154             :
5155           else
5156             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5157             break 3
5158           fi
5159         fi
5160       done
5161     done
5162     ;;
5163 esac
5164 done
5165
5166
5167 fi
5168   if test "${ac_cv_path_install+set}" = set; then
5169     INSTALL=$ac_cv_path_install
5170   else
5171     # As a last resort, use the slow shell script.  We don't cache a
5172     # path for INSTALL within a source directory, because that will
5173     # break other packages using the cache if that directory is
5174     # removed, or if the path is relative.
5175     INSTALL=$ac_install_sh
5176   fi
5177 fi
5178 echo "$as_me:$LINENO: result: $INSTALL" >&5
5179 echo "${ECHO_T}$INSTALL" >&6
5180
5181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5182 # It thinks the first close brace ends the variable substitution.
5183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5184
5185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5186
5187 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5188
5189
5190 # Extract the first word of "bzip2", so it can be a program name with args.
5191 set dummy bzip2; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_path_BZIP2+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   case $BZIP2 in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215
5216   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5217   ;;
5218 esac
5219 fi
5220 BZIP2=$ac_cv_path_BZIP2
5221
5222 if test -n "$BZIP2"; then
5223   echo "$as_me:$LINENO: result: $BZIP2" >&5
5224 echo "${ECHO_T}$BZIP2" >&6
5225 else
5226   echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6
5228 fi
5229
5230 # Extract the first word of "dot", so it can be a program name with args.
5231 set dummy dot; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_path_DOT+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   case $DOT in
5238   [\\/]* | ?:[\\/]*)
5239   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5240   ;;
5241   *)
5242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247   for ac_exec_ext in '' $ac_executable_extensions; do
5248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254 done
5255
5256   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5257   ;;
5258 esac
5259 fi
5260 DOT=$ac_cv_path_DOT
5261
5262 if test -n "$DOT"; then
5263   echo "$as_me:$LINENO: result: $DOT" >&5
5264 echo "${ECHO_T}$DOT" >&6
5265 else
5266   echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270 # Extract the first word of "doxygen", so it can be a program name with args.
5271 set dummy doxygen; ac_word=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   case $DOXYGEN in
5278   [\\/]* | ?:[\\/]*)
5279   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5280   ;;
5281   *)
5282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285   IFS=$as_save_IFS
5286   test -z "$as_dir" && as_dir=.
5287   for ac_exec_ext in '' $ac_executable_extensions; do
5288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291     break 2
5292   fi
5293 done
5294 done
5295
5296   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5297   ;;
5298 esac
5299 fi
5300 DOXYGEN=$ac_cv_path_DOXYGEN
5301
5302 if test -n "$DOXYGEN"; then
5303   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5304 echo "${ECHO_T}$DOXYGEN" >&6
5305 else
5306   echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6
5308 fi
5309
5310 # Extract the first word of "etags", so it can be a program name with args.
5311 set dummy etags; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_path_ETAGS+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   case $ETAGS in
5318   [\\/]* | ?:[\\/]*)
5319   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5320   ;;
5321   *)
5322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327   for ac_exec_ext in '' $ac_executable_extensions; do
5328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334 done
5335
5336   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5337   ;;
5338 esac
5339 fi
5340 ETAGS=$ac_cv_path_ETAGS
5341
5342 if test -n "$ETAGS"; then
5343   echo "$as_me:$LINENO: result: $ETAGS" >&5
5344 echo "${ECHO_T}$ETAGS" >&6
5345 else
5346   echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5348 fi
5349
5350 # Extract the first word of "groff", so it can be a program name with args.
5351 set dummy groff; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_path_GROFF+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   case $GROFF in
5358   [\\/]* | ?:[\\/]*)
5359   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5360   ;;
5361   *)
5362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367   for ac_exec_ext in '' $ac_executable_extensions; do
5368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374 done
5375
5376   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5377   ;;
5378 esac
5379 fi
5380 GROFF=$ac_cv_path_GROFF
5381
5382 if test -n "$GROFF"; then
5383   echo "$as_me:$LINENO: result: $GROFF" >&5
5384 echo "${ECHO_T}$GROFF" >&6
5385 else
5386   echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5388 fi
5389
5390 # Extract the first word of "gzip", so it can be a program name with args.
5391 set dummy gzip; ac_word=$2
5392 echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394 if test "${ac_cv_path_GZIP+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   case $GZIP in
5398   [\\/]* | ?:[\\/]*)
5399   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5400   ;;
5401   *)
5402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415
5416   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5417   ;;
5418 esac
5419 fi
5420 GZIP=$ac_cv_path_GZIP
5421
5422 if test -n "$GZIP"; then
5423   echo "$as_me:$LINENO: result: $GZIP" >&5
5424 echo "${ECHO_T}$GZIP" >&6
5425 else
5426   echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5428 fi
5429
5430 # Extract the first word of "pod2html", so it can be a program name with args.
5431 set dummy pod2html; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_path_POD2HTML+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   case $POD2HTML in
5438   [\\/]* | ?:[\\/]*)
5439   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5440   ;;
5441   *)
5442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447   for ac_exec_ext in '' $ac_executable_extensions; do
5448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454 done
5455
5456   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5457   ;;
5458 esac
5459 fi
5460 POD2HTML=$ac_cv_path_POD2HTML
5461
5462 if test -n "$POD2HTML"; then
5463   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5464 echo "${ECHO_T}$POD2HTML" >&6
5465 else
5466   echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6
5468 fi
5469
5470 # Extract the first word of "pod2man", so it can be a program name with args.
5471 set dummy pod2man; ac_word=$2
5472 echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474 if test "${ac_cv_path_POD2MAN+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   case $POD2MAN in
5478   [\\/]* | ?:[\\/]*)
5479   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5480   ;;
5481   *)
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487   for ac_exec_ext in '' $ac_executable_extensions; do
5488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494 done
5495
5496   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5497   ;;
5498 esac
5499 fi
5500 POD2MAN=$ac_cv_path_POD2MAN
5501
5502 if test -n "$POD2MAN"; then
5503   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5504 echo "${ECHO_T}$POD2MAN" >&6
5505 else
5506   echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510 # Extract the first word of "runtest", so it can be a program name with args.
5511 set dummy runtest; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_RUNTEST+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   case $RUNTEST in
5518   [\\/]* | ?:[\\/]*)
5519   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5520   ;;
5521   *)
5522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527   for ac_exec_ext in '' $ac_executable_extensions; do
5528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534 done
5535
5536   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5537   ;;
5538 esac
5539 fi
5540 RUNTEST=$ac_cv_path_RUNTEST
5541
5542 if test -n "$RUNTEST"; then
5543   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5544 echo "${ECHO_T}$RUNTEST" >&6
5545 else
5546   echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550
5551 no_itcl=true
5552 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5553 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5554
5555 # Check whether --with-tclinclude or --without-tclinclude was given.
5556 if test "${with_tclinclude+set}" = set; then
5557   withval="$with_tclinclude"
5558   with_tclinclude=${withval}
5559 else
5560   with_tclinclude=''
5561 fi;
5562 if test "${ac_cv_path_tclsh+set}" = set; then
5563   echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565
5566 if test x"${with_tclinclude}" != x ; then
5567   if test -f ${with_tclinclude}/tclsh ; then
5568     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5569   elif test -f ${with_tclinclude}/src/tclsh ; then
5570     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5571   else
5572     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5573 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5574    { (exit 1); exit 1; }; }
5575   fi
5576 fi
5577
5578 if test x"${ac_cv_path_tclsh}" = x ; then
5579   echo "$as_me:$LINENO: result: none" >&5
5580 echo "${ECHO_T}none" >&6
5581   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
5582 do
5583   # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_path_TCLSH+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   case $TCLSH in
5591   [\\/]* | ?:[\\/]*)
5592   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5593   ;;
5594   *)
5595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598   IFS=$as_save_IFS
5599   test -z "$as_dir" && as_dir=.
5600   for ac_exec_ext in '' $ac_executable_extensions; do
5601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604     break 2
5605   fi
5606 done
5607 done
5608
5609   ;;
5610 esac
5611 fi
5612 TCLSH=$ac_cv_path_TCLSH
5613
5614 if test -n "$TCLSH"; then
5615   echo "$as_me:$LINENO: result: $TCLSH" >&5
5616 echo "${ECHO_T}$TCLSH" >&6
5617 else
5618   echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6
5620 fi
5621
5622   test -n "$TCLSH" && break
5623 done
5624
5625   if test x"${TCLSH}" = x ; then
5626     ac_cv_path_tclsh='';
5627   else
5628     ac_cv_path_tclsh="${TCLSH}";
5629   fi
5630 else
5631   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5632 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5633   TCLSH="${ac_cv_path_tclsh}"
5634
5635 fi
5636
5637 fi
5638
5639 # Extract the first word of "zip", so it can be a program name with args.
5640 set dummy zip; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_path_ZIP+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   case $ZIP in
5647   [\\/]* | ?:[\\/]*)
5648   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5649   ;;
5650   *)
5651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654   IFS=$as_save_IFS
5655   test -z "$as_dir" && as_dir=.
5656   for ac_exec_ext in '' $ac_executable_extensions; do
5657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660     break 2
5661   fi
5662 done
5663 done
5664
5665   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5666   ;;
5667 esac
5668 fi
5669 ZIP=$ac_cv_path_ZIP
5670
5671 if test -n "$ZIP"; then
5672   echo "$as_me:$LINENO: result: $ZIP" >&5
5673 echo "${ECHO_T}$ZIP" >&6
5674 else
5675   echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5681 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5682 if test "${llvm_cv_link_use_r+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685    ac_ext=c
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690
5691   oldcflags="$CFLAGS"
5692   CFLAGS="$CFLAGS -Wl,-R."
5693   cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h.  */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h.  */
5699
5700 int
5701 main ()
5702 {
5703 int main() { return 0; }
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5710   (eval $ac_link) 2>conftest.er1
5711   ac_status=$?
5712   grep -v '^ *+' conftest.er1 >conftest.err
5713   rm -f conftest.er1
5714   cat conftest.err >&5
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } &&
5717          { ac_try='test -z "$ac_c_werror_flag"
5718                          || test ! -s conftest.err'
5719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720   (eval $ac_try) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; } &&
5724          { ac_try='test -s conftest$ac_exeext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   llvm_cv_link_use_r=yes
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 llvm_cv_link_use_r=no
5736 fi
5737 rm -f conftest.err conftest.$ac_objext \
5738       conftest$ac_exeext conftest.$ac_ext
5739   CFLAGS="$oldcflags"
5740   ac_ext=c
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745
5746
5747 fi
5748 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5749 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5750 if test "$llvm_cv_link_use_r" = yes ; then
5751
5752 cat >>confdefs.h <<\_ACEOF
5753 #define HAVE_LINK_R 1
5754 _ACEOF
5755
5756   fi
5757
5758
5759
5760
5761 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5762 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5763 if test "${ac_cv_c_const+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h.  */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h.  */
5772
5773 int
5774 main ()
5775 {
5776 /* FIXME: Include the comments suggested by Paul. */
5777 #ifndef __cplusplus
5778   /* Ultrix mips cc rejects this.  */
5779   typedef int charset[2];
5780   const charset x;
5781   /* SunOS 4.1.1 cc rejects this.  */
5782   char const *const *ccp;
5783   char **p;
5784   /* NEC SVR4.0.2 mips cc rejects this.  */
5785   struct point {int x, y;};
5786   static struct point const zero = {0,0};
5787   /* AIX XL C 1.02.0.0 rejects this.
5788      It does not let you subtract one const X* pointer from another in
5789      an arm of an if-expression whose if-part is not a constant
5790      expression */
5791   const char *g = "string";
5792   ccp = &g + (g ? g-g : 0);
5793   /* HPUX 7.0 cc rejects these. */
5794   ++ccp;
5795   p = (char**) ccp;
5796   ccp = (char const *const *) p;
5797   { /* SCO 3.2v4 cc rejects this.  */
5798     char *t;
5799     char const *s = 0 ? (char *) 0 : (char const *) 0;
5800
5801     *t++ = 0;
5802   }
5803   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5804     int x[] = {25, 17};
5805     const int *foo = &x[0];
5806     ++foo;
5807   }
5808   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5809     typedef const int *iptr;
5810     iptr p = 0;
5811     ++p;
5812   }
5813   { /* AIX XL C 1.02.0.0 rejects this saying
5814        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5815     struct s { int j; const int *ap[3]; };
5816     struct s *b; b->j = 5;
5817   }
5818   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5819     const int foo = 10;
5820   }
5821 #endif
5822
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829   (eval $ac_compile) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_c_werror_flag"
5837                          || test ! -s conftest.err'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; } &&
5843          { ac_try='test -s conftest.$ac_objext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   ac_cv_c_const=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_cv_c_const=no
5855 fi
5856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5859 echo "${ECHO_T}$ac_cv_c_const" >&6
5860 if test $ac_cv_c_const = no; then
5861
5862 cat >>confdefs.h <<\_ACEOF
5863 #define const
5864 _ACEOF
5865
5866 fi
5867
5868
5869 echo "$as_me:$LINENO: checking for egrep" >&5
5870 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5871 if test "${ac_cv_prog_egrep+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5875     then ac_cv_prog_egrep='grep -E'
5876     else ac_cv_prog_egrep='egrep'
5877     fi
5878 fi
5879 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5880 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5881  EGREP=$ac_cv_prog_egrep
5882
5883
5884 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5885 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5886 if test "${ac_cv_header_stdc+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #include <stdlib.h>
5896 #include <stdarg.h>
5897 #include <string.h>
5898 #include <float.h>
5899
5900 int
5901 main ()
5902 {
5903
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910   (eval $ac_compile) 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } &&
5917          { ac_try='test -z "$ac_c_werror_flag"
5918                          || test ! -s conftest.err'
5919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920   (eval $ac_try) 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; } &&
5924          { ac_try='test -s conftest.$ac_objext'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; }; then
5930   ac_cv_header_stdc=yes
5931 else
5932   echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_cv_header_stdc=no
5936 fi
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938
5939 if test $ac_cv_header_stdc = yes; then
5940   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5941   cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 #include <string.h>
5948
5949 _ACEOF
5950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5951   $EGREP "memchr" >/dev/null 2>&1; then
5952   :
5953 else
5954   ac_cv_header_stdc=no
5955 fi
5956 rm -f conftest*
5957
5958 fi
5959
5960 if test $ac_cv_header_stdc = yes; then
5961   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5962   cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968 #include <stdlib.h>
5969
5970 _ACEOF
5971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5972   $EGREP "free" >/dev/null 2>&1; then
5973   :
5974 else
5975   ac_cv_header_stdc=no
5976 fi
5977 rm -f conftest*
5978
5979 fi
5980
5981 if test $ac_cv_header_stdc = yes; then
5982   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5983   if test "$cross_compiling" = yes; then
5984   :
5985 else
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #include <ctype.h>
5993 #if ((' ' & 0x0FF) == 0x020)
5994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5996 #else
5997 # define ISLOWER(c) \
5998                    (('a' <= (c) && (c) <= 'i') \
5999                      || ('j' <= (c) && (c) <= 'r') \
6000                      || ('s' <= (c) && (c) <= 'z'))
6001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6002 #endif
6003
6004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6005 int
6006 main ()
6007 {
6008   int i;
6009   for (i = 0; i < 256; i++)
6010     if (XOR (islower (i), ISLOWER (i))
6011         || toupper (i) != TOUPPER (i))
6012       exit(2);
6013   exit (0);
6014 }
6015 _ACEOF
6016 rm -f conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; }; then
6027   :
6028 else
6029   echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 ( exit $ac_status )
6034 ac_cv_header_stdc=no
6035 fi
6036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 fi
6039 fi
6040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6042 if test $ac_cv_header_stdc = yes; then
6043
6044 cat >>confdefs.h <<\_ACEOF
6045 #define STDC_HEADERS 1
6046 _ACEOF
6047
6048 fi
6049
6050
6051
6052
6053
6054
6055 ac_header_dirent=no
6056 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6057   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6058 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6059 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069 #include <sys/types.h>
6070 #include <$ac_hdr>
6071
6072 int
6073 main ()
6074 {
6075 if ((DIR *) 0)
6076 return 0;
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083   (eval $ac_compile) 2>conftest.er1
6084   ac_status=$?
6085   grep -v '^ *+' conftest.er1 >conftest.err
6086   rm -f conftest.er1
6087   cat conftest.err >&5
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); } &&
6090          { ac_try='test -z "$ac_c_werror_flag"
6091                          || test ! -s conftest.err'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; } &&
6097          { ac_try='test -s conftest.$ac_objext'
6098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099   (eval $ac_try) 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }; }; then
6103   eval "$as_ac_Header=yes"
6104 else
6105   echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108 eval "$as_ac_Header=no"
6109 fi
6110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6111 fi
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6115   cat >>confdefs.h <<_ACEOF
6116 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6117 _ACEOF
6118
6119 ac_header_dirent=$ac_hdr; break
6120 fi
6121
6122 done
6123 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6124 if test $ac_header_dirent = dirent.h; then
6125   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6126 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6127 if test "${ac_cv_search_opendir+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   ac_func_search_save_LIBS=$LIBS
6131 ac_cv_search_opendir=no
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138
6139 /* Override any gcc2 internal prototype to avoid an error.  */
6140 #ifdef __cplusplus
6141 extern "C"
6142 #endif
6143 /* We use char because int might match the return type of a gcc2
6144    builtin and then its argument prototype would still apply.  */
6145 char opendir ();
6146 int
6147 main ()
6148 {
6149 opendir ();
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156   (eval $ac_link) 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } &&
6163          { ac_try='test -z "$ac_c_werror_flag"
6164                          || test ! -s conftest.err'
6165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166   (eval $ac_try) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; } &&
6170          { ac_try='test -s conftest$ac_exeext'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_search_opendir="none required"
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 fi
6182 rm -f conftest.err conftest.$ac_objext \
6183       conftest$ac_exeext conftest.$ac_ext
6184 if test "$ac_cv_search_opendir" = no; then
6185   for ac_lib in dir; do
6186     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6187     cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193
6194 /* Override any gcc2 internal prototype to avoid an error.  */
6195 #ifdef __cplusplus
6196 extern "C"
6197 #endif
6198 /* We use char because int might match the return type of a gcc2
6199    builtin and then its argument prototype would still apply.  */
6200 char opendir ();
6201 int
6202 main ()
6203 {
6204 opendir ();
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211   (eval $ac_link) 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } &&
6218          { ac_try='test -z "$ac_c_werror_flag"
6219                          || test ! -s conftest.err'
6220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221   (eval $ac_try) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); }; } &&
6225          { ac_try='test -s conftest$ac_exeext'
6226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227   (eval $ac_try) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; }; then
6231   ac_cv_search_opendir="-l$ac_lib"
6232 break
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 fi
6238 rm -f conftest.err conftest.$ac_objext \
6239       conftest$ac_exeext conftest.$ac_ext
6240   done
6241 fi
6242 LIBS=$ac_func_search_save_LIBS
6243 fi
6244 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6245 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6246 if test "$ac_cv_search_opendir" != no; then
6247   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6248
6249 fi
6250
6251 else
6252   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6253 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6254 if test "${ac_cv_search_opendir+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   ac_func_search_save_LIBS=$LIBS
6258 ac_cv_search_opendir=no
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265
6266 /* Override any gcc2 internal prototype to avoid an error.  */
6267 #ifdef __cplusplus
6268 extern "C"
6269 #endif
6270 /* We use char because int might match the return type of a gcc2
6271    builtin and then its argument prototype would still apply.  */
6272 char opendir ();
6273 int
6274 main ()
6275 {
6276 opendir ();
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283   (eval $ac_link) 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -z "$ac_c_werror_flag"
6291                          || test ! -s conftest.err'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; } &&
6297          { ac_try='test -s conftest$ac_exeext'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; }; then
6303   ac_cv_search_opendir="none required"
6304 else
6305   echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 fi
6309 rm -f conftest.err conftest.$ac_objext \
6310       conftest$ac_exeext conftest.$ac_ext
6311 if test "$ac_cv_search_opendir" = no; then
6312   for ac_lib in x; do
6313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6314     cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h.  */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h.  */
6320
6321 /* Override any gcc2 internal prototype to avoid an error.  */
6322 #ifdef __cplusplus
6323 extern "C"
6324 #endif
6325 /* We use char because int might match the return type of a gcc2
6326    builtin and then its argument prototype would still apply.  */
6327 char opendir ();
6328 int
6329 main ()
6330 {
6331 opendir ();
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338   (eval $ac_link) 2>conftest.er1
6339   ac_status=$?
6340   grep -v '^ *+' conftest.er1 >conftest.err
6341   rm -f conftest.er1
6342   cat conftest.err >&5
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } &&
6345          { ac_try='test -z "$ac_c_werror_flag"
6346                          || test ! -s conftest.err'
6347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348   (eval $ac_try) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); }; } &&
6352          { ac_try='test -s conftest$ac_exeext'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; }; then
6358   ac_cv_search_opendir="-l$ac_lib"
6359 break
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 fi
6365 rm -f conftest.err conftest.$ac_objext \
6366       conftest$ac_exeext conftest.$ac_ext
6367   done
6368 fi
6369 LIBS=$ac_func_search_save_LIBS
6370 fi
6371 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6372 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6373 if test "$ac_cv_search_opendir" != no; then
6374   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6375
6376 fi
6377
6378 fi
6379
6380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6391                   inttypes.h stdint.h unistd.h
6392 do
6393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 echo "$as_me:$LINENO: checking for $ac_header" >&5
6395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h.  */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h.  */
6405 $ac_includes_default
6406
6407 #include <$ac_header>
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_c_werror_flag"
6419                          || test ! -s conftest.err'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; } &&
6425          { ac_try='test -s conftest.$ac_objext'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   eval "$as_ac_Header=yes"
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 eval "$as_ac_Header=no"
6437 fi
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443   cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6446
6447 fi
6448
6449 done
6450
6451
6452
6453 for ac_header in dlfcn.h
6454 do
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6457   echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 fi
6462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6464 else
6465   # Is the header compilable?
6466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475 #include <$ac_header>
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479   (eval $ac_compile) 2>conftest.er1
6480   ac_status=$?
6481   grep -v '^ *+' conftest.er1 >conftest.err
6482   rm -f conftest.er1
6483   cat conftest.err >&5
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } &&
6486          { ac_try='test -z "$ac_c_werror_flag"
6487                          || test ! -s conftest.err'
6488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489   (eval $ac_try) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); }; } &&
6493          { ac_try='test -s conftest.$ac_objext'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; }; then
6499   ac_header_compiler=yes
6500 else
6501   echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ac_header_compiler=no
6505 fi
6506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6508 echo "${ECHO_T}$ac_header_compiler" >&6
6509
6510 # Is the header present?
6511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519 #include <$ac_header>
6520 _ACEOF
6521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } >/dev/null; then
6529   if test -s conftest.err; then
6530     ac_cpp_err=$ac_c_preproc_warn_flag
6531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6532   else
6533     ac_cpp_err=
6534   fi
6535 else
6536   ac_cpp_err=yes
6537 fi
6538 if test -z "$ac_cpp_err"; then
6539   ac_header_preproc=yes
6540 else
6541   echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544   ac_header_preproc=no
6545 fi
6546 rm -f conftest.err conftest.$ac_ext
6547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6548 echo "${ECHO_T}$ac_header_preproc" >&6
6549
6550 # So?  What about this header?
6551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6552   yes:no: )
6553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6557     ac_header_preproc=yes
6558     ;;
6559   no:yes:* )
6560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6562     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6563 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6564     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6566     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6567 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6570     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6572     (
6573       cat <<\_ASBOX
6574 ## ----------------------------------- ##
6575 ## Report this to llvmbugs@cs.uiuc.edu ##
6576 ## ----------------------------------- ##
6577 _ASBOX
6578     ) |
6579       sed "s/^/$as_me: WARNING:     /" >&2
6580     ;;
6581 esac
6582 echo "$as_me:$LINENO: checking for $ac_header" >&5
6583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   eval "$as_ac_Header=\$ac_header_preproc"
6588 fi
6589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6591
6592 fi
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594   cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6597
6598 fi
6599
6600 done
6601
6602 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6603 if test "${enable_ltdl_install+set}" = set; then
6604   enableval="$enable_ltdl_install"
6605
6606 fi;
6607
6608
6609
6610 if test x"${enable_ltdl_install-no}" != xno; then
6611   INSTALL_LTDL_TRUE=
6612   INSTALL_LTDL_FALSE='#'
6613 else
6614   INSTALL_LTDL_TRUE='#'
6615   INSTALL_LTDL_FALSE=
6616 fi
6617
6618
6619
6620 if test x"${enable_ltdl_convenience-no}" != xno; then
6621   CONVENIENCE_LTDL_TRUE=
6622   CONVENIENCE_LTDL_FALSE='#'
6623 else
6624   CONVENIENCE_LTDL_TRUE='#'
6625   CONVENIENCE_LTDL_FALSE=
6626 fi
6627
6628
6629 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6631 library_names_spec=
6632 libname_spec='lib$name'
6633 soname_spec=
6634 shrext_cmds=".so"
6635 postinstall_cmds=
6636 postuninstall_cmds=
6637 finish_cmds=
6638 finish_eval=
6639 shlibpath_var=
6640 shlibpath_overrides_runpath=unknown
6641 version_type=none
6642 dynamic_linker="$host_os ld.so"
6643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6644 if test "$GCC" = yes; then
6645   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6646   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6647     # if the path contains ";" then we assume it to be the separator
6648     # otherwise default to the standard path separator (i.e. ":") - it is
6649     # assumed that no part of a normal pathname contains ";" but that should
6650     # okay in the real world where ";" in dirpaths is itself problematic.
6651     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6652   else
6653     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6654   fi
6655 else
6656   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6657 fi
6658 need_lib_prefix=unknown
6659 hardcode_into_libs=no
6660
6661 # when you set need_version to no, make sure it does not cause -set_version
6662 # flags to be left without arguments
6663 need_version=unknown
6664
6665 case $host_os in
6666 aix3*)
6667   version_type=linux
6668   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6669   shlibpath_var=LIBPATH
6670
6671   # AIX 3 has no versioning support, so we append a major version to the name.
6672   soname_spec='${libname}${release}${shared_ext}$major'
6673   ;;
6674
6675 aix4* | aix5*)
6676   version_type=linux
6677   need_lib_prefix=no
6678   need_version=no
6679   hardcode_into_libs=yes
6680   if test "$host_cpu" = ia64; then
6681     # AIX 5 supports IA64
6682     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6683     shlibpath_var=LD_LIBRARY_PATH
6684   else
6685     # With GCC up to 2.95.x, collect2 would create an import file
6686     # for dependence libraries.  The import file would start with
6687     # the line `#! .'.  This would cause the generated library to
6688     # depend on `.', always an invalid library.  This was fixed in
6689     # development snapshots of GCC prior to 3.0.
6690     case $host_os in
6691       aix4 | aix4.[01] | aix4.[01].*)
6692       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6693            echo ' yes '
6694            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6695         :
6696       else
6697         can_build_shared=no
6698       fi
6699       ;;
6700     esac
6701     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6702     # soname into executable. Probably we can add versioning support to
6703     # collect2, so additional links can be useful in future.
6704     if test "$aix_use_runtimelinking" = yes; then
6705       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6706       # instead of lib<name>.a to let people know that these are not
6707       # typical AIX shared libraries.
6708       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6709     else
6710       # We preserve .a as extension for shared libraries through AIX4.2
6711       # and later when we are not doing run time linking.
6712       library_names_spec='${libname}${release}.a $libname.a'
6713       soname_spec='${libname}${release}${shared_ext}$major'
6714     fi
6715     shlibpath_var=LIBPATH
6716   fi
6717   ;;
6718
6719 amigaos*)
6720   library_names_spec='$libname.ixlibrary $libname.a'
6721   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6722   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'
6723   ;;
6724
6725 beos*)
6726   library_names_spec='${libname}${shared_ext}'
6727   dynamic_linker="$host_os ld.so"
6728   shlibpath_var=LIBRARY_PATH
6729   ;;
6730
6731 bsdi[45]*)
6732   version_type=linux
6733   need_version=no
6734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6735   soname_spec='${libname}${release}${shared_ext}$major'
6736   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6737   shlibpath_var=LD_LIBRARY_PATH
6738   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6739   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6740   # the default ld.so.conf also contains /usr/contrib/lib and
6741   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6742   # libtool to hard-code these into programs
6743   ;;
6744
6745 cygwin* | mingw* | pw32*)
6746   version_type=windows
6747   shrext_cmds=".dll"
6748   need_version=no
6749   need_lib_prefix=no
6750
6751   case $GCC,$host_os in
6752   yes,cygwin* | yes,mingw* | yes,pw32*)
6753     library_names_spec='$libname.dll.a'
6754     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6755     postinstall_cmds='base_file=`basename \${file}`~
6756       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6757       dldir=$destdir/`dirname \$dlpath`~
6758       test -d \$dldir || mkdir -p \$dldir~
6759       $install_prog $dir/$dlname \$dldir/$dlname'
6760     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6761       dlpath=$dir/\$dldll~
6762        $rm \$dlpath'
6763     shlibpath_overrides_runpath=yes
6764
6765     case $host_os in
6766     cygwin*)
6767       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6768       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6769       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6770       ;;
6771     mingw*)
6772       # MinGW DLLs use traditional 'lib' prefix
6773       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6774       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6775       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6776         # It is most probably a Windows format PATH printed by
6777         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6778         # path with ; separators, and with drive letters. We can handle the
6779         # drive letters (cygwin fileutils understands them), so leave them,
6780         # especially as we might pass files found there to a mingw objdump,
6781         # which wouldn't understand a cygwinified path. Ahh.
6782         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6783       else
6784         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6785       fi
6786       ;;
6787     pw32*)
6788       # pw32 DLLs use 'pw' prefix rather than 'lib'
6789       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6790       ;;
6791     esac
6792     ;;
6793
6794   *)
6795     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6796     ;;
6797   esac
6798   dynamic_linker='Win32 ld.exe'
6799   # FIXME: first we should search . and the directory the executable is in
6800   shlibpath_var=PATH
6801   ;;
6802
6803 darwin* | rhapsody*)
6804   dynamic_linker="$host_os dyld"
6805   version_type=darwin
6806   need_lib_prefix=no
6807   need_version=no
6808   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6809   soname_spec='${libname}${release}${major}$shared_ext'
6810   shlibpath_overrides_runpath=yes
6811   shlibpath_var=DYLD_LIBRARY_PATH
6812   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6813   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6814   if test "$GCC" = yes; then
6815     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"`
6816   else
6817     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6818   fi
6819   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6820   ;;
6821
6822 dgux*)
6823   version_type=linux
6824   need_lib_prefix=no
6825   need_version=no
6826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6827   soname_spec='${libname}${release}${shared_ext}$major'
6828   shlibpath_var=LD_LIBRARY_PATH
6829   ;;
6830
6831 freebsd1*)
6832   dynamic_linker=no
6833   ;;
6834
6835 kfreebsd*-gnu)
6836   version_type=linux
6837   need_lib_prefix=no
6838   need_version=no
6839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6840   soname_spec='${libname}${release}${shared_ext}$major'
6841   shlibpath_var=LD_LIBRARY_PATH
6842   shlibpath_overrides_runpath=no
6843   hardcode_into_libs=yes
6844   dynamic_linker='GNU ld.so'
6845   ;;
6846
6847 freebsd*)
6848   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6849   version_type=freebsd-$objformat
6850   case $version_type in
6851     freebsd-elf*)
6852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6853       need_version=no
6854       need_lib_prefix=no
6855       ;;
6856     freebsd-*)
6857       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6858       need_version=yes
6859       ;;
6860   esac
6861   shlibpath_var=LD_LIBRARY_PATH
6862   case $host_os in
6863   freebsd2*)
6864     shlibpath_overrides_runpath=yes
6865     ;;
6866   freebsd3.01* | freebsdelf3.01*)
6867     shlibpath_overrides_runpath=yes
6868     hardcode_into_libs=yes
6869     ;;
6870   *) # from 3.2 on
6871     shlibpath_overrides_runpath=no
6872     hardcode_into_libs=yes
6873     ;;
6874   esac
6875   ;;
6876
6877 gnu*)
6878   version_type=linux
6879   need_lib_prefix=no
6880   need_version=no
6881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6882   soname_spec='${libname}${release}${shared_ext}$major'
6883   shlibpath_var=LD_LIBRARY_PATH
6884   hardcode_into_libs=yes
6885   ;;
6886
6887 hpux9* | hpux10* | hpux11*)
6888   # Give a soname corresponding to the major version so that dld.sl refuses to
6889   # link against other versions.
6890   version_type=sunos
6891   need_lib_prefix=no
6892   need_version=no
6893   case "$host_cpu" in
6894   ia64*)
6895     shrext_cmds='.so'
6896     hardcode_into_libs=yes
6897     dynamic_linker="$host_os dld.so"
6898     shlibpath_var=LD_LIBRARY_PATH
6899     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6901     soname_spec='${libname}${release}${shared_ext}$major'
6902     if test "X$HPUX_IA64_MODE" = X32; then
6903       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6904     else
6905       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6906     fi
6907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6908     ;;
6909    hppa*64*)
6910      shrext_cmds='.sl'
6911      hardcode_into_libs=yes
6912      dynamic_linker="$host_os dld.sl"
6913      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6914      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916      soname_spec='${libname}${release}${shared_ext}$major'
6917      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6918      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6919      ;;
6920    *)
6921     shrext_cmds='.sl'
6922     dynamic_linker="$host_os dld.sl"
6923     shlibpath_var=SHLIB_PATH
6924     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926     soname_spec='${libname}${release}${shared_ext}$major'
6927     ;;
6928   esac
6929   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6930   postinstall_cmds='chmod 555 $lib'
6931   ;;
6932
6933 irix5* | irix6* | nonstopux*)
6934   case $host_os in
6935     nonstopux*) version_type=nonstopux ;;
6936     *)
6937         if test "$lt_cv_prog_gnu_ld" = yes; then
6938                 version_type=linux
6939         else
6940                 version_type=irix
6941         fi ;;
6942   esac
6943   need_lib_prefix=no
6944   need_version=no
6945   soname_spec='${libname}${release}${shared_ext}$major'
6946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6947   case $host_os in
6948   irix5* | nonstopux*)
6949     libsuff= shlibsuff=
6950     ;;
6951   *)
6952     case $LD in # libtool.m4 will add one of these switches to LD
6953     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6954       libsuff= shlibsuff= libmagic=32-bit;;
6955     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6956       libsuff=32 shlibsuff=N32 libmagic=N32;;
6957     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6958       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6959     *) libsuff= shlibsuff= libmagic=never-match;;
6960     esac
6961     ;;
6962   esac
6963   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6964   shlibpath_overrides_runpath=no
6965   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6966   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6967   hardcode_into_libs=yes
6968   ;;
6969
6970 # No shared lib support for Linux oldld, aout, or coff.
6971 linux*oldld* | linux*aout* | linux*coff*)
6972   dynamic_linker=no
6973   ;;
6974
6975 # This must be Linux ELF.
6976 linux*)
6977   version_type=linux
6978   need_lib_prefix=no
6979   need_version=no
6980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6981   soname_spec='${libname}${release}${shared_ext}$major'
6982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6983   shlibpath_var=LD_LIBRARY_PATH
6984   shlibpath_overrides_runpath=no
6985   # This implies no fast_install, which is unacceptable.
6986   # Some rework will be needed to allow for fast_install
6987   # before this can be enabled.
6988   hardcode_into_libs=yes
6989
6990   # Append ld.so.conf contents to the search path
6991   if test -f /etc/ld.so.conf; then
6992     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6993     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6994   fi
6995
6996   # We used to test for /lib/ld.so.1 and disable shared libraries on
6997   # powerpc, because MkLinux only supported shared libraries with the
6998   # GNU dynamic linker.  Since this was broken with cross compilers,
6999   # most powerpc-linux boxes support dynamic linking these days and
7000   # people can always --disable-shared, the test was removed, and we
7001   # assume the GNU/Linux dynamic linker is in use.
7002   dynamic_linker='GNU/Linux ld.so'
7003   ;;
7004
7005 knetbsd*-gnu)
7006   version_type=linux
7007   need_lib_prefix=no
7008   need_version=no
7009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7010   soname_spec='${libname}${release}${shared_ext}$major'
7011   shlibpath_var=LD_LIBRARY_PATH
7012   shlibpath_overrides_runpath=no
7013   hardcode_into_libs=yes
7014   dynamic_linker='GNU ld.so'
7015   ;;
7016
7017 netbsd*)
7018   version_type=sunos
7019   need_lib_prefix=no
7020   need_version=no
7021   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7023     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7024     dynamic_linker='NetBSD (a.out) ld.so'
7025   else
7026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027     soname_spec='${libname}${release}${shared_ext}$major'
7028     dynamic_linker='NetBSD ld.elf_so'
7029   fi
7030   shlibpath_var=LD_LIBRARY_PATH
7031   shlibpath_overrides_runpath=yes
7032   hardcode_into_libs=yes
7033   ;;
7034
7035 newsos6)
7036   version_type=linux
7037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7038   shlibpath_var=LD_LIBRARY_PATH
7039   shlibpath_overrides_runpath=yes
7040   ;;
7041
7042 nto-qnx*)
7043   version_type=linux
7044   need_lib_prefix=no
7045   need_version=no
7046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7047   soname_spec='${libname}${release}${shared_ext}$major'
7048   shlibpath_var=LD_LIBRARY_PATH
7049   shlibpath_overrides_runpath=yes
7050   ;;
7051
7052 openbsd*)
7053   version_type=sunos
7054   need_lib_prefix=no
7055   need_version=no
7056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7058   shlibpath_var=LD_LIBRARY_PATH
7059   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7060     case $host_os in
7061       openbsd2.[89] | openbsd2.[89].*)
7062         shlibpath_overrides_runpath=no
7063         ;;
7064       *)
7065         shlibpath_overrides_runpath=yes
7066         ;;
7067       esac
7068   else
7069     shlibpath_overrides_runpath=yes
7070   fi
7071   ;;
7072
7073 os2*)
7074   libname_spec='$name'
7075   shrext_cmds=".dll"
7076   need_lib_prefix=no
7077   library_names_spec='$libname${shared_ext} $libname.a'
7078   dynamic_linker='OS/2 ld.exe'
7079   shlibpath_var=LIBPATH
7080   ;;
7081
7082 osf3* | osf4* | osf5*)
7083   version_type=osf
7084   need_lib_prefix=no
7085   need_version=no
7086   soname_spec='${libname}${release}${shared_ext}$major'
7087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088   shlibpath_var=LD_LIBRARY_PATH
7089   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7090   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7091   ;;
7092
7093 sco3.2v5*)
7094   version_type=osf
7095   soname_spec='${libname}${release}${shared_ext}$major'
7096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7097   shlibpath_var=LD_LIBRARY_PATH
7098   ;;
7099
7100 solaris*)
7101   version_type=linux
7102   need_lib_prefix=no
7103   need_version=no
7104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7105   soname_spec='${libname}${release}${shared_ext}$major'
7106   shlibpath_var=LD_LIBRARY_PATH
7107   shlibpath_overrides_runpath=yes
7108   hardcode_into_libs=yes
7109   # ldd complains unless libraries are executable
7110   postinstall_cmds='chmod +x $lib'
7111   ;;
7112
7113 sunos4*)
7114   version_type=sunos
7115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7116   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7117   shlibpath_var=LD_LIBRARY_PATH
7118   shlibpath_overrides_runpath=yes
7119   if test "$with_gnu_ld" = yes; then
7120     need_lib_prefix=no
7121   fi
7122   need_version=yes
7123   ;;
7124
7125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7126   version_type=linux
7127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7128   soname_spec='${libname}${release}${shared_ext}$major'
7129   shlibpath_var=LD_LIBRARY_PATH
7130   case $host_vendor in
7131     sni)
7132       shlibpath_overrides_runpath=no
7133       need_lib_prefix=no
7134       export_dynamic_flag_spec='${wl}-Blargedynsym'
7135       runpath_var=LD_RUN_PATH
7136       ;;
7137     siemens)
7138       need_lib_prefix=no
7139       ;;
7140     motorola)
7141       need_lib_prefix=no
7142       need_version=no
7143       shlibpath_overrides_runpath=no
7144       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7145       ;;
7146   esac
7147   ;;
7148
7149 sysv4*MP*)
7150   if test -d /usr/nec ;then
7151     version_type=linux
7152     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7153     soname_spec='$libname${shared_ext}.$major'
7154     shlibpath_var=LD_LIBRARY_PATH
7155   fi
7156   ;;
7157
7158 uts4*)
7159   version_type=linux
7160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7161   soname_spec='${libname}${release}${shared_ext}$major'
7162   shlibpath_var=LD_LIBRARY_PATH
7163   ;;
7164
7165 *)
7166   dynamic_linker=no
7167   ;;
7168 esac
7169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7170 echo "${ECHO_T}$dynamic_linker" >&6
7171 test "$dynamic_linker" = no && can_build_shared=no
7172
7173
7174 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7175 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7176 if test "${libltdl_cv_shlibext+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179
7180 module=yes
7181 eval libltdl_cv_shlibext=$shrext_cmds
7182
7183 fi
7184 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7185 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7186 if test -n "$libltdl_cv_shlibext"; then
7187
7188 cat >>confdefs.h <<_ACEOF
7189 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7190 _ACEOF
7191
7192 fi
7193
7194
7195 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7196 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7197 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   libltdl_cv_shlibpath_var="$shlibpath_var"
7201 fi
7202 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7203 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7204 if test -n "$libltdl_cv_shlibpath_var"; then
7205
7206 cat >>confdefs.h <<_ACEOF
7207 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7208 _ACEOF
7209
7210 fi
7211
7212
7213 echo "$as_me:$LINENO: checking for the default library search path" >&5
7214 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7215 if test "${libltdl_cv_sys_search_path+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7219 fi
7220 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7221 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7222 if test -n "$libltdl_cv_sys_search_path"; then
7223   sys_search_path=
7224   for dir in $libltdl_cv_sys_search_path; do
7225     if test -z "$sys_search_path"; then
7226       sys_search_path="$dir"
7227     else
7228       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7229     fi
7230   done
7231
7232 cat >>confdefs.h <<_ACEOF
7233 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7234 _ACEOF
7235
7236 fi
7237
7238 echo "$as_me:$LINENO: checking for objdir" >&5
7239 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7240 if test "${libltdl_cv_objdir+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   libltdl_cv_objdir="$objdir"
7244   if test -n "$objdir"; then
7245     :
7246   else
7247     rm -f .libs 2>/dev/null
7248     mkdir .libs 2>/dev/null
7249     if test -d .libs; then
7250       libltdl_cv_objdir=.libs
7251     else
7252       # MS-DOS does not allow filenames that begin with a dot.
7253       libltdl_cv_objdir=_libs
7254     fi
7255   rmdir .libs 2>/dev/null
7256   fi
7257
7258 fi
7259 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7260 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7261
7262 cat >>confdefs.h <<_ACEOF
7263 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7264 _ACEOF
7265
7266
7267 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7268 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7269 if test "${lt_cv_path_NM+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   if test -n "$NM"; then
7273   # Let the user override the test.
7274   lt_cv_path_NM="$NM"
7275 else
7276   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7278     IFS="$lt_save_ifs"
7279     test -z "$ac_dir" && ac_dir=.
7280     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7281     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7282       # Check to see if the nm accepts a BSD-compat flag.
7283       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7284       #   nm: unknown option "B" ignored
7285       # Tru64's nm complains that /dev/null is an invalid object file
7286       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7287       */dev/null* | *'Invalid file or object type'*)
7288         lt_cv_path_NM="$tmp_nm -B"
7289         break
7290         ;;
7291       *)
7292         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7293         */dev/null*)
7294           lt_cv_path_NM="$tmp_nm -p"
7295           break
7296           ;;
7297         *)
7298           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7299           continue # so that we can try to find one that supports BSD flags
7300           ;;
7301         esac
7302       esac
7303     fi
7304   done
7305   IFS="$lt_save_ifs"
7306   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7307 fi
7308 fi
7309 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7310 echo "${ECHO_T}$lt_cv_path_NM" >&6
7311 NM="$lt_cv_path_NM"
7312
7313
7314
7315
7316
7317 # Check for command to grab the raw symbol name followed by C symbol from nm.
7318 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7319 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323
7324 # These are sane defaults that work on at least a few old systems.
7325 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7326
7327 # Character class describing NM global symbol codes.
7328 symcode='[BCDEGRST]'
7329
7330 # Regexp to match symbols that can be accessed directly from C.
7331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7332
7333 # Transform the above into a raw symbol and a C symbol.
7334 symxfrm='\1 \2\3 \3'
7335
7336 # Transform an extracted symbol line into a proper C declaration
7337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7338
7339 # Transform an extracted symbol line into symbol name and symbol address
7340 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'"
7341
7342 # Define system-specific variables.
7343 case $host_os in
7344 aix*)
7345   symcode='[BCDT]'
7346   ;;
7347 cygwin* | mingw* | pw32*)
7348   symcode='[ABCDGISTW]'
7349   ;;
7350 hpux*) # Its linker distinguishes data from code symbols
7351   if test "$host_cpu" = ia64; then
7352     symcode='[ABCDEGRST]'
7353   fi
7354   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7355   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'"
7356   ;;
7357 linux*)
7358   if test "$host_cpu" = ia64; then
7359     symcode='[ABCDGIRSTW]'
7360     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7361     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'"
7362   fi
7363   ;;
7364 irix* | nonstopux*)
7365   symcode='[BCDEGRST]'
7366   ;;
7367 osf*)
7368   symcode='[BCDEGQRST]'
7369   ;;
7370 solaris* | sysv5*)
7371   symcode='[BDRT]'
7372   ;;
7373 sysv4)
7374   symcode='[DFNSTU]'
7375   ;;
7376 esac
7377
7378 # Handle CRLF in mingw tool chain
7379 opt_cr=
7380 case $build_os in
7381 mingw*)
7382   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7383   ;;
7384 esac
7385
7386 # If we're using GNU nm, then use its standard symbol codes.
7387 case `$NM -V 2>&1` in
7388 *GNU* | *'with BFD'*)
7389   symcode='[ABCDGIRSTW]' ;;
7390 esac
7391
7392 # Try without a prefix undercore, then with it.
7393 for ac_symprfx in "" "_"; do
7394
7395   # Write the raw and C identifiers.
7396   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7397
7398   # Check to see that the pipe works correctly.
7399   pipe_works=no
7400
7401   rm -f conftest*
7402   cat > conftest.$ac_ext <<EOF
7403 #ifdef __cplusplus
7404 extern "C" {
7405 #endif
7406 char nm_test_var;
7407 void nm_test_func(){}
7408 #ifdef __cplusplus
7409 }
7410 #endif
7411 int main(){nm_test_var='a';nm_test_func();return(0);}
7412 EOF
7413
7414   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); }; then
7419     # Now try to grab the symbols.
7420     nlist=conftest.nm
7421     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7422   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); } && test -s "$nlist"; then
7426       # Try sorting and uniquifying the output.
7427       if sort "$nlist" | uniq > "$nlist"T; then
7428         mv -f "$nlist"T "$nlist"
7429       else
7430         rm -f "$nlist"T
7431       fi
7432
7433       # Make sure that we snagged all the symbols we need.
7434       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7435         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7436           cat <<EOF > conftest.$ac_ext
7437 #ifdef __cplusplus
7438 extern "C" {
7439 #endif
7440
7441 EOF
7442           # Now generate the symbol file.
7443           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7444
7445           cat <<EOF >> conftest.$ac_ext
7446 #if defined (__STDC__) && __STDC__
7447 # define lt_ptr_t void *
7448 #else
7449 # define lt_ptr_t char *
7450 # define const
7451 #endif
7452
7453 /* The mapping between symbol names and symbols. */
7454 const struct {
7455   const char *name;
7456   lt_ptr_t address;
7457 }
7458 lt_preloaded_symbols[] =
7459 {
7460 EOF
7461           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7462           cat <<\EOF >> conftest.$ac_ext
7463   {0, (lt_ptr_t) 0}
7464 };
7465
7466 #ifdef __cplusplus
7467 }
7468 #endif
7469 EOF
7470           # Now try linking the two files.
7471           mv conftest.$ac_objext conftstm.$ac_objext
7472           lt_save_LIBS="$LIBS"
7473           lt_save_CFLAGS="$CFLAGS"
7474           LIBS="conftstm.$ac_objext"
7475           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7476           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477   (eval $ac_link) 2>&5
7478   ac_status=$?
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7481             pipe_works=yes
7482           fi
7483           LIBS="$lt_save_LIBS"
7484           CFLAGS="$lt_save_CFLAGS"
7485         else
7486           echo "cannot find nm_test_func in $nlist" >&5
7487         fi
7488       else
7489         echo "cannot find nm_test_var in $nlist" >&5
7490       fi
7491     else
7492       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7493     fi
7494   else
7495     echo "$progname: failed program was:" >&5
7496     cat conftest.$ac_ext >&5
7497   fi
7498   rm -f conftest* conftst*
7499
7500   # Do not use the global_symbol_pipe unless it works.
7501   if test "$pipe_works" = yes; then
7502     break
7503   else
7504     lt_cv_sys_global_symbol_pipe=
7505   fi
7506 done
7507
7508 fi
7509
7510 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7511   lt_cv_sys_global_symbol_to_cdecl=
7512 fi
7513 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7514   echo "$as_me:$LINENO: result: failed" >&5
7515 echo "${ECHO_T}failed" >&6
7516 else
7517   echo "$as_me:$LINENO: result: ok" >&5
7518 echo "${ECHO_T}ok" >&6
7519 fi
7520
7521
7522 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7523 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7524 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7525   echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7528     libltdl_cv_preloaded_symbols=yes
7529   else
7530     libltdl_cv_preloaded_symbols=no
7531   fi
7532
7533 fi
7534 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7535 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7536 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7537
7538 cat >>confdefs.h <<\_ACEOF
7539 #define HAVE_PRELOADED_SYMBOLS 1
7540 _ACEOF
7541
7542 fi
7543
7544 LIBADD_DL=
7545
7546 ac_ext=c
7547 ac_cpp='$CPP $CPPFLAGS'
7548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551
7552
7553 echo "$as_me:$LINENO: checking for shl_load" >&5
7554 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7555 if test "${ac_cv_func_shl_load+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7566 #define shl_load innocuous_shl_load
7567
7568 /* System header to define __stub macros and hopefully few prototypes,
7569     which can conflict with char shl_load (); below.
7570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571     <limits.h> exists even on freestanding compilers.  */
7572
7573 #ifdef __STDC__
7574 # include <limits.h>
7575 #else
7576 # include <assert.h>
7577 #endif
7578
7579 #undef shl_load
7580
7581 /* Override any gcc2 internal prototype to avoid an error.  */
7582 #ifdef __cplusplus
7583 extern "C"
7584 {
7585 #endif
7586 /* We use char because int might match the return type of a gcc2
7587    builtin and then its argument prototype would still apply.  */
7588 char shl_load ();
7589 /* The GNU C library defines this for functions which it implements
7590     to always fail with ENOSYS.  Some functions are actually named
7591     something starting with __ and the normal name is an alias.  */
7592 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7593 choke me
7594 #else
7595 char (*f) () = shl_load;
7596 #endif
7597 #ifdef __cplusplus
7598 }
7599 #endif
7600
7601 int
7602 main ()
7603 {
7604 return f != shl_load;
7605   ;
7606   return 0;
7607 }
7608 _ACEOF
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611   (eval $ac_link) 2>conftest.er1
7612   ac_status=$?
7613   grep -v '^ *+' conftest.er1 >conftest.err
7614   rm -f conftest.er1
7615   cat conftest.err >&5
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } &&
7618          { ac_try='test -z "$ac_c_werror_flag"
7619                          || test ! -s conftest.err'
7620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621   (eval $ac_try) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; } &&
7625          { ac_try='test -s conftest$ac_exeext'
7626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627   (eval $ac_try) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }; }; then
7631   ac_cv_func_shl_load=yes
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 ac_cv_func_shl_load=no
7637 fi
7638 rm -f conftest.err conftest.$ac_objext \
7639       conftest$ac_exeext conftest.$ac_ext
7640 fi
7641 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7642 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7643 if test $ac_cv_func_shl_load = yes; then
7644
7645 cat >>confdefs.h <<\_ACEOF
7646 #define HAVE_SHL_LOAD 1
7647 _ACEOF
7648
7649 else
7650   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7651 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7652 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   ac_check_lib_save_LIBS=$LIBS
7656 LIBS="-ldld  $LIBS"
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h.  */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h.  */
7663
7664 /* Override any gcc2 internal prototype to avoid an error.  */
7665 #ifdef __cplusplus
7666 extern "C"
7667 #endif
7668 /* We use char because int might match the return type of a gcc2
7669    builtin and then its argument prototype would still apply.  */
7670 char shl_load ();
7671 int
7672 main ()
7673 {
7674 shl_load ();
7675   ;
7676   return 0;
7677 }
7678 _ACEOF
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681   (eval $ac_link) 2>conftest.er1
7682   ac_status=$?
7683   grep -v '^ *+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } &&
7688          { ac_try='test -z "$ac_c_werror_flag"
7689                          || test ! -s conftest.err'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; } &&
7695          { ac_try='test -s conftest$ac_exeext'
7696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697   (eval $ac_try) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; }; then
7701   ac_cv_lib_dld_shl_load=yes
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 ac_cv_lib_dld_shl_load=no
7707 fi
7708 rm -f conftest.err conftest.$ac_objext \
7709       conftest$ac_exeext conftest.$ac_ext
7710 LIBS=$ac_check_lib_save_LIBS
7711 fi
7712 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7713 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7714 if test $ac_cv_lib_dld_shl_load = yes; then
7715
7716 cat >>confdefs.h <<\_ACEOF
7717 #define HAVE_SHL_LOAD 1
7718 _ACEOF
7719
7720         LIBADD_DL="$LIBADD_DL -ldld"
7721 else
7722   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   ac_check_lib_save_LIBS=$LIBS
7728 LIBS="-ldl  $LIBS"
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735
7736 /* Override any gcc2 internal prototype to avoid an error.  */
7737 #ifdef __cplusplus
7738 extern "C"
7739 #endif
7740 /* We use char because int might match the return type of a gcc2
7741    builtin and then its argument prototype would still apply.  */
7742 char dlopen ();
7743 int
7744 main ()
7745 {
7746 dlopen ();
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753   (eval $ac_link) 2>conftest.er1
7754   ac_status=$?
7755   grep -v '^ *+' conftest.er1 >conftest.err
7756   rm -f conftest.er1
7757   cat conftest.err >&5
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } &&
7760          { ac_try='test -z "$ac_c_werror_flag"
7761                          || test ! -s conftest.err'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; } &&
7767          { ac_try='test -s conftest$ac_exeext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   ac_cv_lib_dl_dlopen=yes
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 ac_cv_lib_dl_dlopen=no
7779 fi
7780 rm -f conftest.err conftest.$ac_objext \
7781       conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7783 fi
7784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7786 if test $ac_cv_lib_dl_dlopen = yes; then
7787
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_LIBDL 1
7790 _ACEOF
7791
7792                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7793 else
7794   cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800 #if HAVE_DLFCN_H
7801 #  include <dlfcn.h>
7802 #endif
7803
7804 int
7805 main ()
7806 {
7807 dlopen(0, 0);
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814   (eval $ac_link) 2>conftest.er1
7815   ac_status=$?
7816   grep -v '^ *+' conftest.er1 >conftest.err
7817   rm -f conftest.er1
7818   cat conftest.err >&5
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } &&
7821          { ac_try='test -z "$ac_c_werror_flag"
7822                          || test ! -s conftest.err'
7823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824   (eval $ac_try) 2>&5
7825   ac_status=$?
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); }; } &&
7828          { ac_try='test -s conftest$ac_exeext'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; }; then
7834
7835 cat >>confdefs.h <<\_ACEOF
7836 #define HAVE_LIBDL 1
7837 _ACEOF
7838  libltdl_cv_func_dlopen="yes"
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7844 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7845 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   ac_check_lib_save_LIBS=$LIBS
7849 LIBS="-lsvld  $LIBS"
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h.  */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h.  */
7856
7857 /* Override any gcc2 internal prototype to avoid an error.  */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 /* We use char because int might match the return type of a gcc2
7862    builtin and then its argument prototype would still apply.  */
7863 char dlopen ();
7864 int
7865 main ()
7866 {
7867 dlopen ();
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874   (eval $ac_link) 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } &&
7881          { ac_try='test -z "$ac_c_werror_flag"
7882                          || test ! -s conftest.err'
7883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884   (eval $ac_try) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; } &&
7888          { ac_try='test -s conftest$ac_exeext'
7889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890   (eval $ac_try) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; }; then
7894   ac_cv_lib_svld_dlopen=yes
7895 else
7896   echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 ac_cv_lib_svld_dlopen=no
7900 fi
7901 rm -f conftest.err conftest.$ac_objext \
7902       conftest$ac_exeext conftest.$ac_ext
7903 LIBS=$ac_check_lib_save_LIBS
7904 fi
7905 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7906 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7907 if test $ac_cv_lib_svld_dlopen = yes; then
7908
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_LIBDL 1
7911 _ACEOF
7912
7913                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7914 else
7915   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   ac_check_lib_save_LIBS=$LIBS
7921 LIBS="-ldld  $LIBS"
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h.  */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h.  */
7928
7929 /* Override any gcc2 internal prototype to avoid an error.  */
7930 #ifdef __cplusplus
7931 extern "C"
7932 #endif
7933 /* We use char because int might match the return type of a gcc2
7934    builtin and then its argument prototype would still apply.  */
7935 char dld_link ();
7936 int
7937 main ()
7938 {
7939 dld_link ();
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946   (eval $ac_link) 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag"
7954                          || test ! -s conftest.err'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest$ac_exeext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   ac_cv_lib_dld_dld_link=yes
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ac_cv_lib_dld_dld_link=no
7972 fi
7973 rm -f conftest.err conftest.$ac_objext \
7974       conftest$ac_exeext conftest.$ac_ext
7975 LIBS=$ac_check_lib_save_LIBS
7976 fi
7977 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7979 if test $ac_cv_lib_dld_dld_link = yes; then
7980
7981 cat >>confdefs.h <<\_ACEOF
7982 #define HAVE_DLD 1
7983 _ACEOF
7984
7985                 LIBADD_DL="$LIBADD_DL -ldld"
7986 else
7987   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7988 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7989 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8000 #define _dyld_func_lookup innocuous__dyld_func_lookup
8001
8002 /* System header to define __stub macros and hopefully few prototypes,
8003     which can conflict with char _dyld_func_lookup (); below.
8004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005     <limits.h> exists even on freestanding compilers.  */
8006
8007 #ifdef __STDC__
8008 # include <limits.h>
8009 #else
8010 # include <assert.h>
8011 #endif
8012
8013 #undef _dyld_func_lookup
8014
8015 /* Override any gcc2 internal prototype to avoid an error.  */
8016 #ifdef __cplusplus
8017 extern "C"
8018 {
8019 #endif
8020 /* We use char because int might match the return type of a gcc2
8021    builtin and then its argument prototype would still apply.  */
8022 char _dyld_func_lookup ();
8023 /* The GNU C library defines this for functions which it implements
8024     to always fail with ENOSYS.  Some functions are actually named
8025     something starting with __ and the normal name is an alias.  */
8026 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8027 choke me
8028 #else
8029 char (*f) () = _dyld_func_lookup;
8030 #endif
8031 #ifdef __cplusplus
8032 }
8033 #endif
8034
8035 int
8036 main ()
8037 {
8038 return f != _dyld_func_lookup;
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045   (eval $ac_link) 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -z "$ac_c_werror_flag"
8053                          || test ! -s conftest.err'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; } &&
8059          { ac_try='test -s conftest$ac_exeext'
8060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061   (eval $ac_try) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   ac_cv_func__dyld_func_lookup=yes
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 ac_cv_func__dyld_func_lookup=no
8071 fi
8072 rm -f conftest.err conftest.$ac_objext \
8073       conftest$ac_exeext conftest.$ac_ext
8074 fi
8075 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8076 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8077 if test $ac_cv_func__dyld_func_lookup = yes; then
8078
8079 cat >>confdefs.h <<\_ACEOF
8080 #define HAVE_DYLD 1
8081 _ACEOF
8082
8083 fi
8084
8085
8086 fi
8087
8088
8089 fi
8090
8091
8092 fi
8093 rm -f conftest.err conftest.$ac_objext \
8094       conftest$ac_exeext conftest.$ac_ext
8095
8096 fi
8097
8098
8099 fi
8100
8101
8102 fi
8103
8104
8105 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8106 then
8107   lt_save_LIBS="$LIBS"
8108   LIBS="$LIBS $LIBADD_DL"
8109
8110 for ac_func in dlerror
8111 do
8112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8126 #define $ac_func innocuous_$ac_func
8127
8128 /* System header to define __stub macros and hopefully few prototypes,
8129     which can conflict with char $ac_func (); below.
8130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131     <limits.h> exists even on freestanding compilers.  */
8132
8133 #ifdef __STDC__
8134 # include <limits.h>
8135 #else
8136 # include <assert.h>
8137 #endif
8138
8139 #undef $ac_func
8140
8141 /* Override any gcc2 internal prototype to avoid an error.  */
8142 #ifdef __cplusplus
8143 extern "C"
8144 {
8145 #endif
8146 /* We use char because int might match the return type of a gcc2
8147    builtin and then its argument prototype would still apply.  */
8148 char $ac_func ();
8149 /* The GNU C library defines this for functions which it implements
8150     to always fail with ENOSYS.  Some functions are actually named
8151     something starting with __ and the normal name is an alias.  */
8152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8153 choke me
8154 #else
8155 char (*f) () = $ac_func;
8156 #endif
8157 #ifdef __cplusplus
8158 }
8159 #endif
8160
8161 int
8162 main ()
8163 {
8164 return f != $ac_func;
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171   (eval $ac_link) 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } &&
8178          { ac_try='test -z "$ac_c_werror_flag"
8179                          || test ! -s conftest.err'
8180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181   (eval $ac_try) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); }; } &&
8185          { ac_try='test -s conftest$ac_exeext'
8186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187   (eval $ac_try) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   eval "$as_ac_var=yes"
8192 else
8193   echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 eval "$as_ac_var=no"
8197 fi
8198 rm -f conftest.err conftest.$ac_objext \
8199       conftest$ac_exeext conftest.$ac_ext
8200 fi
8201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8203 if test `eval echo '${'$as_ac_var'}'` = yes; then
8204   cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8206 _ACEOF
8207
8208 fi
8209 done
8210
8211   LIBS="$lt_save_LIBS"
8212 fi
8213 ac_ext=c
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218
8219
8220
8221 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8222 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8223 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   ac_cv_sys_symbol_underscore=no
8227   cat > conftest.$ac_ext <<EOF
8228 void nm_test_func(){}
8229 int main(){nm_test_func;return 0;}
8230 EOF
8231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232   (eval $ac_compile) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; then
8236     # Now try to grab the symbols.
8237     ac_nlist=conftest.nm
8238     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8239   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } && test -s "$ac_nlist"; then
8243       # See whether the symbols have a leading underscore.
8244       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8245         ac_cv_sys_symbol_underscore=yes
8246       else
8247         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8248           :
8249         else
8250           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8251         fi
8252       fi
8253     else
8254       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8255     fi
8256   else
8257     echo "configure: failed program was:" >&5
8258     cat conftest.c >&5
8259   fi
8260   rm -rf conftest*
8261
8262 fi
8263 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8264 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8265
8266
8267 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8268   if test x"$libltdl_cv_func_dlopen" = xyes ||
8269      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8270         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8271 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8272 if test "${libltdl_cv_need_uscore+set}" = set; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   libltdl_cv_need_uscore=unknown
8276           save_LIBS="$LIBS"
8277           LIBS="$LIBS $LIBADD_DL"
8278           if test "$cross_compiling" = yes; then :
8279   libltdl_cv_need_uscore=cross
8280 else
8281   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8282   lt_status=$lt_dlunknown
8283   cat > conftest.$ac_ext <<EOF
8284 #line 8284 "configure"
8285 #include "confdefs.h"
8286
8287 #if HAVE_DLFCN_H
8288 #include <dlfcn.h>
8289 #endif
8290
8291 #include <stdio.h>
8292
8293 #ifdef RTLD_GLOBAL
8294 #  define LT_DLGLOBAL           RTLD_GLOBAL
8295 #else
8296 #  ifdef DL_GLOBAL
8297 #    define LT_DLGLOBAL         DL_GLOBAL
8298 #  else
8299 #    define LT_DLGLOBAL         0
8300 #  endif
8301 #endif
8302
8303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8304    find out it does not work in some platform. */
8305 #ifndef LT_DLLAZY_OR_NOW
8306 #  ifdef RTLD_LAZY
8307 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8308 #  else
8309 #    ifdef DL_LAZY
8310 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8311 #    else
8312 #      ifdef RTLD_NOW
8313 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8314 #      else
8315 #        ifdef DL_NOW
8316 #          define LT_DLLAZY_OR_NOW      DL_NOW
8317 #        else
8318 #          define LT_DLLAZY_OR_NOW      0
8319 #        endif
8320 #      endif
8321 #    endif
8322 #  endif
8323 #endif
8324
8325 #ifdef __cplusplus
8326 extern "C" void exit (int);
8327 #endif
8328
8329 void fnord() { int i=42;}
8330 int main ()
8331 {
8332   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8333   int status = $lt_dlunknown;
8334
8335   if (self)
8336     {
8337       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8338       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8339       /* dlclose (self); */
8340     }
8341
8342     exit (status);
8343 }
8344 EOF
8345   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346   (eval $ac_link) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8350     (./conftest; exit; ) 2>/dev/null
8351     lt_status=$?
8352     case x$lt_status in
8353       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8354       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8355       x$lt_unknown|x*)  ;;
8356     esac
8357   else :
8358     # compilation failed
8359
8360   fi
8361 fi
8362 rm -fr conftest*
8363
8364           LIBS="$save_LIBS"
8365
8366 fi
8367 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8368 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8369   fi
8370 fi
8371
8372 if test x"$libltdl_cv_need_uscore" = xyes; then
8373
8374 cat >>confdefs.h <<\_ACEOF
8375 #define NEED_USCORE 1
8376 _ACEOF
8377
8378 fi
8379
8380
8381 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8382 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8383 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386   # PORTME does your system automatically load deplibs for dlopen?
8387   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8388   # For now, we just catch OSes we know something about -- in the
8389   # future, we'll try test this programmatically.
8390   libltdl_cv_sys_dlopen_deplibs=unknown
8391   case "$host_os" in
8392   aix3*|aix4.1.*|aix4.2.*)
8393     # Unknown whether this is true for these versions of AIX, but
8394     # we want this `case' here to explicitly catch those versions.
8395     libltdl_cv_sys_dlopen_deplibs=unknown
8396     ;;
8397   aix[45]*)
8398     libltdl_cv_sys_dlopen_deplibs=yes
8399     ;;
8400   darwin*)
8401     # Assuming the user has installed a libdl from somewhere, this is true
8402     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8403     libltdl_cv_sys_dlopen_deplibs=yes
8404     ;;
8405   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8406     # GNU and its variants, using gnu ld.so (Glibc)
8407     libltdl_cv_sys_dlopen_deplibs=yes
8408     ;;
8409   hpux10*|hpux11*)
8410     libltdl_cv_sys_dlopen_deplibs=yes
8411     ;;
8412   irix[12345]*|irix6.[01]*)
8413     # Catch all versions of IRIX before 6.2, and indicate that we don't
8414     # know how it worked for any of those versions.
8415     libltdl_cv_sys_dlopen_deplibs=unknown
8416     ;;
8417   irix*)
8418     # The case above catches anything before 6.2, and it's known that
8419     # at 6.2 and later dlopen does load deplibs.
8420     libltdl_cv_sys_dlopen_deplibs=yes
8421     ;;
8422   netbsd*)
8423     libltdl_cv_sys_dlopen_deplibs=yes
8424     ;;
8425   openbsd*)
8426     libltdl_cv_sys_dlopen_deplibs=yes
8427     ;;
8428   osf[1234]*)
8429     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8430     # it did *not* use an RPATH in a shared library to find objects the
8431     # library depends on, so we explictly say `no'.
8432     libltdl_cv_sys_dlopen_deplibs=no
8433     ;;
8434   osf5.0|osf5.0a|osf5.1)
8435     # dlopen *does* load deplibs and with the right loader patch applied
8436     # it even uses RPATH in a shared library to search for shared objects
8437     # that the library depends on, but there's no easy way to know if that
8438     # patch is installed.  Since this is the case, all we can really
8439     # say is unknown -- it depends on the patch being installed.  If
8440     # it is, this changes to `yes'.  Without it, it would be `no'.
8441     libltdl_cv_sys_dlopen_deplibs=unknown
8442     ;;
8443   osf*)
8444     # the two cases above should catch all versions of osf <= 5.1.  Read
8445     # the comments above for what we know about them.
8446     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8447     # is used to find them so we can finally say `yes'.
8448     libltdl_cv_sys_dlopen_deplibs=yes
8449     ;;
8450   solaris*)
8451     libltdl_cv_sys_dlopen_deplibs=yes
8452     ;;
8453   esac
8454
8455 fi
8456 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8457 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8458 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8459
8460 cat >>confdefs.h <<\_ACEOF
8461 #define LTDL_DLOPEN_DEPLIBS 1
8462 _ACEOF
8463
8464 fi
8465
8466
8467 for ac_header in argz.h
8468 do
8469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471   echo "$as_me:$LINENO: checking for $ac_header" >&5
8472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 fi
8476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478 else
8479   # Is the header compilable?
8480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488 $ac_includes_default
8489 #include <$ac_header>
8490 _ACEOF
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493   (eval $ac_compile) 2>conftest.er1
8494   ac_status=$?
8495   grep -v '^ *+' conftest.er1 >conftest.err
8496   rm -f conftest.er1
8497   cat conftest.err >&5
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -z "$ac_c_werror_flag"
8501                          || test ! -s conftest.err'
8502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503   (eval $ac_try) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); }; } &&
8507          { ac_try='test -s conftest.$ac_objext'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   ac_header_compiler=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 ac_header_compiler=no
8519 fi
8520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8522 echo "${ECHO_T}$ac_header_compiler" >&6
8523
8524 # Is the header present?
8525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533 #include <$ac_header>
8534 _ACEOF
8535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8537   ac_status=$?
8538   grep -v '^ *+' conftest.er1 >conftest.err
8539   rm -f conftest.er1
8540   cat conftest.err >&5
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); } >/dev/null; then
8543   if test -s conftest.err; then
8544     ac_cpp_err=$ac_c_preproc_warn_flag
8545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8546   else
8547     ac_cpp_err=
8548   fi
8549 else
8550   ac_cpp_err=yes
8551 fi
8552 if test -z "$ac_cpp_err"; then
8553   ac_header_preproc=yes
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558   ac_header_preproc=no
8559 fi
8560 rm -f conftest.err conftest.$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8562 echo "${ECHO_T}$ac_header_preproc" >&6
8563
8564 # So?  What about this header?
8565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8566   yes:no: )
8567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8571     ac_header_preproc=yes
8572     ;;
8573   no:yes:* )
8574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8576     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8577 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8581 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8586     (
8587       cat <<\_ASBOX
8588 ## ----------------------------------- ##
8589 ## Report this to llvmbugs@cs.uiuc.edu ##
8590 ## ----------------------------------- ##
8591 _ASBOX
8592     ) |
8593       sed "s/^/$as_me: WARNING:     /" >&2
8594     ;;
8595 esac
8596 echo "$as_me:$LINENO: checking for $ac_header" >&5
8597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601   eval "$as_ac_Header=\$ac_header_preproc"
8602 fi
8603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8605
8606 fi
8607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8608   cat >>confdefs.h <<_ACEOF
8609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8610 _ACEOF
8611
8612 fi
8613
8614 done
8615
8616
8617 echo "$as_me:$LINENO: checking for error_t" >&5
8618 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8619 if test "${ac_cv_type_error_t+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 #if HAVE_ARGZ_H
8629 #  include <argz.h>
8630 #endif
8631
8632 int
8633 main ()
8634 {
8635 if ((error_t *) 0)
8636   return 0;
8637 if (sizeof (error_t))
8638   return 0;
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645   (eval $ac_compile) 2>conftest.er1
8646   ac_status=$?
8647   grep -v '^ *+' conftest.er1 >conftest.err
8648   rm -f conftest.er1
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } &&
8652          { ac_try='test -z "$ac_c_werror_flag"
8653                          || test ! -s conftest.err'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; } &&
8659          { ac_try='test -s conftest.$ac_objext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_cv_type_error_t=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 ac_cv_type_error_t=no
8671 fi
8672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8675 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8676 if test $ac_cv_type_error_t = yes; then
8677
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_ERROR_T 1
8680 _ACEOF
8681
8682
8683 else
8684
8685 cat >>confdefs.h <<\_ACEOF
8686 #define error_t int
8687 _ACEOF
8688
8689 fi
8690
8691
8692
8693
8694
8695
8696
8697 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8698 do
8699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700 echo "$as_me:$LINENO: checking for $ac_func" >&5
8701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_var+set}\" = set"; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8713 #define $ac_func innocuous_$ac_func
8714
8715 /* System header to define __stub macros and hopefully few prototypes,
8716     which can conflict with char $ac_func (); below.
8717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718     <limits.h> exists even on freestanding compilers.  */
8719
8720 #ifdef __STDC__
8721 # include <limits.h>
8722 #else
8723 # include <assert.h>
8724 #endif
8725
8726 #undef $ac_func
8727
8728 /* Override any gcc2 internal prototype to avoid an error.  */
8729 #ifdef __cplusplus
8730 extern "C"
8731 {
8732 #endif
8733 /* We use char because int might match the return type of a gcc2
8734    builtin and then its argument prototype would still apply.  */
8735 char $ac_func ();
8736 /* The GNU C library defines this for functions which it implements
8737     to always fail with ENOSYS.  Some functions are actually named
8738     something starting with __ and the normal name is an alias.  */
8739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8740 choke me
8741 #else
8742 char (*f) () = $ac_func;
8743 #endif
8744 #ifdef __cplusplus
8745 }
8746 #endif
8747
8748 int
8749 main ()
8750 {
8751 return f != $ac_func;
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758   (eval $ac_link) 2>conftest.er1
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
8762   cat conftest.err >&5
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -z "$ac_c_werror_flag"
8766                          || test ! -s conftest.err'
8767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768   (eval $ac_try) 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); }; } &&
8772          { ac_try='test -s conftest$ac_exeext'
8773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   eval "$as_ac_var=yes"
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 eval "$as_ac_var=no"
8784 fi
8785 rm -f conftest.err conftest.$ac_objext \
8786       conftest$ac_exeext conftest.$ac_ext
8787 fi
8788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8790 if test `eval echo '${'$as_ac_var'}'` = yes; then
8791   cat >>confdefs.h <<_ACEOF
8792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8793 _ACEOF
8794
8795 fi
8796 done
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8826                   stdio.h unistd.h
8827 do
8828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8830   echo "$as_me:$LINENO: checking for $ac_header" >&5
8831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8833   echo $ECHO_N "(cached) $ECHO_C" >&6
8834 fi
8835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8837 else
8838   # Is the header compilable?
8839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 $ac_includes_default
8848 #include <$ac_header>
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag"
8860                          || test ! -s conftest.err'
8861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_header_compiler=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_header_compiler=no
8878 fi
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8881 echo "${ECHO_T}$ac_header_compiler" >&6
8882
8883 # Is the header present?
8884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h.  */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h.  */
8892 #include <$ac_header>
8893 _ACEOF
8894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8896   ac_status=$?
8897   grep -v '^ *+' conftest.er1 >conftest.err
8898   rm -f conftest.er1
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } >/dev/null; then
8902   if test -s conftest.err; then
8903     ac_cpp_err=$ac_c_preproc_warn_flag
8904     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8905   else
8906     ac_cpp_err=
8907   fi
8908 else
8909   ac_cpp_err=yes
8910 fi
8911 if test -z "$ac_cpp_err"; then
8912   ac_header_preproc=yes
8913 else
8914   echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8916
8917   ac_header_preproc=no
8918 fi
8919 rm -f conftest.err conftest.$ac_ext
8920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8921 echo "${ECHO_T}$ac_header_preproc" >&6
8922
8923 # So?  What about this header?
8924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8925   yes:no: )
8926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8930     ac_header_preproc=yes
8931     ;;
8932   no:yes:* )
8933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8935     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8936 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8937     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8939     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8940 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8943     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8945     (
8946       cat <<\_ASBOX
8947 ## ----------------------------------- ##
8948 ## Report this to llvmbugs@cs.uiuc.edu ##
8949 ## ----------------------------------- ##
8950 _ASBOX
8951     ) |
8952       sed "s/^/$as_me: WARNING:     /" >&2
8953     ;;
8954 esac
8955 echo "$as_me:$LINENO: checking for $ac_header" >&5
8956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958   echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960   eval "$as_ac_Header=\$ac_header_preproc"
8961 fi
8962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8964
8965 fi
8966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8967   cat >>confdefs.h <<_ACEOF
8968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969 _ACEOF
8970
8971 fi
8972
8973 done
8974
8975
8976
8977
8978
8979 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8980 do
8981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8983   echo "$as_me:$LINENO: checking for $ac_header" >&5
8984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 fi
8988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8990 else
8991   # Is the header compilable?
8992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000 $ac_includes_default
9001 #include <$ac_header>
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005   (eval $ac_compile) 2>conftest.er1
9006   ac_status=$?
9007   grep -v '^ *+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } &&
9012          { ac_try='test -z "$ac_c_werror_flag"
9013                          || test ! -s conftest.err'
9014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015   (eval $ac_try) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; } &&
9019          { ac_try='test -s conftest.$ac_objext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_header_compiler=yes
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 ac_header_compiler=no
9031 fi
9032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 echo "${ECHO_T}$ac_header_compiler" >&6
9035
9036 # Is the header present?
9037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h.  */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h.  */
9045 #include <$ac_header>
9046 _ACEOF
9047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9049   ac_status=$?
9050   grep -v '^ *+' conftest.er1 >conftest.err
9051   rm -f conftest.er1
9052   cat conftest.err >&5
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); } >/dev/null; then
9055   if test -s conftest.err; then
9056     ac_cpp_err=$ac_c_preproc_warn_flag
9057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9058   else
9059     ac_cpp_err=
9060   fi
9061 else
9062   ac_cpp_err=yes
9063 fi
9064 if test -z "$ac_cpp_err"; then
9065   ac_header_preproc=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070   ac_header_preproc=no
9071 fi
9072 rm -f conftest.err conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9074 echo "${ECHO_T}$ac_header_preproc" >&6
9075
9076 # So?  What about this header?
9077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9078   yes:no: )
9079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9083     ac_header_preproc=yes
9084     ;;
9085   no:yes:* )
9086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9098     (
9099       cat <<\_ASBOX
9100 ## ----------------------------------- ##
9101 ## Report this to llvmbugs@cs.uiuc.edu ##
9102 ## ----------------------------------- ##
9103 _ASBOX
9104     ) |
9105       sed "s/^/$as_me: WARNING:     /" >&2
9106     ;;
9107 esac
9108 echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   eval "$as_ac_Header=\$ac_header_preproc"
9114 fi
9115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9117
9118 fi
9119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9120   cat >>confdefs.h <<_ACEOF
9121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9122 _ACEOF
9123
9124 fi
9125
9126 done
9127
9128
9129
9130 for ac_header in string.h strings.h
9131 do
9132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9134   echo "$as_me:$LINENO: checking for $ac_header" >&5
9135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 fi
9139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9141 else
9142   # Is the header compilable?
9143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h.  */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h.  */
9151 $ac_includes_default
9152 #include <$ac_header>
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156   (eval $ac_compile) 2>conftest.er1
9157   ac_status=$?
9158   grep -v '^ *+' conftest.er1 >conftest.err
9159   rm -f conftest.er1
9160   cat conftest.err >&5
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); } &&
9163          { ac_try='test -z "$ac_c_werror_flag"
9164                          || test ! -s conftest.err'
9165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166   (eval $ac_try) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; } &&
9170          { ac_try='test -s conftest.$ac_objext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   ac_header_compiler=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 ac_header_compiler=no
9182 fi
9183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9185 echo "${ECHO_T}$ac_header_compiler" >&6
9186
9187 # Is the header present?
9188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h.  */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h.  */
9196 #include <$ac_header>
9197 _ACEOF
9198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9200   ac_status=$?
9201   grep -v '^ *+' conftest.er1 >conftest.err
9202   rm -f conftest.er1
9203   cat conftest.err >&5
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } >/dev/null; then
9206   if test -s conftest.err; then
9207     ac_cpp_err=$ac_c_preproc_warn_flag
9208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9209   else
9210     ac_cpp_err=
9211   fi
9212 else
9213   ac_cpp_err=yes
9214 fi
9215 if test -z "$ac_cpp_err"; then
9216   ac_header_preproc=yes
9217 else
9218   echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9220
9221   ac_header_preproc=no
9222 fi
9223 rm -f conftest.err conftest.$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225 echo "${ECHO_T}$ac_header_preproc" >&6
9226
9227 # So?  What about this header?
9228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9229   yes:no: )
9230     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9234     ac_header_preproc=yes
9235     ;;
9236   no:yes:* )
9237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9239     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9240 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9241     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9243     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9244 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9247     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9249     (
9250       cat <<\_ASBOX
9251 ## ----------------------------------- ##
9252 ## Report this to llvmbugs@cs.uiuc.edu ##
9253 ## ----------------------------------- ##
9254 _ASBOX
9255     ) |
9256       sed "s/^/$as_me: WARNING:     /" >&2
9257     ;;
9258 esac
9259 echo "$as_me:$LINENO: checking for $ac_header" >&5
9260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   eval "$as_ac_Header=\$ac_header_preproc"
9265 fi
9266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9268
9269 fi
9270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9271   cat >>confdefs.h <<_ACEOF
9272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9273 _ACEOF
9274  break
9275 fi
9276
9277 done
9278
9279
9280
9281
9282 for ac_func in strchr index
9283 do
9284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9285 echo "$as_me:$LINENO: checking for $ac_func" >&5
9286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9287 if eval "test \"\${$as_ac_var+set}\" = set"; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h.  */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h.  */
9296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9298 #define $ac_func innocuous_$ac_func
9299
9300 /* System header to define __stub macros and hopefully few prototypes,
9301     which can conflict with char $ac_func (); below.
9302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9303     <limits.h> exists even on freestanding compilers.  */
9304
9305 #ifdef __STDC__
9306 # include <limits.h>
9307 #else
9308 # include <assert.h>
9309 #endif
9310
9311 #undef $ac_func
9312
9313 /* Override any gcc2 internal prototype to avoid an error.  */
9314 #ifdef __cplusplus
9315 extern "C"
9316 {
9317 #endif
9318 /* We use char because int might match the return type of a gcc2
9319    builtin and then its argument prototype would still apply.  */
9320 char $ac_func ();
9321 /* The GNU C library defines this for functions which it implements
9322     to always fail with ENOSYS.  Some functions are actually named
9323     something starting with __ and the normal name is an alias.  */
9324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9325 choke me
9326 #else
9327 char (*f) () = $ac_func;
9328 #endif
9329 #ifdef __cplusplus
9330 }
9331 #endif
9332
9333 int
9334 main ()
9335 {
9336 return f != $ac_func;
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343   (eval $ac_link) 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } &&
9350          { ac_try='test -z "$ac_c_werror_flag"
9351                          || test ! -s conftest.err'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; } &&
9357          { ac_try='test -s conftest$ac_exeext'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; }; then
9363   eval "$as_ac_var=yes"
9364 else
9365   echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 eval "$as_ac_var=no"
9369 fi
9370 rm -f conftest.err conftest.$ac_objext \
9371       conftest$ac_exeext conftest.$ac_ext
9372 fi
9373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9375 if test `eval echo '${'$as_ac_var'}'` = yes; then
9376   cat >>confdefs.h <<_ACEOF
9377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9378 _ACEOF
9379  break
9380 fi
9381 done
9382
9383
9384
9385 for ac_func in strrchr rindex
9386 do
9387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9388 echo "$as_me:$LINENO: checking for $ac_func" >&5
9389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9390 if eval "test \"\${$as_ac_var+set}\" = set"; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9401 #define $ac_func innocuous_$ac_func
9402
9403 /* System header to define __stub macros and hopefully few prototypes,
9404     which can conflict with char $ac_func (); below.
9405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406     <limits.h> exists even on freestanding compilers.  */
9407
9408 #ifdef __STDC__
9409 # include <limits.h>
9410 #else
9411 # include <assert.h>
9412 #endif
9413
9414 #undef $ac_func
9415
9416 /* Override any gcc2 internal prototype to avoid an error.  */
9417 #ifdef __cplusplus
9418 extern "C"
9419 {
9420 #endif
9421 /* We use char because int might match the return type of a gcc2
9422    builtin and then its argument prototype would still apply.  */
9423 char $ac_func ();
9424 /* The GNU C library defines this for functions which it implements
9425     to always fail with ENOSYS.  Some functions are actually named
9426     something starting with __ and the normal name is an alias.  */
9427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9428 choke me
9429 #else
9430 char (*f) () = $ac_func;
9431 #endif
9432 #ifdef __cplusplus
9433 }
9434 #endif
9435
9436 int
9437 main ()
9438 {
9439 return f != $ac_func;
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446   (eval $ac_link) 2>conftest.er1
9447   ac_status=$?
9448   grep -v '^ *+' conftest.er1 >conftest.err
9449   rm -f conftest.er1
9450   cat conftest.err >&5
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } &&
9453          { ac_try='test -z "$ac_c_werror_flag"
9454                          || test ! -s conftest.err'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; } &&
9460          { ac_try='test -s conftest$ac_exeext'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   eval "$as_ac_var=yes"
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 eval "$as_ac_var=no"
9472 fi
9473 rm -f conftest.err conftest.$ac_objext \
9474       conftest$ac_exeext conftest.$ac_ext
9475 fi
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9478 if test `eval echo '${'$as_ac_var'}'` = yes; then
9479   cat >>confdefs.h <<_ACEOF
9480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9481 _ACEOF
9482  break
9483 fi
9484 done
9485
9486
9487
9488 for ac_func in memcpy bcopy
9489 do
9490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9491 echo "$as_me:$LINENO: checking for $ac_func" >&5
9492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9493 if eval "test \"\${$as_ac_var+set}\" = set"; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h.  */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h.  */
9502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9504 #define $ac_func innocuous_$ac_func
9505
9506 /* System header to define __stub macros and hopefully few prototypes,
9507     which can conflict with char $ac_func (); below.
9508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9509     <limits.h> exists even on freestanding compilers.  */
9510
9511 #ifdef __STDC__
9512 # include <limits.h>
9513 #else
9514 # include <assert.h>
9515 #endif
9516
9517 #undef $ac_func
9518
9519 /* Override any gcc2 internal prototype to avoid an error.  */
9520 #ifdef __cplusplus
9521 extern "C"
9522 {
9523 #endif
9524 /* We use char because int might match the return type of a gcc2
9525    builtin and then its argument prototype would still apply.  */
9526 char $ac_func ();
9527 /* The GNU C library defines this for functions which it implements
9528     to always fail with ENOSYS.  Some functions are actually named
9529     something starting with __ and the normal name is an alias.  */
9530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9531 choke me
9532 #else
9533 char (*f) () = $ac_func;
9534 #endif
9535 #ifdef __cplusplus
9536 }
9537 #endif
9538
9539 int
9540 main ()
9541 {
9542 return f != $ac_func;
9543   ;
9544   return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549   (eval $ac_link) 2>conftest.er1
9550   ac_status=$?
9551   grep -v '^ *+' conftest.er1 >conftest.err
9552   rm -f conftest.er1
9553   cat conftest.err >&5
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); } &&
9556          { ac_try='test -z "$ac_c_werror_flag"
9557                          || test ! -s conftest.err'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; } &&
9563          { ac_try='test -s conftest$ac_exeext'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   eval "$as_ac_var=yes"
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 eval "$as_ac_var=no"
9575 fi
9576 rm -f conftest.err conftest.$ac_objext \
9577       conftest$ac_exeext conftest.$ac_ext
9578 fi
9579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9581 if test `eval echo '${'$as_ac_var'}'` = yes; then
9582   cat >>confdefs.h <<_ACEOF
9583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9584 _ACEOF
9585  break
9586 fi
9587 done
9588
9589
9590
9591 for ac_func in memmove strcmp
9592 do
9593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9594 echo "$as_me:$LINENO: checking for $ac_func" >&5
9595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9596 if eval "test \"\${$as_ac_var+set}\" = set"; then
9597   echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599   cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9607 #define $ac_func innocuous_$ac_func
9608
9609 /* System header to define __stub macros and hopefully few prototypes,
9610     which can conflict with char $ac_func (); below.
9611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612     <limits.h> exists even on freestanding compilers.  */
9613
9614 #ifdef __STDC__
9615 # include <limits.h>
9616 #else
9617 # include <assert.h>
9618 #endif
9619
9620 #undef $ac_func
9621
9622 /* Override any gcc2 internal prototype to avoid an error.  */
9623 #ifdef __cplusplus
9624 extern "C"
9625 {
9626 #endif
9627 /* We use char because int might match the return type of a gcc2
9628    builtin and then its argument prototype would still apply.  */
9629 char $ac_func ();
9630 /* The GNU C library defines this for functions which it implements
9631     to always fail with ENOSYS.  Some functions are actually named
9632     something starting with __ and the normal name is an alias.  */
9633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9634 choke me
9635 #else
9636 char (*f) () = $ac_func;
9637 #endif
9638 #ifdef __cplusplus
9639 }
9640 #endif
9641
9642 int
9643 main ()
9644 {
9645 return f != $ac_func;
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652   (eval $ac_link) 2>conftest.er1
9653   ac_status=$?
9654   grep -v '^ *+' conftest.er1 >conftest.err
9655   rm -f conftest.er1
9656   cat conftest.err >&5
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -z "$ac_c_werror_flag"
9660                          || test ! -s conftest.err'
9661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662   (eval $ac_try) 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; } &&
9666          { ac_try='test -s conftest$ac_exeext'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; }; then
9672   eval "$as_ac_var=yes"
9673 else
9674   echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 eval "$as_ac_var=no"
9678 fi
9679 rm -f conftest.err conftest.$ac_objext \
9680       conftest$ac_exeext conftest.$ac_ext
9681 fi
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then
9685   cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9687 _ACEOF
9688
9689 fi
9690 done
9691
9692
9693
9694
9695 for ac_func in closedir opendir readdir
9696 do
9697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9698 echo "$as_me:$LINENO: checking for $ac_func" >&5
9699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9700 if eval "test \"\${$as_ac_var+set}\" = set"; then
9701   echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703   cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9711 #define $ac_func innocuous_$ac_func
9712
9713 /* System header to define __stub macros and hopefully few prototypes,
9714     which can conflict with char $ac_func (); below.
9715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716     <limits.h> exists even on freestanding compilers.  */
9717
9718 #ifdef __STDC__
9719 # include <limits.h>
9720 #else
9721 # include <assert.h>
9722 #endif
9723
9724 #undef $ac_func
9725
9726 /* Override any gcc2 internal prototype to avoid an error.  */
9727 #ifdef __cplusplus
9728 extern "C"
9729 {
9730 #endif
9731 /* We use char because int might match the return type of a gcc2
9732    builtin and then its argument prototype would still apply.  */
9733 char $ac_func ();
9734 /* The GNU C library defines this for functions which it implements
9735     to always fail with ENOSYS.  Some functions are actually named
9736     something starting with __ and the normal name is an alias.  */
9737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9738 choke me
9739 #else
9740 char (*f) () = $ac_func;
9741 #endif
9742 #ifdef __cplusplus
9743 }
9744 #endif
9745
9746 int
9747 main ()
9748 {
9749 return f != $ac_func;
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756   (eval $ac_link) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   eval "$as_ac_var=yes"
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 eval "$as_ac_var=no"
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784       conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9788 if test `eval echo '${'$as_ac_var'}'` = yes; then
9789   cat >>confdefs.h <<_ACEOF
9790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9791 _ACEOF
9792
9793 fi
9794 done
9795
9796
9797 # Check whether --enable-shared or --disable-shared was given.
9798 if test "${enable_shared+set}" = set; then
9799   enableval="$enable_shared"
9800   p=${PACKAGE-default}
9801     case $enableval in
9802     yes) enable_shared=yes ;;
9803     no) enable_shared=no ;;
9804     *)
9805       enable_shared=no
9806       # Look at the argument we got.  We use all the common list separators.
9807       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9808       for pkg in $enableval; do
9809         IFS="$lt_save_ifs"
9810         if test "X$pkg" = "X$p"; then
9811           enable_shared=yes
9812         fi
9813       done
9814       IFS="$lt_save_ifs"
9815       ;;
9816     esac
9817 else
9818   enable_shared=yes
9819 fi;
9820
9821 # Check whether --enable-static or --disable-static was given.
9822 if test "${enable_static+set}" = set; then
9823   enableval="$enable_static"
9824   p=${PACKAGE-default}
9825     case $enableval in
9826     yes) enable_static=yes ;;
9827     no) enable_static=no ;;
9828     *)
9829      enable_static=no
9830       # Look at the argument we got.  We use all the common list separators.
9831       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9832       for pkg in $enableval; do
9833         IFS="$lt_save_ifs"
9834         if test "X$pkg" = "X$p"; then
9835           enable_static=yes
9836         fi
9837       done
9838       IFS="$lt_save_ifs"
9839       ;;
9840     esac
9841 else
9842   enable_static=yes
9843 fi;
9844
9845 # Check whether --enable-fast-install or --disable-fast-install was given.
9846 if test "${enable_fast_install+set}" = set; then
9847   enableval="$enable_fast_install"
9848   p=${PACKAGE-default}
9849     case $enableval in
9850     yes) enable_fast_install=yes ;;
9851     no) enable_fast_install=no ;;
9852     *)
9853       enable_fast_install=no
9854       # Look at the argument we got.  We use all the common list separators.
9855       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9856       for pkg in $enableval; do
9857         IFS="$lt_save_ifs"
9858         if test "X$pkg" = "X$p"; then
9859           enable_fast_install=yes
9860         fi
9861       done
9862       IFS="$lt_save_ifs"
9863       ;;
9864     esac
9865 else
9866   enable_fast_install=yes
9867 fi;
9868
9869 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9870 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9871 if test "${lt_cv_path_SED+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   # Loop through the user's path and test for sed and gsed.
9875 # Then use that list of sed's as ones to test for truncation.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9878 do
9879   IFS=$as_save_IFS
9880   test -z "$as_dir" && as_dir=.
9881   for lt_ac_prog in sed gsed; do
9882     for ac_exec_ext in '' $ac_executable_extensions; do
9883       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9884         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9885       fi
9886     done
9887   done
9888 done
9889 lt_ac_max=0
9890 lt_ac_count=0
9891 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9892 # along with /bin/sed that truncates output.
9893 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9894   test ! -f $lt_ac_sed && break
9895   cat /dev/null > conftest.in
9896   lt_ac_count=0
9897   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9898   # Check for GNU sed and select it if it is found.
9899   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9900     lt_cv_path_SED=$lt_ac_sed
9901     break
9902   fi
9903   while true; do
9904     cat conftest.in conftest.in >conftest.tmp
9905     mv conftest.tmp conftest.in
9906     cp conftest.in conftest.nl
9907     echo >>conftest.nl
9908     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9909     cmp -s conftest.out conftest.nl || break
9910     # 10000 chars as input seems more than enough
9911     test $lt_ac_count -gt 10 && break
9912     lt_ac_count=`expr $lt_ac_count + 1`
9913     if test $lt_ac_count -gt $lt_ac_max; then
9914       lt_ac_max=$lt_ac_count
9915       lt_cv_path_SED=$lt_ac_sed
9916     fi
9917   done
9918 done
9919
9920 fi
9921
9922 SED=$lt_cv_path_SED
9923 echo "$as_me:$LINENO: result: $SED" >&5
9924 echo "${ECHO_T}$SED" >&6
9925
9926
9927 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9928 if test "${with_gnu_ld+set}" = set; then
9929   withval="$with_gnu_ld"
9930   test "$withval" = no || with_gnu_ld=yes
9931 else
9932   with_gnu_ld=no
9933 fi;
9934 ac_prog=ld
9935 if test "$GCC" = yes; then
9936   # Check if gcc -print-prog-name=ld gives a path.
9937   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9938 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9939   case $host in
9940   *-*-mingw*)
9941     # gcc leaves a trailing carriage return which upsets mingw
9942     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9943   *)
9944     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9945   esac
9946   case $ac_prog in
9947     # Accept absolute paths.
9948     [\\/]* | ?:[\\/]*)
9949       re_direlt='/[^/][^/]*/\.\./'
9950       # Canonicalize the pathname of ld
9951       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9952       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9953         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9954       done
9955       test -z "$LD" && LD="$ac_prog"
9956       ;;
9957   "")
9958     # If it fails, then pretend we aren't using GCC.
9959     ac_prog=ld
9960     ;;
9961   *)
9962     # If it is relative, then search for the first ld in PATH.
9963     with_gnu_ld=unknown
9964     ;;
9965   esac
9966 elif test "$with_gnu_ld" = yes; then
9967   echo "$as_me:$LINENO: checking for GNU ld" >&5
9968 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9969 else
9970   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9971 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9972 fi
9973 if test "${lt_cv_path_LD+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   if test -z "$LD"; then
9977   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9978   for ac_dir in $PATH; do
9979     IFS="$lt_save_ifs"
9980     test -z "$ac_dir" && ac_dir=.
9981     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9982       lt_cv_path_LD="$ac_dir/$ac_prog"
9983       # Check to see if the program is GNU ld.  I'd rather use --version,
9984       # but apparently some GNU ld's only accept -v.
9985       # Break only if it was the GNU/non-GNU ld that we prefer.
9986       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9987       *GNU* | *'with BFD'*)
9988         test "$with_gnu_ld" != no && break
9989         ;;
9990       *)
9991         test "$with_gnu_ld" != yes && break
9992         ;;
9993       esac
9994     fi
9995   done
9996   IFS="$lt_save_ifs"
9997 else
9998   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9999 fi
10000 fi
10001
10002 LD="$lt_cv_path_LD"
10003 if test -n "$LD"; then
10004   echo "$as_me:$LINENO: result: $LD" >&5
10005 echo "${ECHO_T}$LD" >&6
10006 else
10007   echo "$as_me:$LINENO: result: no" >&5
10008 echo "${ECHO_T}no" >&6
10009 fi
10010 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10011 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10012    { (exit 1); exit 1; }; }
10013 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10014 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10015 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10019 case `$LD -v 2>&1 </dev/null` in
10020 *GNU* | *'with BFD'*)
10021   lt_cv_prog_gnu_ld=yes
10022   ;;
10023 *)
10024   lt_cv_prog_gnu_ld=no
10025   ;;
10026 esac
10027 fi
10028 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10029 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10030 with_gnu_ld=$lt_cv_prog_gnu_ld
10031
10032
10033 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10034 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10035 if test "${lt_cv_ld_reload_flag+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   lt_cv_ld_reload_flag='-r'
10039 fi
10040 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10041 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10042 reload_flag=$lt_cv_ld_reload_flag
10043 case $reload_flag in
10044 "" | " "*) ;;
10045 *) reload_flag=" $reload_flag" ;;
10046 esac
10047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10048 case $host_os in
10049   darwin*)
10050     if test "$GCC" = yes; then
10051       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10052     else
10053       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10054     fi
10055     ;;
10056 esac
10057
10058 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10059 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10060 if test "${lt_cv_deplibs_check_method+set}" = set; then
10061   echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063   lt_cv_file_magic_cmd='$MAGIC_CMD'
10064 lt_cv_file_magic_test_file=
10065 lt_cv_deplibs_check_method='unknown'
10066 # Need to set the preceding variable on all platforms that support
10067 # interlibrary dependencies.
10068 # 'none' -- dependencies not supported.
10069 # `unknown' -- same as none, but documents that we really don't know.
10070 # 'pass_all' -- all dependencies passed with no checks.
10071 # 'test_compile' -- check by making test program.
10072 # 'file_magic [[regex]]' -- check by looking for files in library path
10073 # which responds to the $file_magic_cmd with a given extended regex.
10074 # If you have `file' or equivalent on your system and you're not sure
10075 # whether `pass_all' will *always* work, you probably want this one.
10076
10077 case $host_os in
10078 aix4* | aix5*)
10079   lt_cv_deplibs_check_method=pass_all
10080   ;;
10081
10082 beos*)
10083   lt_cv_deplibs_check_method=pass_all
10084   ;;
10085
10086 bsdi[45]*)
10087   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10088   lt_cv_file_magic_cmd='/usr/bin/file -L'
10089   lt_cv_file_magic_test_file=/shlib/libc.so
10090   ;;
10091
10092 cygwin*)
10093   # func_win32_libid is a shell function defined in ltmain.sh
10094   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10095   lt_cv_file_magic_cmd='func_win32_libid'
10096   ;;
10097
10098 mingw* | pw32*)
10099   # Base MSYS/MinGW do not provide the 'file' command needed by
10100   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10101   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10102   lt_cv_file_magic_cmd='$OBJDUMP -f'
10103   ;;
10104
10105 darwin* | rhapsody*)
10106   lt_cv_deplibs_check_method=pass_all
10107   ;;
10108
10109 freebsd* | kfreebsd*-gnu)
10110   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10111     case $host_cpu in
10112     i*86 )
10113       # Not sure whether the presence of OpenBSD here was a mistake.
10114       # Let's accept both of them until this is cleared up.
10115       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10116       lt_cv_file_magic_cmd=/usr/bin/file
10117       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10118       ;;
10119     esac
10120   else
10121     lt_cv_deplibs_check_method=pass_all
10122   fi
10123   ;;
10124
10125 gnu*)
10126   lt_cv_deplibs_check_method=pass_all
10127   ;;
10128
10129 hpux10.20* | hpux11*)
10130   lt_cv_file_magic_cmd=/usr/bin/file
10131   case "$host_cpu" in
10132   ia64*)
10133     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10134     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10135     ;;
10136   hppa*64*)
10137     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]'
10138     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10139     ;;
10140   *)
10141     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10142     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10143     ;;
10144   esac
10145   ;;
10146
10147 irix5* | irix6* | nonstopux*)
10148   case $LD in
10149   *-32|*"-32 ") libmagic=32-bit;;
10150   *-n32|*"-n32 ") libmagic=N32;;
10151   *-64|*"-64 ") libmagic=64-bit;;
10152   *) libmagic=never-match;;
10153   esac
10154   lt_cv_deplibs_check_method=pass_all
10155   ;;
10156
10157 # This must be Linux ELF.
10158 linux*)
10159   lt_cv_deplibs_check_method=pass_all
10160   ;;
10161
10162 netbsd*)
10163   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10164     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10165   else
10166     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10167   fi
10168   ;;
10169
10170 newos6*)
10171   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10172   lt_cv_file_magic_cmd=/usr/bin/file
10173   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10174   ;;
10175
10176 nto-qnx*)
10177   lt_cv_deplibs_check_method=unknown
10178   ;;
10179
10180 openbsd*)
10181   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10182     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10183   else
10184     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10185   fi
10186   ;;
10187
10188 osf3* | osf4* | osf5*)
10189   lt_cv_deplibs_check_method=pass_all
10190   ;;
10191
10192 sco3.2v5*)
10193   lt_cv_deplibs_check_method=pass_all
10194   ;;
10195
10196 solaris*)
10197   lt_cv_deplibs_check_method=pass_all
10198   ;;
10199
10200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10201   case $host_vendor in
10202   motorola)
10203     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]'
10204     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10205     ;;
10206   ncr)
10207     lt_cv_deplibs_check_method=pass_all
10208     ;;
10209   sequent)
10210     lt_cv_file_magic_cmd='/bin/file'
10211     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10212     ;;
10213   sni)
10214     lt_cv_file_magic_cmd='/bin/file'
10215     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10216     lt_cv_file_magic_test_file=/lib/libc.so
10217     ;;
10218   siemens)
10219     lt_cv_deplibs_check_method=pass_all
10220     ;;
10221   esac
10222   ;;
10223
10224 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10225   lt_cv_deplibs_check_method=pass_all
10226   ;;
10227 esac
10228
10229 fi
10230 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10231 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10232 file_magic_cmd=$lt_cv_file_magic_cmd
10233 deplibs_check_method=$lt_cv_deplibs_check_method
10234 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10235
10236
10237
10238 # If no C compiler was specified, use CC.
10239 LTCC=${LTCC-"$CC"}
10240
10241 # Allow CC to be a program name with arguments.
10242 compiler=$CC
10243
10244 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10245 if test "${enable_libtool_lock+set}" = set; then
10246   enableval="$enable_libtool_lock"
10247
10248 fi;
10249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10250
10251 # Some flags need to be propagated to the compiler or linker for good
10252 # libtool support.
10253 case $host in
10254 ia64-*-hpux*)
10255   # Find out which ABI we are using.
10256   echo 'int i;' > conftest.$ac_ext
10257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258   (eval $ac_compile) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; then
10262     case `/usr/bin/file conftest.$ac_objext` in
10263     *ELF-32*)
10264       HPUX_IA64_MODE="32"
10265       ;;
10266     *ELF-64*)
10267       HPUX_IA64_MODE="64"
10268       ;;
10269     esac
10270   fi
10271   rm -rf conftest*
10272   ;;
10273 *-*-irix6*)
10274   # Find out which ABI we are using.
10275   echo '#line 10275 "configure"' > conftest.$ac_ext
10276   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277   (eval $ac_compile) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; then
10281    if test "$lt_cv_prog_gnu_ld" = yes; then
10282     case `/usr/bin/file conftest.$ac_objext` in
10283     *32-bit*)
10284       LD="${LD-ld} -melf32bsmip"
10285       ;;
10286     *N32*)
10287       LD="${LD-ld} -melf32bmipn32"
10288       ;;
10289     *64-bit*)
10290       LD="${LD-ld} -melf64bmip"
10291       ;;
10292     esac
10293    else
10294     case `/usr/bin/file conftest.$ac_objext` in
10295     *32-bit*)
10296       LD="${LD-ld} -32"
10297       ;;
10298     *N32*)
10299       LD="${LD-ld} -n32"
10300       ;;
10301     *64-bit*)
10302       LD="${LD-ld} -64"
10303       ;;
10304     esac
10305    fi
10306   fi
10307   rm -rf conftest*
10308   ;;
10309
10310 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10311   # Find out which ABI we are using.
10312   echo 'int i;' > conftest.$ac_ext
10313   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10314   (eval $ac_compile) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; then
10318     case "`/usr/bin/file conftest.o`" in
10319     *32-bit*)
10320       case $host in
10321         x86_64-*linux*)
10322           LD="${LD-ld} -m elf_i386"
10323           ;;
10324         ppc64-*linux*|powerpc64-*linux*)
10325           LD="${LD-ld} -m elf32ppclinux"
10326           ;;
10327         s390x-*linux*)
10328           LD="${LD-ld} -m elf_s390"
10329           ;;
10330         sparc64-*linux*)
10331           LD="${LD-ld} -m elf32_sparc"
10332           ;;
10333       esac
10334       ;;
10335     *64-bit*)
10336       case $host in
10337         x86_64-*linux*)
10338           LD="${LD-ld} -m elf_x86_64"
10339           ;;
10340         ppc*-*linux*|powerpc*-*linux*)
10341           LD="${LD-ld} -m elf64ppc"
10342           ;;
10343         s390*-*linux*)
10344           LD="${LD-ld} -m elf64_s390"
10345           ;;
10346         sparc*-*linux*)
10347           LD="${LD-ld} -m elf64_sparc"
10348           ;;
10349       esac
10350       ;;
10351     esac
10352   fi
10353   rm -rf conftest*
10354   ;;
10355
10356 *-*-sco3.2v5*)
10357   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10358   SAVE_CFLAGS="$CFLAGS"
10359   CFLAGS="$CFLAGS -belf"
10360   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10361 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10362 if test "${lt_cv_cc_needs_belf+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   ac_ext=c
10366 ac_cpp='$CPP $CPPFLAGS'
10367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10370
10371      cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h.  */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h.  */
10377
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381   (eval $ac_link) 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -z "$ac_c_werror_flag"
10389                          || test ! -s conftest.err'
10390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391   (eval $ac_try) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; } &&
10395          { ac_try='test -s conftest$ac_exeext'
10396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397   (eval $ac_try) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); }; }; then
10401   lt_cv_cc_needs_belf=yes
10402 else
10403   echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406 lt_cv_cc_needs_belf=no
10407 fi
10408 rm -f conftest.err conftest.$ac_objext \
10409       conftest$ac_exeext conftest.$ac_ext
10410      ac_ext=c
10411 ac_cpp='$CPP $CPPFLAGS'
10412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10415
10416 fi
10417 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10418 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10419   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10420     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10421     CFLAGS="$SAVE_CFLAGS"
10422   fi
10423   ;;
10424
10425 esac
10426
10427 need_locks="$enable_libtool_lock"
10428
10429
10430
10431
10432 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10433     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10434     (test "X$CXX" != "Xg++"))) ; then
10435   ac_ext=cc
10436 ac_cpp='$CXXCPP $CPPFLAGS'
10437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10440 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10441 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10442 if test -z "$CXXCPP"; then
10443   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446       # Double quotes because CXXCPP needs to be expanded
10447     for CXXCPP in "$CXX -E" "/lib/cpp"
10448     do
10449       ac_preproc_ok=false
10450 for ac_cxx_preproc_warn_flag in '' yes
10451 do
10452   # Use a header file that comes with gcc, so configuring glibc
10453   # with a fresh cross-compiler works.
10454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10455   # <limits.h> exists even on freestanding compilers.
10456   # On the NeXT, cc -E runs the code through the compiler's parser,
10457   # not just through cpp. "Syntax error" is here to catch this case.
10458   cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h.  */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h.  */
10464 #ifdef __STDC__
10465 # include <limits.h>
10466 #else
10467 # include <assert.h>
10468 #endif
10469                      Syntax error
10470 _ACEOF
10471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10473   ac_status=$?
10474   grep -v '^ *+' conftest.er1 >conftest.err
10475   rm -f conftest.er1
10476   cat conftest.err >&5
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } >/dev/null; then
10479   if test -s conftest.err; then
10480     ac_cpp_err=$ac_cxx_preproc_warn_flag
10481     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10482   else
10483     ac_cpp_err=
10484   fi
10485 else
10486   ac_cpp_err=yes
10487 fi
10488 if test -z "$ac_cpp_err"; then
10489   :
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494   # Broken: fails on valid input.
10495 continue
10496 fi
10497 rm -f conftest.err conftest.$ac_ext
10498
10499   # OK, works on sane cases.  Now check whether non-existent headers
10500   # can be detected and how.
10501   cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507 #include <ac_nonexistent.h>
10508 _ACEOF
10509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10511   ac_status=$?
10512   grep -v '^ *+' conftest.er1 >conftest.err
10513   rm -f conftest.er1
10514   cat conftest.err >&5
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); } >/dev/null; then
10517   if test -s conftest.err; then
10518     ac_cpp_err=$ac_cxx_preproc_warn_flag
10519     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10520   else
10521     ac_cpp_err=
10522   fi
10523 else
10524   ac_cpp_err=yes
10525 fi
10526 if test -z "$ac_cpp_err"; then
10527   # Broken: success on invalid input.
10528 continue
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533   # Passes both tests.
10534 ac_preproc_ok=:
10535 break
10536 fi
10537 rm -f conftest.err conftest.$ac_ext
10538
10539 done
10540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10541 rm -f conftest.err conftest.$ac_ext
10542 if $ac_preproc_ok; then
10543   break
10544 fi
10545
10546     done
10547     ac_cv_prog_CXXCPP=$CXXCPP
10548
10549 fi
10550   CXXCPP=$ac_cv_prog_CXXCPP
10551 else
10552   ac_cv_prog_CXXCPP=$CXXCPP
10553 fi
10554 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10555 echo "${ECHO_T}$CXXCPP" >&6
10556 ac_preproc_ok=false
10557 for ac_cxx_preproc_warn_flag in '' yes
10558 do
10559   # Use a header file that comes with gcc, so configuring glibc
10560   # with a fresh cross-compiler works.
10561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562   # <limits.h> exists even on freestanding compilers.
10563   # On the NeXT, cc -E runs the code through the compiler's parser,
10564   # not just through cpp. "Syntax error" is here to catch this case.
10565   cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h.  */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h.  */
10571 #ifdef __STDC__
10572 # include <limits.h>
10573 #else
10574 # include <assert.h>
10575 #endif
10576                      Syntax error
10577 _ACEOF
10578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10580   ac_status=$?
10581   grep -v '^ *+' conftest.er1 >conftest.err
10582   rm -f conftest.er1
10583   cat conftest.err >&5
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } >/dev/null; then
10586   if test -s conftest.err; then
10587     ac_cpp_err=$ac_cxx_preproc_warn_flag
10588     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10589   else
10590     ac_cpp_err=
10591   fi
10592 else
10593   ac_cpp_err=yes
10594 fi
10595 if test -z "$ac_cpp_err"; then
10596   :
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601   # Broken: fails on valid input.
10602 continue
10603 fi
10604 rm -f conftest.err conftest.$ac_ext
10605
10606   # OK, works on sane cases.  Now check whether non-existent headers
10607   # can be detected and how.
10608   cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h.  */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h.  */
10614 #include <ac_nonexistent.h>
10615 _ACEOF
10616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } >/dev/null; then
10624   if test -s conftest.err; then
10625     ac_cpp_err=$ac_cxx_preproc_warn_flag
10626     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10627   else
10628     ac_cpp_err=
10629   fi
10630 else
10631   ac_cpp_err=yes
10632 fi
10633 if test -z "$ac_cpp_err"; then
10634   # Broken: success on invalid input.
10635 continue
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640   # Passes both tests.
10641 ac_preproc_ok=:
10642 break
10643 fi
10644 rm -f conftest.err conftest.$ac_ext
10645
10646 done
10647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10648 rm -f conftest.err conftest.$ac_ext
10649 if $ac_preproc_ok; then
10650   :
10651 else
10652   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10653 See \`config.log' for more details." >&5
10654 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10655 See \`config.log' for more details." >&2;}
10656    { (exit 1); exit 1; }; }
10657 fi
10658
10659 ac_ext=cc
10660 ac_cpp='$CXXCPP $CPPFLAGS'
10661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10664
10665 fi
10666
10667
10668 ac_ext=f
10669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10672 if test -n "$ac_tool_prefix"; then
10673   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10674   do
10675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10677 echo "$as_me:$LINENO: checking for $ac_word" >&5
10678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10679 if test "${ac_cv_prog_F77+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   if test -n "$F77"; then
10683   ac_cv_prog_F77="$F77" # Let the user override the test.
10684 else
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10687 do
10688   IFS=$as_save_IFS
10689   test -z "$as_dir" && as_dir=.
10690   for ac_exec_ext in '' $ac_executable_extensions; do
10691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10694     break 2
10695   fi
10696 done
10697 done
10698
10699 fi
10700 fi
10701 F77=$ac_cv_prog_F77
10702 if test -n "$F77"; then
10703   echo "$as_me:$LINENO: result: $F77" >&5
10704 echo "${ECHO_T}$F77" >&6
10705 else
10706   echo "$as_me:$LINENO: result: no" >&5
10707 echo "${ECHO_T}no" >&6
10708 fi
10709
10710     test -n "$F77" && break
10711   done
10712 fi
10713 if test -z "$F77"; then
10714   ac_ct_F77=$F77
10715   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10716 do
10717   # Extract the first word of "$ac_prog", so it can be a program name with args.
10718 set dummy $ac_prog; ac_word=$2
10719 echo "$as_me:$LINENO: checking for $ac_word" >&5
10720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10722   echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724   if test -n "$ac_ct_F77"; then
10725   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10726 else
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10729 do
10730   IFS=$as_save_IFS
10731   test -z "$as_dir" && as_dir=.
10732   for ac_exec_ext in '' $ac_executable_extensions; do
10733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734     ac_cv_prog_ac_ct_F77="$ac_prog"
10735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736     break 2
10737   fi
10738 done
10739 done
10740
10741 fi
10742 fi
10743 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10744 if test -n "$ac_ct_F77"; then
10745   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10746 echo "${ECHO_T}$ac_ct_F77" >&6
10747 else
10748   echo "$as_me:$LINENO: result: no" >&5
10749 echo "${ECHO_T}no" >&6
10750 fi
10751
10752   test -n "$ac_ct_F77" && break
10753 done
10754
10755   F77=$ac_ct_F77
10756 fi
10757
10758
10759 # Provide some information about the compiler.
10760 echo "$as_me:10760:" \
10761      "checking for Fortran 77 compiler version" >&5
10762 ac_compiler=`set X $ac_compile; echo $2`
10763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10764   (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10774   (eval $ac_compiler -V </dev/null >&5) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }
10778 rm -f a.out
10779
10780 # If we don't use `.F' as extension, the preprocessor is not run on the
10781 # input file.  (Note that this only needs to work for GNU compilers.)
10782 ac_save_ext=$ac_ext
10783 ac_ext=F
10784 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789   cat >conftest.$ac_ext <<_ACEOF
10790       program main
10791 #ifndef __GNUC__
10792        choke me
10793 #endif
10794
10795       end
10796 _ACEOF
10797 rm -f conftest.$ac_objext
10798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10799   (eval $ac_compile) 2>conftest.er1
10800   ac_status=$?
10801   grep -v '^ *+' conftest.er1 >conftest.err
10802   rm -f conftest.er1
10803   cat conftest.err >&5
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); } &&
10806          { ac_try='test -z "$ac_f77_werror_flag"
10807                          || test ! -s conftest.err'
10808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809   (eval $ac_try) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }; } &&
10813          { ac_try='test -s conftest.$ac_objext'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; }; then
10819   ac_compiler_gnu=yes
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 ac_compiler_gnu=no
10825 fi
10826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10827 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10828
10829 fi
10830 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10831 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10832 ac_ext=$ac_save_ext
10833 ac_test_FFLAGS=${FFLAGS+set}
10834 ac_save_FFLAGS=$FFLAGS
10835 FFLAGS=
10836 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10837 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10838 if test "${ac_cv_prog_f77_g+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   FFLAGS=-g
10842 cat >conftest.$ac_ext <<_ACEOF
10843       program main
10844
10845       end
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849   (eval $ac_compile) 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } &&
10856          { ac_try='test -z "$ac_f77_werror_flag"
10857                          || test ! -s conftest.err'
10858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859   (eval $ac_try) 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; } &&
10863          { ac_try='test -s conftest.$ac_objext'
10864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865   (eval $ac_try) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); }; }; then
10869   ac_cv_prog_f77_g=yes
10870 else
10871   echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 ac_cv_prog_f77_g=no
10875 fi
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10877
10878 fi
10879 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10880 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10881 if test "$ac_test_FFLAGS" = set; then
10882   FFLAGS=$ac_save_FFLAGS
10883 elif test $ac_cv_prog_f77_g = yes; then
10884   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10885     FFLAGS="-g -O2"
10886   else
10887     FFLAGS="-g"
10888   fi
10889 else
10890   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10891     FFLAGS="-O2"
10892   else
10893     FFLAGS=
10894   fi
10895 fi
10896
10897 G77=`test $ac_compiler_gnu = yes && echo yes`
10898 ac_ext=c
10899 ac_cpp='$CPP $CPPFLAGS'
10900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10903
10904
10905
10906 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10907
10908 # find the maximum length of command line arguments
10909 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10910 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10911 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914     i=0
10915   teststring="ABCD"
10916
10917   case $build_os in
10918   msdosdjgpp*)
10919     # On DJGPP, this test can blow up pretty badly due to problems in libc
10920     # (any single argument exceeding 2000 bytes causes a buffer overrun
10921     # during glob expansion).  Even if it were fixed, the result of this
10922     # check would be larger than it should be.
10923     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10924     ;;
10925
10926   gnu*)
10927     # Under GNU Hurd, this test is not required because there is
10928     # no limit to the length of command line arguments.
10929     # Libtool will interpret -1 as no limit whatsoever
10930     lt_cv_sys_max_cmd_len=-1;
10931     ;;
10932
10933   cygwin* | mingw*)
10934     # On Win9x/ME, this test blows up -- it succeeds, but takes
10935     # about 5 minutes as the teststring grows exponentially.
10936     # Worse, since 9x/ME are not pre-emptively multitasking,
10937     # you end up with a "frozen" computer, even though with patience
10938     # the test eventually succeeds (with a max line length of 256k).
10939     # Instead, let's just punt: use the minimum linelength reported by
10940     # all of the supported platforms: 8192 (on NT/2K/XP).
10941     lt_cv_sys_max_cmd_len=8192;
10942     ;;
10943
10944   amigaos*)
10945     # On AmigaOS with pdksh, this test takes hours, literally.
10946     # So we just punt and use a minimum line length of 8192.
10947     lt_cv_sys_max_cmd_len=8192;
10948     ;;
10949
10950   netbsd* | freebsd* | openbsd* | darwin* )
10951     # This has been around since 386BSD, at least.  Likely further.
10952     if test -x /sbin/sysctl; then
10953       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10954     elif test -x /usr/sbin/sysctl; then
10955       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10956     else
10957       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10958     fi
10959     # And add a safety zone
10960     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10961     ;;
10962
10963  *)
10964     # If test is not a shell built-in, we'll probably end up computing a
10965     # maximum length that is only half of the actual maximum length, but
10966     # we can't tell.
10967     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10968     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10969                = "XX$teststring") >/dev/null 2>&1 &&
10970             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10971             lt_cv_sys_max_cmd_len=$new_result &&
10972             test $i != 17 # 1/2 MB should be enough
10973     do
10974       i=`expr $i + 1`
10975       teststring=$teststring$teststring
10976     done
10977     teststring=
10978     # Add a significant safety factor because C++ compilers can tack on massive
10979     # amounts of additional arguments before passing them to the linker.
10980     # It appears as though 1/2 is a usable value.
10981     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10982     ;;
10983   esac
10984
10985 fi
10986
10987 if test -n $lt_cv_sys_max_cmd_len ; then
10988   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10989 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10990 else
10991   echo "$as_me:$LINENO: result: none" >&5
10992 echo "${ECHO_T}none" >&6
10993 fi
10994
10995
10996
10997
10998 # Check for command to grab the raw symbol name followed by C symbol from nm.
10999 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11000 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11001 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004
11005 # These are sane defaults that work on at least a few old systems.
11006 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11007
11008 # Character class describing NM global symbol codes.
11009 symcode='[BCDEGRST]'
11010
11011 # Regexp to match symbols that can be accessed directly from C.
11012 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11013
11014 # Transform the above into a raw symbol and a C symbol.
11015 symxfrm='\1 \2\3 \3'
11016
11017 # Transform an extracted symbol line into a proper C declaration
11018 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11019
11020 # Transform an extracted symbol line into symbol name and symbol address
11021 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'"
11022
11023 # Define system-specific variables.
11024 case $host_os in
11025 aix*)
11026   symcode='[BCDT]'
11027   ;;
11028 cygwin* | mingw* | pw32*)
11029   symcode='[ABCDGISTW]'
11030   ;;
11031 hpux*) # Its linker distinguishes data from code symbols
11032   if test "$host_cpu" = ia64; then
11033     symcode='[ABCDEGRST]'
11034   fi
11035   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11036   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'"
11037   ;;
11038 linux*)
11039   if test "$host_cpu" = ia64; then
11040     symcode='[ABCDGIRSTW]'
11041     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11042     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'"
11043   fi
11044   ;;
11045 irix* | nonstopux*)
11046   symcode='[BCDEGRST]'
11047   ;;
11048 osf*)
11049   symcode='[BCDEGQRST]'
11050   ;;
11051 solaris* | sysv5*)
11052   symcode='[BDRT]'
11053   ;;
11054 sysv4)
11055   symcode='[DFNSTU]'
11056   ;;
11057 esac
11058
11059 # Handle CRLF in mingw tool chain
11060 opt_cr=
11061 case $build_os in
11062 mingw*)
11063   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11064   ;;
11065 esac
11066
11067 # If we're using GNU nm, then use its standard symbol codes.
11068 case `$NM -V 2>&1` in
11069 *GNU* | *'with BFD'*)
11070   symcode='[ABCDGIRSTW]' ;;
11071 esac
11072
11073 # Try without a prefix undercore, then with it.
11074 for ac_symprfx in "" "_"; do
11075
11076   # Write the raw and C identifiers.
11077   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11078
11079   # Check to see that the pipe works correctly.
11080   pipe_works=no
11081
11082   rm -f conftest*
11083   cat > conftest.$ac_ext <<EOF
11084 #ifdef __cplusplus
11085 extern "C" {
11086 #endif
11087 char nm_test_var;
11088 void nm_test_func(){}
11089 #ifdef __cplusplus
11090 }
11091 #endif
11092 int main(){nm_test_var='a';nm_test_func();return(0);}
11093 EOF
11094
11095   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096   (eval $ac_compile) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; then
11100     # Now try to grab the symbols.
11101     nlist=conftest.nm
11102     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11103   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } && test -s "$nlist"; then
11107       # Try sorting and uniquifying the output.
11108       if sort "$nlist" | uniq > "$nlist"T; then
11109         mv -f "$nlist"T "$nlist"
11110       else
11111         rm -f "$nlist"T
11112       fi
11113
11114       # Make sure that we snagged all the symbols we need.
11115       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11116         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11117           cat <<EOF > conftest.$ac_ext
11118 #ifdef __cplusplus
11119 extern "C" {
11120 #endif
11121
11122 EOF
11123           # Now generate the symbol file.
11124           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11125
11126           cat <<EOF >> conftest.$ac_ext
11127 #if defined (__STDC__) && __STDC__
11128 # define lt_ptr_t void *
11129 #else
11130 # define lt_ptr_t char *
11131 # define const
11132 #endif
11133
11134 /* The mapping between symbol names and symbols. */
11135 const struct {
11136   const char *name;
11137   lt_ptr_t address;
11138 }
11139 lt_preloaded_symbols[] =
11140 {
11141 EOF
11142           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11143           cat <<\EOF >> conftest.$ac_ext
11144   {0, (lt_ptr_t) 0}
11145 };
11146
11147 #ifdef __cplusplus
11148 }
11149 #endif
11150 EOF
11151           # Now try linking the two files.
11152           mv conftest.$ac_objext conftstm.$ac_objext
11153           lt_save_LIBS="$LIBS"
11154           lt_save_CFLAGS="$CFLAGS"
11155           LIBS="conftstm.$ac_objext"
11156           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11157           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158   (eval $ac_link) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11162             pipe_works=yes
11163           fi
11164           LIBS="$lt_save_LIBS"
11165           CFLAGS="$lt_save_CFLAGS"
11166         else
11167           echo "cannot find nm_test_func in $nlist" >&5
11168         fi
11169       else
11170         echo "cannot find nm_test_var in $nlist" >&5
11171       fi
11172     else
11173       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11174     fi
11175   else
11176     echo "$progname: failed program was:" >&5
11177     cat conftest.$ac_ext >&5
11178   fi
11179   rm -f conftest* conftst*
11180
11181   # Do not use the global_symbol_pipe unless it works.
11182   if test "$pipe_works" = yes; then
11183     break
11184   else
11185     lt_cv_sys_global_symbol_pipe=
11186   fi
11187 done
11188
11189 fi
11190
11191 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11192   lt_cv_sys_global_symbol_to_cdecl=
11193 fi
11194 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11195   echo "$as_me:$LINENO: result: failed" >&5
11196 echo "${ECHO_T}failed" >&6
11197 else
11198   echo "$as_me:$LINENO: result: ok" >&5
11199 echo "${ECHO_T}ok" >&6
11200 fi
11201
11202 echo "$as_me:$LINENO: checking for objdir" >&5
11203 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11204 if test "${lt_cv_objdir+set}" = set; then
11205   echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207   rm -f .libs 2>/dev/null
11208 mkdir .libs 2>/dev/null
11209 if test -d .libs; then
11210   lt_cv_objdir=.libs
11211 else
11212   # MS-DOS does not allow filenames that begin with a dot.
11213   lt_cv_objdir=_libs
11214 fi
11215 rmdir .libs 2>/dev/null
11216 fi
11217 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11218 echo "${ECHO_T}$lt_cv_objdir" >&6
11219 objdir=$lt_cv_objdir
11220
11221
11222
11223
11224
11225 case $host_os in
11226 aix3*)
11227   # AIX sometimes has problems with the GCC collect2 program.  For some
11228   # reason, if we set the COLLECT_NAMES environment variable, the problems
11229   # vanish in a puff of smoke.
11230   if test "X${COLLECT_NAMES+set}" != Xset; then
11231     COLLECT_NAMES=
11232     export COLLECT_NAMES
11233   fi
11234   ;;
11235 esac
11236
11237 # Sed substitution that helps us do robust quoting.  It backslashifies
11238 # metacharacters that are still active within double-quoted strings.
11239 Xsed='sed -e s/^X//'
11240 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11241
11242 # Same as above, but do not quote variable references.
11243 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11244
11245 # Sed substitution to delay expansion of an escaped shell variable in a
11246 # double_quote_subst'ed string.
11247 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11248
11249 # Sed substitution to avoid accidental globbing in evaled expressions
11250 no_glob_subst='s/\*/\\\*/g'
11251
11252 # Constants:
11253 rm="rm -f"
11254
11255 # Global variables:
11256 default_ofile=mklib
11257 can_build_shared=yes
11258
11259 # All known linkers require a `.a' archive for static linking (except M$VC,
11260 # which needs '.lib').
11261 libext=a
11262 ltmain="$ac_aux_dir/ltmain.sh"
11263 ofile="$default_ofile"
11264 with_gnu_ld="$lt_cv_prog_gnu_ld"
11265
11266 if test -n "$ac_tool_prefix"; then
11267   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11268 set dummy ${ac_tool_prefix}ar; ac_word=$2
11269 echo "$as_me:$LINENO: checking for $ac_word" >&5
11270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11271 if test "${ac_cv_prog_AR+set}" = set; then
11272   echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11274   if test -n "$AR"; then
11275   ac_cv_prog_AR="$AR" # Let the user override the test.
11276 else
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280   IFS=$as_save_IFS
11281   test -z "$as_dir" && as_dir=.
11282   for ac_exec_ext in '' $ac_executable_extensions; do
11283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284     ac_cv_prog_AR="${ac_tool_prefix}ar"
11285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11286     break 2
11287   fi
11288 done
11289 done
11290
11291 fi
11292 fi
11293 AR=$ac_cv_prog_AR
11294 if test -n "$AR"; then
11295   echo "$as_me:$LINENO: result: $AR" >&5
11296 echo "${ECHO_T}$AR" >&6
11297 else
11298   echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6
11300 fi
11301
11302 fi
11303 if test -z "$ac_cv_prog_AR"; then
11304   ac_ct_AR=$AR
11305   # Extract the first word of "ar", so it can be a program name with args.
11306 set dummy ar; ac_word=$2
11307 echo "$as_me:$LINENO: checking for $ac_word" >&5
11308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11309 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   if test -n "$ac_ct_AR"; then
11313   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11314 else
11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in $PATH
11317 do
11318   IFS=$as_save_IFS
11319   test -z "$as_dir" && as_dir=.
11320   for ac_exec_ext in '' $ac_executable_extensions; do
11321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322     ac_cv_prog_ac_ct_AR="ar"
11323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11324     break 2
11325   fi
11326 done
11327 done
11328
11329   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11330 fi
11331 fi
11332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11333 if test -n "$ac_ct_AR"; then
11334   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11335 echo "${ECHO_T}$ac_ct_AR" >&6
11336 else
11337   echo "$as_me:$LINENO: result: no" >&5
11338 echo "${ECHO_T}no" >&6
11339 fi
11340
11341   AR=$ac_ct_AR
11342 else
11343   AR="$ac_cv_prog_AR"
11344 fi
11345
11346 if test -n "$ac_tool_prefix"; then
11347   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11349 echo "$as_me:$LINENO: checking for $ac_word" >&5
11350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11351 if test "${ac_cv_prog_RANLIB+set}" = set; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354   if test -n "$RANLIB"; then
11355   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11356 else
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11359 do
11360   IFS=$as_save_IFS
11361   test -z "$as_dir" && as_dir=.
11362   for ac_exec_ext in '' $ac_executable_extensions; do
11363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11366     break 2
11367   fi
11368 done
11369 done
11370
11371 fi
11372 fi
11373 RANLIB=$ac_cv_prog_RANLIB
11374 if test -n "$RANLIB"; then
11375   echo "$as_me:$LINENO: result: $RANLIB" >&5
11376 echo "${ECHO_T}$RANLIB" >&6
11377 else
11378   echo "$as_me:$LINENO: result: no" >&5
11379 echo "${ECHO_T}no" >&6
11380 fi
11381
11382 fi
11383 if test -z "$ac_cv_prog_RANLIB"; then
11384   ac_ct_RANLIB=$RANLIB
11385   # Extract the first word of "ranlib", so it can be a program name with args.
11386 set dummy ranlib; ac_word=$2
11387 echo "$as_me:$LINENO: checking for $ac_word" >&5
11388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11390   echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392   if test -n "$ac_ct_RANLIB"; then
11393   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11394 else
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11397 do
11398   IFS=$as_save_IFS
11399   test -z "$as_dir" && as_dir=.
11400   for ac_exec_ext in '' $ac_executable_extensions; do
11401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402     ac_cv_prog_ac_ct_RANLIB="ranlib"
11403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404     break 2
11405   fi
11406 done
11407 done
11408
11409   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11410 fi
11411 fi
11412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11413 if test -n "$ac_ct_RANLIB"; then
11414   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11415 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11416 else
11417   echo "$as_me:$LINENO: result: no" >&5
11418 echo "${ECHO_T}no" >&6
11419 fi
11420
11421   RANLIB=$ac_ct_RANLIB
11422 else
11423   RANLIB="$ac_cv_prog_RANLIB"
11424 fi
11425
11426 if test -n "$ac_tool_prefix"; then
11427   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11428 set dummy ${ac_tool_prefix}strip; ac_word=$2
11429 echo "$as_me:$LINENO: checking for $ac_word" >&5
11430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11431 if test "${ac_cv_prog_STRIP+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434   if test -n "$STRIP"; then
11435   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11436 else
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11439 do
11440   IFS=$as_save_IFS
11441   test -z "$as_dir" && as_dir=.
11442   for ac_exec_ext in '' $ac_executable_extensions; do
11443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11446     break 2
11447   fi
11448 done
11449 done
11450
11451 fi
11452 fi
11453 STRIP=$ac_cv_prog_STRIP
11454 if test -n "$STRIP"; then
11455   echo "$as_me:$LINENO: result: $STRIP" >&5
11456 echo "${ECHO_T}$STRIP" >&6
11457 else
11458   echo "$as_me:$LINENO: result: no" >&5
11459 echo "${ECHO_T}no" >&6
11460 fi
11461
11462 fi
11463 if test -z "$ac_cv_prog_STRIP"; then
11464   ac_ct_STRIP=$STRIP
11465   # Extract the first word of "strip", so it can be a program name with args.
11466 set dummy strip; ac_word=$2
11467 echo "$as_me:$LINENO: checking for $ac_word" >&5
11468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   if test -n "$ac_ct_STRIP"; then
11473   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11474 else
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $PATH
11477 do
11478   IFS=$as_save_IFS
11479   test -z "$as_dir" && as_dir=.
11480   for ac_exec_ext in '' $ac_executable_extensions; do
11481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482     ac_cv_prog_ac_ct_STRIP="strip"
11483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484     break 2
11485   fi
11486 done
11487 done
11488
11489   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11490 fi
11491 fi
11492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11493 if test -n "$ac_ct_STRIP"; then
11494   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11495 echo "${ECHO_T}$ac_ct_STRIP" >&6
11496 else
11497   echo "$as_me:$LINENO: result: no" >&5
11498 echo "${ECHO_T}no" >&6
11499 fi
11500
11501   STRIP=$ac_ct_STRIP
11502 else
11503   STRIP="$ac_cv_prog_STRIP"
11504 fi
11505
11506
11507 old_CC="$CC"
11508 old_CFLAGS="$CFLAGS"
11509
11510 # Set sane defaults for various variables
11511 test -z "$AR" && AR=ar
11512 test -z "$AR_FLAGS" && AR_FLAGS=cru
11513 test -z "$AS" && AS=as
11514 test -z "$CC" && CC=cc
11515 test -z "$LTCC" && LTCC=$CC
11516 test -z "$DLLTOOL" && DLLTOOL=dlltool
11517 test -z "$LD" && LD=ld
11518 test -z "$LN_S" && LN_S="ln -s"
11519 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11520 test -z "$NM" && NM=nm
11521 test -z "$SED" && SED=sed
11522 test -z "$OBJDUMP" && OBJDUMP=objdump
11523 test -z "$RANLIB" && RANLIB=:
11524 test -z "$STRIP" && STRIP=:
11525 test -z "$ac_objext" && ac_objext=o
11526
11527 # Determine commands to create old-style static archives.
11528 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11529 old_postinstall_cmds='chmod 644 $oldlib'
11530 old_postuninstall_cmds=
11531
11532 if test -n "$RANLIB"; then
11533   case $host_os in
11534   openbsd*)
11535     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11536     ;;
11537   *)
11538     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11539     ;;
11540   esac
11541   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11542 fi
11543
11544 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11545
11546 # Only perform the check for file, if the check method requires it
11547 case $deplibs_check_method in
11548 file_magic*)
11549   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11550     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11551 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   case $MAGIC_CMD in
11556 [\\/*] |  ?:[\\/]*)
11557   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11558   ;;
11559 *)
11560   lt_save_MAGIC_CMD="$MAGIC_CMD"
11561   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11562   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11563   for ac_dir in $ac_dummy; do
11564     IFS="$lt_save_ifs"
11565     test -z "$ac_dir" && ac_dir=.
11566     if test -f $ac_dir/${ac_tool_prefix}file; then
11567       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11568       if test -n "$file_magic_test_file"; then
11569         case $deplibs_check_method in
11570         "file_magic "*)
11571           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11572           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11573           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11574             $EGREP "$file_magic_regex" > /dev/null; then
11575             :
11576           else
11577             cat <<EOF 1>&2
11578
11579 *** Warning: the command libtool uses to detect shared libraries,
11580 *** $file_magic_cmd, produces output that libtool cannot recognize.
11581 *** The result is that libtool may fail to recognize shared libraries
11582 *** as such.  This will affect the creation of libtool libraries that
11583 *** depend on shared libraries, but programs linked with such libtool
11584 *** libraries will work regardless of this problem.  Nevertheless, you
11585 *** may want to report the problem to your system manager and/or to
11586 *** bug-libtool@gnu.org
11587
11588 EOF
11589           fi ;;
11590         esac
11591       fi
11592       break
11593     fi
11594   done
11595   IFS="$lt_save_ifs"
11596   MAGIC_CMD="$lt_save_MAGIC_CMD"
11597   ;;
11598 esac
11599 fi
11600
11601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11602 if test -n "$MAGIC_CMD"; then
11603   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11604 echo "${ECHO_T}$MAGIC_CMD" >&6
11605 else
11606   echo "$as_me:$LINENO: result: no" >&5
11607 echo "${ECHO_T}no" >&6
11608 fi
11609
11610 if test -z "$lt_cv_path_MAGIC_CMD"; then
11611   if test -n "$ac_tool_prefix"; then
11612     echo "$as_me:$LINENO: checking for file" >&5
11613 echo $ECHO_N "checking for file... $ECHO_C" >&6
11614 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   case $MAGIC_CMD in
11618 [\\/*] |  ?:[\\/]*)
11619   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11620   ;;
11621 *)
11622   lt_save_MAGIC_CMD="$MAGIC_CMD"
11623   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11624   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11625   for ac_dir in $ac_dummy; do
11626     IFS="$lt_save_ifs"
11627     test -z "$ac_dir" && ac_dir=.
11628     if test -f $ac_dir/file; then
11629       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11630       if test -n "$file_magic_test_file"; then
11631         case $deplibs_check_method in
11632         "file_magic "*)
11633           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11634           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11635           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11636             $EGREP "$file_magic_regex" > /dev/null; then
11637             :
11638           else
11639             cat <<EOF 1>&2
11640
11641 *** Warning: the command libtool uses to detect shared libraries,
11642 *** $file_magic_cmd, produces output that libtool cannot recognize.
11643 *** The result is that libtool may fail to recognize shared libraries
11644 *** as such.  This will affect the creation of libtool libraries that
11645 *** depend on shared libraries, but programs linked with such libtool
11646 *** libraries will work regardless of this problem.  Nevertheless, you
11647 *** may want to report the problem to your system manager and/or to
11648 *** bug-libtool@gnu.org
11649
11650 EOF
11651           fi ;;
11652         esac
11653       fi
11654       break
11655     fi
11656   done
11657   IFS="$lt_save_ifs"
11658   MAGIC_CMD="$lt_save_MAGIC_CMD"
11659   ;;
11660 esac
11661 fi
11662
11663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11664 if test -n "$MAGIC_CMD"; then
11665   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11666 echo "${ECHO_T}$MAGIC_CMD" >&6
11667 else
11668   echo "$as_me:$LINENO: result: no" >&5
11669 echo "${ECHO_T}no" >&6
11670 fi
11671
11672   else
11673     MAGIC_CMD=:
11674   fi
11675 fi
11676
11677   fi
11678   ;;
11679 esac
11680
11681 enable_dlopen=yes
11682 enable_win32_dll=no
11683
11684 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11685 if test "${enable_libtool_lock+set}" = set; then
11686   enableval="$enable_libtool_lock"
11687
11688 fi;
11689 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11690
11691
11692 # Check whether --with-pic or --without-pic was given.
11693 if test "${with_pic+set}" = set; then
11694   withval="$with_pic"
11695   pic_mode="$withval"
11696 else
11697   pic_mode=default
11698 fi;
11699 test -z "$pic_mode" && pic_mode=default
11700
11701 # Use C for the default configuration in the libtool script
11702 tagname=
11703 lt_save_CC="$CC"
11704 ac_ext=c
11705 ac_cpp='$CPP $CPPFLAGS'
11706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11709
11710
11711 # Source file extension for C test sources.
11712 ac_ext=c
11713
11714 # Object file extension for compiled C test sources.
11715 objext=o
11716 objext=$objext
11717
11718 # Code to be used in simple compile tests
11719 lt_simple_compile_test_code="int some_variable = 0;\n"
11720
11721 # Code to be used in simple link tests
11722 lt_simple_link_test_code='int main(){return(0);}\n'
11723
11724
11725 # If no C compiler was specified, use CC.
11726 LTCC=${LTCC-"$CC"}
11727
11728 # Allow CC to be a program name with arguments.
11729 compiler=$CC
11730
11731
11732 #
11733 # Check for any special shared library compilation flags.
11734 #
11735 lt_prog_cc_shlib=
11736 if test "$GCC" = no; then
11737   case $host_os in
11738   sco3.2v5*)
11739     lt_prog_cc_shlib='-belf'
11740     ;;
11741   esac
11742 fi
11743 if test -n "$lt_prog_cc_shlib"; then
11744   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11745 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11746   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11747   else
11748     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11749 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11750     lt_cv_prog_cc_can_build_shared=no
11751   fi
11752 fi
11753
11754
11755 #
11756 # Check to make sure the static flag actually works.
11757 #
11758 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11759 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11760 if test "${lt_prog_compiler_static_works+set}" = set; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   lt_prog_compiler_static_works=no
11764    save_LDFLAGS="$LDFLAGS"
11765    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11766    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11767    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11768      # The compiler can only warn and ignore the option if not recognized
11769      # So say no if there are warnings
11770      if test -s conftest.err; then
11771        # Append any errors to the config.log.
11772        cat conftest.err 1>&5
11773      else
11774        lt_prog_compiler_static_works=yes
11775      fi
11776    fi
11777    $rm conftest*
11778    LDFLAGS="$save_LDFLAGS"
11779
11780 fi
11781 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11782 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11783
11784 if test x"$lt_prog_compiler_static_works" = xyes; then
11785     :
11786 else
11787     lt_prog_compiler_static=
11788 fi
11789
11790
11791
11792
11793 lt_prog_compiler_no_builtin_flag=
11794
11795 if test "$GCC" = yes; then
11796   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11797
11798
11799 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11800 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11801 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   lt_cv_prog_compiler_rtti_exceptions=no
11805   ac_outfile=conftest.$ac_objext
11806    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11807    lt_compiler_flag="-fno-rtti -fno-exceptions"
11808    # Insert the option either (1) after the last *FLAGS variable, or
11809    # (2) before a word containing "conftest.", or (3) at the end.
11810    # Note that $ac_compile itself does not contain backslashes and begins
11811    # with a dollar sign (not a hyphen), so the echo should work correctly.
11812    # The option is referenced via a variable to avoid confusing sed.
11813    lt_compile=`echo "$ac_compile" | $SED \
11814    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11816    -e 's:$: $lt_compiler_flag:'`
11817    (eval echo "\"\$as_me:11817: $lt_compile\"" >&5)
11818    (eval "$lt_compile" 2>conftest.err)
11819    ac_status=$?
11820    cat conftest.err >&5
11821    echo "$as_me:11821: \$? = $ac_status" >&5
11822    if (exit $ac_status) && test -s "$ac_outfile"; then
11823      # The compiler can only warn and ignore the option if not recognized
11824      # So say no if there are warnings
11825      if test ! -s conftest.err; then
11826        lt_cv_prog_compiler_rtti_exceptions=yes
11827      fi
11828    fi
11829    $rm conftest*
11830
11831 fi
11832 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11833 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11834
11835 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11836     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11837 else
11838     :
11839 fi
11840
11841 fi
11842
11843 lt_prog_compiler_wl=
11844 lt_prog_compiler_pic=
11845 lt_prog_compiler_static=
11846
11847 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11849
11850   if test "$GCC" = yes; then
11851     lt_prog_compiler_wl='-Wl,'
11852     lt_prog_compiler_static='-static'
11853
11854     case $host_os in
11855       aix*)
11856       # All AIX code is PIC.
11857       if test "$host_cpu" = ia64; then
11858         # AIX 5 now supports IA64 processor
11859         lt_prog_compiler_static='-Bstatic'
11860       fi
11861       ;;
11862
11863     amigaos*)
11864       # FIXME: we need at least 68020 code to build shared libraries, but
11865       # adding the `-m68020' flag to GCC prevents building anything better,
11866       # like `-m68040'.
11867       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11868       ;;
11869
11870     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11871       # PIC is the default for these OSes.
11872       ;;
11873
11874     mingw* | pw32* | os2*)
11875       # This hack is so that the source file can tell whether it is being
11876       # built for inclusion in a dll (and should export symbols for example).
11877       lt_prog_compiler_pic='-DDLL_EXPORT'
11878       ;;
11879
11880     darwin* | rhapsody*)
11881       # PIC is the default on this platform
11882       # Common symbols not allowed in MH_DYLIB files
11883       lt_prog_compiler_pic='-fno-common'
11884       ;;
11885
11886     msdosdjgpp*)
11887       # Just because we use GCC doesn't mean we suddenly get shared libraries
11888       # on systems that don't support them.
11889       lt_prog_compiler_can_build_shared=no
11890       enable_shared=no
11891       ;;
11892
11893     sysv4*MP*)
11894       if test -d /usr/nec; then
11895         lt_prog_compiler_pic=-Kconform_pic
11896       fi
11897       ;;
11898
11899     hpux*)
11900       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11901       # not for PA HP-UX.
11902       case "$host_cpu" in
11903       hppa*64*|ia64*)
11904         # +Z the default
11905         ;;
11906       *)
11907         lt_prog_compiler_pic='-fPIC'
11908         ;;
11909       esac
11910       ;;
11911
11912     *)
11913       lt_prog_compiler_pic='-fPIC'
11914       ;;
11915     esac
11916   else
11917     # PORTME Check for flag to pass linker flags through the system compiler.
11918     case $host_os in
11919     aix*)
11920       lt_prog_compiler_wl='-Wl,'
11921       if test "$host_cpu" = ia64; then
11922         # AIX 5 now supports IA64 processor
11923         lt_prog_compiler_static='-Bstatic'
11924       else
11925         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11926       fi
11927       ;;
11928       darwin*)
11929         # PIC is the default on this platform
11930         # Common symbols not allowed in MH_DYLIB files
11931        case "$cc_basename" in
11932          xlc*)
11933          lt_prog_compiler_pic='-qnocommon'
11934          lt_prog_compiler_wl='-Wl,'
11935          ;;
11936        esac
11937        ;;
11938
11939     mingw* | pw32* | os2*)
11940       # This hack is so that the source file can tell whether it is being
11941       # built for inclusion in a dll (and should export symbols for example).
11942       lt_prog_compiler_pic='-DDLL_EXPORT'
11943       ;;
11944
11945     hpux9* | hpux10* | hpux11*)
11946       lt_prog_compiler_wl='-Wl,'
11947       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11948       # not for PA HP-UX.
11949       case "$host_cpu" in
11950       hppa*64*|ia64*)
11951         # +Z the default
11952         ;;
11953       *)
11954         lt_prog_compiler_pic='+Z'
11955         ;;
11956       esac
11957       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11958       lt_prog_compiler_static='${wl}-a ${wl}archive'
11959       ;;
11960
11961     irix5* | irix6* | nonstopux*)
11962       lt_prog_compiler_wl='-Wl,'
11963       # PIC (with -KPIC) is the default.
11964       lt_prog_compiler_static='-non_shared'
11965       ;;
11966
11967     newsos6)
11968       lt_prog_compiler_pic='-KPIC'
11969       lt_prog_compiler_static='-Bstatic'
11970       ;;
11971
11972     linux*)
11973       case $CC in
11974       icc* | ecc*)
11975         lt_prog_compiler_wl='-Wl,'
11976         lt_prog_compiler_pic='-KPIC'
11977         lt_prog_compiler_static='-static'
11978         ;;
11979       ccc*)
11980         lt_prog_compiler_wl='-Wl,'
11981         # All Alpha code is PIC.
11982         lt_prog_compiler_static='-non_shared'
11983         ;;
11984       esac
11985       ;;
11986
11987     osf3* | osf4* | osf5*)
11988       lt_prog_compiler_wl='-Wl,'
11989       # All OSF/1 code is PIC.
11990       lt_prog_compiler_static='-non_shared'
11991       ;;
11992
11993     sco3.2v5*)
11994       lt_prog_compiler_pic='-Kpic'
11995       lt_prog_compiler_static='-dn'
11996       ;;
11997
11998     solaris*)
11999       lt_prog_compiler_wl='-Wl,'
12000       lt_prog_compiler_pic='-KPIC'
12001       lt_prog_compiler_static='-Bstatic'
12002       ;;
12003
12004     sunos4*)
12005       lt_prog_compiler_wl='-Qoption ld '
12006       lt_prog_compiler_pic='-PIC'
12007       lt_prog_compiler_static='-Bstatic'
12008       ;;
12009
12010     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12011       lt_prog_compiler_wl='-Wl,'
12012       lt_prog_compiler_pic='-KPIC'
12013       lt_prog_compiler_static='-Bstatic'
12014       ;;
12015
12016     sysv4*MP*)
12017       if test -d /usr/nec ;then
12018         lt_prog_compiler_pic='-Kconform_pic'
12019         lt_prog_compiler_static='-Bstatic'
12020       fi
12021       ;;
12022
12023     uts4*)
12024       lt_prog_compiler_pic='-pic'
12025       lt_prog_compiler_static='-Bstatic'
12026       ;;
12027
12028     *)
12029       lt_prog_compiler_can_build_shared=no
12030       ;;
12031     esac
12032   fi
12033
12034 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12035 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12036
12037 #
12038 # Check to make sure the PIC flag actually works.
12039 #
12040 if test -n "$lt_prog_compiler_pic"; then
12041
12042 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12043 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12044 if test "${lt_prog_compiler_pic_works+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   lt_prog_compiler_pic_works=no
12048   ac_outfile=conftest.$ac_objext
12049    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12050    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12051    # Insert the option either (1) after the last *FLAGS variable, or
12052    # (2) before a word containing "conftest.", or (3) at the end.
12053    # Note that $ac_compile itself does not contain backslashes and begins
12054    # with a dollar sign (not a hyphen), so the echo should work correctly.
12055    # The option is referenced via a variable to avoid confusing sed.
12056    lt_compile=`echo "$ac_compile" | $SED \
12057    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12058    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12059    -e 's:$: $lt_compiler_flag:'`
12060    (eval echo "\"\$as_me:12060: $lt_compile\"" >&5)
12061    (eval "$lt_compile" 2>conftest.err)
12062    ac_status=$?
12063    cat conftest.err >&5
12064    echo "$as_me:12064: \$? = $ac_status" >&5
12065    if (exit $ac_status) && test -s "$ac_outfile"; then
12066      # The compiler can only warn and ignore the option if not recognized
12067      # So say no if there are warnings
12068      if test ! -s conftest.err; then
12069        lt_prog_compiler_pic_works=yes
12070      fi
12071    fi
12072    $rm conftest*
12073
12074 fi
12075 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12076 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12077
12078 if test x"$lt_prog_compiler_pic_works" = xyes; then
12079     case $lt_prog_compiler_pic in
12080      "" | " "*) ;;
12081      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12082      esac
12083 else
12084     lt_prog_compiler_pic=
12085      lt_prog_compiler_can_build_shared=no
12086 fi
12087
12088 fi
12089 case "$host_os" in
12090   # For platforms which do not support PIC, -DPIC is meaningless:
12091   *djgpp*)
12092     lt_prog_compiler_pic=
12093     ;;
12094   *)
12095     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12096     ;;
12097 esac
12098
12099 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12101 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   lt_cv_prog_compiler_c_o=no
12105    $rm -r conftest 2>/dev/null
12106    mkdir conftest
12107    cd conftest
12108    mkdir out
12109    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12110
12111    lt_compiler_flag="-o out/conftest2.$ac_objext"
12112    # Insert the option either (1) after the last *FLAGS variable, or
12113    # (2) before a word containing "conftest.", or (3) at the end.
12114    # Note that $ac_compile itself does not contain backslashes and begins
12115    # with a dollar sign (not a hyphen), so the echo should work correctly.
12116    lt_compile=`echo "$ac_compile" | $SED \
12117    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12119    -e 's:$: $lt_compiler_flag:'`
12120    (eval echo "\"\$as_me:12120: $lt_compile\"" >&5)
12121    (eval "$lt_compile" 2>out/conftest.err)
12122    ac_status=$?
12123    cat out/conftest.err >&5
12124    echo "$as_me:12124: \$? = $ac_status" >&5
12125    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12126    then
12127      # The compiler can only warn and ignore the option if not recognized
12128      # So say no if there are warnings
12129      if test ! -s out/conftest.err; then
12130        lt_cv_prog_compiler_c_o=yes
12131      fi
12132    fi
12133    chmod u+w .
12134    $rm conftest*
12135    # SGI C++ compiler will create directory out/ii_files/ for
12136    # template instantiation
12137    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12138    $rm out/* && rmdir out
12139    cd ..
12140    rmdir conftest
12141    $rm conftest*
12142
12143 fi
12144 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12145 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12146
12147
12148 hard_links="nottested"
12149 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12150   # do not overwrite the value of need_locks provided by the user
12151   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12152 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12153   hard_links=yes
12154   $rm conftest*
12155   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12156   touch conftest.a
12157   ln conftest.a conftest.b 2>&5 || hard_links=no
12158   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12159   echo "$as_me:$LINENO: result: $hard_links" >&5
12160 echo "${ECHO_T}$hard_links" >&6
12161   if test "$hard_links" = no; then
12162     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12163 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12164     need_locks=warn
12165   fi
12166 else
12167   need_locks=no
12168 fi
12169
12170 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12171 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12172
12173   runpath_var=
12174   allow_undefined_flag=
12175   enable_shared_with_static_runtimes=no
12176   archive_cmds=
12177   archive_expsym_cmds=
12178   old_archive_From_new_cmds=
12179   old_archive_from_expsyms_cmds=
12180   export_dynamic_flag_spec=
12181   whole_archive_flag_spec=
12182   thread_safe_flag_spec=
12183   hardcode_libdir_flag_spec=
12184   hardcode_libdir_flag_spec_ld=
12185   hardcode_libdir_separator=
12186   hardcode_direct=no
12187   hardcode_minus_L=no
12188   hardcode_shlibpath_var=unsupported
12189   link_all_deplibs=unknown
12190   hardcode_automatic=no
12191   module_cmds=
12192   module_expsym_cmds=
12193   always_export_symbols=no
12194   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12195   # include_expsyms should be a list of space-separated symbols to be *always*
12196   # included in the symbol list
12197   include_expsyms=
12198   # exclude_expsyms can be an extended regexp of symbols to exclude
12199   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12200   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12201   # as well as any symbol that contains `d'.
12202   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12203   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12204   # platforms (ab)use it in PIC code, but their linkers get confused if
12205   # the symbol is explicitly referenced.  Since portable code cannot
12206   # rely on this symbol name, it's probably fine to never include it in
12207   # preloaded symbol tables.
12208   extract_expsyms_cmds=
12209
12210   case $host_os in
12211   cygwin* | mingw* | pw32*)
12212     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12213     # When not using gcc, we currently assume that we are using
12214     # Microsoft Visual C++.
12215     if test "$GCC" != yes; then
12216       with_gnu_ld=no
12217     fi
12218     ;;
12219   openbsd*)
12220     with_gnu_ld=no
12221     ;;
12222   esac
12223
12224   ld_shlibs=yes
12225   if test "$with_gnu_ld" = yes; then
12226     # If archive_cmds runs LD, not CC, wlarc should be empty
12227     wlarc='${wl}'
12228
12229     # See if GNU ld supports shared libraries.
12230     case $host_os in
12231     aix3* | aix4* | aix5*)
12232       # On AIX/PPC, the GNU linker is very broken
12233       if test "$host_cpu" != ia64; then
12234         ld_shlibs=no
12235         cat <<EOF 1>&2
12236
12237 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12238 *** to be unable to reliably create shared libraries on AIX.
12239 *** Therefore, libtool is disabling shared libraries support.  If you
12240 *** really care for shared libraries, you may want to modify your PATH
12241 *** so that a non-GNU linker is found, and then restart.
12242
12243 EOF
12244       fi
12245       ;;
12246
12247     amigaos*)
12248       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)'
12249       hardcode_libdir_flag_spec='-L$libdir'
12250       hardcode_minus_L=yes
12251
12252       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12253       # that the semantics of dynamic libraries on AmigaOS, at least up
12254       # to version 4, is to share data among multiple programs linked
12255       # with the same dynamic library.  Since this doesn't match the
12256       # behavior of shared libraries on other platforms, we can't use
12257       # them.
12258       ld_shlibs=no
12259       ;;
12260
12261     beos*)
12262       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12263         allow_undefined_flag=unsupported
12264         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12265         # support --undefined.  This deserves some investigation.  FIXME
12266         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267       else
12268         ld_shlibs=no
12269       fi
12270       ;;
12271
12272     cygwin* | mingw* | pw32*)
12273       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12274       # as there is no search path for DLLs.
12275       hardcode_libdir_flag_spec='-L$libdir'
12276       allow_undefined_flag=unsupported
12277       always_export_symbols=no
12278       enable_shared_with_static_runtimes=yes
12279       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12280
12281       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12282         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12283         # If the export-symbols file already is a .def file (1st line
12284         # is EXPORTS), use it as is; otherwise, prepend...
12285         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12286           cp $export_symbols $output_objdir/$soname.def;
12287         else
12288           echo EXPORTS > $output_objdir/$soname.def;
12289           cat $export_symbols >> $output_objdir/$soname.def;
12290         fi~
12291         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12292       else
12293         ld_shlibs=no
12294       fi
12295       ;;
12296
12297     netbsd*)
12298       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12299         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12300         wlarc=
12301       else
12302         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12304       fi
12305       ;;
12306
12307     solaris* | sysv5*)
12308       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12309         ld_shlibs=no
12310         cat <<EOF 1>&2
12311
12312 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12313 *** create shared libraries on Solaris systems.  Therefore, libtool
12314 *** is disabling shared libraries support.  We urge you to upgrade GNU
12315 *** binutils to release 2.9.1 or newer.  Another option is to modify
12316 *** your PATH or compiler configuration so that the native linker is
12317 *** used, and then restart.
12318
12319 EOF
12320       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12321         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12323       else
12324         ld_shlibs=no
12325       fi
12326       ;;
12327
12328     sunos4*)
12329       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12330       wlarc=
12331       hardcode_direct=yes
12332       hardcode_shlibpath_var=no
12333       ;;
12334
12335   linux*)
12336     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12337         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12338         archive_cmds="$tmp_archive_cmds"
12339       supports_anon_versioning=no
12340       case `$LD -v 2>/dev/null` in
12341         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12342         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12343         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12344         *\ 2.11.*) ;; # other 2.11 versions
12345         *) supports_anon_versioning=yes ;;
12346       esac
12347       if test $supports_anon_versioning = yes; then
12348         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350 $echo "local: *; };" >> $output_objdir/$libname.ver~
12351         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12352       else
12353         archive_expsym_cmds="$tmp_archive_cmds"
12354       fi
12355     else
12356       ld_shlibs=no
12357     fi
12358     ;;
12359
12360     *)
12361       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12362         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12364       else
12365         ld_shlibs=no
12366       fi
12367       ;;
12368     esac
12369
12370     if test "$ld_shlibs" = yes; then
12371       runpath_var=LD_RUN_PATH
12372       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12373       export_dynamic_flag_spec='${wl}--export-dynamic'
12374       # ancient GNU ld didn't support --whole-archive et. al.
12375       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12376         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12377       else
12378         whole_archive_flag_spec=
12379       fi
12380     fi
12381   else
12382     # PORTME fill in a description of your system's linker (not GNU ld)
12383     case $host_os in
12384     aix3*)
12385       allow_undefined_flag=unsupported
12386       always_export_symbols=yes
12387       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'
12388       # Note: this linker hardcodes the directories in LIBPATH if there
12389       # are no directories specified by -L.
12390       hardcode_minus_L=yes
12391       if test "$GCC" = yes && test -z "$link_static_flag"; then
12392         # Neither direct hardcoding nor static linking is supported with a
12393         # broken collect2.
12394         hardcode_direct=unsupported
12395       fi
12396       ;;
12397
12398     aix4* | aix5*)
12399       if test "$host_cpu" = ia64; then
12400         # On IA64, the linker does run time linking by default, so we don't
12401         # have to do anything special.
12402         aix_use_runtimelinking=no
12403         exp_sym_flag='-Bexport'
12404         no_entry_flag=""
12405       else
12406         # If we're using GNU nm, then we don't want the "-C" option.
12407         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12408         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12409           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'
12410         else
12411           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'
12412         fi
12413         aix_use_runtimelinking=no
12414
12415         # Test if we are trying to use run time linking or normal
12416         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12417         # need to do runtime linking.
12418         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12419           for ld_flag in $LDFLAGS; do
12420           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12421             aix_use_runtimelinking=yes
12422             break
12423           fi
12424           done
12425         esac
12426
12427         exp_sym_flag='-bexport'
12428         no_entry_flag='-bnoentry'
12429       fi
12430
12431       # When large executables or shared objects are built, AIX ld can
12432       # have problems creating the table of contents.  If linking a library
12433       # or program results in "error TOC overflow" add -mminimal-toc to
12434       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12435       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12436
12437       archive_cmds=''
12438       hardcode_direct=yes
12439       hardcode_libdir_separator=':'
12440       link_all_deplibs=yes
12441
12442       if test "$GCC" = yes; then
12443         case $host_os in aix4.012|aix4.012.*)
12444         # We only want to do this on AIX 4.2 and lower, the check
12445         # below for broken collect2 doesn't work under 4.3+
12446           collect2name=`${CC} -print-prog-name=collect2`
12447           if test -f "$collect2name" && \
12448            strings "$collect2name" | grep resolve_lib_name >/dev/null
12449           then
12450           # We have reworked collect2
12451           hardcode_direct=yes
12452           else
12453           # We have old collect2
12454           hardcode_direct=unsupported
12455           # It fails to find uninstalled libraries when the uninstalled
12456           # path is not listed in the libpath.  Setting hardcode_minus_L
12457           # to unsupported forces relinking
12458           hardcode_minus_L=yes
12459           hardcode_libdir_flag_spec='-L$libdir'
12460           hardcode_libdir_separator=
12461           fi
12462         esac
12463         shared_flag='-shared'
12464       else
12465         # not using gcc
12466         if test "$host_cpu" = ia64; then
12467         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12468         # chokes on -Wl,-G. The following line is correct:
12469           shared_flag='-G'
12470         else
12471         if test "$aix_use_runtimelinking" = yes; then
12472             shared_flag='${wl}-G'
12473           else
12474             shared_flag='${wl}-bM:SRE'
12475         fi
12476         fi
12477       fi
12478
12479       # It seems that -bexpall does not export symbols beginning with
12480       # underscore (_), so it is better to generate a list of symbols to export.
12481       always_export_symbols=yes
12482       if test "$aix_use_runtimelinking" = yes; then
12483         # Warning - without using the other runtime loading flags (-brtl),
12484         # -berok will link without error, but may produce a broken library.
12485         allow_undefined_flag='-berok'
12486        # Determine the default libpath from the value encoded in an empty executable.
12487        cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 int
12495 main ()
12496 {
12497
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504   (eval $ac_link) 2>conftest.er1
12505   ac_status=$?
12506   grep -v '^ *+' conftest.er1 >conftest.err
12507   rm -f conftest.er1
12508   cat conftest.err >&5
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -z "$ac_c_werror_flag"
12512                          || test ! -s conftest.err'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; } &&
12518          { ac_try='test -s conftest$ac_exeext'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524
12525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12526 }'`
12527 # Check for a 64-bit object if we didn't find anything.
12528 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; }
12529 }'`; fi
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 fi
12535 rm -f conftest.err conftest.$ac_objext \
12536       conftest$ac_exeext conftest.$ac_ext
12537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12538
12539        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12540         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"
12541        else
12542         if test "$host_cpu" = ia64; then
12543           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12544           allow_undefined_flag="-z nodefs"
12545           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"
12546         else
12547          # Determine the default libpath from the value encoded in an empty executable.
12548          cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h.  */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h.  */
12554
12555 int
12556 main ()
12557 {
12558
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565   (eval $ac_link) 2>conftest.er1
12566   ac_status=$?
12567   grep -v '^ *+' conftest.er1 >conftest.err
12568   rm -f conftest.er1
12569   cat conftest.err >&5
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } &&
12572          { ac_try='test -z "$ac_c_werror_flag"
12573                          || test ! -s conftest.err'
12574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575   (eval $ac_try) 2>&5
12576   ac_status=$?
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); }; } &&
12579          { ac_try='test -s conftest$ac_exeext'
12580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581   (eval $ac_try) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; }; then
12585
12586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12587 }'`
12588 # Check for a 64-bit object if we didn't find anything.
12589 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; }
12590 }'`; fi
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 fi
12596 rm -f conftest.err conftest.$ac_objext \
12597       conftest$ac_exeext conftest.$ac_ext
12598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12599
12600          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12601           # Warning - without using the other run time loading flags,
12602           # -berok will link without error, but may produce a broken library.
12603           no_undefined_flag=' ${wl}-bernotok'
12604           allow_undefined_flag=' ${wl}-berok'
12605           # -bexpall does not export symbols beginning with underscore (_)
12606           always_export_symbols=yes
12607           # Exported symbols can be pulled into shared objects from archives
12608           whole_archive_flag_spec=' '
12609           archive_cmds_need_lc=yes
12610           # This is similar to how AIX traditionally builds it's shared libraries.
12611           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'
12612         fi
12613       fi
12614       ;;
12615
12616     amigaos*)
12617       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)'
12618       hardcode_libdir_flag_spec='-L$libdir'
12619       hardcode_minus_L=yes
12620       # see comment about different semantics on the GNU ld section
12621       ld_shlibs=no
12622       ;;
12623
12624     bsdi[45]*)
12625       export_dynamic_flag_spec=-rdynamic
12626       ;;
12627
12628     cygwin* | mingw* | pw32*)
12629       # When not using gcc, we currently assume that we are using
12630       # Microsoft Visual C++.
12631       # hardcode_libdir_flag_spec is actually meaningless, as there is
12632       # no search path for DLLs.
12633       hardcode_libdir_flag_spec=' '
12634       allow_undefined_flag=unsupported
12635       # Tell ltmain to make .lib files, not .a files.
12636       libext=lib
12637       # Tell ltmain to make .dll files, not .so files.
12638       shrext_cmds=".dll"
12639       # FIXME: Setting linknames here is a bad hack.
12640       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12641       # The linker will automatically build a .lib file if we build a DLL.
12642       old_archive_From_new_cmds='true'
12643       # FIXME: Should let the user specify the lib program.
12644       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12645       fix_srcfile_path='`cygpath -w "$srcfile"`'
12646       enable_shared_with_static_runtimes=yes
12647       ;;
12648
12649     darwin* | rhapsody*)
12650       case "$host_os" in
12651         rhapsody* | darwin1.[012])
12652          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12653          ;;
12654        *) # Darwin 1.3 on
12655          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12656            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12657          else
12658            case ${MACOSX_DEPLOYMENT_TARGET} in
12659              10.[012])
12660                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12661                ;;
12662              10.*)
12663                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12664                ;;
12665            esac
12666          fi
12667          ;;
12668       esac
12669       archive_cmds_need_lc=no
12670       hardcode_direct=no
12671       hardcode_automatic=yes
12672       hardcode_shlibpath_var=unsupported
12673       whole_archive_flag_spec=''
12674       link_all_deplibs=yes
12675     if test "$GCC" = yes ; then
12676         output_verbose_link_cmd='echo'
12677         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12678       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12679       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12680       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}'
12681       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}'
12682     else
12683       case "$cc_basename" in
12684         xlc*)
12685          output_verbose_link_cmd='echo'
12686          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12687          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12688           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12689          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}'
12690           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}'
12691           ;;
12692        *)
12693          ld_shlibs=no
12694           ;;
12695       esac
12696     fi
12697       ;;
12698
12699     dgux*)
12700       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12701       hardcode_libdir_flag_spec='-L$libdir'
12702       hardcode_shlibpath_var=no
12703       ;;
12704
12705     freebsd1*)
12706       ld_shlibs=no
12707       ;;
12708
12709     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12710     # support.  Future versions do this automatically, but an explicit c++rt0.o
12711     # does not break anything, and helps significantly (at the cost of a little
12712     # extra space).
12713     freebsd2.2*)
12714       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12715       hardcode_libdir_flag_spec='-R$libdir'
12716       hardcode_direct=yes
12717       hardcode_shlibpath_var=no
12718       ;;
12719
12720     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12721     freebsd2*)
12722       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12723       hardcode_direct=yes
12724       hardcode_minus_L=yes
12725       hardcode_shlibpath_var=no
12726       ;;
12727
12728     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12729     freebsd* | kfreebsd*-gnu)
12730       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12731       hardcode_libdir_flag_spec='-R$libdir'
12732       hardcode_direct=yes
12733       hardcode_shlibpath_var=no
12734       ;;
12735
12736     hpux9*)
12737       if test "$GCC" = yes; then
12738         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'
12739       else
12740         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'
12741       fi
12742       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12743       hardcode_libdir_separator=:
12744       hardcode_direct=yes
12745
12746       # hardcode_minus_L: Not really in the search PATH,
12747       # but as the default location of the library.
12748       hardcode_minus_L=yes
12749       export_dynamic_flag_spec='${wl}-E'
12750       ;;
12751
12752     hpux10* | hpux11*)
12753       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12754         case "$host_cpu" in
12755         hppa*64*|ia64*)
12756           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12757           ;;
12758         *)
12759           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12760           ;;
12761         esac
12762       else
12763         case "$host_cpu" in
12764         hppa*64*|ia64*)
12765           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12766           ;;
12767         *)
12768           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12769           ;;
12770         esac
12771       fi
12772       if test "$with_gnu_ld" = no; then
12773         case "$host_cpu" in
12774         hppa*64*)
12775           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12776           hardcode_libdir_flag_spec_ld='+b $libdir'
12777           hardcode_libdir_separator=:
12778           hardcode_direct=no
12779           hardcode_shlibpath_var=no
12780           ;;
12781         ia64*)
12782           hardcode_libdir_flag_spec='-L$libdir'
12783           hardcode_direct=no
12784           hardcode_shlibpath_var=no
12785
12786           # hardcode_minus_L: Not really in the search PATH,
12787           # but as the default location of the library.
12788           hardcode_minus_L=yes
12789           ;;
12790         *)
12791           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12792           hardcode_libdir_separator=:
12793           hardcode_direct=yes
12794           export_dynamic_flag_spec='${wl}-E'
12795
12796           # hardcode_minus_L: Not really in the search PATH,
12797           # but as the default location of the library.
12798           hardcode_minus_L=yes
12799           ;;
12800         esac
12801       fi
12802       ;;
12803
12804     irix5* | irix6* | nonstopux*)
12805       if test "$GCC" = yes; then
12806         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'
12807       else
12808         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'
12809         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12810       fi
12811       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12812       hardcode_libdir_separator=:
12813       link_all_deplibs=yes
12814       ;;
12815
12816     netbsd*)
12817       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12818         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12819       else
12820         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12821       fi
12822       hardcode_libdir_flag_spec='-R$libdir'
12823       hardcode_direct=yes
12824       hardcode_shlibpath_var=no
12825       ;;
12826
12827     newsos6)
12828       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12829       hardcode_direct=yes
12830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12831       hardcode_libdir_separator=:
12832       hardcode_shlibpath_var=no
12833       ;;
12834
12835     openbsd*)
12836       hardcode_direct=yes
12837       hardcode_shlibpath_var=no
12838       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12839         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12840         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12841         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12842         export_dynamic_flag_spec='${wl}-E'
12843       else
12844        case $host_os in
12845          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12846            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12847            hardcode_libdir_flag_spec='-R$libdir'
12848            ;;
12849          *)
12850            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12851            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12852            ;;
12853        esac
12854       fi
12855       ;;
12856
12857     os2*)
12858       hardcode_libdir_flag_spec='-L$libdir'
12859       hardcode_minus_L=yes
12860       allow_undefined_flag=unsupported
12861       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'
12862       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12863       ;;
12864
12865     osf3*)
12866       if test "$GCC" = yes; then
12867         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12868         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'
12869       else
12870         allow_undefined_flag=' -expect_unresolved \*'
12871         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'
12872       fi
12873       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874       hardcode_libdir_separator=:
12875       ;;
12876
12877     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12878       if test "$GCC" = yes; then
12879         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12880         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'
12881         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12882       else
12883         allow_undefined_flag=' -expect_unresolved \*'
12884         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'
12885         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12886         $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'
12887
12888         # Both c and cxx compiler support -rpath directly
12889         hardcode_libdir_flag_spec='-rpath $libdir'
12890       fi
12891       hardcode_libdir_separator=:
12892       ;;
12893
12894     sco3.2v5*)
12895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896       hardcode_shlibpath_var=no
12897       export_dynamic_flag_spec='${wl}-Bexport'
12898       runpath_var=LD_RUN_PATH
12899       hardcode_runpath_var=yes
12900       ;;
12901
12902     solaris*)
12903       no_undefined_flag=' -z text'
12904       if test "$GCC" = yes; then
12905         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12906         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12908       else
12909         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12910         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12911         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12912       fi
12913       hardcode_libdir_flag_spec='-R$libdir'
12914       hardcode_shlibpath_var=no
12915       case $host_os in
12916       solaris2.[0-5] | solaris2.[0-5].*) ;;
12917       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12918         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12919       esac
12920       link_all_deplibs=yes
12921       ;;
12922
12923     sunos4*)
12924       if test "x$host_vendor" = xsequent; then
12925         # Use $CC to link under sequent, because it throws in some extra .o
12926         # files that make .init and .fini sections work.
12927         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12928       else
12929         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12930       fi
12931       hardcode_libdir_flag_spec='-L$libdir'
12932       hardcode_direct=yes
12933       hardcode_minus_L=yes
12934       hardcode_shlibpath_var=no
12935       ;;
12936
12937     sysv4)
12938       case $host_vendor in
12939         sni)
12940           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941           hardcode_direct=yes # is this really true???
12942         ;;
12943         siemens)
12944           ## LD is ld it makes a PLAMLIB
12945           ## CC just makes a GrossModule.
12946           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12947           reload_cmds='$CC -r -o $output$reload_objs'
12948           hardcode_direct=no
12949         ;;
12950         motorola)
12951           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12952           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12953         ;;
12954       esac
12955       runpath_var='LD_RUN_PATH'
12956       hardcode_shlibpath_var=no
12957       ;;
12958
12959     sysv4.3*)
12960       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12961       hardcode_shlibpath_var=no
12962       export_dynamic_flag_spec='-Bexport'
12963       ;;
12964
12965     sysv4*MP*)
12966       if test -d /usr/nec; then
12967         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12968         hardcode_shlibpath_var=no
12969         runpath_var=LD_RUN_PATH
12970         hardcode_runpath_var=yes
12971         ld_shlibs=yes
12972       fi
12973       ;;
12974
12975     sysv4.2uw2*)
12976       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12977       hardcode_direct=yes
12978       hardcode_minus_L=no
12979       hardcode_shlibpath_var=no
12980       hardcode_runpath_var=yes
12981       runpath_var=LD_RUN_PATH
12982       ;;
12983
12984    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12985       no_undefined_flag='${wl}-z ${wl}text'
12986       if test "$GCC" = yes; then
12987         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12988       else
12989         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990       fi
12991       runpath_var='LD_RUN_PATH'
12992       hardcode_shlibpath_var=no
12993       ;;
12994
12995     sysv5*)
12996       no_undefined_flag=' -z text'
12997       # $CC -shared without GNU ld will not create a library from C++
12998       # object files and a static libstdc++, better avoid it by now
12999       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13000       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13001                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13002       hardcode_libdir_flag_spec=
13003       hardcode_shlibpath_var=no
13004       runpath_var='LD_RUN_PATH'
13005       ;;
13006
13007     uts4*)
13008       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13009       hardcode_libdir_flag_spec='-L$libdir'
13010       hardcode_shlibpath_var=no
13011       ;;
13012
13013     *)
13014       ld_shlibs=no
13015       ;;
13016     esac
13017   fi
13018
13019 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13020 echo "${ECHO_T}$ld_shlibs" >&6
13021 test "$ld_shlibs" = no && can_build_shared=no
13022
13023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13024 if test "$GCC" = yes; then
13025   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13026 fi
13027
13028 #
13029 # Do we need to explicitly link libc?
13030 #
13031 case "x$archive_cmds_need_lc" in
13032 x|xyes)
13033   # Assume -lc should be added
13034   archive_cmds_need_lc=yes
13035
13036   if test "$enable_shared" = yes && test "$GCC" = yes; then
13037     case $archive_cmds in
13038     *'~'*)
13039       # FIXME: we may have to deal with multi-command sequences.
13040       ;;
13041     '$CC '*)
13042       # Test whether the compiler implicitly links with -lc since on some
13043       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13044       # to ld, don't add -lc before -lgcc.
13045       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13046 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13047       $rm conftest*
13048       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13049
13050       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051   (eval $ac_compile) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } 2>conftest.err; then
13055         soname=conftest
13056         lib=conftest
13057         libobjs=conftest.$ac_objext
13058         deplibs=
13059         wl=$lt_prog_compiler_wl
13060         compiler_flags=-v
13061         linker_flags=-v
13062         verstring=
13063         output_objdir=.
13064         libname=conftest
13065         lt_save_allow_undefined_flag=$allow_undefined_flag
13066         allow_undefined_flag=
13067         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13068   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }
13072         then
13073           archive_cmds_need_lc=no
13074         else
13075           archive_cmds_need_lc=yes
13076         fi
13077         allow_undefined_flag=$lt_save_allow_undefined_flag
13078       else
13079         cat conftest.err 1>&5
13080       fi
13081       $rm conftest*
13082       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13083 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13084       ;;
13085     esac
13086   fi
13087   ;;
13088 esac
13089
13090 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13091 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13092 library_names_spec=
13093 libname_spec='lib$name'
13094 soname_spec=
13095 shrext_cmds=".so"
13096 postinstall_cmds=
13097 postuninstall_cmds=
13098 finish_cmds=
13099 finish_eval=
13100 shlibpath_var=
13101 shlibpath_overrides_runpath=unknown
13102 version_type=none
13103 dynamic_linker="$host_os ld.so"
13104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13105 if test "$GCC" = yes; then
13106   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13107   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13108     # if the path contains ";" then we assume it to be the separator
13109     # otherwise default to the standard path separator (i.e. ":") - it is
13110     # assumed that no part of a normal pathname contains ";" but that should
13111     # okay in the real world where ";" in dirpaths is itself problematic.
13112     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13113   else
13114     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13115   fi
13116 else
13117   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13118 fi
13119 need_lib_prefix=unknown
13120 hardcode_into_libs=no
13121
13122 # when you set need_version to no, make sure it does not cause -set_version
13123 # flags to be left without arguments
13124 need_version=unknown
13125
13126 case $host_os in
13127 aix3*)
13128   version_type=linux
13129   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13130   shlibpath_var=LIBPATH
13131
13132   # AIX 3 has no versioning support, so we append a major version to the name.
13133   soname_spec='${libname}${release}${shared_ext}$major'
13134   ;;
13135
13136 aix4* | aix5*)
13137   version_type=linux
13138   need_lib_prefix=no
13139   need_version=no
13140   hardcode_into_libs=yes
13141   if test "$host_cpu" = ia64; then
13142     # AIX 5 supports IA64
13143     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13144     shlibpath_var=LD_LIBRARY_PATH
13145   else
13146     # With GCC up to 2.95.x, collect2 would create an import file
13147     # for dependence libraries.  The import file would start with
13148     # the line `#! .'.  This would cause the generated library to
13149     # depend on `.', always an invalid library.  This was fixed in
13150     # development snapshots of GCC prior to 3.0.
13151     case $host_os in
13152       aix4 | aix4.[01] | aix4.[01].*)
13153       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13154            echo ' yes '
13155            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13156         :
13157       else
13158         can_build_shared=no
13159       fi
13160       ;;
13161     esac
13162     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13163     # soname into executable. Probably we can add versioning support to
13164     # collect2, so additional links can be useful in future.
13165     if test "$aix_use_runtimelinking" = yes; then
13166       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13167       # instead of lib<name>.a to let people know that these are not
13168       # typical AIX shared libraries.
13169       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13170     else
13171       # We preserve .a as extension for shared libraries through AIX4.2
13172       # and later when we are not doing run time linking.
13173       library_names_spec='${libname}${release}.a $libname.a'
13174       soname_spec='${libname}${release}${shared_ext}$major'
13175     fi
13176     shlibpath_var=LIBPATH
13177   fi
13178   ;;
13179
13180 amigaos*)
13181   library_names_spec='$libname.ixlibrary $libname.a'
13182   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13183   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'
13184   ;;
13185
13186 beos*)
13187   library_names_spec='${libname}${shared_ext}'
13188   dynamic_linker="$host_os ld.so"
13189   shlibpath_var=LIBRARY_PATH
13190   ;;
13191
13192 bsdi[45]*)
13193   version_type=linux
13194   need_version=no
13195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196   soname_spec='${libname}${release}${shared_ext}$major'
13197   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13198   shlibpath_var=LD_LIBRARY_PATH
13199   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13200   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13201   # the default ld.so.conf also contains /usr/contrib/lib and
13202   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13203   # libtool to hard-code these into programs
13204   ;;
13205
13206 cygwin* | mingw* | pw32*)
13207   version_type=windows
13208   shrext_cmds=".dll"
13209   need_version=no
13210   need_lib_prefix=no
13211
13212   case $GCC,$host_os in
13213   yes,cygwin* | yes,mingw* | yes,pw32*)
13214     library_names_spec='$libname.dll.a'
13215     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13216     postinstall_cmds='base_file=`basename \${file}`~
13217       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13218       dldir=$destdir/`dirname \$dlpath`~
13219       test -d \$dldir || mkdir -p \$dldir~
13220       $install_prog $dir/$dlname \$dldir/$dlname'
13221     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13222       dlpath=$dir/\$dldll~
13223        $rm \$dlpath'
13224     shlibpath_overrides_runpath=yes
13225
13226     case $host_os in
13227     cygwin*)
13228       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13229       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13230       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13231       ;;
13232     mingw*)
13233       # MinGW DLLs use traditional 'lib' prefix
13234       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13235       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13236       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13237         # It is most probably a Windows format PATH printed by
13238         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13239         # path with ; separators, and with drive letters. We can handle the
13240         # drive letters (cygwin fileutils understands them), so leave them,
13241         # especially as we might pass files found there to a mingw objdump,
13242         # which wouldn't understand a cygwinified path. Ahh.
13243         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13244       else
13245         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13246       fi
13247       ;;
13248     pw32*)
13249       # pw32 DLLs use 'pw' prefix rather than 'lib'
13250       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13251       ;;
13252     esac
13253     ;;
13254
13255   *)
13256     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13257     ;;
13258   esac
13259   dynamic_linker='Win32 ld.exe'
13260   # FIXME: first we should search . and the directory the executable is in
13261   shlibpath_var=PATH
13262   ;;
13263
13264 darwin* | rhapsody*)
13265   dynamic_linker="$host_os dyld"
13266   version_type=darwin
13267   need_lib_prefix=no
13268   need_version=no
13269   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13270   soname_spec='${libname}${release}${major}$shared_ext'
13271   shlibpath_overrides_runpath=yes
13272   shlibpath_var=DYLD_LIBRARY_PATH
13273   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13274   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13275   if test "$GCC" = yes; then
13276     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"`
13277   else
13278     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13279   fi
13280   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13281   ;;
13282
13283 dgux*)
13284   version_type=linux
13285   need_lib_prefix=no
13286   need_version=no
13287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13288   soname_spec='${libname}${release}${shared_ext}$major'
13289   shlibpath_var=LD_LIBRARY_PATH
13290   ;;
13291
13292 freebsd1*)
13293   dynamic_linker=no
13294   ;;
13295
13296 kfreebsd*-gnu)
13297   version_type=linux
13298   need_lib_prefix=no
13299   need_version=no
13300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13301   soname_spec='${libname}${release}${shared_ext}$major'
13302   shlibpath_var=LD_LIBRARY_PATH
13303   shlibpath_overrides_runpath=no
13304   hardcode_into_libs=yes
13305   dynamic_linker='GNU ld.so'
13306   ;;
13307
13308 freebsd*)
13309   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13310   version_type=freebsd-$objformat
13311   case $version_type in
13312     freebsd-elf*)
13313       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13314       need_version=no
13315       need_lib_prefix=no
13316       ;;
13317     freebsd-*)
13318       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13319       need_version=yes
13320       ;;
13321   esac
13322   shlibpath_var=LD_LIBRARY_PATH
13323   case $host_os in
13324   freebsd2*)
13325     shlibpath_overrides_runpath=yes
13326     ;;
13327   freebsd3.01* | freebsdelf3.01*)
13328     shlibpath_overrides_runpath=yes
13329     hardcode_into_libs=yes
13330     ;;
13331   *) # from 3.2 on
13332     shlibpath_overrides_runpath=no
13333     hardcode_into_libs=yes
13334     ;;
13335   esac
13336   ;;
13337
13338 gnu*)
13339   version_type=linux
13340   need_lib_prefix=no
13341   need_version=no
13342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13343   soname_spec='${libname}${release}${shared_ext}$major'
13344   shlibpath_var=LD_LIBRARY_PATH
13345   hardcode_into_libs=yes
13346   ;;
13347
13348 hpux9* | hpux10* | hpux11*)
13349   # Give a soname corresponding to the major version so that dld.sl refuses to
13350   # link against other versions.
13351   version_type=sunos
13352   need_lib_prefix=no
13353   need_version=no
13354   case "$host_cpu" in
13355   ia64*)
13356     shrext_cmds='.so'
13357     hardcode_into_libs=yes
13358     dynamic_linker="$host_os dld.so"
13359     shlibpath_var=LD_LIBRARY_PATH
13360     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362     soname_spec='${libname}${release}${shared_ext}$major'
13363     if test "X$HPUX_IA64_MODE" = X32; then
13364       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13365     else
13366       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13367     fi
13368     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13369     ;;
13370    hppa*64*)
13371      shrext_cmds='.sl'
13372      hardcode_into_libs=yes
13373      dynamic_linker="$host_os dld.sl"
13374      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13375      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13376      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377      soname_spec='${libname}${release}${shared_ext}$major'
13378      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13379      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13380      ;;
13381    *)
13382     shrext_cmds='.sl'
13383     dynamic_linker="$host_os dld.sl"
13384     shlibpath_var=SHLIB_PATH
13385     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387     soname_spec='${libname}${release}${shared_ext}$major'
13388     ;;
13389   esac
13390   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13391   postinstall_cmds='chmod 555 $lib'
13392   ;;
13393
13394 irix5* | irix6* | nonstopux*)
13395   case $host_os in
13396     nonstopux*) version_type=nonstopux ;;
13397     *)
13398         if test "$lt_cv_prog_gnu_ld" = yes; then
13399                 version_type=linux
13400         else
13401                 version_type=irix
13402         fi ;;
13403   esac
13404   need_lib_prefix=no
13405   need_version=no
13406   soname_spec='${libname}${release}${shared_ext}$major'
13407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13408   case $host_os in
13409   irix5* | nonstopux*)
13410     libsuff= shlibsuff=
13411     ;;
13412   *)
13413     case $LD in # libtool.m4 will add one of these switches to LD
13414     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13415       libsuff= shlibsuff= libmagic=32-bit;;
13416     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13417       libsuff=32 shlibsuff=N32 libmagic=N32;;
13418     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13419       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13420     *) libsuff= shlibsuff= libmagic=never-match;;
13421     esac
13422     ;;
13423   esac
13424   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13425   shlibpath_overrides_runpath=no
13426   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13427   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13428   hardcode_into_libs=yes
13429   ;;
13430
13431 # No shared lib support for Linux oldld, aout, or coff.
13432 linux*oldld* | linux*aout* | linux*coff*)
13433   dynamic_linker=no
13434   ;;
13435
13436 # This must be Linux ELF.
13437 linux*)
13438   version_type=linux
13439   need_lib_prefix=no
13440   need_version=no
13441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442   soname_spec='${libname}${release}${shared_ext}$major'
13443   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13444   shlibpath_var=LD_LIBRARY_PATH
13445   shlibpath_overrides_runpath=no
13446   # This implies no fast_install, which is unacceptable.
13447   # Some rework will be needed to allow for fast_install
13448   # before this can be enabled.
13449   hardcode_into_libs=yes
13450
13451   # Append ld.so.conf contents to the search path
13452   if test -f /etc/ld.so.conf; then
13453     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13454     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13455   fi
13456
13457   # We used to test for /lib/ld.so.1 and disable shared libraries on
13458   # powerpc, because MkLinux only supported shared libraries with the
13459   # GNU dynamic linker.  Since this was broken with cross compilers,
13460   # most powerpc-linux boxes support dynamic linking these days and
13461   # people can always --disable-shared, the test was removed, and we
13462   # assume the GNU/Linux dynamic linker is in use.
13463   dynamic_linker='GNU/Linux ld.so'
13464   ;;
13465
13466 knetbsd*-gnu)
13467   version_type=linux
13468   need_lib_prefix=no
13469   need_version=no
13470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13471   soname_spec='${libname}${release}${shared_ext}$major'
13472   shlibpath_var=LD_LIBRARY_PATH
13473   shlibpath_overrides_runpath=no
13474   hardcode_into_libs=yes
13475   dynamic_linker='GNU ld.so'
13476   ;;
13477
13478 netbsd*)
13479   version_type=sunos
13480   need_lib_prefix=no
13481   need_version=no
13482   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13484     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13485     dynamic_linker='NetBSD (a.out) ld.so'
13486   else
13487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488     soname_spec='${libname}${release}${shared_ext}$major'
13489     dynamic_linker='NetBSD ld.elf_so'
13490   fi
13491   shlibpath_var=LD_LIBRARY_PATH
13492   shlibpath_overrides_runpath=yes
13493   hardcode_into_libs=yes
13494   ;;
13495
13496 newsos6)
13497   version_type=linux
13498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499   shlibpath_var=LD_LIBRARY_PATH
13500   shlibpath_overrides_runpath=yes
13501   ;;
13502
13503 nto-qnx*)
13504   version_type=linux
13505   need_lib_prefix=no
13506   need_version=no
13507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508   soname_spec='${libname}${release}${shared_ext}$major'
13509   shlibpath_var=LD_LIBRARY_PATH
13510   shlibpath_overrides_runpath=yes
13511   ;;
13512
13513 openbsd*)
13514   version_type=sunos
13515   need_lib_prefix=no
13516   need_version=no
13517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13518   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13519   shlibpath_var=LD_LIBRARY_PATH
13520   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13521     case $host_os in
13522       openbsd2.[89] | openbsd2.[89].*)
13523         shlibpath_overrides_runpath=no
13524         ;;
13525       *)
13526         shlibpath_overrides_runpath=yes
13527         ;;
13528       esac
13529   else
13530     shlibpath_overrides_runpath=yes
13531   fi
13532   ;;
13533
13534 os2*)
13535   libname_spec='$name'
13536   shrext_cmds=".dll"
13537   need_lib_prefix=no
13538   library_names_spec='$libname${shared_ext} $libname.a'
13539   dynamic_linker='OS/2 ld.exe'
13540   shlibpath_var=LIBPATH
13541   ;;
13542
13543 osf3* | osf4* | osf5*)
13544   version_type=osf
13545   need_lib_prefix=no
13546   need_version=no
13547   soname_spec='${libname}${release}${shared_ext}$major'
13548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549   shlibpath_var=LD_LIBRARY_PATH
13550   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13551   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13552   ;;
13553
13554 sco3.2v5*)
13555   version_type=osf
13556   soname_spec='${libname}${release}${shared_ext}$major'
13557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558   shlibpath_var=LD_LIBRARY_PATH
13559   ;;
13560
13561 solaris*)
13562   version_type=linux
13563   need_lib_prefix=no
13564   need_version=no
13565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13566   soname_spec='${libname}${release}${shared_ext}$major'
13567   shlibpath_var=LD_LIBRARY_PATH
13568   shlibpath_overrides_runpath=yes
13569   hardcode_into_libs=yes
13570   # ldd complains unless libraries are executable
13571   postinstall_cmds='chmod +x $lib'
13572   ;;
13573
13574 sunos4*)
13575   version_type=sunos
13576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13577   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13578   shlibpath_var=LD_LIBRARY_PATH
13579   shlibpath_overrides_runpath=yes
13580   if test "$with_gnu_ld" = yes; then
13581     need_lib_prefix=no
13582   fi
13583   need_version=yes
13584   ;;
13585
13586 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13587   version_type=linux
13588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589   soname_spec='${libname}${release}${shared_ext}$major'
13590   shlibpath_var=LD_LIBRARY_PATH
13591   case $host_vendor in
13592     sni)
13593       shlibpath_overrides_runpath=no
13594       need_lib_prefix=no
13595       export_dynamic_flag_spec='${wl}-Blargedynsym'
13596       runpath_var=LD_RUN_PATH
13597       ;;
13598     siemens)
13599       need_lib_prefix=no
13600       ;;
13601     motorola)
13602       need_lib_prefix=no
13603       need_version=no
13604       shlibpath_overrides_runpath=no
13605       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13606       ;;
13607   esac
13608   ;;
13609
13610 sysv4*MP*)
13611   if test -d /usr/nec ;then
13612     version_type=linux
13613     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13614     soname_spec='$libname${shared_ext}.$major'
13615     shlibpath_var=LD_LIBRARY_PATH
13616   fi
13617   ;;
13618
13619 uts4*)
13620   version_type=linux
13621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13622   soname_spec='${libname}${release}${shared_ext}$major'
13623   shlibpath_var=LD_LIBRARY_PATH
13624   ;;
13625
13626 *)
13627   dynamic_linker=no
13628   ;;
13629 esac
13630 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13631 echo "${ECHO_T}$dynamic_linker" >&6
13632 test "$dynamic_linker" = no && can_build_shared=no
13633
13634 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13635 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13636 hardcode_action=
13637 if test -n "$hardcode_libdir_flag_spec" || \
13638    test -n "$runpath_var" || \
13639    test "X$hardcode_automatic" = "Xyes" ; then
13640
13641   # We can hardcode non-existant directories.
13642   if test "$hardcode_direct" != no &&
13643      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13644      # have to relink, otherwise we might link with an installed library
13645      # when we should be linking with a yet-to-be-installed one
13646      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13647      test "$hardcode_minus_L" != no; then
13648     # Linking always hardcodes the temporary library directory.
13649     hardcode_action=relink
13650   else
13651     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13652     hardcode_action=immediate
13653   fi
13654 else
13655   # We cannot hardcode anything, or else we can only hardcode existing
13656   # directories.
13657   hardcode_action=unsupported
13658 fi
13659 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13660 echo "${ECHO_T}$hardcode_action" >&6
13661
13662 if test "$hardcode_action" = relink; then
13663   # Fast installation is not supported
13664   enable_fast_install=no
13665 elif test "$shlibpath_overrides_runpath" = yes ||
13666      test "$enable_shared" = no; then
13667   # Fast installation is not necessary
13668   enable_fast_install=needless
13669 fi
13670
13671 striplib=
13672 old_striplib=
13673 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13674 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13675 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13676   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13677   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13678   echo "$as_me:$LINENO: result: yes" >&5
13679 echo "${ECHO_T}yes" >&6
13680 else
13681 # FIXME - insert some real tests, host_os isn't really good enough
13682   case $host_os in
13683    darwin*)
13684        if test -n "$STRIP" ; then
13685          striplib="$STRIP -x"
13686          echo "$as_me:$LINENO: result: yes" >&5
13687 echo "${ECHO_T}yes" >&6
13688        else
13689   echo "$as_me:$LINENO: result: no" >&5
13690 echo "${ECHO_T}no" >&6
13691 fi
13692        ;;
13693    *)
13694   echo "$as_me:$LINENO: result: no" >&5
13695 echo "${ECHO_T}no" >&6
13696     ;;
13697   esac
13698 fi
13699
13700 if test "x$enable_dlopen" != xyes; then
13701   enable_dlopen=unknown
13702   enable_dlopen_self=unknown
13703   enable_dlopen_self_static=unknown
13704 else
13705   lt_cv_dlopen=no
13706   lt_cv_dlopen_libs=
13707
13708   case $host_os in
13709   beos*)
13710     lt_cv_dlopen="load_add_on"
13711     lt_cv_dlopen_libs=
13712     lt_cv_dlopen_self=yes
13713     ;;
13714
13715   mingw* | pw32*)
13716     lt_cv_dlopen="LoadLibrary"
13717     lt_cv_dlopen_libs=
13718    ;;
13719
13720   cygwin*)
13721     lt_cv_dlopen="dlopen"
13722     lt_cv_dlopen_libs=
13723    ;;
13724
13725   darwin*)
13726   # if libdl is installed we need to link against it
13727     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13728 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13729 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13730   echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732   ac_check_lib_save_LIBS=$LIBS
13733 LIBS="-ldl  $LIBS"
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h.  */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h.  */
13740
13741 /* Override any gcc2 internal prototype to avoid an error.  */
13742 #ifdef __cplusplus
13743 extern "C"
13744 #endif
13745 /* We use char because int might match the return type of a gcc2
13746    builtin and then its argument prototype would still apply.  */
13747 char dlopen ();
13748 int
13749 main ()
13750 {
13751 dlopen ();
13752   ;
13753   return 0;
13754 }
13755 _ACEOF
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13758   (eval $ac_link) 2>conftest.er1
13759   ac_status=$?
13760   grep -v '^ *+' conftest.er1 >conftest.err
13761   rm -f conftest.er1
13762   cat conftest.err >&5
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } &&
13765          { ac_try='test -z "$ac_c_werror_flag"
13766                          || test ! -s conftest.err'
13767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768   (eval $ac_try) 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }; } &&
13772          { ac_try='test -s conftest$ac_exeext'
13773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774   (eval $ac_try) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; }; then
13778   ac_cv_lib_dl_dlopen=yes
13779 else
13780   echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 ac_cv_lib_dl_dlopen=no
13784 fi
13785 rm -f conftest.err conftest.$ac_objext \
13786       conftest$ac_exeext conftest.$ac_ext
13787 LIBS=$ac_check_lib_save_LIBS
13788 fi
13789 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13791 if test $ac_cv_lib_dl_dlopen = yes; then
13792   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13793 else
13794
13795     lt_cv_dlopen="dyld"
13796     lt_cv_dlopen_libs=
13797     lt_cv_dlopen_self=yes
13798
13799 fi
13800
13801    ;;
13802
13803   *)
13804     echo "$as_me:$LINENO: checking for shl_load" >&5
13805 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13806 if test "${ac_cv_func_shl_load+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13817 #define shl_load innocuous_shl_load
13818
13819 /* System header to define __stub macros and hopefully few prototypes,
13820     which can conflict with char shl_load (); below.
13821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13822     <limits.h> exists even on freestanding compilers.  */
13823
13824 #ifdef __STDC__
13825 # include <limits.h>
13826 #else
13827 # include <assert.h>
13828 #endif
13829
13830 #undef shl_load
13831
13832 /* Override any gcc2 internal prototype to avoid an error.  */
13833 #ifdef __cplusplus
13834 extern "C"
13835 {
13836 #endif
13837 /* We use char because int might match the return type of a gcc2
13838    builtin and then its argument prototype would still apply.  */
13839 char shl_load ();
13840 /* The GNU C library defines this for functions which it implements
13841     to always fail with ENOSYS.  Some functions are actually named
13842     something starting with __ and the normal name is an alias.  */
13843 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13844 choke me
13845 #else
13846 char (*f) () = shl_load;
13847 #endif
13848 #ifdef __cplusplus
13849 }
13850 #endif
13851
13852 int
13853 main ()
13854 {
13855 return f != shl_load;
13856   ;
13857   return 0;
13858 }
13859 _ACEOF
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862   (eval $ac_link) 2>conftest.er1
13863   ac_status=$?
13864   grep -v '^ *+' conftest.er1 >conftest.err
13865   rm -f conftest.er1
13866   cat conftest.err >&5
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); } &&
13869          { ac_try='test -z "$ac_c_werror_flag"
13870                          || test ! -s conftest.err'
13871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872   (eval $ac_try) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; } &&
13876          { ac_try='test -s conftest$ac_exeext'
13877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878   (eval $ac_try) 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882   ac_cv_func_shl_load=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 ac_cv_func_shl_load=no
13888 fi
13889 rm -f conftest.err conftest.$ac_objext \
13890       conftest$ac_exeext conftest.$ac_ext
13891 fi
13892 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13893 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13894 if test $ac_cv_func_shl_load = yes; then
13895   lt_cv_dlopen="shl_load"
13896 else
13897   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13898 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13899 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-ldld  $LIBS"
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910
13911 /* Override any gcc2 internal prototype to avoid an error.  */
13912 #ifdef __cplusplus
13913 extern "C"
13914 #endif
13915 /* We use char because int might match the return type of a gcc2
13916    builtin and then its argument prototype would still apply.  */
13917 char shl_load ();
13918 int
13919 main ()
13920 {
13921 shl_load ();
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928   (eval $ac_link) 2>conftest.er1
13929   ac_status=$?
13930   grep -v '^ *+' conftest.er1 >conftest.err
13931   rm -f conftest.er1
13932   cat conftest.err >&5
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -z "$ac_c_werror_flag"
13936                          || test ! -s conftest.err'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; } &&
13942          { ac_try='test -s conftest$ac_exeext'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948   ac_cv_lib_dld_shl_load=yes
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_cv_lib_dld_shl_load=no
13954 fi
13955 rm -f conftest.err conftest.$ac_objext \
13956       conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13958 fi
13959 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13960 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13961 if test $ac_cv_lib_dld_shl_load = yes; then
13962   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13963 else
13964   echo "$as_me:$LINENO: checking for dlopen" >&5
13965 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13966 if test "${ac_cv_func_dlopen+set}" = set; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969   cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h.  */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h.  */
13975 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13977 #define dlopen innocuous_dlopen
13978
13979 /* System header to define __stub macros and hopefully few prototypes,
13980     which can conflict with char dlopen (); below.
13981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13982     <limits.h> exists even on freestanding compilers.  */
13983
13984 #ifdef __STDC__
13985 # include <limits.h>
13986 #else
13987 # include <assert.h>
13988 #endif
13989
13990 #undef dlopen
13991
13992 /* Override any gcc2 internal prototype to avoid an error.  */
13993 #ifdef __cplusplus
13994 extern "C"
13995 {
13996 #endif
13997 /* We use char because int might match the return type of a gcc2
13998    builtin and then its argument prototype would still apply.  */
13999 char dlopen ();
14000 /* The GNU C library defines this for functions which it implements
14001     to always fail with ENOSYS.  Some functions are actually named
14002     something starting with __ and the normal name is an alias.  */
14003 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14004 choke me
14005 #else
14006 char (*f) () = dlopen;
14007 #endif
14008 #ifdef __cplusplus
14009 }
14010 #endif
14011
14012 int
14013 main ()
14014 {
14015 return f != dlopen;
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022   (eval $ac_link) 2>conftest.er1
14023   ac_status=$?
14024   grep -v '^ *+' conftest.er1 >conftest.err
14025   rm -f conftest.er1
14026   cat conftest.err >&5
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -z "$ac_c_werror_flag"
14030                          || test ! -s conftest.err'
14031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032   (eval $ac_try) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; } &&
14036          { ac_try='test -s conftest$ac_exeext'
14037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038   (eval $ac_try) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; }; then
14042   ac_cv_func_dlopen=yes
14043 else
14044   echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 ac_cv_func_dlopen=no
14048 fi
14049 rm -f conftest.err conftest.$ac_objext \
14050       conftest$ac_exeext conftest.$ac_ext
14051 fi
14052 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14053 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14054 if test $ac_cv_func_dlopen = yes; then
14055   lt_cv_dlopen="dlopen"
14056 else
14057   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14058 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14059 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062   ac_check_lib_save_LIBS=$LIBS
14063 LIBS="-ldl  $LIBS"
14064 cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070
14071 /* Override any gcc2 internal prototype to avoid an error.  */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 /* We use char because int might match the return type of a gcc2
14076    builtin and then its argument prototype would still apply.  */
14077 char dlopen ();
14078 int
14079 main ()
14080 {
14081 dlopen ();
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 rm -f conftest.$ac_objext conftest$ac_exeext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14088   (eval $ac_link) 2>conftest.er1
14089   ac_status=$?
14090   grep -v '^ *+' conftest.er1 >conftest.err
14091   rm -f conftest.er1
14092   cat conftest.err >&5
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } &&
14095          { ac_try='test -z "$ac_c_werror_flag"
14096                          || test ! -s conftest.err'
14097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098   (eval $ac_try) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; } &&
14102          { ac_try='test -s conftest$ac_exeext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   ac_cv_lib_dl_dlopen=yes
14109 else
14110   echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 ac_cv_lib_dl_dlopen=no
14114 fi
14115 rm -f conftest.err conftest.$ac_objext \
14116       conftest$ac_exeext conftest.$ac_ext
14117 LIBS=$ac_check_lib_save_LIBS
14118 fi
14119 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14121 if test $ac_cv_lib_dl_dlopen = yes; then
14122   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14123 else
14124   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14125 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14126 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129   ac_check_lib_save_LIBS=$LIBS
14130 LIBS="-lsvld  $LIBS"
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h.  */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h.  */
14137
14138 /* Override any gcc2 internal prototype to avoid an error.  */
14139 #ifdef __cplusplus
14140 extern "C"
14141 #endif
14142 /* We use char because int might match the return type of a gcc2
14143    builtin and then its argument prototype would still apply.  */
14144 char dlopen ();
14145 int
14146 main ()
14147 {
14148 dlopen ();
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155   (eval $ac_link) 2>conftest.er1
14156   ac_status=$?
14157   grep -v '^ *+' conftest.er1 >conftest.err
14158   rm -f conftest.er1
14159   cat conftest.err >&5
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } &&
14162          { ac_try='test -z "$ac_c_werror_flag"
14163                          || test ! -s conftest.err'
14164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165   (eval $ac_try) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; } &&
14169          { ac_try='test -s conftest$ac_exeext'
14170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171   (eval $ac_try) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; }; then
14175   ac_cv_lib_svld_dlopen=yes
14176 else
14177   echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180 ac_cv_lib_svld_dlopen=no
14181 fi
14182 rm -f conftest.err conftest.$ac_objext \
14183       conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS
14185 fi
14186 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14187 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14188 if test $ac_cv_lib_svld_dlopen = yes; then
14189   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14190 else
14191   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14192 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14193 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14194   echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196   ac_check_lib_save_LIBS=$LIBS
14197 LIBS="-ldld  $LIBS"
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204
14205 /* Override any gcc2 internal prototype to avoid an error.  */
14206 #ifdef __cplusplus
14207 extern "C"
14208 #endif
14209 /* We use char because int might match the return type of a gcc2
14210    builtin and then its argument prototype would still apply.  */
14211 char dld_link ();
14212 int
14213 main ()
14214 {
14215 dld_link ();
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14222   (eval $ac_link) 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -z "$ac_c_werror_flag"
14230                          || test ! -s conftest.err'
14231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232   (eval $ac_try) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; } &&
14236          { ac_try='test -s conftest$ac_exeext'
14237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238   (eval $ac_try) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; }; then
14242   ac_cv_lib_dld_dld_link=yes
14243 else
14244   echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 ac_cv_lib_dld_dld_link=no
14248 fi
14249 rm -f conftest.err conftest.$ac_objext \
14250       conftest$ac_exeext conftest.$ac_ext
14251 LIBS=$ac_check_lib_save_LIBS
14252 fi
14253 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14254 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14255 if test $ac_cv_lib_dld_dld_link = yes; then
14256   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14257 fi
14258
14259
14260 fi
14261
14262
14263 fi
14264
14265
14266 fi
14267
14268
14269 fi
14270
14271
14272 fi
14273
14274     ;;
14275   esac
14276
14277   if test "x$lt_cv_dlopen" != xno; then
14278     enable_dlopen=yes
14279   else
14280     enable_dlopen=no
14281   fi
14282
14283   case $lt_cv_dlopen in
14284   dlopen)
14285     save_CPPFLAGS="$CPPFLAGS"
14286     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14287
14288     save_LDFLAGS="$LDFLAGS"
14289     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14290
14291     save_LIBS="$LIBS"
14292     LIBS="$lt_cv_dlopen_libs $LIBS"
14293
14294     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14295 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14296 if test "${lt_cv_dlopen_self+set}" = set; then
14297   echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299           if test "$cross_compiling" = yes; then :
14300   lt_cv_dlopen_self=cross
14301 else
14302   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14303   lt_status=$lt_dlunknown
14304   cat > conftest.$ac_ext <<EOF
14305 #line 14305 "configure"
14306 #include "confdefs.h"
14307
14308 #if HAVE_DLFCN_H
14309 #include <dlfcn.h>
14310 #endif
14311
14312 #include <stdio.h>
14313
14314 #ifdef RTLD_GLOBAL
14315 #  define LT_DLGLOBAL           RTLD_GLOBAL
14316 #else
14317 #  ifdef DL_GLOBAL
14318 #    define LT_DLGLOBAL         DL_GLOBAL
14319 #  else
14320 #    define LT_DLGLOBAL         0
14321 #  endif
14322 #endif
14323
14324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14325    find out it does not work in some platform. */
14326 #ifndef LT_DLLAZY_OR_NOW
14327 #  ifdef RTLD_LAZY
14328 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14329 #  else
14330 #    ifdef DL_LAZY
14331 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14332 #    else
14333 #      ifdef RTLD_NOW
14334 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14335 #      else
14336 #        ifdef DL_NOW
14337 #          define LT_DLLAZY_OR_NOW      DL_NOW
14338 #        else
14339 #          define LT_DLLAZY_OR_NOW      0
14340 #        endif
14341 #      endif
14342 #    endif
14343 #  endif
14344 #endif
14345
14346 #ifdef __cplusplus
14347 extern "C" void exit (int);
14348 #endif
14349
14350 void fnord() { int i=42;}
14351 int main ()
14352 {
14353   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14354   int status = $lt_dlunknown;
14355
14356   if (self)
14357     {
14358       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14359       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14360       /* dlclose (self); */
14361     }
14362
14363     exit (status);
14364 }
14365 EOF
14366   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367   (eval $ac_link) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14371     (./conftest; exit; ) 2>/dev/null
14372     lt_status=$?
14373     case x$lt_status in
14374       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14375       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14376       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14377     esac
14378   else :
14379     # compilation failed
14380     lt_cv_dlopen_self=no
14381   fi
14382 fi
14383 rm -fr conftest*
14384
14385
14386 fi
14387 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14388 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14389
14390     if test "x$lt_cv_dlopen_self" = xyes; then
14391       LDFLAGS="$LDFLAGS $link_static_flag"
14392       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14393 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14394 if test "${lt_cv_dlopen_self_static+set}" = set; then
14395   echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397           if test "$cross_compiling" = yes; then :
14398   lt_cv_dlopen_self_static=cross
14399 else
14400   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14401   lt_status=$lt_dlunknown
14402   cat > conftest.$ac_ext <<EOF
14403 #line 14403 "configure"
14404 #include "confdefs.h"
14405
14406 #if HAVE_DLFCN_H
14407 #include <dlfcn.h>
14408 #endif
14409
14410 #include <stdio.h>
14411
14412 #ifdef RTLD_GLOBAL
14413 #  define LT_DLGLOBAL           RTLD_GLOBAL
14414 #else
14415 #  ifdef DL_GLOBAL
14416 #    define LT_DLGLOBAL         DL_GLOBAL
14417 #  else
14418 #    define LT_DLGLOBAL         0
14419 #  endif
14420 #endif
14421
14422 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14423    find out it does not work in some platform. */
14424 #ifndef LT_DLLAZY_OR_NOW
14425 #  ifdef RTLD_LAZY
14426 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14427 #  else
14428 #    ifdef DL_LAZY
14429 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14430 #    else
14431 #      ifdef RTLD_NOW
14432 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14433 #      else
14434 #        ifdef DL_NOW
14435 #          define LT_DLLAZY_OR_NOW      DL_NOW
14436 #        else
14437 #          define LT_DLLAZY_OR_NOW      0
14438 #        endif
14439 #      endif
14440 #    endif
14441 #  endif
14442 #endif
14443
14444 #ifdef __cplusplus
14445 extern "C" void exit (int);
14446 #endif
14447
14448 void fnord() { int i=42;}
14449 int main ()
14450 {
14451   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14452   int status = $lt_dlunknown;
14453
14454   if (self)
14455     {
14456       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14457       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14458       /* dlclose (self); */
14459     }
14460
14461     exit (status);
14462 }
14463 EOF
14464   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14465   (eval $ac_link) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14469     (./conftest; exit; ) 2>/dev/null
14470     lt_status=$?
14471     case x$lt_status in
14472       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14473       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14474       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14475     esac
14476   else :
14477     # compilation failed
14478     lt_cv_dlopen_self_static=no
14479   fi
14480 fi
14481 rm -fr conftest*
14482
14483
14484 fi
14485 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14486 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14487     fi
14488
14489     CPPFLAGS="$save_CPPFLAGS"
14490     LDFLAGS="$save_LDFLAGS"
14491     LIBS="$save_LIBS"
14492     ;;
14493   esac
14494
14495   case $lt_cv_dlopen_self in
14496   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14497   *) enable_dlopen_self=unknown ;;
14498   esac
14499
14500   case $lt_cv_dlopen_self_static in
14501   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14502   *) enable_dlopen_self_static=unknown ;;
14503   esac
14504 fi
14505
14506
14507 # Report which librarie types wil actually be built
14508 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14509 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14510 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14511 echo "${ECHO_T}$can_build_shared" >&6
14512
14513 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14514 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14515 test "$can_build_shared" = "no" && enable_shared=no
14516
14517 # On AIX, shared libraries and static libraries use the same namespace, and
14518 # are all built from PIC.
14519 case "$host_os" in
14520 aix3*)
14521   test "$enable_shared" = yes && enable_static=no
14522   if test -n "$RANLIB"; then
14523     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14524     postinstall_cmds='$RANLIB $lib'
14525   fi
14526   ;;
14527
14528 aix4* | aix5*)
14529   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14530     test "$enable_shared" = yes && enable_static=no
14531   fi
14532     ;;
14533 esac
14534 echo "$as_me:$LINENO: result: $enable_shared" >&5
14535 echo "${ECHO_T}$enable_shared" >&6
14536
14537 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14538 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14539 # Make sure either enable_shared or enable_static is yes.
14540 test "$enable_shared" = yes || enable_static=yes
14541 echo "$as_me:$LINENO: result: $enable_static" >&5
14542 echo "${ECHO_T}$enable_static" >&6
14543
14544 # The else clause should only fire when bootstrapping the
14545 # libtool distribution, otherwise you forgot to ship ltmain.sh
14546 # with your package, and you will get complaints that there are
14547 # no rules to generate ltmain.sh.
14548 if test -f "$ltmain"; then
14549   # See if we are running on zsh, and set the options which allow our commands through
14550   # without removal of \ escapes.
14551   if test -n "${ZSH_VERSION+set}" ; then
14552     setopt NO_GLOB_SUBST
14553   fi
14554   # Now quote all the things that may contain metacharacters while being
14555   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14556   # variables and quote the copies for generation of the libtool script.
14557   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14558     SED SHELL STRIP \
14559     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14560     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14561     deplibs_check_method reload_flag reload_cmds need_locks \
14562     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14563     lt_cv_sys_global_symbol_to_c_name_address \
14564     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14565     old_postinstall_cmds old_postuninstall_cmds \
14566     compiler \
14567     CC \
14568     LD \
14569     lt_prog_compiler_wl \
14570     lt_prog_compiler_pic \
14571     lt_prog_compiler_static \
14572     lt_prog_compiler_no_builtin_flag \
14573     export_dynamic_flag_spec \
14574     thread_safe_flag_spec \
14575     whole_archive_flag_spec \
14576     enable_shared_with_static_runtimes \
14577     old_archive_cmds \
14578     old_archive_from_new_cmds \
14579     predep_objects \
14580     postdep_objects \
14581     predeps \
14582     postdeps \
14583     compiler_lib_search_path \
14584     archive_cmds \
14585     archive_expsym_cmds \
14586     postinstall_cmds \
14587     postuninstall_cmds \
14588     old_archive_from_expsyms_cmds \
14589     allow_undefined_flag \
14590     no_undefined_flag \
14591     export_symbols_cmds \
14592     hardcode_libdir_flag_spec \
14593     hardcode_libdir_flag_spec_ld \
14594     hardcode_libdir_separator \
14595     hardcode_automatic \
14596     module_cmds \
14597     module_expsym_cmds \
14598     lt_cv_prog_compiler_c_o \
14599     exclude_expsyms \
14600     include_expsyms; do
14601
14602     case $var in
14603     old_archive_cmds | \
14604     old_archive_from_new_cmds | \
14605     archive_cmds | \
14606     archive_expsym_cmds | \
14607     module_cmds | \
14608     module_expsym_cmds | \
14609     old_archive_from_expsyms_cmds | \
14610     export_symbols_cmds | \
14611     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14612     postinstall_cmds | postuninstall_cmds | \
14613     old_postinstall_cmds | old_postuninstall_cmds | \
14614     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14615       # Double-quote double-evaled strings.
14616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14617       ;;
14618     *)
14619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14620       ;;
14621     esac
14622   done
14623
14624   case $lt_echo in
14625   *'\$0 --fallback-echo"')
14626     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14627     ;;
14628   esac
14629
14630 cfgfile="${ofile}T"
14631   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14632   $rm -f "$cfgfile"
14633   { echo "$as_me:$LINENO: creating $ofile" >&5
14634 echo "$as_me: creating $ofile" >&6;}
14635
14636   cat <<__EOF__ >> "$cfgfile"
14637 #! $SHELL
14638
14639 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14640 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14641 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14642 #
14643 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14644 # Free Software Foundation, Inc.
14645 #
14646 # This file is part of GNU Libtool:
14647 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14648 #
14649 # This program is free software; you can redistribute it and/or modify
14650 # it under the terms of the GNU General Public License as published by
14651 # the Free Software Foundation; either version 2 of the License, or
14652 # (at your option) any later version.
14653 #
14654 # This program is distributed in the hope that it will be useful, but
14655 # WITHOUT ANY WARRANTY; without even the implied warranty of
14656 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14657 # General Public License for more details.
14658 #
14659 # You should have received a copy of the GNU General Public License
14660 # along with this program; if not, write to the Free Software
14661 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14662 #
14663 # As a special exception to the GNU General Public License, if you
14664 # distribute this file as part of a program that contains a
14665 # configuration script generated by Autoconf, you may include it under
14666 # the same distribution terms that you use for the rest of that program.
14667
14668 # A sed program that does not truncate output.
14669 SED=$lt_SED
14670
14671 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14672 Xsed="$SED -e s/^X//"
14673
14674 # The HP-UX ksh and POSIX shell print the target directory to stdout
14675 # if CDPATH is set.
14676 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14677
14678 # The names of the tagged configurations supported by this script.
14679 available_tags=
14680
14681 # ### BEGIN LIBTOOL CONFIG
14682
14683 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14684
14685 # Shell to use when invoking shell scripts.
14686 SHELL=$lt_SHELL
14687
14688 # Whether or not to build shared libraries.
14689 build_libtool_libs=$enable_shared
14690
14691 # Whether or not to build static libraries.
14692 build_old_libs=$enable_static
14693
14694 # Whether or not to add -lc for building shared libraries.
14695 build_libtool_need_lc=$archive_cmds_need_lc
14696
14697 # Whether or not to disallow shared libs when runtime libs are static
14698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14699
14700 # Whether or not to optimize for fast installation.
14701 fast_install=$enable_fast_install
14702
14703 # The host system.
14704 host_alias=$host_alias
14705 host=$host
14706
14707 # An echo program that does not interpret backslashes.
14708 echo=$lt_echo
14709
14710 # The archiver.
14711 AR=$lt_AR
14712 AR_FLAGS=$lt_AR_FLAGS
14713
14714 # A C compiler.
14715 LTCC=$lt_LTCC
14716
14717 # A language-specific compiler.
14718 CC=$lt_compiler
14719
14720 # Is the compiler the GNU C compiler?
14721 with_gcc=$GCC
14722
14723 # An ERE matcher.
14724 EGREP=$lt_EGREP
14725
14726 # The linker used to build libraries.
14727 LD=$lt_LD
14728
14729 # Whether we need hard or soft links.
14730 LN_S=$lt_LN_S
14731
14732 # A BSD-compatible nm program.
14733 NM=$lt_NM
14734
14735 # A symbol stripping program
14736 STRIP=$lt_STRIP
14737
14738 # Used to examine libraries when file_magic_cmd begins "file"
14739 MAGIC_CMD=$MAGIC_CMD
14740
14741 # Used on cygwin: DLL creation program.
14742 DLLTOOL="$DLLTOOL"
14743
14744 # Used on cygwin: object dumper.
14745 OBJDUMP="$OBJDUMP"
14746
14747 # Used on cygwin: assembler.
14748 AS="$AS"
14749
14750 # The name of the directory that contains temporary libtool files.
14751 objdir=$objdir
14752
14753 # How to create reloadable object files.
14754 reload_flag=$lt_reload_flag
14755 reload_cmds=$lt_reload_cmds
14756
14757 # How to pass a linker flag through the compiler.
14758 wl=$lt_lt_prog_compiler_wl
14759
14760 # Object file suffix (normally "o").
14761 objext="$ac_objext"
14762
14763 # Old archive suffix (normally "a").
14764 libext="$libext"
14765
14766 # Shared library suffix (normally ".so").
14767 shrext_cmds='$shrext_cmds'
14768
14769 # Executable file suffix (normally "").
14770 exeext="$exeext"
14771
14772 # Additional compiler flags for building library objects.
14773 pic_flag=$lt_lt_prog_compiler_pic
14774 pic_mode=$pic_mode
14775
14776 # What is the maximum length of a command?
14777 max_cmd_len=$lt_cv_sys_max_cmd_len
14778
14779 # Does compiler simultaneously support -c and -o options?
14780 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14781
14782 # Must we lock files when doing compilation ?
14783 need_locks=$lt_need_locks
14784
14785 # Do we need the lib prefix for modules?
14786 need_lib_prefix=$need_lib_prefix
14787
14788 # Do we need a version for libraries?
14789 need_version=$need_version
14790
14791 # Whether dlopen is supported.
14792 dlopen_support=$enable_dlopen
14793
14794 # Whether dlopen of programs is supported.
14795 dlopen_self=$enable_dlopen_self
14796
14797 # Whether dlopen of statically linked programs is supported.
14798 dlopen_self_static=$enable_dlopen_self_static
14799
14800 # Compiler flag to prevent dynamic linking.
14801 link_static_flag=$lt_lt_prog_compiler_static
14802
14803 # Compiler flag to turn off builtin functions.
14804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14805
14806 # Compiler flag to allow reflexive dlopens.
14807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14808
14809 # Compiler flag to generate shared objects directly from archives.
14810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14811
14812 # Compiler flag to generate thread-safe objects.
14813 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14814
14815 # Library versioning type.
14816 version_type=$version_type
14817
14818 # Format of library name prefix.
14819 libname_spec=$lt_libname_spec
14820
14821 # List of archive names.  First name is the real one, the rest are links.
14822 # The last name is the one that the linker finds with -lNAME.
14823 library_names_spec=$lt_library_names_spec
14824
14825 # The coded name of the library, if different from the real name.
14826 soname_spec=$lt_soname_spec
14827
14828 # Commands used to build and install an old-style archive.
14829 RANLIB=$lt_RANLIB
14830 old_archive_cmds=$lt_old_archive_cmds
14831 old_postinstall_cmds=$lt_old_postinstall_cmds
14832 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14833
14834 # Create an old-style archive from a shared archive.
14835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14836
14837 # Create a temporary old-style archive to link instead of a shared archive.
14838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14839
14840 # Commands used to build and install a shared archive.
14841 archive_cmds=$lt_archive_cmds
14842 archive_expsym_cmds=$lt_archive_expsym_cmds
14843 postinstall_cmds=$lt_postinstall_cmds
14844 postuninstall_cmds=$lt_postuninstall_cmds
14845
14846 # Commands used to build a loadable module (assumed same as above if empty)
14847 module_cmds=$lt_module_cmds
14848 module_expsym_cmds=$lt_module_expsym_cmds
14849
14850 # Commands to strip libraries.
14851 old_striplib=$lt_old_striplib
14852 striplib=$lt_striplib
14853
14854 # Dependencies to place before the objects being linked to create a
14855 # shared library.
14856 predep_objects=$lt_predep_objects
14857
14858 # Dependencies to place after the objects being linked to create a
14859 # shared library.
14860 postdep_objects=$lt_postdep_objects
14861
14862 # Dependencies to place before the objects being linked to create a
14863 # shared library.
14864 predeps=$lt_predeps
14865
14866 # Dependencies to place after the objects being linked to create a
14867 # shared library.
14868 postdeps=$lt_postdeps
14869
14870 # The library search path used internally by the compiler when linking
14871 # a shared library.
14872 compiler_lib_search_path=$lt_compiler_lib_search_path
14873
14874 # Method to check whether dependent libraries are shared objects.
14875 deplibs_check_method=$lt_deplibs_check_method
14876
14877 # Command to use when deplibs_check_method == file_magic.
14878 file_magic_cmd=$lt_file_magic_cmd
14879
14880 # Flag that allows shared libraries with undefined symbols to be built.
14881 allow_undefined_flag=$lt_allow_undefined_flag
14882
14883 # Flag that forces no undefined symbols.
14884 no_undefined_flag=$lt_no_undefined_flag
14885
14886 # Commands used to finish a libtool library installation in a directory.
14887 finish_cmds=$lt_finish_cmds
14888
14889 # Same as above, but a single script fragment to be evaled but not shown.
14890 finish_eval=$lt_finish_eval
14891
14892 # Take the output of nm and produce a listing of raw symbols and C names.
14893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14894
14895 # Transform the output of nm in a proper C declaration
14896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14897
14898 # Transform the output of nm in a C name address pair
14899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14900
14901 # This is the shared library runtime path variable.
14902 runpath_var=$runpath_var
14903
14904 # This is the shared library path variable.
14905 shlibpath_var=$shlibpath_var
14906
14907 # Is shlibpath searched before the hard-coded library search path?
14908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14909
14910 # How to hardcode a shared library path into an executable.
14911 hardcode_action=$hardcode_action
14912
14913 # Whether we should hardcode library paths into libraries.
14914 hardcode_into_libs=$hardcode_into_libs
14915
14916 # Flag to hardcode \$libdir into a binary during linking.
14917 # This must work even if \$libdir does not exist.
14918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14919
14920 # If ld is used when linking, flag to hardcode \$libdir into
14921 # a binary during linking. This must work even if \$libdir does
14922 # not exist.
14923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14924
14925 # Whether we need a single -rpath flag with a separated argument.
14926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14927
14928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14929 # resulting binary.
14930 hardcode_direct=$hardcode_direct
14931
14932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14933 # resulting binary.
14934 hardcode_minus_L=$hardcode_minus_L
14935
14936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14937 # the resulting binary.
14938 hardcode_shlibpath_var=$hardcode_shlibpath_var
14939
14940 # Set to yes if building a shared library automatically hardcodes DIR into the library
14941 # and all subsequent libraries and executables linked against it.
14942 hardcode_automatic=$hardcode_automatic
14943
14944 # Variables whose values should be saved in libtool wrapper scripts and
14945 # restored at relink time.
14946 variables_saved_for_relink="$variables_saved_for_relink"
14947
14948 # Whether libtool must link a program against all its dependency libraries.
14949 link_all_deplibs=$link_all_deplibs
14950
14951 # Compile-time system search path for libraries
14952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14953
14954 # Run-time system search path for libraries
14955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14956
14957 # Fix the shell variable \$srcfile for the compiler.
14958 fix_srcfile_path="$fix_srcfile_path"
14959
14960 # Set to yes if exported symbols are required.
14961 always_export_symbols=$always_export_symbols
14962
14963 # The commands to list exported symbols.
14964 export_symbols_cmds=$lt_export_symbols_cmds
14965
14966 # The commands to extract the exported symbol list from a shared archive.
14967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14968
14969 # Symbols that should not be listed in the preloaded symbols.
14970 exclude_expsyms=$lt_exclude_expsyms
14971
14972 # Symbols that must always be exported.
14973 include_expsyms=$lt_include_expsyms
14974
14975 # ### END LIBTOOL CONFIG
14976
14977 __EOF__
14978
14979
14980   case $host_os in
14981   aix3*)
14982     cat <<\EOF >> "$cfgfile"
14983
14984 # AIX sometimes has problems with the GCC collect2 program.  For some
14985 # reason, if we set the COLLECT_NAMES environment variable, the problems
14986 # vanish in a puff of smoke.
14987 if test "X${COLLECT_NAMES+set}" != Xset; then
14988   COLLECT_NAMES=
14989   export COLLECT_NAMES
14990 fi
14991 EOF
14992     ;;
14993   esac
14994
14995   # We use sed instead of cat because bash on DJGPP gets confused if
14996   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14997   # text mode, it properly converts lines to CR/LF.  This bash problem
14998   # is reportedly fixed, but why not run on old versions too?
14999   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15000
15001   mv -f "$cfgfile" "$ofile" || \
15002     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15003   chmod +x "$ofile"
15004
15005 else
15006   # If there is no Makefile yet, we rely on a make rule to execute
15007   # `config.status --recheck' to rerun these tests and create the
15008   # libtool script then.
15009   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15010   if test -f "$ltmain_in"; then
15011     test -f Makefile && make "$ltmain"
15012   fi
15013 fi
15014
15015
15016 ac_ext=c
15017 ac_cpp='$CPP $CPPFLAGS'
15018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15021
15022 CC="$lt_save_CC"
15023
15024
15025 # Check whether --with-tags or --without-tags was given.
15026 if test "${with_tags+set}" = set; then
15027   withval="$with_tags"
15028   tagnames="$withval"
15029 fi;
15030
15031 if test -f "$ltmain" && test -n "$tagnames"; then
15032   if test ! -f "${ofile}"; then
15033     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15034 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15035   fi
15036
15037   if test -z "$LTCC"; then
15038     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15039     if test -z "$LTCC"; then
15040       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15041 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15042     else
15043       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15044 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15045     fi
15046   fi
15047
15048   # Extract list of available tagged configurations in $ofile.
15049   # Note that this assumes the entire list is on one line.
15050   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15051
15052   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15053   for tagname in $tagnames; do
15054     IFS="$lt_save_ifs"
15055     # Check whether tagname contains only valid characters
15056     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15057     "") ;;
15058     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15059 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15060    { (exit 1); exit 1; }; }
15061         ;;
15062     esac
15063
15064     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15065     then
15066       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15067 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15068    { (exit 1); exit 1; }; }
15069     fi
15070
15071     # Update the list of available tags.
15072     if test -n "$tagname"; then
15073       echo appending configuration tag "$tagname" to $ofile
15074
15075       case $tagname in
15076       CXX)
15077         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15078             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15079             (test "X$CXX" != "Xg++"))) ; then
15080           ac_ext=cc
15081 ac_cpp='$CXXCPP $CPPFLAGS'
15082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15085
15086
15087
15088
15089 archive_cmds_need_lc_CXX=no
15090 allow_undefined_flag_CXX=
15091 always_export_symbols_CXX=no
15092 archive_expsym_cmds_CXX=
15093 export_dynamic_flag_spec_CXX=
15094 hardcode_direct_CXX=no
15095 hardcode_libdir_flag_spec_CXX=
15096 hardcode_libdir_flag_spec_ld_CXX=
15097 hardcode_libdir_separator_CXX=
15098 hardcode_minus_L_CXX=no
15099 hardcode_automatic_CXX=no
15100 module_cmds_CXX=
15101 module_expsym_cmds_CXX=
15102 link_all_deplibs_CXX=unknown
15103 old_archive_cmds_CXX=$old_archive_cmds
15104 no_undefined_flag_CXX=
15105 whole_archive_flag_spec_CXX=
15106 enable_shared_with_static_runtimes_CXX=no
15107
15108 # Dependencies to place before and after the object being linked:
15109 predep_objects_CXX=
15110 postdep_objects_CXX=
15111 predeps_CXX=
15112 postdeps_CXX=
15113 compiler_lib_search_path_CXX=
15114
15115 # Source file extension for C++ test sources.
15116 ac_ext=cc
15117
15118 # Object file extension for compiled C++ test sources.
15119 objext=o
15120 objext_CXX=$objext
15121
15122 # Code to be used in simple compile tests
15123 lt_simple_compile_test_code="int some_variable = 0;\n"
15124
15125 # Code to be used in simple link tests
15126 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15127
15128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15129
15130 # If no C compiler was specified, use CC.
15131 LTCC=${LTCC-"$CC"}
15132
15133 # Allow CC to be a program name with arguments.
15134 compiler=$CC
15135
15136
15137 # Allow CC to be a program name with arguments.
15138 lt_save_CC=$CC
15139 lt_save_LD=$LD
15140 lt_save_GCC=$GCC
15141 GCC=$GXX
15142 lt_save_with_gnu_ld=$with_gnu_ld
15143 lt_save_path_LD=$lt_cv_path_LD
15144 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15145   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15146 else
15147   unset lt_cv_prog_gnu_ld
15148 fi
15149 if test -n "${lt_cv_path_LDCXX+set}"; then
15150   lt_cv_path_LD=$lt_cv_path_LDCXX
15151 else
15152   unset lt_cv_path_LD
15153 fi
15154 test -z "${LDCXX+set}" || LD=$LDCXX
15155 CC=${CXX-"c++"}
15156 compiler=$CC
15157 compiler_CXX=$CC
15158 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15159
15160 # We don't want -fno-exception wen compiling C++ code, so set the
15161 # no_builtin_flag separately
15162 if test "$GXX" = yes; then
15163   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15164 else
15165   lt_prog_compiler_no_builtin_flag_CXX=
15166 fi
15167
15168 if test "$GXX" = yes; then
15169   # Set up default GNU C++ configuration
15170
15171
15172 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15173 if test "${with_gnu_ld+set}" = set; then
15174   withval="$with_gnu_ld"
15175   test "$withval" = no || with_gnu_ld=yes
15176 else
15177   with_gnu_ld=no
15178 fi;
15179 ac_prog=ld
15180 if test "$GCC" = yes; then
15181   # Check if gcc -print-prog-name=ld gives a path.
15182   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15183 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15184   case $host in
15185   *-*-mingw*)
15186     # gcc leaves a trailing carriage return which upsets mingw
15187     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15188   *)
15189     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15190   esac
15191   case $ac_prog in
15192     # Accept absolute paths.
15193     [\\/]* | ?:[\\/]*)
15194       re_direlt='/[^/][^/]*/\.\./'
15195       # Canonicalize the pathname of ld
15196       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15197       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15198         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15199       done
15200       test -z "$LD" && LD="$ac_prog"
15201       ;;
15202   "")
15203     # If it fails, then pretend we aren't using GCC.
15204     ac_prog=ld
15205     ;;
15206   *)
15207     # If it is relative, then search for the first ld in PATH.
15208     with_gnu_ld=unknown
15209     ;;
15210   esac
15211 elif test "$with_gnu_ld" = yes; then
15212   echo "$as_me:$LINENO: checking for GNU ld" >&5
15213 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15214 else
15215   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15216 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15217 fi
15218 if test "${lt_cv_path_LD+set}" = set; then
15219   echo $ECHO_N "(cached) $ECHO_C" >&6
15220 else
15221   if test -z "$LD"; then
15222   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15223   for ac_dir in $PATH; do
15224     IFS="$lt_save_ifs"
15225     test -z "$ac_dir" && ac_dir=.
15226     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15227       lt_cv_path_LD="$ac_dir/$ac_prog"
15228       # Check to see if the program is GNU ld.  I'd rather use --version,
15229       # but apparently some GNU ld's only accept -v.
15230       # Break only if it was the GNU/non-GNU ld that we prefer.
15231       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15232       *GNU* | *'with BFD'*)
15233         test "$with_gnu_ld" != no && break
15234         ;;
15235       *)
15236         test "$with_gnu_ld" != yes && break
15237         ;;
15238       esac
15239     fi
15240   done
15241   IFS="$lt_save_ifs"
15242 else
15243   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15244 fi
15245 fi
15246
15247 LD="$lt_cv_path_LD"
15248 if test -n "$LD"; then
15249   echo "$as_me:$LINENO: result: $LD" >&5
15250 echo "${ECHO_T}$LD" >&6
15251 else
15252   echo "$as_me:$LINENO: result: no" >&5
15253 echo "${ECHO_T}no" >&6
15254 fi
15255 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15256 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15257    { (exit 1); exit 1; }; }
15258 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15259 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15260 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15261   echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15264 case `$LD -v 2>&1 </dev/null` in
15265 *GNU* | *'with BFD'*)
15266   lt_cv_prog_gnu_ld=yes
15267   ;;
15268 *)
15269   lt_cv_prog_gnu_ld=no
15270   ;;
15271 esac
15272 fi
15273 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15274 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15275 with_gnu_ld=$lt_cv_prog_gnu_ld
15276
15277
15278
15279   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15280   # archiving commands below assume that GNU ld is being used.
15281   if test "$with_gnu_ld" = yes; then
15282     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283     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'
15284
15285     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15286     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15287
15288     # If archive_cmds runs LD, not CC, wlarc should be empty
15289     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15290     #     investigate it a little bit more. (MM)
15291     wlarc='${wl}'
15292
15293     # ancient GNU ld didn't support --whole-archive et. al.
15294     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15295         grep 'no-whole-archive' > /dev/null; then
15296       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15297     else
15298       whole_archive_flag_spec_CXX=
15299     fi
15300   else
15301     with_gnu_ld=no
15302     wlarc=
15303
15304     # A generic and very simple default shared library creation
15305     # command for GNU C++ for the case where it uses the native
15306     # linker, instead of GNU ld.  If possible, this setting should
15307     # overridden to take advantage of the native linker features on
15308     # the platform it is being used on.
15309     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15310   fi
15311
15312   # Commands to make compiler produce verbose output that lists
15313   # what "hidden" libraries, object files and flags are used when
15314   # linking a shared library.
15315   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15316
15317 else
15318   GXX=no
15319   with_gnu_ld=no
15320   wlarc=
15321 fi
15322
15323 # PORTME: fill in a description of your system's C++ link characteristics
15324 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15325 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15326 ld_shlibs_CXX=yes
15327 case $host_os in
15328   aix3*)
15329     # FIXME: insert proper C++ library support
15330     ld_shlibs_CXX=no
15331     ;;
15332   aix4* | aix5*)
15333     if test "$host_cpu" = ia64; then
15334       # On IA64, the linker does run time linking by default, so we don't
15335       # have to do anything special.
15336       aix_use_runtimelinking=no
15337       exp_sym_flag='-Bexport'
15338       no_entry_flag=""
15339     else
15340       aix_use_runtimelinking=no
15341
15342       # Test if we are trying to use run time linking or normal
15343       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15344       # need to do runtime linking.
15345       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15346         for ld_flag in $LDFLAGS; do
15347           case $ld_flag in
15348           *-brtl*)
15349             aix_use_runtimelinking=yes
15350             break
15351             ;;
15352           esac
15353         done
15354       esac
15355
15356       exp_sym_flag='-bexport'
15357       no_entry_flag='-bnoentry'
15358     fi
15359
15360     # When large executables or shared objects are built, AIX ld can
15361     # have problems creating the table of contents.  If linking a library
15362     # or program results in "error TOC overflow" add -mminimal-toc to
15363     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15364     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15365
15366     archive_cmds_CXX=''
15367     hardcode_direct_CXX=yes
15368     hardcode_libdir_separator_CXX=':'
15369     link_all_deplibs_CXX=yes
15370
15371     if test "$GXX" = yes; then
15372       case $host_os in aix4.012|aix4.012.*)
15373       # We only want to do this on AIX 4.2 and lower, the check
15374       # below for broken collect2 doesn't work under 4.3+
15375         collect2name=`${CC} -print-prog-name=collect2`
15376         if test -f "$collect2name" && \
15377            strings "$collect2name" | grep resolve_lib_name >/dev/null
15378         then
15379           # We have reworked collect2
15380           hardcode_direct_CXX=yes
15381         else
15382           # We have old collect2
15383           hardcode_direct_CXX=unsupported
15384           # It fails to find uninstalled libraries when the uninstalled
15385           # path is not listed in the libpath.  Setting hardcode_minus_L
15386           # to unsupported forces relinking
15387           hardcode_minus_L_CXX=yes
15388           hardcode_libdir_flag_spec_CXX='-L$libdir'
15389           hardcode_libdir_separator_CXX=
15390         fi
15391       esac
15392       shared_flag='-shared'
15393     else
15394       # not using gcc
15395       if test "$host_cpu" = ia64; then
15396         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15397         # chokes on -Wl,-G. The following line is correct:
15398         shared_flag='-G'
15399       else
15400         if test "$aix_use_runtimelinking" = yes; then
15401           shared_flag='${wl}-G'
15402         else
15403           shared_flag='${wl}-bM:SRE'
15404         fi
15405       fi
15406     fi
15407
15408     # It seems that -bexpall does not export symbols beginning with
15409     # underscore (_), so it is better to generate a list of symbols to export.
15410     always_export_symbols_CXX=yes
15411     if test "$aix_use_runtimelinking" = yes; then
15412       # Warning - without using the other runtime loading flags (-brtl),
15413       # -berok will link without error, but may produce a broken library.
15414       allow_undefined_flag_CXX='-berok'
15415       # Determine the default libpath from the value encoded in an empty executable.
15416       cat >conftest.$ac_ext <<_ACEOF
15417 /* confdefs.h.  */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h.  */
15422
15423 int
15424 main ()
15425 {
15426
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433   (eval $ac_link) 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } &&
15440          { ac_try='test -z "$ac_cxx_werror_flag"
15441                          || test ! -s conftest.err'
15442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443   (eval $ac_try) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; } &&
15447          { ac_try='test -s conftest$ac_exeext'
15448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449   (eval $ac_try) 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; }; then
15453
15454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15455 }'`
15456 # Check for a 64-bit object if we didn't find anything.
15457 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; }
15458 }'`; fi
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 fi
15464 rm -f conftest.err conftest.$ac_objext \
15465       conftest$ac_exeext conftest.$ac_ext
15466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15467
15468       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15469
15470       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"
15471      else
15472       if test "$host_cpu" = ia64; then
15473         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15474         allow_undefined_flag_CXX="-z nodefs"
15475         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"
15476       else
15477         # Determine the default libpath from the value encoded in an empty executable.
15478         cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484
15485 int
15486 main ()
15487 {
15488
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495   (eval $ac_link) 2>conftest.er1
15496   ac_status=$?
15497   grep -v '^ *+' conftest.er1 >conftest.err
15498   rm -f conftest.er1
15499   cat conftest.err >&5
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); } &&
15502          { ac_try='test -z "$ac_cxx_werror_flag"
15503                          || test ! -s conftest.err'
15504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505   (eval $ac_try) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; } &&
15509          { ac_try='test -s conftest$ac_exeext'
15510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511   (eval $ac_try) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; }; then
15515
15516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15517 }'`
15518 # Check for a 64-bit object if we didn't find anything.
15519 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; }
15520 }'`; fi
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 fi
15526 rm -f conftest.err conftest.$ac_objext \
15527       conftest$ac_exeext conftest.$ac_ext
15528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15529
15530         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15531         # Warning - without using the other run time loading flags,
15532         # -berok will link without error, but may produce a broken library.
15533         no_undefined_flag_CXX=' ${wl}-bernotok'
15534         allow_undefined_flag_CXX=' ${wl}-berok'
15535         # -bexpall does not export symbols beginning with underscore (_)
15536         always_export_symbols_CXX=yes
15537         # Exported symbols can be pulled into shared objects from archives
15538         whole_archive_flag_spec_CXX=' '
15539         archive_cmds_need_lc_CXX=yes
15540         # This is similar to how AIX traditionally builds it's shared libraries.
15541         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'
15542       fi
15543     fi
15544     ;;
15545   chorus*)
15546     case $cc_basename in
15547       *)
15548         # FIXME: insert proper C++ library support
15549         ld_shlibs_CXX=no
15550         ;;
15551     esac
15552     ;;
15553
15554
15555   cygwin* | mingw* | pw32*)
15556     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15557     # as there is no search path for DLLs.
15558     hardcode_libdir_flag_spec_CXX='-L$libdir'
15559     allow_undefined_flag_CXX=unsupported
15560     always_export_symbols_CXX=no
15561     enable_shared_with_static_runtimes_CXX=yes
15562
15563     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15564       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'
15565       # If the export-symbols file already is a .def file (1st line
15566       # is EXPORTS), use it as is; otherwise, prepend...
15567       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15568         cp $export_symbols $output_objdir/$soname.def;
15569       else
15570         echo EXPORTS > $output_objdir/$soname.def;
15571         cat $export_symbols >> $output_objdir/$soname.def;
15572       fi~
15573       $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'
15574     else
15575       ld_shlibs_CXX=no
15576     fi
15577   ;;
15578       darwin* | rhapsody*)
15579         case "$host_os" in
15580         rhapsody* | darwin1.[012])
15581          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15582          ;;
15583        *) # Darwin 1.3 on
15584          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15585            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15586          else
15587            case ${MACOSX_DEPLOYMENT_TARGET} in
15588              10.[012])
15589                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15590                ;;
15591              10.*)
15592                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15593                ;;
15594            esac
15595          fi
15596          ;;
15597         esac
15598       archive_cmds_need_lc_CXX=no
15599       hardcode_direct_CXX=no
15600       hardcode_automatic_CXX=yes
15601       hardcode_shlibpath_var_CXX=unsupported
15602       whole_archive_flag_spec_CXX=''
15603       link_all_deplibs_CXX=yes
15604
15605     if test "$GXX" = yes ; then
15606       lt_int_apple_cc_single_mod=no
15607       output_verbose_link_cmd='echo'
15608       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15609        lt_int_apple_cc_single_mod=yes
15610       fi
15611       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15612        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15613       else
15614           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'
15615         fi
15616         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15617         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15618           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15619             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}'
15620           else
15621             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}'
15622           fi
15623             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}'
15624       else
15625       case "$cc_basename" in
15626         xlc*)
15627          output_verbose_link_cmd='echo'
15628           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'
15629           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15630           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15631           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}'
15632           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}'
15633           ;;
15634        *)
15635          ld_shlibs_CXX=no
15636           ;;
15637       esac
15638       fi
15639         ;;
15640
15641   dgux*)
15642     case $cc_basename in
15643       ec++)
15644         # FIXME: insert proper C++ library support
15645         ld_shlibs_CXX=no
15646         ;;
15647       ghcx)
15648         # Green Hills C++ Compiler
15649         # FIXME: insert proper C++ library support
15650         ld_shlibs_CXX=no
15651         ;;
15652       *)
15653         # FIXME: insert proper C++ library support
15654         ld_shlibs_CXX=no
15655         ;;
15656     esac
15657     ;;
15658   freebsd12*)
15659     # C++ shared libraries reported to be fairly broken before switch to ELF
15660     ld_shlibs_CXX=no
15661     ;;
15662   freebsd-elf*)
15663     archive_cmds_need_lc_CXX=no
15664     ;;
15665   freebsd* | kfreebsd*-gnu)
15666     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15667     # conventions
15668     ld_shlibs_CXX=yes
15669     ;;
15670   gnu*)
15671     ;;
15672   hpux9*)
15673     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15674     hardcode_libdir_separator_CXX=:
15675     export_dynamic_flag_spec_CXX='${wl}-E'
15676     hardcode_direct_CXX=yes
15677     hardcode_minus_L_CXX=yes # Not in the search PATH,
15678                                 # but as the default
15679                                 # location of the library.
15680
15681     case $cc_basename in
15682     CC)
15683       # FIXME: insert proper C++ library support
15684       ld_shlibs_CXX=no
15685       ;;
15686     aCC)
15687       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'
15688       # Commands to make compiler produce verbose output that lists
15689       # what "hidden" libraries, object files and flags are used when
15690       # linking a shared library.
15691       #
15692       # There doesn't appear to be a way to prevent this compiler from
15693       # explicitly linking system object files so we need to strip them
15694       # from the output so that they don't get included in the library
15695       # dependencies.
15696       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'
15697       ;;
15698     *)
15699       if test "$GXX" = yes; then
15700         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'
15701       else
15702         # FIXME: insert proper C++ library support
15703         ld_shlibs_CXX=no
15704       fi
15705       ;;
15706     esac
15707     ;;
15708   hpux10*|hpux11*)
15709     if test $with_gnu_ld = no; then
15710       case "$host_cpu" in
15711       hppa*64*)
15712         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15713         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15714         hardcode_libdir_separator_CXX=:
15715         ;;
15716       ia64*)
15717         hardcode_libdir_flag_spec_CXX='-L$libdir'
15718         ;;
15719       *)
15720         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15721         hardcode_libdir_separator_CXX=:
15722         export_dynamic_flag_spec_CXX='${wl}-E'
15723         ;;
15724       esac
15725     fi
15726     case "$host_cpu" in
15727     hppa*64*)
15728       hardcode_direct_CXX=no
15729       hardcode_shlibpath_var_CXX=no
15730       ;;
15731     ia64*)
15732       hardcode_direct_CXX=no
15733       hardcode_shlibpath_var_CXX=no
15734       hardcode_minus_L_CXX=yes # Not in the search PATH,
15735                                               # but as the default
15736                                               # location of the library.
15737       ;;
15738     *)
15739       hardcode_direct_CXX=yes
15740       hardcode_minus_L_CXX=yes # Not in the search PATH,
15741                                               # but as the default
15742                                               # location of the library.
15743       ;;
15744     esac
15745
15746     case $cc_basename in
15747       CC)
15748         # FIXME: insert proper C++ library support
15749         ld_shlibs_CXX=no
15750         ;;
15751       aCC)
15752         case "$host_cpu" in
15753         hppa*64*|ia64*)
15754           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15755           ;;
15756         *)
15757           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15758           ;;
15759         esac
15760         # Commands to make compiler produce verbose output that lists
15761         # what "hidden" libraries, object files and flags are used when
15762         # linking a shared library.
15763         #
15764         # There doesn't appear to be a way to prevent this compiler from
15765         # explicitly linking system object files so we need to strip them
15766         # from the output so that they don't get included in the library
15767         # dependencies.
15768         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'
15769         ;;
15770       *)
15771         if test "$GXX" = yes; then
15772           if test $with_gnu_ld = no; then
15773             case "$host_cpu" in
15774             ia64*|hppa*64*)
15775               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15776               ;;
15777             *)
15778               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'
15779               ;;
15780             esac
15781           fi
15782         else
15783           # FIXME: insert proper C++ library support
15784           ld_shlibs_CXX=no
15785         fi
15786         ;;
15787     esac
15788     ;;
15789   irix5* | irix6*)
15790     case $cc_basename in
15791       CC)
15792         # SGI C++
15793         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'
15794
15795         # Archives containing C++ object files must be created using
15796         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15797         # necessary to make sure instantiated templates are included
15798         # in the archive.
15799         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15800         ;;
15801       *)
15802         if test "$GXX" = yes; then
15803           if test "$with_gnu_ld" = no; then
15804             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'
15805           else
15806             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'
15807           fi
15808         fi
15809         link_all_deplibs_CXX=yes
15810         ;;
15811     esac
15812     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15813     hardcode_libdir_separator_CXX=:
15814     ;;
15815   linux*)
15816     case $cc_basename in
15817       KCC)
15818         # Kuck and Associates, Inc. (KAI) C++ Compiler
15819
15820         # KCC will only create a shared library if the output file
15821         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15822         # to its proper name (with version) after linking.
15823         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'
15824         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'
15825         # Commands to make compiler produce verbose output that lists
15826         # what "hidden" libraries, object files and flags are used when
15827         # linking a shared library.
15828         #
15829         # There doesn't appear to be a way to prevent this compiler from
15830         # explicitly linking system object files so we need to strip them
15831         # from the output so that they don't get included in the library
15832         # dependencies.
15833         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'
15834
15835         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15836         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15837
15838         # Archives containing C++ object files must be created using
15839         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15840         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15841         ;;
15842       icpc)
15843         # Intel C++
15844         with_gnu_ld=yes
15845         # version 8.0 and above of icpc choke on multiply defined symbols
15846         # if we add $predep_objects and $postdep_objects, however 7.1 and
15847         # earlier do not add the objects themselves.
15848         case `$CC -V 2>&1` in
15849         *"Version 7."*)
15850           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851           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'
15852           ;;
15853         *)  # Version 8.0 or newer
15854           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15856           ;;
15857         esac
15858         archive_cmds_need_lc_CXX=no
15859         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15860         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15861         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15862         ;;
15863       cxx)
15864         # Compaq C++
15865         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866         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'
15867
15868         runpath_var=LD_RUN_PATH
15869         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15870         hardcode_libdir_separator_CXX=:
15871
15872         # Commands to make compiler produce verbose output that lists
15873         # what "hidden" libraries, object files and flags are used when
15874         # linking a shared library.
15875         #
15876         # There doesn't appear to be a way to prevent this compiler from
15877         # explicitly linking system object files so we need to strip them
15878         # from the output so that they don't get included in the library
15879         # dependencies.
15880         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'
15881         ;;
15882     esac
15883     ;;
15884   lynxos*)
15885     # FIXME: insert proper C++ library support
15886     ld_shlibs_CXX=no
15887     ;;
15888   m88k*)
15889     # FIXME: insert proper C++ library support
15890     ld_shlibs_CXX=no
15891     ;;
15892   mvs*)
15893     case $cc_basename in
15894       cxx)
15895         # FIXME: insert proper C++ library support
15896         ld_shlibs_CXX=no
15897         ;;
15898       *)
15899         # FIXME: insert proper C++ library support
15900         ld_shlibs_CXX=no
15901         ;;
15902     esac
15903     ;;
15904   netbsd*)
15905     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15906       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15907       wlarc=
15908       hardcode_libdir_flag_spec_CXX='-R$libdir'
15909       hardcode_direct_CXX=yes
15910       hardcode_shlibpath_var_CXX=no
15911     fi
15912     # Workaround some broken pre-1.5 toolchains
15913     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15914     ;;
15915   openbsd2*)
15916     # C++ shared libraries are fairly broken
15917     ld_shlibs_CXX=no
15918     ;;
15919   openbsd*)
15920     hardcode_direct_CXX=yes
15921     hardcode_shlibpath_var_CXX=no
15922     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15923     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15924     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15925       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15926       export_dynamic_flag_spec_CXX='${wl}-E'
15927       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15928     fi
15929     output_verbose_link_cmd='echo'
15930     ;;
15931   osf3*)
15932     case $cc_basename in
15933       KCC)
15934         # Kuck and Associates, Inc. (KAI) C++ Compiler
15935
15936         # KCC will only create a shared library if the output file
15937         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15938         # to its proper name (with version) after linking.
15939         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'
15940
15941         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15942         hardcode_libdir_separator_CXX=:
15943
15944         # Archives containing C++ object files must be created using
15945         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15946         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15947
15948         ;;
15949       RCC)
15950         # Rational C++ 2.4.1
15951         # FIXME: insert proper C++ library support
15952         ld_shlibs_CXX=no
15953         ;;
15954       cxx)
15955         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15956         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'
15957
15958         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15959         hardcode_libdir_separator_CXX=:
15960
15961         # Commands to make compiler produce verbose output that lists
15962         # what "hidden" libraries, object files and flags are used when
15963         # linking a shared library.
15964         #
15965         # There doesn't appear to be a way to prevent this compiler from
15966         # explicitly linking system object files so we need to strip them
15967         # from the output so that they don't get included in the library
15968         # dependencies.
15969         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'
15970         ;;
15971       *)
15972         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15973           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15974           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'
15975
15976           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15977           hardcode_libdir_separator_CXX=:
15978
15979           # Commands to make compiler produce verbose output that lists
15980           # what "hidden" libraries, object files and flags are used when
15981           # linking a shared library.
15982           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15983
15984         else
15985           # FIXME: insert proper C++ library support
15986           ld_shlibs_CXX=no
15987         fi
15988         ;;
15989     esac
15990     ;;
15991   osf4* | osf5*)
15992     case $cc_basename in
15993       KCC)
15994         # Kuck and Associates, Inc. (KAI) C++ Compiler
15995
15996         # KCC will only create a shared library if the output file
15997         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15998         # to its proper name (with version) after linking.
15999         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'
16000
16001         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16002         hardcode_libdir_separator_CXX=:
16003
16004         # Archives containing C++ object files must be created using
16005         # the KAI C++ compiler.
16006         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16007         ;;
16008       RCC)
16009         # Rational C++ 2.4.1
16010         # FIXME: insert proper C++ library support
16011         ld_shlibs_CXX=no
16012         ;;
16013       cxx)
16014         allow_undefined_flag_CXX=' -expect_unresolved \*'
16015         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'
16016         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16017           echo "-hidden">> $lib.exp~
16018           $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~
16019           $rm $lib.exp'
16020
16021         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16022         hardcode_libdir_separator_CXX=:
16023
16024         # Commands to make compiler produce verbose output that lists
16025         # what "hidden" libraries, object files and flags are used when
16026         # linking a shared library.
16027         #
16028         # There doesn't appear to be a way to prevent this compiler from
16029         # explicitly linking system object files so we need to strip them
16030         # from the output so that they don't get included in the library
16031         # dependencies.
16032         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'
16033         ;;
16034       *)
16035         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16036           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16037          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'
16038
16039           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16040           hardcode_libdir_separator_CXX=:
16041
16042           # Commands to make compiler produce verbose output that lists
16043           # what "hidden" libraries, object files and flags are used when
16044           # linking a shared library.
16045           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16046
16047         else
16048           # FIXME: insert proper C++ library support
16049           ld_shlibs_CXX=no
16050         fi
16051         ;;
16052     esac
16053     ;;
16054   psos*)
16055     # FIXME: insert proper C++ library support
16056     ld_shlibs_CXX=no
16057     ;;
16058   sco*)
16059     archive_cmds_need_lc_CXX=no
16060     case $cc_basename in
16061       CC)
16062         # FIXME: insert proper C++ library support
16063         ld_shlibs_CXX=no
16064         ;;
16065       *)
16066         # FIXME: insert proper C++ library support
16067         ld_shlibs_CXX=no
16068         ;;
16069     esac
16070     ;;
16071   sunos4*)
16072     case $cc_basename in
16073       CC)
16074         # Sun C++ 4.x
16075         # FIXME: insert proper C++ library support
16076         ld_shlibs_CXX=no
16077         ;;
16078       lcc)
16079         # Lucid
16080         # FIXME: insert proper C++ library support
16081         ld_shlibs_CXX=no
16082         ;;
16083       *)
16084         # FIXME: insert proper C++ library support
16085         ld_shlibs_CXX=no
16086         ;;
16087     esac
16088     ;;
16089   solaris*)
16090     case $cc_basename in
16091       CC)
16092         # Sun C++ 4.2, 5.x and Centerline C++
16093         no_undefined_flag_CXX=' -zdefs'
16094         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16095         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096         $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'
16097
16098         hardcode_libdir_flag_spec_CXX='-R$libdir'
16099         hardcode_shlibpath_var_CXX=no
16100         case $host_os in
16101           solaris2.0-5 | solaris2.0-5.*) ;;
16102           *)
16103             # The C++ compiler is used as linker so we must use $wl
16104             # flag to pass the commands to the underlying system
16105             # linker.
16106             # Supported since Solaris 2.6 (maybe 2.5.1?)
16107             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16108             ;;
16109         esac
16110         link_all_deplibs_CXX=yes
16111
16112         # Commands to make compiler produce verbose output that lists
16113         # what "hidden" libraries, object files and flags are used when
16114         # linking a shared library.
16115         #
16116         # There doesn't appear to be a way to prevent this compiler from
16117         # explicitly linking system object files so we need to strip them
16118         # from the output so that they don't get included in the library
16119         # dependencies.
16120         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'
16121
16122         # Archives containing C++ object files must be created using
16123         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16124         # necessary to make sure instantiated templates are included
16125         # in the archive.
16126         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16127         ;;
16128       gcx)
16129         # Green Hills C++ Compiler
16130         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16131
16132         # The C++ compiler must be used to create the archive.
16133         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16134         ;;
16135       *)
16136         # GNU C++ compiler with Solaris linker
16137         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16138           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16139           if $CC --version | grep -v '^2\.7' > /dev/null; then
16140             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16141             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16143
16144             # Commands to make compiler produce verbose output that lists
16145             # what "hidden" libraries, object files and flags are used when
16146             # linking a shared library.
16147             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16148           else
16149             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16150             # platform.
16151             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16152             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16153                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16154
16155             # Commands to make compiler produce verbose output that lists
16156             # what "hidden" libraries, object files and flags are used when
16157             # linking a shared library.
16158             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16159           fi
16160
16161           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16162         fi
16163         ;;
16164     esac
16165     ;;
16166   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16167     archive_cmds_need_lc_CXX=no
16168     ;;
16169   tandem*)
16170     case $cc_basename in
16171       NCC)
16172         # NonStop-UX NCC 3.20
16173         # FIXME: insert proper C++ library support
16174         ld_shlibs_CXX=no
16175         ;;
16176       *)
16177         # FIXME: insert proper C++ library support
16178         ld_shlibs_CXX=no
16179         ;;
16180     esac
16181     ;;
16182   vxworks*)
16183     # FIXME: insert proper C++ library support
16184     ld_shlibs_CXX=no
16185     ;;
16186   *)
16187     # FIXME: insert proper C++ library support
16188     ld_shlibs_CXX=no
16189     ;;
16190 esac
16191 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16192 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16193 test "$ld_shlibs_CXX" = no && can_build_shared=no
16194
16195 GCC_CXX="$GXX"
16196 LD_CXX="$LD"
16197
16198
16199 cat > conftest.$ac_ext <<EOF
16200 class Foo
16201 {
16202 public:
16203   Foo (void) { a = 0; }
16204 private:
16205   int a;
16206 };
16207 EOF
16208
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210   (eval $ac_compile) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; then
16214   # Parse the compiler output and extract the necessary
16215   # objects, libraries and library flags.
16216
16217   # Sentinel used to keep track of whether or not we are before
16218   # the conftest object file.
16219   pre_test_object_deps_done=no
16220
16221   # The `*' in the case matches for architectures that use `case' in
16222   # $output_verbose_cmd can trigger glob expansion during the loop
16223   # eval without this substitution.
16224   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16225
16226   for p in `eval $output_verbose_link_cmd`; do
16227     case $p in
16228
16229     -L* | -R* | -l*)
16230        # Some compilers place space between "-{L,R}" and the path.
16231        # Remove the space.
16232        if test $p = "-L" \
16233           || test $p = "-R"; then
16234          prev=$p
16235          continue
16236        else
16237          prev=
16238        fi
16239
16240        if test "$pre_test_object_deps_done" = no; then
16241          case $p in
16242          -L* | -R*)
16243            # Internal compiler library paths should come after those
16244            # provided the user.  The postdeps already come after the
16245            # user supplied libs so there is no need to process them.
16246            if test -z "$compiler_lib_search_path_CXX"; then
16247              compiler_lib_search_path_CXX="${prev}${p}"
16248            else
16249              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16250            fi
16251            ;;
16252          # The "-l" case would never come before the object being
16253          # linked, so don't bother handling this case.
16254          esac
16255        else
16256          if test -z "$postdeps_CXX"; then
16257            postdeps_CXX="${prev}${p}"
16258          else
16259            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16260          fi
16261        fi
16262        ;;
16263
16264     *.$objext)
16265        # This assumes that the test object file only shows up
16266        # once in the compiler output.
16267        if test "$p" = "conftest.$objext"; then
16268          pre_test_object_deps_done=yes
16269          continue
16270        fi
16271
16272        if test "$pre_test_object_deps_done" = no; then
16273          if test -z "$predep_objects_CXX"; then
16274            predep_objects_CXX="$p"
16275          else
16276            predep_objects_CXX="$predep_objects_CXX $p"
16277          fi
16278        else
16279          if test -z "$postdep_objects_CXX"; then
16280            postdep_objects_CXX="$p"
16281          else
16282            postdep_objects_CXX="$postdep_objects_CXX $p"
16283          fi
16284        fi
16285        ;;
16286
16287     *) ;; # Ignore the rest.
16288
16289     esac
16290   done
16291
16292   # Clean up.
16293   rm -f a.out a.exe
16294 else
16295   echo "libtool.m4: error: problem compiling CXX test program"
16296 fi
16297
16298 $rm -f confest.$objext
16299
16300 case " $postdeps_CXX " in
16301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16302 esac
16303
16304 lt_prog_compiler_wl_CXX=
16305 lt_prog_compiler_pic_CXX=
16306 lt_prog_compiler_static_CXX=
16307
16308 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16310
16311   # C++ specific cases for pic, static, wl, etc.
16312   if test "$GXX" = yes; then
16313     lt_prog_compiler_wl_CXX='-Wl,'
16314     lt_prog_compiler_static_CXX='-static'
16315
16316     case $host_os in
16317     aix*)
16318       # All AIX code is PIC.
16319       if test "$host_cpu" = ia64; then
16320         # AIX 5 now supports IA64 processor
16321         lt_prog_compiler_static_CXX='-Bstatic'
16322       fi
16323       ;;
16324     amigaos*)
16325       # FIXME: we need at least 68020 code to build shared libraries, but
16326       # adding the `-m68020' flag to GCC prevents building anything better,
16327       # like `-m68040'.
16328       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16329       ;;
16330     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16331       # PIC is the default for these OSes.
16332       ;;
16333     mingw* | os2* | pw32*)
16334       # This hack is so that the source file can tell whether it is being
16335       # built for inclusion in a dll (and should export symbols for example).
16336       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16337       ;;
16338     darwin* | rhapsody*)
16339       # PIC is the default on this platform
16340       # Common symbols not allowed in MH_DYLIB files
16341       lt_prog_compiler_pic_CXX='-fno-common'
16342       ;;
16343     *djgpp*)
16344       # DJGPP does not support shared libraries at all
16345       lt_prog_compiler_pic_CXX=
16346       ;;
16347     sysv4*MP*)
16348       if test -d /usr/nec; then
16349         lt_prog_compiler_pic_CXX=-Kconform_pic
16350       fi
16351       ;;
16352     hpux*)
16353       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354       # not for PA HP-UX.
16355       case "$host_cpu" in
16356       hppa*64*|ia64*)
16357         ;;
16358       *)
16359         lt_prog_compiler_pic_CXX='-fPIC'
16360         ;;
16361       esac
16362       ;;
16363     *)
16364       lt_prog_compiler_pic_CXX='-fPIC'
16365       ;;
16366     esac
16367   else
16368     case $host_os in
16369       aix4* | aix5*)
16370         # All AIX code is PIC.
16371         if test "$host_cpu" = ia64; then
16372           # AIX 5 now supports IA64 processor
16373           lt_prog_compiler_static_CXX='-Bstatic'
16374         else
16375           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16376         fi
16377         ;;
16378       chorus*)
16379         case $cc_basename in
16380         cxch68)
16381           # Green Hills C++ Compiler
16382           # _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"
16383           ;;
16384         esac
16385         ;;
16386        darwin*)
16387          # PIC is the default on this platform
16388          # Common symbols not allowed in MH_DYLIB files
16389          case "$cc_basename" in
16390            xlc*)
16391            lt_prog_compiler_pic_CXX='-qnocommon'
16392            lt_prog_compiler_wl_CXX='-Wl,'
16393            ;;
16394          esac
16395        ;;
16396       dgux*)
16397         case $cc_basename in
16398           ec++)
16399             lt_prog_compiler_pic_CXX='-KPIC'
16400             ;;
16401           ghcx)
16402             # Green Hills C++ Compiler
16403             lt_prog_compiler_pic_CXX='-pic'
16404             ;;
16405           *)
16406             ;;
16407         esac
16408         ;;
16409       freebsd* | kfreebsd*-gnu)
16410         # FreeBSD uses GNU C++
16411         ;;
16412       hpux9* | hpux10* | hpux11*)
16413         case $cc_basename in
16414           CC)
16415             lt_prog_compiler_wl_CXX='-Wl,'
16416             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16417             if test "$host_cpu" != ia64; then
16418               lt_prog_compiler_pic_CXX='+Z'
16419             fi
16420             ;;
16421           aCC)
16422             lt_prog_compiler_wl_CXX='-Wl,'
16423             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16424             case "$host_cpu" in
16425             hppa*64*|ia64*)
16426               # +Z the default
16427               ;;
16428             *)
16429               lt_prog_compiler_pic_CXX='+Z'
16430               ;;
16431             esac
16432             ;;
16433           *)
16434             ;;
16435         esac
16436         ;;
16437       irix5* | irix6* | nonstopux*)
16438         case $cc_basename in
16439           CC)
16440             lt_prog_compiler_wl_CXX='-Wl,'
16441             lt_prog_compiler_static_CXX='-non_shared'
16442             # CC pic flag -KPIC is the default.
16443             ;;
16444           *)
16445             ;;
16446         esac
16447         ;;
16448       linux*)
16449         case $cc_basename in
16450           KCC)
16451             # KAI C++ Compiler
16452             lt_prog_compiler_wl_CXX='--backend -Wl,'
16453             lt_prog_compiler_pic_CXX='-fPIC'
16454             ;;
16455           icpc)
16456             # Intel C++
16457             lt_prog_compiler_wl_CXX='-Wl,'
16458             lt_prog_compiler_pic_CXX='-KPIC'
16459             lt_prog_compiler_static_CXX='-static'
16460             ;;
16461           cxx)
16462             # Compaq C++
16463             # Make sure the PIC flag is empty.  It appears that all Alpha
16464             # Linux and Compaq Tru64 Unix objects are PIC.
16465             lt_prog_compiler_pic_CXX=
16466             lt_prog_compiler_static_CXX='-non_shared'
16467             ;;
16468           *)
16469             ;;
16470         esac
16471         ;;
16472       lynxos*)
16473         ;;
16474       m88k*)
16475         ;;
16476       mvs*)
16477         case $cc_basename in
16478           cxx)
16479             lt_prog_compiler_pic_CXX='-W c,exportall'
16480             ;;
16481           *)
16482             ;;
16483         esac
16484         ;;
16485       netbsd*)
16486         ;;
16487       osf3* | osf4* | osf5*)
16488         case $cc_basename in
16489           KCC)
16490             lt_prog_compiler_wl_CXX='--backend -Wl,'
16491             ;;
16492           RCC)
16493             # Rational C++ 2.4.1
16494             lt_prog_compiler_pic_CXX='-pic'
16495             ;;
16496           cxx)
16497             # Digital/Compaq C++
16498             lt_prog_compiler_wl_CXX='-Wl,'
16499             # Make sure the PIC flag is empty.  It appears that all Alpha
16500             # Linux and Compaq Tru64 Unix objects are PIC.
16501             lt_prog_compiler_pic_CXX=
16502             lt_prog_compiler_static_CXX='-non_shared'
16503             ;;
16504           *)
16505             ;;
16506         esac
16507         ;;
16508       psos*)
16509         ;;
16510       sco*)
16511         case $cc_basename in
16512           CC)
16513             lt_prog_compiler_pic_CXX='-fPIC'
16514             ;;
16515           *)
16516             ;;
16517         esac
16518         ;;
16519       solaris*)
16520         case $cc_basename in
16521           CC)
16522             # Sun C++ 4.2, 5.x and Centerline C++
16523             lt_prog_compiler_pic_CXX='-KPIC'
16524             lt_prog_compiler_static_CXX='-Bstatic'
16525             lt_prog_compiler_wl_CXX='-Qoption ld '
16526             ;;
16527           gcx)
16528             # Green Hills C++ Compiler
16529             lt_prog_compiler_pic_CXX='-PIC'
16530             ;;
16531           *)
16532             ;;
16533         esac
16534         ;;
16535       sunos4*)
16536         case $cc_basename in
16537           CC)
16538             # Sun C++ 4.x
16539             lt_prog_compiler_pic_CXX='-pic'
16540             lt_prog_compiler_static_CXX='-Bstatic'
16541             ;;
16542           lcc)
16543             # Lucid
16544             lt_prog_compiler_pic_CXX='-pic'
16545             ;;
16546           *)
16547             ;;
16548         esac
16549         ;;
16550       tandem*)
16551         case $cc_basename in
16552           NCC)
16553             # NonStop-UX NCC 3.20
16554             lt_prog_compiler_pic_CXX='-KPIC'
16555             ;;
16556           *)
16557             ;;
16558         esac
16559         ;;
16560       unixware*)
16561         ;;
16562       vxworks*)
16563         ;;
16564       *)
16565         lt_prog_compiler_can_build_shared_CXX=no
16566         ;;
16567     esac
16568   fi
16569
16570 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16571 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16572
16573 #
16574 # Check to make sure the PIC flag actually works.
16575 #
16576 if test -n "$lt_prog_compiler_pic_CXX"; then
16577
16578 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16580 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16581   echo $ECHO_N "(cached) $ECHO_C" >&6
16582 else
16583   lt_prog_compiler_pic_works_CXX=no
16584   ac_outfile=conftest.$ac_objext
16585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16586    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16587    # Insert the option either (1) after the last *FLAGS variable, or
16588    # (2) before a word containing "conftest.", or (3) at the end.
16589    # Note that $ac_compile itself does not contain backslashes and begins
16590    # with a dollar sign (not a hyphen), so the echo should work correctly.
16591    # The option is referenced via a variable to avoid confusing sed.
16592    lt_compile=`echo "$ac_compile" | $SED \
16593    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16595    -e 's:$: $lt_compiler_flag:'`
16596    (eval echo "\"\$as_me:16596: $lt_compile\"" >&5)
16597    (eval "$lt_compile" 2>conftest.err)
16598    ac_status=$?
16599    cat conftest.err >&5
16600    echo "$as_me:16600: \$? = $ac_status" >&5
16601    if (exit $ac_status) && test -s "$ac_outfile"; then
16602      # The compiler can only warn and ignore the option if not recognized
16603      # So say no if there are warnings
16604      if test ! -s conftest.err; then
16605        lt_prog_compiler_pic_works_CXX=yes
16606      fi
16607    fi
16608    $rm conftest*
16609
16610 fi
16611 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16612 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16613
16614 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16615     case $lt_prog_compiler_pic_CXX in
16616      "" | " "*) ;;
16617      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16618      esac
16619 else
16620     lt_prog_compiler_pic_CXX=
16621      lt_prog_compiler_can_build_shared_CXX=no
16622 fi
16623
16624 fi
16625 case "$host_os" in
16626   # For platforms which do not support PIC, -DPIC is meaningless:
16627   *djgpp*)
16628     lt_prog_compiler_pic_CXX=
16629     ;;
16630   *)
16631     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16632     ;;
16633 esac
16634
16635 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16636 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16637 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   lt_cv_prog_compiler_c_o_CXX=no
16641    $rm -r conftest 2>/dev/null
16642    mkdir conftest
16643    cd conftest
16644    mkdir out
16645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16646
16647    lt_compiler_flag="-o out/conftest2.$ac_objext"
16648    # Insert the option either (1) after the last *FLAGS variable, or
16649    # (2) before a word containing "conftest.", or (3) at the end.
16650    # Note that $ac_compile itself does not contain backslashes and begins
16651    # with a dollar sign (not a hyphen), so the echo should work correctly.
16652    lt_compile=`echo "$ac_compile" | $SED \
16653    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655    -e 's:$: $lt_compiler_flag:'`
16656    (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
16657    (eval "$lt_compile" 2>out/conftest.err)
16658    ac_status=$?
16659    cat out/conftest.err >&5
16660    echo "$as_me:16660: \$? = $ac_status" >&5
16661    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16662    then
16663      # The compiler can only warn and ignore the option if not recognized
16664      # So say no if there are warnings
16665      if test ! -s out/conftest.err; then
16666        lt_cv_prog_compiler_c_o_CXX=yes
16667      fi
16668    fi
16669    chmod u+w .
16670    $rm conftest*
16671    # SGI C++ compiler will create directory out/ii_files/ for
16672    # template instantiation
16673    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16674    $rm out/* && rmdir out
16675    cd ..
16676    rmdir conftest
16677    $rm conftest*
16678
16679 fi
16680 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16681 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16682
16683
16684 hard_links="nottested"
16685 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16686   # do not overwrite the value of need_locks provided by the user
16687   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16688 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16689   hard_links=yes
16690   $rm conftest*
16691   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16692   touch conftest.a
16693   ln conftest.a conftest.b 2>&5 || hard_links=no
16694   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16695   echo "$as_me:$LINENO: result: $hard_links" >&5
16696 echo "${ECHO_T}$hard_links" >&6
16697   if test "$hard_links" = no; then
16698     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16699 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16700     need_locks=warn
16701   fi
16702 else
16703   need_locks=no
16704 fi
16705
16706 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16707 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16708
16709   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16710   case $host_os in
16711   aix4* | aix5*)
16712     # If we're using GNU nm, then we don't want the "-C" option.
16713     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16714     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16715       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'
16716     else
16717       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'
16718     fi
16719     ;;
16720   pw32*)
16721     export_symbols_cmds_CXX="$ltdll_cmds"
16722   ;;
16723   cygwin* | mingw*)
16724     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16725   ;;
16726   *)
16727     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16728   ;;
16729   esac
16730
16731 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16732 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16733 test "$ld_shlibs_CXX" = no && can_build_shared=no
16734
16735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16736 if test "$GCC" = yes; then
16737   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16738 fi
16739
16740 #
16741 # Do we need to explicitly link libc?
16742 #
16743 case "x$archive_cmds_need_lc_CXX" in
16744 x|xyes)
16745   # Assume -lc should be added
16746   archive_cmds_need_lc_CXX=yes
16747
16748   if test "$enable_shared" = yes && test "$GCC" = yes; then
16749     case $archive_cmds_CXX in
16750     *'~'*)
16751       # FIXME: we may have to deal with multi-command sequences.
16752       ;;
16753     '$CC '*)
16754       # Test whether the compiler implicitly links with -lc since on some
16755       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16756       # to ld, don't add -lc before -lgcc.
16757       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16758 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16759       $rm conftest*
16760       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16761
16762       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763   (eval $ac_compile) 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); } 2>conftest.err; then
16767         soname=conftest
16768         lib=conftest
16769         libobjs=conftest.$ac_objext
16770         deplibs=
16771         wl=$lt_prog_compiler_wl_CXX
16772         compiler_flags=-v
16773         linker_flags=-v
16774         verstring=
16775         output_objdir=.
16776         libname=conftest
16777         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16778         allow_undefined_flag_CXX=
16779         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16780   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }
16784         then
16785           archive_cmds_need_lc_CXX=no
16786         else
16787           archive_cmds_need_lc_CXX=yes
16788         fi
16789         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16790       else
16791         cat conftest.err 1>&5
16792       fi
16793       $rm conftest*
16794       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16795 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16796       ;;
16797     esac
16798   fi
16799   ;;
16800 esac
16801
16802 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16804 library_names_spec=
16805 libname_spec='lib$name'
16806 soname_spec=
16807 shrext_cmds=".so"
16808 postinstall_cmds=
16809 postuninstall_cmds=
16810 finish_cmds=
16811 finish_eval=
16812 shlibpath_var=
16813 shlibpath_overrides_runpath=unknown
16814 version_type=none
16815 dynamic_linker="$host_os ld.so"
16816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16817 if test "$GCC" = yes; then
16818   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16819   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16820     # if the path contains ";" then we assume it to be the separator
16821     # otherwise default to the standard path separator (i.e. ":") - it is
16822     # assumed that no part of a normal pathname contains ";" but that should
16823     # okay in the real world where ";" in dirpaths is itself problematic.
16824     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16825   else
16826     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16827   fi
16828 else
16829   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16830 fi
16831 need_lib_prefix=unknown
16832 hardcode_into_libs=no
16833
16834 # when you set need_version to no, make sure it does not cause -set_version
16835 # flags to be left without arguments
16836 need_version=unknown
16837
16838 case $host_os in
16839 aix3*)
16840   version_type=linux
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16842   shlibpath_var=LIBPATH
16843
16844   # AIX 3 has no versioning support, so we append a major version to the name.
16845   soname_spec='${libname}${release}${shared_ext}$major'
16846   ;;
16847
16848 aix4* | aix5*)
16849   version_type=linux
16850   need_lib_prefix=no
16851   need_version=no
16852   hardcode_into_libs=yes
16853   if test "$host_cpu" = ia64; then
16854     # AIX 5 supports IA64
16855     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16856     shlibpath_var=LD_LIBRARY_PATH
16857   else
16858     # With GCC up to 2.95.x, collect2 would create an import file
16859     # for dependence libraries.  The import file would start with
16860     # the line `#! .'.  This would cause the generated library to
16861     # depend on `.', always an invalid library.  This was fixed in
16862     # development snapshots of GCC prior to 3.0.
16863     case $host_os in
16864       aix4 | aix4.[01] | aix4.[01].*)
16865       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16866            echo ' yes '
16867            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16868         :
16869       else
16870         can_build_shared=no
16871       fi
16872       ;;
16873     esac
16874     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16875     # soname into executable. Probably we can add versioning support to
16876     # collect2, so additional links can be useful in future.
16877     if test "$aix_use_runtimelinking" = yes; then
16878       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16879       # instead of lib<name>.a to let people know that these are not
16880       # typical AIX shared libraries.
16881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882     else
16883       # We preserve .a as extension for shared libraries through AIX4.2
16884       # and later when we are not doing run time linking.
16885       library_names_spec='${libname}${release}.a $libname.a'
16886       soname_spec='${libname}${release}${shared_ext}$major'
16887     fi
16888     shlibpath_var=LIBPATH
16889   fi
16890   ;;
16891
16892 amigaos*)
16893   library_names_spec='$libname.ixlibrary $libname.a'
16894   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16895   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'
16896   ;;
16897
16898 beos*)
16899   library_names_spec='${libname}${shared_ext}'
16900   dynamic_linker="$host_os ld.so"
16901   shlibpath_var=LIBRARY_PATH
16902   ;;
16903
16904 bsdi[45]*)
16905   version_type=linux
16906   need_version=no
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16912   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16913   # the default ld.so.conf also contains /usr/contrib/lib and
16914   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16915   # libtool to hard-code these into programs
16916   ;;
16917
16918 cygwin* | mingw* | pw32*)
16919   version_type=windows
16920   shrext_cmds=".dll"
16921   need_version=no
16922   need_lib_prefix=no
16923
16924   case $GCC,$host_os in
16925   yes,cygwin* | yes,mingw* | yes,pw32*)
16926     library_names_spec='$libname.dll.a'
16927     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16928     postinstall_cmds='base_file=`basename \${file}`~
16929       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16930       dldir=$destdir/`dirname \$dlpath`~
16931       test -d \$dldir || mkdir -p \$dldir~
16932       $install_prog $dir/$dlname \$dldir/$dlname'
16933     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16934       dlpath=$dir/\$dldll~
16935        $rm \$dlpath'
16936     shlibpath_overrides_runpath=yes
16937
16938     case $host_os in
16939     cygwin*)
16940       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16941       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16942       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16943       ;;
16944     mingw*)
16945       # MinGW DLLs use traditional 'lib' prefix
16946       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16947       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16948       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16949         # It is most probably a Windows format PATH printed by
16950         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16951         # path with ; separators, and with drive letters. We can handle the
16952         # drive letters (cygwin fileutils understands them), so leave them,
16953         # especially as we might pass files found there to a mingw objdump,
16954         # which wouldn't understand a cygwinified path. Ahh.
16955         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16956       else
16957         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16958       fi
16959       ;;
16960     pw32*)
16961       # pw32 DLLs use 'pw' prefix rather than 'lib'
16962       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16963       ;;
16964     esac
16965     ;;
16966
16967   *)
16968     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16969     ;;
16970   esac
16971   dynamic_linker='Win32 ld.exe'
16972   # FIXME: first we should search . and the directory the executable is in
16973   shlibpath_var=PATH
16974   ;;
16975
16976 darwin* | rhapsody*)
16977   dynamic_linker="$host_os dyld"
16978   version_type=darwin
16979   need_lib_prefix=no
16980   need_version=no
16981   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16982   soname_spec='${libname}${release}${major}$shared_ext'
16983   shlibpath_overrides_runpath=yes
16984   shlibpath_var=DYLD_LIBRARY_PATH
16985   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16986   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16987   if test "$GCC" = yes; then
16988     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"`
16989   else
16990     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16991   fi
16992   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16993   ;;
16994
16995 dgux*)
16996   version_type=linux
16997   need_lib_prefix=no
16998   need_version=no
16999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17000   soname_spec='${libname}${release}${shared_ext}$major'
17001   shlibpath_var=LD_LIBRARY_PATH
17002   ;;
17003
17004 freebsd1*)
17005   dynamic_linker=no
17006   ;;
17007
17008 kfreebsd*-gnu)
17009   version_type=linux
17010   need_lib_prefix=no
17011   need_version=no
17012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17013   soname_spec='${libname}${release}${shared_ext}$major'
17014   shlibpath_var=LD_LIBRARY_PATH
17015   shlibpath_overrides_runpath=no
17016   hardcode_into_libs=yes
17017   dynamic_linker='GNU ld.so'
17018   ;;
17019
17020 freebsd*)
17021   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17022   version_type=freebsd-$objformat
17023   case $version_type in
17024     freebsd-elf*)
17025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17026       need_version=no
17027       need_lib_prefix=no
17028       ;;
17029     freebsd-*)
17030       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17031       need_version=yes
17032       ;;
17033   esac
17034   shlibpath_var=LD_LIBRARY_PATH
17035   case $host_os in
17036   freebsd2*)
17037     shlibpath_overrides_runpath=yes
17038     ;;
17039   freebsd3.01* | freebsdelf3.01*)
17040     shlibpath_overrides_runpath=yes
17041     hardcode_into_libs=yes
17042     ;;
17043   *) # from 3.2 on
17044     shlibpath_overrides_runpath=no
17045     hardcode_into_libs=yes
17046     ;;
17047   esac
17048   ;;
17049
17050 gnu*)
17051   version_type=linux
17052   need_lib_prefix=no
17053   need_version=no
17054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17055   soname_spec='${libname}${release}${shared_ext}$major'
17056   shlibpath_var=LD_LIBRARY_PATH
17057   hardcode_into_libs=yes
17058   ;;
17059
17060 hpux9* | hpux10* | hpux11*)
17061   # Give a soname corresponding to the major version so that dld.sl refuses to
17062   # link against other versions.
17063   version_type=sunos
17064   need_lib_prefix=no
17065   need_version=no
17066   case "$host_cpu" in
17067   ia64*)
17068     shrext_cmds='.so'
17069     hardcode_into_libs=yes
17070     dynamic_linker="$host_os dld.so"
17071     shlibpath_var=LD_LIBRARY_PATH
17072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074     soname_spec='${libname}${release}${shared_ext}$major'
17075     if test "X$HPUX_IA64_MODE" = X32; then
17076       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17077     else
17078       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17079     fi
17080     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17081     ;;
17082    hppa*64*)
17083      shrext_cmds='.sl'
17084      hardcode_into_libs=yes
17085      dynamic_linker="$host_os dld.sl"
17086      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17087      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17088      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089      soname_spec='${libname}${release}${shared_ext}$major'
17090      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17091      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17092      ;;
17093    *)
17094     shrext_cmds='.sl'
17095     dynamic_linker="$host_os dld.sl"
17096     shlibpath_var=SHLIB_PATH
17097     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099     soname_spec='${libname}${release}${shared_ext}$major'
17100     ;;
17101   esac
17102   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17103   postinstall_cmds='chmod 555 $lib'
17104   ;;
17105
17106 irix5* | irix6* | nonstopux*)
17107   case $host_os in
17108     nonstopux*) version_type=nonstopux ;;
17109     *)
17110         if test "$lt_cv_prog_gnu_ld" = yes; then
17111                 version_type=linux
17112         else
17113                 version_type=irix
17114         fi ;;
17115   esac
17116   need_lib_prefix=no
17117   need_version=no
17118   soname_spec='${libname}${release}${shared_ext}$major'
17119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17120   case $host_os in
17121   irix5* | nonstopux*)
17122     libsuff= shlibsuff=
17123     ;;
17124   *)
17125     case $LD in # libtool.m4 will add one of these switches to LD
17126     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17127       libsuff= shlibsuff= libmagic=32-bit;;
17128     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17129       libsuff=32 shlibsuff=N32 libmagic=N32;;
17130     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17131       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17132     *) libsuff= shlibsuff= libmagic=never-match;;
17133     esac
17134     ;;
17135   esac
17136   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17137   shlibpath_overrides_runpath=no
17138   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17139   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17140   hardcode_into_libs=yes
17141   ;;
17142
17143 # No shared lib support for Linux oldld, aout, or coff.
17144 linux*oldld* | linux*aout* | linux*coff*)
17145   dynamic_linker=no
17146   ;;
17147
17148 # This must be Linux ELF.
17149 linux*)
17150   version_type=linux
17151   need_lib_prefix=no
17152   need_version=no
17153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154   soname_spec='${libname}${release}${shared_ext}$major'
17155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17156   shlibpath_var=LD_LIBRARY_PATH
17157   shlibpath_overrides_runpath=no
17158   # This implies no fast_install, which is unacceptable.
17159   # Some rework will be needed to allow for fast_install
17160   # before this can be enabled.
17161   hardcode_into_libs=yes
17162
17163   # Append ld.so.conf contents to the search path
17164   if test -f /etc/ld.so.conf; then
17165     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17166     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17167   fi
17168
17169   # We used to test for /lib/ld.so.1 and disable shared libraries on
17170   # powerpc, because MkLinux only supported shared libraries with the
17171   # GNU dynamic linker.  Since this was broken with cross compilers,
17172   # most powerpc-linux boxes support dynamic linking these days and
17173   # people can always --disable-shared, the test was removed, and we
17174   # assume the GNU/Linux dynamic linker is in use.
17175   dynamic_linker='GNU/Linux ld.so'
17176   ;;
17177
17178 knetbsd*-gnu)
17179   version_type=linux
17180   need_lib_prefix=no
17181   need_version=no
17182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17183   soname_spec='${libname}${release}${shared_ext}$major'
17184   shlibpath_var=LD_LIBRARY_PATH
17185   shlibpath_overrides_runpath=no
17186   hardcode_into_libs=yes
17187   dynamic_linker='GNU ld.so'
17188   ;;
17189
17190 netbsd*)
17191   version_type=sunos
17192   need_lib_prefix=no
17193   need_version=no
17194   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197     dynamic_linker='NetBSD (a.out) ld.so'
17198   else
17199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200     soname_spec='${libname}${release}${shared_ext}$major'
17201     dynamic_linker='NetBSD ld.elf_so'
17202   fi
17203   shlibpath_var=LD_LIBRARY_PATH
17204   shlibpath_overrides_runpath=yes
17205   hardcode_into_libs=yes
17206   ;;
17207
17208 newsos6)
17209   version_type=linux
17210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211   shlibpath_var=LD_LIBRARY_PATH
17212   shlibpath_overrides_runpath=yes
17213   ;;
17214
17215 nto-qnx*)
17216   version_type=linux
17217   need_lib_prefix=no
17218   need_version=no
17219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   shlibpath_var=LD_LIBRARY_PATH
17222   shlibpath_overrides_runpath=yes
17223   ;;
17224
17225 openbsd*)
17226   version_type=sunos
17227   need_lib_prefix=no
17228   need_version=no
17229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231   shlibpath_var=LD_LIBRARY_PATH
17232   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17233     case $host_os in
17234       openbsd2.[89] | openbsd2.[89].*)
17235         shlibpath_overrides_runpath=no
17236         ;;
17237       *)
17238         shlibpath_overrides_runpath=yes
17239         ;;
17240       esac
17241   else
17242     shlibpath_overrides_runpath=yes
17243   fi
17244   ;;
17245
17246 os2*)
17247   libname_spec='$name'
17248   shrext_cmds=".dll"
17249   need_lib_prefix=no
17250   library_names_spec='$libname${shared_ext} $libname.a'
17251   dynamic_linker='OS/2 ld.exe'
17252   shlibpath_var=LIBPATH
17253   ;;
17254
17255 osf3* | osf4* | osf5*)
17256   version_type=osf
17257   need_lib_prefix=no
17258   need_version=no
17259   soname_spec='${libname}${release}${shared_ext}$major'
17260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261   shlibpath_var=LD_LIBRARY_PATH
17262   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17264   ;;
17265
17266 sco3.2v5*)
17267   version_type=osf
17268   soname_spec='${libname}${release}${shared_ext}$major'
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270   shlibpath_var=LD_LIBRARY_PATH
17271   ;;
17272
17273 solaris*)
17274   version_type=linux
17275   need_lib_prefix=no
17276   need_version=no
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278   soname_spec='${libname}${release}${shared_ext}$major'
17279   shlibpath_var=LD_LIBRARY_PATH
17280   shlibpath_overrides_runpath=yes
17281   hardcode_into_libs=yes
17282   # ldd complains unless libraries are executable
17283   postinstall_cmds='chmod +x $lib'
17284   ;;
17285
17286 sunos4*)
17287   version_type=sunos
17288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17289   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17290   shlibpath_var=LD_LIBRARY_PATH
17291   shlibpath_overrides_runpath=yes
17292   if test "$with_gnu_ld" = yes; then
17293     need_lib_prefix=no
17294   fi
17295   need_version=yes
17296   ;;
17297
17298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17299   version_type=linux
17300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301   soname_spec='${libname}${release}${shared_ext}$major'
17302   shlibpath_var=LD_LIBRARY_PATH
17303   case $host_vendor in
17304     sni)
17305       shlibpath_overrides_runpath=no
17306       need_lib_prefix=no
17307       export_dynamic_flag_spec='${wl}-Blargedynsym'
17308       runpath_var=LD_RUN_PATH
17309       ;;
17310     siemens)
17311       need_lib_prefix=no
17312       ;;
17313     motorola)
17314       need_lib_prefix=no
17315       need_version=no
17316       shlibpath_overrides_runpath=no
17317       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17318       ;;
17319   esac
17320   ;;
17321
17322 sysv4*MP*)
17323   if test -d /usr/nec ;then
17324     version_type=linux
17325     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17326     soname_spec='$libname${shared_ext}.$major'
17327     shlibpath_var=LD_LIBRARY_PATH
17328   fi
17329   ;;
17330
17331 uts4*)
17332   version_type=linux
17333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334   soname_spec='${libname}${release}${shared_ext}$major'
17335   shlibpath_var=LD_LIBRARY_PATH
17336   ;;
17337
17338 *)
17339   dynamic_linker=no
17340   ;;
17341 esac
17342 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17343 echo "${ECHO_T}$dynamic_linker" >&6
17344 test "$dynamic_linker" = no && can_build_shared=no
17345
17346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17348 hardcode_action_CXX=
17349 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17350    test -n "$runpath_var_CXX" || \
17351    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17352
17353   # We can hardcode non-existant directories.
17354   if test "$hardcode_direct_CXX" != no &&
17355      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17356      # have to relink, otherwise we might link with an installed library
17357      # when we should be linking with a yet-to-be-installed one
17358      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17359      test "$hardcode_minus_L_CXX" != no; then
17360     # Linking always hardcodes the temporary library directory.
17361     hardcode_action_CXX=relink
17362   else
17363     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17364     hardcode_action_CXX=immediate
17365   fi
17366 else
17367   # We cannot hardcode anything, or else we can only hardcode existing
17368   # directories.
17369   hardcode_action_CXX=unsupported
17370 fi
17371 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17372 echo "${ECHO_T}$hardcode_action_CXX" >&6
17373
17374 if test "$hardcode_action_CXX" = relink; then
17375   # Fast installation is not supported
17376   enable_fast_install=no
17377 elif test "$shlibpath_overrides_runpath" = yes ||
17378      test "$enable_shared" = no; then
17379   # Fast installation is not necessary
17380   enable_fast_install=needless
17381 fi
17382
17383 striplib=
17384 old_striplib=
17385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17388   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17389   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17390   echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6
17392 else
17393 # FIXME - insert some real tests, host_os isn't really good enough
17394   case $host_os in
17395    darwin*)
17396        if test -n "$STRIP" ; then
17397          striplib="$STRIP -x"
17398          echo "$as_me:$LINENO: result: yes" >&5
17399 echo "${ECHO_T}yes" >&6
17400        else
17401   echo "$as_me:$LINENO: result: no" >&5
17402 echo "${ECHO_T}no" >&6
17403 fi
17404        ;;
17405    *)
17406   echo "$as_me:$LINENO: result: no" >&5
17407 echo "${ECHO_T}no" >&6
17408     ;;
17409   esac
17410 fi
17411
17412 if test "x$enable_dlopen" != xyes; then
17413   enable_dlopen=unknown
17414   enable_dlopen_self=unknown
17415   enable_dlopen_self_static=unknown
17416 else
17417   lt_cv_dlopen=no
17418   lt_cv_dlopen_libs=
17419
17420   case $host_os in
17421   beos*)
17422     lt_cv_dlopen="load_add_on"
17423     lt_cv_dlopen_libs=
17424     lt_cv_dlopen_self=yes
17425     ;;
17426
17427   mingw* | pw32*)
17428     lt_cv_dlopen="LoadLibrary"
17429     lt_cv_dlopen_libs=
17430    ;;
17431
17432   cygwin*)
17433     lt_cv_dlopen="dlopen"
17434     lt_cv_dlopen_libs=
17435    ;;
17436
17437   darwin*)
17438   # if libdl is installed we need to link against it
17439     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17442   echo $ECHO_N "(cached) $ECHO_C" >&6
17443 else
17444   ac_check_lib_save_LIBS=$LIBS
17445 LIBS="-ldl  $LIBS"
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452
17453 /* Override any gcc2 internal prototype to avoid an error.  */
17454 #ifdef __cplusplus
17455 extern "C"
17456 #endif
17457 /* We use char because int might match the return type of a gcc2
17458    builtin and then its argument prototype would still apply.  */
17459 char dlopen ();
17460 int
17461 main ()
17462 {
17463 dlopen ();
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470   (eval $ac_link) 2>conftest.er1
17471   ac_status=$?
17472   grep -v '^ *+' conftest.er1 >conftest.err
17473   rm -f conftest.er1
17474   cat conftest.err >&5
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); } &&
17477          { ac_try='test -z "$ac_cxx_werror_flag"
17478                          || test ! -s conftest.err'
17479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480   (eval $ac_try) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; } &&
17484          { ac_try='test -s conftest$ac_exeext'
17485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486   (eval $ac_try) 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }; }; then
17490   ac_cv_lib_dl_dlopen=yes
17491 else
17492   echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495 ac_cv_lib_dl_dlopen=no
17496 fi
17497 rm -f conftest.err conftest.$ac_objext \
17498       conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17500 fi
17501 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17503 if test $ac_cv_lib_dl_dlopen = yes; then
17504   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17505 else
17506
17507     lt_cv_dlopen="dyld"
17508     lt_cv_dlopen_libs=
17509     lt_cv_dlopen_self=yes
17510
17511 fi
17512
17513    ;;
17514
17515   *)
17516     echo "$as_me:$LINENO: checking for shl_load" >&5
17517 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17518 if test "${ac_cv_func_shl_load+set}" = set; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521   cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17529 #define shl_load innocuous_shl_load
17530
17531 /* System header to define __stub macros and hopefully few prototypes,
17532     which can conflict with char shl_load (); below.
17533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534     <limits.h> exists even on freestanding compilers.  */
17535
17536 #ifdef __STDC__
17537 # include <limits.h>
17538 #else
17539 # include <assert.h>
17540 #endif
17541
17542 #undef shl_load
17543
17544 /* Override any gcc2 internal prototype to avoid an error.  */
17545 #ifdef __cplusplus
17546 extern "C"
17547 {
17548 #endif
17549 /* We use char because int might match the return type of a gcc2
17550    builtin and then its argument prototype would still apply.  */
17551 char shl_load ();
17552 /* The GNU C library defines this for functions which it implements
17553     to always fail with ENOSYS.  Some functions are actually named
17554     something starting with __ and the normal name is an alias.  */
17555 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17556 choke me
17557 #else
17558 char (*f) () = shl_load;
17559 #endif
17560 #ifdef __cplusplus
17561 }
17562 #endif
17563
17564 int
17565 main ()
17566 {
17567 return f != shl_load;
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574   (eval $ac_link) 2>conftest.er1
17575   ac_status=$?
17576   grep -v '^ *+' conftest.er1 >conftest.err
17577   rm -f conftest.er1
17578   cat conftest.err >&5
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } &&
17581          { ac_try='test -z "$ac_cxx_werror_flag"
17582                          || test ! -s conftest.err'
17583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584   (eval $ac_try) 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; } &&
17588          { ac_try='test -s conftest$ac_exeext'
17589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590   (eval $ac_try) 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; }; then
17594   ac_cv_func_shl_load=yes
17595 else
17596   echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 ac_cv_func_shl_load=no
17600 fi
17601 rm -f conftest.err conftest.$ac_objext \
17602       conftest$ac_exeext conftest.$ac_ext
17603 fi
17604 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17606 if test $ac_cv_func_shl_load = yes; then
17607   lt_cv_dlopen="shl_load"
17608 else
17609   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17610 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17612   echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614   ac_check_lib_save_LIBS=$LIBS
17615 LIBS="-ldld  $LIBS"
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h.  */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h.  */
17622
17623 /* Override any gcc2 internal prototype to avoid an error.  */
17624 #ifdef __cplusplus
17625 extern "C"
17626 #endif
17627 /* We use char because int might match the return type of a gcc2
17628    builtin and then its argument prototype would still apply.  */
17629 char shl_load ();
17630 int
17631 main ()
17632 {
17633 shl_load ();
17634   ;
17635   return 0;
17636 }
17637 _ACEOF
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640   (eval $ac_link) 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } &&
17647          { ac_try='test -z "$ac_cxx_werror_flag"
17648                          || test ! -s conftest.err'
17649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650   (eval $ac_try) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; } &&
17654          { ac_try='test -s conftest$ac_exeext'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   ac_cv_lib_dld_shl_load=yes
17661 else
17662   echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 ac_cv_lib_dld_shl_load=no
17666 fi
17667 rm -f conftest.err conftest.$ac_objext \
17668       conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_check_lib_save_LIBS
17670 fi
17671 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17672 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17673 if test $ac_cv_lib_dld_shl_load = yes; then
17674   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17675 else
17676   echo "$as_me:$LINENO: checking for dlopen" >&5
17677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17678 if test "${ac_cv_func_dlopen+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681   cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h.  */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h.  */
17687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17689 #define dlopen innocuous_dlopen
17690
17691 /* System header to define __stub macros and hopefully few prototypes,
17692     which can conflict with char dlopen (); below.
17693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694     <limits.h> exists even on freestanding compilers.  */
17695
17696 #ifdef __STDC__
17697 # include <limits.h>
17698 #else
17699 # include <assert.h>
17700 #endif
17701
17702 #undef dlopen
17703
17704 /* Override any gcc2 internal prototype to avoid an error.  */
17705 #ifdef __cplusplus
17706 extern "C"
17707 {
17708 #endif
17709 /* We use char because int might match the return type of a gcc2
17710    builtin and then its argument prototype would still apply.  */
17711 char dlopen ();
17712 /* The GNU C library defines this for functions which it implements
17713     to always fail with ENOSYS.  Some functions are actually named
17714     something starting with __ and the normal name is an alias.  */
17715 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17716 choke me
17717 #else
17718 char (*f) () = dlopen;
17719 #endif
17720 #ifdef __cplusplus
17721 }
17722 #endif
17723
17724 int
17725 main ()
17726 {
17727 return f != dlopen;
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734   (eval $ac_link) 2>conftest.er1
17735   ac_status=$?
17736   grep -v '^ *+' conftest.er1 >conftest.err
17737   rm -f conftest.er1
17738   cat conftest.err >&5
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); } &&
17741          { ac_try='test -z "$ac_cxx_werror_flag"
17742                          || test ! -s conftest.err'
17743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744   (eval $ac_try) 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); }; } &&
17748          { ac_try='test -s conftest$ac_exeext'
17749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750   (eval $ac_try) 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; }; then
17754   ac_cv_func_dlopen=yes
17755 else
17756   echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17758
17759 ac_cv_func_dlopen=no
17760 fi
17761 rm -f conftest.err conftest.$ac_objext \
17762       conftest$ac_exeext conftest.$ac_ext
17763 fi
17764 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17766 if test $ac_cv_func_dlopen = yes; then
17767   lt_cv_dlopen="dlopen"
17768 else
17769   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17772   echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774   ac_check_lib_save_LIBS=$LIBS
17775 LIBS="-ldl  $LIBS"
17776 cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h.  */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h.  */
17782
17783 /* Override any gcc2 internal prototype to avoid an error.  */
17784 #ifdef __cplusplus
17785 extern "C"
17786 #endif
17787 /* We use char because int might match the return type of a gcc2
17788    builtin and then its argument prototype would still apply.  */
17789 char dlopen ();
17790 int
17791 main ()
17792 {
17793 dlopen ();
17794   ;
17795   return 0;
17796 }
17797 _ACEOF
17798 rm -f conftest.$ac_objext conftest$ac_exeext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17800   (eval $ac_link) 2>conftest.er1
17801   ac_status=$?
17802   grep -v '^ *+' conftest.er1 >conftest.err
17803   rm -f conftest.er1
17804   cat conftest.err >&5
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -z "$ac_cxx_werror_flag"
17808                          || test ! -s conftest.err'
17809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810   (eval $ac_try) 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; } &&
17814          { ac_try='test -s conftest$ac_exeext'
17815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816   (eval $ac_try) 2>&5
17817   ac_status=$?
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); }; }; then
17820   ac_cv_lib_dl_dlopen=yes
17821 else
17822   echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 ac_cv_lib_dl_dlopen=no
17826 fi
17827 rm -f conftest.err conftest.$ac_objext \
17828       conftest$ac_exeext conftest.$ac_ext
17829 LIBS=$ac_check_lib_save_LIBS
17830 fi
17831 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17832 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17833 if test $ac_cv_lib_dl_dlopen = yes; then
17834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17835 else
17836   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17837 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17839   echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841   ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-lsvld  $LIBS"
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849
17850 /* Override any gcc2 internal prototype to avoid an error.  */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 /* We use char because int might match the return type of a gcc2
17855    builtin and then its argument prototype would still apply.  */
17856 char dlopen ();
17857 int
17858 main ()
17859 {
17860 dlopen ();
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867   (eval $ac_link) 2>conftest.er1
17868   ac_status=$?
17869   grep -v '^ *+' conftest.er1 >conftest.err
17870   rm -f conftest.er1
17871   cat conftest.err >&5
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } &&
17874          { ac_try='test -z "$ac_cxx_werror_flag"
17875                          || test ! -s conftest.err'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; } &&
17881          { ac_try='test -s conftest$ac_exeext'
17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883   (eval $ac_try) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; }; then
17887   ac_cv_lib_svld_dlopen=yes
17888 else
17889   echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 ac_cv_lib_svld_dlopen=no
17893 fi
17894 rm -f conftest.err conftest.$ac_objext \
17895       conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17897 fi
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17899 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17900 if test $ac_cv_lib_svld_dlopen = yes; then
17901   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17902 else
17903   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17904 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17905 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17906   echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908   ac_check_lib_save_LIBS=$LIBS
17909 LIBS="-ldld  $LIBS"
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916
17917 /* Override any gcc2 internal prototype to avoid an error.  */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 /* We use char because int might match the return type of a gcc2
17922    builtin and then its argument prototype would still apply.  */
17923 char dld_link ();
17924 int
17925 main ()
17926 {
17927 dld_link ();
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934   (eval $ac_link) 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } &&
17941          { ac_try='test -z "$ac_cxx_werror_flag"
17942                          || test ! -s conftest.err'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; } &&
17948          { ac_try='test -s conftest$ac_exeext'
17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950   (eval $ac_try) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   ac_cv_lib_dld_dld_link=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_cv_lib_dld_dld_link=no
17960 fi
17961 rm -f conftest.err conftest.$ac_objext \
17962       conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17964 fi
17965 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17966 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17967 if test $ac_cv_lib_dld_dld_link = yes; then
17968   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17969 fi
17970
17971
17972 fi
17973
17974
17975 fi
17976
17977
17978 fi
17979
17980
17981 fi
17982
17983
17984 fi
17985
17986     ;;
17987   esac
17988
17989   if test "x$lt_cv_dlopen" != xno; then
17990     enable_dlopen=yes
17991   else
17992     enable_dlopen=no
17993   fi
17994
17995   case $lt_cv_dlopen in
17996   dlopen)
17997     save_CPPFLAGS="$CPPFLAGS"
17998     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17999
18000     save_LDFLAGS="$LDFLAGS"
18001     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18002
18003     save_LIBS="$LIBS"
18004     LIBS="$lt_cv_dlopen_libs $LIBS"
18005
18006     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18007 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18008 if test "${lt_cv_dlopen_self+set}" = set; then
18009   echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011           if test "$cross_compiling" = yes; then :
18012   lt_cv_dlopen_self=cross
18013 else
18014   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18015   lt_status=$lt_dlunknown
18016   cat > conftest.$ac_ext <<EOF
18017 #line 18017 "configure"
18018 #include "confdefs.h"
18019
18020 #if HAVE_DLFCN_H
18021 #include <dlfcn.h>
18022 #endif
18023
18024 #include <stdio.h>
18025
18026 #ifdef RTLD_GLOBAL
18027 #  define LT_DLGLOBAL           RTLD_GLOBAL
18028 #else
18029 #  ifdef DL_GLOBAL
18030 #    define LT_DLGLOBAL         DL_GLOBAL
18031 #  else
18032 #    define LT_DLGLOBAL         0
18033 #  endif
18034 #endif
18035
18036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18037    find out it does not work in some platform. */
18038 #ifndef LT_DLLAZY_OR_NOW
18039 #  ifdef RTLD_LAZY
18040 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18041 #  else
18042 #    ifdef DL_LAZY
18043 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18044 #    else
18045 #      ifdef RTLD_NOW
18046 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18047 #      else
18048 #        ifdef DL_NOW
18049 #          define LT_DLLAZY_OR_NOW      DL_NOW
18050 #        else
18051 #          define LT_DLLAZY_OR_NOW      0
18052 #        endif
18053 #      endif
18054 #    endif
18055 #  endif
18056 #endif
18057
18058 #ifdef __cplusplus
18059 extern "C" void exit (int);
18060 #endif
18061
18062 void fnord() { int i=42;}
18063 int main ()
18064 {
18065   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18066   int status = $lt_dlunknown;
18067
18068   if (self)
18069     {
18070       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18071       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18072       /* dlclose (self); */
18073     }
18074
18075     exit (status);
18076 }
18077 EOF
18078   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18079   (eval $ac_link) 2>&5
18080   ac_status=$?
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18083     (./conftest; exit; ) 2>/dev/null
18084     lt_status=$?
18085     case x$lt_status in
18086       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18087       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18088       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18089     esac
18090   else :
18091     # compilation failed
18092     lt_cv_dlopen_self=no
18093   fi
18094 fi
18095 rm -fr conftest*
18096
18097
18098 fi
18099 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18100 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18101
18102     if test "x$lt_cv_dlopen_self" = xyes; then
18103       LDFLAGS="$LDFLAGS $link_static_flag"
18104       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18105 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18106 if test "${lt_cv_dlopen_self_static+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109           if test "$cross_compiling" = yes; then :
18110   lt_cv_dlopen_self_static=cross
18111 else
18112   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18113   lt_status=$lt_dlunknown
18114   cat > conftest.$ac_ext <<EOF
18115 #line 18115 "configure"
18116 #include "confdefs.h"
18117
18118 #if HAVE_DLFCN_H
18119 #include <dlfcn.h>
18120 #endif
18121
18122 #include <stdio.h>
18123
18124 #ifdef RTLD_GLOBAL
18125 #  define LT_DLGLOBAL           RTLD_GLOBAL
18126 #else
18127 #  ifdef DL_GLOBAL
18128 #    define LT_DLGLOBAL         DL_GLOBAL
18129 #  else
18130 #    define LT_DLGLOBAL         0
18131 #  endif
18132 #endif
18133
18134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18135    find out it does not work in some platform. */
18136 #ifndef LT_DLLAZY_OR_NOW
18137 #  ifdef RTLD_LAZY
18138 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18139 #  else
18140 #    ifdef DL_LAZY
18141 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18142 #    else
18143 #      ifdef RTLD_NOW
18144 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18145 #      else
18146 #        ifdef DL_NOW
18147 #          define LT_DLLAZY_OR_NOW      DL_NOW
18148 #        else
18149 #          define LT_DLLAZY_OR_NOW      0
18150 #        endif
18151 #      endif
18152 #    endif
18153 #  endif
18154 #endif
18155
18156 #ifdef __cplusplus
18157 extern "C" void exit (int);
18158 #endif
18159
18160 void fnord() { int i=42;}
18161 int main ()
18162 {
18163   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18164   int status = $lt_dlunknown;
18165
18166   if (self)
18167     {
18168       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18169       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18170       /* dlclose (self); */
18171     }
18172
18173     exit (status);
18174 }
18175 EOF
18176   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18177   (eval $ac_link) 2>&5
18178   ac_status=$?
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18181     (./conftest; exit; ) 2>/dev/null
18182     lt_status=$?
18183     case x$lt_status in
18184       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18185       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18186       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18187     esac
18188   else :
18189     # compilation failed
18190     lt_cv_dlopen_self_static=no
18191   fi
18192 fi
18193 rm -fr conftest*
18194
18195
18196 fi
18197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18198 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18199     fi
18200
18201     CPPFLAGS="$save_CPPFLAGS"
18202     LDFLAGS="$save_LDFLAGS"
18203     LIBS="$save_LIBS"
18204     ;;
18205   esac
18206
18207   case $lt_cv_dlopen_self in
18208   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18209   *) enable_dlopen_self=unknown ;;
18210   esac
18211
18212   case $lt_cv_dlopen_self_static in
18213   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18214   *) enable_dlopen_self_static=unknown ;;
18215   esac
18216 fi
18217
18218
18219 # The else clause should only fire when bootstrapping the
18220 # libtool distribution, otherwise you forgot to ship ltmain.sh
18221 # with your package, and you will get complaints that there are
18222 # no rules to generate ltmain.sh.
18223 if test -f "$ltmain"; then
18224   # See if we are running on zsh, and set the options which allow our commands through
18225   # without removal of \ escapes.
18226   if test -n "${ZSH_VERSION+set}" ; then
18227     setopt NO_GLOB_SUBST
18228   fi
18229   # Now quote all the things that may contain metacharacters while being
18230   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18231   # variables and quote the copies for generation of the libtool script.
18232   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18233     SED SHELL STRIP \
18234     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18235     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18236     deplibs_check_method reload_flag reload_cmds need_locks \
18237     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18238     lt_cv_sys_global_symbol_to_c_name_address \
18239     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18240     old_postinstall_cmds old_postuninstall_cmds \
18241     compiler_CXX \
18242     CC_CXX \
18243     LD_CXX \
18244     lt_prog_compiler_wl_CXX \
18245     lt_prog_compiler_pic_CXX \
18246     lt_prog_compiler_static_CXX \
18247     lt_prog_compiler_no_builtin_flag_CXX \
18248     export_dynamic_flag_spec_CXX \
18249     thread_safe_flag_spec_CXX \
18250     whole_archive_flag_spec_CXX \
18251     enable_shared_with_static_runtimes_CXX \
18252     old_archive_cmds_CXX \
18253     old_archive_from_new_cmds_CXX \
18254     predep_objects_CXX \
18255     postdep_objects_CXX \
18256     predeps_CXX \
18257     postdeps_CXX \
18258     compiler_lib_search_path_CXX \
18259     archive_cmds_CXX \
18260     archive_expsym_cmds_CXX \
18261     postinstall_cmds_CXX \
18262     postuninstall_cmds_CXX \
18263     old_archive_from_expsyms_cmds_CXX \
18264     allow_undefined_flag_CXX \
18265     no_undefined_flag_CXX \
18266     export_symbols_cmds_CXX \
18267     hardcode_libdir_flag_spec_CXX \
18268     hardcode_libdir_flag_spec_ld_CXX \
18269     hardcode_libdir_separator_CXX \
18270     hardcode_automatic_CXX \
18271     module_cmds_CXX \
18272     module_expsym_cmds_CXX \
18273     lt_cv_prog_compiler_c_o_CXX \
18274     exclude_expsyms_CXX \
18275     include_expsyms_CXX; do
18276
18277     case $var in
18278     old_archive_cmds_CXX | \
18279     old_archive_from_new_cmds_CXX | \
18280     archive_cmds_CXX | \
18281     archive_expsym_cmds_CXX | \
18282     module_cmds_CXX | \
18283     module_expsym_cmds_CXX | \
18284     old_archive_from_expsyms_cmds_CXX | \
18285     export_symbols_cmds_CXX | \
18286     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18287     postinstall_cmds | postuninstall_cmds | \
18288     old_postinstall_cmds | old_postuninstall_cmds | \
18289     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18290       # Double-quote double-evaled strings.
18291       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18292       ;;
18293     *)
18294       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18295       ;;
18296     esac
18297   done
18298
18299   case $lt_echo in
18300   *'\$0 --fallback-echo"')
18301     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18302     ;;
18303   esac
18304
18305 cfgfile="$ofile"
18306
18307   cat <<__EOF__ >> "$cfgfile"
18308 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18309
18310 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18311
18312 # Shell to use when invoking shell scripts.
18313 SHELL=$lt_SHELL
18314
18315 # Whether or not to build shared libraries.
18316 build_libtool_libs=$enable_shared
18317
18318 # Whether or not to build static libraries.
18319 build_old_libs=$enable_static
18320
18321 # Whether or not to add -lc for building shared libraries.
18322 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18323
18324 # Whether or not to disallow shared libs when runtime libs are static
18325 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18326
18327 # Whether or not to optimize for fast installation.
18328 fast_install=$enable_fast_install
18329
18330 # The host system.
18331 host_alias=$host_alias
18332 host=$host
18333
18334 # An echo program that does not interpret backslashes.
18335 echo=$lt_echo
18336
18337 # The archiver.
18338 AR=$lt_AR
18339 AR_FLAGS=$lt_AR_FLAGS
18340
18341 # A C compiler.
18342 LTCC=$lt_LTCC
18343
18344 # A language-specific compiler.
18345 CC=$lt_compiler_CXX
18346
18347 # Is the compiler the GNU C compiler?
18348 with_gcc=$GCC_CXX
18349
18350 # An ERE matcher.
18351 EGREP=$lt_EGREP
18352
18353 # The linker used to build libraries.
18354 LD=$lt_LD_CXX
18355
18356 # Whether we need hard or soft links.
18357 LN_S=$lt_LN_S
18358
18359 # A BSD-compatible nm program.
18360 NM=$lt_NM
18361
18362 # A symbol stripping program
18363 STRIP=$lt_STRIP
18364
18365 # Used to examine libraries when file_magic_cmd begins "file"
18366 MAGIC_CMD=$MAGIC_CMD
18367
18368 # Used on cygwin: DLL creation program.
18369 DLLTOOL="$DLLTOOL"
18370
18371 # Used on cygwin: object dumper.
18372 OBJDUMP="$OBJDUMP"
18373
18374 # Used on cygwin: assembler.
18375 AS="$AS"
18376
18377 # The name of the directory that contains temporary libtool files.
18378 objdir=$objdir
18379
18380 # How to create reloadable object files.
18381 reload_flag=$lt_reload_flag
18382 reload_cmds=$lt_reload_cmds
18383
18384 # How to pass a linker flag through the compiler.
18385 wl=$lt_lt_prog_compiler_wl_CXX
18386
18387 # Object file suffix (normally "o").
18388 objext="$ac_objext"
18389
18390 # Old archive suffix (normally "a").
18391 libext="$libext"
18392
18393 # Shared library suffix (normally ".so").
18394 shrext_cmds='$shrext_cmds'
18395
18396 # Executable file suffix (normally "").
18397 exeext="$exeext"
18398
18399 # Additional compiler flags for building library objects.
18400 pic_flag=$lt_lt_prog_compiler_pic_CXX
18401 pic_mode=$pic_mode
18402
18403 # What is the maximum length of a command?
18404 max_cmd_len=$lt_cv_sys_max_cmd_len
18405
18406 # Does compiler simultaneously support -c and -o options?
18407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18408
18409 # Must we lock files when doing compilation ?
18410 need_locks=$lt_need_locks
18411
18412 # Do we need the lib prefix for modules?
18413 need_lib_prefix=$need_lib_prefix
18414
18415 # Do we need a version for libraries?
18416 need_version=$need_version
18417
18418 # Whether dlopen is supported.
18419 dlopen_support=$enable_dlopen
18420
18421 # Whether dlopen of programs is supported.
18422 dlopen_self=$enable_dlopen_self
18423
18424 # Whether dlopen of statically linked programs is supported.
18425 dlopen_self_static=$enable_dlopen_self_static
18426
18427 # Compiler flag to prevent dynamic linking.
18428 link_static_flag=$lt_lt_prog_compiler_static_CXX
18429
18430 # Compiler flag to turn off builtin functions.
18431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18432
18433 # Compiler flag to allow reflexive dlopens.
18434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18435
18436 # Compiler flag to generate shared objects directly from archives.
18437 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18438
18439 # Compiler flag to generate thread-safe objects.
18440 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18441
18442 # Library versioning type.
18443 version_type=$version_type
18444
18445 # Format of library name prefix.
18446 libname_spec=$lt_libname_spec
18447
18448 # List of archive names.  First name is the real one, the rest are links.
18449 # The last name is the one that the linker finds with -lNAME.
18450 library_names_spec=$lt_library_names_spec
18451
18452 # The coded name of the library, if different from the real name.
18453 soname_spec=$lt_soname_spec
18454
18455 # Commands used to build and install an old-style archive.
18456 RANLIB=$lt_RANLIB
18457 old_archive_cmds=$lt_old_archive_cmds_CXX
18458 old_postinstall_cmds=$lt_old_postinstall_cmds
18459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18460
18461 # Create an old-style archive from a shared archive.
18462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18463
18464 # Create a temporary old-style archive to link instead of a shared archive.
18465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18466
18467 # Commands used to build and install a shared archive.
18468 archive_cmds=$lt_archive_cmds_CXX
18469 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18470 postinstall_cmds=$lt_postinstall_cmds
18471 postuninstall_cmds=$lt_postuninstall_cmds
18472
18473 # Commands used to build a loadable module (assumed same as above if empty)
18474 module_cmds=$lt_module_cmds_CXX
18475 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18476
18477 # Commands to strip libraries.
18478 old_striplib=$lt_old_striplib
18479 striplib=$lt_striplib
18480
18481 # Dependencies to place before the objects being linked to create a
18482 # shared library.
18483 predep_objects=$lt_predep_objects_CXX
18484
18485 # Dependencies to place after the objects being linked to create a
18486 # shared library.
18487 postdep_objects=$lt_postdep_objects_CXX
18488
18489 # Dependencies to place before the objects being linked to create a
18490 # shared library.
18491 predeps=$lt_predeps_CXX
18492
18493 # Dependencies to place after the objects being linked to create a
18494 # shared library.
18495 postdeps=$lt_postdeps_CXX
18496
18497 # The library search path used internally by the compiler when linking
18498 # a shared library.
18499 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18500
18501 # Method to check whether dependent libraries are shared objects.
18502 deplibs_check_method=$lt_deplibs_check_method
18503
18504 # Command to use when deplibs_check_method == file_magic.
18505 file_magic_cmd=$lt_file_magic_cmd
18506
18507 # Flag that allows shared libraries with undefined symbols to be built.
18508 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18509
18510 # Flag that forces no undefined symbols.
18511 no_undefined_flag=$lt_no_undefined_flag_CXX
18512
18513 # Commands used to finish a libtool library installation in a directory.
18514 finish_cmds=$lt_finish_cmds
18515
18516 # Same as above, but a single script fragment to be evaled but not shown.
18517 finish_eval=$lt_finish_eval
18518
18519 # Take the output of nm and produce a listing of raw symbols and C names.
18520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18521
18522 # Transform the output of nm in a proper C declaration
18523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18524
18525 # Transform the output of nm in a C name address pair
18526 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18527
18528 # This is the shared library runtime path variable.
18529 runpath_var=$runpath_var
18530
18531 # This is the shared library path variable.
18532 shlibpath_var=$shlibpath_var
18533
18534 # Is shlibpath searched before the hard-coded library search path?
18535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18536
18537 # How to hardcode a shared library path into an executable.
18538 hardcode_action=$hardcode_action_CXX
18539
18540 # Whether we should hardcode library paths into libraries.
18541 hardcode_into_libs=$hardcode_into_libs
18542
18543 # Flag to hardcode \$libdir into a binary during linking.
18544 # This must work even if \$libdir does not exist.
18545 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18546
18547 # If ld is used when linking, flag to hardcode \$libdir into
18548 # a binary during linking. This must work even if \$libdir does
18549 # not exist.
18550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18551
18552 # Whether we need a single -rpath flag with a separated argument.
18553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18554
18555 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18556 # resulting binary.
18557 hardcode_direct=$hardcode_direct_CXX
18558
18559 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18560 # resulting binary.
18561 hardcode_minus_L=$hardcode_minus_L_CXX
18562
18563 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18564 # the resulting binary.
18565 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18566
18567 # Set to yes if building a shared library automatically hardcodes DIR into the library
18568 # and all subsequent libraries and executables linked against it.
18569 hardcode_automatic=$hardcode_automatic_CXX
18570
18571 # Variables whose values should be saved in libtool wrapper scripts and
18572 # restored at relink time.
18573 variables_saved_for_relink="$variables_saved_for_relink"
18574
18575 # Whether libtool must link a program against all its dependency libraries.
18576 link_all_deplibs=$link_all_deplibs_CXX
18577
18578 # Compile-time system search path for libraries
18579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18580
18581 # Run-time system search path for libraries
18582 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18583
18584 # Fix the shell variable \$srcfile for the compiler.
18585 fix_srcfile_path="$fix_srcfile_path_CXX"
18586
18587 # Set to yes if exported symbols are required.
18588 always_export_symbols=$always_export_symbols_CXX
18589
18590 # The commands to list exported symbols.
18591 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18592
18593 # The commands to extract the exported symbol list from a shared archive.
18594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18595
18596 # Symbols that should not be listed in the preloaded symbols.
18597 exclude_expsyms=$lt_exclude_expsyms_CXX
18598
18599 # Symbols that must always be exported.
18600 include_expsyms=$lt_include_expsyms_CXX
18601
18602 # ### END LIBTOOL TAG CONFIG: $tagname
18603
18604 __EOF__
18605
18606
18607 else
18608   # If there is no Makefile yet, we rely on a make rule to execute
18609   # `config.status --recheck' to rerun these tests and create the
18610   # libtool script then.
18611   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18612   if test -f "$ltmain_in"; then
18613     test -f Makefile && make "$ltmain"
18614   fi
18615 fi
18616
18617
18618 ac_ext=c
18619 ac_cpp='$CPP $CPPFLAGS'
18620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623
18624 CC=$lt_save_CC
18625 LDCXX=$LD
18626 LD=$lt_save_LD
18627 GCC=$lt_save_GCC
18628 with_gnu_ldcxx=$with_gnu_ld
18629 with_gnu_ld=$lt_save_with_gnu_ld
18630 lt_cv_path_LDCXX=$lt_cv_path_LD
18631 lt_cv_path_LD=$lt_save_path_LD
18632 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18633 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18634
18635         else
18636           tagname=""
18637         fi
18638         ;;
18639
18640       F77)
18641         if test -n "$F77" && test "X$F77" != "Xno"; then
18642
18643 ac_ext=f
18644 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18645 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18646 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18647
18648
18649 archive_cmds_need_lc_F77=no
18650 allow_undefined_flag_F77=
18651 always_export_symbols_F77=no
18652 archive_expsym_cmds_F77=
18653 export_dynamic_flag_spec_F77=
18654 hardcode_direct_F77=no
18655 hardcode_libdir_flag_spec_F77=
18656 hardcode_libdir_flag_spec_ld_F77=
18657 hardcode_libdir_separator_F77=
18658 hardcode_minus_L_F77=no
18659 hardcode_automatic_F77=no
18660 module_cmds_F77=
18661 module_expsym_cmds_F77=
18662 link_all_deplibs_F77=unknown
18663 old_archive_cmds_F77=$old_archive_cmds
18664 no_undefined_flag_F77=
18665 whole_archive_flag_spec_F77=
18666 enable_shared_with_static_runtimes_F77=no
18667
18668 # Source file extension for f77 test sources.
18669 ac_ext=f
18670
18671 # Object file extension for compiled f77 test sources.
18672 objext=o
18673 objext_F77=$objext
18674
18675 # Code to be used in simple compile tests
18676 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18677
18678 # Code to be used in simple link tests
18679 lt_simple_link_test_code="      program t\n      end\n"
18680
18681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18682
18683 # If no C compiler was specified, use CC.
18684 LTCC=${LTCC-"$CC"}
18685
18686 # Allow CC to be a program name with arguments.
18687 compiler=$CC
18688
18689
18690 # Allow CC to be a program name with arguments.
18691 lt_save_CC="$CC"
18692 CC=${F77-"f77"}
18693 compiler=$CC
18694 compiler_F77=$CC
18695 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18696
18697 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18698 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18699 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18700 echo "${ECHO_T}$can_build_shared" >&6
18701
18702 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18703 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18704 test "$can_build_shared" = "no" && enable_shared=no
18705
18706 # On AIX, shared libraries and static libraries use the same namespace, and
18707 # are all built from PIC.
18708 case "$host_os" in
18709 aix3*)
18710   test "$enable_shared" = yes && enable_static=no
18711   if test -n "$RANLIB"; then
18712     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18713     postinstall_cmds='$RANLIB $lib'
18714   fi
18715   ;;
18716 aix4* | aix5*)
18717   test "$enable_shared" = yes && enable_static=no
18718   ;;
18719 esac
18720 echo "$as_me:$LINENO: result: $enable_shared" >&5
18721 echo "${ECHO_T}$enable_shared" >&6
18722
18723 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18724 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18725 # Make sure either enable_shared or enable_static is yes.
18726 test "$enable_shared" = yes || enable_static=yes
18727 echo "$as_me:$LINENO: result: $enable_static" >&5
18728 echo "${ECHO_T}$enable_static" >&6
18729
18730 test "$ld_shlibs_F77" = no && can_build_shared=no
18731
18732 GCC_F77="$G77"
18733 LD_F77="$LD"
18734
18735 lt_prog_compiler_wl_F77=
18736 lt_prog_compiler_pic_F77=
18737 lt_prog_compiler_static_F77=
18738
18739 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18740 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18741
18742   if test "$GCC" = yes; then
18743     lt_prog_compiler_wl_F77='-Wl,'
18744     lt_prog_compiler_static_F77='-static'
18745
18746     case $host_os in
18747       aix*)
18748       # All AIX code is PIC.
18749       if test "$host_cpu" = ia64; then
18750         # AIX 5 now supports IA64 processor
18751         lt_prog_compiler_static_F77='-Bstatic'
18752       fi
18753       ;;
18754
18755     amigaos*)
18756       # FIXME: we need at least 68020 code to build shared libraries, but
18757       # adding the `-m68020' flag to GCC prevents building anything better,
18758       # like `-m68040'.
18759       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18760       ;;
18761
18762     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18763       # PIC is the default for these OSes.
18764       ;;
18765
18766     mingw* | pw32* | os2*)
18767       # This hack is so that the source file can tell whether it is being
18768       # built for inclusion in a dll (and should export symbols for example).
18769       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18770       ;;
18771
18772     darwin* | rhapsody*)
18773       # PIC is the default on this platform
18774       # Common symbols not allowed in MH_DYLIB files
18775       lt_prog_compiler_pic_F77='-fno-common'
18776       ;;
18777
18778     msdosdjgpp*)
18779       # Just because we use GCC doesn't mean we suddenly get shared libraries
18780       # on systems that don't support them.
18781       lt_prog_compiler_can_build_shared_F77=no
18782       enable_shared=no
18783       ;;
18784
18785     sysv4*MP*)
18786       if test -d /usr/nec; then
18787         lt_prog_compiler_pic_F77=-Kconform_pic
18788       fi
18789       ;;
18790
18791     hpux*)
18792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18793       # not for PA HP-UX.
18794       case "$host_cpu" in
18795       hppa*64*|ia64*)
18796         # +Z the default
18797         ;;
18798       *)
18799         lt_prog_compiler_pic_F77='-fPIC'
18800         ;;
18801       esac
18802       ;;
18803
18804     *)
18805       lt_prog_compiler_pic_F77='-fPIC'
18806       ;;
18807     esac
18808   else
18809     # PORTME Check for flag to pass linker flags through the system compiler.
18810     case $host_os in
18811     aix*)
18812       lt_prog_compiler_wl_F77='-Wl,'
18813       if test "$host_cpu" = ia64; then
18814         # AIX 5 now supports IA64 processor
18815         lt_prog_compiler_static_F77='-Bstatic'
18816       else
18817         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18818       fi
18819       ;;
18820       darwin*)
18821         # PIC is the default on this platform
18822         # Common symbols not allowed in MH_DYLIB files
18823        case "$cc_basename" in
18824          xlc*)
18825          lt_prog_compiler_pic_F77='-qnocommon'
18826          lt_prog_compiler_wl_F77='-Wl,'
18827          ;;
18828        esac
18829        ;;
18830
18831     mingw* | pw32* | os2*)
18832       # This hack is so that the source file can tell whether it is being
18833       # built for inclusion in a dll (and should export symbols for example).
18834       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18835       ;;
18836
18837     hpux9* | hpux10* | hpux11*)
18838       lt_prog_compiler_wl_F77='-Wl,'
18839       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18840       # not for PA HP-UX.
18841       case "$host_cpu" in
18842       hppa*64*|ia64*)
18843         # +Z the default
18844         ;;
18845       *)
18846         lt_prog_compiler_pic_F77='+Z'
18847         ;;
18848       esac
18849       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18850       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18851       ;;
18852
18853     irix5* | irix6* | nonstopux*)
18854       lt_prog_compiler_wl_F77='-Wl,'
18855       # PIC (with -KPIC) is the default.
18856       lt_prog_compiler_static_F77='-non_shared'
18857       ;;
18858
18859     newsos6)
18860       lt_prog_compiler_pic_F77='-KPIC'
18861       lt_prog_compiler_static_F77='-Bstatic'
18862       ;;
18863
18864     linux*)
18865       case $CC in
18866       icc* | ecc*)
18867         lt_prog_compiler_wl_F77='-Wl,'
18868         lt_prog_compiler_pic_F77='-KPIC'
18869         lt_prog_compiler_static_F77='-static'
18870         ;;
18871       ccc*)
18872         lt_prog_compiler_wl_F77='-Wl,'
18873         # All Alpha code is PIC.
18874         lt_prog_compiler_static_F77='-non_shared'
18875         ;;
18876       esac
18877       ;;
18878
18879     osf3* | osf4* | osf5*)
18880       lt_prog_compiler_wl_F77='-Wl,'
18881       # All OSF/1 code is PIC.
18882       lt_prog_compiler_static_F77='-non_shared'
18883       ;;
18884
18885     sco3.2v5*)
18886       lt_prog_compiler_pic_F77='-Kpic'
18887       lt_prog_compiler_static_F77='-dn'
18888       ;;
18889
18890     solaris*)
18891       lt_prog_compiler_wl_F77='-Wl,'
18892       lt_prog_compiler_pic_F77='-KPIC'
18893       lt_prog_compiler_static_F77='-Bstatic'
18894       ;;
18895
18896     sunos4*)
18897       lt_prog_compiler_wl_F77='-Qoption ld '
18898       lt_prog_compiler_pic_F77='-PIC'
18899       lt_prog_compiler_static_F77='-Bstatic'
18900       ;;
18901
18902     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18903       lt_prog_compiler_wl_F77='-Wl,'
18904       lt_prog_compiler_pic_F77='-KPIC'
18905       lt_prog_compiler_static_F77='-Bstatic'
18906       ;;
18907
18908     sysv4*MP*)
18909       if test -d /usr/nec ;then
18910         lt_prog_compiler_pic_F77='-Kconform_pic'
18911         lt_prog_compiler_static_F77='-Bstatic'
18912       fi
18913       ;;
18914
18915     uts4*)
18916       lt_prog_compiler_pic_F77='-pic'
18917       lt_prog_compiler_static_F77='-Bstatic'
18918       ;;
18919
18920     *)
18921       lt_prog_compiler_can_build_shared_F77=no
18922       ;;
18923     esac
18924   fi
18925
18926 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18927 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18928
18929 #
18930 # Check to make sure the PIC flag actually works.
18931 #
18932 if test -n "$lt_prog_compiler_pic_F77"; then
18933
18934 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18936 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18937   echo $ECHO_N "(cached) $ECHO_C" >&6
18938 else
18939   lt_prog_compiler_pic_works_F77=no
18940   ac_outfile=conftest.$ac_objext
18941    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18942    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18943    # Insert the option either (1) after the last *FLAGS variable, or
18944    # (2) before a word containing "conftest.", or (3) at the end.
18945    # Note that $ac_compile itself does not contain backslashes and begins
18946    # with a dollar sign (not a hyphen), so the echo should work correctly.
18947    # The option is referenced via a variable to avoid confusing sed.
18948    lt_compile=`echo "$ac_compile" | $SED \
18949    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18951    -e 's:$: $lt_compiler_flag:'`
18952    (eval echo "\"\$as_me:18952: $lt_compile\"" >&5)
18953    (eval "$lt_compile" 2>conftest.err)
18954    ac_status=$?
18955    cat conftest.err >&5
18956    echo "$as_me:18956: \$? = $ac_status" >&5
18957    if (exit $ac_status) && test -s "$ac_outfile"; then
18958      # The compiler can only warn and ignore the option if not recognized
18959      # So say no if there are warnings
18960      if test ! -s conftest.err; then
18961        lt_prog_compiler_pic_works_F77=yes
18962      fi
18963    fi
18964    $rm conftest*
18965
18966 fi
18967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18968 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18969
18970 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18971     case $lt_prog_compiler_pic_F77 in
18972      "" | " "*) ;;
18973      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18974      esac
18975 else
18976     lt_prog_compiler_pic_F77=
18977      lt_prog_compiler_can_build_shared_F77=no
18978 fi
18979
18980 fi
18981 case "$host_os" in
18982   # For platforms which do not support PIC, -DPIC is meaningless:
18983   *djgpp*)
18984     lt_prog_compiler_pic_F77=
18985     ;;
18986   *)
18987     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18988     ;;
18989 esac
18990
18991 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18992 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18993 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18994   echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996   lt_cv_prog_compiler_c_o_F77=no
18997    $rm -r conftest 2>/dev/null
18998    mkdir conftest
18999    cd conftest
19000    mkdir out
19001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19002
19003    lt_compiler_flag="-o out/conftest2.$ac_objext"
19004    # Insert the option either (1) after the last *FLAGS variable, or
19005    # (2) before a word containing "conftest.", or (3) at the end.
19006    # Note that $ac_compile itself does not contain backslashes and begins
19007    # with a dollar sign (not a hyphen), so the echo should work correctly.
19008    lt_compile=`echo "$ac_compile" | $SED \
19009    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19011    -e 's:$: $lt_compiler_flag:'`
19012    (eval echo "\"\$as_me:19012: $lt_compile\"" >&5)
19013    (eval "$lt_compile" 2>out/conftest.err)
19014    ac_status=$?
19015    cat out/conftest.err >&5
19016    echo "$as_me:19016: \$? = $ac_status" >&5
19017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19018    then
19019      # The compiler can only warn and ignore the option if not recognized
19020      # So say no if there are warnings
19021      if test ! -s out/conftest.err; then
19022        lt_cv_prog_compiler_c_o_F77=yes
19023      fi
19024    fi
19025    chmod u+w .
19026    $rm conftest*
19027    # SGI C++ compiler will create directory out/ii_files/ for
19028    # template instantiation
19029    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19030    $rm out/* && rmdir out
19031    cd ..
19032    rmdir conftest
19033    $rm conftest*
19034
19035 fi
19036 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19037 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19038
19039
19040 hard_links="nottested"
19041 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19042   # do not overwrite the value of need_locks provided by the user
19043   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19044 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19045   hard_links=yes
19046   $rm conftest*
19047   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19048   touch conftest.a
19049   ln conftest.a conftest.b 2>&5 || hard_links=no
19050   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19051   echo "$as_me:$LINENO: result: $hard_links" >&5
19052 echo "${ECHO_T}$hard_links" >&6
19053   if test "$hard_links" = no; then
19054     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19055 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19056     need_locks=warn
19057   fi
19058 else
19059   need_locks=no
19060 fi
19061
19062 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19063 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19064
19065   runpath_var=
19066   allow_undefined_flag_F77=
19067   enable_shared_with_static_runtimes_F77=no
19068   archive_cmds_F77=
19069   archive_expsym_cmds_F77=
19070   old_archive_From_new_cmds_F77=
19071   old_archive_from_expsyms_cmds_F77=
19072   export_dynamic_flag_spec_F77=
19073   whole_archive_flag_spec_F77=
19074   thread_safe_flag_spec_F77=
19075   hardcode_libdir_flag_spec_F77=
19076   hardcode_libdir_flag_spec_ld_F77=
19077   hardcode_libdir_separator_F77=
19078   hardcode_direct_F77=no
19079   hardcode_minus_L_F77=no
19080   hardcode_shlibpath_var_F77=unsupported
19081   link_all_deplibs_F77=unknown
19082   hardcode_automatic_F77=no
19083   module_cmds_F77=
19084   module_expsym_cmds_F77=
19085   always_export_symbols_F77=no
19086   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19087   # include_expsyms should be a list of space-separated symbols to be *always*
19088   # included in the symbol list
19089   include_expsyms_F77=
19090   # exclude_expsyms can be an extended regexp of symbols to exclude
19091   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19092   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19093   # as well as any symbol that contains `d'.
19094   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19095   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19096   # platforms (ab)use it in PIC code, but their linkers get confused if
19097   # the symbol is explicitly referenced.  Since portable code cannot
19098   # rely on this symbol name, it's probably fine to never include it in
19099   # preloaded symbol tables.
19100   extract_expsyms_cmds=
19101
19102   case $host_os in
19103   cygwin* | mingw* | pw32*)
19104     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19105     # When not using gcc, we currently assume that we are using
19106     # Microsoft Visual C++.
19107     if test "$GCC" != yes; then
19108       with_gnu_ld=no
19109     fi
19110     ;;
19111   openbsd*)
19112     with_gnu_ld=no
19113     ;;
19114   esac
19115
19116   ld_shlibs_F77=yes
19117   if test "$with_gnu_ld" = yes; then
19118     # If archive_cmds runs LD, not CC, wlarc should be empty
19119     wlarc='${wl}'
19120
19121     # See if GNU ld supports shared libraries.
19122     case $host_os in
19123     aix3* | aix4* | aix5*)
19124       # On AIX/PPC, the GNU linker is very broken
19125       if test "$host_cpu" != ia64; then
19126         ld_shlibs_F77=no
19127         cat <<EOF 1>&2
19128
19129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19130 *** to be unable to reliably create shared libraries on AIX.
19131 *** Therefore, libtool is disabling shared libraries support.  If you
19132 *** really care for shared libraries, you may want to modify your PATH
19133 *** so that a non-GNU linker is found, and then restart.
19134
19135 EOF
19136       fi
19137       ;;
19138
19139     amigaos*)
19140       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)'
19141       hardcode_libdir_flag_spec_F77='-L$libdir'
19142       hardcode_minus_L_F77=yes
19143
19144       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19145       # that the semantics of dynamic libraries on AmigaOS, at least up
19146       # to version 4, is to share data among multiple programs linked
19147       # with the same dynamic library.  Since this doesn't match the
19148       # behavior of shared libraries on other platforms, we can't use
19149       # them.
19150       ld_shlibs_F77=no
19151       ;;
19152
19153     beos*)
19154       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19155         allow_undefined_flag_F77=unsupported
19156         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19157         # support --undefined.  This deserves some investigation.  FIXME
19158         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159       else
19160         ld_shlibs_F77=no
19161       fi
19162       ;;
19163
19164     cygwin* | mingw* | pw32*)
19165       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19166       # as there is no search path for DLLs.
19167       hardcode_libdir_flag_spec_F77='-L$libdir'
19168       allow_undefined_flag_F77=unsupported
19169       always_export_symbols_F77=no
19170       enable_shared_with_static_runtimes_F77=yes
19171       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19172
19173       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19174         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19175         # If the export-symbols file already is a .def file (1st line
19176         # is EXPORTS), use it as is; otherwise, prepend...
19177         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19178           cp $export_symbols $output_objdir/$soname.def;
19179         else
19180           echo EXPORTS > $output_objdir/$soname.def;
19181           cat $export_symbols >> $output_objdir/$soname.def;
19182         fi~
19183         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19184       else
19185         ld_shlibs=no
19186       fi
19187       ;;
19188
19189     netbsd*)
19190       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19191         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19192         wlarc=
19193       else
19194         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19195         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19196       fi
19197       ;;
19198
19199     solaris* | sysv5*)
19200       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19201         ld_shlibs_F77=no
19202         cat <<EOF 1>&2
19203
19204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19205 *** create shared libraries on Solaris systems.  Therefore, libtool
19206 *** is disabling shared libraries support.  We urge you to upgrade GNU
19207 *** binutils to release 2.9.1 or newer.  Another option is to modify
19208 *** your PATH or compiler configuration so that the native linker is
19209 *** used, and then restart.
19210
19211 EOF
19212       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19213         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19214         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19215       else
19216         ld_shlibs_F77=no
19217       fi
19218       ;;
19219
19220     sunos4*)
19221       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19222       wlarc=
19223       hardcode_direct_F77=yes
19224       hardcode_shlibpath_var_F77=no
19225       ;;
19226
19227   linux*)
19228     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19229         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230         archive_cmds_F77="$tmp_archive_cmds"
19231       supports_anon_versioning=no
19232       case `$LD -v 2>/dev/null` in
19233         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19234         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19235         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19236         *\ 2.11.*) ;; # other 2.11 versions
19237         *) supports_anon_versioning=yes ;;
19238       esac
19239       if test $supports_anon_versioning = yes; then
19240         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19242 $echo "local: *; };" >> $output_objdir/$libname.ver~
19243         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19244       else
19245         archive_expsym_cmds_F77="$tmp_archive_cmds"
19246       fi
19247     else
19248       ld_shlibs_F77=no
19249     fi
19250     ;;
19251
19252     *)
19253       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19254         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19256       else
19257         ld_shlibs_F77=no
19258       fi
19259       ;;
19260     esac
19261
19262     if test "$ld_shlibs_F77" = yes; then
19263       runpath_var=LD_RUN_PATH
19264       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19265       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19266       # ancient GNU ld didn't support --whole-archive et. al.
19267       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19268         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19269       else
19270         whole_archive_flag_spec_F77=
19271       fi
19272     fi
19273   else
19274     # PORTME fill in a description of your system's linker (not GNU ld)
19275     case $host_os in
19276     aix3*)
19277       allow_undefined_flag_F77=unsupported
19278       always_export_symbols_F77=yes
19279       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'
19280       # Note: this linker hardcodes the directories in LIBPATH if there
19281       # are no directories specified by -L.
19282       hardcode_minus_L_F77=yes
19283       if test "$GCC" = yes && test -z "$link_static_flag"; then
19284         # Neither direct hardcoding nor static linking is supported with a
19285         # broken collect2.
19286         hardcode_direct_F77=unsupported
19287       fi
19288       ;;
19289
19290     aix4* | aix5*)
19291       if test "$host_cpu" = ia64; then
19292         # On IA64, the linker does run time linking by default, so we don't
19293         # have to do anything special.
19294         aix_use_runtimelinking=no
19295         exp_sym_flag='-Bexport'
19296         no_entry_flag=""
19297       else
19298         # If we're using GNU nm, then we don't want the "-C" option.
19299         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19300         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19301           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'
19302         else
19303           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'
19304         fi
19305         aix_use_runtimelinking=no
19306
19307         # Test if we are trying to use run time linking or normal
19308         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19309         # need to do runtime linking.
19310         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19311           for ld_flag in $LDFLAGS; do
19312           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19313             aix_use_runtimelinking=yes
19314             break
19315           fi
19316           done
19317         esac
19318
19319         exp_sym_flag='-bexport'
19320         no_entry_flag='-bnoentry'
19321       fi
19322
19323       # When large executables or shared objects are built, AIX ld can
19324       # have problems creating the table of contents.  If linking a library
19325       # or program results in "error TOC overflow" add -mminimal-toc to
19326       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19327       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19328
19329       archive_cmds_F77=''
19330       hardcode_direct_F77=yes
19331       hardcode_libdir_separator_F77=':'
19332       link_all_deplibs_F77=yes
19333
19334       if test "$GCC" = yes; then
19335         case $host_os in aix4.012|aix4.012.*)
19336         # We only want to do this on AIX 4.2 and lower, the check
19337         # below for broken collect2 doesn't work under 4.3+
19338           collect2name=`${CC} -print-prog-name=collect2`
19339           if test -f "$collect2name" && \
19340            strings "$collect2name" | grep resolve_lib_name >/dev/null
19341           then
19342           # We have reworked collect2
19343           hardcode_direct_F77=yes
19344           else
19345           # We have old collect2
19346           hardcode_direct_F77=unsupported
19347           # It fails to find uninstalled libraries when the uninstalled
19348           # path is not listed in the libpath.  Setting hardcode_minus_L
19349           # to unsupported forces relinking
19350           hardcode_minus_L_F77=yes
19351           hardcode_libdir_flag_spec_F77='-L$libdir'
19352           hardcode_libdir_separator_F77=
19353           fi
19354         esac
19355         shared_flag='-shared'
19356       else
19357         # not using gcc
19358         if test "$host_cpu" = ia64; then
19359         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19360         # chokes on -Wl,-G. The following line is correct:
19361           shared_flag='-G'
19362         else
19363         if test "$aix_use_runtimelinking" = yes; then
19364             shared_flag='${wl}-G'
19365           else
19366             shared_flag='${wl}-bM:SRE'
19367         fi
19368         fi
19369       fi
19370
19371       # It seems that -bexpall does not export symbols beginning with
19372       # underscore (_), so it is better to generate a list of symbols to export.
19373       always_export_symbols_F77=yes
19374       if test "$aix_use_runtimelinking" = yes; then
19375         # Warning - without using the other runtime loading flags (-brtl),
19376         # -berok will link without error, but may produce a broken library.
19377         allow_undefined_flag_F77='-berok'
19378        # Determine the default libpath from the value encoded in an empty executable.
19379        cat >conftest.$ac_ext <<_ACEOF
19380       program main
19381
19382       end
19383 _ACEOF
19384 rm -f conftest.$ac_objext conftest$ac_exeext
19385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19386   (eval $ac_link) 2>conftest.er1
19387   ac_status=$?
19388   grep -v '^ *+' conftest.er1 >conftest.err
19389   rm -f conftest.er1
19390   cat conftest.err >&5
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } &&
19393          { ac_try='test -z "$ac_f77_werror_flag"
19394                          || test ! -s conftest.err'
19395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396   (eval $ac_try) 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); }; } &&
19400          { ac_try='test -s conftest$ac_exeext'
19401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402   (eval $ac_try) 2>&5
19403   ac_status=$?
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); }; }; then
19406
19407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19408 }'`
19409 # Check for a 64-bit object if we didn't find anything.
19410 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; }
19411 }'`; fi
19412 else
19413   echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 fi
19417 rm -f conftest.err conftest.$ac_objext \
19418       conftest$ac_exeext conftest.$ac_ext
19419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19420
19421        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19422         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"
19423        else
19424         if test "$host_cpu" = ia64; then
19425           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19426           allow_undefined_flag_F77="-z nodefs"
19427           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"
19428         else
19429          # Determine the default libpath from the value encoded in an empty executable.
19430          cat >conftest.$ac_ext <<_ACEOF
19431       program main
19432
19433       end
19434 _ACEOF
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19437   (eval $ac_link) 2>conftest.er1
19438   ac_status=$?
19439   grep -v '^ *+' conftest.er1 >conftest.err
19440   rm -f conftest.er1
19441   cat conftest.err >&5
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); } &&
19444          { ac_try='test -z "$ac_f77_werror_flag"
19445                          || test ! -s conftest.err'
19446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447   (eval $ac_try) 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; } &&
19451          { ac_try='test -s conftest$ac_exeext'
19452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453   (eval $ac_try) 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); }; }; then
19457
19458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19459 }'`
19460 # Check for a 64-bit object if we didn't find anything.
19461 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; }
19462 }'`; fi
19463 else
19464   echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467 fi
19468 rm -f conftest.err conftest.$ac_objext \
19469       conftest$ac_exeext conftest.$ac_ext
19470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19471
19472          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19473           # Warning - without using the other run time loading flags,
19474           # -berok will link without error, but may produce a broken library.
19475           no_undefined_flag_F77=' ${wl}-bernotok'
19476           allow_undefined_flag_F77=' ${wl}-berok'
19477           # -bexpall does not export symbols beginning with underscore (_)
19478           always_export_symbols_F77=yes
19479           # Exported symbols can be pulled into shared objects from archives
19480           whole_archive_flag_spec_F77=' '
19481           archive_cmds_need_lc_F77=yes
19482           # This is similar to how AIX traditionally builds it's shared libraries.
19483           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'
19484         fi
19485       fi
19486       ;;
19487
19488     amigaos*)
19489       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)'
19490       hardcode_libdir_flag_spec_F77='-L$libdir'
19491       hardcode_minus_L_F77=yes
19492       # see comment about different semantics on the GNU ld section
19493       ld_shlibs_F77=no
19494       ;;
19495
19496     bsdi[45]*)
19497       export_dynamic_flag_spec_F77=-rdynamic
19498       ;;
19499
19500     cygwin* | mingw* | pw32*)
19501       # When not using gcc, we currently assume that we are using
19502       # Microsoft Visual C++.
19503       # hardcode_libdir_flag_spec is actually meaningless, as there is
19504       # no search path for DLLs.
19505       hardcode_libdir_flag_spec_F77=' '
19506       allow_undefined_flag_F77=unsupported
19507       # Tell ltmain to make .lib files, not .a files.
19508       libext=lib
19509       # Tell ltmain to make .dll files, not .so files.
19510       shrext_cmds=".dll"
19511       # FIXME: Setting linknames here is a bad hack.
19512       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19513       # The linker will automatically build a .lib file if we build a DLL.
19514       old_archive_From_new_cmds_F77='true'
19515       # FIXME: Should let the user specify the lib program.
19516       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19517       fix_srcfile_path='`cygpath -w "$srcfile"`'
19518       enable_shared_with_static_runtimes_F77=yes
19519       ;;
19520
19521     darwin* | rhapsody*)
19522       case "$host_os" in
19523         rhapsody* | darwin1.[012])
19524          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19525          ;;
19526        *) # Darwin 1.3 on
19527          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19528            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19529          else
19530            case ${MACOSX_DEPLOYMENT_TARGET} in
19531              10.[012])
19532                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19533                ;;
19534              10.*)
19535                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19536                ;;
19537            esac
19538          fi
19539          ;;
19540       esac
19541       archive_cmds_need_lc_F77=no
19542       hardcode_direct_F77=no
19543       hardcode_automatic_F77=yes
19544       hardcode_shlibpath_var_F77=unsupported
19545       whole_archive_flag_spec_F77=''
19546       link_all_deplibs_F77=yes
19547     if test "$GCC" = yes ; then
19548         output_verbose_link_cmd='echo'
19549         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19550       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19551       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19552       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}'
19553       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}'
19554     else
19555       case "$cc_basename" in
19556         xlc*)
19557          output_verbose_link_cmd='echo'
19558          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19559          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19560           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19561          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}'
19562           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}'
19563           ;;
19564        *)
19565          ld_shlibs_F77=no
19566           ;;
19567       esac
19568     fi
19569       ;;
19570
19571     dgux*)
19572       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19573       hardcode_libdir_flag_spec_F77='-L$libdir'
19574       hardcode_shlibpath_var_F77=no
19575       ;;
19576
19577     freebsd1*)
19578       ld_shlibs_F77=no
19579       ;;
19580
19581     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19582     # support.  Future versions do this automatically, but an explicit c++rt0.o
19583     # does not break anything, and helps significantly (at the cost of a little
19584     # extra space).
19585     freebsd2.2*)
19586       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19587       hardcode_libdir_flag_spec_F77='-R$libdir'
19588       hardcode_direct_F77=yes
19589       hardcode_shlibpath_var_F77=no
19590       ;;
19591
19592     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19593     freebsd2*)
19594       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19595       hardcode_direct_F77=yes
19596       hardcode_minus_L_F77=yes
19597       hardcode_shlibpath_var_F77=no
19598       ;;
19599
19600     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19601     freebsd* | kfreebsd*-gnu)
19602       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19603       hardcode_libdir_flag_spec_F77='-R$libdir'
19604       hardcode_direct_F77=yes
19605       hardcode_shlibpath_var_F77=no
19606       ;;
19607
19608     hpux9*)
19609       if test "$GCC" = yes; then
19610         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'
19611       else
19612         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'
19613       fi
19614       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19615       hardcode_libdir_separator_F77=:
19616       hardcode_direct_F77=yes
19617
19618       # hardcode_minus_L: Not really in the search PATH,
19619       # but as the default location of the library.
19620       hardcode_minus_L_F77=yes
19621       export_dynamic_flag_spec_F77='${wl}-E'
19622       ;;
19623
19624     hpux10* | hpux11*)
19625       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19626         case "$host_cpu" in
19627         hppa*64*|ia64*)
19628           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19629           ;;
19630         *)
19631           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19632           ;;
19633         esac
19634       else
19635         case "$host_cpu" in
19636         hppa*64*|ia64*)
19637           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19638           ;;
19639         *)
19640           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19641           ;;
19642         esac
19643       fi
19644       if test "$with_gnu_ld" = no; then
19645         case "$host_cpu" in
19646         hppa*64*)
19647           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19648           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19649           hardcode_libdir_separator_F77=:
19650           hardcode_direct_F77=no
19651           hardcode_shlibpath_var_F77=no
19652           ;;
19653         ia64*)
19654           hardcode_libdir_flag_spec_F77='-L$libdir'
19655           hardcode_direct_F77=no
19656           hardcode_shlibpath_var_F77=no
19657
19658           # hardcode_minus_L: Not really in the search PATH,
19659           # but as the default location of the library.
19660           hardcode_minus_L_F77=yes
19661           ;;
19662         *)
19663           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19664           hardcode_libdir_separator_F77=:
19665           hardcode_direct_F77=yes
19666           export_dynamic_flag_spec_F77='${wl}-E'
19667
19668           # hardcode_minus_L: Not really in the search PATH,
19669           # but as the default location of the library.
19670           hardcode_minus_L_F77=yes
19671           ;;
19672         esac
19673       fi
19674       ;;
19675
19676     irix5* | irix6* | nonstopux*)
19677       if test "$GCC" = yes; then
19678         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'
19679       else
19680         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'
19681         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19682       fi
19683       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19684       hardcode_libdir_separator_F77=:
19685       link_all_deplibs_F77=yes
19686       ;;
19687
19688     netbsd*)
19689       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19690         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19691       else
19692         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19693       fi
19694       hardcode_libdir_flag_spec_F77='-R$libdir'
19695       hardcode_direct_F77=yes
19696       hardcode_shlibpath_var_F77=no
19697       ;;
19698
19699     newsos6)
19700       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19701       hardcode_direct_F77=yes
19702       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19703       hardcode_libdir_separator_F77=:
19704       hardcode_shlibpath_var_F77=no
19705       ;;
19706
19707     openbsd*)
19708       hardcode_direct_F77=yes
19709       hardcode_shlibpath_var_F77=no
19710       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19711         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19712         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19713         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19714         export_dynamic_flag_spec_F77='${wl}-E'
19715       else
19716        case $host_os in
19717          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19718            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19719            hardcode_libdir_flag_spec_F77='-R$libdir'
19720            ;;
19721          *)
19722            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19723            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19724            ;;
19725        esac
19726       fi
19727       ;;
19728
19729     os2*)
19730       hardcode_libdir_flag_spec_F77='-L$libdir'
19731       hardcode_minus_L_F77=yes
19732       allow_undefined_flag_F77=unsupported
19733       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'
19734       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19735       ;;
19736
19737     osf3*)
19738       if test "$GCC" = yes; then
19739         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19740         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'
19741       else
19742         allow_undefined_flag_F77=' -expect_unresolved \*'
19743         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'
19744       fi
19745       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19746       hardcode_libdir_separator_F77=:
19747       ;;
19748
19749     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19750       if test "$GCC" = yes; then
19751         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19752         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'
19753         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19754       else
19755         allow_undefined_flag_F77=' -expect_unresolved \*'
19756         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'
19757         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~
19758         $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'
19759
19760         # Both c and cxx compiler support -rpath directly
19761         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19762       fi
19763       hardcode_libdir_separator_F77=:
19764       ;;
19765
19766     sco3.2v5*)
19767       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19768       hardcode_shlibpath_var_F77=no
19769       export_dynamic_flag_spec_F77='${wl}-Bexport'
19770       runpath_var=LD_RUN_PATH
19771       hardcode_runpath_var=yes
19772       ;;
19773
19774     solaris*)
19775       no_undefined_flag_F77=' -z text'
19776       if test "$GCC" = yes; then
19777         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19778         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19779           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19780       else
19781         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19782         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19783         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19784       fi
19785       hardcode_libdir_flag_spec_F77='-R$libdir'
19786       hardcode_shlibpath_var_F77=no
19787       case $host_os in
19788       solaris2.[0-5] | solaris2.[0-5].*) ;;
19789       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19790         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19791       esac
19792       link_all_deplibs_F77=yes
19793       ;;
19794
19795     sunos4*)
19796       if test "x$host_vendor" = xsequent; then
19797         # Use $CC to link under sequent, because it throws in some extra .o
19798         # files that make .init and .fini sections work.
19799         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19800       else
19801         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19802       fi
19803       hardcode_libdir_flag_spec_F77='-L$libdir'
19804       hardcode_direct_F77=yes
19805       hardcode_minus_L_F77=yes
19806       hardcode_shlibpath_var_F77=no
19807       ;;
19808
19809     sysv4)
19810       case $host_vendor in
19811         sni)
19812           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19813           hardcode_direct_F77=yes # is this really true???
19814         ;;
19815         siemens)
19816           ## LD is ld it makes a PLAMLIB
19817           ## CC just makes a GrossModule.
19818           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19819           reload_cmds_F77='$CC -r -o $output$reload_objs'
19820           hardcode_direct_F77=no
19821         ;;
19822         motorola)
19823           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19824           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19825         ;;
19826       esac
19827       runpath_var='LD_RUN_PATH'
19828       hardcode_shlibpath_var_F77=no
19829       ;;
19830
19831     sysv4.3*)
19832       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833       hardcode_shlibpath_var_F77=no
19834       export_dynamic_flag_spec_F77='-Bexport'
19835       ;;
19836
19837     sysv4*MP*)
19838       if test -d /usr/nec; then
19839         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19840         hardcode_shlibpath_var_F77=no
19841         runpath_var=LD_RUN_PATH
19842         hardcode_runpath_var=yes
19843         ld_shlibs_F77=yes
19844       fi
19845       ;;
19846
19847     sysv4.2uw2*)
19848       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19849       hardcode_direct_F77=yes
19850       hardcode_minus_L_F77=no
19851       hardcode_shlibpath_var_F77=no
19852       hardcode_runpath_var=yes
19853       runpath_var=LD_RUN_PATH
19854       ;;
19855
19856    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19857       no_undefined_flag_F77='${wl}-z ${wl}text'
19858       if test "$GCC" = yes; then
19859         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19860       else
19861         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19862       fi
19863       runpath_var='LD_RUN_PATH'
19864       hardcode_shlibpath_var_F77=no
19865       ;;
19866
19867     sysv5*)
19868       no_undefined_flag_F77=' -z text'
19869       # $CC -shared without GNU ld will not create a library from C++
19870       # object files and a static libstdc++, better avoid it by now
19871       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19872       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19873                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19874       hardcode_libdir_flag_spec_F77=
19875       hardcode_shlibpath_var_F77=no
19876       runpath_var='LD_RUN_PATH'
19877       ;;
19878
19879     uts4*)
19880       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19881       hardcode_libdir_flag_spec_F77='-L$libdir'
19882       hardcode_shlibpath_var_F77=no
19883       ;;
19884
19885     *)
19886       ld_shlibs_F77=no
19887       ;;
19888     esac
19889   fi
19890
19891 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19892 echo "${ECHO_T}$ld_shlibs_F77" >&6
19893 test "$ld_shlibs_F77" = no && can_build_shared=no
19894
19895 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19896 if test "$GCC" = yes; then
19897   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19898 fi
19899
19900 #
19901 # Do we need to explicitly link libc?
19902 #
19903 case "x$archive_cmds_need_lc_F77" in
19904 x|xyes)
19905   # Assume -lc should be added
19906   archive_cmds_need_lc_F77=yes
19907
19908   if test "$enable_shared" = yes && test "$GCC" = yes; then
19909     case $archive_cmds_F77 in
19910     *'~'*)
19911       # FIXME: we may have to deal with multi-command sequences.
19912       ;;
19913     '$CC '*)
19914       # Test whether the compiler implicitly links with -lc since on some
19915       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19916       # to ld, don't add -lc before -lgcc.
19917       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19918 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19919       $rm conftest*
19920       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19921
19922       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923   (eval $ac_compile) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); } 2>conftest.err; then
19927         soname=conftest
19928         lib=conftest
19929         libobjs=conftest.$ac_objext
19930         deplibs=
19931         wl=$lt_prog_compiler_wl_F77
19932         compiler_flags=-v
19933         linker_flags=-v
19934         verstring=
19935         output_objdir=.
19936         libname=conftest
19937         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19938         allow_undefined_flag_F77=
19939         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19940   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }
19944         then
19945           archive_cmds_need_lc_F77=no
19946         else
19947           archive_cmds_need_lc_F77=yes
19948         fi
19949         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19950       else
19951         cat conftest.err 1>&5
19952       fi
19953       $rm conftest*
19954       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19955 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19956       ;;
19957     esac
19958   fi
19959   ;;
19960 esac
19961
19962 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19963 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19964 library_names_spec=
19965 libname_spec='lib$name'
19966 soname_spec=
19967 shrext_cmds=".so"
19968 postinstall_cmds=
19969 postuninstall_cmds=
19970 finish_cmds=
19971 finish_eval=
19972 shlibpath_var=
19973 shlibpath_overrides_runpath=unknown
19974 version_type=none
19975 dynamic_linker="$host_os ld.so"
19976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19977 if test "$GCC" = yes; then
19978   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19979   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19980     # if the path contains ";" then we assume it to be the separator
19981     # otherwise default to the standard path separator (i.e. ":") - it is
19982     # assumed that no part of a normal pathname contains ";" but that should
19983     # okay in the real world where ";" in dirpaths is itself problematic.
19984     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19985   else
19986     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19987   fi
19988 else
19989   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19990 fi
19991 need_lib_prefix=unknown
19992 hardcode_into_libs=no
19993
19994 # when you set need_version to no, make sure it does not cause -set_version
19995 # flags to be left without arguments
19996 need_version=unknown
19997
19998 case $host_os in
19999 aix3*)
20000   version_type=linux
20001   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20002   shlibpath_var=LIBPATH
20003
20004   # AIX 3 has no versioning support, so we append a major version to the name.
20005   soname_spec='${libname}${release}${shared_ext}$major'
20006   ;;
20007
20008 aix4* | aix5*)
20009   version_type=linux
20010   need_lib_prefix=no
20011   need_version=no
20012   hardcode_into_libs=yes
20013   if test "$host_cpu" = ia64; then
20014     # AIX 5 supports IA64
20015     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20016     shlibpath_var=LD_LIBRARY_PATH
20017   else
20018     # With GCC up to 2.95.x, collect2 would create an import file
20019     # for dependence libraries.  The import file would start with
20020     # the line `#! .'.  This would cause the generated library to
20021     # depend on `.', always an invalid library.  This was fixed in
20022     # development snapshots of GCC prior to 3.0.
20023     case $host_os in
20024       aix4 | aix4.[01] | aix4.[01].*)
20025       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20026            echo ' yes '
20027            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20028         :
20029       else
20030         can_build_shared=no
20031       fi
20032       ;;
20033     esac
20034     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20035     # soname into executable. Probably we can add versioning support to
20036     # collect2, so additional links can be useful in future.
20037     if test "$aix_use_runtimelinking" = yes; then
20038       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20039       # instead of lib<name>.a to let people know that these are not
20040       # typical AIX shared libraries.
20041       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042     else
20043       # We preserve .a as extension for shared libraries through AIX4.2
20044       # and later when we are not doing run time linking.
20045       library_names_spec='${libname}${release}.a $libname.a'
20046       soname_spec='${libname}${release}${shared_ext}$major'
20047     fi
20048     shlibpath_var=LIBPATH
20049   fi
20050   ;;
20051
20052 amigaos*)
20053   library_names_spec='$libname.ixlibrary $libname.a'
20054   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20055   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'
20056   ;;
20057
20058 beos*)
20059   library_names_spec='${libname}${shared_ext}'
20060   dynamic_linker="$host_os ld.so"
20061   shlibpath_var=LIBRARY_PATH
20062   ;;
20063
20064 bsdi[45]*)
20065   version_type=linux
20066   need_version=no
20067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068   soname_spec='${libname}${release}${shared_ext}$major'
20069   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20070   shlibpath_var=LD_LIBRARY_PATH
20071   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20072   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20073   # the default ld.so.conf also contains /usr/contrib/lib and
20074   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20075   # libtool to hard-code these into programs
20076   ;;
20077
20078 cygwin* | mingw* | pw32*)
20079   version_type=windows
20080   shrext_cmds=".dll"
20081   need_version=no
20082   need_lib_prefix=no
20083
20084   case $GCC,$host_os in
20085   yes,cygwin* | yes,mingw* | yes,pw32*)
20086     library_names_spec='$libname.dll.a'
20087     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20088     postinstall_cmds='base_file=`basename \${file}`~
20089       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20090       dldir=$destdir/`dirname \$dlpath`~
20091       test -d \$dldir || mkdir -p \$dldir~
20092       $install_prog $dir/$dlname \$dldir/$dlname'
20093     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20094       dlpath=$dir/\$dldll~
20095        $rm \$dlpath'
20096     shlibpath_overrides_runpath=yes
20097
20098     case $host_os in
20099     cygwin*)
20100       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20101       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20102       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20103       ;;
20104     mingw*)
20105       # MinGW DLLs use traditional 'lib' prefix
20106       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20107       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20108       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20109         # It is most probably a Windows format PATH printed by
20110         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20111         # path with ; separators, and with drive letters. We can handle the
20112         # drive letters (cygwin fileutils understands them), so leave them,
20113         # especially as we might pass files found there to a mingw objdump,
20114         # which wouldn't understand a cygwinified path. Ahh.
20115         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20116       else
20117         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20118       fi
20119       ;;
20120     pw32*)
20121       # pw32 DLLs use 'pw' prefix rather than 'lib'
20122       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20123       ;;
20124     esac
20125     ;;
20126
20127   *)
20128     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20129     ;;
20130   esac
20131   dynamic_linker='Win32 ld.exe'
20132   # FIXME: first we should search . and the directory the executable is in
20133   shlibpath_var=PATH
20134   ;;
20135
20136 darwin* | rhapsody*)
20137   dynamic_linker="$host_os dyld"
20138   version_type=darwin
20139   need_lib_prefix=no
20140   need_version=no
20141   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20142   soname_spec='${libname}${release}${major}$shared_ext'
20143   shlibpath_overrides_runpath=yes
20144   shlibpath_var=DYLD_LIBRARY_PATH
20145   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20146   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20147   if test "$GCC" = yes; then
20148     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"`
20149   else
20150     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20151   fi
20152   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20153   ;;
20154
20155 dgux*)
20156   version_type=linux
20157   need_lib_prefix=no
20158   need_version=no
20159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20160   soname_spec='${libname}${release}${shared_ext}$major'
20161   shlibpath_var=LD_LIBRARY_PATH
20162   ;;
20163
20164 freebsd1*)
20165   dynamic_linker=no
20166   ;;
20167
20168 kfreebsd*-gnu)
20169   version_type=linux
20170   need_lib_prefix=no
20171   need_version=no
20172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20173   soname_spec='${libname}${release}${shared_ext}$major'
20174   shlibpath_var=LD_LIBRARY_PATH
20175   shlibpath_overrides_runpath=no
20176   hardcode_into_libs=yes
20177   dynamic_linker='GNU ld.so'
20178   ;;
20179
20180 freebsd*)
20181   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20182   version_type=freebsd-$objformat
20183   case $version_type in
20184     freebsd-elf*)
20185       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20186       need_version=no
20187       need_lib_prefix=no
20188       ;;
20189     freebsd-*)
20190       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20191       need_version=yes
20192       ;;
20193   esac
20194   shlibpath_var=LD_LIBRARY_PATH
20195   case $host_os in
20196   freebsd2*)
20197     shlibpath_overrides_runpath=yes
20198     ;;
20199   freebsd3.01* | freebsdelf3.01*)
20200     shlibpath_overrides_runpath=yes
20201     hardcode_into_libs=yes
20202     ;;
20203   *) # from 3.2 on
20204     shlibpath_overrides_runpath=no
20205     hardcode_into_libs=yes
20206     ;;
20207   esac
20208   ;;
20209
20210 gnu*)
20211   version_type=linux
20212   need_lib_prefix=no
20213   need_version=no
20214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20215   soname_spec='${libname}${release}${shared_ext}$major'
20216   shlibpath_var=LD_LIBRARY_PATH
20217   hardcode_into_libs=yes
20218   ;;
20219
20220 hpux9* | hpux10* | hpux11*)
20221   # Give a soname corresponding to the major version so that dld.sl refuses to
20222   # link against other versions.
20223   version_type=sunos
20224   need_lib_prefix=no
20225   need_version=no
20226   case "$host_cpu" in
20227   ia64*)
20228     shrext_cmds='.so'
20229     hardcode_into_libs=yes
20230     dynamic_linker="$host_os dld.so"
20231     shlibpath_var=LD_LIBRARY_PATH
20232     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234     soname_spec='${libname}${release}${shared_ext}$major'
20235     if test "X$HPUX_IA64_MODE" = X32; then
20236       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20237     else
20238       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20239     fi
20240     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20241     ;;
20242    hppa*64*)
20243      shrext_cmds='.sl'
20244      hardcode_into_libs=yes
20245      dynamic_linker="$host_os dld.sl"
20246      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20247      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20248      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249      soname_spec='${libname}${release}${shared_ext}$major'
20250      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20251      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20252      ;;
20253    *)
20254     shrext_cmds='.sl'
20255     dynamic_linker="$host_os dld.sl"
20256     shlibpath_var=SHLIB_PATH
20257     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259     soname_spec='${libname}${release}${shared_ext}$major'
20260     ;;
20261   esac
20262   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20263   postinstall_cmds='chmod 555 $lib'
20264   ;;
20265
20266 irix5* | irix6* | nonstopux*)
20267   case $host_os in
20268     nonstopux*) version_type=nonstopux ;;
20269     *)
20270         if test "$lt_cv_prog_gnu_ld" = yes; then
20271                 version_type=linux
20272         else
20273                 version_type=irix
20274         fi ;;
20275   esac
20276   need_lib_prefix=no
20277   need_version=no
20278   soname_spec='${libname}${release}${shared_ext}$major'
20279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20280   case $host_os in
20281   irix5* | nonstopux*)
20282     libsuff= shlibsuff=
20283     ;;
20284   *)
20285     case $LD in # libtool.m4 will add one of these switches to LD
20286     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20287       libsuff= shlibsuff= libmagic=32-bit;;
20288     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20289       libsuff=32 shlibsuff=N32 libmagic=N32;;
20290     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20291       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20292     *) libsuff= shlibsuff= libmagic=never-match;;
20293     esac
20294     ;;
20295   esac
20296   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20297   shlibpath_overrides_runpath=no
20298   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20299   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20300   hardcode_into_libs=yes
20301   ;;
20302
20303 # No shared lib support for Linux oldld, aout, or coff.
20304 linux*oldld* | linux*aout* | linux*coff*)
20305   dynamic_linker=no
20306   ;;
20307
20308 # This must be Linux ELF.
20309 linux*)
20310   version_type=linux
20311   need_lib_prefix=no
20312   need_version=no
20313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314   soname_spec='${libname}${release}${shared_ext}$major'
20315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20316   shlibpath_var=LD_LIBRARY_PATH
20317   shlibpath_overrides_runpath=no
20318   # This implies no fast_install, which is unacceptable.
20319   # Some rework will be needed to allow for fast_install
20320   # before this can be enabled.
20321   hardcode_into_libs=yes
20322
20323   # Append ld.so.conf contents to the search path
20324   if test -f /etc/ld.so.conf; then
20325     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20326     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20327   fi
20328
20329   # We used to test for /lib/ld.so.1 and disable shared libraries on
20330   # powerpc, because MkLinux only supported shared libraries with the
20331   # GNU dynamic linker.  Since this was broken with cross compilers,
20332   # most powerpc-linux boxes support dynamic linking these days and
20333   # people can always --disable-shared, the test was removed, and we
20334   # assume the GNU/Linux dynamic linker is in use.
20335   dynamic_linker='GNU/Linux ld.so'
20336   ;;
20337
20338 knetbsd*-gnu)
20339   version_type=linux
20340   need_lib_prefix=no
20341   need_version=no
20342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20343   soname_spec='${libname}${release}${shared_ext}$major'
20344   shlibpath_var=LD_LIBRARY_PATH
20345   shlibpath_overrides_runpath=no
20346   hardcode_into_libs=yes
20347   dynamic_linker='GNU ld.so'
20348   ;;
20349
20350 netbsd*)
20351   version_type=sunos
20352   need_lib_prefix=no
20353   need_version=no
20354   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20356     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20357     dynamic_linker='NetBSD (a.out) ld.so'
20358   else
20359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360     soname_spec='${libname}${release}${shared_ext}$major'
20361     dynamic_linker='NetBSD ld.elf_so'
20362   fi
20363   shlibpath_var=LD_LIBRARY_PATH
20364   shlibpath_overrides_runpath=yes
20365   hardcode_into_libs=yes
20366   ;;
20367
20368 newsos6)
20369   version_type=linux
20370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20371   shlibpath_var=LD_LIBRARY_PATH
20372   shlibpath_overrides_runpath=yes
20373   ;;
20374
20375 nto-qnx*)
20376   version_type=linux
20377   need_lib_prefix=no
20378   need_version=no
20379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20380   soname_spec='${libname}${release}${shared_ext}$major'
20381   shlibpath_var=LD_LIBRARY_PATH
20382   shlibpath_overrides_runpath=yes
20383   ;;
20384
20385 openbsd*)
20386   version_type=sunos
20387   need_lib_prefix=no
20388   need_version=no
20389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20390   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20391   shlibpath_var=LD_LIBRARY_PATH
20392   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20393     case $host_os in
20394       openbsd2.[89] | openbsd2.[89].*)
20395         shlibpath_overrides_runpath=no
20396         ;;
20397       *)
20398         shlibpath_overrides_runpath=yes
20399         ;;
20400       esac
20401   else
20402     shlibpath_overrides_runpath=yes
20403   fi
20404   ;;
20405
20406 os2*)
20407   libname_spec='$name'
20408   shrext_cmds=".dll"
20409   need_lib_prefix=no
20410   library_names_spec='$libname${shared_ext} $libname.a'
20411   dynamic_linker='OS/2 ld.exe'
20412   shlibpath_var=LIBPATH
20413   ;;
20414
20415 osf3* | osf4* | osf5*)
20416   version_type=osf
20417   need_lib_prefix=no
20418   need_version=no
20419   soname_spec='${libname}${release}${shared_ext}$major'
20420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421   shlibpath_var=LD_LIBRARY_PATH
20422   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20423   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20424   ;;
20425
20426 sco3.2v5*)
20427   version_type=osf
20428   soname_spec='${libname}${release}${shared_ext}$major'
20429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430   shlibpath_var=LD_LIBRARY_PATH
20431   ;;
20432
20433 solaris*)
20434   version_type=linux
20435   need_lib_prefix=no
20436   need_version=no
20437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438   soname_spec='${libname}${release}${shared_ext}$major'
20439   shlibpath_var=LD_LIBRARY_PATH
20440   shlibpath_overrides_runpath=yes
20441   hardcode_into_libs=yes
20442   # ldd complains unless libraries are executable
20443   postinstall_cmds='chmod +x $lib'
20444   ;;
20445
20446 sunos4*)
20447   version_type=sunos
20448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20449   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20450   shlibpath_var=LD_LIBRARY_PATH
20451   shlibpath_overrides_runpath=yes
20452   if test "$with_gnu_ld" = yes; then
20453     need_lib_prefix=no
20454   fi
20455   need_version=yes
20456   ;;
20457
20458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20459   version_type=linux
20460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461   soname_spec='${libname}${release}${shared_ext}$major'
20462   shlibpath_var=LD_LIBRARY_PATH
20463   case $host_vendor in
20464     sni)
20465       shlibpath_overrides_runpath=no
20466       need_lib_prefix=no
20467       export_dynamic_flag_spec='${wl}-Blargedynsym'
20468       runpath_var=LD_RUN_PATH
20469       ;;
20470     siemens)
20471       need_lib_prefix=no
20472       ;;
20473     motorola)
20474       need_lib_prefix=no
20475       need_version=no
20476       shlibpath_overrides_runpath=no
20477       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20478       ;;
20479   esac
20480   ;;
20481
20482 sysv4*MP*)
20483   if test -d /usr/nec ;then
20484     version_type=linux
20485     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20486     soname_spec='$libname${shared_ext}.$major'
20487     shlibpath_var=LD_LIBRARY_PATH
20488   fi
20489   ;;
20490
20491 uts4*)
20492   version_type=linux
20493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494   soname_spec='${libname}${release}${shared_ext}$major'
20495   shlibpath_var=LD_LIBRARY_PATH
20496   ;;
20497
20498 *)
20499   dynamic_linker=no
20500   ;;
20501 esac
20502 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20503 echo "${ECHO_T}$dynamic_linker" >&6
20504 test "$dynamic_linker" = no && can_build_shared=no
20505
20506 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20507 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20508 hardcode_action_F77=
20509 if test -n "$hardcode_libdir_flag_spec_F77" || \
20510    test -n "$runpath_var_F77" || \
20511    test "X$hardcode_automatic_F77" = "Xyes" ; then
20512
20513   # We can hardcode non-existant directories.
20514   if test "$hardcode_direct_F77" != no &&
20515      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20516      # have to relink, otherwise we might link with an installed library
20517      # when we should be linking with a yet-to-be-installed one
20518      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20519      test "$hardcode_minus_L_F77" != no; then
20520     # Linking always hardcodes the temporary library directory.
20521     hardcode_action_F77=relink
20522   else
20523     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20524     hardcode_action_F77=immediate
20525   fi
20526 else
20527   # We cannot hardcode anything, or else we can only hardcode existing
20528   # directories.
20529   hardcode_action_F77=unsupported
20530 fi
20531 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20532 echo "${ECHO_T}$hardcode_action_F77" >&6
20533
20534 if test "$hardcode_action_F77" = relink; then
20535   # Fast installation is not supported
20536   enable_fast_install=no
20537 elif test "$shlibpath_overrides_runpath" = yes ||
20538      test "$enable_shared" = no; then
20539   # Fast installation is not necessary
20540   enable_fast_install=needless
20541 fi
20542
20543 striplib=
20544 old_striplib=
20545 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20546 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20547 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20548   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20549   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20550   echo "$as_me:$LINENO: result: yes" >&5
20551 echo "${ECHO_T}yes" >&6
20552 else
20553 # FIXME - insert some real tests, host_os isn't really good enough
20554   case $host_os in
20555    darwin*)
20556        if test -n "$STRIP" ; then
20557          striplib="$STRIP -x"
20558          echo "$as_me:$LINENO: result: yes" >&5
20559 echo "${ECHO_T}yes" >&6
20560        else
20561   echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6
20563 fi
20564        ;;
20565    *)
20566   echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6
20568     ;;
20569   esac
20570 fi
20571
20572
20573
20574 # The else clause should only fire when bootstrapping the
20575 # libtool distribution, otherwise you forgot to ship ltmain.sh
20576 # with your package, and you will get complaints that there are
20577 # no rules to generate ltmain.sh.
20578 if test -f "$ltmain"; then
20579   # See if we are running on zsh, and set the options which allow our commands through
20580   # without removal of \ escapes.
20581   if test -n "${ZSH_VERSION+set}" ; then
20582     setopt NO_GLOB_SUBST
20583   fi
20584   # Now quote all the things that may contain metacharacters while being
20585   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20586   # variables and quote the copies for generation of the libtool script.
20587   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20588     SED SHELL STRIP \
20589     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591     deplibs_check_method reload_flag reload_cmds need_locks \
20592     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593     lt_cv_sys_global_symbol_to_c_name_address \
20594     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595     old_postinstall_cmds old_postuninstall_cmds \
20596     compiler_F77 \
20597     CC_F77 \
20598     LD_F77 \
20599     lt_prog_compiler_wl_F77 \
20600     lt_prog_compiler_pic_F77 \
20601     lt_prog_compiler_static_F77 \
20602     lt_prog_compiler_no_builtin_flag_F77 \
20603     export_dynamic_flag_spec_F77 \
20604     thread_safe_flag_spec_F77 \
20605     whole_archive_flag_spec_F77 \
20606     enable_shared_with_static_runtimes_F77 \
20607     old_archive_cmds_F77 \
20608     old_archive_from_new_cmds_F77 \
20609     predep_objects_F77 \
20610     postdep_objects_F77 \
20611     predeps_F77 \
20612     postdeps_F77 \
20613     compiler_lib_search_path_F77 \
20614     archive_cmds_F77 \
20615     archive_expsym_cmds_F77 \
20616     postinstall_cmds_F77 \
20617     postuninstall_cmds_F77 \
20618     old_archive_from_expsyms_cmds_F77 \
20619     allow_undefined_flag_F77 \
20620     no_undefined_flag_F77 \
20621     export_symbols_cmds_F77 \
20622     hardcode_libdir_flag_spec_F77 \
20623     hardcode_libdir_flag_spec_ld_F77 \
20624     hardcode_libdir_separator_F77 \
20625     hardcode_automatic_F77 \
20626     module_cmds_F77 \
20627     module_expsym_cmds_F77 \
20628     lt_cv_prog_compiler_c_o_F77 \
20629     exclude_expsyms_F77 \
20630     include_expsyms_F77; do
20631
20632     case $var in
20633     old_archive_cmds_F77 | \
20634     old_archive_from_new_cmds_F77 | \
20635     archive_cmds_F77 | \
20636     archive_expsym_cmds_F77 | \
20637     module_cmds_F77 | \
20638     module_expsym_cmds_F77 | \
20639     old_archive_from_expsyms_cmds_F77 | \
20640     export_symbols_cmds_F77 | \
20641     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20642     postinstall_cmds | postuninstall_cmds | \
20643     old_postinstall_cmds | old_postuninstall_cmds | \
20644     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20645       # Double-quote double-evaled strings.
20646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20647       ;;
20648     *)
20649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20650       ;;
20651     esac
20652   done
20653
20654   case $lt_echo in
20655   *'\$0 --fallback-echo"')
20656     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20657     ;;
20658   esac
20659
20660 cfgfile="$ofile"
20661
20662   cat <<__EOF__ >> "$cfgfile"
20663 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20664
20665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20666
20667 # Shell to use when invoking shell scripts.
20668 SHELL=$lt_SHELL
20669
20670 # Whether or not to build shared libraries.
20671 build_libtool_libs=$enable_shared
20672
20673 # Whether or not to build static libraries.
20674 build_old_libs=$enable_static
20675
20676 # Whether or not to add -lc for building shared libraries.
20677 build_libtool_need_lc=$archive_cmds_need_lc_F77
20678
20679 # Whether or not to disallow shared libs when runtime libs are static
20680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20681
20682 # Whether or not to optimize for fast installation.
20683 fast_install=$enable_fast_install
20684
20685 # The host system.
20686 host_alias=$host_alias
20687 host=$host
20688
20689 # An echo program that does not interpret backslashes.
20690 echo=$lt_echo
20691
20692 # The archiver.
20693 AR=$lt_AR
20694 AR_FLAGS=$lt_AR_FLAGS
20695
20696 # A C compiler.
20697 LTCC=$lt_LTCC
20698
20699 # A language-specific compiler.
20700 CC=$lt_compiler_F77
20701
20702 # Is the compiler the GNU C compiler?
20703 with_gcc=$GCC_F77
20704
20705 # An ERE matcher.
20706 EGREP=$lt_EGREP
20707
20708 # The linker used to build libraries.
20709 LD=$lt_LD_F77
20710
20711 # Whether we need hard or soft links.
20712 LN_S=$lt_LN_S
20713
20714 # A BSD-compatible nm program.
20715 NM=$lt_NM
20716
20717 # A symbol stripping program
20718 STRIP=$lt_STRIP
20719
20720 # Used to examine libraries when file_magic_cmd begins "file"
20721 MAGIC_CMD=$MAGIC_CMD
20722
20723 # Used on cygwin: DLL creation program.
20724 DLLTOOL="$DLLTOOL"
20725
20726 # Used on cygwin: object dumper.
20727 OBJDUMP="$OBJDUMP"
20728
20729 # Used on cygwin: assembler.
20730 AS="$AS"
20731
20732 # The name of the directory that contains temporary libtool files.
20733 objdir=$objdir
20734
20735 # How to create reloadable object files.
20736 reload_flag=$lt_reload_flag
20737 reload_cmds=$lt_reload_cmds
20738
20739 # How to pass a linker flag through the compiler.
20740 wl=$lt_lt_prog_compiler_wl_F77
20741
20742 # Object file suffix (normally "o").
20743 objext="$ac_objext"
20744
20745 # Old archive suffix (normally "a").
20746 libext="$libext"
20747
20748 # Shared library suffix (normally ".so").
20749 shrext_cmds='$shrext_cmds'
20750
20751 # Executable file suffix (normally "").
20752 exeext="$exeext"
20753
20754 # Additional compiler flags for building library objects.
20755 pic_flag=$lt_lt_prog_compiler_pic_F77
20756 pic_mode=$pic_mode
20757
20758 # What is the maximum length of a command?
20759 max_cmd_len=$lt_cv_sys_max_cmd_len
20760
20761 # Does compiler simultaneously support -c and -o options?
20762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20763
20764 # Must we lock files when doing compilation ?
20765 need_locks=$lt_need_locks
20766
20767 # Do we need the lib prefix for modules?
20768 need_lib_prefix=$need_lib_prefix
20769
20770 # Do we need a version for libraries?
20771 need_version=$need_version
20772
20773 # Whether dlopen is supported.
20774 dlopen_support=$enable_dlopen
20775
20776 # Whether dlopen of programs is supported.
20777 dlopen_self=$enable_dlopen_self
20778
20779 # Whether dlopen of statically linked programs is supported.
20780 dlopen_self_static=$enable_dlopen_self_static
20781
20782 # Compiler flag to prevent dynamic linking.
20783 link_static_flag=$lt_lt_prog_compiler_static_F77
20784
20785 # Compiler flag to turn off builtin functions.
20786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20787
20788 # Compiler flag to allow reflexive dlopens.
20789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20790
20791 # Compiler flag to generate shared objects directly from archives.
20792 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20793
20794 # Compiler flag to generate thread-safe objects.
20795 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20796
20797 # Library versioning type.
20798 version_type=$version_type
20799
20800 # Format of library name prefix.
20801 libname_spec=$lt_libname_spec
20802
20803 # List of archive names.  First name is the real one, the rest are links.
20804 # The last name is the one that the linker finds with -lNAME.
20805 library_names_spec=$lt_library_names_spec
20806
20807 # The coded name of the library, if different from the real name.
20808 soname_spec=$lt_soname_spec
20809
20810 # Commands used to build and install an old-style archive.
20811 RANLIB=$lt_RANLIB
20812 old_archive_cmds=$lt_old_archive_cmds_F77
20813 old_postinstall_cmds=$lt_old_postinstall_cmds
20814 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20815
20816 # Create an old-style archive from a shared archive.
20817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20818
20819 # Create a temporary old-style archive to link instead of a shared archive.
20820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20821
20822 # Commands used to build and install a shared archive.
20823 archive_cmds=$lt_archive_cmds_F77
20824 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20825 postinstall_cmds=$lt_postinstall_cmds
20826 postuninstall_cmds=$lt_postuninstall_cmds
20827
20828 # Commands used to build a loadable module (assumed same as above if empty)
20829 module_cmds=$lt_module_cmds_F77
20830 module_expsym_cmds=$lt_module_expsym_cmds_F77
20831
20832 # Commands to strip libraries.
20833 old_striplib=$lt_old_striplib
20834 striplib=$lt_striplib
20835
20836 # Dependencies to place before the objects being linked to create a
20837 # shared library.
20838 predep_objects=$lt_predep_objects_F77
20839
20840 # Dependencies to place after the objects being linked to create a
20841 # shared library.
20842 postdep_objects=$lt_postdep_objects_F77
20843
20844 # Dependencies to place before the objects being linked to create a
20845 # shared library.
20846 predeps=$lt_predeps_F77
20847
20848 # Dependencies to place after the objects being linked to create a
20849 # shared library.
20850 postdeps=$lt_postdeps_F77
20851
20852 # The library search path used internally by the compiler when linking
20853 # a shared library.
20854 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20855
20856 # Method to check whether dependent libraries are shared objects.
20857 deplibs_check_method=$lt_deplibs_check_method
20858
20859 # Command to use when deplibs_check_method == file_magic.
20860 file_magic_cmd=$lt_file_magic_cmd
20861
20862 # Flag that allows shared libraries with undefined symbols to be built.
20863 allow_undefined_flag=$lt_allow_undefined_flag_F77
20864
20865 # Flag that forces no undefined symbols.
20866 no_undefined_flag=$lt_no_undefined_flag_F77
20867
20868 # Commands used to finish a libtool library installation in a directory.
20869 finish_cmds=$lt_finish_cmds
20870
20871 # Same as above, but a single script fragment to be evaled but not shown.
20872 finish_eval=$lt_finish_eval
20873
20874 # Take the output of nm and produce a listing of raw symbols and C names.
20875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20876
20877 # Transform the output of nm in a proper C declaration
20878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20879
20880 # Transform the output of nm in a C name address pair
20881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20882
20883 # This is the shared library runtime path variable.
20884 runpath_var=$runpath_var
20885
20886 # This is the shared library path variable.
20887 shlibpath_var=$shlibpath_var
20888
20889 # Is shlibpath searched before the hard-coded library search path?
20890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20891
20892 # How to hardcode a shared library path into an executable.
20893 hardcode_action=$hardcode_action_F77
20894
20895 # Whether we should hardcode library paths into libraries.
20896 hardcode_into_libs=$hardcode_into_libs
20897
20898 # Flag to hardcode \$libdir into a binary during linking.
20899 # This must work even if \$libdir does not exist.
20900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20901
20902 # If ld is used when linking, flag to hardcode \$libdir into
20903 # a binary during linking. This must work even if \$libdir does
20904 # not exist.
20905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20906
20907 # Whether we need a single -rpath flag with a separated argument.
20908 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20909
20910 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20911 # resulting binary.
20912 hardcode_direct=$hardcode_direct_F77
20913
20914 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20915 # resulting binary.
20916 hardcode_minus_L=$hardcode_minus_L_F77
20917
20918 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20919 # the resulting binary.
20920 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20921
20922 # Set to yes if building a shared library automatically hardcodes DIR into the library
20923 # and all subsequent libraries and executables linked against it.
20924 hardcode_automatic=$hardcode_automatic_F77
20925
20926 # Variables whose values should be saved in libtool wrapper scripts and
20927 # restored at relink time.
20928 variables_saved_for_relink="$variables_saved_for_relink"
20929
20930 # Whether libtool must link a program against all its dependency libraries.
20931 link_all_deplibs=$link_all_deplibs_F77
20932
20933 # Compile-time system search path for libraries
20934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20935
20936 # Run-time system search path for libraries
20937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20938
20939 # Fix the shell variable \$srcfile for the compiler.
20940 fix_srcfile_path="$fix_srcfile_path_F77"
20941
20942 # Set to yes if exported symbols are required.
20943 always_export_symbols=$always_export_symbols_F77
20944
20945 # The commands to list exported symbols.
20946 export_symbols_cmds=$lt_export_symbols_cmds_F77
20947
20948 # The commands to extract the exported symbol list from a shared archive.
20949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20950
20951 # Symbols that should not be listed in the preloaded symbols.
20952 exclude_expsyms=$lt_exclude_expsyms_F77
20953
20954 # Symbols that must always be exported.
20955 include_expsyms=$lt_include_expsyms_F77
20956
20957 # ### END LIBTOOL TAG CONFIG: $tagname
20958
20959 __EOF__
20960
20961
20962 else
20963   # If there is no Makefile yet, we rely on a make rule to execute
20964   # `config.status --recheck' to rerun these tests and create the
20965   # libtool script then.
20966   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20967   if test -f "$ltmain_in"; then
20968     test -f Makefile && make "$ltmain"
20969   fi
20970 fi
20971
20972
20973 ac_ext=c
20974 ac_cpp='$CPP $CPPFLAGS'
20975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20978
20979 CC="$lt_save_CC"
20980
20981         else
20982           tagname=""
20983         fi
20984         ;;
20985
20986       GCJ)
20987         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20988           ac_ext=c
20989 ac_cpp='$CPP $CPPFLAGS'
20990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20993
20994
20995 # Source file extension for Java test sources.
20996 ac_ext=java
20997
20998 # Object file extension for compiled Java test sources.
20999 objext=o
21000 objext_GCJ=$objext
21001
21002 # Code to be used in simple compile tests
21003 lt_simple_compile_test_code="class foo {}\n"
21004
21005 # Code to be used in simple link tests
21006 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21007
21008 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21009
21010 # If no C compiler was specified, use CC.
21011 LTCC=${LTCC-"$CC"}
21012
21013 # Allow CC to be a program name with arguments.
21014 compiler=$CC
21015
21016
21017 # Allow CC to be a program name with arguments.
21018 lt_save_CC="$CC"
21019 CC=${GCJ-"gcj"}
21020 compiler=$CC
21021 compiler_GCJ=$CC
21022
21023 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21024 archive_cmds_need_lc_GCJ=no
21025
21026
21027 lt_prog_compiler_no_builtin_flag_GCJ=
21028
21029 if test "$GCC" = yes; then
21030   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21031
21032
21033 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21034 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21036   echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038   lt_cv_prog_compiler_rtti_exceptions=no
21039   ac_outfile=conftest.$ac_objext
21040    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21041    lt_compiler_flag="-fno-rtti -fno-exceptions"
21042    # Insert the option either (1) after the last *FLAGS variable, or
21043    # (2) before a word containing "conftest.", or (3) at the end.
21044    # Note that $ac_compile itself does not contain backslashes and begins
21045    # with a dollar sign (not a hyphen), so the echo should work correctly.
21046    # The option is referenced via a variable to avoid confusing sed.
21047    lt_compile=`echo "$ac_compile" | $SED \
21048    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21050    -e 's:$: $lt_compiler_flag:'`
21051    (eval echo "\"\$as_me:21051: $lt_compile\"" >&5)
21052    (eval "$lt_compile" 2>conftest.err)
21053    ac_status=$?
21054    cat conftest.err >&5
21055    echo "$as_me:21055: \$? = $ac_status" >&5
21056    if (exit $ac_status) && test -s "$ac_outfile"; then
21057      # The compiler can only warn and ignore the option if not recognized
21058      # So say no if there are warnings
21059      if test ! -s conftest.err; then
21060        lt_cv_prog_compiler_rtti_exceptions=yes
21061      fi
21062    fi
21063    $rm conftest*
21064
21065 fi
21066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21067 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21068
21069 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21070     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21071 else
21072     :
21073 fi
21074
21075 fi
21076
21077 lt_prog_compiler_wl_GCJ=
21078 lt_prog_compiler_pic_GCJ=
21079 lt_prog_compiler_static_GCJ=
21080
21081 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21082 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21083
21084   if test "$GCC" = yes; then
21085     lt_prog_compiler_wl_GCJ='-Wl,'
21086     lt_prog_compiler_static_GCJ='-static'
21087
21088     case $host_os in
21089       aix*)
21090       # All AIX code is PIC.
21091       if test "$host_cpu" = ia64; then
21092         # AIX 5 now supports IA64 processor
21093         lt_prog_compiler_static_GCJ='-Bstatic'
21094       fi
21095       ;;
21096
21097     amigaos*)
21098       # FIXME: we need at least 68020 code to build shared libraries, but
21099       # adding the `-m68020' flag to GCC prevents building anything better,
21100       # like `-m68040'.
21101       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21102       ;;
21103
21104     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21105       # PIC is the default for these OSes.
21106       ;;
21107
21108     mingw* | pw32* | os2*)
21109       # This hack is so that the source file can tell whether it is being
21110       # built for inclusion in a dll (and should export symbols for example).
21111       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21112       ;;
21113
21114     darwin* | rhapsody*)
21115       # PIC is the default on this platform
21116       # Common symbols not allowed in MH_DYLIB files
21117       lt_prog_compiler_pic_GCJ='-fno-common'
21118       ;;
21119
21120     msdosdjgpp*)
21121       # Just because we use GCC doesn't mean we suddenly get shared libraries
21122       # on systems that don't support them.
21123       lt_prog_compiler_can_build_shared_GCJ=no
21124       enable_shared=no
21125       ;;
21126
21127     sysv4*MP*)
21128       if test -d /usr/nec; then
21129         lt_prog_compiler_pic_GCJ=-Kconform_pic
21130       fi
21131       ;;
21132
21133     hpux*)
21134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21135       # not for PA HP-UX.
21136       case "$host_cpu" in
21137       hppa*64*|ia64*)
21138         # +Z the default
21139         ;;
21140       *)
21141         lt_prog_compiler_pic_GCJ='-fPIC'
21142         ;;
21143       esac
21144       ;;
21145
21146     *)
21147       lt_prog_compiler_pic_GCJ='-fPIC'
21148       ;;
21149     esac
21150   else
21151     # PORTME Check for flag to pass linker flags through the system compiler.
21152     case $host_os in
21153     aix*)
21154       lt_prog_compiler_wl_GCJ='-Wl,'
21155       if test "$host_cpu" = ia64; then
21156         # AIX 5 now supports IA64 processor
21157         lt_prog_compiler_static_GCJ='-Bstatic'
21158       else
21159         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21160       fi
21161       ;;
21162       darwin*)
21163         # PIC is the default on this platform
21164         # Common symbols not allowed in MH_DYLIB files
21165        case "$cc_basename" in
21166          xlc*)
21167          lt_prog_compiler_pic_GCJ='-qnocommon'
21168          lt_prog_compiler_wl_GCJ='-Wl,'
21169          ;;
21170        esac
21171        ;;
21172
21173     mingw* | pw32* | os2*)
21174       # This hack is so that the source file can tell whether it is being
21175       # built for inclusion in a dll (and should export symbols for example).
21176       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21177       ;;
21178
21179     hpux9* | hpux10* | hpux11*)
21180       lt_prog_compiler_wl_GCJ='-Wl,'
21181       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21182       # not for PA HP-UX.
21183       case "$host_cpu" in
21184       hppa*64*|ia64*)
21185         # +Z the default
21186         ;;
21187       *)
21188         lt_prog_compiler_pic_GCJ='+Z'
21189         ;;
21190       esac
21191       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21192       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21193       ;;
21194
21195     irix5* | irix6* | nonstopux*)
21196       lt_prog_compiler_wl_GCJ='-Wl,'
21197       # PIC (with -KPIC) is the default.
21198       lt_prog_compiler_static_GCJ='-non_shared'
21199       ;;
21200
21201     newsos6)
21202       lt_prog_compiler_pic_GCJ='-KPIC'
21203       lt_prog_compiler_static_GCJ='-Bstatic'
21204       ;;
21205
21206     linux*)
21207       case $CC in
21208       icc* | ecc*)
21209         lt_prog_compiler_wl_GCJ='-Wl,'
21210         lt_prog_compiler_pic_GCJ='-KPIC'
21211         lt_prog_compiler_static_GCJ='-static'
21212         ;;
21213       ccc*)
21214         lt_prog_compiler_wl_GCJ='-Wl,'
21215         # All Alpha code is PIC.
21216         lt_prog_compiler_static_GCJ='-non_shared'
21217         ;;
21218       esac
21219       ;;
21220
21221     osf3* | osf4* | osf5*)
21222       lt_prog_compiler_wl_GCJ='-Wl,'
21223       # All OSF/1 code is PIC.
21224       lt_prog_compiler_static_GCJ='-non_shared'
21225       ;;
21226
21227     sco3.2v5*)
21228       lt_prog_compiler_pic_GCJ='-Kpic'
21229       lt_prog_compiler_static_GCJ='-dn'
21230       ;;
21231
21232     solaris*)
21233       lt_prog_compiler_wl_GCJ='-Wl,'
21234       lt_prog_compiler_pic_GCJ='-KPIC'
21235       lt_prog_compiler_static_GCJ='-Bstatic'
21236       ;;
21237
21238     sunos4*)
21239       lt_prog_compiler_wl_GCJ='-Qoption ld '
21240       lt_prog_compiler_pic_GCJ='-PIC'
21241       lt_prog_compiler_static_GCJ='-Bstatic'
21242       ;;
21243
21244     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21245       lt_prog_compiler_wl_GCJ='-Wl,'
21246       lt_prog_compiler_pic_GCJ='-KPIC'
21247       lt_prog_compiler_static_GCJ='-Bstatic'
21248       ;;
21249
21250     sysv4*MP*)
21251       if test -d /usr/nec ;then
21252         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21253         lt_prog_compiler_static_GCJ='-Bstatic'
21254       fi
21255       ;;
21256
21257     uts4*)
21258       lt_prog_compiler_pic_GCJ='-pic'
21259       lt_prog_compiler_static_GCJ='-Bstatic'
21260       ;;
21261
21262     *)
21263       lt_prog_compiler_can_build_shared_GCJ=no
21264       ;;
21265     esac
21266   fi
21267
21268 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21269 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21270
21271 #
21272 # Check to make sure the PIC flag actually works.
21273 #
21274 if test -n "$lt_prog_compiler_pic_GCJ"; then
21275
21276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21278 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21279   echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281   lt_prog_compiler_pic_works_GCJ=no
21282   ac_outfile=conftest.$ac_objext
21283    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21284    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21285    # Insert the option either (1) after the last *FLAGS variable, or
21286    # (2) before a word containing "conftest.", or (3) at the end.
21287    # Note that $ac_compile itself does not contain backslashes and begins
21288    # with a dollar sign (not a hyphen), so the echo should work correctly.
21289    # The option is referenced via a variable to avoid confusing sed.
21290    lt_compile=`echo "$ac_compile" | $SED \
21291    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21292    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21293    -e 's:$: $lt_compiler_flag:'`
21294    (eval echo "\"\$as_me:21294: $lt_compile\"" >&5)
21295    (eval "$lt_compile" 2>conftest.err)
21296    ac_status=$?
21297    cat conftest.err >&5
21298    echo "$as_me:21298: \$? = $ac_status" >&5
21299    if (exit $ac_status) && test -s "$ac_outfile"; then
21300      # The compiler can only warn and ignore the option if not recognized
21301      # So say no if there are warnings
21302      if test ! -s conftest.err; then
21303        lt_prog_compiler_pic_works_GCJ=yes
21304      fi
21305    fi
21306    $rm conftest*
21307
21308 fi
21309 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21310 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21311
21312 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21313     case $lt_prog_compiler_pic_GCJ in
21314      "" | " "*) ;;
21315      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21316      esac
21317 else
21318     lt_prog_compiler_pic_GCJ=
21319      lt_prog_compiler_can_build_shared_GCJ=no
21320 fi
21321
21322 fi
21323 case "$host_os" in
21324   # For platforms which do not support PIC, -DPIC is meaningless:
21325   *djgpp*)
21326     lt_prog_compiler_pic_GCJ=
21327     ;;
21328   *)
21329     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21330     ;;
21331 esac
21332
21333 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21336   echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338   lt_cv_prog_compiler_c_o_GCJ=no
21339    $rm -r conftest 2>/dev/null
21340    mkdir conftest
21341    cd conftest
21342    mkdir out
21343    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21344
21345    lt_compiler_flag="-o out/conftest2.$ac_objext"
21346    # Insert the option either (1) after the last *FLAGS variable, or
21347    # (2) before a word containing "conftest.", or (3) at the end.
21348    # Note that $ac_compile itself does not contain backslashes and begins
21349    # with a dollar sign (not a hyphen), so the echo should work correctly.
21350    lt_compile=`echo "$ac_compile" | $SED \
21351    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21353    -e 's:$: $lt_compiler_flag:'`
21354    (eval echo "\"\$as_me:21354: $lt_compile\"" >&5)
21355    (eval "$lt_compile" 2>out/conftest.err)
21356    ac_status=$?
21357    cat out/conftest.err >&5
21358    echo "$as_me:21358: \$? = $ac_status" >&5
21359    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21360    then
21361      # The compiler can only warn and ignore the option if not recognized
21362      # So say no if there are warnings
21363      if test ! -s out/conftest.err; then
21364        lt_cv_prog_compiler_c_o_GCJ=yes
21365      fi
21366    fi
21367    chmod u+w .
21368    $rm conftest*
21369    # SGI C++ compiler will create directory out/ii_files/ for
21370    # template instantiation
21371    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21372    $rm out/* && rmdir out
21373    cd ..
21374    rmdir conftest
21375    $rm conftest*
21376
21377 fi
21378 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21379 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21380
21381
21382 hard_links="nottested"
21383 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21384   # do not overwrite the value of need_locks provided by the user
21385   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21386 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21387   hard_links=yes
21388   $rm conftest*
21389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21390   touch conftest.a
21391   ln conftest.a conftest.b 2>&5 || hard_links=no
21392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21393   echo "$as_me:$LINENO: result: $hard_links" >&5
21394 echo "${ECHO_T}$hard_links" >&6
21395   if test "$hard_links" = no; then
21396     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21397 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21398     need_locks=warn
21399   fi
21400 else
21401   need_locks=no
21402 fi
21403
21404 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21406
21407   runpath_var=
21408   allow_undefined_flag_GCJ=
21409   enable_shared_with_static_runtimes_GCJ=no
21410   archive_cmds_GCJ=
21411   archive_expsym_cmds_GCJ=
21412   old_archive_From_new_cmds_GCJ=
21413   old_archive_from_expsyms_cmds_GCJ=
21414   export_dynamic_flag_spec_GCJ=
21415   whole_archive_flag_spec_GCJ=
21416   thread_safe_flag_spec_GCJ=
21417   hardcode_libdir_flag_spec_GCJ=
21418   hardcode_libdir_flag_spec_ld_GCJ=
21419   hardcode_libdir_separator_GCJ=
21420   hardcode_direct_GCJ=no
21421   hardcode_minus_L_GCJ=no
21422   hardcode_shlibpath_var_GCJ=unsupported
21423   link_all_deplibs_GCJ=unknown
21424   hardcode_automatic_GCJ=no
21425   module_cmds_GCJ=
21426   module_expsym_cmds_GCJ=
21427   always_export_symbols_GCJ=no
21428   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21429   # include_expsyms should be a list of space-separated symbols to be *always*
21430   # included in the symbol list
21431   include_expsyms_GCJ=
21432   # exclude_expsyms can be an extended regexp of symbols to exclude
21433   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21434   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21435   # as well as any symbol that contains `d'.
21436   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21437   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21438   # platforms (ab)use it in PIC code, but their linkers get confused if
21439   # the symbol is explicitly referenced.  Since portable code cannot
21440   # rely on this symbol name, it's probably fine to never include it in
21441   # preloaded symbol tables.
21442   extract_expsyms_cmds=
21443
21444   case $host_os in
21445   cygwin* | mingw* | pw32*)
21446     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21447     # When not using gcc, we currently assume that we are using
21448     # Microsoft Visual C++.
21449     if test "$GCC" != yes; then
21450       with_gnu_ld=no
21451     fi
21452     ;;
21453   openbsd*)
21454     with_gnu_ld=no
21455     ;;
21456   esac
21457
21458   ld_shlibs_GCJ=yes
21459   if test "$with_gnu_ld" = yes; then
21460     # If archive_cmds runs LD, not CC, wlarc should be empty
21461     wlarc='${wl}'
21462
21463     # See if GNU ld supports shared libraries.
21464     case $host_os in
21465     aix3* | aix4* | aix5*)
21466       # On AIX/PPC, the GNU linker is very broken
21467       if test "$host_cpu" != ia64; then
21468         ld_shlibs_GCJ=no
21469         cat <<EOF 1>&2
21470
21471 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21472 *** to be unable to reliably create shared libraries on AIX.
21473 *** Therefore, libtool is disabling shared libraries support.  If you
21474 *** really care for shared libraries, you may want to modify your PATH
21475 *** so that a non-GNU linker is found, and then restart.
21476
21477 EOF
21478       fi
21479       ;;
21480
21481     amigaos*)
21482       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)'
21483       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21484       hardcode_minus_L_GCJ=yes
21485
21486       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21487       # that the semantics of dynamic libraries on AmigaOS, at least up
21488       # to version 4, is to share data among multiple programs linked
21489       # with the same dynamic library.  Since this doesn't match the
21490       # behavior of shared libraries on other platforms, we can't use
21491       # them.
21492       ld_shlibs_GCJ=no
21493       ;;
21494
21495     beos*)
21496       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21497         allow_undefined_flag_GCJ=unsupported
21498         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21499         # support --undefined.  This deserves some investigation.  FIXME
21500         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501       else
21502         ld_shlibs_GCJ=no
21503       fi
21504       ;;
21505
21506     cygwin* | mingw* | pw32*)
21507       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21508       # as there is no search path for DLLs.
21509       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21510       allow_undefined_flag_GCJ=unsupported
21511       always_export_symbols_GCJ=no
21512       enable_shared_with_static_runtimes_GCJ=yes
21513       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21514
21515       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21516         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21517         # If the export-symbols file already is a .def file (1st line
21518         # is EXPORTS), use it as is; otherwise, prepend...
21519         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21520           cp $export_symbols $output_objdir/$soname.def;
21521         else
21522           echo EXPORTS > $output_objdir/$soname.def;
21523           cat $export_symbols >> $output_objdir/$soname.def;
21524         fi~
21525         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21526       else
21527         ld_shlibs=no
21528       fi
21529       ;;
21530
21531     netbsd*)
21532       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21533         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21534         wlarc=
21535       else
21536         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21537         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21538       fi
21539       ;;
21540
21541     solaris* | sysv5*)
21542       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21543         ld_shlibs_GCJ=no
21544         cat <<EOF 1>&2
21545
21546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21547 *** create shared libraries on Solaris systems.  Therefore, libtool
21548 *** is disabling shared libraries support.  We urge you to upgrade GNU
21549 *** binutils to release 2.9.1 or newer.  Another option is to modify
21550 *** your PATH or compiler configuration so that the native linker is
21551 *** used, and then restart.
21552
21553 EOF
21554       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21555         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21556         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21557       else
21558         ld_shlibs_GCJ=no
21559       fi
21560       ;;
21561
21562     sunos4*)
21563       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21564       wlarc=
21565       hardcode_direct_GCJ=yes
21566       hardcode_shlibpath_var_GCJ=no
21567       ;;
21568
21569   linux*)
21570     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21571         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21572         archive_cmds_GCJ="$tmp_archive_cmds"
21573       supports_anon_versioning=no
21574       case `$LD -v 2>/dev/null` in
21575         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21576         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21577         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21578         *\ 2.11.*) ;; # other 2.11 versions
21579         *) supports_anon_versioning=yes ;;
21580       esac
21581       if test $supports_anon_versioning = yes; then
21582         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21584 $echo "local: *; };" >> $output_objdir/$libname.ver~
21585         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21586       else
21587         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21588       fi
21589     else
21590       ld_shlibs_GCJ=no
21591     fi
21592     ;;
21593
21594     *)
21595       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21596         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21598       else
21599         ld_shlibs_GCJ=no
21600       fi
21601       ;;
21602     esac
21603
21604     if test "$ld_shlibs_GCJ" = yes; then
21605       runpath_var=LD_RUN_PATH
21606       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21607       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21608       # ancient GNU ld didn't support --whole-archive et. al.
21609       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21610         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21611       else
21612         whole_archive_flag_spec_GCJ=
21613       fi
21614     fi
21615   else
21616     # PORTME fill in a description of your system's linker (not GNU ld)
21617     case $host_os in
21618     aix3*)
21619       allow_undefined_flag_GCJ=unsupported
21620       always_export_symbols_GCJ=yes
21621       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'
21622       # Note: this linker hardcodes the directories in LIBPATH if there
21623       # are no directories specified by -L.
21624       hardcode_minus_L_GCJ=yes
21625       if test "$GCC" = yes && test -z "$link_static_flag"; then
21626         # Neither direct hardcoding nor static linking is supported with a
21627         # broken collect2.
21628         hardcode_direct_GCJ=unsupported
21629       fi
21630       ;;
21631
21632     aix4* | aix5*)
21633       if test "$host_cpu" = ia64; then
21634         # On IA64, the linker does run time linking by default, so we don't
21635         # have to do anything special.
21636         aix_use_runtimelinking=no
21637         exp_sym_flag='-Bexport'
21638         no_entry_flag=""
21639       else
21640         # If we're using GNU nm, then we don't want the "-C" option.
21641         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21642         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21643           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'
21644         else
21645           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'
21646         fi
21647         aix_use_runtimelinking=no
21648
21649         # Test if we are trying to use run time linking or normal
21650         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21651         # need to do runtime linking.
21652         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21653           for ld_flag in $LDFLAGS; do
21654           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21655             aix_use_runtimelinking=yes
21656             break
21657           fi
21658           done
21659         esac
21660
21661         exp_sym_flag='-bexport'
21662         no_entry_flag='-bnoentry'
21663       fi
21664
21665       # When large executables or shared objects are built, AIX ld can
21666       # have problems creating the table of contents.  If linking a library
21667       # or program results in "error TOC overflow" add -mminimal-toc to
21668       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21669       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21670
21671       archive_cmds_GCJ=''
21672       hardcode_direct_GCJ=yes
21673       hardcode_libdir_separator_GCJ=':'
21674       link_all_deplibs_GCJ=yes
21675
21676       if test "$GCC" = yes; then
21677         case $host_os in aix4.012|aix4.012.*)
21678         # We only want to do this on AIX 4.2 and lower, the check
21679         # below for broken collect2 doesn't work under 4.3+
21680           collect2name=`${CC} -print-prog-name=collect2`
21681           if test -f "$collect2name" && \
21682            strings "$collect2name" | grep resolve_lib_name >/dev/null
21683           then
21684           # We have reworked collect2
21685           hardcode_direct_GCJ=yes
21686           else
21687           # We have old collect2
21688           hardcode_direct_GCJ=unsupported
21689           # It fails to find uninstalled libraries when the uninstalled
21690           # path is not listed in the libpath.  Setting hardcode_minus_L
21691           # to unsupported forces relinking
21692           hardcode_minus_L_GCJ=yes
21693           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21694           hardcode_libdir_separator_GCJ=
21695           fi
21696         esac
21697         shared_flag='-shared'
21698       else
21699         # not using gcc
21700         if test "$host_cpu" = ia64; then
21701         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21702         # chokes on -Wl,-G. The following line is correct:
21703           shared_flag='-G'
21704         else
21705         if test "$aix_use_runtimelinking" = yes; then
21706             shared_flag='${wl}-G'
21707           else
21708             shared_flag='${wl}-bM:SRE'
21709         fi
21710         fi
21711       fi
21712
21713       # It seems that -bexpall does not export symbols beginning with
21714       # underscore (_), so it is better to generate a list of symbols to export.
21715       always_export_symbols_GCJ=yes
21716       if test "$aix_use_runtimelinking" = yes; then
21717         # Warning - without using the other runtime loading flags (-brtl),
21718         # -berok will link without error, but may produce a broken library.
21719         allow_undefined_flag_GCJ='-berok'
21720        # Determine the default libpath from the value encoded in an empty executable.
21721        cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h.  */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h.  */
21727
21728 int
21729 main ()
21730 {
21731
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738   (eval $ac_link) 2>conftest.er1
21739   ac_status=$?
21740   grep -v '^ *+' conftest.er1 >conftest.err
21741   rm -f conftest.er1
21742   cat conftest.err >&5
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); } &&
21745          { ac_try='test -z "$ac_c_werror_flag"
21746                          || test ! -s conftest.err'
21747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748   (eval $ac_try) 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; } &&
21752          { ac_try='test -s conftest$ac_exeext'
21753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; }; then
21758
21759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21760 }'`
21761 # Check for a 64-bit object if we didn't find anything.
21762 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; }
21763 }'`; fi
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768 fi
21769 rm -f conftest.err conftest.$ac_objext \
21770       conftest$ac_exeext conftest.$ac_ext
21771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21772
21773        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21774         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"
21775        else
21776         if test "$host_cpu" = ia64; then
21777           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21778           allow_undefined_flag_GCJ="-z nodefs"
21779           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"
21780         else
21781          # Determine the default libpath from the value encoded in an empty executable.
21782          cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h.  */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h.  */
21788
21789 int
21790 main ()
21791 {
21792
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799   (eval $ac_link) 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } &&
21806          { ac_try='test -z "$ac_c_werror_flag"
21807                          || test ! -s conftest.err'
21808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }; } &&
21813          { ac_try='test -s conftest$ac_exeext'
21814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815   (eval $ac_try) 2>&5
21816   ac_status=$?
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); }; }; then
21819
21820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21821 }'`
21822 # Check for a 64-bit object if we didn't find anything.
21823 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; }
21824 }'`; fi
21825 else
21826   echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829 fi
21830 rm -f conftest.err conftest.$ac_objext \
21831       conftest$ac_exeext conftest.$ac_ext
21832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21833
21834          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21835           # Warning - without using the other run time loading flags,
21836           # -berok will link without error, but may produce a broken library.
21837           no_undefined_flag_GCJ=' ${wl}-bernotok'
21838           allow_undefined_flag_GCJ=' ${wl}-berok'
21839           # -bexpall does not export symbols beginning with underscore (_)
21840           always_export_symbols_GCJ=yes
21841           # Exported symbols can be pulled into shared objects from archives
21842           whole_archive_flag_spec_GCJ=' '
21843           archive_cmds_need_lc_GCJ=yes
21844           # This is similar to how AIX traditionally builds it's shared libraries.
21845           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'
21846         fi
21847       fi
21848       ;;
21849
21850     amigaos*)
21851       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)'
21852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21853       hardcode_minus_L_GCJ=yes
21854       # see comment about different semantics on the GNU ld section
21855       ld_shlibs_GCJ=no
21856       ;;
21857
21858     bsdi[45]*)
21859       export_dynamic_flag_spec_GCJ=-rdynamic
21860       ;;
21861
21862     cygwin* | mingw* | pw32*)
21863       # When not using gcc, we currently assume that we are using
21864       # Microsoft Visual C++.
21865       # hardcode_libdir_flag_spec is actually meaningless, as there is
21866       # no search path for DLLs.
21867       hardcode_libdir_flag_spec_GCJ=' '
21868       allow_undefined_flag_GCJ=unsupported
21869       # Tell ltmain to make .lib files, not .a files.
21870       libext=lib
21871       # Tell ltmain to make .dll files, not .so files.
21872       shrext_cmds=".dll"
21873       # FIXME: Setting linknames here is a bad hack.
21874       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21875       # The linker will automatically build a .lib file if we build a DLL.
21876       old_archive_From_new_cmds_GCJ='true'
21877       # FIXME: Should let the user specify the lib program.
21878       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21879       fix_srcfile_path='`cygpath -w "$srcfile"`'
21880       enable_shared_with_static_runtimes_GCJ=yes
21881       ;;
21882
21883     darwin* | rhapsody*)
21884       case "$host_os" in
21885         rhapsody* | darwin1.[012])
21886          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21887          ;;
21888        *) # Darwin 1.3 on
21889          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21890            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21891          else
21892            case ${MACOSX_DEPLOYMENT_TARGET} in
21893              10.[012])
21894                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21895                ;;
21896              10.*)
21897                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21898                ;;
21899            esac
21900          fi
21901          ;;
21902       esac
21903       archive_cmds_need_lc_GCJ=no
21904       hardcode_direct_GCJ=no
21905       hardcode_automatic_GCJ=yes
21906       hardcode_shlibpath_var_GCJ=unsupported
21907       whole_archive_flag_spec_GCJ=''
21908       link_all_deplibs_GCJ=yes
21909     if test "$GCC" = yes ; then
21910         output_verbose_link_cmd='echo'
21911         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21912       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21913       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21914       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}'
21915       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}'
21916     else
21917       case "$cc_basename" in
21918         xlc*)
21919          output_verbose_link_cmd='echo'
21920          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21921          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21922           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21923          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}'
21924           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}'
21925           ;;
21926        *)
21927          ld_shlibs_GCJ=no
21928           ;;
21929       esac
21930     fi
21931       ;;
21932
21933     dgux*)
21934       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21935       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21936       hardcode_shlibpath_var_GCJ=no
21937       ;;
21938
21939     freebsd1*)
21940       ld_shlibs_GCJ=no
21941       ;;
21942
21943     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21944     # support.  Future versions do this automatically, but an explicit c++rt0.o
21945     # does not break anything, and helps significantly (at the cost of a little
21946     # extra space).
21947     freebsd2.2*)
21948       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21949       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21950       hardcode_direct_GCJ=yes
21951       hardcode_shlibpath_var_GCJ=no
21952       ;;
21953
21954     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21955     freebsd2*)
21956       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21957       hardcode_direct_GCJ=yes
21958       hardcode_minus_L_GCJ=yes
21959       hardcode_shlibpath_var_GCJ=no
21960       ;;
21961
21962     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21963     freebsd* | kfreebsd*-gnu)
21964       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21965       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21966       hardcode_direct_GCJ=yes
21967       hardcode_shlibpath_var_GCJ=no
21968       ;;
21969
21970     hpux9*)
21971       if test "$GCC" = yes; then
21972         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'
21973       else
21974         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'
21975       fi
21976       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21977       hardcode_libdir_separator_GCJ=:
21978       hardcode_direct_GCJ=yes
21979
21980       # hardcode_minus_L: Not really in the search PATH,
21981       # but as the default location of the library.
21982       hardcode_minus_L_GCJ=yes
21983       export_dynamic_flag_spec_GCJ='${wl}-E'
21984       ;;
21985
21986     hpux10* | hpux11*)
21987       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21988         case "$host_cpu" in
21989         hppa*64*|ia64*)
21990           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21991           ;;
21992         *)
21993           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21994           ;;
21995         esac
21996       else
21997         case "$host_cpu" in
21998         hppa*64*|ia64*)
21999           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22000           ;;
22001         *)
22002           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22003           ;;
22004         esac
22005       fi
22006       if test "$with_gnu_ld" = no; then
22007         case "$host_cpu" in
22008         hppa*64*)
22009           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22010           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22011           hardcode_libdir_separator_GCJ=:
22012           hardcode_direct_GCJ=no
22013           hardcode_shlibpath_var_GCJ=no
22014           ;;
22015         ia64*)
22016           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22017           hardcode_direct_GCJ=no
22018           hardcode_shlibpath_var_GCJ=no
22019
22020           # hardcode_minus_L: Not really in the search PATH,
22021           # but as the default location of the library.
22022           hardcode_minus_L_GCJ=yes
22023           ;;
22024         *)
22025           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22026           hardcode_libdir_separator_GCJ=:
22027           hardcode_direct_GCJ=yes
22028           export_dynamic_flag_spec_GCJ='${wl}-E'
22029
22030           # hardcode_minus_L: Not really in the search PATH,
22031           # but as the default location of the library.
22032           hardcode_minus_L_GCJ=yes
22033           ;;
22034         esac
22035       fi
22036       ;;
22037
22038     irix5* | irix6* | nonstopux*)
22039       if test "$GCC" = yes; then
22040         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'
22041       else
22042         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'
22043         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22044       fi
22045       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22046       hardcode_libdir_separator_GCJ=:
22047       link_all_deplibs_GCJ=yes
22048       ;;
22049
22050     netbsd*)
22051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22052         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22053       else
22054         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22055       fi
22056       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22057       hardcode_direct_GCJ=yes
22058       hardcode_shlibpath_var_GCJ=no
22059       ;;
22060
22061     newsos6)
22062       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22063       hardcode_direct_GCJ=yes
22064       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22065       hardcode_libdir_separator_GCJ=:
22066       hardcode_shlibpath_var_GCJ=no
22067       ;;
22068
22069     openbsd*)
22070       hardcode_direct_GCJ=yes
22071       hardcode_shlibpath_var_GCJ=no
22072       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22073         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22074         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22075         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22076         export_dynamic_flag_spec_GCJ='${wl}-E'
22077       else
22078        case $host_os in
22079          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22080            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22081            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22082            ;;
22083          *)
22084            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22085            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22086            ;;
22087        esac
22088       fi
22089       ;;
22090
22091     os2*)
22092       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22093       hardcode_minus_L_GCJ=yes
22094       allow_undefined_flag_GCJ=unsupported
22095       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'
22096       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22097       ;;
22098
22099     osf3*)
22100       if test "$GCC" = yes; then
22101         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22102         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'
22103       else
22104         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22105         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'
22106       fi
22107       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22108       hardcode_libdir_separator_GCJ=:
22109       ;;
22110
22111     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22112       if test "$GCC" = yes; then
22113         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22114         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'
22115         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22116       else
22117         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22118         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'
22119         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~
22120         $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'
22121
22122         # Both c and cxx compiler support -rpath directly
22123         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22124       fi
22125       hardcode_libdir_separator_GCJ=:
22126       ;;
22127
22128     sco3.2v5*)
22129       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22130       hardcode_shlibpath_var_GCJ=no
22131       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22132       runpath_var=LD_RUN_PATH
22133       hardcode_runpath_var=yes
22134       ;;
22135
22136     solaris*)
22137       no_undefined_flag_GCJ=' -z text'
22138       if test "$GCC" = yes; then
22139         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22140         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22141           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22142       else
22143         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22144         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22145         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22146       fi
22147       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22148       hardcode_shlibpath_var_GCJ=no
22149       case $host_os in
22150       solaris2.[0-5] | solaris2.[0-5].*) ;;
22151       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22152         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22153       esac
22154       link_all_deplibs_GCJ=yes
22155       ;;
22156
22157     sunos4*)
22158       if test "x$host_vendor" = xsequent; then
22159         # Use $CC to link under sequent, because it throws in some extra .o
22160         # files that make .init and .fini sections work.
22161         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22162       else
22163         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22164       fi
22165       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22166       hardcode_direct_GCJ=yes
22167       hardcode_minus_L_GCJ=yes
22168       hardcode_shlibpath_var_GCJ=no
22169       ;;
22170
22171     sysv4)
22172       case $host_vendor in
22173         sni)
22174           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175           hardcode_direct_GCJ=yes # is this really true???
22176         ;;
22177         siemens)
22178           ## LD is ld it makes a PLAMLIB
22179           ## CC just makes a GrossModule.
22180           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22181           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22182           hardcode_direct_GCJ=no
22183         ;;
22184         motorola)
22185           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22186           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22187         ;;
22188       esac
22189       runpath_var='LD_RUN_PATH'
22190       hardcode_shlibpath_var_GCJ=no
22191       ;;
22192
22193     sysv4.3*)
22194       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22195       hardcode_shlibpath_var_GCJ=no
22196       export_dynamic_flag_spec_GCJ='-Bexport'
22197       ;;
22198
22199     sysv4*MP*)
22200       if test -d /usr/nec; then
22201         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22202         hardcode_shlibpath_var_GCJ=no
22203         runpath_var=LD_RUN_PATH
22204         hardcode_runpath_var=yes
22205         ld_shlibs_GCJ=yes
22206       fi
22207       ;;
22208
22209     sysv4.2uw2*)
22210       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22211       hardcode_direct_GCJ=yes
22212       hardcode_minus_L_GCJ=no
22213       hardcode_shlibpath_var_GCJ=no
22214       hardcode_runpath_var=yes
22215       runpath_var=LD_RUN_PATH
22216       ;;
22217
22218    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22219       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22220       if test "$GCC" = yes; then
22221         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22222       else
22223         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22224       fi
22225       runpath_var='LD_RUN_PATH'
22226       hardcode_shlibpath_var_GCJ=no
22227       ;;
22228
22229     sysv5*)
22230       no_undefined_flag_GCJ=' -z text'
22231       # $CC -shared without GNU ld will not create a library from C++
22232       # object files and a static libstdc++, better avoid it by now
22233       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22234       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22235                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22236       hardcode_libdir_flag_spec_GCJ=
22237       hardcode_shlibpath_var_GCJ=no
22238       runpath_var='LD_RUN_PATH'
22239       ;;
22240
22241     uts4*)
22242       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22244       hardcode_shlibpath_var_GCJ=no
22245       ;;
22246
22247     *)
22248       ld_shlibs_GCJ=no
22249       ;;
22250     esac
22251   fi
22252
22253 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22254 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22255 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22256
22257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22258 if test "$GCC" = yes; then
22259   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22260 fi
22261
22262 #
22263 # Do we need to explicitly link libc?
22264 #
22265 case "x$archive_cmds_need_lc_GCJ" in
22266 x|xyes)
22267   # Assume -lc should be added
22268   archive_cmds_need_lc_GCJ=yes
22269
22270   if test "$enable_shared" = yes && test "$GCC" = yes; then
22271     case $archive_cmds_GCJ in
22272     *'~'*)
22273       # FIXME: we may have to deal with multi-command sequences.
22274       ;;
22275     '$CC '*)
22276       # Test whether the compiler implicitly links with -lc since on some
22277       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22278       # to ld, don't add -lc before -lgcc.
22279       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22281       $rm conftest*
22282       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22283
22284       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285   (eval $ac_compile) 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); } 2>conftest.err; then
22289         soname=conftest
22290         lib=conftest
22291         libobjs=conftest.$ac_objext
22292         deplibs=
22293         wl=$lt_prog_compiler_wl_GCJ
22294         compiler_flags=-v
22295         linker_flags=-v
22296         verstring=
22297         output_objdir=.
22298         libname=conftest
22299         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22300         allow_undefined_flag_GCJ=
22301         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22302   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); }
22306         then
22307           archive_cmds_need_lc_GCJ=no
22308         else
22309           archive_cmds_need_lc_GCJ=yes
22310         fi
22311         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22312       else
22313         cat conftest.err 1>&5
22314       fi
22315       $rm conftest*
22316       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22317 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22318       ;;
22319     esac
22320   fi
22321   ;;
22322 esac
22323
22324 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22325 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22326 library_names_spec=
22327 libname_spec='lib$name'
22328 soname_spec=
22329 shrext_cmds=".so"
22330 postinstall_cmds=
22331 postuninstall_cmds=
22332 finish_cmds=
22333 finish_eval=
22334 shlibpath_var=
22335 shlibpath_overrides_runpath=unknown
22336 version_type=none
22337 dynamic_linker="$host_os ld.so"
22338 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22339 if test "$GCC" = yes; then
22340   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22341   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22342     # if the path contains ";" then we assume it to be the separator
22343     # otherwise default to the standard path separator (i.e. ":") - it is
22344     # assumed that no part of a normal pathname contains ";" but that should
22345     # okay in the real world where ";" in dirpaths is itself problematic.
22346     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22347   else
22348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22349   fi
22350 else
22351   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22352 fi
22353 need_lib_prefix=unknown
22354 hardcode_into_libs=no
22355
22356 # when you set need_version to no, make sure it does not cause -set_version
22357 # flags to be left without arguments
22358 need_version=unknown
22359
22360 case $host_os in
22361 aix3*)
22362   version_type=linux
22363   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22364   shlibpath_var=LIBPATH
22365
22366   # AIX 3 has no versioning support, so we append a major version to the name.
22367   soname_spec='${libname}${release}${shared_ext}$major'
22368   ;;
22369
22370 aix4* | aix5*)
22371   version_type=linux
22372   need_lib_prefix=no
22373   need_version=no
22374   hardcode_into_libs=yes
22375   if test "$host_cpu" = ia64; then
22376     # AIX 5 supports IA64
22377     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22378     shlibpath_var=LD_LIBRARY_PATH
22379   else
22380     # With GCC up to 2.95.x, collect2 would create an import file
22381     # for dependence libraries.  The import file would start with
22382     # the line `#! .'.  This would cause the generated library to
22383     # depend on `.', always an invalid library.  This was fixed in
22384     # development snapshots of GCC prior to 3.0.
22385     case $host_os in
22386       aix4 | aix4.[01] | aix4.[01].*)
22387       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22388            echo ' yes '
22389            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22390         :
22391       else
22392         can_build_shared=no
22393       fi
22394       ;;
22395     esac
22396     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22397     # soname into executable. Probably we can add versioning support to
22398     # collect2, so additional links can be useful in future.
22399     if test "$aix_use_runtimelinking" = yes; then
22400       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22401       # instead of lib<name>.a to let people know that these are not
22402       # typical AIX shared libraries.
22403       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22404     else
22405       # We preserve .a as extension for shared libraries through AIX4.2
22406       # and later when we are not doing run time linking.
22407       library_names_spec='${libname}${release}.a $libname.a'
22408       soname_spec='${libname}${release}${shared_ext}$major'
22409     fi
22410     shlibpath_var=LIBPATH
22411   fi
22412   ;;
22413
22414 amigaos*)
22415   library_names_spec='$libname.ixlibrary $libname.a'
22416   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22417   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'
22418   ;;
22419
22420 beos*)
22421   library_names_spec='${libname}${shared_ext}'
22422   dynamic_linker="$host_os ld.so"
22423   shlibpath_var=LIBRARY_PATH
22424   ;;
22425
22426 bsdi[45]*)
22427   version_type=linux
22428   need_version=no
22429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22430   soname_spec='${libname}${release}${shared_ext}$major'
22431   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22432   shlibpath_var=LD_LIBRARY_PATH
22433   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22434   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22435   # the default ld.so.conf also contains /usr/contrib/lib and
22436   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22437   # libtool to hard-code these into programs
22438   ;;
22439
22440 cygwin* | mingw* | pw32*)
22441   version_type=windows
22442   shrext_cmds=".dll"
22443   need_version=no
22444   need_lib_prefix=no
22445
22446   case $GCC,$host_os in
22447   yes,cygwin* | yes,mingw* | yes,pw32*)
22448     library_names_spec='$libname.dll.a'
22449     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22450     postinstall_cmds='base_file=`basename \${file}`~
22451       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22452       dldir=$destdir/`dirname \$dlpath`~
22453       test -d \$dldir || mkdir -p \$dldir~
22454       $install_prog $dir/$dlname \$dldir/$dlname'
22455     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22456       dlpath=$dir/\$dldll~
22457        $rm \$dlpath'
22458     shlibpath_overrides_runpath=yes
22459
22460     case $host_os in
22461     cygwin*)
22462       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22463       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22465       ;;
22466     mingw*)
22467       # MinGW DLLs use traditional 'lib' prefix
22468       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22469       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22470       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22471         # It is most probably a Windows format PATH printed by
22472         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22473         # path with ; separators, and with drive letters. We can handle the
22474         # drive letters (cygwin fileutils understands them), so leave them,
22475         # especially as we might pass files found there to a mingw objdump,
22476         # which wouldn't understand a cygwinified path. Ahh.
22477         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22478       else
22479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22480       fi
22481       ;;
22482     pw32*)
22483       # pw32 DLLs use 'pw' prefix rather than 'lib'
22484       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22485       ;;
22486     esac
22487     ;;
22488
22489   *)
22490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22491     ;;
22492   esac
22493   dynamic_linker='Win32 ld.exe'
22494   # FIXME: first we should search . and the directory the executable is in
22495   shlibpath_var=PATH
22496   ;;
22497
22498 darwin* | rhapsody*)
22499   dynamic_linker="$host_os dyld"
22500   version_type=darwin
22501   need_lib_prefix=no
22502   need_version=no
22503   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22504   soname_spec='${libname}${release}${major}$shared_ext'
22505   shlibpath_overrides_runpath=yes
22506   shlibpath_var=DYLD_LIBRARY_PATH
22507   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22508   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22509   if test "$GCC" = yes; then
22510     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"`
22511   else
22512     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22513   fi
22514   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22515   ;;
22516
22517 dgux*)
22518   version_type=linux
22519   need_lib_prefix=no
22520   need_version=no
22521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22522   soname_spec='${libname}${release}${shared_ext}$major'
22523   shlibpath_var=LD_LIBRARY_PATH
22524   ;;
22525
22526 freebsd1*)
22527   dynamic_linker=no
22528   ;;
22529
22530 kfreebsd*-gnu)
22531   version_type=linux
22532   need_lib_prefix=no
22533   need_version=no
22534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22535   soname_spec='${libname}${release}${shared_ext}$major'
22536   shlibpath_var=LD_LIBRARY_PATH
22537   shlibpath_overrides_runpath=no
22538   hardcode_into_libs=yes
22539   dynamic_linker='GNU ld.so'
22540   ;;
22541
22542 freebsd*)
22543   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22544   version_type=freebsd-$objformat
22545   case $version_type in
22546     freebsd-elf*)
22547       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22548       need_version=no
22549       need_lib_prefix=no
22550       ;;
22551     freebsd-*)
22552       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22553       need_version=yes
22554       ;;
22555   esac
22556   shlibpath_var=LD_LIBRARY_PATH
22557   case $host_os in
22558   freebsd2*)
22559     shlibpath_overrides_runpath=yes
22560     ;;
22561   freebsd3.01* | freebsdelf3.01*)
22562     shlibpath_overrides_runpath=yes
22563     hardcode_into_libs=yes
22564     ;;
22565   *) # from 3.2 on
22566     shlibpath_overrides_runpath=no
22567     hardcode_into_libs=yes
22568     ;;
22569   esac
22570   ;;
22571
22572 gnu*)
22573   version_type=linux
22574   need_lib_prefix=no
22575   need_version=no
22576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22577   soname_spec='${libname}${release}${shared_ext}$major'
22578   shlibpath_var=LD_LIBRARY_PATH
22579   hardcode_into_libs=yes
22580   ;;
22581
22582 hpux9* | hpux10* | hpux11*)
22583   # Give a soname corresponding to the major version so that dld.sl refuses to
22584   # link against other versions.
22585   version_type=sunos
22586   need_lib_prefix=no
22587   need_version=no
22588   case "$host_cpu" in
22589   ia64*)
22590     shrext_cmds='.so'
22591     hardcode_into_libs=yes
22592     dynamic_linker="$host_os dld.so"
22593     shlibpath_var=LD_LIBRARY_PATH
22594     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22596     soname_spec='${libname}${release}${shared_ext}$major'
22597     if test "X$HPUX_IA64_MODE" = X32; then
22598       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22599     else
22600       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22601     fi
22602     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22603     ;;
22604    hppa*64*)
22605      shrext_cmds='.sl'
22606      hardcode_into_libs=yes
22607      dynamic_linker="$host_os dld.sl"
22608      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22609      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22610      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611      soname_spec='${libname}${release}${shared_ext}$major'
22612      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22613      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22614      ;;
22615    *)
22616     shrext_cmds='.sl'
22617     dynamic_linker="$host_os dld.sl"
22618     shlibpath_var=SHLIB_PATH
22619     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621     soname_spec='${libname}${release}${shared_ext}$major'
22622     ;;
22623   esac
22624   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22625   postinstall_cmds='chmod 555 $lib'
22626   ;;
22627
22628 irix5* | irix6* | nonstopux*)
22629   case $host_os in
22630     nonstopux*) version_type=nonstopux ;;
22631     *)
22632         if test "$lt_cv_prog_gnu_ld" = yes; then
22633                 version_type=linux
22634         else
22635                 version_type=irix
22636         fi ;;
22637   esac
22638   need_lib_prefix=no
22639   need_version=no
22640   soname_spec='${libname}${release}${shared_ext}$major'
22641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22642   case $host_os in
22643   irix5* | nonstopux*)
22644     libsuff= shlibsuff=
22645     ;;
22646   *)
22647     case $LD in # libtool.m4 will add one of these switches to LD
22648     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22649       libsuff= shlibsuff= libmagic=32-bit;;
22650     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22651       libsuff=32 shlibsuff=N32 libmagic=N32;;
22652     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22653       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22654     *) libsuff= shlibsuff= libmagic=never-match;;
22655     esac
22656     ;;
22657   esac
22658   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22659   shlibpath_overrides_runpath=no
22660   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22661   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22662   hardcode_into_libs=yes
22663   ;;
22664
22665 # No shared lib support for Linux oldld, aout, or coff.
22666 linux*oldld* | linux*aout* | linux*coff*)
22667   dynamic_linker=no
22668   ;;
22669
22670 # This must be Linux ELF.
22671 linux*)
22672   version_type=linux
22673   need_lib_prefix=no
22674   need_version=no
22675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22676   soname_spec='${libname}${release}${shared_ext}$major'
22677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22678   shlibpath_var=LD_LIBRARY_PATH
22679   shlibpath_overrides_runpath=no
22680   # This implies no fast_install, which is unacceptable.
22681   # Some rework will be needed to allow for fast_install
22682   # before this can be enabled.
22683   hardcode_into_libs=yes
22684
22685   # Append ld.so.conf contents to the search path
22686   if test -f /etc/ld.so.conf; then
22687     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22688     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22689   fi
22690
22691   # We used to test for /lib/ld.so.1 and disable shared libraries on
22692   # powerpc, because MkLinux only supported shared libraries with the
22693   # GNU dynamic linker.  Since this was broken with cross compilers,
22694   # most powerpc-linux boxes support dynamic linking these days and
22695   # people can always --disable-shared, the test was removed, and we
22696   # assume the GNU/Linux dynamic linker is in use.
22697   dynamic_linker='GNU/Linux ld.so'
22698   ;;
22699
22700 knetbsd*-gnu)
22701   version_type=linux
22702   need_lib_prefix=no
22703   need_version=no
22704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22705   soname_spec='${libname}${release}${shared_ext}$major'
22706   shlibpath_var=LD_LIBRARY_PATH
22707   shlibpath_overrides_runpath=no
22708   hardcode_into_libs=yes
22709   dynamic_linker='GNU ld.so'
22710   ;;
22711
22712 netbsd*)
22713   version_type=sunos
22714   need_lib_prefix=no
22715   need_version=no
22716   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22718     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22719     dynamic_linker='NetBSD (a.out) ld.so'
22720   else
22721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22722     soname_spec='${libname}${release}${shared_ext}$major'
22723     dynamic_linker='NetBSD ld.elf_so'
22724   fi
22725   shlibpath_var=LD_LIBRARY_PATH
22726   shlibpath_overrides_runpath=yes
22727   hardcode_into_libs=yes
22728   ;;
22729
22730 newsos6)
22731   version_type=linux
22732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733   shlibpath_var=LD_LIBRARY_PATH
22734   shlibpath_overrides_runpath=yes
22735   ;;
22736
22737 nto-qnx*)
22738   version_type=linux
22739   need_lib_prefix=no
22740   need_version=no
22741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22742   soname_spec='${libname}${release}${shared_ext}$major'
22743   shlibpath_var=LD_LIBRARY_PATH
22744   shlibpath_overrides_runpath=yes
22745   ;;
22746
22747 openbsd*)
22748   version_type=sunos
22749   need_lib_prefix=no
22750   need_version=no
22751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22752   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22753   shlibpath_var=LD_LIBRARY_PATH
22754   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22755     case $host_os in
22756       openbsd2.[89] | openbsd2.[89].*)
22757         shlibpath_overrides_runpath=no
22758         ;;
22759       *)
22760         shlibpath_overrides_runpath=yes
22761         ;;
22762       esac
22763   else
22764     shlibpath_overrides_runpath=yes
22765   fi
22766   ;;
22767
22768 os2*)
22769   libname_spec='$name'
22770   shrext_cmds=".dll"
22771   need_lib_prefix=no
22772   library_names_spec='$libname${shared_ext} $libname.a'
22773   dynamic_linker='OS/2 ld.exe'
22774   shlibpath_var=LIBPATH
22775   ;;
22776
22777 osf3* | osf4* | osf5*)
22778   version_type=osf
22779   need_lib_prefix=no
22780   need_version=no
22781   soname_spec='${libname}${release}${shared_ext}$major'
22782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783   shlibpath_var=LD_LIBRARY_PATH
22784   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22785   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22786   ;;
22787
22788 sco3.2v5*)
22789   version_type=osf
22790   soname_spec='${libname}${release}${shared_ext}$major'
22791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792   shlibpath_var=LD_LIBRARY_PATH
22793   ;;
22794
22795 solaris*)
22796   version_type=linux
22797   need_lib_prefix=no
22798   need_version=no
22799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800   soname_spec='${libname}${release}${shared_ext}$major'
22801   shlibpath_var=LD_LIBRARY_PATH
22802   shlibpath_overrides_runpath=yes
22803   hardcode_into_libs=yes
22804   # ldd complains unless libraries are executable
22805   postinstall_cmds='chmod +x $lib'
22806   ;;
22807
22808 sunos4*)
22809   version_type=sunos
22810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22811   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22812   shlibpath_var=LD_LIBRARY_PATH
22813   shlibpath_overrides_runpath=yes
22814   if test "$with_gnu_ld" = yes; then
22815     need_lib_prefix=no
22816   fi
22817   need_version=yes
22818   ;;
22819
22820 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22821   version_type=linux
22822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22823   soname_spec='${libname}${release}${shared_ext}$major'
22824   shlibpath_var=LD_LIBRARY_PATH
22825   case $host_vendor in
22826     sni)
22827       shlibpath_overrides_runpath=no
22828       need_lib_prefix=no
22829       export_dynamic_flag_spec='${wl}-Blargedynsym'
22830       runpath_var=LD_RUN_PATH
22831       ;;
22832     siemens)
22833       need_lib_prefix=no
22834       ;;
22835     motorola)
22836       need_lib_prefix=no
22837       need_version=no
22838       shlibpath_overrides_runpath=no
22839       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22840       ;;
22841   esac
22842   ;;
22843
22844 sysv4*MP*)
22845   if test -d /usr/nec ;then
22846     version_type=linux
22847     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22848     soname_spec='$libname${shared_ext}.$major'
22849     shlibpath_var=LD_LIBRARY_PATH
22850   fi
22851   ;;
22852
22853 uts4*)
22854   version_type=linux
22855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22856   soname_spec='${libname}${release}${shared_ext}$major'
22857   shlibpath_var=LD_LIBRARY_PATH
22858   ;;
22859
22860 *)
22861   dynamic_linker=no
22862   ;;
22863 esac
22864 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22865 echo "${ECHO_T}$dynamic_linker" >&6
22866 test "$dynamic_linker" = no && can_build_shared=no
22867
22868 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22870 hardcode_action_GCJ=
22871 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22872    test -n "$runpath_var_GCJ" || \
22873    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22874
22875   # We can hardcode non-existant directories.
22876   if test "$hardcode_direct_GCJ" != no &&
22877      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22878      # have to relink, otherwise we might link with an installed library
22879      # when we should be linking with a yet-to-be-installed one
22880      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22881      test "$hardcode_minus_L_GCJ" != no; then
22882     # Linking always hardcodes the temporary library directory.
22883     hardcode_action_GCJ=relink
22884   else
22885     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22886     hardcode_action_GCJ=immediate
22887   fi
22888 else
22889   # We cannot hardcode anything, or else we can only hardcode existing
22890   # directories.
22891   hardcode_action_GCJ=unsupported
22892 fi
22893 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22894 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22895
22896 if test "$hardcode_action_GCJ" = relink; then
22897   # Fast installation is not supported
22898   enable_fast_install=no
22899 elif test "$shlibpath_overrides_runpath" = yes ||
22900      test "$enable_shared" = no; then
22901   # Fast installation is not necessary
22902   enable_fast_install=needless
22903 fi
22904
22905 striplib=
22906 old_striplib=
22907 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22909 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22912   echo "$as_me:$LINENO: result: yes" >&5
22913 echo "${ECHO_T}yes" >&6
22914 else
22915 # FIXME - insert some real tests, host_os isn't really good enough
22916   case $host_os in
22917    darwin*)
22918        if test -n "$STRIP" ; then
22919          striplib="$STRIP -x"
22920          echo "$as_me:$LINENO: result: yes" >&5
22921 echo "${ECHO_T}yes" >&6
22922        else
22923   echo "$as_me:$LINENO: result: no" >&5
22924 echo "${ECHO_T}no" >&6
22925 fi
22926        ;;
22927    *)
22928   echo "$as_me:$LINENO: result: no" >&5
22929 echo "${ECHO_T}no" >&6
22930     ;;
22931   esac
22932 fi
22933
22934 if test "x$enable_dlopen" != xyes; then
22935   enable_dlopen=unknown
22936   enable_dlopen_self=unknown
22937   enable_dlopen_self_static=unknown
22938 else
22939   lt_cv_dlopen=no
22940   lt_cv_dlopen_libs=
22941
22942   case $host_os in
22943   beos*)
22944     lt_cv_dlopen="load_add_on"
22945     lt_cv_dlopen_libs=
22946     lt_cv_dlopen_self=yes
22947     ;;
22948
22949   mingw* | pw32*)
22950     lt_cv_dlopen="LoadLibrary"
22951     lt_cv_dlopen_libs=
22952    ;;
22953
22954   cygwin*)
22955     lt_cv_dlopen="dlopen"
22956     lt_cv_dlopen_libs=
22957    ;;
22958
22959   darwin*)
22960   # if libdl is installed we need to link against it
22961     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22964   echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966   ac_check_lib_save_LIBS=$LIBS
22967 LIBS="-ldl  $LIBS"
22968 cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974
22975 /* Override any gcc2 internal prototype to avoid an error.  */
22976 #ifdef __cplusplus
22977 extern "C"
22978 #endif
22979 /* We use char because int might match the return type of a gcc2
22980    builtin and then its argument prototype would still apply.  */
22981 char dlopen ();
22982 int
22983 main ()
22984 {
22985 dlopen ();
22986   ;
22987   return 0;
22988 }
22989 _ACEOF
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22992   (eval $ac_link) 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } &&
22999          { ac_try='test -z "$ac_c_werror_flag"
23000                          || test ! -s conftest.err'
23001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002   (eval $ac_try) 2>&5
23003   ac_status=$?
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); }; } &&
23006          { ac_try='test -s conftest$ac_exeext'
23007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008   (eval $ac_try) 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); }; }; then
23012   ac_cv_lib_dl_dlopen=yes
23013 else
23014   echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017 ac_cv_lib_dl_dlopen=no
23018 fi
23019 rm -f conftest.err conftest.$ac_objext \
23020       conftest$ac_exeext conftest.$ac_ext
23021 LIBS=$ac_check_lib_save_LIBS
23022 fi
23023 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23025 if test $ac_cv_lib_dl_dlopen = yes; then
23026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23027 else
23028
23029     lt_cv_dlopen="dyld"
23030     lt_cv_dlopen_libs=
23031     lt_cv_dlopen_self=yes
23032
23033 fi
23034
23035    ;;
23036
23037   *)
23038     echo "$as_me:$LINENO: checking for shl_load" >&5
23039 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23040 if test "${ac_cv_func_shl_load+set}" = set; then
23041   echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23043   cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23051 #define shl_load innocuous_shl_load
23052
23053 /* System header to define __stub macros and hopefully few prototypes,
23054     which can conflict with char shl_load (); below.
23055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23056     <limits.h> exists even on freestanding compilers.  */
23057
23058 #ifdef __STDC__
23059 # include <limits.h>
23060 #else
23061 # include <assert.h>
23062 #endif
23063
23064 #undef shl_load
23065
23066 /* Override any gcc2 internal prototype to avoid an error.  */
23067 #ifdef __cplusplus
23068 extern "C"
23069 {
23070 #endif
23071 /* We use char because int might match the return type of a gcc2
23072    builtin and then its argument prototype would still apply.  */
23073 char shl_load ();
23074 /* The GNU C library defines this for functions which it implements
23075     to always fail with ENOSYS.  Some functions are actually named
23076     something starting with __ and the normal name is an alias.  */
23077 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23078 choke me
23079 #else
23080 char (*f) () = shl_load;
23081 #endif
23082 #ifdef __cplusplus
23083 }
23084 #endif
23085
23086 int
23087 main ()
23088 {
23089 return f != shl_load;
23090   ;
23091   return 0;
23092 }
23093 _ACEOF
23094 rm -f conftest.$ac_objext conftest$ac_exeext
23095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23096   (eval $ac_link) 2>conftest.er1
23097   ac_status=$?
23098   grep -v '^ *+' conftest.er1 >conftest.err
23099   rm -f conftest.er1
23100   cat conftest.err >&5
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); } &&
23103          { ac_try='test -z "$ac_c_werror_flag"
23104                          || test ! -s conftest.err'
23105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106   (eval $ac_try) 2>&5
23107   ac_status=$?
23108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109   (exit $ac_status); }; } &&
23110          { ac_try='test -s conftest$ac_exeext'
23111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112   (eval $ac_try) 2>&5
23113   ac_status=$?
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); }; }; then
23116   ac_cv_func_shl_load=yes
23117 else
23118   echo "$as_me: failed program was:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23120
23121 ac_cv_func_shl_load=no
23122 fi
23123 rm -f conftest.err conftest.$ac_objext \
23124       conftest$ac_exeext conftest.$ac_ext
23125 fi
23126 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23127 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23128 if test $ac_cv_func_shl_load = yes; then
23129   lt_cv_dlopen="shl_load"
23130 else
23131   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23132 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23133 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23134   echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136   ac_check_lib_save_LIBS=$LIBS
23137 LIBS="-ldld  $LIBS"
23138 cat >conftest.$ac_ext <<_ACEOF
23139 /* confdefs.h.  */
23140 _ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h.  */
23144
23145 /* Override any gcc2 internal prototype to avoid an error.  */
23146 #ifdef __cplusplus
23147 extern "C"
23148 #endif
23149 /* We use char because int might match the return type of a gcc2
23150    builtin and then its argument prototype would still apply.  */
23151 char shl_load ();
23152 int
23153 main ()
23154 {
23155 shl_load ();
23156   ;
23157   return 0;
23158 }
23159 _ACEOF
23160 rm -f conftest.$ac_objext conftest$ac_exeext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23162   (eval $ac_link) 2>conftest.er1
23163   ac_status=$?
23164   grep -v '^ *+' conftest.er1 >conftest.err
23165   rm -f conftest.er1
23166   cat conftest.err >&5
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); } &&
23169          { ac_try='test -z "$ac_c_werror_flag"
23170                          || test ! -s conftest.err'
23171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172   (eval $ac_try) 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); }; } &&
23176          { ac_try='test -s conftest$ac_exeext'
23177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178   (eval $ac_try) 2>&5
23179   ac_status=$?
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); }; }; then
23182   ac_cv_lib_dld_shl_load=yes
23183 else
23184   echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23186
23187 ac_cv_lib_dld_shl_load=no
23188 fi
23189 rm -f conftest.err conftest.$ac_objext \
23190       conftest$ac_exeext conftest.$ac_ext
23191 LIBS=$ac_check_lib_save_LIBS
23192 fi
23193 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23194 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23195 if test $ac_cv_lib_dld_shl_load = yes; then
23196   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23197 else
23198   echo "$as_me:$LINENO: checking for dlopen" >&5
23199 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23200 if test "${ac_cv_func_dlopen+set}" = set; then
23201   echo $ECHO_N "(cached) $ECHO_C" >&6
23202 else
23203   cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23211 #define dlopen innocuous_dlopen
23212
23213 /* System header to define __stub macros and hopefully few prototypes,
23214     which can conflict with char dlopen (); below.
23215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23216     <limits.h> exists even on freestanding compilers.  */
23217
23218 #ifdef __STDC__
23219 # include <limits.h>
23220 #else
23221 # include <assert.h>
23222 #endif
23223
23224 #undef dlopen
23225
23226 /* Override any gcc2 internal prototype to avoid an error.  */
23227 #ifdef __cplusplus
23228 extern "C"
23229 {
23230 #endif
23231 /* We use char because int might match the return type of a gcc2
23232    builtin and then its argument prototype would still apply.  */
23233 char dlopen ();
23234 /* The GNU C library defines this for functions which it implements
23235     to always fail with ENOSYS.  Some functions are actually named
23236     something starting with __ and the normal name is an alias.  */
23237 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23238 choke me
23239 #else
23240 char (*f) () = dlopen;
23241 #endif
23242 #ifdef __cplusplus
23243 }
23244 #endif
23245
23246 int
23247 main ()
23248 {
23249 return f != dlopen;
23250   ;
23251   return 0;
23252 }
23253 _ACEOF
23254 rm -f conftest.$ac_objext conftest$ac_exeext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23256   (eval $ac_link) 2>conftest.er1
23257   ac_status=$?
23258   grep -v '^ *+' conftest.er1 >conftest.err
23259   rm -f conftest.er1
23260   cat conftest.err >&5
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); } &&
23263          { ac_try='test -z "$ac_c_werror_flag"
23264                          || test ! -s conftest.err'
23265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266   (eval $ac_try) 2>&5
23267   ac_status=$?
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); }; } &&
23270          { ac_try='test -s conftest$ac_exeext'
23271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); }; }; then
23276   ac_cv_func_dlopen=yes
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 ac_cv_func_dlopen=no
23282 fi
23283 rm -f conftest.err conftest.$ac_objext \
23284       conftest$ac_exeext conftest.$ac_ext
23285 fi
23286 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23287 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23288 if test $ac_cv_func_dlopen = yes; then
23289   lt_cv_dlopen="dlopen"
23290 else
23291   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23292 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23293 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296   ac_check_lib_save_LIBS=$LIBS
23297 LIBS="-ldl  $LIBS"
23298 cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h.  */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h.  */
23304
23305 /* Override any gcc2 internal prototype to avoid an error.  */
23306 #ifdef __cplusplus
23307 extern "C"
23308 #endif
23309 /* We use char because int might match the return type of a gcc2
23310    builtin and then its argument prototype would still apply.  */
23311 char dlopen ();
23312 int
23313 main ()
23314 {
23315 dlopen ();
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext conftest$ac_exeext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23322   (eval $ac_link) 2>conftest.er1
23323   ac_status=$?
23324   grep -v '^ *+' conftest.er1 >conftest.err
23325   rm -f conftest.er1
23326   cat conftest.err >&5
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); } &&
23329          { ac_try='test -z "$ac_c_werror_flag"
23330                          || test ! -s conftest.err'
23331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332   (eval $ac_try) 2>&5
23333   ac_status=$?
23334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); }; } &&
23336          { ac_try='test -s conftest$ac_exeext'
23337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338   (eval $ac_try) 2>&5
23339   ac_status=$?
23340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341   (exit $ac_status); }; }; then
23342   ac_cv_lib_dl_dlopen=yes
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347 ac_cv_lib_dl_dlopen=no
23348 fi
23349 rm -f conftest.err conftest.$ac_objext \
23350       conftest$ac_exeext conftest.$ac_ext
23351 LIBS=$ac_check_lib_save_LIBS
23352 fi
23353 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23354 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23355 if test $ac_cv_lib_dl_dlopen = yes; then
23356   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23357 else
23358   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23359 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23360 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23361   echo $ECHO_N "(cached) $ECHO_C" >&6
23362 else
23363   ac_check_lib_save_LIBS=$LIBS
23364 LIBS="-lsvld  $LIBS"
23365 cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371
23372 /* Override any gcc2 internal prototype to avoid an error.  */
23373 #ifdef __cplusplus
23374 extern "C"
23375 #endif
23376 /* We use char because int might match the return type of a gcc2
23377    builtin and then its argument prototype would still apply.  */
23378 char dlopen ();
23379 int
23380 main ()
23381 {
23382 dlopen ();
23383   ;
23384   return 0;
23385 }
23386 _ACEOF
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23389   (eval $ac_link) 2>conftest.er1
23390   ac_status=$?
23391   grep -v '^ *+' conftest.er1 >conftest.err
23392   rm -f conftest.er1
23393   cat conftest.err >&5
23394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395   (exit $ac_status); } &&
23396          { ac_try='test -z "$ac_c_werror_flag"
23397                          || test ! -s conftest.err'
23398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399   (eval $ac_try) 2>&5
23400   ac_status=$?
23401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402   (exit $ac_status); }; } &&
23403          { ac_try='test -s conftest$ac_exeext'
23404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405   (eval $ac_try) 2>&5
23406   ac_status=$?
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); }; }; then
23409   ac_cv_lib_svld_dlopen=yes
23410 else
23411   echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23413
23414 ac_cv_lib_svld_dlopen=no
23415 fi
23416 rm -f conftest.err conftest.$ac_objext \
23417       conftest$ac_exeext conftest.$ac_ext
23418 LIBS=$ac_check_lib_save_LIBS
23419 fi
23420 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23421 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23422 if test $ac_cv_lib_svld_dlopen = yes; then
23423   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23424 else
23425   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23426 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23427 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23428   echo $ECHO_N "(cached) $ECHO_C" >&6
23429 else
23430   ac_check_lib_save_LIBS=$LIBS
23431 LIBS="-ldld  $LIBS"
23432 cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h.  */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h.  */
23438
23439 /* Override any gcc2 internal prototype to avoid an error.  */
23440 #ifdef __cplusplus
23441 extern "C"
23442 #endif
23443 /* We use char because int might match the return type of a gcc2
23444    builtin and then its argument prototype would still apply.  */
23445 char dld_link ();
23446 int
23447 main ()
23448 {
23449 dld_link ();
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext conftest$ac_exeext
23455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23456   (eval $ac_link) 2>conftest.er1
23457   ac_status=$?
23458   grep -v '^ *+' conftest.er1 >conftest.err
23459   rm -f conftest.er1
23460   cat conftest.err >&5
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); } &&
23463          { ac_try='test -z "$ac_c_werror_flag"
23464                          || test ! -s conftest.err'
23465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466   (eval $ac_try) 2>&5
23467   ac_status=$?
23468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469   (exit $ac_status); }; } &&
23470          { ac_try='test -s conftest$ac_exeext'
23471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472   (eval $ac_try) 2>&5
23473   ac_status=$?
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); }; }; then
23476   ac_cv_lib_dld_dld_link=yes
23477 else
23478   echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23480
23481 ac_cv_lib_dld_dld_link=no
23482 fi
23483 rm -f conftest.err conftest.$ac_objext \
23484       conftest$ac_exeext conftest.$ac_ext
23485 LIBS=$ac_check_lib_save_LIBS
23486 fi
23487 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23488 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23489 if test $ac_cv_lib_dld_dld_link = yes; then
23490   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23491 fi
23492
23493
23494 fi
23495
23496
23497 fi
23498
23499
23500 fi
23501
23502
23503 fi
23504
23505
23506 fi
23507
23508     ;;
23509   esac
23510
23511   if test "x$lt_cv_dlopen" != xno; then
23512     enable_dlopen=yes
23513   else
23514     enable_dlopen=no
23515   fi
23516
23517   case $lt_cv_dlopen in
23518   dlopen)
23519     save_CPPFLAGS="$CPPFLAGS"
23520     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23521
23522     save_LDFLAGS="$LDFLAGS"
23523     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23524
23525     save_LIBS="$LIBS"
23526     LIBS="$lt_cv_dlopen_libs $LIBS"
23527
23528     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23529 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23530 if test "${lt_cv_dlopen_self+set}" = set; then
23531   echo $ECHO_N "(cached) $ECHO_C" >&6
23532 else
23533           if test "$cross_compiling" = yes; then :
23534   lt_cv_dlopen_self=cross
23535 else
23536   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23537   lt_status=$lt_dlunknown
23538   cat > conftest.$ac_ext <<EOF
23539 #line 23539 "configure"
23540 #include "confdefs.h"
23541
23542 #if HAVE_DLFCN_H
23543 #include <dlfcn.h>
23544 #endif
23545
23546 #include <stdio.h>
23547
23548 #ifdef RTLD_GLOBAL
23549 #  define LT_DLGLOBAL           RTLD_GLOBAL
23550 #else
23551 #  ifdef DL_GLOBAL
23552 #    define LT_DLGLOBAL         DL_GLOBAL
23553 #  else
23554 #    define LT_DLGLOBAL         0
23555 #  endif
23556 #endif
23557
23558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23559    find out it does not work in some platform. */
23560 #ifndef LT_DLLAZY_OR_NOW
23561 #  ifdef RTLD_LAZY
23562 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23563 #  else
23564 #    ifdef DL_LAZY
23565 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23566 #    else
23567 #      ifdef RTLD_NOW
23568 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23569 #      else
23570 #        ifdef DL_NOW
23571 #          define LT_DLLAZY_OR_NOW      DL_NOW
23572 #        else
23573 #          define LT_DLLAZY_OR_NOW      0
23574 #        endif
23575 #      endif
23576 #    endif
23577 #  endif
23578 #endif
23579
23580 #ifdef __cplusplus
23581 extern "C" void exit (int);
23582 #endif
23583
23584 void fnord() { int i=42;}
23585 int main ()
23586 {
23587   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23588   int status = $lt_dlunknown;
23589
23590   if (self)
23591     {
23592       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23593       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23594       /* dlclose (self); */
23595     }
23596
23597     exit (status);
23598 }
23599 EOF
23600   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23601   (eval $ac_link) 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23605     (./conftest; exit; ) 2>/dev/null
23606     lt_status=$?
23607     case x$lt_status in
23608       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23609       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23610       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23611     esac
23612   else :
23613     # compilation failed
23614     lt_cv_dlopen_self=no
23615   fi
23616 fi
23617 rm -fr conftest*
23618
23619
23620 fi
23621 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23622 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23623
23624     if test "x$lt_cv_dlopen_self" = xyes; then
23625       LDFLAGS="$LDFLAGS $link_static_flag"
23626       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23627 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23628 if test "${lt_cv_dlopen_self_static+set}" = set; then
23629   echo $ECHO_N "(cached) $ECHO_C" >&6
23630 else
23631           if test "$cross_compiling" = yes; then :
23632   lt_cv_dlopen_self_static=cross
23633 else
23634   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23635   lt_status=$lt_dlunknown
23636   cat > conftest.$ac_ext <<EOF
23637 #line 23637 "configure"
23638 #include "confdefs.h"
23639
23640 #if HAVE_DLFCN_H
23641 #include <dlfcn.h>
23642 #endif
23643
23644 #include <stdio.h>
23645
23646 #ifdef RTLD_GLOBAL
23647 #  define LT_DLGLOBAL           RTLD_GLOBAL
23648 #else
23649 #  ifdef DL_GLOBAL
23650 #    define LT_DLGLOBAL         DL_GLOBAL
23651 #  else
23652 #    define LT_DLGLOBAL         0
23653 #  endif
23654 #endif
23655
23656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23657    find out it does not work in some platform. */
23658 #ifndef LT_DLLAZY_OR_NOW
23659 #  ifdef RTLD_LAZY
23660 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23661 #  else
23662 #    ifdef DL_LAZY
23663 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23664 #    else
23665 #      ifdef RTLD_NOW
23666 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23667 #      else
23668 #        ifdef DL_NOW
23669 #          define LT_DLLAZY_OR_NOW      DL_NOW
23670 #        else
23671 #          define LT_DLLAZY_OR_NOW      0
23672 #        endif
23673 #      endif
23674 #    endif
23675 #  endif
23676 #endif
23677
23678 #ifdef __cplusplus
23679 extern "C" void exit (int);
23680 #endif
23681
23682 void fnord() { int i=42;}
23683 int main ()
23684 {
23685   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23686   int status = $lt_dlunknown;
23687
23688   if (self)
23689     {
23690       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23691       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23692       /* dlclose (self); */
23693     }
23694
23695     exit (status);
23696 }
23697 EOF
23698   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23699   (eval $ac_link) 2>&5
23700   ac_status=$?
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23703     (./conftest; exit; ) 2>/dev/null
23704     lt_status=$?
23705     case x$lt_status in
23706       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23707       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23708       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23709     esac
23710   else :
23711     # compilation failed
23712     lt_cv_dlopen_self_static=no
23713   fi
23714 fi
23715 rm -fr conftest*
23716
23717
23718 fi
23719 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23720 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23721     fi
23722
23723     CPPFLAGS="$save_CPPFLAGS"
23724     LDFLAGS="$save_LDFLAGS"
23725     LIBS="$save_LIBS"
23726     ;;
23727   esac
23728
23729   case $lt_cv_dlopen_self in
23730   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23731   *) enable_dlopen_self=unknown ;;
23732   esac
23733
23734   case $lt_cv_dlopen_self_static in
23735   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23736   *) enable_dlopen_self_static=unknown ;;
23737   esac
23738 fi
23739
23740
23741 # The else clause should only fire when bootstrapping the
23742 # libtool distribution, otherwise you forgot to ship ltmain.sh
23743 # with your package, and you will get complaints that there are
23744 # no rules to generate ltmain.sh.
23745 if test -f "$ltmain"; then
23746   # See if we are running on zsh, and set the options which allow our commands through
23747   # without removal of \ escapes.
23748   if test -n "${ZSH_VERSION+set}" ; then
23749     setopt NO_GLOB_SUBST
23750   fi
23751   # Now quote all the things that may contain metacharacters while being
23752   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23753   # variables and quote the copies for generation of the libtool script.
23754   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23755     SED SHELL STRIP \
23756     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23757     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23758     deplibs_check_method reload_flag reload_cmds need_locks \
23759     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23760     lt_cv_sys_global_symbol_to_c_name_address \
23761     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23762     old_postinstall_cmds old_postuninstall_cmds \
23763     compiler_GCJ \
23764     CC_GCJ \
23765     LD_GCJ \
23766     lt_prog_compiler_wl_GCJ \
23767     lt_prog_compiler_pic_GCJ \
23768     lt_prog_compiler_static_GCJ \
23769     lt_prog_compiler_no_builtin_flag_GCJ \
23770     export_dynamic_flag_spec_GCJ \
23771     thread_safe_flag_spec_GCJ \
23772     whole_archive_flag_spec_GCJ \
23773     enable_shared_with_static_runtimes_GCJ \
23774     old_archive_cmds_GCJ \
23775     old_archive_from_new_cmds_GCJ \
23776     predep_objects_GCJ \
23777     postdep_objects_GCJ \
23778     predeps_GCJ \
23779     postdeps_GCJ \
23780     compiler_lib_search_path_GCJ \
23781     archive_cmds_GCJ \
23782     archive_expsym_cmds_GCJ \
23783     postinstall_cmds_GCJ \
23784     postuninstall_cmds_GCJ \
23785     old_archive_from_expsyms_cmds_GCJ \
23786     allow_undefined_flag_GCJ \
23787     no_undefined_flag_GCJ \
23788     export_symbols_cmds_GCJ \
23789     hardcode_libdir_flag_spec_GCJ \
23790     hardcode_libdir_flag_spec_ld_GCJ \
23791     hardcode_libdir_separator_GCJ \
23792     hardcode_automatic_GCJ \
23793     module_cmds_GCJ \
23794     module_expsym_cmds_GCJ \
23795     lt_cv_prog_compiler_c_o_GCJ \
23796     exclude_expsyms_GCJ \
23797     include_expsyms_GCJ; do
23798
23799     case $var in
23800     old_archive_cmds_GCJ | \
23801     old_archive_from_new_cmds_GCJ | \
23802     archive_cmds_GCJ | \
23803     archive_expsym_cmds_GCJ | \
23804     module_cmds_GCJ | \
23805     module_expsym_cmds_GCJ | \
23806     old_archive_from_expsyms_cmds_GCJ | \
23807     export_symbols_cmds_GCJ | \
23808     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23809     postinstall_cmds | postuninstall_cmds | \
23810     old_postinstall_cmds | old_postuninstall_cmds | \
23811     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23812       # Double-quote double-evaled strings.
23813       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23814       ;;
23815     *)
23816       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23817       ;;
23818     esac
23819   done
23820
23821   case $lt_echo in
23822   *'\$0 --fallback-echo"')
23823     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23824     ;;
23825   esac
23826
23827 cfgfile="$ofile"
23828
23829   cat <<__EOF__ >> "$cfgfile"
23830 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23831
23832 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23833
23834 # Shell to use when invoking shell scripts.
23835 SHELL=$lt_SHELL
23836
23837 # Whether or not to build shared libraries.
23838 build_libtool_libs=$enable_shared
23839
23840 # Whether or not to build static libraries.
23841 build_old_libs=$enable_static
23842
23843 # Whether or not to add -lc for building shared libraries.
23844 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23845
23846 # Whether or not to disallow shared libs when runtime libs are static
23847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23848
23849 # Whether or not to optimize for fast installation.
23850 fast_install=$enable_fast_install
23851
23852 # The host system.
23853 host_alias=$host_alias
23854 host=$host
23855
23856 # An echo program that does not interpret backslashes.
23857 echo=$lt_echo
23858
23859 # The archiver.
23860 AR=$lt_AR
23861 AR_FLAGS=$lt_AR_FLAGS
23862
23863 # A C compiler.
23864 LTCC=$lt_LTCC
23865
23866 # A language-specific compiler.
23867 CC=$lt_compiler_GCJ
23868
23869 # Is the compiler the GNU C compiler?
23870 with_gcc=$GCC_GCJ
23871
23872 # An ERE matcher.
23873 EGREP=$lt_EGREP
23874
23875 # The linker used to build libraries.
23876 LD=$lt_LD_GCJ
23877
23878 # Whether we need hard or soft links.
23879 LN_S=$lt_LN_S
23880
23881 # A BSD-compatible nm program.
23882 NM=$lt_NM
23883
23884 # A symbol stripping program
23885 STRIP=$lt_STRIP
23886
23887 # Used to examine libraries when file_magic_cmd begins "file"
23888 MAGIC_CMD=$MAGIC_CMD
23889
23890 # Used on cygwin: DLL creation program.
23891 DLLTOOL="$DLLTOOL"
23892
23893 # Used on cygwin: object dumper.
23894 OBJDUMP="$OBJDUMP"
23895
23896 # Used on cygwin: assembler.
23897 AS="$AS"
23898
23899 # The name of the directory that contains temporary libtool files.
23900 objdir=$objdir
23901
23902 # How to create reloadable object files.
23903 reload_flag=$lt_reload_flag
23904 reload_cmds=$lt_reload_cmds
23905
23906 # How to pass a linker flag through the compiler.
23907 wl=$lt_lt_prog_compiler_wl_GCJ
23908
23909 # Object file suffix (normally "o").
23910 objext="$ac_objext"
23911
23912 # Old archive suffix (normally "a").
23913 libext="$libext"
23914
23915 # Shared library suffix (normally ".so").
23916 shrext_cmds='$shrext_cmds'
23917
23918 # Executable file suffix (normally "").
23919 exeext="$exeext"
23920
23921 # Additional compiler flags for building library objects.
23922 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23923 pic_mode=$pic_mode
23924
23925 # What is the maximum length of a command?
23926 max_cmd_len=$lt_cv_sys_max_cmd_len
23927
23928 # Does compiler simultaneously support -c and -o options?
23929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23930
23931 # Must we lock files when doing compilation ?
23932 need_locks=$lt_need_locks
23933
23934 # Do we need the lib prefix for modules?
23935 need_lib_prefix=$need_lib_prefix
23936
23937 # Do we need a version for libraries?
23938 need_version=$need_version
23939
23940 # Whether dlopen is supported.
23941 dlopen_support=$enable_dlopen
23942
23943 # Whether dlopen of programs is supported.
23944 dlopen_self=$enable_dlopen_self
23945
23946 # Whether dlopen of statically linked programs is supported.
23947 dlopen_self_static=$enable_dlopen_self_static
23948
23949 # Compiler flag to prevent dynamic linking.
23950 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23951
23952 # Compiler flag to turn off builtin functions.
23953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23954
23955 # Compiler flag to allow reflexive dlopens.
23956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23957
23958 # Compiler flag to generate shared objects directly from archives.
23959 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23960
23961 # Compiler flag to generate thread-safe objects.
23962 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23963
23964 # Library versioning type.
23965 version_type=$version_type
23966
23967 # Format of library name prefix.
23968 libname_spec=$lt_libname_spec
23969
23970 # List of archive names.  First name is the real one, the rest are links.
23971 # The last name is the one that the linker finds with -lNAME.
23972 library_names_spec=$lt_library_names_spec
23973
23974 # The coded name of the library, if different from the real name.
23975 soname_spec=$lt_soname_spec
23976
23977 # Commands used to build and install an old-style archive.
23978 RANLIB=$lt_RANLIB
23979 old_archive_cmds=$lt_old_archive_cmds_GCJ
23980 old_postinstall_cmds=$lt_old_postinstall_cmds
23981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23982
23983 # Create an old-style archive from a shared archive.
23984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23985
23986 # Create a temporary old-style archive to link instead of a shared archive.
23987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23988
23989 # Commands used to build and install a shared archive.
23990 archive_cmds=$lt_archive_cmds_GCJ
23991 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23992 postinstall_cmds=$lt_postinstall_cmds
23993 postuninstall_cmds=$lt_postuninstall_cmds
23994
23995 # Commands used to build a loadable module (assumed same as above if empty)
23996 module_cmds=$lt_module_cmds_GCJ
23997 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23998
23999 # Commands to strip libraries.
24000 old_striplib=$lt_old_striplib
24001 striplib=$lt_striplib
24002
24003 # Dependencies to place before the objects being linked to create a
24004 # shared library.
24005 predep_objects=$lt_predep_objects_GCJ
24006
24007 # Dependencies to place after the objects being linked to create a
24008 # shared library.
24009 postdep_objects=$lt_postdep_objects_GCJ
24010
24011 # Dependencies to place before the objects being linked to create a
24012 # shared library.
24013 predeps=$lt_predeps_GCJ
24014
24015 # Dependencies to place after the objects being linked to create a
24016 # shared library.
24017 postdeps=$lt_postdeps_GCJ
24018
24019 # The library search path used internally by the compiler when linking
24020 # a shared library.
24021 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24022
24023 # Method to check whether dependent libraries are shared objects.
24024 deplibs_check_method=$lt_deplibs_check_method
24025
24026 # Command to use when deplibs_check_method == file_magic.
24027 file_magic_cmd=$lt_file_magic_cmd
24028
24029 # Flag that allows shared libraries with undefined symbols to be built.
24030 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24031
24032 # Flag that forces no undefined symbols.
24033 no_undefined_flag=$lt_no_undefined_flag_GCJ
24034
24035 # Commands used to finish a libtool library installation in a directory.
24036 finish_cmds=$lt_finish_cmds
24037
24038 # Same as above, but a single script fragment to be evaled but not shown.
24039 finish_eval=$lt_finish_eval
24040
24041 # Take the output of nm and produce a listing of raw symbols and C names.
24042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24043
24044 # Transform the output of nm in a proper C declaration
24045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24046
24047 # Transform the output of nm in a C name address pair
24048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24049
24050 # This is the shared library runtime path variable.
24051 runpath_var=$runpath_var
24052
24053 # This is the shared library path variable.
24054 shlibpath_var=$shlibpath_var
24055
24056 # Is shlibpath searched before the hard-coded library search path?
24057 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24058
24059 # How to hardcode a shared library path into an executable.
24060 hardcode_action=$hardcode_action_GCJ
24061
24062 # Whether we should hardcode library paths into libraries.
24063 hardcode_into_libs=$hardcode_into_libs
24064
24065 # Flag to hardcode \$libdir into a binary during linking.
24066 # This must work even if \$libdir does not exist.
24067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24068
24069 # If ld is used when linking, flag to hardcode \$libdir into
24070 # a binary during linking. This must work even if \$libdir does
24071 # not exist.
24072 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24073
24074 # Whether we need a single -rpath flag with a separated argument.
24075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24076
24077 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24078 # resulting binary.
24079 hardcode_direct=$hardcode_direct_GCJ
24080
24081 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24082 # resulting binary.
24083 hardcode_minus_L=$hardcode_minus_L_GCJ
24084
24085 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24086 # the resulting binary.
24087 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24088
24089 # Set to yes if building a shared library automatically hardcodes DIR into the library
24090 # and all subsequent libraries and executables linked against it.
24091 hardcode_automatic=$hardcode_automatic_GCJ
24092
24093 # Variables whose values should be saved in libtool wrapper scripts and
24094 # restored at relink time.
24095 variables_saved_for_relink="$variables_saved_for_relink"
24096
24097 # Whether libtool must link a program against all its dependency libraries.
24098 link_all_deplibs=$link_all_deplibs_GCJ
24099
24100 # Compile-time system search path for libraries
24101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24102
24103 # Run-time system search path for libraries
24104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24105
24106 # Fix the shell variable \$srcfile for the compiler.
24107 fix_srcfile_path="$fix_srcfile_path_GCJ"
24108
24109 # Set to yes if exported symbols are required.
24110 always_export_symbols=$always_export_symbols_GCJ
24111
24112 # The commands to list exported symbols.
24113 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24114
24115 # The commands to extract the exported symbol list from a shared archive.
24116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24117
24118 # Symbols that should not be listed in the preloaded symbols.
24119 exclude_expsyms=$lt_exclude_expsyms_GCJ
24120
24121 # Symbols that must always be exported.
24122 include_expsyms=$lt_include_expsyms_GCJ
24123
24124 # ### END LIBTOOL TAG CONFIG: $tagname
24125
24126 __EOF__
24127
24128
24129 else
24130   # If there is no Makefile yet, we rely on a make rule to execute
24131   # `config.status --recheck' to rerun these tests and create the
24132   # libtool script then.
24133   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24134   if test -f "$ltmain_in"; then
24135     test -f Makefile && make "$ltmain"
24136   fi
24137 fi
24138
24139
24140 ac_ext=c
24141 ac_cpp='$CPP $CPPFLAGS'
24142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24145
24146 CC="$lt_save_CC"
24147
24148         else
24149           tagname=""
24150         fi
24151         ;;
24152
24153       RC)
24154         ac_ext=c
24155 ac_cpp='$CPP $CPPFLAGS'
24156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24159
24160
24161 # Source file extension for RC test sources.
24162 ac_ext=rc
24163
24164 # Object file extension for compiled RC test sources.
24165 objext=o
24166 objext_RC=$objext
24167
24168 # Code to be used in simple compile tests
24169 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24170
24171 # Code to be used in simple link tests
24172 lt_simple_link_test_code="$lt_simple_compile_test_code"
24173
24174 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24175
24176 # If no C compiler was specified, use CC.
24177 LTCC=${LTCC-"$CC"}
24178
24179 # Allow CC to be a program name with arguments.
24180 compiler=$CC
24181
24182
24183 # Allow CC to be a program name with arguments.
24184 lt_save_CC="$CC"
24185 CC=${RC-"windres"}
24186 compiler=$CC
24187 compiler_RC=$CC
24188 lt_cv_prog_compiler_c_o_RC=yes
24189
24190 # The else clause should only fire when bootstrapping the
24191 # libtool distribution, otherwise you forgot to ship ltmain.sh
24192 # with your package, and you will get complaints that there are
24193 # no rules to generate ltmain.sh.
24194 if test -f "$ltmain"; then
24195   # See if we are running on zsh, and set the options which allow our commands through
24196   # without removal of \ escapes.
24197   if test -n "${ZSH_VERSION+set}" ; then
24198     setopt NO_GLOB_SUBST
24199   fi
24200   # Now quote all the things that may contain metacharacters while being
24201   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24202   # variables and quote the copies for generation of the libtool script.
24203   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24204     SED SHELL STRIP \
24205     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24206     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24207     deplibs_check_method reload_flag reload_cmds need_locks \
24208     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24209     lt_cv_sys_global_symbol_to_c_name_address \
24210     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24211     old_postinstall_cmds old_postuninstall_cmds \
24212     compiler_RC \
24213     CC_RC \
24214     LD_RC \
24215     lt_prog_compiler_wl_RC \
24216     lt_prog_compiler_pic_RC \
24217     lt_prog_compiler_static_RC \
24218     lt_prog_compiler_no_builtin_flag_RC \
24219     export_dynamic_flag_spec_RC \
24220     thread_safe_flag_spec_RC \
24221     whole_archive_flag_spec_RC \
24222     enable_shared_with_static_runtimes_RC \
24223     old_archive_cmds_RC \
24224     old_archive_from_new_cmds_RC \
24225     predep_objects_RC \
24226     postdep_objects_RC \
24227     predeps_RC \
24228     postdeps_RC \
24229     compiler_lib_search_path_RC \
24230     archive_cmds_RC \
24231     archive_expsym_cmds_RC \
24232     postinstall_cmds_RC \
24233     postuninstall_cmds_RC \
24234     old_archive_from_expsyms_cmds_RC \
24235     allow_undefined_flag_RC \
24236     no_undefined_flag_RC \
24237     export_symbols_cmds_RC \
24238     hardcode_libdir_flag_spec_RC \
24239     hardcode_libdir_flag_spec_ld_RC \
24240     hardcode_libdir_separator_RC \
24241     hardcode_automatic_RC \
24242     module_cmds_RC \
24243     module_expsym_cmds_RC \
24244     lt_cv_prog_compiler_c_o_RC \
24245     exclude_expsyms_RC \
24246     include_expsyms_RC; do
24247
24248     case $var in
24249     old_archive_cmds_RC | \
24250     old_archive_from_new_cmds_RC | \
24251     archive_cmds_RC | \
24252     archive_expsym_cmds_RC | \
24253     module_cmds_RC | \
24254     module_expsym_cmds_RC | \
24255     old_archive_from_expsyms_cmds_RC | \
24256     export_symbols_cmds_RC | \
24257     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24258     postinstall_cmds | postuninstall_cmds | \
24259     old_postinstall_cmds | old_postuninstall_cmds | \
24260     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24261       # Double-quote double-evaled strings.
24262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24263       ;;
24264     *)
24265       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24266       ;;
24267     esac
24268   done
24269
24270   case $lt_echo in
24271   *'\$0 --fallback-echo"')
24272     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24273     ;;
24274   esac
24275
24276 cfgfile="$ofile"
24277
24278   cat <<__EOF__ >> "$cfgfile"
24279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24280
24281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24282
24283 # Shell to use when invoking shell scripts.
24284 SHELL=$lt_SHELL
24285
24286 # Whether or not to build shared libraries.
24287 build_libtool_libs=$enable_shared
24288
24289 # Whether or not to build static libraries.
24290 build_old_libs=$enable_static
24291
24292 # Whether or not to add -lc for building shared libraries.
24293 build_libtool_need_lc=$archive_cmds_need_lc_RC
24294
24295 # Whether or not to disallow shared libs when runtime libs are static
24296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24297
24298 # Whether or not to optimize for fast installation.
24299 fast_install=$enable_fast_install
24300
24301 # The host system.
24302 host_alias=$host_alias
24303 host=$host
24304
24305 # An echo program that does not interpret backslashes.
24306 echo=$lt_echo
24307
24308 # The archiver.
24309 AR=$lt_AR
24310 AR_FLAGS=$lt_AR_FLAGS
24311
24312 # A C compiler.
24313 LTCC=$lt_LTCC
24314
24315 # A language-specific compiler.
24316 CC=$lt_compiler_RC
24317
24318 # Is the compiler the GNU C compiler?
24319 with_gcc=$GCC_RC
24320
24321 # An ERE matcher.
24322 EGREP=$lt_EGREP
24323
24324 # The linker used to build libraries.
24325 LD=$lt_LD_RC
24326
24327 # Whether we need hard or soft links.
24328 LN_S=$lt_LN_S
24329
24330 # A BSD-compatible nm program.
24331 NM=$lt_NM
24332
24333 # A symbol stripping program
24334 STRIP=$lt_STRIP
24335
24336 # Used to examine libraries when file_magic_cmd begins "file"
24337 MAGIC_CMD=$MAGIC_CMD
24338
24339 # Used on cygwin: DLL creation program.
24340 DLLTOOL="$DLLTOOL"
24341
24342 # Used on cygwin: object dumper.
24343 OBJDUMP="$OBJDUMP"
24344
24345 # Used on cygwin: assembler.
24346 AS="$AS"
24347
24348 # The name of the directory that contains temporary libtool files.
24349 objdir=$objdir
24350
24351 # How to create reloadable object files.
24352 reload_flag=$lt_reload_flag
24353 reload_cmds=$lt_reload_cmds
24354
24355 # How to pass a linker flag through the compiler.
24356 wl=$lt_lt_prog_compiler_wl_RC
24357
24358 # Object file suffix (normally "o").
24359 objext="$ac_objext"
24360
24361 # Old archive suffix (normally "a").
24362 libext="$libext"
24363
24364 # Shared library suffix (normally ".so").
24365 shrext_cmds='$shrext_cmds'
24366
24367 # Executable file suffix (normally "").
24368 exeext="$exeext"
24369
24370 # Additional compiler flags for building library objects.
24371 pic_flag=$lt_lt_prog_compiler_pic_RC
24372 pic_mode=$pic_mode
24373
24374 # What is the maximum length of a command?
24375 max_cmd_len=$lt_cv_sys_max_cmd_len
24376
24377 # Does compiler simultaneously support -c and -o options?
24378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24379
24380 # Must we lock files when doing compilation ?
24381 need_locks=$lt_need_locks
24382
24383 # Do we need the lib prefix for modules?
24384 need_lib_prefix=$need_lib_prefix
24385
24386 # Do we need a version for libraries?
24387 need_version=$need_version
24388
24389 # Whether dlopen is supported.
24390 dlopen_support=$enable_dlopen
24391
24392 # Whether dlopen of programs is supported.
24393 dlopen_self=$enable_dlopen_self
24394
24395 # Whether dlopen of statically linked programs is supported.
24396 dlopen_self_static=$enable_dlopen_self_static
24397
24398 # Compiler flag to prevent dynamic linking.
24399 link_static_flag=$lt_lt_prog_compiler_static_RC
24400
24401 # Compiler flag to turn off builtin functions.
24402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24403
24404 # Compiler flag to allow reflexive dlopens.
24405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24406
24407 # Compiler flag to generate shared objects directly from archives.
24408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24409
24410 # Compiler flag to generate thread-safe objects.
24411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24412
24413 # Library versioning type.
24414 version_type=$version_type
24415
24416 # Format of library name prefix.
24417 libname_spec=$lt_libname_spec
24418
24419 # List of archive names.  First name is the real one, the rest are links.
24420 # The last name is the one that the linker finds with -lNAME.
24421 library_names_spec=$lt_library_names_spec
24422
24423 # The coded name of the library, if different from the real name.
24424 soname_spec=$lt_soname_spec
24425
24426 # Commands used to build and install an old-style archive.
24427 RANLIB=$lt_RANLIB
24428 old_archive_cmds=$lt_old_archive_cmds_RC
24429 old_postinstall_cmds=$lt_old_postinstall_cmds
24430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24431
24432 # Create an old-style archive from a shared archive.
24433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24434
24435 # Create a temporary old-style archive to link instead of a shared archive.
24436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24437
24438 # Commands used to build and install a shared archive.
24439 archive_cmds=$lt_archive_cmds_RC
24440 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24441 postinstall_cmds=$lt_postinstall_cmds
24442 postuninstall_cmds=$lt_postuninstall_cmds
24443
24444 # Commands used to build a loadable module (assumed same as above if empty)
24445 module_cmds=$lt_module_cmds_RC
24446 module_expsym_cmds=$lt_module_expsym_cmds_RC
24447
24448 # Commands to strip libraries.
24449 old_striplib=$lt_old_striplib
24450 striplib=$lt_striplib
24451
24452 # Dependencies to place before the objects being linked to create a
24453 # shared library.
24454 predep_objects=$lt_predep_objects_RC
24455
24456 # Dependencies to place after the objects being linked to create a
24457 # shared library.
24458 postdep_objects=$lt_postdep_objects_RC
24459
24460 # Dependencies to place before the objects being linked to create a
24461 # shared library.
24462 predeps=$lt_predeps_RC
24463
24464 # Dependencies to place after the objects being linked to create a
24465 # shared library.
24466 postdeps=$lt_postdeps_RC
24467
24468 # The library search path used internally by the compiler when linking
24469 # a shared library.
24470 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24471
24472 # Method to check whether dependent libraries are shared objects.
24473 deplibs_check_method=$lt_deplibs_check_method
24474
24475 # Command to use when deplibs_check_method == file_magic.
24476 file_magic_cmd=$lt_file_magic_cmd
24477
24478 # Flag that allows shared libraries with undefined symbols to be built.
24479 allow_undefined_flag=$lt_allow_undefined_flag_RC
24480
24481 # Flag that forces no undefined symbols.
24482 no_undefined_flag=$lt_no_undefined_flag_RC
24483
24484 # Commands used to finish a libtool library installation in a directory.
24485 finish_cmds=$lt_finish_cmds
24486
24487 # Same as above, but a single script fragment to be evaled but not shown.
24488 finish_eval=$lt_finish_eval
24489
24490 # Take the output of nm and produce a listing of raw symbols and C names.
24491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24492
24493 # Transform the output of nm in a proper C declaration
24494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24495
24496 # Transform the output of nm in a C name address pair
24497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24498
24499 # This is the shared library runtime path variable.
24500 runpath_var=$runpath_var
24501
24502 # This is the shared library path variable.
24503 shlibpath_var=$shlibpath_var
24504
24505 # Is shlibpath searched before the hard-coded library search path?
24506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24507
24508 # How to hardcode a shared library path into an executable.
24509 hardcode_action=$hardcode_action_RC
24510
24511 # Whether we should hardcode library paths into libraries.
24512 hardcode_into_libs=$hardcode_into_libs
24513
24514 # Flag to hardcode \$libdir into a binary during linking.
24515 # This must work even if \$libdir does not exist.
24516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24517
24518 # If ld is used when linking, flag to hardcode \$libdir into
24519 # a binary during linking. This must work even if \$libdir does
24520 # not exist.
24521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24522
24523 # Whether we need a single -rpath flag with a separated argument.
24524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24525
24526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24527 # resulting binary.
24528 hardcode_direct=$hardcode_direct_RC
24529
24530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24531 # resulting binary.
24532 hardcode_minus_L=$hardcode_minus_L_RC
24533
24534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24535 # the resulting binary.
24536 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24537
24538 # Set to yes if building a shared library automatically hardcodes DIR into the library
24539 # and all subsequent libraries and executables linked against it.
24540 hardcode_automatic=$hardcode_automatic_RC
24541
24542 # Variables whose values should be saved in libtool wrapper scripts and
24543 # restored at relink time.
24544 variables_saved_for_relink="$variables_saved_for_relink"
24545
24546 # Whether libtool must link a program against all its dependency libraries.
24547 link_all_deplibs=$link_all_deplibs_RC
24548
24549 # Compile-time system search path for libraries
24550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24551
24552 # Run-time system search path for libraries
24553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24554
24555 # Fix the shell variable \$srcfile for the compiler.
24556 fix_srcfile_path="$fix_srcfile_path_RC"
24557
24558 # Set to yes if exported symbols are required.
24559 always_export_symbols=$always_export_symbols_RC
24560
24561 # The commands to list exported symbols.
24562 export_symbols_cmds=$lt_export_symbols_cmds_RC
24563
24564 # The commands to extract the exported symbol list from a shared archive.
24565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24566
24567 # Symbols that should not be listed in the preloaded symbols.
24568 exclude_expsyms=$lt_exclude_expsyms_RC
24569
24570 # Symbols that must always be exported.
24571 include_expsyms=$lt_include_expsyms_RC
24572
24573 # ### END LIBTOOL TAG CONFIG: $tagname
24574
24575 __EOF__
24576
24577
24578 else
24579   # If there is no Makefile yet, we rely on a make rule to execute
24580   # `config.status --recheck' to rerun these tests and create the
24581   # libtool script then.
24582   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24583   if test -f "$ltmain_in"; then
24584     test -f Makefile && make "$ltmain"
24585   fi
24586 fi
24587
24588
24589 ac_ext=c
24590 ac_cpp='$CPP $CPPFLAGS'
24591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24594
24595 CC="$lt_save_CC"
24596
24597         ;;
24598
24599       *)
24600         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24601 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24602    { (exit 1); exit 1; }; }
24603         ;;
24604       esac
24605
24606       # Append the new tag name to the list of available tags.
24607       if test -n "$tagname" ; then
24608       available_tags="$available_tags $tagname"
24609     fi
24610     fi
24611   done
24612   IFS="$lt_save_ifs"
24613
24614   # Now substitute the updated list of available tags.
24615   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24616     mv "${ofile}T" "$ofile"
24617     chmod +x "$ofile"
24618   else
24619     rm -f "${ofile}T"
24620     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24621 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24622    { (exit 1); exit 1; }; }
24623   fi
24624 fi
24625
24626
24627
24628 # This can be used to rebuild libtool when needed
24629 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24630
24631 # Always use our own libtool.
24632 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24633
24634 # Prevent multiple expansion
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656 if test "$lt_cv_dlopen_self" = "yes" ; then
24657
24658 cat >>confdefs.h <<\_ACEOF
24659 #define CAN_DLOPEN_SELF 1
24660 _ACEOF
24661
24662 fi
24663
24664 etags_version=`$ETAGS --version 2>&1`
24665 case "$etags_version" in
24666         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24667         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24668         *) ETAGSFLAGS="" ;;
24669 esac
24670 ETAGSFLAGS=$ETAGSFLAGS
24671
24672
24673 if test "$WITH_LLVMGCCDIR" = "default" ; then
24674   LLVMGCC="llvm-gcc${EXEEXT}"
24675   LLVMGXX="llvm-g++${EXEEXT}"
24676   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24677 set dummy $LLVMGCC; ac_word=$2
24678 echo "$as_me:$LINENO: checking for $ac_word" >&5
24679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24680 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24681   echo $ECHO_N "(cached) $ECHO_C" >&6
24682 else
24683   case $LLVMGCC in
24684   [\\/]* | ?:[\\/]*)
24685   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24686   ;;
24687   *)
24688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689 for as_dir in $PATH
24690 do
24691   IFS=$as_save_IFS
24692   test -z "$as_dir" && as_dir=.
24693   for ac_exec_ext in '' $ac_executable_extensions; do
24694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24695     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24697     break 2
24698   fi
24699 done
24700 done
24701
24702   ;;
24703 esac
24704 fi
24705 LLVMGCC=$ac_cv_path_LLVMGCC
24706
24707 if test -n "$LLVMGCC"; then
24708   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24709 echo "${ECHO_T}$LLVMGCC" >&6
24710 else
24711   echo "$as_me:$LINENO: result: no" >&5
24712 echo "${ECHO_T}no" >&6
24713 fi
24714
24715   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24716 set dummy $LLVMGXX; ac_word=$2
24717 echo "$as_me:$LINENO: checking for $ac_word" >&5
24718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24719 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   case $LLVMGXX in
24723   [\\/]* | ?:[\\/]*)
24724   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24725   ;;
24726   *)
24727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24728 for as_dir in $PATH
24729 do
24730   IFS=$as_save_IFS
24731   test -z "$as_dir" && as_dir=.
24732   for ac_exec_ext in '' $ac_executable_extensions; do
24733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24734     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24736     break 2
24737   fi
24738 done
24739 done
24740
24741   ;;
24742 esac
24743 fi
24744 LLVMGXX=$ac_cv_path_LLVMGXX
24745
24746 if test -n "$LLVMGXX"; then
24747   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24748 echo "${ECHO_T}$LLVMGXX" >&6
24749 else
24750   echo "$as_me:$LINENO: result: no" >&5
24751 echo "${ECHO_T}no" >&6
24752 fi
24753
24754 else
24755   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24756   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24757   LLVMGCC=$LLVMGCC
24758
24759   LLVMGXX=$LLVMGXX
24760
24761 fi
24762
24763 echo "$as_me:$LINENO: checking tool compatibility" >&5
24764 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24765
24766 ICC=no
24767 IXX=no
24768 case $CC in
24769   icc*|icpc*)
24770     ICC=yes
24771     IXX=yes
24772     ;;
24773    *)
24774     ;;
24775 esac
24776
24777 if test "$GCC" != "yes" && test "$ICC" != "yes"
24778 then
24779   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24780 echo "$as_me: error: gcc|icc required but not found" >&2;}
24781    { (exit 1); exit 1; }; }
24782 fi
24783
24784 if test "$GXX" != "yes" && test "$IXX" != "yes"
24785 then
24786   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24787 echo "$as_me: error: g++|icc required but not found" >&2;}
24788    { (exit 1); exit 1; }; }
24789 fi
24790
24791 if test "$GCC" = "yes"
24792 then
24793   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24794   if test "$gccmajor" -lt "3"
24795   then
24796     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24797 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24798    { (exit 1); exit 1; }; }
24799   fi
24800 fi
24801
24802 if test -z "$llvm_cv_gnu_make_command"
24803 then
24804   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24805 echo "$as_me: error: GNU Make required but not found" >&2;}
24806    { (exit 1); exit 1; }; }
24807 fi
24808
24809 echo "$as_me:$LINENO: result: ok" >&5
24810 echo "${ECHO_T}ok" >&6
24811
24812
24813
24814 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24815 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24816 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24817   echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819   ac_check_lib_save_LIBS=$LIBS
24820 LIBS="-lelf  $LIBS"
24821 cat >conftest.$ac_ext <<_ACEOF
24822 /* confdefs.h.  */
24823 _ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h.  */
24827
24828 /* Override any gcc2 internal prototype to avoid an error.  */
24829 #ifdef __cplusplus
24830 extern "C"
24831 #endif
24832 /* We use char because int might match the return type of a gcc2
24833    builtin and then its argument prototype would still apply.  */
24834 char elf_begin ();
24835 int
24836 main ()
24837 {
24838 elf_begin ();
24839   ;
24840   return 0;
24841 }
24842 _ACEOF
24843 rm -f conftest.$ac_objext conftest$ac_exeext
24844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24845   (eval $ac_link) 2>conftest.er1
24846   ac_status=$?
24847   grep -v '^ *+' conftest.er1 >conftest.err
24848   rm -f conftest.er1
24849   cat conftest.err >&5
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); } &&
24852          { ac_try='test -z "$ac_c_werror_flag"
24853                          || test ! -s conftest.err'
24854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855   (eval $ac_try) 2>&5
24856   ac_status=$?
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); }; } &&
24859          { ac_try='test -s conftest$ac_exeext'
24860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861   (eval $ac_try) 2>&5
24862   ac_status=$?
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); }; }; then
24865   ac_cv_lib_elf_elf_begin=yes
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870 ac_cv_lib_elf_elf_begin=no
24871 fi
24872 rm -f conftest.err conftest.$ac_objext \
24873       conftest$ac_exeext conftest.$ac_ext
24874 LIBS=$ac_check_lib_save_LIBS
24875 fi
24876 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24877 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24878 if test $ac_cv_lib_elf_elf_begin = yes; then
24879   cat >>confdefs.h <<_ACEOF
24880 #define HAVE_LIBELF 1
24881 _ACEOF
24882
24883   LIBS="-lelf $LIBS"
24884
24885 fi
24886
24887
24888
24889 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24890 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24891 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24892   echo $ECHO_N "(cached) $ECHO_C" >&6
24893 else
24894   ac_func_search_save_LIBS=$LIBS
24895 ac_cv_search_lt_dlopen=no
24896 cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 /* Override any gcc2 internal prototype to avoid an error.  */
24904 #ifdef __cplusplus
24905 extern "C"
24906 #endif
24907 /* We use char because int might match the return type of a gcc2
24908    builtin and then its argument prototype would still apply.  */
24909 char lt_dlopen ();
24910 int
24911 main ()
24912 {
24913 lt_dlopen ();
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920   (eval $ac_link) 2>conftest.er1
24921   ac_status=$?
24922   grep -v '^ *+' conftest.er1 >conftest.err
24923   rm -f conftest.er1
24924   cat conftest.err >&5
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); } &&
24927          { ac_try='test -z "$ac_c_werror_flag"
24928                          || test ! -s conftest.err'
24929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930   (eval $ac_try) 2>&5
24931   ac_status=$?
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); }; } &&
24934          { ac_try='test -s conftest$ac_exeext'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ac_cv_search_lt_dlopen="none required"
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945 fi
24946 rm -f conftest.err conftest.$ac_objext \
24947       conftest$ac_exeext conftest.$ac_ext
24948 if test "$ac_cv_search_lt_dlopen" = no; then
24949   for ac_lib in ltdl; do
24950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24951     cat >conftest.$ac_ext <<_ACEOF
24952 /* confdefs.h.  */
24953 _ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h.  */
24957
24958 /* Override any gcc2 internal prototype to avoid an error.  */
24959 #ifdef __cplusplus
24960 extern "C"
24961 #endif
24962 /* We use char because int might match the return type of a gcc2
24963    builtin and then its argument prototype would still apply.  */
24964 char lt_dlopen ();
24965 int
24966 main ()
24967 {
24968 lt_dlopen ();
24969   ;
24970   return 0;
24971 }
24972 _ACEOF
24973 rm -f conftest.$ac_objext conftest$ac_exeext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975   (eval $ac_link) 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } &&
24982          { ac_try='test -z "$ac_c_werror_flag"
24983                          || test ! -s conftest.err'
24984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985   (eval $ac_try) 2>&5
24986   ac_status=$?
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); }; } &&
24989          { ac_try='test -s conftest$ac_exeext'
24990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); }; }; then
24995   ac_cv_search_lt_dlopen="-l$ac_lib"
24996 break
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001 fi
25002 rm -f conftest.err conftest.$ac_objext \
25003       conftest$ac_exeext conftest.$ac_ext
25004   done
25005 fi
25006 LIBS=$ac_func_search_save_LIBS
25007 fi
25008 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25009 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25010 if test "$ac_cv_search_lt_dlopen" != no; then
25011   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25012
25013 cat >>confdefs.h <<\_ACEOF
25014 #define HAVE_LT_DLOPEN 1
25015 _ACEOF
25016
25017 else
25018   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25019                            not be available" >&5
25020 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25021                            not be available" >&2;}
25022 fi
25023
25024
25025 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25026 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25027 if test "${ac_cv_search_dlopen+set}" = set; then
25028   echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030   ac_func_search_save_LIBS=$LIBS
25031 ac_cv_search_dlopen=no
25032 cat >conftest.$ac_ext <<_ACEOF
25033 /* confdefs.h.  */
25034 _ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h.  */
25038
25039 /* Override any gcc2 internal prototype to avoid an error.  */
25040 #ifdef __cplusplus
25041 extern "C"
25042 #endif
25043 /* We use char because int might match the return type of a gcc2
25044    builtin and then its argument prototype would still apply.  */
25045 char dlopen ();
25046 int
25047 main ()
25048 {
25049 dlopen ();
25050   ;
25051   return 0;
25052 }
25053 _ACEOF
25054 rm -f conftest.$ac_objext conftest$ac_exeext
25055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25056   (eval $ac_link) 2>conftest.er1
25057   ac_status=$?
25058   grep -v '^ *+' conftest.er1 >conftest.err
25059   rm -f conftest.er1
25060   cat conftest.err >&5
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); } &&
25063          { ac_try='test -z "$ac_c_werror_flag"
25064                          || test ! -s conftest.err'
25065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066   (eval $ac_try) 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); }; } &&
25070          { ac_try='test -s conftest$ac_exeext'
25071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072   (eval $ac_try) 2>&5
25073   ac_status=$?
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); }; }; then
25076   ac_cv_search_dlopen="none required"
25077 else
25078   echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080
25081 fi
25082 rm -f conftest.err conftest.$ac_objext \
25083       conftest$ac_exeext conftest.$ac_ext
25084 if test "$ac_cv_search_dlopen" = no; then
25085   for ac_lib in dl; do
25086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25087     cat >conftest.$ac_ext <<_ACEOF
25088 /* confdefs.h.  */
25089 _ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h.  */
25093
25094 /* Override any gcc2 internal prototype to avoid an error.  */
25095 #ifdef __cplusplus
25096 extern "C"
25097 #endif
25098 /* We use char because int might match the return type of a gcc2
25099    builtin and then its argument prototype would still apply.  */
25100 char dlopen ();
25101 int
25102 main ()
25103 {
25104 dlopen ();
25105   ;
25106   return 0;
25107 }
25108 _ACEOF
25109 rm -f conftest.$ac_objext conftest$ac_exeext
25110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25111   (eval $ac_link) 2>conftest.er1
25112   ac_status=$?
25113   grep -v '^ *+' conftest.er1 >conftest.err
25114   rm -f conftest.er1
25115   cat conftest.err >&5
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); } &&
25118          { ac_try='test -z "$ac_c_werror_flag"
25119                          || test ! -s conftest.err'
25120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121   (eval $ac_try) 2>&5
25122   ac_status=$?
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); }; } &&
25125          { ac_try='test -s conftest$ac_exeext'
25126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127   (eval $ac_try) 2>&5
25128   ac_status=$?
25129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130   (exit $ac_status); }; }; then
25131   ac_cv_search_dlopen="-l$ac_lib"
25132 break
25133 else
25134   echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25136
25137 fi
25138 rm -f conftest.err conftest.$ac_objext \
25139       conftest$ac_exeext conftest.$ac_ext
25140   done
25141 fi
25142 LIBS=$ac_func_search_save_LIBS
25143 fi
25144 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25145 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25146 if test "$ac_cv_search_dlopen" != no; then
25147   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25148
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_DLOPEN 1
25151 _ACEOF
25152
25153 else
25154   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25155 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25156 fi
25157
25158
25159 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25160 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25161 if test "${ac_cv_search_mallinfo+set}" = set; then
25162   echo $ECHO_N "(cached) $ECHO_C" >&6
25163 else
25164   ac_func_search_save_LIBS=$LIBS
25165 ac_cv_search_mallinfo=no
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h.  */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h.  */
25172
25173 /* Override any gcc2 internal prototype to avoid an error.  */
25174 #ifdef __cplusplus
25175 extern "C"
25176 #endif
25177 /* We use char because int might match the return type of a gcc2
25178    builtin and then its argument prototype would still apply.  */
25179 char mallinfo ();
25180 int
25181 main ()
25182 {
25183 mallinfo ();
25184   ;
25185   return 0;
25186 }
25187 _ACEOF
25188 rm -f conftest.$ac_objext conftest$ac_exeext
25189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25190   (eval $ac_link) 2>conftest.er1
25191   ac_status=$?
25192   grep -v '^ *+' conftest.er1 >conftest.err
25193   rm -f conftest.er1
25194   cat conftest.err >&5
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); } &&
25197          { ac_try='test -z "$ac_c_werror_flag"
25198                          || test ! -s conftest.err'
25199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200   (eval $ac_try) 2>&5
25201   ac_status=$?
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); }; } &&
25204          { ac_try='test -s conftest$ac_exeext'
25205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206   (eval $ac_try) 2>&5
25207   ac_status=$?
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); }; }; then
25210   ac_cv_search_mallinfo="none required"
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215 fi
25216 rm -f conftest.err conftest.$ac_objext \
25217       conftest$ac_exeext conftest.$ac_ext
25218 if test "$ac_cv_search_mallinfo" = no; then
25219   for ac_lib in malloc; do
25220     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25221     cat >conftest.$ac_ext <<_ACEOF
25222 /* confdefs.h.  */
25223 _ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h.  */
25227
25228 /* Override any gcc2 internal prototype to avoid an error.  */
25229 #ifdef __cplusplus
25230 extern "C"
25231 #endif
25232 /* We use char because int might match the return type of a gcc2
25233    builtin and then its argument prototype would still apply.  */
25234 char mallinfo ();
25235 int
25236 main ()
25237 {
25238 mallinfo ();
25239   ;
25240   return 0;
25241 }
25242 _ACEOF
25243 rm -f conftest.$ac_objext conftest$ac_exeext
25244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25245   (eval $ac_link) 2>conftest.er1
25246   ac_status=$?
25247   grep -v '^ *+' conftest.er1 >conftest.err
25248   rm -f conftest.er1
25249   cat conftest.err >&5
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } &&
25252          { ac_try='test -z "$ac_c_werror_flag"
25253                          || test ! -s conftest.err'
25254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255   (eval $ac_try) 2>&5
25256   ac_status=$?
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); }; } &&
25259          { ac_try='test -s conftest$ac_exeext'
25260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261   (eval $ac_try) 2>&5
25262   ac_status=$?
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); }; }; then
25265   ac_cv_search_mallinfo="-l$ac_lib"
25266 break
25267 else
25268   echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271 fi
25272 rm -f conftest.err conftest.$ac_objext \
25273       conftest$ac_exeext conftest.$ac_ext
25274   done
25275 fi
25276 LIBS=$ac_func_search_save_LIBS
25277 fi
25278 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25279 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25280 if test "$ac_cv_search_mallinfo" != no; then
25281   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25282
25283 cat >>confdefs.h <<\_ACEOF
25284 #define HAVE_MALLINFO 1
25285 _ACEOF
25286
25287 fi
25288
25289
25290
25291 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25292 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25293 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25294   echo $ECHO_N "(cached) $ECHO_C" >&6
25295 else
25296   ac_check_lib_save_LIBS=$LIBS
25297 LIBS="-lpthread  $LIBS"
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h.  */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h.  */
25304
25305 /* Override any gcc2 internal prototype to avoid an error.  */
25306 #ifdef __cplusplus
25307 extern "C"
25308 #endif
25309 /* We use char because int might match the return type of a gcc2
25310    builtin and then its argument prototype would still apply.  */
25311 char pthread_mutex_init ();
25312 int
25313 main ()
25314 {
25315 pthread_mutex_init ();
25316   ;
25317   return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322   (eval $ac_link) 2>conftest.er1
25323   ac_status=$?
25324   grep -v '^ *+' conftest.er1 >conftest.err
25325   rm -f conftest.er1
25326   cat conftest.err >&5
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); } &&
25329          { ac_try='test -z "$ac_c_werror_flag"
25330                          || test ! -s conftest.err'
25331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332   (eval $ac_try) 2>&5
25333   ac_status=$?
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); }; } &&
25336          { ac_try='test -s conftest$ac_exeext'
25337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338   (eval $ac_try) 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; }; then
25342   ac_cv_lib_pthread_pthread_mutex_init=yes
25343 else
25344   echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25346
25347 ac_cv_lib_pthread_pthread_mutex_init=no
25348 fi
25349 rm -f conftest.err conftest.$ac_objext \
25350       conftest$ac_exeext conftest.$ac_ext
25351 LIBS=$ac_check_lib_save_LIBS
25352 fi
25353 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25354 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25355 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25356   cat >>confdefs.h <<_ACEOF
25357 #define HAVE_LIBPTHREAD 1
25358 _ACEOF
25359
25360   LIBS="-lpthread $LIBS"
25361
25362 fi
25363
25364 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25365 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25366 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25367   echo $ECHO_N "(cached) $ECHO_C" >&6
25368 else
25369   ac_func_search_save_LIBS=$LIBS
25370 ac_cv_search_pthread_mutex_lock=no
25371 cat >conftest.$ac_ext <<_ACEOF
25372 /* confdefs.h.  */
25373 _ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h.  */
25377
25378 /* Override any gcc2 internal prototype to avoid an error.  */
25379 #ifdef __cplusplus
25380 extern "C"
25381 #endif
25382 /* We use char because int might match the return type of a gcc2
25383    builtin and then its argument prototype would still apply.  */
25384 char pthread_mutex_lock ();
25385 int
25386 main ()
25387 {
25388 pthread_mutex_lock ();
25389   ;
25390   return 0;
25391 }
25392 _ACEOF
25393 rm -f conftest.$ac_objext conftest$ac_exeext
25394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25395   (eval $ac_link) 2>conftest.er1
25396   ac_status=$?
25397   grep -v '^ *+' conftest.er1 >conftest.err
25398   rm -f conftest.er1
25399   cat conftest.err >&5
25400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401   (exit $ac_status); } &&
25402          { ac_try='test -z "$ac_c_werror_flag"
25403                          || test ! -s conftest.err'
25404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405   (eval $ac_try) 2>&5
25406   ac_status=$?
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); }; } &&
25409          { ac_try='test -s conftest$ac_exeext'
25410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411   (eval $ac_try) 2>&5
25412   ac_status=$?
25413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); }; }; then
25415   ac_cv_search_pthread_mutex_lock="none required"
25416 else
25417   echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25419
25420 fi
25421 rm -f conftest.err conftest.$ac_objext \
25422       conftest$ac_exeext conftest.$ac_ext
25423 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25424   for ac_lib in pthread; do
25425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25426     cat >conftest.$ac_ext <<_ACEOF
25427 /* confdefs.h.  */
25428 _ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h.  */
25432
25433 /* Override any gcc2 internal prototype to avoid an error.  */
25434 #ifdef __cplusplus
25435 extern "C"
25436 #endif
25437 /* We use char because int might match the return type of a gcc2
25438    builtin and then its argument prototype would still apply.  */
25439 char pthread_mutex_lock ();
25440 int
25441 main ()
25442 {
25443 pthread_mutex_lock ();
25444   ;
25445   return 0;
25446 }
25447 _ACEOF
25448 rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25450   (eval $ac_link) 2>conftest.er1
25451   ac_status=$?
25452   grep -v '^ *+' conftest.er1 >conftest.err
25453   rm -f conftest.er1
25454   cat conftest.err >&5
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } &&
25457          { ac_try='test -z "$ac_c_werror_flag"
25458                          || test ! -s conftest.err'
25459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460   (eval $ac_try) 2>&5
25461   ac_status=$?
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); }; } &&
25464          { ac_try='test -s conftest$ac_exeext'
25465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466   (eval $ac_try) 2>&5
25467   ac_status=$?
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); }; }; then
25470   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25471 break
25472 else
25473   echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25475
25476 fi
25477 rm -f conftest.err conftest.$ac_objext \
25478       conftest$ac_exeext conftest.$ac_ext
25479   done
25480 fi
25481 LIBS=$ac_func_search_save_LIBS
25482 fi
25483 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25484 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25485 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25486   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25487
25488 cat >>confdefs.h <<\_ACEOF
25489 #define HAVE_PTHREAD_MUTEX_LOCK 1
25490 _ACEOF
25491
25492 fi
25493
25494
25495
25496
25497
25498
25499
25500
25501 ac_header_dirent=no
25502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25503   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25504 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25507   echo $ECHO_N "(cached) $ECHO_C" >&6
25508 else
25509   cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515 #include <sys/types.h>
25516 #include <$ac_hdr>
25517
25518 int
25519 main ()
25520 {
25521 if ((DIR *) 0)
25522 return 0;
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 rm -f conftest.$ac_objext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25529   (eval $ac_compile) 2>conftest.er1
25530   ac_status=$?
25531   grep -v '^ *+' conftest.er1 >conftest.err
25532   rm -f conftest.er1
25533   cat conftest.err >&5
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); } &&
25536          { ac_try='test -z "$ac_c_werror_flag"
25537                          || test ! -s conftest.err'
25538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539   (eval $ac_try) 2>&5
25540   ac_status=$?
25541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); }; } &&
25543          { ac_try='test -s conftest.$ac_objext'
25544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545   (eval $ac_try) 2>&5
25546   ac_status=$?
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); }; }; then
25549   eval "$as_ac_Header=yes"
25550 else
25551   echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554 eval "$as_ac_Header=no"
25555 fi
25556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25557 fi
25558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25561   cat >>confdefs.h <<_ACEOF
25562 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25563 _ACEOF
25564
25565 ac_header_dirent=$ac_hdr; break
25566 fi
25567
25568 done
25569 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25570 if test $ac_header_dirent = dirent.h; then
25571   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25572 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25573 if test "${ac_cv_search_opendir+set}" = set; then
25574   echo $ECHO_N "(cached) $ECHO_C" >&6
25575 else
25576   ac_func_search_save_LIBS=$LIBS
25577 ac_cv_search_opendir=no
25578 cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584
25585 /* Override any gcc2 internal prototype to avoid an error.  */
25586 #ifdef __cplusplus
25587 extern "C"
25588 #endif
25589 /* We use char because int might match the return type of a gcc2
25590    builtin and then its argument prototype would still apply.  */
25591 char opendir ();
25592 int
25593 main ()
25594 {
25595 opendir ();
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25602   (eval $ac_link) 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } &&
25609          { ac_try='test -z "$ac_c_werror_flag"
25610                          || test ! -s conftest.err'
25611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612   (eval $ac_try) 2>&5
25613   ac_status=$?
25614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615   (exit $ac_status); }; } &&
25616          { ac_try='test -s conftest$ac_exeext'
25617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618   (eval $ac_try) 2>&5
25619   ac_status=$?
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); }; }; then
25622   ac_cv_search_opendir="none required"
25623 else
25624   echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25626
25627 fi
25628 rm -f conftest.err conftest.$ac_objext \
25629       conftest$ac_exeext conftest.$ac_ext
25630 if test "$ac_cv_search_opendir" = no; then
25631   for ac_lib in dir; do
25632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25633     cat >conftest.$ac_ext <<_ACEOF
25634 /* confdefs.h.  */
25635 _ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h.  */
25639
25640 /* Override any gcc2 internal prototype to avoid an error.  */
25641 #ifdef __cplusplus
25642 extern "C"
25643 #endif
25644 /* We use char because int might match the return type of a gcc2
25645    builtin and then its argument prototype would still apply.  */
25646 char opendir ();
25647 int
25648 main ()
25649 {
25650 opendir ();
25651   ;
25652   return 0;
25653 }
25654 _ACEOF
25655 rm -f conftest.$ac_objext conftest$ac_exeext
25656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25657   (eval $ac_link) 2>conftest.er1
25658   ac_status=$?
25659   grep -v '^ *+' conftest.er1 >conftest.err
25660   rm -f conftest.er1
25661   cat conftest.err >&5
25662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663   (exit $ac_status); } &&
25664          { ac_try='test -z "$ac_c_werror_flag"
25665                          || test ! -s conftest.err'
25666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667   (eval $ac_try) 2>&5
25668   ac_status=$?
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); }; } &&
25671          { ac_try='test -s conftest$ac_exeext'
25672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673   (eval $ac_try) 2>&5
25674   ac_status=$?
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); }; }; then
25677   ac_cv_search_opendir="-l$ac_lib"
25678 break
25679 else
25680   echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25682
25683 fi
25684 rm -f conftest.err conftest.$ac_objext \
25685       conftest$ac_exeext conftest.$ac_ext
25686   done
25687 fi
25688 LIBS=$ac_func_search_save_LIBS
25689 fi
25690 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25691 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25692 if test "$ac_cv_search_opendir" != no; then
25693   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25694
25695 fi
25696
25697 else
25698   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25700 if test "${ac_cv_search_opendir+set}" = set; then
25701   echo $ECHO_N "(cached) $ECHO_C" >&6
25702 else
25703   ac_func_search_save_LIBS=$LIBS
25704 ac_cv_search_opendir=no
25705 cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711
25712 /* Override any gcc2 internal prototype to avoid an error.  */
25713 #ifdef __cplusplus
25714 extern "C"
25715 #endif
25716 /* We use char because int might match the return type of a gcc2
25717    builtin and then its argument prototype would still apply.  */
25718 char opendir ();
25719 int
25720 main ()
25721 {
25722 opendir ();
25723   ;
25724   return 0;
25725 }
25726 _ACEOF
25727 rm -f conftest.$ac_objext conftest$ac_exeext
25728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25729   (eval $ac_link) 2>conftest.er1
25730   ac_status=$?
25731   grep -v '^ *+' conftest.er1 >conftest.err
25732   rm -f conftest.er1
25733   cat conftest.err >&5
25734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); } &&
25736          { ac_try='test -z "$ac_c_werror_flag"
25737                          || test ! -s conftest.err'
25738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739   (eval $ac_try) 2>&5
25740   ac_status=$?
25741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742   (exit $ac_status); }; } &&
25743          { ac_try='test -s conftest$ac_exeext'
25744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745   (eval $ac_try) 2>&5
25746   ac_status=$?
25747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748   (exit $ac_status); }; }; then
25749   ac_cv_search_opendir="none required"
25750 else
25751   echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25753
25754 fi
25755 rm -f conftest.err conftest.$ac_objext \
25756       conftest$ac_exeext conftest.$ac_ext
25757 if test "$ac_cv_search_opendir" = no; then
25758   for ac_lib in x; do
25759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25760     cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h.  */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h.  */
25766
25767 /* Override any gcc2 internal prototype to avoid an error.  */
25768 #ifdef __cplusplus
25769 extern "C"
25770 #endif
25771 /* We use char because int might match the return type of a gcc2
25772    builtin and then its argument prototype would still apply.  */
25773 char opendir ();
25774 int
25775 main ()
25776 {
25777 opendir ();
25778   ;
25779   return 0;
25780 }
25781 _ACEOF
25782 rm -f conftest.$ac_objext conftest$ac_exeext
25783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25784   (eval $ac_link) 2>conftest.er1
25785   ac_status=$?
25786   grep -v '^ *+' conftest.er1 >conftest.err
25787   rm -f conftest.er1
25788   cat conftest.err >&5
25789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790   (exit $ac_status); } &&
25791          { ac_try='test -z "$ac_c_werror_flag"
25792                          || test ! -s conftest.err'
25793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794   (eval $ac_try) 2>&5
25795   ac_status=$?
25796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797   (exit $ac_status); }; } &&
25798          { ac_try='test -s conftest$ac_exeext'
25799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800   (eval $ac_try) 2>&5
25801   ac_status=$?
25802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); }; }; then
25804   ac_cv_search_opendir="-l$ac_lib"
25805 break
25806 else
25807   echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25809
25810 fi
25811 rm -f conftest.err conftest.$ac_objext \
25812       conftest$ac_exeext conftest.$ac_ext
25813   done
25814 fi
25815 LIBS=$ac_func_search_save_LIBS
25816 fi
25817 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25818 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25819 if test "$ac_cv_search_opendir" != no; then
25820   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25821
25822 fi
25823
25824 fi
25825
25826 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25827 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25828 if test "${ac_cv_header_mmap_anon+set}" = set; then
25829   echo $ECHO_N "(cached) $ECHO_C" >&6
25830 else
25831    ac_ext=c
25832 ac_cpp='$CPP $CPPFLAGS'
25833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25836
25837   cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843 #include <sys/mman.h>
25844 #include <unistd.h>
25845 #include <fcntl.h>
25846 int
25847 main ()
25848 {
25849 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25850   ;
25851   return 0;
25852 }
25853 _ACEOF
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856   (eval $ac_compile) 2>conftest.er1
25857   ac_status=$?
25858   grep -v '^ *+' conftest.er1 >conftest.err
25859   rm -f conftest.er1
25860   cat conftest.err >&5
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); } &&
25863          { ac_try='test -z "$ac_c_werror_flag"
25864                          || test ! -s conftest.err'
25865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866   (eval $ac_try) 2>&5
25867   ac_status=$?
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); }; } &&
25870          { ac_try='test -s conftest.$ac_objext'
25871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872   (eval $ac_try) 2>&5
25873   ac_status=$?
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); }; }; then
25876   ac_cv_header_mmap_anon=yes
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881 ac_cv_header_mmap_anon=no
25882 fi
25883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884   ac_ext=c
25885 ac_cpp='$CPP $CPPFLAGS'
25886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25889
25890
25891 fi
25892 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25893 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25894 if test "$ac_cv_header_mmap_anon" = yes; then
25895
25896 cat >>confdefs.h <<\_ACEOF
25897 #define HAVE_MMAP_ANONYMOUS 1
25898 _ACEOF
25899
25900 fi
25901
25902 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25903 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25904 if test "${ac_cv_header_stat_broken+set}" = set; then
25905   echo $ECHO_N "(cached) $ECHO_C" >&6
25906 else
25907   cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913 #include <sys/types.h>
25914 #include <sys/stat.h>
25915
25916 #if defined(S_ISBLK) && defined(S_IFDIR)
25917 # if S_ISBLK (S_IFDIR)
25918 You lose.
25919 # endif
25920 #endif
25921
25922 #if defined(S_ISBLK) && defined(S_IFCHR)
25923 # if S_ISBLK (S_IFCHR)
25924 You lose.
25925 # endif
25926 #endif
25927
25928 #if defined(S_ISLNK) && defined(S_IFREG)
25929 # if S_ISLNK (S_IFREG)
25930 You lose.
25931 # endif
25932 #endif
25933
25934 #if defined(S_ISSOCK) && defined(S_IFREG)
25935 # if S_ISSOCK (S_IFREG)
25936 You lose.
25937 # endif
25938 #endif
25939
25940 _ACEOF
25941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25942   $EGREP "You lose" >/dev/null 2>&1; then
25943   ac_cv_header_stat_broken=yes
25944 else
25945   ac_cv_header_stat_broken=no
25946 fi
25947 rm -f conftest*
25948
25949 fi
25950 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25952 if test $ac_cv_header_stat_broken = yes; then
25953
25954 cat >>confdefs.h <<\_ACEOF
25955 #define STAT_MACROS_BROKEN 1
25956 _ACEOF
25957
25958 fi
25959
25960 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25962 if test "${ac_cv_header_stdc+set}" = set; then
25963   echo $ECHO_N "(cached) $ECHO_C" >&6
25964 else
25965   cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 #include <stdlib.h>
25972 #include <stdarg.h>
25973 #include <string.h>
25974 #include <float.h>
25975
25976 int
25977 main ()
25978 {
25979
25980   ;
25981   return 0;
25982 }
25983 _ACEOF
25984 rm -f conftest.$ac_objext
25985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25986   (eval $ac_compile) 2>conftest.er1
25987   ac_status=$?
25988   grep -v '^ *+' conftest.er1 >conftest.err
25989   rm -f conftest.er1
25990   cat conftest.err >&5
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); } &&
25993          { ac_try='test -z "$ac_c_werror_flag"
25994                          || test ! -s conftest.err'
25995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996   (eval $ac_try) 2>&5
25997   ac_status=$?
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); }; } &&
26000          { ac_try='test -s conftest.$ac_objext'
26001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002   (eval $ac_try) 2>&5
26003   ac_status=$?
26004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); }; }; then
26006   ac_cv_header_stdc=yes
26007 else
26008   echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.$ac_ext >&5
26010
26011 ac_cv_header_stdc=no
26012 fi
26013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26014
26015 if test $ac_cv_header_stdc = yes; then
26016   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26017   cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 #include <string.h>
26024
26025 _ACEOF
26026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26027   $EGREP "memchr" >/dev/null 2>&1; then
26028   :
26029 else
26030   ac_cv_header_stdc=no
26031 fi
26032 rm -f conftest*
26033
26034 fi
26035
26036 if test $ac_cv_header_stdc = yes; then
26037   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26038   cat >conftest.$ac_ext <<_ACEOF
26039 /* confdefs.h.  */
26040 _ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h.  */
26044 #include <stdlib.h>
26045
26046 _ACEOF
26047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26048   $EGREP "free" >/dev/null 2>&1; then
26049   :
26050 else
26051   ac_cv_header_stdc=no
26052 fi
26053 rm -f conftest*
26054
26055 fi
26056
26057 if test $ac_cv_header_stdc = yes; then
26058   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26059   if test "$cross_compiling" = yes; then
26060   :
26061 else
26062   cat >conftest.$ac_ext <<_ACEOF
26063 /* confdefs.h.  */
26064 _ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h.  */
26068 #include <ctype.h>
26069 #if ((' ' & 0x0FF) == 0x020)
26070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26072 #else
26073 # define ISLOWER(c) \
26074                    (('a' <= (c) && (c) <= 'i') \
26075                      || ('j' <= (c) && (c) <= 'r') \
26076                      || ('s' <= (c) && (c) <= 'z'))
26077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26078 #endif
26079
26080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26081 int
26082 main ()
26083 {
26084   int i;
26085   for (i = 0; i < 256; i++)
26086     if (XOR (islower (i), ISLOWER (i))
26087         || toupper (i) != TOUPPER (i))
26088       exit(2);
26089   exit (0);
26090 }
26091 _ACEOF
26092 rm -f conftest$ac_exeext
26093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26094   (eval $ac_link) 2>&5
26095   ac_status=$?
26096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099   (eval $ac_try) 2>&5
26100   ac_status=$?
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); }; }; then
26103   :
26104 else
26105   echo "$as_me: program exited with status $ac_status" >&5
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 ( exit $ac_status )
26110 ac_cv_header_stdc=no
26111 fi
26112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26113 fi
26114 fi
26115 fi
26116 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26117 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26118 if test $ac_cv_header_stdc = yes; then
26119
26120 cat >>confdefs.h <<\_ACEOF
26121 #define STDC_HEADERS 1
26122 _ACEOF
26123
26124 fi
26125
26126 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26127 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26128 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26129   echo $ECHO_N "(cached) $ECHO_C" >&6
26130 else
26131   cat >conftest.$ac_ext <<_ACEOF
26132 /* confdefs.h.  */
26133 _ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h.  */
26137 #include <sys/types.h>
26138 #include <sys/wait.h>
26139 #ifndef WEXITSTATUS
26140 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26141 #endif
26142 #ifndef WIFEXITED
26143 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26144 #endif
26145
26146 int
26147 main ()
26148 {
26149   int s;
26150   wait (&s);
26151   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26152   ;
26153   return 0;
26154 }
26155 _ACEOF
26156 rm -f conftest.$ac_objext
26157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26158   (eval $ac_compile) 2>conftest.er1
26159   ac_status=$?
26160   grep -v '^ *+' conftest.er1 >conftest.err
26161   rm -f conftest.er1
26162   cat conftest.err >&5
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); } &&
26165          { ac_try='test -z "$ac_c_werror_flag"
26166                          || test ! -s conftest.err'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; } &&
26172          { ac_try='test -s conftest.$ac_objext'
26173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174   (eval $ac_try) 2>&5
26175   ac_status=$?
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); }; }; then
26178   ac_cv_header_sys_wait_h=yes
26179 else
26180   echo "$as_me: failed program was:" >&5
26181 sed 's/^/| /' conftest.$ac_ext >&5
26182
26183 ac_cv_header_sys_wait_h=no
26184 fi
26185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26186 fi
26187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26188 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26189 if test $ac_cv_header_sys_wait_h = yes; then
26190
26191 cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_SYS_WAIT_H 1
26193 _ACEOF
26194
26195 fi
26196
26197 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26198 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26199 if test "${ac_cv_header_time+set}" = set; then
26200   echo $ECHO_N "(cached) $ECHO_C" >&6
26201 else
26202   cat >conftest.$ac_ext <<_ACEOF
26203 /* confdefs.h.  */
26204 _ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h.  */
26208 #include <sys/types.h>
26209 #include <sys/time.h>
26210 #include <time.h>
26211
26212 int
26213 main ()
26214 {
26215 if ((struct tm *) 0)
26216 return 0;
26217   ;
26218   return 0;
26219 }
26220 _ACEOF
26221 rm -f conftest.$ac_objext
26222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26223   (eval $ac_compile) 2>conftest.er1
26224   ac_status=$?
26225   grep -v '^ *+' conftest.er1 >conftest.err
26226   rm -f conftest.er1
26227   cat conftest.err >&5
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); } &&
26230          { ac_try='test -z "$ac_c_werror_flag"
26231                          || test ! -s conftest.err'
26232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233   (eval $ac_try) 2>&5
26234   ac_status=$?
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); }; } &&
26237          { ac_try='test -s conftest.$ac_objext'
26238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239   (eval $ac_try) 2>&5
26240   ac_status=$?
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); }; }; then
26243   ac_cv_header_time=yes
26244 else
26245   echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26247
26248 ac_cv_header_time=no
26249 fi
26250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26251 fi
26252 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26253 echo "${ECHO_T}$ac_cv_header_time" >&6
26254 if test $ac_cv_header_time = yes; then
26255
26256 cat >>confdefs.h <<\_ACEOF
26257 #define TIME_WITH_SYS_TIME 1
26258 _ACEOF
26259
26260 fi
26261
26262
26263
26264
26265
26266
26267
26268
26269 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26270 do
26271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26273   echo "$as_me:$LINENO: checking for $ac_header" >&5
26274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26276   echo $ECHO_N "(cached) $ECHO_C" >&6
26277 fi
26278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26280 else
26281   # Is the header compilable?
26282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26284 cat >conftest.$ac_ext <<_ACEOF
26285 /* confdefs.h.  */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h.  */
26290 $ac_includes_default
26291 #include <$ac_header>
26292 _ACEOF
26293 rm -f conftest.$ac_objext
26294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26295   (eval $ac_compile) 2>conftest.er1
26296   ac_status=$?
26297   grep -v '^ *+' conftest.er1 >conftest.err
26298   rm -f conftest.er1
26299   cat conftest.err >&5
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); } &&
26302          { ac_try='test -z "$ac_c_werror_flag"
26303                          || test ! -s conftest.err'
26304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305   (eval $ac_try) 2>&5
26306   ac_status=$?
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); }; } &&
26309          { ac_try='test -s conftest.$ac_objext'
26310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311   (eval $ac_try) 2>&5
26312   ac_status=$?
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); }; }; then
26315   ac_header_compiler=yes
26316 else
26317   echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320 ac_header_compiler=no
26321 fi
26322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26324 echo "${ECHO_T}$ac_header_compiler" >&6
26325
26326 # Is the header present?
26327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26329 cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h.  */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h.  */
26335 #include <$ac_header>
26336 _ACEOF
26337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26339   ac_status=$?
26340   grep -v '^ *+' conftest.er1 >conftest.err
26341   rm -f conftest.er1
26342   cat conftest.err >&5
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } >/dev/null; then
26345   if test -s conftest.err; then
26346     ac_cpp_err=$ac_c_preproc_warn_flag
26347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26348   else
26349     ac_cpp_err=
26350   fi
26351 else
26352   ac_cpp_err=yes
26353 fi
26354 if test -z "$ac_cpp_err"; then
26355   ac_header_preproc=yes
26356 else
26357   echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26359
26360   ac_header_preproc=no
26361 fi
26362 rm -f conftest.err conftest.$ac_ext
26363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26364 echo "${ECHO_T}$ac_header_preproc" >&6
26365
26366 # So?  What about this header?
26367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26368   yes:no: )
26369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26373     ac_header_preproc=yes
26374     ;;
26375   no:yes:* )
26376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26388     (
26389       cat <<\_ASBOX
26390 ## ----------------------------------- ##
26391 ## Report this to llvmbugs@cs.uiuc.edu ##
26392 ## ----------------------------------- ##
26393 _ASBOX
26394     ) |
26395       sed "s/^/$as_me: WARNING:     /" >&2
26396     ;;
26397 esac
26398 echo "$as_me:$LINENO: checking for $ac_header" >&5
26399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26401   echo $ECHO_N "(cached) $ECHO_C" >&6
26402 else
26403   eval "$as_ac_Header=\$ac_header_preproc"
26404 fi
26405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26407
26408 fi
26409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26410   cat >>confdefs.h <<_ACEOF
26411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26412 _ACEOF
26413
26414 fi
26415
26416 done
26417
26418
26419
26420
26421
26422
26423
26424 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26425 do
26426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26428   echo "$as_me:$LINENO: checking for $ac_header" >&5
26429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26431   echo $ECHO_N "(cached) $ECHO_C" >&6
26432 fi
26433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26435 else
26436   # Is the header compilable?
26437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445 $ac_includes_default
26446 #include <$ac_header>
26447 _ACEOF
26448 rm -f conftest.$ac_objext
26449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26450   (eval $ac_compile) 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } &&
26457          { ac_try='test -z "$ac_c_werror_flag"
26458                          || test ! -s conftest.err'
26459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460   (eval $ac_try) 2>&5
26461   ac_status=$?
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); }; } &&
26464          { ac_try='test -s conftest.$ac_objext'
26465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466   (eval $ac_try) 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; }; then
26470   ac_header_compiler=yes
26471 else
26472   echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26474
26475 ac_header_compiler=no
26476 fi
26477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26479 echo "${ECHO_T}$ac_header_compiler" >&6
26480
26481 # Is the header present?
26482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26484 cat >conftest.$ac_ext <<_ACEOF
26485 /* confdefs.h.  */
26486 _ACEOF
26487 cat confdefs.h >>conftest.$ac_ext
26488 cat >>conftest.$ac_ext <<_ACEOF
26489 /* end confdefs.h.  */
26490 #include <$ac_header>
26491 _ACEOF
26492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26494   ac_status=$?
26495   grep -v '^ *+' conftest.er1 >conftest.err
26496   rm -f conftest.er1
26497   cat conftest.err >&5
26498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); } >/dev/null; then
26500   if test -s conftest.err; then
26501     ac_cpp_err=$ac_c_preproc_warn_flag
26502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26503   else
26504     ac_cpp_err=
26505   fi
26506 else
26507   ac_cpp_err=yes
26508 fi
26509 if test -z "$ac_cpp_err"; then
26510   ac_header_preproc=yes
26511 else
26512   echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515   ac_header_preproc=no
26516 fi
26517 rm -f conftest.err conftest.$ac_ext
26518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26519 echo "${ECHO_T}$ac_header_preproc" >&6
26520
26521 # So?  What about this header?
26522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26523   yes:no: )
26524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26528     ac_header_preproc=yes
26529     ;;
26530   no:yes:* )
26531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26543     (
26544       cat <<\_ASBOX
26545 ## ----------------------------------- ##
26546 ## Report this to llvmbugs@cs.uiuc.edu ##
26547 ## ----------------------------------- ##
26548 _ASBOX
26549     ) |
26550       sed "s/^/$as_me: WARNING:     /" >&2
26551     ;;
26552 esac
26553 echo "$as_me:$LINENO: checking for $ac_header" >&5
26554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26556   echo $ECHO_N "(cached) $ECHO_C" >&6
26557 else
26558   eval "$as_ac_Header=\$ac_header_preproc"
26559 fi
26560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26562
26563 fi
26564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26565   cat >>confdefs.h <<_ACEOF
26566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26567 _ACEOF
26568
26569 fi
26570
26571 done
26572
26573
26574 for ac_header in windows.h
26575 do
26576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26578   echo "$as_me:$LINENO: checking for $ac_header" >&5
26579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26581   echo $ECHO_N "(cached) $ECHO_C" >&6
26582 fi
26583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26585 else
26586   # Is the header compilable?
26587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26589 cat >conftest.$ac_ext <<_ACEOF
26590 /* confdefs.h.  */
26591 _ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h.  */
26595 $ac_includes_default
26596 #include <$ac_header>
26597 _ACEOF
26598 rm -f conftest.$ac_objext
26599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26600   (eval $ac_compile) 2>conftest.er1
26601   ac_status=$?
26602   grep -v '^ *+' conftest.er1 >conftest.err
26603   rm -f conftest.er1
26604   cat conftest.err >&5
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); } &&
26607          { ac_try='test -z "$ac_c_werror_flag"
26608                          || test ! -s conftest.err'
26609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610   (eval $ac_try) 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; } &&
26614          { ac_try='test -s conftest.$ac_objext'
26615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616   (eval $ac_try) 2>&5
26617   ac_status=$?
26618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619   (exit $ac_status); }; }; then
26620   ac_header_compiler=yes
26621 else
26622   echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26624
26625 ac_header_compiler=no
26626 fi
26627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26629 echo "${ECHO_T}$ac_header_compiler" >&6
26630
26631 # Is the header present?
26632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26634 cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640 #include <$ac_header>
26641 _ACEOF
26642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26644   ac_status=$?
26645   grep -v '^ *+' conftest.er1 >conftest.err
26646   rm -f conftest.er1
26647   cat conftest.err >&5
26648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649   (exit $ac_status); } >/dev/null; then
26650   if test -s conftest.err; then
26651     ac_cpp_err=$ac_c_preproc_warn_flag
26652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26653   else
26654     ac_cpp_err=
26655   fi
26656 else
26657   ac_cpp_err=yes
26658 fi
26659 if test -z "$ac_cpp_err"; then
26660   ac_header_preproc=yes
26661 else
26662   echo "$as_me: failed program was:" >&5
26663 sed 's/^/| /' conftest.$ac_ext >&5
26664
26665   ac_header_preproc=no
26666 fi
26667 rm -f conftest.err conftest.$ac_ext
26668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26669 echo "${ECHO_T}$ac_header_preproc" >&6
26670
26671 # So?  What about this header?
26672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26673   yes:no: )
26674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26678     ac_header_preproc=yes
26679     ;;
26680   no:yes:* )
26681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26683     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26684 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26685     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26687     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26688 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26691     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26693     (
26694       cat <<\_ASBOX
26695 ## ----------------------------------- ##
26696 ## Report this to llvmbugs@cs.uiuc.edu ##
26697 ## ----------------------------------- ##
26698 _ASBOX
26699     ) |
26700       sed "s/^/$as_me: WARNING:     /" >&2
26701     ;;
26702 esac
26703 echo "$as_me:$LINENO: checking for $ac_header" >&5
26704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26706   echo $ECHO_N "(cached) $ECHO_C" >&6
26707 else
26708   eval "$as_ac_Header=\$ac_header_preproc"
26709 fi
26710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26712
26713 fi
26714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26715   cat >>confdefs.h <<_ACEOF
26716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26717 _ACEOF
26718
26719 fi
26720
26721 done
26722
26723
26724
26725
26726
26727
26728 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26729 do
26730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26732   echo "$as_me:$LINENO: checking for $ac_header" >&5
26733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26735   echo $ECHO_N "(cached) $ECHO_C" >&6
26736 fi
26737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26739 else
26740   # Is the header compilable?
26741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26743 cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749 $ac_includes_default
26750 #include <$ac_header>
26751 _ACEOF
26752 rm -f conftest.$ac_objext
26753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26754   (eval $ac_compile) 2>conftest.er1
26755   ac_status=$?
26756   grep -v '^ *+' conftest.er1 >conftest.err
26757   rm -f conftest.er1
26758   cat conftest.err >&5
26759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760   (exit $ac_status); } &&
26761          { ac_try='test -z "$ac_c_werror_flag"
26762                          || test ! -s conftest.err'
26763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764   (eval $ac_try) 2>&5
26765   ac_status=$?
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); }; } &&
26768          { ac_try='test -s conftest.$ac_objext'
26769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770   (eval $ac_try) 2>&5
26771   ac_status=$?
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); }; }; then
26774   ac_header_compiler=yes
26775 else
26776   echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26778
26779 ac_header_compiler=no
26780 fi
26781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26783 echo "${ECHO_T}$ac_header_compiler" >&6
26784
26785 # Is the header present?
26786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26788 cat >conftest.$ac_ext <<_ACEOF
26789 /* confdefs.h.  */
26790 _ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h.  */
26794 #include <$ac_header>
26795 _ACEOF
26796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26798   ac_status=$?
26799   grep -v '^ *+' conftest.er1 >conftest.err
26800   rm -f conftest.er1
26801   cat conftest.err >&5
26802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803   (exit $ac_status); } >/dev/null; then
26804   if test -s conftest.err; then
26805     ac_cpp_err=$ac_c_preproc_warn_flag
26806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26807   else
26808     ac_cpp_err=
26809   fi
26810 else
26811   ac_cpp_err=yes
26812 fi
26813 if test -z "$ac_cpp_err"; then
26814   ac_header_preproc=yes
26815 else
26816   echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26818
26819   ac_header_preproc=no
26820 fi
26821 rm -f conftest.err conftest.$ac_ext
26822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26823 echo "${ECHO_T}$ac_header_preproc" >&6
26824
26825 # So?  What about this header?
26826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26827   yes:no: )
26828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26832     ac_header_preproc=yes
26833     ;;
26834   no:yes:* )
26835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26847     (
26848       cat <<\_ASBOX
26849 ## ----------------------------------- ##
26850 ## Report this to llvmbugs@cs.uiuc.edu ##
26851 ## ----------------------------------- ##
26852 _ASBOX
26853     ) |
26854       sed "s/^/$as_me: WARNING:     /" >&2
26855     ;;
26856 esac
26857 echo "$as_me:$LINENO: checking for $ac_header" >&5
26858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26860   echo $ECHO_N "(cached) $ECHO_C" >&6
26861 else
26862   eval "$as_ac_Header=\$ac_header_preproc"
26863 fi
26864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26866
26867 fi
26868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26869   cat >>confdefs.h <<_ACEOF
26870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26871 _ACEOF
26872
26873 fi
26874
26875 done
26876
26877
26878
26879 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26880 do
26881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883   echo "$as_me:$LINENO: checking for $ac_header" >&5
26884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26886   echo $ECHO_N "(cached) $ECHO_C" >&6
26887 fi
26888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26890 else
26891   # Is the header compilable?
26892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26894 cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h.  */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h.  */
26900 $ac_includes_default
26901 #include <$ac_header>
26902 _ACEOF
26903 rm -f conftest.$ac_objext
26904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26905   (eval $ac_compile) 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } &&
26912          { ac_try='test -z "$ac_c_werror_flag"
26913                          || test ! -s conftest.err'
26914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915   (eval $ac_try) 2>&5
26916   ac_status=$?
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); }; } &&
26919          { ac_try='test -s conftest.$ac_objext'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; }; then
26925   ac_header_compiler=yes
26926 else
26927   echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 ac_header_compiler=no
26931 fi
26932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26934 echo "${ECHO_T}$ac_header_compiler" >&6
26935
26936 # Is the header present?
26937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26939 cat >conftest.$ac_ext <<_ACEOF
26940 /* confdefs.h.  */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h.  */
26945 #include <$ac_header>
26946 _ACEOF
26947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } >/dev/null; then
26955   if test -s conftest.err; then
26956     ac_cpp_err=$ac_c_preproc_warn_flag
26957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26958   else
26959     ac_cpp_err=
26960   fi
26961 else
26962   ac_cpp_err=yes
26963 fi
26964 if test -z "$ac_cpp_err"; then
26965   ac_header_preproc=yes
26966 else
26967   echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970   ac_header_preproc=no
26971 fi
26972 rm -f conftest.err conftest.$ac_ext
26973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26974 echo "${ECHO_T}$ac_header_preproc" >&6
26975
26976 # So?  What about this header?
26977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26978   yes:no: )
26979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26983     ac_header_preproc=yes
26984     ;;
26985   no:yes:* )
26986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26998     (
26999       cat <<\_ASBOX
27000 ## ----------------------------------- ##
27001 ## Report this to llvmbugs@cs.uiuc.edu ##
27002 ## ----------------------------------- ##
27003 _ASBOX
27004     ) |
27005       sed "s/^/$as_me: WARNING:     /" >&2
27006     ;;
27007 esac
27008 echo "$as_me:$LINENO: checking for $ac_header" >&5
27009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27011   echo $ECHO_N "(cached) $ECHO_C" >&6
27012 else
27013   eval "$as_ac_Header=\$ac_header_preproc"
27014 fi
27015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27017
27018 fi
27019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27020   cat >>confdefs.h <<_ACEOF
27021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27022 _ACEOF
27023
27024 fi
27025
27026 done
27027
27028
27029
27030 echo "$as_me:$LINENO: checking for pid_t" >&5
27031 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27032 if test "${ac_cv_type_pid_t+set}" = set; then
27033   echo $ECHO_N "(cached) $ECHO_C" >&6
27034 else
27035   cat >conftest.$ac_ext <<_ACEOF
27036 /* confdefs.h.  */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h.  */
27041 $ac_includes_default
27042 int
27043 main ()
27044 {
27045 if ((pid_t *) 0)
27046   return 0;
27047 if (sizeof (pid_t))
27048   return 0;
27049   ;
27050   return 0;
27051 }
27052 _ACEOF
27053 rm -f conftest.$ac_objext
27054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27055   (eval $ac_compile) 2>conftest.er1
27056   ac_status=$?
27057   grep -v '^ *+' conftest.er1 >conftest.err
27058   rm -f conftest.er1
27059   cat conftest.err >&5
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); } &&
27062          { ac_try='test -z "$ac_c_werror_flag"
27063                          || test ! -s conftest.err'
27064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065   (eval $ac_try) 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); }; } &&
27069          { ac_try='test -s conftest.$ac_objext'
27070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071   (eval $ac_try) 2>&5
27072   ac_status=$?
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); }; }; then
27075   ac_cv_type_pid_t=yes
27076 else
27077   echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27079
27080 ac_cv_type_pid_t=no
27081 fi
27082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27083 fi
27084 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27085 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27086 if test $ac_cv_type_pid_t = yes; then
27087   :
27088 else
27089
27090 cat >>confdefs.h <<_ACEOF
27091 #define pid_t int
27092 _ACEOF
27093
27094 fi
27095
27096 echo "$as_me:$LINENO: checking for size_t" >&5
27097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27098 if test "${ac_cv_type_size_t+set}" = set; then
27099   echo $ECHO_N "(cached) $ECHO_C" >&6
27100 else
27101   cat >conftest.$ac_ext <<_ACEOF
27102 /* confdefs.h.  */
27103 _ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h.  */
27107 $ac_includes_default
27108 int
27109 main ()
27110 {
27111 if ((size_t *) 0)
27112   return 0;
27113 if (sizeof (size_t))
27114   return 0;
27115   ;
27116   return 0;
27117 }
27118 _ACEOF
27119 rm -f conftest.$ac_objext
27120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27121   (eval $ac_compile) 2>conftest.er1
27122   ac_status=$?
27123   grep -v '^ *+' conftest.er1 >conftest.err
27124   rm -f conftest.er1
27125   cat conftest.err >&5
27126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127   (exit $ac_status); } &&
27128          { ac_try='test -z "$ac_c_werror_flag"
27129                          || test ! -s conftest.err'
27130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131   (eval $ac_try) 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; } &&
27135          { ac_try='test -s conftest.$ac_objext'
27136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137   (eval $ac_try) 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; }; then
27141   ac_cv_type_size_t=yes
27142 else
27143   echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27145
27146 ac_cv_type_size_t=no
27147 fi
27148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27149 fi
27150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27152 if test $ac_cv_type_size_t = yes; then
27153   :
27154 else
27155
27156 cat >>confdefs.h <<_ACEOF
27157 #define size_t unsigned
27158 _ACEOF
27159
27160 fi
27161
27162 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27163 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27164 if test "${ac_cv_type_signal+set}" = set; then
27165   echo $ECHO_N "(cached) $ECHO_C" >&6
27166 else
27167   cat >conftest.$ac_ext <<_ACEOF
27168 /* confdefs.h.  */
27169 _ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h.  */
27173 #include <sys/types.h>
27174 #include <signal.h>
27175 #ifdef signal
27176 # undef signal
27177 #endif
27178 #ifdef __cplusplus
27179 extern "C" void (*signal (int, void (*)(int)))(int);
27180 #else
27181 void (*signal ()) ();
27182 #endif
27183
27184 int
27185 main ()
27186 {
27187 int i;
27188   ;
27189   return 0;
27190 }
27191 _ACEOF
27192 rm -f conftest.$ac_objext
27193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27194   (eval $ac_compile) 2>conftest.er1
27195   ac_status=$?
27196   grep -v '^ *+' conftest.er1 >conftest.err
27197   rm -f conftest.er1
27198   cat conftest.err >&5
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); } &&
27201          { ac_try='test -z "$ac_c_werror_flag"
27202                          || test ! -s conftest.err'
27203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27204   (eval $ac_try) 2>&5
27205   ac_status=$?
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); }; } &&
27208          { ac_try='test -s conftest.$ac_objext'
27209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210   (eval $ac_try) 2>&5
27211   ac_status=$?
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); }; }; then
27214   ac_cv_type_signal=void
27215 else
27216   echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219 ac_cv_type_signal=int
27220 fi
27221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27222 fi
27223 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27224 echo "${ECHO_T}$ac_cv_type_signal" >&6
27225
27226 cat >>confdefs.h <<_ACEOF
27227 #define RETSIGTYPE $ac_cv_type_signal
27228 _ACEOF
27229
27230
27231 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27232 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27233 if test "${ac_cv_struct_tm+set}" = set; then
27234   echo $ECHO_N "(cached) $ECHO_C" >&6
27235 else
27236   cat >conftest.$ac_ext <<_ACEOF
27237 /* confdefs.h.  */
27238 _ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h.  */
27242 #include <sys/types.h>
27243 #include <time.h>
27244
27245 int
27246 main ()
27247 {
27248 struct tm *tp; tp->tm_sec;
27249   ;
27250   return 0;
27251 }
27252 _ACEOF
27253 rm -f conftest.$ac_objext
27254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27255   (eval $ac_compile) 2>conftest.er1
27256   ac_status=$?
27257   grep -v '^ *+' conftest.er1 >conftest.err
27258   rm -f conftest.er1
27259   cat conftest.err >&5
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); } &&
27262          { ac_try='test -z "$ac_c_werror_flag"
27263                          || test ! -s conftest.err'
27264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265   (eval $ac_try) 2>&5
27266   ac_status=$?
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); }; } &&
27269          { ac_try='test -s conftest.$ac_objext'
27270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271   (eval $ac_try) 2>&5
27272   ac_status=$?
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); }; }; then
27275   ac_cv_struct_tm=time.h
27276 else
27277   echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280 ac_cv_struct_tm=sys/time.h
27281 fi
27282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27283 fi
27284 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27285 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27286 if test $ac_cv_struct_tm = sys/time.h; then
27287
27288 cat >>confdefs.h <<\_ACEOF
27289 #define TM_IN_SYS_TIME 1
27290 _ACEOF
27291
27292 fi
27293
27294 echo "$as_me:$LINENO: checking for int64_t" >&5
27295 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27296 if test "${ac_cv_type_int64_t+set}" = set; then
27297   echo $ECHO_N "(cached) $ECHO_C" >&6
27298 else
27299   cat >conftest.$ac_ext <<_ACEOF
27300 /* confdefs.h.  */
27301 _ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h.  */
27305 $ac_includes_default
27306 int
27307 main ()
27308 {
27309 if ((int64_t *) 0)
27310   return 0;
27311 if (sizeof (int64_t))
27312   return 0;
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27319   (eval $ac_compile) 2>conftest.er1
27320   ac_status=$?
27321   grep -v '^ *+' conftest.er1 >conftest.err
27322   rm -f conftest.er1
27323   cat conftest.err >&5
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); } &&
27326          { ac_try='test -z "$ac_c_werror_flag"
27327                          || test ! -s conftest.err'
27328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329   (eval $ac_try) 2>&5
27330   ac_status=$?
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); }; } &&
27333          { ac_try='test -s conftest.$ac_objext'
27334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335   (eval $ac_try) 2>&5
27336   ac_status=$?
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); }; }; then
27339   ac_cv_type_int64_t=yes
27340 else
27341   echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27343
27344 ac_cv_type_int64_t=no
27345 fi
27346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27347 fi
27348 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27349 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27350 if test $ac_cv_type_int64_t = yes; then
27351
27352 cat >>confdefs.h <<_ACEOF
27353 #define HAVE_INT64_T 1
27354 _ACEOF
27355
27356
27357 else
27358   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27359 echo "$as_me: error: Type int64_t required but not found" >&2;}
27360    { (exit 1); exit 1; }; }
27361 fi
27362
27363 echo "$as_me:$LINENO: checking for uint64_t" >&5
27364 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27365 if test "${ac_cv_type_uint64_t+set}" = set; then
27366   echo $ECHO_N "(cached) $ECHO_C" >&6
27367 else
27368   cat >conftest.$ac_ext <<_ACEOF
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374 $ac_includes_default
27375 int
27376 main ()
27377 {
27378 if ((uint64_t *) 0)
27379   return 0;
27380 if (sizeof (uint64_t))
27381   return 0;
27382   ;
27383   return 0;
27384 }
27385 _ACEOF
27386 rm -f conftest.$ac_objext
27387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27388   (eval $ac_compile) 2>conftest.er1
27389   ac_status=$?
27390   grep -v '^ *+' conftest.er1 >conftest.err
27391   rm -f conftest.er1
27392   cat conftest.err >&5
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); } &&
27395          { ac_try='test -z "$ac_c_werror_flag"
27396                          || test ! -s conftest.err'
27397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398   (eval $ac_try) 2>&5
27399   ac_status=$?
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); }; } &&
27402          { ac_try='test -s conftest.$ac_objext'
27403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404   (eval $ac_try) 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; }; then
27408   ac_cv_type_uint64_t=yes
27409 else
27410   echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413 ac_cv_type_uint64_t=no
27414 fi
27415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27416 fi
27417 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27418 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27419 if test $ac_cv_type_uint64_t = yes; then
27420
27421 cat >>confdefs.h <<_ACEOF
27422 #define HAVE_UINT64_T 1
27423 _ACEOF
27424
27425
27426 else
27427   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27428 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27429 if test "${ac_cv_type_u_int64_t+set}" = set; then
27430   echo $ECHO_N "(cached) $ECHO_C" >&6
27431 else
27432   cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h.  */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h.  */
27438 $ac_includes_default
27439 int
27440 main ()
27441 {
27442 if ((u_int64_t *) 0)
27443   return 0;
27444 if (sizeof (u_int64_t))
27445   return 0;
27446   ;
27447   return 0;
27448 }
27449 _ACEOF
27450 rm -f conftest.$ac_objext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27452   (eval $ac_compile) 2>conftest.er1
27453   ac_status=$?
27454   grep -v '^ *+' conftest.er1 >conftest.err
27455   rm -f conftest.er1
27456   cat conftest.err >&5
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } &&
27459          { ac_try='test -z "$ac_c_werror_flag"
27460                          || test ! -s conftest.err'
27461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462   (eval $ac_try) 2>&5
27463   ac_status=$?
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); }; } &&
27466          { ac_try='test -s conftest.$ac_objext'
27467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468   (eval $ac_try) 2>&5
27469   ac_status=$?
27470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); }; }; then
27472   ac_cv_type_u_int64_t=yes
27473 else
27474   echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27476
27477 ac_cv_type_u_int64_t=no
27478 fi
27479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27480 fi
27481 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27482 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27483 if test $ac_cv_type_u_int64_t = yes; then
27484
27485 cat >>confdefs.h <<_ACEOF
27486 #define HAVE_U_INT64_T 1
27487 _ACEOF
27488
27489
27490 else
27491   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27492 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27493    { (exit 1); exit 1; }; }
27494 fi
27495
27496 fi
27497
27498
27499
27500
27501
27502
27503
27504
27505 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27506 do
27507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27508 echo "$as_me:$LINENO: checking for $ac_func" >&5
27509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27510 if eval "test \"\${$as_ac_var+set}\" = set"; then
27511   echo $ECHO_N "(cached) $ECHO_C" >&6
27512 else
27513   cat >conftest.$ac_ext <<_ACEOF
27514 /* confdefs.h.  */
27515 _ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h.  */
27519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27521 #define $ac_func innocuous_$ac_func
27522
27523 /* System header to define __stub macros and hopefully few prototypes,
27524     which can conflict with char $ac_func (); below.
27525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27526     <limits.h> exists even on freestanding compilers.  */
27527
27528 #ifdef __STDC__
27529 # include <limits.h>
27530 #else
27531 # include <assert.h>
27532 #endif
27533
27534 #undef $ac_func
27535
27536 /* Override any gcc2 internal prototype to avoid an error.  */
27537 #ifdef __cplusplus
27538 extern "C"
27539 {
27540 #endif
27541 /* We use char because int might match the return type of a gcc2
27542    builtin and then its argument prototype would still apply.  */
27543 char $ac_func ();
27544 /* The GNU C library defines this for functions which it implements
27545     to always fail with ENOSYS.  Some functions are actually named
27546     something starting with __ and the normal name is an alias.  */
27547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27548 choke me
27549 #else
27550 char (*f) () = $ac_func;
27551 #endif
27552 #ifdef __cplusplus
27553 }
27554 #endif
27555
27556 int
27557 main ()
27558 {
27559 return f != $ac_func;
27560   ;
27561   return 0;
27562 }
27563 _ACEOF
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566   (eval $ac_link) 2>conftest.er1
27567   ac_status=$?
27568   grep -v '^ *+' conftest.er1 >conftest.err
27569   rm -f conftest.er1
27570   cat conftest.err >&5
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); } &&
27573          { ac_try='test -z "$ac_c_werror_flag"
27574                          || test ! -s conftest.err'
27575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576   (eval $ac_try) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; } &&
27580          { ac_try='test -s conftest$ac_exeext'
27581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582   (eval $ac_try) 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   eval "$as_ac_var=yes"
27587 else
27588   echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591 eval "$as_ac_var=no"
27592 fi
27593 rm -f conftest.err conftest.$ac_objext \
27594       conftest$ac_exeext conftest.$ac_ext
27595 fi
27596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27598 if test `eval echo '${'$as_ac_var'}'` = yes; then
27599   cat >>confdefs.h <<_ACEOF
27600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27601 _ACEOF
27602
27603 fi
27604 done
27605
27606
27607
27608
27609
27610 for ac_func in isatty mkdtemp mkstemp mktemp
27611 do
27612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27613 echo "$as_me:$LINENO: checking for $ac_func" >&5
27614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27615 if eval "test \"\${$as_ac_var+set}\" = set"; then
27616   echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618   cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h.  */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h.  */
27624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27626 #define $ac_func innocuous_$ac_func
27627
27628 /* System header to define __stub macros and hopefully few prototypes,
27629     which can conflict with char $ac_func (); below.
27630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631     <limits.h> exists even on freestanding compilers.  */
27632
27633 #ifdef __STDC__
27634 # include <limits.h>
27635 #else
27636 # include <assert.h>
27637 #endif
27638
27639 #undef $ac_func
27640
27641 /* Override any gcc2 internal prototype to avoid an error.  */
27642 #ifdef __cplusplus
27643 extern "C"
27644 {
27645 #endif
27646 /* We use char because int might match the return type of a gcc2
27647    builtin and then its argument prototype would still apply.  */
27648 char $ac_func ();
27649 /* The GNU C library defines this for functions which it implements
27650     to always fail with ENOSYS.  Some functions are actually named
27651     something starting with __ and the normal name is an alias.  */
27652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27653 choke me
27654 #else
27655 char (*f) () = $ac_func;
27656 #endif
27657 #ifdef __cplusplus
27658 }
27659 #endif
27660
27661 int
27662 main ()
27663 {
27664 return f != $ac_func;
27665   ;
27666   return 0;
27667 }
27668 _ACEOF
27669 rm -f conftest.$ac_objext conftest$ac_exeext
27670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27671   (eval $ac_link) 2>conftest.er1
27672   ac_status=$?
27673   grep -v '^ *+' conftest.er1 >conftest.err
27674   rm -f conftest.er1
27675   cat conftest.err >&5
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); } &&
27678          { ac_try='test -z "$ac_c_werror_flag"
27679                          || test ! -s conftest.err'
27680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681   (eval $ac_try) 2>&5
27682   ac_status=$?
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); }; } &&
27685          { ac_try='test -s conftest$ac_exeext'
27686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687   (eval $ac_try) 2>&5
27688   ac_status=$?
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); }; }; then
27691   eval "$as_ac_var=yes"
27692 else
27693   echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27695
27696 eval "$as_ac_var=no"
27697 fi
27698 rm -f conftest.err conftest.$ac_objext \
27699       conftest$ac_exeext conftest.$ac_ext
27700 fi
27701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704   cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27706 _ACEOF
27707
27708 fi
27709 done
27710
27711
27712
27713
27714
27715
27716
27717 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27718 do
27719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27720 echo "$as_me:$LINENO: checking for $ac_func" >&5
27721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27722 if eval "test \"\${$as_ac_var+set}\" = set"; then
27723   echo $ECHO_N "(cached) $ECHO_C" >&6
27724 else
27725   cat >conftest.$ac_ext <<_ACEOF
27726 /* confdefs.h.  */
27727 _ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h.  */
27731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27733 #define $ac_func innocuous_$ac_func
27734
27735 /* System header to define __stub macros and hopefully few prototypes,
27736     which can conflict with char $ac_func (); below.
27737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27738     <limits.h> exists even on freestanding compilers.  */
27739
27740 #ifdef __STDC__
27741 # include <limits.h>
27742 #else
27743 # include <assert.h>
27744 #endif
27745
27746 #undef $ac_func
27747
27748 /* Override any gcc2 internal prototype to avoid an error.  */
27749 #ifdef __cplusplus
27750 extern "C"
27751 {
27752 #endif
27753 /* We use char because int might match the return type of a gcc2
27754    builtin and then its argument prototype would still apply.  */
27755 char $ac_func ();
27756 /* The GNU C library defines this for functions which it implements
27757     to always fail with ENOSYS.  Some functions are actually named
27758     something starting with __ and the normal name is an alias.  */
27759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27760 choke me
27761 #else
27762 char (*f) () = $ac_func;
27763 #endif
27764 #ifdef __cplusplus
27765 }
27766 #endif
27767
27768 int
27769 main ()
27770 {
27771 return f != $ac_func;
27772   ;
27773   return 0;
27774 }
27775 _ACEOF
27776 rm -f conftest.$ac_objext conftest$ac_exeext
27777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27778   (eval $ac_link) 2>conftest.er1
27779   ac_status=$?
27780   grep -v '^ *+' conftest.er1 >conftest.err
27781   rm -f conftest.er1
27782   cat conftest.err >&5
27783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784   (exit $ac_status); } &&
27785          { ac_try='test -z "$ac_c_werror_flag"
27786                          || test ! -s conftest.err'
27787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788   (eval $ac_try) 2>&5
27789   ac_status=$?
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); }; } &&
27792          { ac_try='test -s conftest$ac_exeext'
27793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794   (eval $ac_try) 2>&5
27795   ac_status=$?
27796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797   (exit $ac_status); }; }; then
27798   eval "$as_ac_var=yes"
27799 else
27800   echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27802
27803 eval "$as_ac_var=no"
27804 fi
27805 rm -f conftest.err conftest.$ac_objext \
27806       conftest$ac_exeext conftest.$ac_ext
27807 fi
27808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27810 if test `eval echo '${'$as_ac_var'}'` = yes; then
27811   cat >>confdefs.h <<_ACEOF
27812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27813 _ACEOF
27814
27815 fi
27816 done
27817
27818
27819
27820
27821 for ac_func in strtoll strtoq sysconf
27822 do
27823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27824 echo "$as_me:$LINENO: checking for $ac_func" >&5
27825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27826 if eval "test \"\${$as_ac_var+set}\" = set"; then
27827   echo $ECHO_N "(cached) $ECHO_C" >&6
27828 else
27829   cat >conftest.$ac_ext <<_ACEOF
27830 /* confdefs.h.  */
27831 _ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h.  */
27835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27837 #define $ac_func innocuous_$ac_func
27838
27839 /* System header to define __stub macros and hopefully few prototypes,
27840     which can conflict with char $ac_func (); below.
27841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27842     <limits.h> exists even on freestanding compilers.  */
27843
27844 #ifdef __STDC__
27845 # include <limits.h>
27846 #else
27847 # include <assert.h>
27848 #endif
27849
27850 #undef $ac_func
27851
27852 /* Override any gcc2 internal prototype to avoid an error.  */
27853 #ifdef __cplusplus
27854 extern "C"
27855 {
27856 #endif
27857 /* We use char because int might match the return type of a gcc2
27858    builtin and then its argument prototype would still apply.  */
27859 char $ac_func ();
27860 /* The GNU C library defines this for functions which it implements
27861     to always fail with ENOSYS.  Some functions are actually named
27862     something starting with __ and the normal name is an alias.  */
27863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27864 choke me
27865 #else
27866 char (*f) () = $ac_func;
27867 #endif
27868 #ifdef __cplusplus
27869 }
27870 #endif
27871
27872 int
27873 main ()
27874 {
27875 return f != $ac_func;
27876   ;
27877   return 0;
27878 }
27879 _ACEOF
27880 rm -f conftest.$ac_objext conftest$ac_exeext
27881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27882   (eval $ac_link) 2>conftest.er1
27883   ac_status=$?
27884   grep -v '^ *+' conftest.er1 >conftest.err
27885   rm -f conftest.er1
27886   cat conftest.err >&5
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); } &&
27889          { ac_try='test -z "$ac_c_werror_flag"
27890                          || test ! -s conftest.err'
27891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892   (eval $ac_try) 2>&5
27893   ac_status=$?
27894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895   (exit $ac_status); }; } &&
27896          { ac_try='test -s conftest$ac_exeext'
27897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898   (eval $ac_try) 2>&5
27899   ac_status=$?
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); }; }; then
27902   eval "$as_ac_var=yes"
27903 else
27904   echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27906
27907 eval "$as_ac_var=no"
27908 fi
27909 rm -f conftest.err conftest.$ac_objext \
27910       conftest$ac_exeext conftest.$ac_ext
27911 fi
27912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27914 if test `eval echo '${'$as_ac_var'}'` = yes; then
27915   cat >>confdefs.h <<_ACEOF
27916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27917 _ACEOF
27918
27919 fi
27920 done
27921
27922 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27923 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27924 if test "${llvm_cv_c_printf_a+set}" = set; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 else
27927   ac_ext=c
27928 ac_cpp='$CPP $CPPFLAGS'
27929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27932
27933  if test "$cross_compiling" = yes; then
27934   llvmac_cv_c_printf_a=no
27935 else
27936   cat >conftest.$ac_ext <<_ACEOF
27937
27938   /* confdefs.h.  */
27939 _ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h.  */
27943
27944 #include <stdio.h>
27945 #include <stdlib.h>
27946
27947 int
27948 main ()
27949 {
27950
27951 volatile double A, B;
27952 char Buffer[100];
27953 A = 1;
27954 A /= 10.0;
27955 sprintf(Buffer, "%a", A);
27956 B = atof(Buffer);
27957 if (A != B)
27958   return (1);
27959 if (A != 0x1.999999999999ap-4)
27960   return (1);
27961 return (0);
27962   ;
27963   return 0;
27964 }
27965 _ACEOF
27966 rm -f conftest$ac_exeext
27967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27968   (eval $ac_link) 2>&5
27969   ac_status=$?
27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973   (eval $ac_try) 2>&5
27974   ac_status=$?
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); }; }; then
27977   llvm_cv_c_printf_a=yes
27978 else
27979   echo "$as_me: program exited with status $ac_status" >&5
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983 ( exit $ac_status )
27984 llvmac_cv_c_printf_a=no
27985 fi
27986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27987 fi
27988  ac_ext=c
27989 ac_cpp='$CPP $CPPFLAGS'
27990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27993
27994 fi
27995 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27996 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27997  if test "$llvm_cv_c_printf_a" = "yes"; then
27998
27999 cat >>confdefs.h <<\_ACEOF
28000 #define HAVE_PRINTF_A 1
28001 _ACEOF
28002
28003  fi
28004
28005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28006 # for constant arguments.  Useless!
28007 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28008 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28009 if test "${ac_cv_working_alloca_h+set}" = set; then
28010   echo $ECHO_N "(cached) $ECHO_C" >&6
28011 else
28012   cat >conftest.$ac_ext <<_ACEOF
28013 /* confdefs.h.  */
28014 _ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h.  */
28018 #include <alloca.h>
28019 int
28020 main ()
28021 {
28022 char *p = (char *) alloca (2 * sizeof (int));
28023   ;
28024   return 0;
28025 }
28026 _ACEOF
28027 rm -f conftest.$ac_objext conftest$ac_exeext
28028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28029   (eval $ac_link) 2>conftest.er1
28030   ac_status=$?
28031   grep -v '^ *+' conftest.er1 >conftest.err
28032   rm -f conftest.er1
28033   cat conftest.err >&5
28034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); } &&
28036          { ac_try='test -z "$ac_c_werror_flag"
28037                          || test ! -s conftest.err'
28038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039   (eval $ac_try) 2>&5
28040   ac_status=$?
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); }; } &&
28043          { ac_try='test -s conftest$ac_exeext'
28044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045   (eval $ac_try) 2>&5
28046   ac_status=$?
28047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048   (exit $ac_status); }; }; then
28049   ac_cv_working_alloca_h=yes
28050 else
28051   echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28053
28054 ac_cv_working_alloca_h=no
28055 fi
28056 rm -f conftest.err conftest.$ac_objext \
28057       conftest$ac_exeext conftest.$ac_ext
28058 fi
28059 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28060 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28061 if test $ac_cv_working_alloca_h = yes; then
28062
28063 cat >>confdefs.h <<\_ACEOF
28064 #define HAVE_ALLOCA_H 1
28065 _ACEOF
28066
28067 fi
28068
28069 echo "$as_me:$LINENO: checking for alloca" >&5
28070 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28071 if test "${ac_cv_func_alloca_works+set}" = set; then
28072   echo $ECHO_N "(cached) $ECHO_C" >&6
28073 else
28074   cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080 #ifdef __GNUC__
28081 # define alloca __builtin_alloca
28082 #else
28083 # ifdef _MSC_VER
28084 #  include <malloc.h>
28085 #  define alloca _alloca
28086 # else
28087 #  if HAVE_ALLOCA_H
28088 #   include <alloca.h>
28089 #  else
28090 #   ifdef _AIX
28091  #pragma alloca
28092 #   else
28093 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28094 char *alloca ();
28095 #    endif
28096 #   endif
28097 #  endif
28098 # endif
28099 #endif
28100
28101 int
28102 main ()
28103 {
28104 char *p = (char *) alloca (1);
28105   ;
28106   return 0;
28107 }
28108 _ACEOF
28109 rm -f conftest.$ac_objext conftest$ac_exeext
28110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28111   (eval $ac_link) 2>conftest.er1
28112   ac_status=$?
28113   grep -v '^ *+' conftest.er1 >conftest.err
28114   rm -f conftest.er1
28115   cat conftest.err >&5
28116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117   (exit $ac_status); } &&
28118          { ac_try='test -z "$ac_c_werror_flag"
28119                          || test ! -s conftest.err'
28120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121   (eval $ac_try) 2>&5
28122   ac_status=$?
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); }; } &&
28125          { ac_try='test -s conftest$ac_exeext'
28126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127   (eval $ac_try) 2>&5
28128   ac_status=$?
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); }; }; then
28131   ac_cv_func_alloca_works=yes
28132 else
28133   echo "$as_me: failed program was:" >&5
28134 sed 's/^/| /' conftest.$ac_ext >&5
28135
28136 ac_cv_func_alloca_works=no
28137 fi
28138 rm -f conftest.err conftest.$ac_objext \
28139       conftest$ac_exeext conftest.$ac_ext
28140 fi
28141 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28142 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28143
28144 if test $ac_cv_func_alloca_works = yes; then
28145
28146 cat >>confdefs.h <<\_ACEOF
28147 #define HAVE_ALLOCA 1
28148 _ACEOF
28149
28150 else
28151   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28152 # that cause trouble.  Some versions do not even contain alloca or
28153 # contain a buggy version.  If you still want to use their alloca,
28154 # use ar to extract alloca.o from them instead of compiling alloca.c.
28155
28156 ALLOCA=alloca.$ac_objext
28157
28158 cat >>confdefs.h <<\_ACEOF
28159 #define C_ALLOCA 1
28160 _ACEOF
28161
28162
28163 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28164 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28165 if test "${ac_cv_os_cray+set}" = set; then
28166   echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168   cat >conftest.$ac_ext <<_ACEOF
28169 /* confdefs.h.  */
28170 _ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h.  */
28174 #if defined(CRAY) && ! defined(CRAY2)
28175 webecray
28176 #else
28177 wenotbecray
28178 #endif
28179
28180 _ACEOF
28181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28182   $EGREP "webecray" >/dev/null 2>&1; then
28183   ac_cv_os_cray=yes
28184 else
28185   ac_cv_os_cray=no
28186 fi
28187 rm -f conftest*
28188
28189 fi
28190 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28191 echo "${ECHO_T}$ac_cv_os_cray" >&6
28192 if test $ac_cv_os_cray = yes; then
28193   for ac_func in _getb67 GETB67 getb67; do
28194     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28195 echo "$as_me:$LINENO: checking for $ac_func" >&5
28196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28197 if eval "test \"\${$as_ac_var+set}\" = set"; then
28198   echo $ECHO_N "(cached) $ECHO_C" >&6
28199 else
28200   cat >conftest.$ac_ext <<_ACEOF
28201 /* confdefs.h.  */
28202 _ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h.  */
28206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28208 #define $ac_func innocuous_$ac_func
28209
28210 /* System header to define __stub macros and hopefully few prototypes,
28211     which can conflict with char $ac_func (); below.
28212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28213     <limits.h> exists even on freestanding compilers.  */
28214
28215 #ifdef __STDC__
28216 # include <limits.h>
28217 #else
28218 # include <assert.h>
28219 #endif
28220
28221 #undef $ac_func
28222
28223 /* Override any gcc2 internal prototype to avoid an error.  */
28224 #ifdef __cplusplus
28225 extern "C"
28226 {
28227 #endif
28228 /* We use char because int might match the return type of a gcc2
28229    builtin and then its argument prototype would still apply.  */
28230 char $ac_func ();
28231 /* The GNU C library defines this for functions which it implements
28232     to always fail with ENOSYS.  Some functions are actually named
28233     something starting with __ and the normal name is an alias.  */
28234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28235 choke me
28236 #else
28237 char (*f) () = $ac_func;
28238 #endif
28239 #ifdef __cplusplus
28240 }
28241 #endif
28242
28243 int
28244 main ()
28245 {
28246 return f != $ac_func;
28247   ;
28248   return 0;
28249 }
28250 _ACEOF
28251 rm -f conftest.$ac_objext conftest$ac_exeext
28252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28253   (eval $ac_link) 2>conftest.er1
28254   ac_status=$?
28255   grep -v '^ *+' conftest.er1 >conftest.err
28256   rm -f conftest.er1
28257   cat conftest.err >&5
28258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259   (exit $ac_status); } &&
28260          { ac_try='test -z "$ac_c_werror_flag"
28261                          || test ! -s conftest.err'
28262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263   (eval $ac_try) 2>&5
28264   ac_status=$?
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); }; } &&
28267          { ac_try='test -s conftest$ac_exeext'
28268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269   (eval $ac_try) 2>&5
28270   ac_status=$?
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); }; }; then
28273   eval "$as_ac_var=yes"
28274 else
28275   echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28277
28278 eval "$as_ac_var=no"
28279 fi
28280 rm -f conftest.err conftest.$ac_objext \
28281       conftest$ac_exeext conftest.$ac_ext
28282 fi
28283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28285 if test `eval echo '${'$as_ac_var'}'` = yes; then
28286
28287 cat >>confdefs.h <<_ACEOF
28288 #define CRAY_STACKSEG_END $ac_func
28289 _ACEOF
28290
28291     break
28292 fi
28293
28294   done
28295 fi
28296
28297 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28298 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28299 if test "${ac_cv_c_stack_direction+set}" = set; then
28300   echo $ECHO_N "(cached) $ECHO_C" >&6
28301 else
28302   if test "$cross_compiling" = yes; then
28303   ac_cv_c_stack_direction=0
28304 else
28305   cat >conftest.$ac_ext <<_ACEOF
28306 /* confdefs.h.  */
28307 _ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h.  */
28311 int
28312 find_stack_direction ()
28313 {
28314   static char *addr = 0;
28315   auto char dummy;
28316   if (addr == 0)
28317     {
28318       addr = &dummy;
28319       return find_stack_direction ();
28320     }
28321   else
28322     return (&dummy > addr) ? 1 : -1;
28323 }
28324
28325 int
28326 main ()
28327 {
28328   exit (find_stack_direction () < 0);
28329 }
28330 _ACEOF
28331 rm -f conftest$ac_exeext
28332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28333   (eval $ac_link) 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338   (eval $ac_try) 2>&5
28339   ac_status=$?
28340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341   (exit $ac_status); }; }; then
28342   ac_cv_c_stack_direction=1
28343 else
28344   echo "$as_me: program exited with status $ac_status" >&5
28345 echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28347
28348 ( exit $ac_status )
28349 ac_cv_c_stack_direction=-1
28350 fi
28351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28352 fi
28353 fi
28354 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28355 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28356
28357 cat >>confdefs.h <<_ACEOF
28358 #define STACK_DIRECTION $ac_cv_c_stack_direction
28359 _ACEOF
28360
28361
28362 fi
28363
28364
28365 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28366 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28367 if test "${ac_cv_func_rand48+set}" = set; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370   ac_ext=cc
28371 ac_cpp='$CXXCPP $CPPFLAGS'
28372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28375
28376    cat >conftest.$ac_ext <<_ACEOF
28377 /* confdefs.h.  */
28378 _ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h.  */
28382 #include <stdlib.h>
28383 int
28384 main ()
28385 {
28386 srand48(0);lrand48();drand48();
28387   ;
28388   return 0;
28389 }
28390 _ACEOF
28391 rm -f conftest.$ac_objext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28393   (eval $ac_compile) 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } &&
28400          { ac_try='test -z "$ac_cxx_werror_flag"
28401                          || test ! -s conftest.err'
28402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403   (eval $ac_try) 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; } &&
28407          { ac_try='test -s conftest.$ac_objext'
28408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409   (eval $ac_try) 2>&5
28410   ac_status=$?
28411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412   (exit $ac_status); }; }; then
28413   ac_cv_func_rand48=yes
28414 else
28415   echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28417
28418 ac_cv_func_rand48=no
28419 fi
28420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28421   ac_ext=c
28422 ac_cpp='$CPP $CPPFLAGS'
28423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28426
28427 fi
28428 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28429 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28430
28431 if test "$ac_cv_func_rand48" = "yes" ; then
28432
28433 cat >>confdefs.h <<\_ACEOF
28434 #define HAVE_RAND48 1
28435 _ACEOF
28436
28437 fi
28438
28439
28440 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28441 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28442 if test "${ac_cv_cxx_namespaces+set}" = set; then
28443   echo $ECHO_N "(cached) $ECHO_C" >&6
28444 else
28445   ac_ext=cc
28446 ac_cpp='$CXXCPP $CPPFLAGS'
28447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28450
28451  cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h.  */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h.  */
28457 namespace Outer { namespace Inner { int i = 0; }}
28458 int
28459 main ()
28460 {
28461 using namespace Outer::Inner; return i;
28462   ;
28463   return 0;
28464 }
28465 _ACEOF
28466 rm -f conftest.$ac_objext
28467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28468   (eval $ac_compile) 2>conftest.er1
28469   ac_status=$?
28470   grep -v '^ *+' conftest.er1 >conftest.err
28471   rm -f conftest.er1
28472   cat conftest.err >&5
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); } &&
28475          { ac_try='test -z "$ac_cxx_werror_flag"
28476                          || test ! -s conftest.err'
28477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478   (eval $ac_try) 2>&5
28479   ac_status=$?
28480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481   (exit $ac_status); }; } &&
28482          { ac_try='test -s conftest.$ac_objext'
28483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484   (eval $ac_try) 2>&5
28485   ac_status=$?
28486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487   (exit $ac_status); }; }; then
28488   ac_cv_cxx_namespaces=yes
28489 else
28490   echo "$as_me: failed program was:" >&5
28491 sed 's/^/| /' conftest.$ac_ext >&5
28492
28493 ac_cv_cxx_namespaces=no
28494 fi
28495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28496  ac_ext=c
28497 ac_cpp='$CPP $CPPFLAGS'
28498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28501
28502
28503 fi
28504 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28505 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28506 if test "$ac_cv_cxx_namespaces" = yes; then
28507
28508 cat >>confdefs.h <<\_ACEOF
28509 #define HAVE_NAMESPACES
28510 _ACEOF
28511
28512 fi
28513
28514 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28515 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28516 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28517   echo $ECHO_N "(cached) $ECHO_C" >&6
28518 else
28519
28520   ac_ext=cc
28521 ac_cpp='$CXXCPP $CPPFLAGS'
28522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28525
28526   cat >conftest.$ac_ext <<_ACEOF
28527 /* confdefs.h.  */
28528 _ACEOF
28529 cat confdefs.h >>conftest.$ac_ext
28530 cat >>conftest.$ac_ext <<_ACEOF
28531 /* end confdefs.h.  */
28532 #include <ext/hash_map>
28533 #ifdef HAVE_NAMESPACES
28534 using namespace std;
28535 #endif
28536 int
28537 main ()
28538 {
28539 hash_map<int, int> t;
28540   ;
28541   return 0;
28542 }
28543 _ACEOF
28544 rm -f conftest.$ac_objext
28545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28546   (eval $ac_compile) 2>conftest.er1
28547   ac_status=$?
28548   grep -v '^ *+' conftest.er1 >conftest.err
28549   rm -f conftest.er1
28550   cat conftest.err >&5
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); } &&
28553          { ac_try='test -z "$ac_cxx_werror_flag"
28554                          || test ! -s conftest.err'
28555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556   (eval $ac_try) 2>&5
28557   ac_status=$?
28558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559   (exit $ac_status); }; } &&
28560          { ac_try='test -s conftest.$ac_objext'
28561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562   (eval $ac_try) 2>&5
28563   ac_status=$?
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); }; }; then
28566   ac_cv_cxx_have_std_ext_hash_map=yes
28567 else
28568   echo "$as_me: failed program was:" >&5
28569 sed 's/^/| /' conftest.$ac_ext >&5
28570
28571 ac_cv_cxx_have_std_ext_hash_map=no
28572 fi
28573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28574   ac_ext=c
28575 ac_cpp='$CPP $CPPFLAGS'
28576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28579
28580 fi
28581 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28582 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28583  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28584  then
28585
28586 cat >>confdefs.h <<\_ACEOF
28587 #define HAVE_STD_EXT_HASH_MAP 1
28588 _ACEOF
28589
28590  else
28591
28592 cat >>confdefs.h <<\_ACEOF
28593 #define HAVE_STD_EXT_HASH_MAP 0
28594 _ACEOF
28595
28596  fi
28597
28598  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28599 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28600 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28601   echo $ECHO_N "(cached) $ECHO_C" >&6
28602 else
28603
28604   ac_ext=cc
28605 ac_cpp='$CXXCPP $CPPFLAGS'
28606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28609
28610   cat >conftest.$ac_ext <<_ACEOF
28611 /* confdefs.h.  */
28612 _ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h.  */
28616 #include <ext/hash_map>
28617 #ifdef HAVE_NAMESPACES
28618 using namespace __gnu_cxx;
28619 #endif
28620 int
28621 main ()
28622 {
28623 hash_map<int,int> t;
28624   ;
28625   return 0;
28626 }
28627 _ACEOF
28628 rm -f conftest.$ac_objext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28630   (eval $ac_compile) 2>conftest.er1
28631   ac_status=$?
28632   grep -v '^ *+' conftest.er1 >conftest.err
28633   rm -f conftest.er1
28634   cat conftest.err >&5
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); } &&
28637          { ac_try='test -z "$ac_cxx_werror_flag"
28638                          || test ! -s conftest.err'
28639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; } &&
28644          { ac_try='test -s conftest.$ac_objext'
28645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646   (eval $ac_try) 2>&5
28647   ac_status=$?
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); }; }; then
28650   ac_cv_cxx_have_gnu_ext_hash_map=yes
28651 else
28652   echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28654
28655 ac_cv_cxx_have_gnu_ext_hash_map=no
28656 fi
28657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28658   ac_ext=c
28659 ac_cpp='$CPP $CPPFLAGS'
28660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28663
28664 fi
28665 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28666 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28667  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28668  then
28669
28670 cat >>confdefs.h <<\_ACEOF
28671 #define HAVE_GNU_EXT_HASH_MAP 1
28672 _ACEOF
28673
28674  else
28675
28676 cat >>confdefs.h <<\_ACEOF
28677 #define HAVE_GNU_EXT_HASH_MAP 0
28678 _ACEOF
28679
28680  fi
28681
28682  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28683 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28684 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28685   echo $ECHO_N "(cached) $ECHO_C" >&6
28686 else
28687
28688   ac_ext=cc
28689 ac_cpp='$CXXCPP $CPPFLAGS'
28690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28693
28694   cat >conftest.$ac_ext <<_ACEOF
28695 /* confdefs.h.  */
28696 _ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h.  */
28700 #include <hash_map>
28701 int
28702 main ()
28703 {
28704 hash_map<int,int> t;
28705   ;
28706   return 0;
28707 }
28708 _ACEOF
28709 rm -f conftest.$ac_objext
28710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28711   (eval $ac_compile) 2>conftest.er1
28712   ac_status=$?
28713   grep -v '^ *+' conftest.er1 >conftest.err
28714   rm -f conftest.er1
28715   cat conftest.err >&5
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); } &&
28718          { ac_try='test -z "$ac_cxx_werror_flag"
28719                          || test ! -s conftest.err'
28720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721   (eval $ac_try) 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; } &&
28725          { ac_try='test -s conftest.$ac_objext'
28726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727   (eval $ac_try) 2>&5
28728   ac_status=$?
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); }; }; then
28731   ac_cv_cxx_have_global_hash_map=yes
28732 else
28733   echo "$as_me: failed program was:" >&5
28734 sed 's/^/| /' conftest.$ac_ext >&5
28735
28736 ac_cv_cxx_have_global_hash_map=no
28737 fi
28738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28739   ac_ext=c
28740 ac_cpp='$CPP $CPPFLAGS'
28741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28744
28745 fi
28746 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28747 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28748  if test "$ac_cv_cxx_have_global_hash_map" = yes
28749  then
28750
28751 cat >>confdefs.h <<\_ACEOF
28752 #define HAVE_GLOBAL_HASH_MAP 1
28753 _ACEOF
28754
28755  else
28756
28757 cat >>confdefs.h <<\_ACEOF
28758 #define HAVE_GLOBAL_HASH_MAP 0
28759 _ACEOF
28760
28761  fi
28762
28763 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28764 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28765 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28766   echo $ECHO_N "(cached) $ECHO_C" >&6
28767 else
28768
28769   ac_ext=cc
28770 ac_cpp='$CXXCPP $CPPFLAGS'
28771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28774
28775   cat >conftest.$ac_ext <<_ACEOF
28776 /* confdefs.h.  */
28777 _ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h.  */
28781 #include <ext/hash_set>
28782 #ifdef HAVE_NAMESPACES
28783 using namespace std;
28784 #endif
28785 int
28786 main ()
28787 {
28788 hash_set<int> t;
28789   ;
28790   return 0;
28791 }
28792 _ACEOF
28793 rm -f conftest.$ac_objext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28795   (eval $ac_compile) 2>conftest.er1
28796   ac_status=$?
28797   grep -v '^ *+' conftest.er1 >conftest.err
28798   rm -f conftest.er1
28799   cat conftest.err >&5
28800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); } &&
28802          { ac_try='test -z "$ac_cxx_werror_flag"
28803                          || test ! -s conftest.err'
28804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805   (eval $ac_try) 2>&5
28806   ac_status=$?
28807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808   (exit $ac_status); }; } &&
28809          { ac_try='test -s conftest.$ac_objext'
28810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811   (eval $ac_try) 2>&5
28812   ac_status=$?
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); }; }; then
28815   ac_cv_cxx_have_std_ext_hash_set=yes
28816 else
28817   echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28819
28820 ac_cv_cxx_have_std_ext_hash_set=no
28821 fi
28822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28823   ac_ext=c
28824 ac_cpp='$CPP $CPPFLAGS'
28825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28828
28829 fi
28830 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28831 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28832  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28833  then
28834
28835 cat >>confdefs.h <<\_ACEOF
28836 #define HAVE_STD_EXT_HASH_SET 1
28837 _ACEOF
28838
28839  else
28840
28841 cat >>confdefs.h <<\_ACEOF
28842 #define HAVE_STD_EXT_HASH_SET 0
28843 _ACEOF
28844
28845  fi
28846
28847  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28848 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28849 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28850   echo $ECHO_N "(cached) $ECHO_C" >&6
28851 else
28852
28853   ac_ext=cc
28854 ac_cpp='$CXXCPP $CPPFLAGS'
28855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28858
28859   cat >conftest.$ac_ext <<_ACEOF
28860 /* confdefs.h.  */
28861 _ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h.  */
28865 #include <ext/hash_set>
28866 #ifdef HAVE_NAMESPACES
28867 using namespace __gnu_cxx;
28868 #endif
28869 int
28870 main ()
28871 {
28872 hash_set<int> t;
28873   ;
28874   return 0;
28875 }
28876 _ACEOF
28877 rm -f conftest.$ac_objext
28878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28879   (eval $ac_compile) 2>conftest.er1
28880   ac_status=$?
28881   grep -v '^ *+' conftest.er1 >conftest.err
28882   rm -f conftest.er1
28883   cat conftest.err >&5
28884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885   (exit $ac_status); } &&
28886          { ac_try='test -z "$ac_cxx_werror_flag"
28887                          || test ! -s conftest.err'
28888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889   (eval $ac_try) 2>&5
28890   ac_status=$?
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); }; } &&
28893          { ac_try='test -s conftest.$ac_objext'
28894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895   (eval $ac_try) 2>&5
28896   ac_status=$?
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); }; }; then
28899   ac_cv_cxx_have_gnu_ext_hash_set=yes
28900 else
28901   echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28903
28904 ac_cv_cxx_have_gnu_ext_hash_set=no
28905 fi
28906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28907   ac_ext=c
28908 ac_cpp='$CPP $CPPFLAGS'
28909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28912
28913 fi
28914 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28915 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28916  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28917  then
28918
28919 cat >>confdefs.h <<\_ACEOF
28920 #define HAVE_GNU_EXT_HASH_SET 1
28921 _ACEOF
28922
28923  else
28924
28925 cat >>confdefs.h <<\_ACEOF
28926 #define HAVE_GNU_EXT_HASH_SET 0
28927 _ACEOF
28928
28929  fi
28930
28931  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28932 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28933 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28934   echo $ECHO_N "(cached) $ECHO_C" >&6
28935 else
28936
28937   ac_ext=cc
28938 ac_cpp='$CXXCPP $CPPFLAGS'
28939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28942
28943   cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h.  */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h.  */
28949 #include <hash_set>
28950 int
28951 main ()
28952 {
28953 hash_set<int> t; return 0;
28954   ;
28955   return 0;
28956 }
28957 _ACEOF
28958 rm -f conftest.$ac_objext
28959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28960   (eval $ac_compile) 2>conftest.er1
28961   ac_status=$?
28962   grep -v '^ *+' conftest.er1 >conftest.err
28963   rm -f conftest.er1
28964   cat conftest.err >&5
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); } &&
28967          { ac_try='test -z "$ac_cxx_werror_flag"
28968                          || test ! -s conftest.err'
28969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970   (eval $ac_try) 2>&5
28971   ac_status=$?
28972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973   (exit $ac_status); }; } &&
28974          { ac_try='test -s conftest.$ac_objext'
28975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976   (eval $ac_try) 2>&5
28977   ac_status=$?
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); }; }; then
28980   ac_cv_cxx_have_global_hash_set=yes
28981 else
28982   echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28984
28985 ac_cv_cxx_have_global_hash_set=no
28986 fi
28987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28988   ac_ext=c
28989 ac_cpp='$CPP $CPPFLAGS'
28990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28993
28994 fi
28995 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28996 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28997  if test "$ac_cv_cxx_have_global_hash_set" = yes
28998  then
28999
29000 cat >>confdefs.h <<\_ACEOF
29001 #define HAVE_GLOBAL_HASH_SET 1
29002 _ACEOF
29003
29004  else
29005
29006 cat >>confdefs.h <<\_ACEOF
29007 #define HAVE_GLOBAL_HASH_SET 0
29008 _ACEOF
29009
29010  fi
29011
29012 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29013 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29014 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29015   echo $ECHO_N "(cached) $ECHO_C" >&6
29016 else
29017
29018   ac_ext=cc
29019 ac_cpp='$CXXCPP $CPPFLAGS'
29020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29023
29024   cat >conftest.$ac_ext <<_ACEOF
29025 /* confdefs.h.  */
29026 _ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h.  */
29030 #include <iterator>
29031 #ifdef HAVE_NAMESPACES
29032 using namespace std;
29033 #endif
29034 int
29035 main ()
29036 {
29037 iterator<int,int,int> t; return 0;
29038   ;
29039   return 0;
29040 }
29041 _ACEOF
29042 rm -f conftest.$ac_objext
29043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29044   (eval $ac_compile) 2>conftest.er1
29045   ac_status=$?
29046   grep -v '^ *+' conftest.er1 >conftest.err
29047   rm -f conftest.er1
29048   cat conftest.err >&5
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); } &&
29051          { ac_try='test -z "$ac_cxx_werror_flag"
29052                          || test ! -s conftest.err'
29053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054   (eval $ac_try) 2>&5
29055   ac_status=$?
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); }; } &&
29058          { ac_try='test -s conftest.$ac_objext'
29059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060   (eval $ac_try) 2>&5
29061   ac_status=$?
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); }; }; then
29064   ac_cv_cxx_have_std_iterator=yes
29065 else
29066   echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29068
29069 ac_cv_cxx_have_std_iterator=no
29070 fi
29071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29072   ac_ext=c
29073 ac_cpp='$CPP $CPPFLAGS'
29074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29077
29078
29079 fi
29080 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29081 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29082 if test "$ac_cv_cxx_have_std_iterator" = yes
29083 then
29084
29085 cat >>confdefs.h <<\_ACEOF
29086 #define HAVE_STD_ITERATOR 1
29087 _ACEOF
29088
29089 else
29090
29091 cat >>confdefs.h <<\_ACEOF
29092 #define HAVE_STD_ITERATOR 0
29093 _ACEOF
29094
29095 fi
29096
29097 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29098 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29099 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29100   echo $ECHO_N "(cached) $ECHO_C" >&6
29101 else
29102
29103   ac_ext=cc
29104 ac_cpp='$CXXCPP $CPPFLAGS'
29105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29108
29109   cat >conftest.$ac_ext <<_ACEOF
29110 /* confdefs.h.  */
29111 _ACEOF
29112 cat confdefs.h >>conftest.$ac_ext
29113 cat >>conftest.$ac_ext <<_ACEOF
29114 /* end confdefs.h.  */
29115 #include <iterator>
29116 #ifdef HAVE_NAMESPACES
29117 using namespace std;
29118 #endif
29119 int
29120 main ()
29121 {
29122 bidirectional_iterator<int,int> t; return 0;
29123   ;
29124   return 0;
29125 }
29126 _ACEOF
29127 rm -f conftest.$ac_objext
29128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29129   (eval $ac_compile) 2>conftest.er1
29130   ac_status=$?
29131   grep -v '^ *+' conftest.er1 >conftest.err
29132   rm -f conftest.er1
29133   cat conftest.err >&5
29134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135   (exit $ac_status); } &&
29136          { ac_try='test -z "$ac_cxx_werror_flag"
29137                          || test ! -s conftest.err'
29138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139   (eval $ac_try) 2>&5
29140   ac_status=$?
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); }; } &&
29143          { ac_try='test -s conftest.$ac_objext'
29144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145   (eval $ac_try) 2>&5
29146   ac_status=$?
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); }; }; then
29149   ac_cv_cxx_have_bi_iterator=yes
29150 else
29151   echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29153
29154 ac_cv_cxx_have_bi_iterator=no
29155 fi
29156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29157   ac_ext=c
29158 ac_cpp='$CPP $CPPFLAGS'
29159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29162
29163
29164 fi
29165 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29166 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29167 if test "$ac_cv_cxx_have_bi_iterator" = yes
29168 then
29169
29170 cat >>confdefs.h <<\_ACEOF
29171 #define HAVE_BI_ITERATOR 1
29172 _ACEOF
29173
29174 else
29175
29176 cat >>confdefs.h <<\_ACEOF
29177 #define HAVE_BI_ITERATOR 0
29178 _ACEOF
29179
29180 fi
29181
29182 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29183 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29184 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29185   echo $ECHO_N "(cached) $ECHO_C" >&6
29186 else
29187
29188   ac_ext=cc
29189 ac_cpp='$CXXCPP $CPPFLAGS'
29190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29193
29194   cat >conftest.$ac_ext <<_ACEOF
29195 /* confdefs.h.  */
29196 _ACEOF
29197 cat confdefs.h >>conftest.$ac_ext
29198 cat >>conftest.$ac_ext <<_ACEOF
29199 /* end confdefs.h.  */
29200 #include <iterator>
29201 #ifdef HAVE_NAMESPACES
29202 using namespace std;
29203 #endif
29204 int
29205 main ()
29206 {
29207 forward_iterator<int,int> t; return 0;
29208   ;
29209   return 0;
29210 }
29211 _ACEOF
29212 rm -f conftest.$ac_objext
29213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29214   (eval $ac_compile) 2>conftest.er1
29215   ac_status=$?
29216   grep -v '^ *+' conftest.er1 >conftest.err
29217   rm -f conftest.er1
29218   cat conftest.err >&5
29219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220   (exit $ac_status); } &&
29221          { ac_try='test -z "$ac_cxx_werror_flag"
29222                          || test ! -s conftest.err'
29223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224   (eval $ac_try) 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; } &&
29228          { ac_try='test -s conftest.$ac_objext'
29229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230   (eval $ac_try) 2>&5
29231   ac_status=$?
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   (exit $ac_status); }; }; then
29234   ac_cv_cxx_have_fwd_iterator=yes
29235 else
29236   echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29238
29239 ac_cv_cxx_have_fwd_iterator=no
29240 fi
29241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29242   ac_ext=c
29243 ac_cpp='$CPP $CPPFLAGS'
29244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29247
29248
29249 fi
29250 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29251 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29252 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29253 then
29254
29255 cat >>confdefs.h <<\_ACEOF
29256 #define HAVE_FWD_ITERATOR 1
29257 _ACEOF
29258
29259 else
29260
29261 cat >>confdefs.h <<\_ACEOF
29262 #define HAVE_FWD_ITERATOR 0
29263 _ACEOF
29264
29265 fi
29266
29267
29268 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29269 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29270 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29271   echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273   ac_ext=cc
29274 ac_cpp='$CXXCPP $CPPFLAGS'
29275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29278
29279    cat >conftest.$ac_ext <<_ACEOF
29280 /* confdefs.h.  */
29281 _ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h.  */
29285 #include <math.h>
29286 int
29287 main ()
29288 {
29289 float f; isnan(f);
29290   ;
29291   return 0;
29292 }
29293 _ACEOF
29294 rm -f conftest.$ac_objext
29295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29296   (eval $ac_compile) 2>conftest.er1
29297   ac_status=$?
29298   grep -v '^ *+' conftest.er1 >conftest.err
29299   rm -f conftest.er1
29300   cat conftest.err >&5
29301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302   (exit $ac_status); } &&
29303          { ac_try='test -z "$ac_cxx_werror_flag"
29304                          || test ! -s conftest.err'
29305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306   (eval $ac_try) 2>&5
29307   ac_status=$?
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); }; } &&
29310          { ac_try='test -s conftest.$ac_objext'
29311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312   (eval $ac_try) 2>&5
29313   ac_status=$?
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); }; }; then
29316   ac_cv_func_isnan_in_math_h=yes
29317 else
29318   echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321 ac_cv_func_isnan_in_math_h=no
29322 fi
29323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29324   ac_ext=c
29325 ac_cpp='$CPP $CPPFLAGS'
29326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29329
29330 fi
29331 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29332 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29333
29334
29335 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29336
29337 cat >>confdefs.h <<\_ACEOF
29338 #define HAVE_ISNAN_IN_MATH_H 1
29339 _ACEOF
29340
29341 fi
29342
29343 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29344 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29345 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29346   echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348   ac_ext=cc
29349 ac_cpp='$CXXCPP $CPPFLAGS'
29350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29353
29354    cat >conftest.$ac_ext <<_ACEOF
29355 /* confdefs.h.  */
29356 _ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h.  */
29360 #include <cmath>
29361 int
29362 main ()
29363 {
29364 float f; isnan(f);
29365   ;
29366   return 0;
29367 }
29368 _ACEOF
29369 rm -f conftest.$ac_objext
29370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29371   (eval $ac_compile) 2>conftest.er1
29372   ac_status=$?
29373   grep -v '^ *+' conftest.er1 >conftest.err
29374   rm -f conftest.er1
29375   cat conftest.err >&5
29376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377   (exit $ac_status); } &&
29378          { ac_try='test -z "$ac_cxx_werror_flag"
29379                          || test ! -s conftest.err'
29380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381   (eval $ac_try) 2>&5
29382   ac_status=$?
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; } &&
29385          { ac_try='test -s conftest.$ac_objext'
29386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387   (eval $ac_try) 2>&5
29388   ac_status=$?
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); }; }; then
29391   ac_cv_func_isnan_in_cmath=yes
29392 else
29393   echo "$as_me: failed program was:" >&5
29394 sed 's/^/| /' conftest.$ac_ext >&5
29395
29396 ac_cv_func_isnan_in_cmath=no
29397 fi
29398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29399   ac_ext=c
29400 ac_cpp='$CPP $CPPFLAGS'
29401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29404
29405 fi
29406 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29407 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29408
29409 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29410
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_ISNAN_IN_CMATH 1
29413 _ACEOF
29414
29415 fi
29416
29417 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29418 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29419 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422   ac_ext=cc
29423 ac_cpp='$CXXCPP $CPPFLAGS'
29424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29427
29428    cat >conftest.$ac_ext <<_ACEOF
29429 /* confdefs.h.  */
29430 _ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h.  */
29434 #include <cmath>
29435 int
29436 main ()
29437 {
29438 float f; std::isnan(f);
29439   ;
29440   return 0;
29441 }
29442 _ACEOF
29443 rm -f conftest.$ac_objext
29444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29445   (eval $ac_compile) 2>conftest.er1
29446   ac_status=$?
29447   grep -v '^ *+' conftest.er1 >conftest.err
29448   rm -f conftest.er1
29449   cat conftest.err >&5
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); } &&
29452          { ac_try='test -z "$ac_cxx_werror_flag"
29453                          || test ! -s conftest.err'
29454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455   (eval $ac_try) 2>&5
29456   ac_status=$?
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); }; } &&
29459          { ac_try='test -s conftest.$ac_objext'
29460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461   (eval $ac_try) 2>&5
29462   ac_status=$?
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); }; }; then
29465   ac_cv_func_std_isnan_in_cmath=yes
29466 else
29467   echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29469
29470 ac_cv_func_std_isnan_in_cmath=no
29471 fi
29472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29473   ac_ext=c
29474 ac_cpp='$CPP $CPPFLAGS'
29475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29478
29479 fi
29480 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29481 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29482
29483 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29484
29485 cat >>confdefs.h <<\_ACEOF
29486 #define HAVE_STD_ISNAN_IN_CMATH 1
29487 _ACEOF
29488
29489 fi
29490
29491
29492 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29493 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29494 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29495   echo $ECHO_N "(cached) $ECHO_C" >&6
29496 else
29497   ac_ext=cc
29498 ac_cpp='$CXXCPP $CPPFLAGS'
29499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29502
29503    cat >conftest.$ac_ext <<_ACEOF
29504 /* confdefs.h.  */
29505 _ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h.  */
29509 #include <math.h>
29510 int
29511 main ()
29512 {
29513 float f; isinf(f);
29514   ;
29515   return 0;
29516 }
29517 _ACEOF
29518 rm -f conftest.$ac_objext
29519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29520   (eval $ac_compile) 2>conftest.er1
29521   ac_status=$?
29522   grep -v '^ *+' conftest.er1 >conftest.err
29523   rm -f conftest.er1
29524   cat conftest.err >&5
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); } &&
29527          { ac_try='test -z "$ac_cxx_werror_flag"
29528                          || test ! -s conftest.err'
29529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530   (eval $ac_try) 2>&5
29531   ac_status=$?
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); }; } &&
29534          { ac_try='test -s conftest.$ac_objext'
29535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536   (eval $ac_try) 2>&5
29537   ac_status=$?
29538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539   (exit $ac_status); }; }; then
29540   ac_cv_func_isinf_in_math_h=yes
29541 else
29542   echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545 ac_cv_func_isinf_in_math_h=no
29546 fi
29547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29548   ac_ext=c
29549 ac_cpp='$CPP $CPPFLAGS'
29550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29553
29554 fi
29555 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29556 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29557
29558 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29559
29560 cat >>confdefs.h <<\_ACEOF
29561 #define HAVE_ISINF_IN_MATH_H 1
29562 _ACEOF
29563
29564 fi
29565
29566 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29567 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29568 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29569   echo $ECHO_N "(cached) $ECHO_C" >&6
29570 else
29571   ac_ext=cc
29572 ac_cpp='$CXXCPP $CPPFLAGS'
29573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29576
29577    cat >conftest.$ac_ext <<_ACEOF
29578 /* confdefs.h.  */
29579 _ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h.  */
29583 #include <cmath>
29584 int
29585 main ()
29586 {
29587 float f; isinf(f);
29588   ;
29589   return 0;
29590 }
29591 _ACEOF
29592 rm -f conftest.$ac_objext
29593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29594   (eval $ac_compile) 2>conftest.er1
29595   ac_status=$?
29596   grep -v '^ *+' conftest.er1 >conftest.err
29597   rm -f conftest.er1
29598   cat conftest.err >&5
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } &&
29601          { ac_try='test -z "$ac_cxx_werror_flag"
29602                          || test ! -s conftest.err'
29603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29604   (eval $ac_try) 2>&5
29605   ac_status=$?
29606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607   (exit $ac_status); }; } &&
29608          { ac_try='test -s conftest.$ac_objext'
29609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29610   (eval $ac_try) 2>&5
29611   ac_status=$?
29612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613   (exit $ac_status); }; }; then
29614   ac_cv_func_isinf_in_cmath=yes
29615 else
29616   echo "$as_me: failed program was:" >&5
29617 sed 's/^/| /' conftest.$ac_ext >&5
29618
29619 ac_cv_func_isinf_in_cmath=no
29620 fi
29621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29622   ac_ext=c
29623 ac_cpp='$CPP $CPPFLAGS'
29624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29627
29628 fi
29629 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29630 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29631
29632 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29633
29634 cat >>confdefs.h <<\_ACEOF
29635 #define HAVE_ISINF_IN_CMATH 1
29636 _ACEOF
29637
29638 fi
29639
29640 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29641 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29642 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29643   echo $ECHO_N "(cached) $ECHO_C" >&6
29644 else
29645   ac_ext=cc
29646 ac_cpp='$CXXCPP $CPPFLAGS'
29647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29650
29651    cat >conftest.$ac_ext <<_ACEOF
29652 /* confdefs.h.  */
29653 _ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h.  */
29657 #include <cmath>
29658 int
29659 main ()
29660 {
29661 float f; std::isinf(f)}
29662   ;
29663   return 0;
29664 }
29665 _ACEOF
29666 rm -f conftest.$ac_objext
29667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29668   (eval $ac_compile) 2>conftest.er1
29669   ac_status=$?
29670   grep -v '^ *+' conftest.er1 >conftest.err
29671   rm -f conftest.er1
29672   cat conftest.err >&5
29673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674   (exit $ac_status); } &&
29675          { ac_try='test -z "$ac_cxx_werror_flag"
29676                          || test ! -s conftest.err'
29677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678   (eval $ac_try) 2>&5
29679   ac_status=$?
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); }; } &&
29682          { ac_try='test -s conftest.$ac_objext'
29683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684   (eval $ac_try) 2>&5
29685   ac_status=$?
29686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687   (exit $ac_status); }; }; then
29688   ac_cv_func_std_isinf_in_cmath=yes
29689 else
29690   echo "$as_me: failed program was:" >&5
29691 sed 's/^/| /' conftest.$ac_ext >&5
29692
29693 ac_cv_func_std_isinf_in_cmath=no
29694 fi
29695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29696   ac_ext=c
29697 ac_cpp='$CPP $CPPFLAGS'
29698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29701
29702 fi
29703 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29704 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29705
29706 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29707
29708 cat >>confdefs.h <<\_ACEOF
29709 #define HAVE_STD_ISINF_IN_CMATH 1
29710 _ACEOF
29711
29712 fi
29713
29714 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29715 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29716 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29717   echo $ECHO_N "(cached) $ECHO_C" >&6
29718 else
29719   ac_ext=cc
29720 ac_cpp='$CXXCPP $CPPFLAGS'
29721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29724
29725    cat >conftest.$ac_ext <<_ACEOF
29726 /* confdefs.h.  */
29727 _ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h.  */
29731 #include <ieeefp.h>
29732 int
29733 main ()
29734 {
29735 float f; finite(f);
29736   ;
29737   return 0;
29738 }
29739 _ACEOF
29740 rm -f conftest.$ac_objext
29741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29742   (eval $ac_compile) 2>conftest.er1
29743   ac_status=$?
29744   grep -v '^ *+' conftest.er1 >conftest.err
29745   rm -f conftest.er1
29746   cat conftest.err >&5
29747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748   (exit $ac_status); } &&
29749          { ac_try='test -z "$ac_cxx_werror_flag"
29750                          || test ! -s conftest.err'
29751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752   (eval $ac_try) 2>&5
29753   ac_status=$?
29754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755   (exit $ac_status); }; } &&
29756          { ac_try='test -s conftest.$ac_objext'
29757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29758   (eval $ac_try) 2>&5
29759   ac_status=$?
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); }; }; then
29762   ac_cv_func_finite_in_ieeefp_h=yes
29763 else
29764   echo "$as_me: failed program was:" >&5
29765 sed 's/^/| /' conftest.$ac_ext >&5
29766
29767 ac_cv_func_finite_in_ieeefp_h=no
29768 fi
29769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29770   ac_ext=c
29771 ac_cpp='$CPP $CPPFLAGS'
29772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29775
29776 fi
29777 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29778 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29779
29780 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29781
29782 cat >>confdefs.h <<\_ACEOF
29783 #define HAVE_FINITE_IN_IEEEFP_H 1
29784 _ACEOF
29785
29786 fi
29787
29788
29789
29790
29791
29792 for ac_header in stdlib.h unistd.h
29793 do
29794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29796   echo "$as_me:$LINENO: checking for $ac_header" >&5
29797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29799   echo $ECHO_N "(cached) $ECHO_C" >&6
29800 fi
29801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29803 else
29804   # Is the header compilable?
29805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29807 cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h.  */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h.  */
29813 $ac_includes_default
29814 #include <$ac_header>
29815 _ACEOF
29816 rm -f conftest.$ac_objext
29817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29818   (eval $ac_compile) 2>conftest.er1
29819   ac_status=$?
29820   grep -v '^ *+' conftest.er1 >conftest.err
29821   rm -f conftest.er1
29822   cat conftest.err >&5
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } &&
29825          { ac_try='test -z "$ac_c_werror_flag"
29826                          || test ! -s conftest.err'
29827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828   (eval $ac_try) 2>&5
29829   ac_status=$?
29830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831   (exit $ac_status); }; } &&
29832          { ac_try='test -s conftest.$ac_objext'
29833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834   (eval $ac_try) 2>&5
29835   ac_status=$?
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); }; }; then
29838   ac_header_compiler=yes
29839 else
29840   echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29842
29843 ac_header_compiler=no
29844 fi
29845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847 echo "${ECHO_T}$ac_header_compiler" >&6
29848
29849 # Is the header present?
29850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29852 cat >conftest.$ac_ext <<_ACEOF
29853 /* confdefs.h.  */
29854 _ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h.  */
29858 #include <$ac_header>
29859 _ACEOF
29860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29862   ac_status=$?
29863   grep -v '^ *+' conftest.er1 >conftest.err
29864   rm -f conftest.er1
29865   cat conftest.err >&5
29866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867   (exit $ac_status); } >/dev/null; then
29868   if test -s conftest.err; then
29869     ac_cpp_err=$ac_c_preproc_warn_flag
29870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29871   else
29872     ac_cpp_err=
29873   fi
29874 else
29875   ac_cpp_err=yes
29876 fi
29877 if test -z "$ac_cpp_err"; then
29878   ac_header_preproc=yes
29879 else
29880   echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29882
29883   ac_header_preproc=no
29884 fi
29885 rm -f conftest.err conftest.$ac_ext
29886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29887 echo "${ECHO_T}$ac_header_preproc" >&6
29888
29889 # So?  What about this header?
29890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29891   yes:no: )
29892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29896     ac_header_preproc=yes
29897     ;;
29898   no:yes:* )
29899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29911     (
29912       cat <<\_ASBOX
29913 ## ----------------------------------- ##
29914 ## Report this to llvmbugs@cs.uiuc.edu ##
29915 ## ----------------------------------- ##
29916 _ASBOX
29917     ) |
29918       sed "s/^/$as_me: WARNING:     /" >&2
29919     ;;
29920 esac
29921 echo "$as_me:$LINENO: checking for $ac_header" >&5
29922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29924   echo $ECHO_N "(cached) $ECHO_C" >&6
29925 else
29926   eval "$as_ac_Header=\$ac_header_preproc"
29927 fi
29928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29930
29931 fi
29932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29933   cat >>confdefs.h <<_ACEOF
29934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29935 _ACEOF
29936
29937 fi
29938
29939 done
29940
29941
29942 for ac_func in getpagesize
29943 do
29944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29945 echo "$as_me:$LINENO: checking for $ac_func" >&5
29946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29947 if eval "test \"\${$as_ac_var+set}\" = set"; then
29948   echo $ECHO_N "(cached) $ECHO_C" >&6
29949 else
29950   cat >conftest.$ac_ext <<_ACEOF
29951 /* confdefs.h.  */
29952 _ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h.  */
29956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29958 #define $ac_func innocuous_$ac_func
29959
29960 /* System header to define __stub macros and hopefully few prototypes,
29961     which can conflict with char $ac_func (); below.
29962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29963     <limits.h> exists even on freestanding compilers.  */
29964
29965 #ifdef __STDC__
29966 # include <limits.h>
29967 #else
29968 # include <assert.h>
29969 #endif
29970
29971 #undef $ac_func
29972
29973 /* Override any gcc2 internal prototype to avoid an error.  */
29974 #ifdef __cplusplus
29975 extern "C"
29976 {
29977 #endif
29978 /* We use char because int might match the return type of a gcc2
29979    builtin and then its argument prototype would still apply.  */
29980 char $ac_func ();
29981 /* The GNU C library defines this for functions which it implements
29982     to always fail with ENOSYS.  Some functions are actually named
29983     something starting with __ and the normal name is an alias.  */
29984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29985 choke me
29986 #else
29987 char (*f) () = $ac_func;
29988 #endif
29989 #ifdef __cplusplus
29990 }
29991 #endif
29992
29993 int
29994 main ()
29995 {
29996 return f != $ac_func;
29997   ;
29998   return 0;
29999 }
30000 _ACEOF
30001 rm -f conftest.$ac_objext conftest$ac_exeext
30002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30003   (eval $ac_link) 2>conftest.er1
30004   ac_status=$?
30005   grep -v '^ *+' conftest.er1 >conftest.err
30006   rm -f conftest.er1
30007   cat conftest.err >&5
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } &&
30010          { ac_try='test -z "$ac_c_werror_flag"
30011                          || test ! -s conftest.err'
30012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013   (eval $ac_try) 2>&5
30014   ac_status=$?
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); }; } &&
30017          { ac_try='test -s conftest$ac_exeext'
30018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019   (eval $ac_try) 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); }; }; then
30023   eval "$as_ac_var=yes"
30024 else
30025   echo "$as_me: failed program was:" >&5
30026 sed 's/^/| /' conftest.$ac_ext >&5
30027
30028 eval "$as_ac_var=no"
30029 fi
30030 rm -f conftest.err conftest.$ac_objext \
30031       conftest$ac_exeext conftest.$ac_ext
30032 fi
30033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30035 if test `eval echo '${'$as_ac_var'}'` = yes; then
30036   cat >>confdefs.h <<_ACEOF
30037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30038 _ACEOF
30039
30040 fi
30041 done
30042
30043 echo "$as_me:$LINENO: checking for working mmap" >&5
30044 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30045 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30046   echo $ECHO_N "(cached) $ECHO_C" >&6
30047 else
30048   if test "$cross_compiling" = yes; then
30049   ac_cv_func_mmap_fixed_mapped=no
30050 else
30051   cat >conftest.$ac_ext <<_ACEOF
30052 /* confdefs.h.  */
30053 _ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h.  */
30057 $ac_includes_default
30058 /* malloc might have been renamed as rpl_malloc. */
30059 #undef malloc
30060
30061 /* Thanks to Mike Haertel and Jim Avera for this test.
30062    Here is a matrix of mmap possibilities:
30063         mmap private not fixed
30064         mmap private fixed at somewhere currently unmapped
30065         mmap private fixed at somewhere already mapped
30066         mmap shared not fixed
30067         mmap shared fixed at somewhere currently unmapped
30068         mmap shared fixed at somewhere already mapped
30069    For private mappings, we should verify that changes cannot be read()
30070    back from the file, nor mmap's back from the file at a different
30071    address.  (There have been systems where private was not correctly
30072    implemented like the infamous i386 svr4.0, and systems where the
30073    VM page cache was not coherent with the file system buffer cache
30074    like early versions of FreeBSD and possibly contemporary NetBSD.)
30075    For shared mappings, we should conversely verify that changes get
30076    propagated back to all the places they're supposed to be.
30077
30078    Grep wants private fixed already mapped.
30079    The main things grep needs to know about mmap are:
30080    * does it exist and is it safe to write into the mmap'd area
30081    * how to use it (BSD variants)  */
30082
30083 #include <fcntl.h>
30084 #include <sys/mman.h>
30085
30086 #if !STDC_HEADERS && !HAVE_STDLIB_H
30087 char *malloc ();
30088 #endif
30089
30090 /* This mess was copied from the GNU getpagesize.h.  */
30091 #if !HAVE_GETPAGESIZE
30092 /* Assume that all systems that can run configure have sys/param.h.  */
30093 # if !HAVE_SYS_PARAM_H
30094 #  define HAVE_SYS_PARAM_H 1
30095 # endif
30096
30097 # ifdef _SC_PAGESIZE
30098 #  define getpagesize() sysconf(_SC_PAGESIZE)
30099 # else /* no _SC_PAGESIZE */
30100 #  if HAVE_SYS_PARAM_H
30101 #   include <sys/param.h>
30102 #   ifdef EXEC_PAGESIZE
30103 #    define getpagesize() EXEC_PAGESIZE
30104 #   else /* no EXEC_PAGESIZE */
30105 #    ifdef NBPG
30106 #     define getpagesize() NBPG * CLSIZE
30107 #     ifndef CLSIZE
30108 #      define CLSIZE 1
30109 #     endif /* no CLSIZE */
30110 #    else /* no NBPG */
30111 #     ifdef NBPC
30112 #      define getpagesize() NBPC
30113 #     else /* no NBPC */
30114 #      ifdef PAGESIZE
30115 #       define getpagesize() PAGESIZE
30116 #      endif /* PAGESIZE */
30117 #     endif /* no NBPC */
30118 #    endif /* no NBPG */
30119 #   endif /* no EXEC_PAGESIZE */
30120 #  else /* no HAVE_SYS_PARAM_H */
30121 #   define getpagesize() 8192   /* punt totally */
30122 #  endif /* no HAVE_SYS_PARAM_H */
30123 # endif /* no _SC_PAGESIZE */
30124
30125 #endif /* no HAVE_GETPAGESIZE */
30126
30127 int
30128 main ()
30129 {
30130   char *data, *data2, *data3;
30131   int i, pagesize;
30132   int fd;
30133
30134   pagesize = getpagesize ();
30135
30136   /* First, make a file with some known garbage in it. */
30137   data = (char *) malloc (pagesize);
30138   if (!data)
30139     exit (1);
30140   for (i = 0; i < pagesize; ++i)
30141     *(data + i) = rand ();
30142   umask (0);
30143   fd = creat ("conftest.mmap", 0600);
30144   if (fd < 0)
30145     exit (1);
30146   if (write (fd, data, pagesize) != pagesize)
30147     exit (1);
30148   close (fd);
30149
30150   /* Next, try to mmap the file at a fixed address which already has
30151      something else allocated at it.  If we can, also make sure that
30152      we see the same garbage.  */
30153   fd = open ("conftest.mmap", O_RDWR);
30154   if (fd < 0)
30155     exit (1);
30156   data2 = (char *) malloc (2 * pagesize);
30157   if (!data2)
30158     exit (1);
30159   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30160   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30161                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30162     exit (1);
30163   for (i = 0; i < pagesize; ++i)
30164     if (*(data + i) != *(data2 + i))
30165       exit (1);
30166
30167   /* Finally, make sure that changes to the mapped area do not
30168      percolate back to the file as seen by read().  (This is a bug on
30169      some variants of i386 svr4.0.)  */
30170   for (i = 0; i < pagesize; ++i)
30171     *(data2 + i) = *(data2 + i) + 1;
30172   data3 = (char *) malloc (pagesize);
30173   if (!data3)
30174     exit (1);
30175   if (read (fd, data3, pagesize) != pagesize)
30176     exit (1);
30177   for (i = 0; i < pagesize; ++i)
30178     if (*(data + i) != *(data3 + i))
30179       exit (1);
30180   close (fd);
30181   exit (0);
30182 }
30183 _ACEOF
30184 rm -f conftest$ac_exeext
30185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30186   (eval $ac_link) 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191   (eval $ac_try) 2>&5
30192   ac_status=$?
30193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194   (exit $ac_status); }; }; then
30195   ac_cv_func_mmap_fixed_mapped=yes
30196 else
30197   echo "$as_me: program exited with status $ac_status" >&5
30198 echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30200
30201 ( exit $ac_status )
30202 ac_cv_func_mmap_fixed_mapped=no
30203 fi
30204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30205 fi
30206 fi
30207 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30208 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30209 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30210
30211 cat >>confdefs.h <<\_ACEOF
30212 #define HAVE_MMAP 1
30213 _ACEOF
30214
30215 fi
30216 rm -f conftest.mmap
30217
30218 echo "$as_me:$LINENO: checking for mmap of files" >&5
30219 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30220 if test "${ac_cv_func_mmap_file+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223    ac_ext=c
30224 ac_cpp='$CPP $CPPFLAGS'
30225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30228
30229   if test "$cross_compiling" = yes; then
30230   ac_cv_func_mmap_file=no
30231 else
30232   cat >conftest.$ac_ext <<_ACEOF
30233
30234     /* confdefs.h.  */
30235 _ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h.  */
30239
30240 #include <sys/types.h>
30241 #include <sys/mman.h>
30242 #include <fcntl.h>
30243
30244 int
30245 main ()
30246 {
30247
30248   int fd;
30249   fd = creat ("foo",0777);
30250   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30251   unlink ("foo");
30252   return (fd != (int) MAP_FAILED);
30253   ;
30254   return 0;
30255 }
30256 _ACEOF
30257 rm -f conftest$ac_exeext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259   (eval $ac_link) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264   (eval $ac_try) 2>&5
30265   ac_status=$?
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); }; }; then
30268   ac_cv_func_mmap_file=yes
30269 else
30270   echo "$as_me: program exited with status $ac_status" >&5
30271 echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30273
30274 ( exit $ac_status )
30275 ac_cv_func_mmap_file=no
30276 fi
30277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30278 fi
30279   ac_ext=c
30280 ac_cpp='$CPP $CPPFLAGS'
30281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30284
30285
30286 fi
30287 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30288 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30289 if test "$ac_cv_func_mmap_file" = yes; then
30290
30291 cat >>confdefs.h <<\_ACEOF
30292 #define HAVE_MMAP_FILE
30293 _ACEOF
30294
30295    MMAP_FILE=yes
30296
30297 fi
30298
30299 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30300 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30301 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30302   echo $ECHO_N "(cached) $ECHO_C" >&6
30303 else
30304   if test "$llvm_cv_os_type" = "Interix" ; then
30305    ac_cv_need_dev_zero_for_mmap=yes
30306  else
30307    ac_cv_need_dev_zero_for_mmap=no
30308  fi
30309
30310 fi
30311 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30312 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30313 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30314
30315 cat >>confdefs.h <<\_ACEOF
30316 #define NEED_DEV_ZERO_FOR_MMAP 1
30317 _ACEOF
30318
30319 fi
30320 echo "$as_me:$LINENO: checking for mprotect" >&5
30321 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30322 if test "${ac_cv_func_mprotect+set}" = set; then
30323   echo $ECHO_N "(cached) $ECHO_C" >&6
30324 else
30325   cat >conftest.$ac_ext <<_ACEOF
30326 /* confdefs.h.  */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h.  */
30331 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30333 #define mprotect innocuous_mprotect
30334
30335 /* System header to define __stub macros and hopefully few prototypes,
30336     which can conflict with char mprotect (); below.
30337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30338     <limits.h> exists even on freestanding compilers.  */
30339
30340 #ifdef __STDC__
30341 # include <limits.h>
30342 #else
30343 # include <assert.h>
30344 #endif
30345
30346 #undef mprotect
30347
30348 /* Override any gcc2 internal prototype to avoid an error.  */
30349 #ifdef __cplusplus
30350 extern "C"
30351 {
30352 #endif
30353 /* We use char because int might match the return type of a gcc2
30354    builtin and then its argument prototype would still apply.  */
30355 char mprotect ();
30356 /* The GNU C library defines this for functions which it implements
30357     to always fail with ENOSYS.  Some functions are actually named
30358     something starting with __ and the normal name is an alias.  */
30359 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30360 choke me
30361 #else
30362 char (*f) () = mprotect;
30363 #endif
30364 #ifdef __cplusplus
30365 }
30366 #endif
30367
30368 int
30369 main ()
30370 {
30371 return f != mprotect;
30372   ;
30373   return 0;
30374 }
30375 _ACEOF
30376 rm -f conftest.$ac_objext conftest$ac_exeext
30377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30378   (eval $ac_link) 2>conftest.er1
30379   ac_status=$?
30380   grep -v '^ *+' conftest.er1 >conftest.err
30381   rm -f conftest.er1
30382   cat conftest.err >&5
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); } &&
30385          { ac_try='test -z "$ac_c_werror_flag"
30386                          || test ! -s conftest.err'
30387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388   (eval $ac_try) 2>&5
30389   ac_status=$?
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); }; } &&
30392          { ac_try='test -s conftest$ac_exeext'
30393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394   (eval $ac_try) 2>&5
30395   ac_status=$?
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); }; }; then
30398   ac_cv_func_mprotect=yes
30399 else
30400   echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30402
30403 ac_cv_func_mprotect=no
30404 fi
30405 rm -f conftest.err conftest.$ac_objext \
30406       conftest$ac_exeext conftest.$ac_ext
30407 fi
30408 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30409 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30410 if test $ac_cv_func_mprotect = yes; then
30411   :
30412 else
30413   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30414 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30415    { (exit 1); exit 1; }; }
30416 fi
30417
30418
30419 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30420 then
30421   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30422 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30423 fi
30424 if test "$ac_cv_func_mmap_file" = "no"
30425 then
30426   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30427 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30428 fi
30429
30430
30431 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30432 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30433 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30434   echo $ECHO_N "(cached) $ECHO_C" >&6
30435 else
30436   llvm_cv_llvmgcc_sanity="no"
30437 if test -x "$LLVMGCC" ; then
30438   cp /dev/null conftest.c
30439   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30440   if test $? -eq 0 ; then
30441     llvm_cv_llvmgcc_sanity="yes"
30442   fi
30443   rm conftest.c
30444 fi
30445 fi
30446 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30447 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30448
30449 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30450   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30451   LLVMCC1=$llvmcc1path
30452
30453   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30454   LLVMCC1PLUS=$llvmcc1pluspath
30455
30456   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30457   LLVMGCCDIR=$llvmgccdir
30458
30459 fi
30460
30461 SHLIBEXT=$libltdl_cv_shlibext
30462
30463
30464 # Translate the various configuration directories and other basic
30465 # information into substitutions that will end up in Makefile.config.in
30466 # that these configured values can be used by the makefiles
30467 eval LLVM_PREFIX="${prefix}";
30468 eval LLVM_BINDIR="${prefix}/bin";
30469 eval LLVM_LIBDIR="${prefix}/lib";
30470 eval LLVM_DATADIR="${prefix}/share/llvm";
30471 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30472 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30473 eval LLVM_INCLUDEDIR="${prefix}/include";
30474 eval LLVM_INFODIR="${prefix}/info";
30475 eval LLVM_MANDIR="${prefix}/man";
30476 LLVM_CONFIGTIME=`date`
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488 # Place the various directores into the config.h file as #defines so that we
30489 # can know about the installation paths within LLVM.
30490
30491 cat >>confdefs.h <<_ACEOF
30492 #define LLVM_PREFIX "$LLVM_PREFIX"
30493 _ACEOF
30494
30495
30496 cat >>confdefs.h <<_ACEOF
30497 #define LLVM_BINDIR "$LLVM_BINDIR"
30498 _ACEOF
30499
30500
30501 cat >>confdefs.h <<_ACEOF
30502 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30503 _ACEOF
30504
30505
30506 cat >>confdefs.h <<_ACEOF
30507 #define LLVM_DATADIR "$LLVM_DATADIR"
30508 _ACEOF
30509
30510
30511 cat >>confdefs.h <<_ACEOF
30512 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30513 _ACEOF
30514
30515
30516 cat >>confdefs.h <<_ACEOF
30517 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30518 _ACEOF
30519
30520
30521 cat >>confdefs.h <<_ACEOF
30522 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30523 _ACEOF
30524
30525
30526 cat >>confdefs.h <<_ACEOF
30527 #define LLVM_INFODIR "$LLVM_INFODIR"
30528 _ACEOF
30529
30530
30531 cat >>confdefs.h <<_ACEOF
30532 #define LLVM_MANDIR "$LLVM_MANDIR"
30533 _ACEOF
30534
30535
30536 cat >>confdefs.h <<_ACEOF
30537 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30538 _ACEOF
30539
30540
30541
30542           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30543
30544           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30545
30546           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30547
30548           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30549
30550           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30551
30552
30553           ac_config_files="$ac_config_files Makefile.config"
30554
30555
30556           ac_config_files="$ac_config_files docs/doxygen.cfg"
30557
30558
30559           ac_config_commands="$ac_config_commands setup"
30560
30561           ac_config_commands="$ac_config_commands Makefile"
30562
30563
30564           ac_config_commands="$ac_config_commands Makefile.common"
30565
30566
30567           ac_config_commands="$ac_config_commands examples/Makefile"
30568
30569
30570           ac_config_commands="$ac_config_commands lib/Makefile"
30571
30572
30573           ac_config_commands="$ac_config_commands runtime/Makefile"
30574
30575
30576           ac_config_commands="$ac_config_commands test/Makefile"
30577
30578
30579           ac_config_commands="$ac_config_commands test/Makefile.tests"
30580
30581
30582           ac_config_commands="$ac_config_commands tools/Makefile"
30583
30584
30585           ac_config_commands="$ac_config_commands utils/Makefile"
30586
30587
30588           ac_config_commands="$ac_config_commands projects/Makefile"
30589
30590
30591
30592 cat >confcache <<\_ACEOF
30593 # This file is a shell script that caches the results of configure
30594 # tests run on this system so they can be shared between configure
30595 # scripts and configure runs, see configure's option --config-cache.
30596 # It is not useful on other systems.  If it contains results you don't
30597 # want to keep, you may remove or edit it.
30598 #
30599 # config.status only pays attention to the cache file if you give it
30600 # the --recheck option to rerun configure.
30601 #
30602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30604 # following values.
30605
30606 _ACEOF
30607
30608 # The following way of writing the cache mishandles newlines in values,
30609 # but we know of no workaround that is simple, portable, and efficient.
30610 # So, don't put newlines in cache variables' values.
30611 # Ultrix sh set writes to stderr and can't be redirected directly,
30612 # and sets the high bit in the cache file unless we assign to the vars.
30613 {
30614   (set) 2>&1 |
30615     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30616     *ac_space=\ *)
30617       # `set' does not quote correctly, so add quotes (double-quote
30618       # substitution turns \\\\ into \\, and sed turns \\ into \).
30619       sed -n \
30620         "s/'/'\\\\''/g;
30621           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30622       ;;
30623     *)
30624       # `set' quotes correctly as required by POSIX, so do not add quotes.
30625       sed -n \
30626         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30627       ;;
30628     esac;
30629 } |
30630   sed '
30631      t clear
30632      : clear
30633      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30634      t end
30635      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30636      : end' >>confcache
30637 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30638   if test -w $cache_file; then
30639     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30640     cat confcache >$cache_file
30641   else
30642     echo "not updating unwritable cache $cache_file"
30643   fi
30644 fi
30645 rm -f confcache
30646
30647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30648 # Let make expand exec_prefix.
30649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30650
30651 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30652 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30653 # trailing colons and then remove the whole line if VPATH becomes empty
30654 # (actually we leave an empty line to preserve line numbers).
30655 if test "x$srcdir" = x.; then
30656   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30657 s/:*\$(srcdir):*/:/;
30658 s/:*\${srcdir}:*/:/;
30659 s/:*@srcdir@:*/:/;
30660 s/^\([^=]*=[     ]*\):*/\1/;
30661 s/:*$//;
30662 s/^[^=]*=[       ]*$//;
30663 }'
30664 fi
30665
30666 DEFS=-DHAVE_CONFIG_H
30667
30668 ac_libobjs=
30669 ac_ltlibobjs=
30670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30671   # 1. Remove the extension, and $U if already installed.
30672   ac_i=`echo "$ac_i" |
30673          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30674   # 2. Add them.
30675   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30676   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30677 done
30678 LIBOBJS=$ac_libobjs
30679
30680 LTLIBOBJS=$ac_ltlibobjs
30681
30682
30683 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30684   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30685 Usually this means the macro was only invoked conditionally." >&5
30686 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30687 Usually this means the macro was only invoked conditionally." >&2;}
30688    { (exit 1); exit 1; }; }
30689 fi
30690 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30691   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30692 Usually this means the macro was only invoked conditionally." >&5
30693 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30694 Usually this means the macro was only invoked conditionally." >&2;}
30695    { (exit 1); exit 1; }; }
30696 fi
30697
30698 : ${CONFIG_STATUS=./config.status}
30699 ac_clean_files_save=$ac_clean_files
30700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30701 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30702 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30703 cat >$CONFIG_STATUS <<_ACEOF
30704 #! $SHELL
30705 # Generated by $as_me.
30706 # Run this file to recreate the current configuration.
30707 # Compiler output produced by configure, useful for debugging
30708 # configure, is in config.log if it exists.
30709
30710 debug=false
30711 ac_cs_recheck=false
30712 ac_cs_silent=false
30713 SHELL=\${CONFIG_SHELL-$SHELL}
30714 _ACEOF
30715
30716 cat >>$CONFIG_STATUS <<\_ACEOF
30717 ## --------------------- ##
30718 ## M4sh Initialization.  ##
30719 ## --------------------- ##
30720
30721 # Be Bourne compatible
30722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30723   emulate sh
30724   NULLCMD=:
30725   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30726   # is contrary to our usage.  Disable this feature.
30727   alias -g '${1+"$@"}'='"$@"'
30728 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30729   set -o posix
30730 fi
30731 DUALCASE=1; export DUALCASE # for MKS sh
30732
30733 # Support unset when possible.
30734 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30735   as_unset=unset
30736 else
30737   as_unset=false
30738 fi
30739
30740
30741 # Work around bugs in pre-3.0 UWIN ksh.
30742 $as_unset ENV MAIL MAILPATH
30743 PS1='$ '
30744 PS2='> '
30745 PS4='+ '
30746
30747 # NLS nuisances.
30748 for as_var in \
30749   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30750   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30751   LC_TELEPHONE LC_TIME
30752 do
30753   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30754     eval $as_var=C; export $as_var
30755   else
30756     $as_unset $as_var
30757   fi
30758 done
30759
30760 # Required to use basename.
30761 if expr a : '\(a\)' >/dev/null 2>&1; then
30762   as_expr=expr
30763 else
30764   as_expr=false
30765 fi
30766
30767 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30768   as_basename=basename
30769 else
30770   as_basename=false
30771 fi
30772
30773
30774 # Name of the executable.
30775 as_me=`$as_basename "$0" ||
30776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30777          X"$0" : 'X\(//\)$' \| \
30778          X"$0" : 'X\(/\)$' \| \
30779          .     : '\(.\)' 2>/dev/null ||
30780 echo X/"$0" |
30781     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30782           /^X\/\(\/\/\)$/{ s//\1/; q; }
30783           /^X\/\(\/\).*/{ s//\1/; q; }
30784           s/.*/./; q'`
30785
30786
30787 # PATH needs CR, and LINENO needs CR and PATH.
30788 # Avoid depending upon Character Ranges.
30789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30792 as_cr_digits='0123456789'
30793 as_cr_alnum=$as_cr_Letters$as_cr_digits
30794
30795 # The user is always right.
30796 if test "${PATH_SEPARATOR+set}" != set; then
30797   echo "#! /bin/sh" >conf$$.sh
30798   echo  "exit 0"   >>conf$$.sh
30799   chmod +x conf$$.sh
30800   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30801     PATH_SEPARATOR=';'
30802   else
30803     PATH_SEPARATOR=:
30804   fi
30805   rm -f conf$$.sh
30806 fi
30807
30808
30809   as_lineno_1=$LINENO
30810   as_lineno_2=$LINENO
30811   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30812   test "x$as_lineno_1" != "x$as_lineno_2" &&
30813   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30814   # Find who we are.  Look in the path if we contain no path at all
30815   # relative or not.
30816   case $0 in
30817     *[\\/]* ) as_myself=$0 ;;
30818     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30819 for as_dir in $PATH
30820 do
30821   IFS=$as_save_IFS
30822   test -z "$as_dir" && as_dir=.
30823   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30824 done
30825
30826        ;;
30827   esac
30828   # We did not find ourselves, most probably we were run as `sh COMMAND'
30829   # in which case we are not to be found in the path.
30830   if test "x$as_myself" = x; then
30831     as_myself=$0
30832   fi
30833   if test ! -f "$as_myself"; then
30834     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30835 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30836    { (exit 1); exit 1; }; }
30837   fi
30838   case $CONFIG_SHELL in
30839   '')
30840     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30841 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30842 do
30843   IFS=$as_save_IFS
30844   test -z "$as_dir" && as_dir=.
30845   for as_base in sh bash ksh sh5; do
30846          case $as_dir in
30847          /*)
30848            if ("$as_dir/$as_base" -c '
30849   as_lineno_1=$LINENO
30850   as_lineno_2=$LINENO
30851   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30852   test "x$as_lineno_1" != "x$as_lineno_2" &&
30853   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30854              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30855              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30856              CONFIG_SHELL=$as_dir/$as_base
30857              export CONFIG_SHELL
30858              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30859            fi;;
30860          esac
30861        done
30862 done
30863 ;;
30864   esac
30865
30866   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30867   # uniformly replaced by the line number.  The first 'sed' inserts a
30868   # line-number line before each line; the second 'sed' does the real
30869   # work.  The second script uses 'N' to pair each line-number line
30870   # with the numbered line, and appends trailing '-' during
30871   # substitution so that $LINENO is not a special case at line end.
30872   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30873   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30874   sed '=' <$as_myself |
30875     sed '
30876       N
30877       s,$,-,
30878       : loop
30879       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30880       t loop
30881       s,-$,,
30882       s,^['$as_cr_digits']*\n,,
30883     ' >$as_me.lineno &&
30884   chmod +x $as_me.lineno ||
30885     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30886 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30887    { (exit 1); exit 1; }; }
30888
30889   # Don't try to exec as it changes $[0], causing all sort of problems
30890   # (the dirname of $[0] is not the place where we might find the
30891   # original and so on.  Autoconf is especially sensible to this).
30892   . ./$as_me.lineno
30893   # Exit status is that of the last command.
30894   exit
30895 }
30896
30897
30898 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30899   *c*,-n*) ECHO_N= ECHO_C='
30900 ' ECHO_T='      ' ;;
30901   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30902   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30903 esac
30904
30905 if expr a : '\(a\)' >/dev/null 2>&1; then
30906   as_expr=expr
30907 else
30908   as_expr=false
30909 fi
30910
30911 rm -f conf$$ conf$$.exe conf$$.file
30912 echo >conf$$.file
30913 if ln -s conf$$.file conf$$ 2>/dev/null; then
30914   # We could just check for DJGPP; but this test a) works b) is more generic
30915   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30916   if test -f conf$$.exe; then
30917     # Don't use ln at all; we don't have any links
30918     as_ln_s='cp -p'
30919   else
30920     as_ln_s='ln -s'
30921   fi
30922 elif ln conf$$.file conf$$ 2>/dev/null; then
30923   as_ln_s=ln
30924 else
30925   as_ln_s='cp -p'
30926 fi
30927 rm -f conf$$ conf$$.exe conf$$.file
30928
30929 if mkdir -p . 2>/dev/null; then
30930   as_mkdir_p=:
30931 else
30932   test -d ./-p && rmdir ./-p
30933   as_mkdir_p=false
30934 fi
30935
30936 as_executable_p="test -f"
30937
30938 # Sed expression to map a string onto a valid CPP name.
30939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30940
30941 # Sed expression to map a string onto a valid variable name.
30942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30943
30944
30945 # IFS
30946 # We need space, tab and new line, in precisely that order.
30947 as_nl='
30948 '
30949 IFS="   $as_nl"
30950
30951 # CDPATH.
30952 $as_unset CDPATH
30953
30954 exec 6>&1
30955
30956 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30957 # report actual input values of CONFIG_FILES etc. instead of their
30958 # values after options handling.  Logging --version etc. is OK.
30959 exec 5>>config.log
30960 {
30961   echo
30962   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30963 ## Running $as_me. ##
30964 _ASBOX
30965 } >&5
30966 cat >&5 <<_CSEOF
30967
30968 This file was extended by llvm $as_me 1.6cvs, which was
30969 generated by GNU Autoconf 2.59.  Invocation command line was
30970
30971   CONFIG_FILES    = $CONFIG_FILES
30972   CONFIG_HEADERS  = $CONFIG_HEADERS
30973   CONFIG_LINKS    = $CONFIG_LINKS
30974   CONFIG_COMMANDS = $CONFIG_COMMANDS
30975   $ $0 $@
30976
30977 _CSEOF
30978 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30979 echo >&5
30980 _ACEOF
30981
30982 # Files that config.status was made for.
30983 if test -n "$ac_config_files"; then
30984   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30985 fi
30986
30987 if test -n "$ac_config_headers"; then
30988   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30989 fi
30990
30991 if test -n "$ac_config_links"; then
30992   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30993 fi
30994
30995 if test -n "$ac_config_commands"; then
30996   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30997 fi
30998
30999 cat >>$CONFIG_STATUS <<\_ACEOF
31000
31001 ac_cs_usage="\
31002 \`$as_me' instantiates files from templates according to the
31003 current configuration.
31004
31005 Usage: $0 [OPTIONS] [FILE]...
31006
31007   -h, --help       print this help, then exit
31008   -V, --version    print version number, then exit
31009   -q, --quiet      do not print progress messages
31010   -d, --debug      don't remove temporary files
31011       --recheck    update $as_me by reconfiguring in the same conditions
31012   --file=FILE[:TEMPLATE]
31013                    instantiate the configuration file FILE
31014   --header=FILE[:TEMPLATE]
31015                    instantiate the configuration header FILE
31016
31017 Configuration files:
31018 $config_files
31019
31020 Configuration headers:
31021 $config_headers
31022
31023 Configuration commands:
31024 $config_commands
31025
31026 Report bugs to <bug-autoconf@gnu.org>."
31027 _ACEOF
31028
31029 cat >>$CONFIG_STATUS <<_ACEOF
31030 ac_cs_version="\\
31031 llvm config.status 1.6cvs
31032 configured by $0, generated by GNU Autoconf 2.59,
31033   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31034
31035 Copyright (C) 2003 Free Software Foundation, Inc.
31036 This config.status script is free software; the Free Software Foundation
31037 gives unlimited permission to copy, distribute and modify it."
31038 srcdir=$srcdir
31039 INSTALL="$INSTALL"
31040 _ACEOF
31041
31042 cat >>$CONFIG_STATUS <<\_ACEOF
31043 # If no file are specified by the user, then we need to provide default
31044 # value.  By we need to know if files were specified by the user.
31045 ac_need_defaults=:
31046 while test $# != 0
31047 do
31048   case $1 in
31049   --*=*)
31050     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31051     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31052     ac_shift=:
31053     ;;
31054   -*)
31055     ac_option=$1
31056     ac_optarg=$2
31057     ac_shift=shift
31058     ;;
31059   *) # This is not an option, so the user has probably given explicit
31060      # arguments.
31061      ac_option=$1
31062      ac_need_defaults=false;;
31063   esac
31064
31065   case $ac_option in
31066   # Handling of the options.
31067 _ACEOF
31068 cat >>$CONFIG_STATUS <<\_ACEOF
31069   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31070     ac_cs_recheck=: ;;
31071   --version | --vers* | -V )
31072     echo "$ac_cs_version"; exit 0 ;;
31073   --he | --h)
31074     # Conflict between --help and --header
31075     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31076 Try \`$0 --help' for more information." >&5
31077 echo "$as_me: error: ambiguous option: $1
31078 Try \`$0 --help' for more information." >&2;}
31079    { (exit 1); exit 1; }; };;
31080   --help | --hel | -h )
31081     echo "$ac_cs_usage"; exit 0 ;;
31082   --debug | --d* | -d )
31083     debug=: ;;
31084   --file | --fil | --fi | --f )
31085     $ac_shift
31086     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31087     ac_need_defaults=false;;
31088   --header | --heade | --head | --hea )
31089     $ac_shift
31090     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31091     ac_need_defaults=false;;
31092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31093   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31094     ac_cs_silent=: ;;
31095
31096   # This is an error.
31097   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31098 Try \`$0 --help' for more information." >&5
31099 echo "$as_me: error: unrecognized option: $1
31100 Try \`$0 --help' for more information." >&2;}
31101    { (exit 1); exit 1; }; } ;;
31102
31103   *) ac_config_targets="$ac_config_targets $1" ;;
31104
31105   esac
31106   shift
31107 done
31108
31109 ac_configure_extra_args=
31110
31111 if $ac_cs_silent; then
31112   exec 6>/dev/null
31113   ac_configure_extra_args="$ac_configure_extra_args --silent"
31114 fi
31115
31116 _ACEOF
31117 cat >>$CONFIG_STATUS <<_ACEOF
31118 if \$ac_cs_recheck; then
31119   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31120   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31121 fi
31122
31123 _ACEOF
31124
31125 cat >>$CONFIG_STATUS <<_ACEOF
31126 #
31127 # INIT-COMMANDS section.
31128 #
31129
31130 llvm_src="${srcdir}"
31131
31132 _ACEOF
31133
31134
31135
31136 cat >>$CONFIG_STATUS <<\_ACEOF
31137 for ac_config_target in $ac_config_targets
31138 do
31139   case "$ac_config_target" in
31140   # Handling of arguments.
31141   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31142   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31143   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31144   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31145   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31146   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31147   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31148   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31149   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31150   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31151   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31152   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31153   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31154   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31155   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31156   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31157   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31158   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31159   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31160 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31161    { (exit 1); exit 1; }; };;
31162   esac
31163 done
31164
31165 # If the user did not use the arguments to specify the items to instantiate,
31166 # then the envvar interface is used.  Set only those that are not.
31167 # We use the long form for the default assignment because of an extremely
31168 # bizarre bug on SunOS 4.1.3.
31169 if $ac_need_defaults; then
31170   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31171   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31172   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31173 fi
31174
31175 # Have a temporary directory for convenience.  Make it in the build tree
31176 # simply because there is no reason to put it here, and in addition,
31177 # creating and moving files from /tmp can sometimes cause problems.
31178 # Create a temporary directory, and hook for its removal unless debugging.
31179 $debug ||
31180 {
31181   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31182   trap '{ (exit 1); exit 1; }' 1 2 13 15
31183 }
31184
31185 # Create a (secure) tmp directory for tmp files.
31186
31187 {
31188   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31189   test -n "$tmp" && test -d "$tmp"
31190 }  ||
31191 {
31192   tmp=./confstat$$-$RANDOM
31193   (umask 077 && mkdir $tmp)
31194 } ||
31195 {
31196    echo "$me: cannot create a temporary directory in ." >&2
31197    { (exit 1); exit 1; }
31198 }
31199
31200 _ACEOF
31201
31202 cat >>$CONFIG_STATUS <<_ACEOF
31203
31204 #
31205 # CONFIG_FILES section.
31206 #
31207
31208 # No need to generate the scripts if there are no CONFIG_FILES.
31209 # This happens for instance when ./config.status config.h
31210 if test -n "\$CONFIG_FILES"; then
31211   # Protect against being on the right side of a sed subst in config.status.
31212   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31213    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31214 s,@SHELL@,$SHELL,;t t
31215 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31216 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31217 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31218 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31219 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31220 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31221 s,@exec_prefix@,$exec_prefix,;t t
31222 s,@prefix@,$prefix,;t t
31223 s,@program_transform_name@,$program_transform_name,;t t
31224 s,@bindir@,$bindir,;t t
31225 s,@sbindir@,$sbindir,;t t
31226 s,@libexecdir@,$libexecdir,;t t
31227 s,@datadir@,$datadir,;t t
31228 s,@sysconfdir@,$sysconfdir,;t t
31229 s,@sharedstatedir@,$sharedstatedir,;t t
31230 s,@localstatedir@,$localstatedir,;t t
31231 s,@libdir@,$libdir,;t t
31232 s,@includedir@,$includedir,;t t
31233 s,@oldincludedir@,$oldincludedir,;t t
31234 s,@infodir@,$infodir,;t t
31235 s,@mandir@,$mandir,;t t
31236 s,@build_alias@,$build_alias,;t t
31237 s,@host_alias@,$host_alias,;t t
31238 s,@target_alias@,$target_alias,;t t
31239 s,@DEFS@,$DEFS,;t t
31240 s,@ECHO_C@,$ECHO_C,;t t
31241 s,@ECHO_N@,$ECHO_N,;t t
31242 s,@ECHO_T@,$ECHO_T,;t t
31243 s,@LIBS@,$LIBS,;t t
31244 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31245 s,@subdirs@,$subdirs,;t t
31246 s,@build@,$build,;t t
31247 s,@build_cpu@,$build_cpu,;t t
31248 s,@build_vendor@,$build_vendor,;t t
31249 s,@build_os@,$build_os,;t t
31250 s,@host@,$host,;t t
31251 s,@host_cpu@,$host_cpu,;t t
31252 s,@host_vendor@,$host_vendor,;t t
31253 s,@host_os@,$host_os,;t t
31254 s,@target@,$target,;t t
31255 s,@target_cpu@,$target_cpu,;t t
31256 s,@target_vendor@,$target_vendor,;t t
31257 s,@target_os@,$target_os,;t t
31258 s,@OS@,$OS,;t t
31259 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31260 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31261 s,@ARCH@,$ARCH,;t t
31262 s,@ENDIAN@,$ENDIAN,;t t
31263 s,@CC@,$CC,;t t
31264 s,@CFLAGS@,$CFLAGS,;t t
31265 s,@LDFLAGS@,$LDFLAGS,;t t
31266 s,@CPPFLAGS@,$CPPFLAGS,;t t
31267 s,@ac_ct_CC@,$ac_ct_CC,;t t
31268 s,@EXEEXT@,$EXEEXT,;t t
31269 s,@OBJEXT@,$OBJEXT,;t t
31270 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31271 s,@JIT@,$JIT,;t t
31272 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31273 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31274 s,@CPP@,$CPP,;t t
31275 s,@CXX@,$CXX,;t t
31276 s,@CXXFLAGS@,$CXXFLAGS,;t t
31277 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31278 s,@LEX@,$LEX,;t t
31279 s,@LEXLIB@,$LEXLIB,;t t
31280 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31281 s,@FLEX@,$FLEX,;t t
31282 s,@YACC@,$YACC,;t t
31283 s,@BISON@,$BISON,;t t
31284 s,@ifGNUmake@,$ifGNUmake,;t t
31285 s,@LN_S@,$LN_S,;t t
31286 s,@CMP@,$CMP,;t t
31287 s,@CP@,$CP,;t t
31288 s,@DATE@,$DATE,;t t
31289 s,@FIND@,$FIND,;t t
31290 s,@GREP@,$GREP,;t t
31291 s,@MKDIR@,$MKDIR,;t t
31292 s,@MV@,$MV,;t t
31293 s,@RANLIB@,$RANLIB,;t t
31294 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31295 s,@RM@,$RM,;t t
31296 s,@SED@,$SED,;t t
31297 s,@TAR@,$TAR,;t t
31298 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31299 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31300 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31301 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31302 s,@BZIP2@,$BZIP2,;t t
31303 s,@DOT@,$DOT,;t t
31304 s,@DOXYGEN@,$DOXYGEN,;t t
31305 s,@ETAGS@,$ETAGS,;t t
31306 s,@GROFF@,$GROFF,;t t
31307 s,@GZIP@,$GZIP,;t t
31308 s,@POD2HTML@,$POD2HTML,;t t
31309 s,@POD2MAN@,$POD2MAN,;t t
31310 s,@RUNTEST@,$RUNTEST,;t t
31311 s,@TCLSH@,$TCLSH,;t t
31312 s,@ZIP@,$ZIP,;t t
31313 s,@EGREP@,$EGREP,;t t
31314 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31315 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31316 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31317 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31318 s,@LIBADD_DL@,$LIBADD_DL,;t t
31319 s,@ECHO@,$ECHO,;t t
31320 s,@AR@,$AR,;t t
31321 s,@ac_ct_AR@,$ac_ct_AR,;t t
31322 s,@STRIP@,$STRIP,;t t
31323 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31324 s,@CXXCPP@,$CXXCPP,;t t
31325 s,@F77@,$F77,;t t
31326 s,@FFLAGS@,$FFLAGS,;t t
31327 s,@ac_ct_F77@,$ac_ct_F77,;t t
31328 s,@LIBTOOL@,$LIBTOOL,;t t
31329 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31330 s,@LLVMGCC@,$LLVMGCC,;t t
31331 s,@LLVMGXX@,$LLVMGXX,;t t
31332 s,@ALLOCA@,$ALLOCA,;t t
31333 s,@MMAP_FILE@,$MMAP_FILE,;t t
31334 s,@LLVMCC1@,$LLVMCC1,;t t
31335 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31336 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31337 s,@SHLIBEXT@,$SHLIBEXT,;t t
31338 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31339 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31340 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31341 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31342 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31343 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31344 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31345 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31346 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31347 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31348 s,@LIBOBJS@,$LIBOBJS,;t t
31349 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31350 CEOF
31351
31352 _ACEOF
31353
31354   cat >>$CONFIG_STATUS <<\_ACEOF
31355   # Split the substitutions into bite-sized pieces for seds with
31356   # small command number limits, like on Digital OSF/1 and HP-UX.
31357   ac_max_sed_lines=48
31358   ac_sed_frag=1 # Number of current file.
31359   ac_beg=1 # First line for current file.
31360   ac_end=$ac_max_sed_lines # Line after last line for current file.
31361   ac_more_lines=:
31362   ac_sed_cmds=
31363   while $ac_more_lines; do
31364     if test $ac_beg -gt 1; then
31365       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31366     else
31367       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31368     fi
31369     if test ! -s $tmp/subs.frag; then
31370       ac_more_lines=false
31371     else
31372       # The purpose of the label and of the branching condition is to
31373       # speed up the sed processing (if there are no `@' at all, there
31374       # is no need to browse any of the substitutions).
31375       # These are the two extra sed commands mentioned above.
31376       (echo ':t
31377   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31378       if test -z "$ac_sed_cmds"; then
31379         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31380       else
31381         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31382       fi
31383       ac_sed_frag=`expr $ac_sed_frag + 1`
31384       ac_beg=$ac_end
31385       ac_end=`expr $ac_end + $ac_max_sed_lines`
31386     fi
31387   done
31388   if test -z "$ac_sed_cmds"; then
31389     ac_sed_cmds=cat
31390   fi
31391 fi # test -n "$CONFIG_FILES"
31392
31393 _ACEOF
31394 cat >>$CONFIG_STATUS <<\_ACEOF
31395 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31396   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31397   case $ac_file in
31398   - | *:- | *:-:* ) # input from stdin
31399         cat >$tmp/stdin
31400         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31401         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31402   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31403         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31404   * )   ac_file_in=$ac_file.in ;;
31405   esac
31406
31407   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31408   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31410          X"$ac_file" : 'X\(//\)[^/]' \| \
31411          X"$ac_file" : 'X\(//\)$' \| \
31412          X"$ac_file" : 'X\(/\)' \| \
31413          .     : '\(.\)' 2>/dev/null ||
31414 echo X"$ac_file" |
31415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31416           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31417           /^X\(\/\/\)$/{ s//\1/; q; }
31418           /^X\(\/\).*/{ s//\1/; q; }
31419           s/.*/./; q'`
31420   { if $as_mkdir_p; then
31421     mkdir -p "$ac_dir"
31422   else
31423     as_dir="$ac_dir"
31424     as_dirs=
31425     while test ! -d "$as_dir"; do
31426       as_dirs="$as_dir $as_dirs"
31427       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31429          X"$as_dir" : 'X\(//\)[^/]' \| \
31430          X"$as_dir" : 'X\(//\)$' \| \
31431          X"$as_dir" : 'X\(/\)' \| \
31432          .     : '\(.\)' 2>/dev/null ||
31433 echo X"$as_dir" |
31434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31435           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31436           /^X\(\/\/\)$/{ s//\1/; q; }
31437           /^X\(\/\).*/{ s//\1/; q; }
31438           s/.*/./; q'`
31439     done
31440     test ! -n "$as_dirs" || mkdir $as_dirs
31441   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31443    { (exit 1); exit 1; }; }; }
31444
31445   ac_builddir=.
31446
31447 if test "$ac_dir" != .; then
31448   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31449   # A "../" for each directory in $ac_dir_suffix.
31450   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31451 else
31452   ac_dir_suffix= ac_top_builddir=
31453 fi
31454
31455 case $srcdir in
31456   .)  # No --srcdir option.  We are building in place.
31457     ac_srcdir=.
31458     if test -z "$ac_top_builddir"; then
31459        ac_top_srcdir=.
31460     else
31461        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31462     fi ;;
31463   [\\/]* | ?:[\\/]* )  # Absolute path.
31464     ac_srcdir=$srcdir$ac_dir_suffix;
31465     ac_top_srcdir=$srcdir ;;
31466   *) # Relative path.
31467     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31468     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31469 esac
31470
31471 # Do not use `cd foo && pwd` to compute absolute paths, because
31472 # the directories may not exist.
31473 case `pwd` in
31474 .) ac_abs_builddir="$ac_dir";;
31475 *)
31476   case "$ac_dir" in
31477   .) ac_abs_builddir=`pwd`;;
31478   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31479   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31480   esac;;
31481 esac
31482 case $ac_abs_builddir in
31483 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31484 *)
31485   case ${ac_top_builddir}. in
31486   .) ac_abs_top_builddir=$ac_abs_builddir;;
31487   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31488   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31489   esac;;
31490 esac
31491 case $ac_abs_builddir in
31492 .) ac_abs_srcdir=$ac_srcdir;;
31493 *)
31494   case $ac_srcdir in
31495   .) ac_abs_srcdir=$ac_abs_builddir;;
31496   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31497   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31498   esac;;
31499 esac
31500 case $ac_abs_builddir in
31501 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31502 *)
31503   case $ac_top_srcdir in
31504   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31505   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31506   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31507   esac;;
31508 esac
31509
31510
31511   case $INSTALL in
31512   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31513   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31514   esac
31515
31516   if test x"$ac_file" != x-; then
31517     { echo "$as_me:$LINENO: creating $ac_file" >&5
31518 echo "$as_me: creating $ac_file" >&6;}
31519     rm -f "$ac_file"
31520   fi
31521   # Let's still pretend it is `configure' which instantiates (i.e., don't
31522   # use $as_me), people would be surprised to read:
31523   #    /* config.h.  Generated by config.status.  */
31524   if test x"$ac_file" = x-; then
31525     configure_input=
31526   else
31527     configure_input="$ac_file.  "
31528   fi
31529   configure_input=$configure_input"Generated from `echo $ac_file_in |
31530                                      sed 's,.*/,,'` by configure."
31531
31532   # First look for the input files in the build tree, otherwise in the
31533   # src tree.
31534   ac_file_inputs=`IFS=:
31535     for f in $ac_file_in; do
31536       case $f in
31537       -) echo $tmp/stdin ;;
31538       [\\/$]*)
31539          # Absolute (can't be DOS-style, as IFS=:)
31540          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31541 echo "$as_me: error: cannot find input file: $f" >&2;}
31542    { (exit 1); exit 1; }; }
31543          echo "$f";;
31544       *) # Relative
31545          if test -f "$f"; then
31546            # Build tree
31547            echo "$f"
31548          elif test -f "$srcdir/$f"; then
31549            # Source tree
31550            echo "$srcdir/$f"
31551          else
31552            # /dev/null tree
31553            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31554 echo "$as_me: error: cannot find input file: $f" >&2;}
31555    { (exit 1); exit 1; }; }
31556          fi;;
31557       esac
31558     done` || { (exit 1); exit 1; }
31559 _ACEOF
31560 cat >>$CONFIG_STATUS <<_ACEOF
31561   sed "$ac_vpsub
31562 $extrasub
31563 _ACEOF
31564 cat >>$CONFIG_STATUS <<\_ACEOF
31565 :t
31566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31567 s,@configure_input@,$configure_input,;t t
31568 s,@srcdir@,$ac_srcdir,;t t
31569 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31570 s,@top_srcdir@,$ac_top_srcdir,;t t
31571 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31572 s,@builddir@,$ac_builddir,;t t
31573 s,@abs_builddir@,$ac_abs_builddir,;t t
31574 s,@top_builddir@,$ac_top_builddir,;t t
31575 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31576 s,@INSTALL@,$ac_INSTALL,;t t
31577 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31578   rm -f $tmp/stdin
31579   if test x"$ac_file" != x-; then
31580     mv $tmp/out $ac_file
31581   else
31582     cat $tmp/out
31583     rm -f $tmp/out
31584   fi
31585
31586 done
31587 _ACEOF
31588 cat >>$CONFIG_STATUS <<\_ACEOF
31589
31590 #
31591 # CONFIG_HEADER section.
31592 #
31593
31594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31596 #
31597 # ac_d sets the value in "#define NAME VALUE" lines.
31598 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31599 ac_dB='[         ].*$,\1#\2'
31600 ac_dC=' '
31601 ac_dD=',;t'
31602 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31603 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31604 ac_uB='$,\1#\2define\3'
31605 ac_uC=' '
31606 ac_uD=',;t'
31607
31608 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31609   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31610   case $ac_file in
31611   - | *:- | *:-:* ) # input from stdin
31612         cat >$tmp/stdin
31613         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31614         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31615   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31616         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31617   * )   ac_file_in=$ac_file.in ;;
31618   esac
31619
31620   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31621 echo "$as_me: creating $ac_file" >&6;}
31622
31623   # First look for the input files in the build tree, otherwise in the
31624   # src tree.
31625   ac_file_inputs=`IFS=:
31626     for f in $ac_file_in; do
31627       case $f in
31628       -) echo $tmp/stdin ;;
31629       [\\/$]*)
31630          # Absolute (can't be DOS-style, as IFS=:)
31631          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31632 echo "$as_me: error: cannot find input file: $f" >&2;}
31633    { (exit 1); exit 1; }; }
31634          # Do quote $f, to prevent DOS paths from being IFS'd.
31635          echo "$f";;
31636       *) # Relative
31637          if test -f "$f"; then
31638            # Build tree
31639            echo "$f"
31640          elif test -f "$srcdir/$f"; then
31641            # Source tree
31642            echo "$srcdir/$f"
31643          else
31644            # /dev/null tree
31645            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31646 echo "$as_me: error: cannot find input file: $f" >&2;}
31647    { (exit 1); exit 1; }; }
31648          fi;;
31649       esac
31650     done` || { (exit 1); exit 1; }
31651   # Remove the trailing spaces.
31652   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31653
31654 _ACEOF
31655
31656 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31657 # `conftest.undefs', that substitutes the proper values into
31658 # config.h.in to produce config.h.  The first handles `#define'
31659 # templates, and the second `#undef' templates.
31660 # And first: Protect against being on the right side of a sed subst in
31661 # config.status.  Protect against being in an unquoted here document
31662 # in config.status.
31663 rm -f conftest.defines conftest.undefs
31664 # Using a here document instead of a string reduces the quoting nightmare.
31665 # Putting comments in sed scripts is not portable.
31666 #
31667 # `end' is used to avoid that the second main sed command (meant for
31668 # 0-ary CPP macros) applies to n-ary macro definitions.
31669 # See the Autoconf documentation for `clear'.
31670 cat >confdef2sed.sed <<\_ACEOF
31671 s/[\\&,]/\\&/g
31672 s,[\\$`],\\&,g
31673 t clear
31674 : clear
31675 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31676 t end
31677 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31678 : end
31679 _ACEOF
31680 # If some macros were called several times there might be several times
31681 # the same #defines, which is useless.  Nevertheless, we may not want to
31682 # sort them, since we want the *last* AC-DEFINE to be honored.
31683 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31684 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31685 rm -f confdef2sed.sed
31686
31687 # This sed command replaces #undef with comments.  This is necessary, for
31688 # example, in the case of _POSIX_SOURCE, which is predefined and required
31689 # on some systems where configure will not decide to define it.
31690 cat >>conftest.undefs <<\_ACEOF
31691 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31692 _ACEOF
31693
31694 # Break up conftest.defines because some shells have a limit on the size
31695 # of here documents, and old seds have small limits too (100 cmds).
31696 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31697 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31698 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31699 echo '  :' >>$CONFIG_STATUS
31700 rm -f conftest.tail
31701 while grep . conftest.defines >/dev/null
31702 do
31703   # Write a limited-size here document to $tmp/defines.sed.
31704   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31705   # Speed up: don't consider the non `#define' lines.
31706   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31707   # Work around the forget-to-reset-the-flag bug.
31708   echo 't clr' >>$CONFIG_STATUS
31709   echo ': clr' >>$CONFIG_STATUS
31710   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31711   echo 'CEOF
31712   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31713   rm -f $tmp/in
31714   mv $tmp/out $tmp/in
31715 ' >>$CONFIG_STATUS
31716   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31717   rm -f conftest.defines
31718   mv conftest.tail conftest.defines
31719 done
31720 rm -f conftest.defines
31721 echo '  fi # grep' >>$CONFIG_STATUS
31722 echo >>$CONFIG_STATUS
31723
31724 # Break up conftest.undefs because some shells have a limit on the size
31725 # of here documents, and old seds have small limits too (100 cmds).
31726 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31727 rm -f conftest.tail
31728 while grep . conftest.undefs >/dev/null
31729 do
31730   # Write a limited-size here document to $tmp/undefs.sed.
31731   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31732   # Speed up: don't consider the non `#undef'
31733   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31734   # Work around the forget-to-reset-the-flag bug.
31735   echo 't clr' >>$CONFIG_STATUS
31736   echo ': clr' >>$CONFIG_STATUS
31737   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31738   echo 'CEOF
31739   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31740   rm -f $tmp/in
31741   mv $tmp/out $tmp/in
31742 ' >>$CONFIG_STATUS
31743   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31744   rm -f conftest.undefs
31745   mv conftest.tail conftest.undefs
31746 done
31747 rm -f conftest.undefs
31748
31749 cat >>$CONFIG_STATUS <<\_ACEOF
31750   # Let's still pretend it is `configure' which instantiates (i.e., don't
31751   # use $as_me), people would be surprised to read:
31752   #    /* config.h.  Generated by config.status.  */
31753   if test x"$ac_file" = x-; then
31754     echo "/* Generated by configure.  */" >$tmp/config.h
31755   else
31756     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31757   fi
31758   cat $tmp/in >>$tmp/config.h
31759   rm -f $tmp/in
31760   if test x"$ac_file" != x-; then
31761     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31762       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31763 echo "$as_me: $ac_file is unchanged" >&6;}
31764     else
31765       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31767          X"$ac_file" : 'X\(//\)[^/]' \| \
31768          X"$ac_file" : 'X\(//\)$' \| \
31769          X"$ac_file" : 'X\(/\)' \| \
31770          .     : '\(.\)' 2>/dev/null ||
31771 echo X"$ac_file" |
31772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31773           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31774           /^X\(\/\/\)$/{ s//\1/; q; }
31775           /^X\(\/\).*/{ s//\1/; q; }
31776           s/.*/./; q'`
31777       { if $as_mkdir_p; then
31778     mkdir -p "$ac_dir"
31779   else
31780     as_dir="$ac_dir"
31781     as_dirs=
31782     while test ! -d "$as_dir"; do
31783       as_dirs="$as_dir $as_dirs"
31784       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31786          X"$as_dir" : 'X\(//\)[^/]' \| \
31787          X"$as_dir" : 'X\(//\)$' \| \
31788          X"$as_dir" : 'X\(/\)' \| \
31789          .     : '\(.\)' 2>/dev/null ||
31790 echo X"$as_dir" |
31791     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31792           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31793           /^X\(\/\/\)$/{ s//\1/; q; }
31794           /^X\(\/\).*/{ s//\1/; q; }
31795           s/.*/./; q'`
31796     done
31797     test ! -n "$as_dirs" || mkdir $as_dirs
31798   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31799 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31800    { (exit 1); exit 1; }; }; }
31801
31802       rm -f $ac_file
31803       mv $tmp/config.h $ac_file
31804     fi
31805   else
31806     cat $tmp/config.h
31807     rm -f $tmp/config.h
31808   fi
31809 done
31810 _ACEOF
31811 cat >>$CONFIG_STATUS <<\_ACEOF
31812
31813 #
31814 # CONFIG_COMMANDS section.
31815 #
31816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31817   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31818   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31819   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31821          X"$ac_dest" : 'X\(//\)[^/]' \| \
31822          X"$ac_dest" : 'X\(//\)$' \| \
31823          X"$ac_dest" : 'X\(/\)' \| \
31824          .     : '\(.\)' 2>/dev/null ||
31825 echo X"$ac_dest" |
31826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31827           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31828           /^X\(\/\/\)$/{ s//\1/; q; }
31829           /^X\(\/\).*/{ s//\1/; q; }
31830           s/.*/./; q'`
31831   { if $as_mkdir_p; then
31832     mkdir -p "$ac_dir"
31833   else
31834     as_dir="$ac_dir"
31835     as_dirs=
31836     while test ! -d "$as_dir"; do
31837       as_dirs="$as_dir $as_dirs"
31838       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31840          X"$as_dir" : 'X\(//\)[^/]' \| \
31841          X"$as_dir" : 'X\(//\)$' \| \
31842          X"$as_dir" : 'X\(/\)' \| \
31843          .     : '\(.\)' 2>/dev/null ||
31844 echo X"$as_dir" |
31845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31846           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31847           /^X\(\/\/\)$/{ s//\1/; q; }
31848           /^X\(\/\).*/{ s//\1/; q; }
31849           s/.*/./; q'`
31850     done
31851     test ! -n "$as_dirs" || mkdir $as_dirs
31852   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31854    { (exit 1); exit 1; }; }; }
31855
31856   ac_builddir=.
31857
31858 if test "$ac_dir" != .; then
31859   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31860   # A "../" for each directory in $ac_dir_suffix.
31861   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31862 else
31863   ac_dir_suffix= ac_top_builddir=
31864 fi
31865
31866 case $srcdir in
31867   .)  # No --srcdir option.  We are building in place.
31868     ac_srcdir=.
31869     if test -z "$ac_top_builddir"; then
31870        ac_top_srcdir=.
31871     else
31872        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31873     fi ;;
31874   [\\/]* | ?:[\\/]* )  # Absolute path.
31875     ac_srcdir=$srcdir$ac_dir_suffix;
31876     ac_top_srcdir=$srcdir ;;
31877   *) # Relative path.
31878     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31879     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31880 esac
31881
31882 # Do not use `cd foo && pwd` to compute absolute paths, because
31883 # the directories may not exist.
31884 case `pwd` in
31885 .) ac_abs_builddir="$ac_dir";;
31886 *)
31887   case "$ac_dir" in
31888   .) ac_abs_builddir=`pwd`;;
31889   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31890   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31891   esac;;
31892 esac
31893 case $ac_abs_builddir in
31894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31895 *)
31896   case ${ac_top_builddir}. in
31897   .) ac_abs_top_builddir=$ac_abs_builddir;;
31898   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31899   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31900   esac;;
31901 esac
31902 case $ac_abs_builddir in
31903 .) ac_abs_srcdir=$ac_srcdir;;
31904 *)
31905   case $ac_srcdir in
31906   .) ac_abs_srcdir=$ac_abs_builddir;;
31907   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31908   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31909   esac;;
31910 esac
31911 case $ac_abs_builddir in
31912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31913 *)
31914   case $ac_top_srcdir in
31915   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31916   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31917   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31918   esac;;
31919 esac
31920
31921
31922   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31923 echo "$as_me: executing $ac_dest commands" >&6;}
31924   case $ac_dest in
31925     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31926    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31927     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31928    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31929     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31930    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31931     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31932    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31933     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31934    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31935     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31936    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31937     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31938    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31939     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31940    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31941     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31942    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31943     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31944    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31945   esac
31946 done
31947 _ACEOF
31948
31949 cat >>$CONFIG_STATUS <<\_ACEOF
31950
31951 { (exit 0); exit 0; }
31952 _ACEOF
31953 chmod +x $CONFIG_STATUS
31954 ac_clean_files=$ac_clean_files_save
31955
31956
31957 # configure is writing to config.log, and then calls config.status.
31958 # config.status does its own redirection, appending to config.log.
31959 # Unfortunately, on DOS this fails, as config.log is still kept open
31960 # by configure, so config.status won't be able to write to it; its
31961 # output is simply discarded.  So we exec the FD to /dev/null,
31962 # effectively closing config.log, so it can be properly (re)opened and
31963 # appended to by config.status.  When coming back to configure, we
31964 # need to make the FD available again.
31965 if test "$no_create" != yes; then
31966   ac_cs_success=:
31967   ac_config_status_args=
31968   test "$silent" = yes &&
31969     ac_config_status_args="$ac_config_status_args --quiet"
31970   exec 5>/dev/null
31971   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31972   exec 5>>config.log
31973   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31974   # would make configure fail if this is the last instruction.
31975   $ac_cs_success || { (exit 1); exit 1; }
31976 fi
31977
31978 #
31979 # CONFIG_SUBDIRS section.
31980 #
31981 if test "$no_recursion" != yes; then
31982
31983   # Remove --cache-file and --srcdir arguments so they do not pile up.
31984   ac_sub_configure_args=
31985   ac_prev=
31986   for ac_arg in $ac_configure_args; do
31987     if test -n "$ac_prev"; then
31988       ac_prev=
31989       continue
31990     fi
31991     case $ac_arg in
31992     -cache-file | --cache-file | --cache-fil | --cache-fi \
31993     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31994       ac_prev=cache_file ;;
31995     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31996     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31997     | --c=*)
31998       ;;
31999     --config-cache | -C)
32000       ;;
32001     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32002       ac_prev=srcdir ;;
32003     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32004       ;;
32005     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32006       ac_prev=prefix ;;
32007     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32008       ;;
32009     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32010     esac
32011   done
32012
32013   # Always prepend --prefix to ensure using the same prefix
32014   # in subdir configurations.
32015   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32016
32017   ac_popdir=`pwd`
32018   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32019
32020     # Do not complain, so a configure script can configure whichever
32021     # parts of a large source tree are present.
32022     test -d $srcdir/$ac_dir || continue
32023
32024     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32025 echo "$as_me: configuring in $ac_dir" >&6;}
32026     { if $as_mkdir_p; then
32027     mkdir -p "$ac_dir"
32028   else
32029     as_dir="$ac_dir"
32030     as_dirs=
32031     while test ! -d "$as_dir"; do
32032       as_dirs="$as_dir $as_dirs"
32033       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32035          X"$as_dir" : 'X\(//\)[^/]' \| \
32036          X"$as_dir" : 'X\(//\)$' \| \
32037          X"$as_dir" : 'X\(/\)' \| \
32038          .     : '\(.\)' 2>/dev/null ||
32039 echo X"$as_dir" |
32040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32041           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32042           /^X\(\/\/\)$/{ s//\1/; q; }
32043           /^X\(\/\).*/{ s//\1/; q; }
32044           s/.*/./; q'`
32045     done
32046     test ! -n "$as_dirs" || mkdir $as_dirs
32047   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32049    { (exit 1); exit 1; }; }; }
32050
32051     ac_builddir=.
32052
32053 if test "$ac_dir" != .; then
32054   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32055   # A "../" for each directory in $ac_dir_suffix.
32056   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32057 else
32058   ac_dir_suffix= ac_top_builddir=
32059 fi
32060
32061 case $srcdir in
32062   .)  # No --srcdir option.  We are building in place.
32063     ac_srcdir=.
32064     if test -z "$ac_top_builddir"; then
32065        ac_top_srcdir=.
32066     else
32067        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32068     fi ;;
32069   [\\/]* | ?:[\\/]* )  # Absolute path.
32070     ac_srcdir=$srcdir$ac_dir_suffix;
32071     ac_top_srcdir=$srcdir ;;
32072   *) # Relative path.
32073     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32074     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32075 esac
32076
32077 # Do not use `cd foo && pwd` to compute absolute paths, because
32078 # the directories may not exist.
32079 case `pwd` in
32080 .) ac_abs_builddir="$ac_dir";;
32081 *)
32082   case "$ac_dir" in
32083   .) ac_abs_builddir=`pwd`;;
32084   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32085   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32086   esac;;
32087 esac
32088 case $ac_abs_builddir in
32089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32090 *)
32091   case ${ac_top_builddir}. in
32092   .) ac_abs_top_builddir=$ac_abs_builddir;;
32093   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32094   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32095   esac;;
32096 esac
32097 case $ac_abs_builddir in
32098 .) ac_abs_srcdir=$ac_srcdir;;
32099 *)
32100   case $ac_srcdir in
32101   .) ac_abs_srcdir=$ac_abs_builddir;;
32102   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32103   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32104   esac;;
32105 esac
32106 case $ac_abs_builddir in
32107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32108 *)
32109   case $ac_top_srcdir in
32110   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32111   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32112   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32113   esac;;
32114 esac
32115
32116
32117     cd $ac_dir
32118
32119     # Check for guested configure; otherwise get Cygnus style configure.
32120     if test -f $ac_srcdir/configure.gnu; then
32121       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32122     elif test -f $ac_srcdir/configure; then
32123       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32124     elif test -f $ac_srcdir/configure.in; then
32125       ac_sub_configure=$ac_configure
32126     else
32127       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32129       ac_sub_configure=
32130     fi
32131
32132     # The recursion is here.
32133     if test -n "$ac_sub_configure"; then
32134       # Make the cache file name correct relative to the subdirectory.
32135       case $cache_file in
32136       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32137       *) # Relative path.
32138         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32139       esac
32140
32141       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32142 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32143       # The eval makes quoting arguments work.
32144       eval $ac_sub_configure $ac_sub_configure_args \
32145            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32146         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32147 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32148    { (exit 1); exit 1; }; }
32149     fi
32150
32151     cd $ac_popdir
32152   done
32153 fi
32154
32155
32156 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32157  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32158 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32159  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32160 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32161  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32162 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32163  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32164 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32165  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32166 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32167 fi