Changes for ffs lib call simplification:
[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.5cvs.
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.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
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 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.5cvs 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.5cvs:";;
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.5cvs
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.5cvs, 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   *-*-interix*)
1718     llvm_cv_os_type="Interix"
1719     llvm_cv_platform_type="Unix" ;;
1720   *-*-linux*)
1721     llvm_cv_os_type="Linux"
1722     llvm_cv_platform_type="Unix" ;;
1723   *-*-solaris*)
1724     llvm_cv_os_type="SunOS"
1725     llvm_cv_platform_type="Unix" ;;
1726   *-*-win32*)
1727     llvm_cv_os_type="Win32"
1728     llvm_cv_platform_type="Win32" ;;
1729   *-*-mingw*)
1730     llvm_cv_os_type="MingW"
1731     llvm_cv_platform_type="Win32" ;;
1732   *)
1733     llvm_cv_os_type="Unknown"
1734     llvm_cv_platform_type="Unknown" ;;
1735 esac
1736 fi
1737 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1738 echo "${ECHO_T}$llvm_cv_os_type" >&6
1739
1740 if test "$llvm_cv_os_type" = "Unknown" ; then
1741   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1742 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1743    { (exit 1); exit 1; }; }
1744 fi
1745
1746 OS=$llvm_cv_os_type
1747
1748
1749 case $llvm_cv_platform_type in
1750   Unix)
1751
1752 cat >>confdefs.h <<\_ACEOF
1753 #define LLVM_ON_UNIX 1
1754 _ACEOF
1755
1756     LLVM_ON_UNIX=1
1757
1758     LLVM_ON_WIN32=0
1759
1760     ;;
1761   Win32)
1762
1763 cat >>confdefs.h <<\_ACEOF
1764 #define LLVM_ON_WIN32 1
1765 _ACEOF
1766
1767     LLVM_ON_UNIX=0
1768
1769     LLVM_ON_WIN32=1
1770
1771     ;;
1772 esac
1773
1774 case $target in
1775   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1776
1777   ;;
1778 esac
1779
1780 echo "$as_me:$LINENO: checking target architecture" >&5
1781 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1782 if test "${llvm_cv_target_arch+set}" = set; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   case $target in
1786   i?86-*)                 llvm_cv_target_arch="x86" ;;
1787   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1788   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1789   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1790   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1791   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1792   *)                      llvm_cv_target_arch="Unknown" ;;
1793 esac
1794 fi
1795 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1796 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1797
1798 if test "$llvm_cv_target_arch" = "Unknown" ; then
1799   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1800 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1801 fi
1802
1803 ARCH=$llvm_cv_target_arch
1804
1805
1806 ac_ext=c
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 if test -n "$ac_tool_prefix"; then
1812   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817   echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819   if test -n "$CC"; then
1820   ac_cv_prog_CC="$CC" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825   IFS=$as_save_IFS
1826   test -z "$as_dir" && as_dir=.
1827   for ac_exec_ext in '' $ac_executable_extensions; do
1828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831     break 2
1832   fi
1833 done
1834 done
1835
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840   echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843   echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 fi
1848 if test -z "$ac_cv_prog_CC"; then
1849   ac_ct_CC=$CC
1850   # Extract the first word of "gcc", so it can be a program name with args.
1851 set dummy gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855   echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857   if test -n "$ac_ct_CC"; then
1858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863   IFS=$as_save_IFS
1864   test -z "$as_dir" && as_dir=.
1865   for ac_exec_ext in '' $ac_executable_extensions; do
1866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867     ac_cv_prog_ac_ct_CC="gcc"
1868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869     break 2
1870   fi
1871 done
1872 done
1873
1874 fi
1875 fi
1876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1880 else
1881   echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885   CC=$ac_ct_CC
1886 else
1887   CC="$ac_cv_prog_CC"
1888 fi
1889
1890 if test -z "$CC"; then
1891   if test -n "$ac_tool_prefix"; then
1892   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}cc; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897   echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899   if test -n "$CC"; then
1900   ac_cv_prog_CC="$CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905   IFS=$as_save_IFS
1906   test -z "$as_dir" && as_dir=.
1907   for ac_exec_ext in '' $ac_executable_extensions; do
1908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909     ac_cv_prog_CC="${ac_tool_prefix}cc"
1910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911     break 2
1912   fi
1913 done
1914 done
1915
1916 fi
1917 fi
1918 CC=$ac_cv_prog_CC
1919 if test -n "$CC"; then
1920   echo "$as_me:$LINENO: result: $CC" >&5
1921 echo "${ECHO_T}$CC" >&6
1922 else
1923   echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1925 fi
1926
1927 fi
1928 if test -z "$ac_cv_prog_CC"; then
1929   ac_ct_CC=$CC
1930   # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   if test -n "$ac_ct_CC"; then
1938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945   for ac_exec_ext in '' $ac_executable_extensions; do
1946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947     ac_cv_prog_ac_ct_CC="cc"
1948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949     break 2
1950   fi
1951 done
1952 done
1953
1954 fi
1955 fi
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1960 else
1961   echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965   CC=$ac_ct_CC
1966 else
1967   CC="$ac_cv_prog_CC"
1968 fi
1969
1970 fi
1971 if test -z "$CC"; then
1972   # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$CC"; then
1980   ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982   ac_prog_rejected=no
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991        ac_prog_rejected=yes
1992        continue
1993      fi
1994     ac_cv_prog_CC="cc"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000
2001 if test $ac_prog_rejected = yes; then
2002   # We found a bogon in the path, so make sure we never use it.
2003   set dummy $ac_cv_prog_CC
2004   shift
2005   if test $# != 0; then
2006     # We chose a different compiler from the bogus one.
2007     # However, it has the same basename, so the bogon will be chosen
2008     # first if we set CC to just the basename; use the full file name.
2009     shift
2010     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2011   fi
2012 fi
2013 fi
2014 fi
2015 CC=$ac_cv_prog_CC
2016 if test -n "$CC"; then
2017   echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2019 else
2020   echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2022 fi
2023
2024 fi
2025 if test -z "$CC"; then
2026   if test -n "$ac_tool_prefix"; then
2027   for ac_prog in cl
2028   do
2029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$CC"; then
2037   ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042   IFS=$as_save_IFS
2043   test -z "$as_dir" && as_dir=.
2044   for ac_exec_ext in '' $ac_executable_extensions; do
2045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052
2053 fi
2054 fi
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057   echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2059 else
2060   echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2062 fi
2063
2064     test -n "$CC" && break
2065   done
2066 fi
2067 if test -z "$CC"; then
2068   ac_ct_CC=$CC
2069   for ac_prog in cl
2070 do
2071   # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$ac_ct_CC"; then
2079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088     ac_cv_prog_ac_ct_CC="$ac_prog"
2089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090     break 2
2091   fi
2092 done
2093 done
2094
2095 fi
2096 fi
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2101 else
2102   echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2104 fi
2105
2106   test -n "$ac_ct_CC" && break
2107 done
2108
2109   CC=$ac_ct_CC
2110 fi
2111
2112 fi
2113
2114
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119    { (exit 1); exit 1; }; }
2120
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO:" \
2123      "checking for C compiler version" >&5
2124 ac_compiler=`set X $ac_compile; echo $2`
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126   (eval $ac_compiler --version </dev/null >&5) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131   (eval $ac_compiler -v </dev/null >&5) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136   (eval $ac_compiler -V </dev/null >&5) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140
2141 cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h.  */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h.  */
2147
2148 int
2149 main ()
2150 {
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 ac_clean_files_save=$ac_clean_files
2157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2160 # of exeext.
2161 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165   (eval $ac_link_default) 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }; then
2169   # Find the output, starting from the most likely.  This scheme is
2170 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171 # resort.
2172
2173 # Be careful to initialize this variable, since it used to be cached.
2174 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175 ac_cv_exeext=
2176 # b.out is created by i960 compilers.
2177 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2178 do
2179   test -f "$ac_file" || continue
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2182         ;;
2183     conftest.$ac_ext )
2184         # This is the source file.
2185         ;;
2186     [ab].out )
2187         # We found the default executable, but exeext='' is most
2188         # certainly right.
2189         break;;
2190     *.* )
2191         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192         # FIXME: I believe we export ac_cv_exeext for Libtool,
2193         # but it would be cool to find out if it's true.  Does anybody
2194         # maintain Libtool? --akim.
2195         export ac_cv_exeext
2196         break;;
2197     * )
2198         break;;
2199   esac
2200 done
2201 else
2202   echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&2;}
2209    { (exit 77); exit 77; }; }
2210 fi
2211
2212 ac_exeext=$ac_cv_exeext
2213 echo "$as_me:$LINENO: result: $ac_file" >&5
2214 echo "${ECHO_T}$ac_file" >&6
2215
2216 # Check the compiler produces executables we can run.  If not, either
2217 # the compiler is broken, or we cross compile.
2218 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2220 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221 # If not cross compiling, check that we can run a simple program.
2222 if test "$cross_compiling" != yes; then
2223   if { ac_try='./$ac_file'
2224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225   (eval $ac_try) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }; }; then
2229     cross_compiling=no
2230   else
2231     if test "$cross_compiling" = maybe; then
2232         cross_compiling=yes
2233     else
2234         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240    { (exit 1); exit 1; }; }
2241     fi
2242   fi
2243 fi
2244 echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6
2246
2247 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248 ac_clean_files=$ac_clean_files_save
2249 # Check the compiler produces executables we can run.  If not, either
2250 # the compiler is broken, or we cross compile.
2251 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2253 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6
2255
2256 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2259   (eval $ac_link) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; then
2263   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2265 # work properly (i.e., refer to `conftest.exe'), while it won't with
2266 # `rm'.
2267 for ac_file in conftest.exe conftest conftest.*; do
2268   test -f "$ac_file" || continue
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2271     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272           export ac_cv_exeext
2273           break;;
2274     * ) break;;
2275   esac
2276 done
2277 else
2278   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284
2285 rm -f conftest$ac_cv_exeext
2286 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6
2288
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2291 ac_exeext=$EXEEXT
2292 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2294 if test "${ac_cv_objext+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.o conftest.obj
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; then
2318   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2319   case $ac_file in
2320     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2321     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2322        break;;
2323   esac
2324 done
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }
2334 fi
2335
2336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2337 fi
2338 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2339 echo "${ECHO_T}$ac_cv_objext" >&6
2340 OBJEXT=$ac_cv_objext
2341 ac_objext=$OBJEXT
2342 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2343 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2344 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h.  */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h.  */
2353
2354 int
2355 main ()
2356 {
2357 #ifndef __GNUC__
2358        choke me
2359 #endif
2360
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>conftest.er1
2368   ac_status=$?
2369   grep -v '^ *+' conftest.er1 >conftest.err
2370   rm -f conftest.er1
2371   cat conftest.err >&5
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); } &&
2374          { ac_try='test -z "$ac_c_werror_flag"
2375                          || test ! -s conftest.err'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; } &&
2381          { ac_try='test -s conftest.$ac_objext'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; }; then
2387   ac_compiler_gnu=yes
2388 else
2389   echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 ac_compiler_gnu=no
2393 fi
2394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2396
2397 fi
2398 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2399 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2400 GCC=`test $ac_compiler_gnu = yes && echo yes`
2401 ac_test_CFLAGS=${CFLAGS+set}
2402 ac_save_CFLAGS=$CFLAGS
2403 CFLAGS="-g"
2404 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2405 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2406 if test "${ac_cv_prog_cc_g+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415
2416 int
2417 main ()
2418 {
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426   (eval $ac_compile) 2>conftest.er1
2427   ac_status=$?
2428   grep -v '^ *+' conftest.er1 >conftest.err
2429   rm -f conftest.er1
2430   cat conftest.err >&5
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -z "$ac_c_werror_flag"
2434                          || test ! -s conftest.err'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; } &&
2440          { ac_try='test -s conftest.$ac_objext'
2441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442   (eval $ac_try) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; }; then
2446   ac_cv_prog_cc_g=yes
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 ac_cv_prog_cc_g=no
2452 fi
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454 fi
2455 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2456 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2457 if test "$ac_test_CFLAGS" = set; then
2458   CFLAGS=$ac_save_CFLAGS
2459 elif test $ac_cv_prog_cc_g = yes; then
2460   if test "$GCC" = yes; then
2461     CFLAGS="-g -O2"
2462   else
2463     CFLAGS="-g"
2464   fi
2465 else
2466   if test "$GCC" = yes; then
2467     CFLAGS="-O2"
2468   else
2469     CFLAGS=
2470   fi
2471 fi
2472 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2473 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2474 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   ac_cv_prog_cc_stdc=no
2478 ac_save_CC=$CC
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485 #include <stdarg.h>
2486 #include <stdio.h>
2487 #include <sys/types.h>
2488 #include <sys/stat.h>
2489 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2490 struct buf { int x; };
2491 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2492 static char *e (p, i)
2493      char **p;
2494      int i;
2495 {
2496   return p[i];
2497 }
2498 static char *f (char * (*g) (char **, int), char **p, ...)
2499 {
2500   char *s;
2501   va_list v;
2502   va_start (v,p);
2503   s = g (p, va_arg (v,int));
2504   va_end (v);
2505   return s;
2506 }
2507
2508 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2509    function prototypes and stuff, but not '\xHH' hex character constants.
2510    These don't provoke an error unfortunately, instead are silently treated
2511    as 'x'.  The following induces an error, until -std1 is added to get
2512    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2513    array size at least.  It's necessary to write '\x00'==0 to get something
2514    that's true only with -std1.  */
2515 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2516
2517 int test (int i, double x);
2518 struct s1 {int (*f) (int a);};
2519 struct s2 {int (*f) (double a);};
2520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2521 int argc;
2522 char **argv;
2523 int
2524 main ()
2525 {
2526 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 # Don't try gcc -ansi; that turns off useful extensions and
2532 # breaks some systems' header files.
2533 # AIX                   -qlanglvl=ansi
2534 # Ultrix and OSF/1      -std1
2535 # HP-UX 10.20 and later -Ae
2536 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2537 # SVR4                  -Xc -D__EXTENSIONS__
2538 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2539 do
2540   CC="$ac_save_CC $ac_arg"
2541   rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543   (eval $ac_compile) 2>conftest.er1
2544   ac_status=$?
2545   grep -v '^ *+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -z "$ac_c_werror_flag"
2551                          || test ! -s conftest.err'
2552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553   (eval $ac_try) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; } &&
2557          { ac_try='test -s conftest.$ac_objext'
2558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559   (eval $ac_try) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; }; then
2563   ac_cv_prog_cc_stdc=$ac_arg
2564 break
2565 else
2566   echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 fi
2570 rm -f conftest.err conftest.$ac_objext
2571 done
2572 rm -f conftest.$ac_ext conftest.$ac_objext
2573 CC=$ac_save_CC
2574
2575 fi
2576
2577 case "x$ac_cv_prog_cc_stdc" in
2578   x|xno)
2579     echo "$as_me:$LINENO: result: none needed" >&5
2580 echo "${ECHO_T}none needed" >&6 ;;
2581   *)
2582     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2583 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2584     CC="$CC $ac_cv_prog_cc_stdc" ;;
2585 esac
2586
2587 # Some people use a C++ compiler to compile C.  Since we use `exit',
2588 # in C++ we need to declare it.  In case someone uses the same compiler
2589 # for both compiling C and C++ we need to have the C++ compiler decide
2590 # the declaration of exit, since it's the most demanding environment.
2591 cat >conftest.$ac_ext <<_ACEOF
2592 #ifndef __cplusplus
2593   choke me
2594 #endif
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   for ac_declaration in \
2619    '' \
2620    'extern "C" void std::exit (int) throw (); using std::exit;' \
2621    'extern "C" void std::exit (int); using std::exit;' \
2622    'extern "C" void exit (int) throw ();' \
2623    'extern "C" void exit (int);' \
2624    'void exit (int);'
2625 do
2626   cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632 $ac_declaration
2633 #include <stdlib.h>
2634 int
2635 main ()
2636 {
2637 exit (42);
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644   (eval $ac_compile) 2>conftest.er1
2645   ac_status=$?
2646   grep -v '^ *+' conftest.er1 >conftest.err
2647   rm -f conftest.er1
2648   cat conftest.err >&5
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -z "$ac_c_werror_flag"
2652                          || test ! -s conftest.err'
2653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654   (eval $ac_try) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; } &&
2658          { ac_try='test -s conftest.$ac_objext'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; }; then
2664   :
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 continue
2670 fi
2671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672   cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678 $ac_declaration
2679 int
2680 main ()
2681 {
2682 exit (42);
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689   (eval $ac_compile) 2>conftest.er1
2690   ac_status=$?
2691   grep -v '^ *+' conftest.er1 >conftest.err
2692   rm -f conftest.er1
2693   cat conftest.err >&5
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } &&
2696          { ac_try='test -z "$ac_c_werror_flag"
2697                          || test ! -s conftest.err'
2698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699   (eval $ac_try) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }; } &&
2703          { ac_try='test -s conftest.$ac_objext'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; }; then
2709   break
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 fi
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 done
2717 rm -f conftest*
2718 if test -n "$ac_declaration"; then
2719   echo '#ifdef __cplusplus' >>confdefs.h
2720   echo $ac_declaration      >>confdefs.h
2721   echo '#endif'             >>confdefs.h
2722 fi
2723
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
2736
2737 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2738 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2739 if test "${ac_cv_c_bigendian+set}" = set; then
2740   echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742   # See if sys/param.h defines the BYTE_ORDER macro.
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2751
2752 int
2753 main ()
2754 {
2755 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2756  bogus endian macros
2757 #endif
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_c_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   # It does; now see whether it defined to BIG_ENDIAN or not.
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h.  */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h.  */
2792 #include <sys/types.h>
2793 #include <sys/param.h>
2794
2795 int
2796 main ()
2797 {
2798 #if BYTE_ORDER != BIG_ENDIAN
2799  not big endian
2800 #endif
2801
2802   ;
2803   return 0;
2804 }
2805 _ACEOF
2806 rm -f conftest.$ac_objext
2807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808   (eval $ac_compile) 2>conftest.er1
2809   ac_status=$?
2810   grep -v '^ *+' conftest.er1 >conftest.err
2811   rm -f conftest.er1
2812   cat conftest.err >&5
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); } &&
2815          { ac_try='test -z "$ac_c_werror_flag"
2816                          || test ! -s conftest.err'
2817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; } &&
2822          { ac_try='test -s conftest.$ac_objext'
2823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824   (eval $ac_try) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; }; then
2828   ac_cv_c_bigendian=yes
2829 else
2830   echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 ac_cv_c_bigendian=no
2834 fi
2835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2836 else
2837   echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 # It does not; compile a test program.
2841 if test "$cross_compiling" = yes; then
2842   # try to guess the endianness by grepping values into an object file
2843   ac_cv_c_bigendian=unknown
2844   cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2851 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2852 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2853 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2854 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2855 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2856 int
2857 main ()
2858 {
2859  _ascii (); _ebcdic ();
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866   (eval $ac_compile) 2>conftest.er1
2867   ac_status=$?
2868   grep -v '^ *+' conftest.er1 >conftest.err
2869   rm -f conftest.er1
2870   cat conftest.err >&5
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); } &&
2873          { ac_try='test -z "$ac_c_werror_flag"
2874                          || test ! -s conftest.err'
2875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; } &&
2880          { ac_try='test -s conftest.$ac_objext'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; }; then
2886   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2887   ac_cv_c_bigendian=yes
2888 fi
2889 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2890   if test "$ac_cv_c_bigendian" = unknown; then
2891     ac_cv_c_bigendian=no
2892   else
2893     # finding both strings is unlikely to happen, but who knows?
2894     ac_cv_c_bigendian=unknown
2895   fi
2896 fi
2897 else
2898   echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 else
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 int
2911 main ()
2912 {
2913   /* Are we little or big endian?  From Harbison&Steele.  */
2914   union
2915   {
2916     long l;
2917     char c[sizeof (long)];
2918   } u;
2919   u.l = 1;
2920   exit (u.c[sizeof (long) - 1] == 1);
2921 }
2922 _ACEOF
2923 rm -f conftest$ac_exeext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925   (eval $ac_link) 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934   ac_cv_c_bigendian=no
2935 else
2936   echo "$as_me: program exited with status $ac_status" >&5
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 ( exit $ac_status )
2941 ac_cv_c_bigendian=yes
2942 fi
2943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2944 fi
2945 fi
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 fi
2948 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2949 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2950 case $ac_cv_c_bigendian in
2951   yes)
2952     ENDIAN=big
2953  ;;
2954   no)
2955     ENDIAN=little
2956  ;;
2957   *)
2958     { { echo "$as_me:$LINENO: error: unknown endianness
2959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2960 echo "$as_me: error: unknown endianness
2961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2962    { (exit 1); exit 1; }; } ;;
2963 esac
2964
2965
2966
2967 # Check whether --enable-optimized or --disable-optimized was given.
2968 if test "${enable_optimized+set}" = set; then
2969   enableval="$enable_optimized"
2970
2971 else
2972   enableval=no
2973 fi;
2974 if test ${enableval} = "no" ; then
2975   ENABLE_OPTIMIZED=
2976
2977 else
2978   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2979
2980 fi
2981
2982 # Check whether --enable-jit or --disable-jit was given.
2983 if test "${enable_jit+set}" = set; then
2984   enableval="$enable_jit"
2985
2986 else
2987   enableval=default
2988 fi;
2989 if test ${enableval} = "no"
2990 then
2991   JIT=
2992
2993 else
2994   case "$llvm_cv_target_arch" in
2995     x86)     JIT=TARGET_HAS_JIT=1
2996  ;;
2997     Sparc)   JIT=TARGET_HAS_JIT=1
2998  ;;
2999     PowerPC) JIT=TARGET_HAS_JIT=1
3000  ;;
3001     x86_64)  JIT=
3002  ;;
3003     Alpha)   JIT=
3004  ;;
3005     IA64)    JIT=
3006  ;;
3007     *)       JIT=
3008  ;;
3009   esac
3010 fi
3011
3012 # Check whether --enable-doxygen or --disable-doxygen was given.
3013 if test "${enable_doxygen+set}" = set; then
3014   enableval="$enable_doxygen"
3015
3016 else
3017   enableval=default
3018 fi;
3019 case "$enableval" in
3020   yes) ENABLE_DOXYGEN=1
3021  ;;
3022   no)  ENABLE_DOXYGEN=0
3023  ;;
3024   default) ENABLE_DOXYGEN=0
3025  ;;
3026   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3027 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3028    { (exit 1); exit 1; }; } ;;
3029 esac
3030
3031 TARGETS_TO_BUILD=""
3032 # Check whether --enable-targets or --disable-targets was given.
3033 if test "${enable_targets+set}" = set; then
3034   enableval="$enable_targets"
3035
3036 else
3037   enableval=all
3038 fi;
3039 case "$enableval" in
3040   all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3041   host-only)
3042     case "$llvm_cv_target_arch" in
3043       x86)     TARGETS_TO_BUILD="X86" ;;
3044       x86_64)  TARGETS_TO_BUILD="X86" ;;
3045       Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3046       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3047       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3048       IA64)    TARGETS_TO_BUILD="IA64" ;;
3049       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3050 echo "$as_me: error: Can not set target to build" >&2;}
3051    { (exit 1); exit 1; }; } ;;
3052     esac
3053     ;;
3054   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3055       case "$a_target" in
3056         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3057         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3058         sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3059         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3060         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3061         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3062         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3063         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3064 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3065    { (exit 1); exit 1; }; } ;;
3066       esac
3067   done
3068   ;;
3069 esac
3070 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3071 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3072
3073
3074
3075 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3076 if test "${with_llvmgccdir+set}" = set; then
3077   withval="$with_llvmgccdir"
3078
3079 else
3080   withval=default
3081 fi;
3082 case "$withval" in
3083   default) WITH_LLVMGCCDIR=default ;;
3084   /*)      WITH_LLVMGCCDIR=$withval ;;
3085   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3086 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3087    { (exit 1); exit 1; }; } ;;
3088 esac
3089
3090
3091
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3098 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3099 # On Suns, sometimes $CPP names a directory.
3100 if test -n "$CPP" && test -d "$CPP"; then
3101   CPP=
3102 fi
3103 if test -z "$CPP"; then
3104   if test "${ac_cv_prog_CPP+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107       # Double quotes because CPP needs to be expanded
3108     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3109     do
3110       ac_preproc_ok=false
3111 for ac_c_preproc_warn_flag in '' yes
3112 do
3113   # Use a header file that comes with gcc, so configuring glibc
3114   # with a fresh cross-compiler works.
3115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116   # <limits.h> exists even on freestanding compilers.
3117   # On the NeXT, cc -E runs the code through the compiler's parser,
3118   # not just through cpp. "Syntax error" is here to catch this case.
3119   cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125 #ifdef __STDC__
3126 # include <limits.h>
3127 #else
3128 # include <assert.h>
3129 #endif
3130                      Syntax error
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } >/dev/null; then
3140   if test -s conftest.err; then
3141     ac_cpp_err=$ac_c_preproc_warn_flag
3142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143   else
3144     ac_cpp_err=
3145   fi
3146 else
3147   ac_cpp_err=yes
3148 fi
3149 if test -z "$ac_cpp_err"; then
3150   :
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155   # Broken: fails on valid input.
3156 continue
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159
3160   # OK, works on sane cases.  Now check whether non-existent headers
3161   # can be detected and how.
3162   cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <ac_nonexistent.h>
3169 _ACEOF
3170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } >/dev/null; then
3178   if test -s conftest.err; then
3179     ac_cpp_err=$ac_c_preproc_warn_flag
3180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3181   else
3182     ac_cpp_err=
3183   fi
3184 else
3185   ac_cpp_err=yes
3186 fi
3187 if test -z "$ac_cpp_err"; then
3188   # Broken: success on invalid input.
3189 continue
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194   # Passes both tests.
3195 ac_preproc_ok=:
3196 break
3197 fi
3198 rm -f conftest.err conftest.$ac_ext
3199
3200 done
3201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202 rm -f conftest.err conftest.$ac_ext
3203 if $ac_preproc_ok; then
3204   break
3205 fi
3206
3207     done
3208     ac_cv_prog_CPP=$CPP
3209
3210 fi
3211   CPP=$ac_cv_prog_CPP
3212 else
3213   ac_cv_prog_CPP=$CPP
3214 fi
3215 echo "$as_me:$LINENO: result: $CPP" >&5
3216 echo "${ECHO_T}$CPP" >&6
3217 ac_preproc_ok=false
3218 for ac_c_preproc_warn_flag in '' yes
3219 do
3220   # Use a header file that comes with gcc, so configuring glibc
3221   # with a fresh cross-compiler works.
3222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223   # <limits.h> exists even on freestanding compilers.
3224   # On the NeXT, cc -E runs the code through the compiler's parser,
3225   # not just through cpp. "Syntax error" is here to catch this case.
3226   cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h.  */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h.  */
3232 #ifdef __STDC__
3233 # include <limits.h>
3234 #else
3235 # include <assert.h>
3236 #endif
3237                      Syntax error
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   :
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262   # Broken: fails on valid input.
3263 continue
3264 fi
3265 rm -f conftest.err conftest.$ac_ext
3266
3267   # OK, works on sane cases.  Now check whether non-existent headers
3268   # can be detected and how.
3269   cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275 #include <ac_nonexistent.h>
3276 _ACEOF
3277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } >/dev/null; then
3285   if test -s conftest.err; then
3286     ac_cpp_err=$ac_c_preproc_warn_flag
3287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288   else
3289     ac_cpp_err=
3290   fi
3291 else
3292   ac_cpp_err=yes
3293 fi
3294 if test -z "$ac_cpp_err"; then
3295   # Broken: success on invalid input.
3296 continue
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Passes both tests.
3302 ac_preproc_ok=:
3303 break
3304 fi
3305 rm -f conftest.err conftest.$ac_ext
3306
3307 done
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3311   :
3312 else
3313   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3316 See \`config.log' for more details." >&2;}
3317    { (exit 1); exit 1; }; }
3318 fi
3319
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 if test -n "$ac_tool_prefix"; then
3332   for ac_prog in gcc
3333   do
3334     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_prog_CC+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347   IFS=$as_save_IFS
3348   test -z "$as_dir" && as_dir=.
3349   for ac_exec_ext in '' $ac_executable_extensions; do
3350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353     break 2
3354   fi
3355 done
3356 done
3357
3358 fi
3359 fi
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362   echo "$as_me:$LINENO: result: $CC" >&5
3363 echo "${ECHO_T}$CC" >&6
3364 else
3365   echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3367 fi
3368
3369     test -n "$CC" && break
3370   done
3371 fi
3372 if test -z "$CC"; then
3373   ac_ct_CC=$CC
3374   for ac_prog in gcc
3375 do
3376   # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if test -n "$ac_ct_CC"; then
3384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_ac_ct_CC="$ac_prog"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400 fi
3401 fi
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405 echo "${ECHO_T}$ac_ct_CC" >&6
3406 else
3407   echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3409 fi
3410
3411   test -n "$ac_ct_CC" && break
3412 done
3413
3414   CC=$ac_ct_CC
3415 fi
3416
3417
3418 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details." >&5
3420 echo "$as_me: error: no acceptable C compiler found in \$PATH
3421 See \`config.log' for more details." >&2;}
3422    { (exit 1); exit 1; }; }
3423
3424 # Provide some information about the compiler.
3425 echo "$as_me:$LINENO:" \
3426      "checking for C compiler version" >&5
3427 ac_compiler=`set X $ac_compile; echo $2`
3428 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3429   (eval $ac_compiler --version </dev/null >&5) 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); }
3433 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3434   (eval $ac_compiler -v </dev/null >&5) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }
3438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3439   (eval $ac_compiler -V </dev/null >&5) 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }
3443
3444 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3445 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3446 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459 #ifndef __GNUC__
3460        choke me
3461 #endif
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469   (eval $ac_compile) 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } &&
3476          { ac_try='test -z "$ac_c_werror_flag"
3477                          || test ! -s conftest.err'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; } &&
3483          { ac_try='test -s conftest.$ac_objext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   ac_compiler_gnu=yes
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_compiler_gnu=no
3495 fi
3496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498
3499 fi
3500 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3501 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3502 GCC=`test $ac_compiler_gnu = yes && echo yes`
3503 ac_test_CFLAGS=${CFLAGS+set}
3504 ac_save_CFLAGS=$CFLAGS
3505 CFLAGS="-g"
3506 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3507 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3508 if test "${ac_cv_prog_cc_g+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528   (eval $ac_compile) 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -z "$ac_c_werror_flag"
3536                          || test ! -s conftest.err'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; } &&
3542          { ac_try='test -s conftest.$ac_objext'
3543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544   (eval $ac_try) 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; }; then
3548   ac_cv_prog_cc_g=yes
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 ac_cv_prog_cc_g=no
3554 fi
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3558 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3559 if test "$ac_test_CFLAGS" = set; then
3560   CFLAGS=$ac_save_CFLAGS
3561 elif test $ac_cv_prog_cc_g = yes; then
3562   if test "$GCC" = yes; then
3563     CFLAGS="-g -O2"
3564   else
3565     CFLAGS="-g"
3566   fi
3567 else
3568   if test "$GCC" = yes; then
3569     CFLAGS="-O2"
3570   else
3571     CFLAGS=
3572   fi
3573 fi
3574 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3575 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3576 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   ac_cv_prog_cc_stdc=no
3580 ac_save_CC=$CC
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 #include <stdarg.h>
3588 #include <stdio.h>
3589 #include <sys/types.h>
3590 #include <sys/stat.h>
3591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3592 struct buf { int x; };
3593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594 static char *e (p, i)
3595      char **p;
3596      int i;
3597 {
3598   return p[i];
3599 }
3600 static char *f (char * (*g) (char **, int), char **p, ...)
3601 {
3602   char *s;
3603   va_list v;
3604   va_start (v,p);
3605   s = g (p, va_arg (v,int));
3606   va_end (v);
3607   return s;
3608 }
3609
3610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3611    function prototypes and stuff, but not '\xHH' hex character constants.
3612    These don't provoke an error unfortunately, instead are silently treated
3613    as 'x'.  The following induces an error, until -std1 is added to get
3614    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3615    array size at least.  It's necessary to write '\x00'==0 to get something
3616    that's true only with -std1.  */
3617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3625 int
3626 main ()
3627 {
3628 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 # Don't try gcc -ansi; that turns off useful extensions and
3634 # breaks some systems' header files.
3635 # AIX                   -qlanglvl=ansi
3636 # Ultrix and OSF/1      -std1
3637 # HP-UX 10.20 and later -Ae
3638 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3639 # SVR4                  -Xc -D__EXTENSIONS__
3640 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3641 do
3642   CC="$ac_save_CC $ac_arg"
3643   rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645   (eval $ac_compile) 2>conftest.er1
3646   ac_status=$?
3647   grep -v '^ *+' conftest.er1 >conftest.err
3648   rm -f conftest.er1
3649   cat conftest.err >&5
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } &&
3652          { ac_try='test -z "$ac_c_werror_flag"
3653                          || test ! -s conftest.err'
3654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; } &&
3659          { ac_try='test -s conftest.$ac_objext'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665   ac_cv_prog_cc_stdc=$ac_arg
3666 break
3667 else
3668   echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 fi
3672 rm -f conftest.err conftest.$ac_objext
3673 done
3674 rm -f conftest.$ac_ext conftest.$ac_objext
3675 CC=$ac_save_CC
3676
3677 fi
3678
3679 case "x$ac_cv_prog_cc_stdc" in
3680   x|xno)
3681     echo "$as_me:$LINENO: result: none needed" >&5
3682 echo "${ECHO_T}none needed" >&6 ;;
3683   *)
3684     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3685 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3686     CC="$CC $ac_cv_prog_cc_stdc" ;;
3687 esac
3688
3689 # Some people use a C++ compiler to compile C.  Since we use `exit',
3690 # in C++ we need to declare it.  In case someone uses the same compiler
3691 # for both compiling C and C++ we need to have the C++ compiler decide
3692 # the declaration of exit, since it's the most demanding environment.
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #ifndef __cplusplus
3695   choke me
3696 #endif
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700   (eval $ac_compile) 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } &&
3707          { ac_try='test -z "$ac_c_werror_flag"
3708                          || test ! -s conftest.err'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; } &&
3714          { ac_try='test -s conftest.$ac_objext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   for ac_declaration in \
3721    '' \
3722    'extern "C" void std::exit (int) throw (); using std::exit;' \
3723    'extern "C" void std::exit (int); using std::exit;' \
3724    'extern "C" void exit (int) throw ();' \
3725    'extern "C" void exit (int);' \
3726    'void exit (int);'
3727 do
3728   cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734 $ac_declaration
3735 #include <stdlib.h>
3736 int
3737 main ()
3738 {
3739 exit (42);
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746   (eval $ac_compile) 2>conftest.er1
3747   ac_status=$?
3748   grep -v '^ *+' conftest.er1 >conftest.err
3749   rm -f conftest.er1
3750   cat conftest.err >&5
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } &&
3753          { ac_try='test -z "$ac_c_werror_flag"
3754                          || test ! -s conftest.err'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; } &&
3760          { ac_try='test -s conftest.$ac_objext'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; }; then
3766   :
3767 else
3768   echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 continue
3772 fi
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 $ac_declaration
3781 int
3782 main ()
3783 {
3784 exit (42);
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 rm -f conftest.$ac_objext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791   (eval $ac_compile) 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } &&
3798          { ac_try='test -z "$ac_c_werror_flag"
3799                          || test ! -s conftest.err'
3800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801   (eval $ac_try) 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); }; } &&
3805          { ac_try='test -s conftest.$ac_objext'
3806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807   (eval $ac_try) 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; }; then
3811   break
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 fi
3817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818 done
3819 rm -f conftest*
3820 if test -n "$ac_declaration"; then
3821   echo '#ifdef __cplusplus' >>confdefs.h
3822   echo $ac_declaration      >>confdefs.h
3823   echo '#endif'             >>confdefs.h
3824 fi
3825
3826 else
3827   echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 fi
3831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_ext=c
3833 ac_cpp='$CPP $CPPFLAGS'
3834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837
3838 ac_ext=cc
3839 ac_cpp='$CXXCPP $CPPFLAGS'
3840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3843 if test -n "$ac_tool_prefix"; then
3844   for ac_prog in $CCC g++
3845   do
3846     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_CXX+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   if test -n "$CXX"; then
3854   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for ac_exec_ext in '' $ac_executable_extensions; do
3862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865     break 2
3866   fi
3867 done
3868 done
3869
3870 fi
3871 fi
3872 CXX=$ac_cv_prog_CXX
3873 if test -n "$CXX"; then
3874   echo "$as_me:$LINENO: result: $CXX" >&5
3875 echo "${ECHO_T}$CXX" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881     test -n "$CXX" && break
3882   done
3883 fi
3884 if test -z "$CXX"; then
3885   ac_ct_CXX=$CXX
3886   for ac_prog in $CCC g++
3887 do
3888   # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   if test -n "$ac_ct_CXX"; then
3896   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903   for ac_exec_ext in '' $ac_executable_extensions; do
3904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905     ac_cv_prog_ac_ct_CXX="$ac_prog"
3906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907     break 2
3908   fi
3909 done
3910 done
3911
3912 fi
3913 fi
3914 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3915 if test -n "$ac_ct_CXX"; then
3916   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3917 echo "${ECHO_T}$ac_ct_CXX" >&6
3918 else
3919   echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923   test -n "$ac_ct_CXX" && break
3924 done
3925 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3926
3927   CXX=$ac_ct_CXX
3928 fi
3929
3930
3931 # Provide some information about the compiler.
3932 echo "$as_me:$LINENO:" \
3933      "checking for C++ compiler version" >&5
3934 ac_compiler=`set X $ac_compile; echo $2`
3935 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3936   (eval $ac_compiler --version </dev/null >&5) 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); }
3940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3941   (eval $ac_compiler -v </dev/null >&5) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }
3945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3946   (eval $ac_compiler -V </dev/null >&5) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }
3950
3951 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3952 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3953 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966 #ifndef __GNUC__
3967        choke me
3968 #endif
3969
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976   (eval $ac_compile) 2>conftest.er1
3977   ac_status=$?
3978   grep -v '^ *+' conftest.er1 >conftest.err
3979   rm -f conftest.er1
3980   cat conftest.err >&5
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); } &&
3983          { ac_try='test -z "$ac_cxx_werror_flag"
3984                          || test ! -s conftest.err'
3985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986   (eval $ac_try) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); }; } &&
3990          { ac_try='test -s conftest.$ac_objext'
3991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992   (eval $ac_try) 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); }; }; then
3996   ac_compiler_gnu=yes
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 ac_compiler_gnu=no
4002 fi
4003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4005
4006 fi
4007 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4008 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4009 GXX=`test $ac_compiler_gnu = yes && echo yes`
4010 ac_test_CXXFLAGS=${CXXFLAGS+set}
4011 ac_save_CXXFLAGS=$CXXFLAGS
4012 CXXFLAGS="-g"
4013 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4014 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4015 if test "${ac_cv_prog_cxx_g+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024
4025 int
4026 main ()
4027 {
4028
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035   (eval $ac_compile) 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -z "$ac_cxx_werror_flag"
4043                          || test ! -s conftest.err'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; } &&
4049          { ac_try='test -s conftest.$ac_objext'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; }; then
4055   ac_cv_prog_cxx_g=yes
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 ac_cv_prog_cxx_g=no
4061 fi
4062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4065 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4066 if test "$ac_test_CXXFLAGS" = set; then
4067   CXXFLAGS=$ac_save_CXXFLAGS
4068 elif test $ac_cv_prog_cxx_g = yes; then
4069   if test "$GXX" = yes; then
4070     CXXFLAGS="-g -O2"
4071   else
4072     CXXFLAGS="-g"
4073   fi
4074 else
4075   if test "$GXX" = yes; then
4076     CXXFLAGS="-O2"
4077   else
4078     CXXFLAGS=
4079   fi
4080 fi
4081 for ac_declaration in \
4082    '' \
4083    'extern "C" void std::exit (int) throw (); using std::exit;' \
4084    'extern "C" void std::exit (int); using std::exit;' \
4085    'extern "C" void exit (int) throw ();' \
4086    'extern "C" void exit (int);' \
4087    'void exit (int);'
4088 do
4089   cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 $ac_declaration
4096 #include <stdlib.h>
4097 int
4098 main ()
4099 {
4100 exit (42);
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107   (eval $ac_compile) 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } &&
4114          { ac_try='test -z "$ac_cxx_werror_flag"
4115                          || test ! -s conftest.err'
4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; } &&
4121          { ac_try='test -s conftest.$ac_objext'
4122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123   (eval $ac_try) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; }; then
4127   :
4128 else
4129   echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 continue
4133 fi
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135   cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 $ac_declaration
4142 int
4143 main ()
4144 {
4145 exit (42);
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152   (eval $ac_compile) 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_cxx_werror_flag"
4160                          || test ! -s conftest.err'
4161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162   (eval $ac_try) 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; } &&
4166          { ac_try='test -s conftest.$ac_objext'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; }; then
4172   break
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 fi
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 done
4180 rm -f conftest*
4181 if test -n "$ac_declaration"; then
4182   echo '#ifdef __cplusplus' >>confdefs.h
4183   echo $ac_declaration      >>confdefs.h
4184   echo '#endif'             >>confdefs.h
4185 fi
4186
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 echo "$as_me:$LINENO: checking " >&5
4194 echo $ECHO_N "checking ... $ECHO_C" >&6
4195 if test "${ac_cv_has_flex+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   for ac_prog in flex lex
4199 do
4200   # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_LEX+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   if test -n "$LEX"; then
4208   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215   for ac_exec_ext in '' $ac_executable_extensions; do
4216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_prog_LEX="$ac_prog"
4218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222 done
4223
4224 fi
4225 fi
4226 LEX=$ac_cv_prog_LEX
4227 if test -n "$LEX"; then
4228   echo "$as_me:$LINENO: result: $LEX" >&5
4229 echo "${ECHO_T}$LEX" >&6
4230 else
4231   echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4233 fi
4234
4235   test -n "$LEX" && break
4236 done
4237 test -n "$LEX" || LEX=":"
4238
4239 if test -z "$LEXLIB"
4240 then
4241   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4242 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4243 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   ac_check_lib_save_LIBS=$LIBS
4247 LIBS="-lfl  $LIBS"
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254
4255 /* Override any gcc2 internal prototype to avoid an error.  */
4256 #ifdef __cplusplus
4257 extern "C"
4258 #endif
4259 /* We use char because int might match the return type of a gcc2
4260    builtin and then its argument prototype would still apply.  */
4261 char yywrap ();
4262 int
4263 main ()
4264 {
4265 yywrap ();
4266   ;
4267   return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest.$ac_objext conftest$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272   (eval $ac_link) 2>conftest.er1
4273   ac_status=$?
4274   grep -v '^ *+' conftest.er1 >conftest.err
4275   rm -f conftest.er1
4276   cat conftest.err >&5
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); } &&
4279          { ac_try='test -z "$ac_c_werror_flag"
4280                          || test ! -s conftest.err'
4281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282   (eval $ac_try) 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; } &&
4286          { ac_try='test -s conftest$ac_exeext'
4287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288   (eval $ac_try) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; }; then
4292   ac_cv_lib_fl_yywrap=yes
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 ac_cv_lib_fl_yywrap=no
4298 fi
4299 rm -f conftest.err conftest.$ac_objext \
4300       conftest$ac_exeext conftest.$ac_ext
4301 LIBS=$ac_check_lib_save_LIBS
4302 fi
4303 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4304 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4305 if test $ac_cv_lib_fl_yywrap = yes; then
4306   LEXLIB="-lfl"
4307 else
4308   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4309 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4310 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   ac_check_lib_save_LIBS=$LIBS
4314 LIBS="-ll  $LIBS"
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h.  */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h.  */
4321
4322 /* Override any gcc2 internal prototype to avoid an error.  */
4323 #ifdef __cplusplus
4324 extern "C"
4325 #endif
4326 /* We use char because int might match the return type of a gcc2
4327    builtin and then its argument prototype would still apply.  */
4328 char yywrap ();
4329 int
4330 main ()
4331 {
4332 yywrap ();
4333   ;
4334   return 0;
4335 }
4336 _ACEOF
4337 rm -f conftest.$ac_objext conftest$ac_exeext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4339   (eval $ac_link) 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } &&
4346          { ac_try='test -z "$ac_c_werror_flag"
4347                          || test ! -s conftest.err'
4348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349   (eval $ac_try) 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }; } &&
4353          { ac_try='test -s conftest$ac_exeext'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; }; then
4359   ac_cv_lib_l_yywrap=yes
4360 else
4361   echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 ac_cv_lib_l_yywrap=no
4365 fi
4366 rm -f conftest.err conftest.$ac_objext \
4367       conftest$ac_exeext conftest.$ac_ext
4368 LIBS=$ac_check_lib_save_LIBS
4369 fi
4370 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4371 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4372 if test $ac_cv_lib_l_yywrap = yes; then
4373   LEXLIB="-ll"
4374 fi
4375
4376 fi
4377
4378 fi
4379
4380 if test "x$LEX" != "x:"; then
4381   echo "$as_me:$LINENO: checking lex output file root" >&5
4382 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4383 if test "${ac_cv_prog_lex_root+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   # The minimal lex program is just a single line: %%.  But some broken lexes
4387 # (Solaris, I think it was) want two %% lines, so accommodate them.
4388 cat >conftest.l <<_ACEOF
4389 %%
4390 %%
4391 _ACEOF
4392 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4393   (eval $LEX conftest.l) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }
4397 if test -f lex.yy.c; then
4398   ac_cv_prog_lex_root=lex.yy
4399 elif test -f lexyy.c; then
4400   ac_cv_prog_lex_root=lexyy
4401 else
4402   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4403 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4404    { (exit 1); exit 1; }; }
4405 fi
4406 fi
4407 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4408 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4409 rm -f conftest.l
4410 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4411
4412 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4413 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4414 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   # POSIX says lex can declare yytext either as a pointer or an array; the
4418 # default is implementation-dependent. Figure out which it is, since
4419 # not all implementations provide the %pointer and %array declarations.
4420 ac_cv_prog_lex_yytext_pointer=no
4421 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4422 ac_save_LIBS=$LIBS
4423 LIBS="$LIBS $LEXLIB"
4424 cat >conftest.$ac_ext <<_ACEOF
4425 `cat $LEX_OUTPUT_ROOT.c`
4426 _ACEOF
4427 rm -f conftest.$ac_objext conftest$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429   (eval $ac_link) 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -z "$ac_c_werror_flag"
4437                          || test ! -s conftest.err'
4438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439   (eval $ac_try) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; } &&
4443          { ac_try='test -s conftest$ac_exeext'
4444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445   (eval $ac_try) 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   ac_cv_prog_lex_yytext_pointer=yes
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 fi
4455 rm -f conftest.err conftest.$ac_objext \
4456       conftest$ac_exeext conftest.$ac_ext
4457 LIBS=$ac_save_LIBS
4458 rm -f "${LEX_OUTPUT_ROOT}.c"
4459
4460 fi
4461 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4462 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4463 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4464
4465 cat >>confdefs.h <<\_ACEOF
4466 #define YYTEXT_POINTER 1
4467 _ACEOF
4468
4469 fi
4470
4471 fi
4472
4473 fi
4474 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4475 echo "${ECHO_T}$ac_cv_has_flex" >&6
4476 if test "$LEX" != "flex"; then
4477   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4478 echo "$as_me: error: flex not found but required" >&2;}
4479    { (exit 1); exit 1; }; }
4480 else
4481   FLEX=flex
4482
4483 fi
4484
4485 echo "$as_me:$LINENO: checking " >&5
4486 echo $ECHO_N "checking ... $ECHO_C" >&6
4487 if test "${llvm_cv_has_bison+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   for ac_prog in 'bison -y' byacc
4491 do
4492   # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_YACC+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   if test -n "$YACC"; then
4500   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509     ac_cv_prog_YACC="$ac_prog"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4515
4516 fi
4517 fi
4518 YACC=$ac_cv_prog_YACC
4519 if test -n "$YACC"; then
4520   echo "$as_me:$LINENO: result: $YACC" >&5
4521 echo "${ECHO_T}$YACC" >&6
4522 else
4523   echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4525 fi
4526
4527   test -n "$YACC" && break
4528 done
4529 test -n "$YACC" || YACC="yacc"
4530
4531 fi
4532 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4533 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4534 if test "$YACC" != "bison -y"; then
4535   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4536 echo "$as_me: error: bison not found but required" >&2;}
4537    { (exit 1); exit 1; }; }
4538 else
4539   BISON=bison
4540
4541 fi
4542
4543 echo "$as_me:$LINENO: checking for GNU make" >&5
4544 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4545 if test "${llvm_cv_gnu_make_command+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   llvm_cv_gnu_make_command=''
4549  for a in "$MAKE" make gmake gnumake ; do
4550   if test -z "$a" ; then continue ; fi ;
4551   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4552   then
4553    llvm_cv_gnu_make_command=$a ;
4554    break;
4555   fi
4556  done
4557 fi
4558 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4559 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4560  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4561    ifGNUmake='' ;
4562  else
4563    ifGNUmake='#' ;
4564    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4565 echo "${ECHO_T}\"Not found\"" >&6;
4566  fi
4567
4568
4569 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4570 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4571 LN_S=$as_ln_s
4572 if test "$LN_S" = "ln -s"; then
4573   echo "$as_me:$LINENO: result: yes" >&5
4574 echo "${ECHO_T}yes" >&6
4575 else
4576   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4577 echo "${ECHO_T}no, using $LN_S" >&6
4578 fi
4579
4580 # Extract the first word of "cmp", so it can be a program name with args.
4581 set dummy cmp; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_path_CMP+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   case $CMP in
4588   [\\/]* | ?:[\\/]*)
4589   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4590   ;;
4591   *)
4592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597   for ac_exec_ext in '' $ac_executable_extensions; do
4598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604 done
4605
4606   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4607   ;;
4608 esac
4609 fi
4610 CMP=$ac_cv_path_CMP
4611
4612 if test -n "$CMP"; then
4613   echo "$as_me:$LINENO: result: $CMP" >&5
4614 echo "${ECHO_T}$CMP" >&6
4615 else
4616   echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4618 fi
4619
4620 # Extract the first word of "cp", so it can be a program name with args.
4621 set dummy cp; ac_word=$2
4622 echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624 if test "${ac_cv_path_CP+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   case $CP in
4628   [\\/]* | ?:[\\/]*)
4629   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4630   ;;
4631   *)
4632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637   for ac_exec_ext in '' $ac_executable_extensions; do
4638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644 done
4645
4646   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4647   ;;
4648 esac
4649 fi
4650 CP=$ac_cv_path_CP
4651
4652 if test -n "$CP"; then
4653   echo "$as_me:$LINENO: result: $CP" >&5
4654 echo "${ECHO_T}$CP" >&6
4655 else
4656   echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4658 fi
4659
4660 # Extract the first word of "date", so it can be a program name with args.
4661 set dummy date; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_path_DATE+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   case $DATE in
4668   [\\/]* | ?:[\\/]*)
4669   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4670   ;;
4671   *)
4672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681     break 2
4682   fi
4683 done
4684 done
4685
4686   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4687   ;;
4688 esac
4689 fi
4690 DATE=$ac_cv_path_DATE
4691
4692 if test -n "$DATE"; then
4693   echo "$as_me:$LINENO: result: $DATE" >&5
4694 echo "${ECHO_T}$DATE" >&6
4695 else
4696   echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4698 fi
4699
4700 # Extract the first word of "find", so it can be a program name with args.
4701 set dummy find; ac_word=$2
4702 echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_path_FIND+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   case $FIND in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   for ac_exec_ext in '' $ac_executable_extensions; do
4718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724 done
4725
4726   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4727   ;;
4728 esac
4729 fi
4730 FIND=$ac_cv_path_FIND
4731
4732 if test -n "$FIND"; then
4733   echo "$as_me:$LINENO: result: $FIND" >&5
4734 echo "${ECHO_T}$FIND" >&6
4735 else
4736   echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738 fi
4739
4740 # Extract the first word of "grep", so it can be a program name with args.
4741 set dummy grep; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_path_GREP+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   case $GREP in
4748   [\\/]* | ?:[\\/]*)
4749   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4750   ;;
4751   *)
4752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765
4766   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4767   ;;
4768 esac
4769 fi
4770 GREP=$ac_cv_path_GREP
4771
4772 if test -n "$GREP"; then
4773   echo "$as_me:$LINENO: result: $GREP" >&5
4774 echo "${ECHO_T}$GREP" >&6
4775 else
4776   echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4778 fi
4779
4780 # Extract the first word of "mkdir", so it can be a program name with args.
4781 set dummy mkdir; ac_word=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_path_MKDIR+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   case $MKDIR in
4788   [\\/]* | ?:[\\/]*)
4789   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4790   ;;
4791   *)
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797   for ac_exec_ext in '' $ac_executable_extensions; do
4798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804 done
4805
4806   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4807   ;;
4808 esac
4809 fi
4810 MKDIR=$ac_cv_path_MKDIR
4811
4812 if test -n "$MKDIR"; then
4813   echo "$as_me:$LINENO: result: $MKDIR" >&5
4814 echo "${ECHO_T}$MKDIR" >&6
4815 else
4816   echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820 # Extract the first word of "mv", so it can be a program name with args.
4821 set dummy mv; ac_word=$2
4822 echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_path_MV+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   case $MV in
4828   [\\/]* | ?:[\\/]*)
4829   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4830   ;;
4831   *)
4832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845
4846   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4847   ;;
4848 esac
4849 fi
4850 MV=$ac_cv_path_MV
4851
4852 if test -n "$MV"; then
4853   echo "$as_me:$LINENO: result: $MV" >&5
4854 echo "${ECHO_T}$MV" >&6
4855 else
4856   echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4858 fi
4859
4860 if test -n "$ac_tool_prefix"; then
4861   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4863 echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865 if test "${ac_cv_prog_RANLIB+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   if test -n "$RANLIB"; then
4869   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876   for ac_exec_ext in '' $ac_executable_extensions; do
4877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880     break 2
4881   fi
4882 done
4883 done
4884
4885 fi
4886 fi
4887 RANLIB=$ac_cv_prog_RANLIB
4888 if test -n "$RANLIB"; then
4889   echo "$as_me:$LINENO: result: $RANLIB" >&5
4890 echo "${ECHO_T}$RANLIB" >&6
4891 else
4892   echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4894 fi
4895
4896 fi
4897 if test -z "$ac_cv_prog_RANLIB"; then
4898   ac_ct_RANLIB=$RANLIB
4899   # Extract the first word of "ranlib", so it can be a program name with args.
4900 set dummy ranlib; ac_word=$2
4901 echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   if test -n "$ac_ct_RANLIB"; then
4907   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916     ac_cv_prog_ac_ct_RANLIB="ranlib"
4917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921 done
4922
4923   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4924 fi
4925 fi
4926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4927 if test -n "$ac_ct_RANLIB"; then
4928   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4929 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4930 else
4931   echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4933 fi
4934
4935   RANLIB=$ac_ct_RANLIB
4936 else
4937   RANLIB="$ac_cv_prog_RANLIB"
4938 fi
4939
4940 # Extract the first word of "rm", so it can be a program name with args.
4941 set dummy rm; ac_word=$2
4942 echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944 if test "${ac_cv_path_RM+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   case $RM in
4948   [\\/]* | ?:[\\/]*)
4949   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4950   ;;
4951   *)
4952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957   for ac_exec_ext in '' $ac_executable_extensions; do
4958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961     break 2
4962   fi
4963 done
4964 done
4965
4966   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4967   ;;
4968 esac
4969 fi
4970 RM=$ac_cv_path_RM
4971
4972 if test -n "$RM"; then
4973   echo "$as_me:$LINENO: result: $RM" >&5
4974 echo "${ECHO_T}$RM" >&6
4975 else
4976   echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6
4978 fi
4979
4980 # Extract the first word of "sed", so it can be a program name with args.
4981 set dummy sed; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_SED+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case $SED in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005
5006   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5007   ;;
5008 esac
5009 fi
5010 SED=$ac_cv_path_SED
5011
5012 if test -n "$SED"; then
5013   echo "$as_me:$LINENO: result: $SED" >&5
5014 echo "${ECHO_T}$SED" >&6
5015 else
5016   echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5018 fi
5019
5020 # Extract the first word of "tar", so it can be a program name with args.
5021 set dummy tar; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_path_TAR+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   case $TAR in
5028   [\\/]* | ?:[\\/]*)
5029   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5030   ;;
5031   *)
5032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037   for ac_exec_ext in '' $ac_executable_extensions; do
5038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044 done
5045
5046   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5047   ;;
5048 esac
5049 fi
5050 TAR=$ac_cv_path_TAR
5051
5052 if test -n "$TAR"; then
5053   echo "$as_me:$LINENO: result: $TAR" >&5
5054 echo "${ECHO_T}$TAR" >&6
5055 else
5056   echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5058 fi
5059
5060
5061 # Find a good install program.  We prefer a C program (faster),
5062 # so one script is as good as another.  But avoid the broken or
5063 # incompatible versions:
5064 # SysV /etc/install, /usr/sbin/install
5065 # SunOS /usr/etc/install
5066 # IRIX /sbin/install
5067 # AIX /bin/install
5068 # AmigaOS /C/install, which installs bootblocks on floppy discs
5069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5072 # OS/2's system install, which has a completely different semantic
5073 # ./install, which can be erroneously created by make from ./install.sh.
5074 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5075 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5076 if test -z "$INSTALL"; then
5077 if test "${ac_cv_path_install+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085   # Account for people who put trailing slashes in PATH elements.
5086 case $as_dir/ in
5087   ./ | .// | /cC/* | \
5088   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5089   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5090   /usr/ucb/* ) ;;
5091   *)
5092     # OSF1 and SCO ODT 3.0 have their own names for install.
5093     # Don't use installbsd from OSF since it installs stuff as root
5094     # by default.
5095     for ac_prog in ginstall scoinst install; do
5096       for ac_exec_ext in '' $ac_executable_extensions; do
5097         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5098           if test $ac_prog = install &&
5099             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5100             # AIX install.  It has an incompatible calling convention.
5101             :
5102           elif test $ac_prog = install &&
5103             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5104             # program-specific install script used by HP pwplus--don't use.
5105             :
5106           else
5107             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5108             break 3
5109           fi
5110         fi
5111       done
5112     done
5113     ;;
5114 esac
5115 done
5116
5117
5118 fi
5119   if test "${ac_cv_path_install+set}" = set; then
5120     INSTALL=$ac_cv_path_install
5121   else
5122     # As a last resort, use the slow shell script.  We don't cache a
5123     # path for INSTALL within a source directory, because that will
5124     # break other packages using the cache if that directory is
5125     # removed, or if the path is relative.
5126     INSTALL=$ac_install_sh
5127   fi
5128 fi
5129 echo "$as_me:$LINENO: result: $INSTALL" >&5
5130 echo "${ECHO_T}$INSTALL" >&6
5131
5132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5133 # It thinks the first close brace ends the variable substitution.
5134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5135
5136 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5137
5138 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5139
5140
5141 # Extract the first word of "bzip2", so it can be a program name with args.
5142 set dummy bzip2; ac_word=$2
5143 echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 if test "${ac_cv_path_BZIP2+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   case $BZIP2 in
5149   [\\/]* | ?:[\\/]*)
5150   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5151   ;;
5152   *)
5153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156   IFS=$as_save_IFS
5157   test -z "$as_dir" && as_dir=.
5158   for ac_exec_ext in '' $ac_executable_extensions; do
5159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162     break 2
5163   fi
5164 done
5165 done
5166
5167   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5168   ;;
5169 esac
5170 fi
5171 BZIP2=$ac_cv_path_BZIP2
5172
5173 if test -n "$BZIP2"; then
5174   echo "$as_me:$LINENO: result: $BZIP2" >&5
5175 echo "${ECHO_T}$BZIP2" >&6
5176 else
5177   echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6
5179 fi
5180
5181 # Extract the first word of "dot", so it can be a program name with args.
5182 set dummy dot; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_path_DOT+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   case $DOT in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206
5207   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5208   ;;
5209 esac
5210 fi
5211 DOT=$ac_cv_path_DOT
5212
5213 if test -n "$DOT"; then
5214   echo "$as_me:$LINENO: result: $DOT" >&5
5215 echo "${ECHO_T}$DOT" >&6
5216 else
5217   echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5219 fi
5220
5221 # Extract the first word of "doxygen", so it can be a program name with args.
5222 set dummy doxygen; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   case $DOXYGEN in
5229   [\\/]* | ?:[\\/]*)
5230   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5231   ;;
5232   *)
5233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238   for ac_exec_ext in '' $ac_executable_extensions; do
5239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245 done
5246
5247   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5248   ;;
5249 esac
5250 fi
5251 DOXYGEN=$ac_cv_path_DOXYGEN
5252
5253 if test -n "$DOXYGEN"; then
5254   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5255 echo "${ECHO_T}$DOXYGEN" >&6
5256 else
5257   echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6
5259 fi
5260
5261 # Extract the first word of "etags", so it can be a program name with args.
5262 set dummy etags; ac_word=$2
5263 echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265 if test "${ac_cv_path_ETAGS+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   case $ETAGS in
5269   [\\/]* | ?:[\\/]*)
5270   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5271   ;;
5272   *)
5273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278   for ac_exec_ext in '' $ac_executable_extensions; do
5279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282     break 2
5283   fi
5284 done
5285 done
5286
5287   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5288   ;;
5289 esac
5290 fi
5291 ETAGS=$ac_cv_path_ETAGS
5292
5293 if test -n "$ETAGS"; then
5294   echo "$as_me:$LINENO: result: $ETAGS" >&5
5295 echo "${ECHO_T}$ETAGS" >&6
5296 else
5297   echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5299 fi
5300
5301 # Extract the first word of "groff", so it can be a program name with args.
5302 set dummy groff; ac_word=$2
5303 echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305 if test "${ac_cv_path_GROFF+set}" = set; then
5306   echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308   case $GROFF in
5309   [\\/]* | ?:[\\/]*)
5310   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5311   ;;
5312   *)
5313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318   for ac_exec_ext in '' $ac_executable_extensions; do
5319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325 done
5326
5327   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5328   ;;
5329 esac
5330 fi
5331 GROFF=$ac_cv_path_GROFF
5332
5333 if test -n "$GROFF"; then
5334   echo "$as_me:$LINENO: result: $GROFF" >&5
5335 echo "${ECHO_T}$GROFF" >&6
5336 else
5337   echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6
5339 fi
5340
5341 # Extract the first word of "gzip", so it can be a program name with args.
5342 set dummy gzip; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_path_GZIP+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   case $GZIP in
5349   [\\/]* | ?:[\\/]*)
5350   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5351   ;;
5352   *)
5353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366
5367   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5368   ;;
5369 esac
5370 fi
5371 GZIP=$ac_cv_path_GZIP
5372
5373 if test -n "$GZIP"; then
5374   echo "$as_me:$LINENO: result: $GZIP" >&5
5375 echo "${ECHO_T}$GZIP" >&6
5376 else
5377   echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5379 fi
5380
5381 # Extract the first word of "pod2html", so it can be a program name with args.
5382 set dummy pod2html; ac_word=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_path_POD2HTML+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   case $POD2HTML in
5389   [\\/]* | ?:[\\/]*)
5390   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5391   ;;
5392   *)
5393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   for ac_exec_ext in '' $ac_executable_extensions; do
5399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405 done
5406
5407   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5408   ;;
5409 esac
5410 fi
5411 POD2HTML=$ac_cv_path_POD2HTML
5412
5413 if test -n "$POD2HTML"; then
5414   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5415 echo "${ECHO_T}$POD2HTML" >&6
5416 else
5417   echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5419 fi
5420
5421 # Extract the first word of "pod2man", so it can be a program name with args.
5422 set dummy pod2man; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_path_POD2MAN+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   case $POD2MAN in
5429   [\\/]* | ?:[\\/]*)
5430   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5431   ;;
5432   *)
5433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446
5447   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5448   ;;
5449 esac
5450 fi
5451 POD2MAN=$ac_cv_path_POD2MAN
5452
5453 if test -n "$POD2MAN"; then
5454   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5455 echo "${ECHO_T}$POD2MAN" >&6
5456 else
5457   echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5459 fi
5460
5461 # Extract the first word of "runtest", so it can be a program name with args.
5462 set dummy runtest; ac_word=$2
5463 echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465 if test "${ac_cv_path_RUNTEST+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   case $RUNTEST in
5469   [\\/]* | ?:[\\/]*)
5470   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5471   ;;
5472   *)
5473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478   for ac_exec_ext in '' $ac_executable_extensions; do
5479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485 done
5486
5487   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5488   ;;
5489 esac
5490 fi
5491 RUNTEST=$ac_cv_path_RUNTEST
5492
5493 if test -n "$RUNTEST"; then
5494   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5495 echo "${ECHO_T}$RUNTEST" >&6
5496 else
5497   echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5499 fi
5500
5501
5502 no_itcl=true
5503 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5504 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5505
5506 # Check whether --with-tclinclude or --without-tclinclude was given.
5507 if test "${with_tclinclude+set}" = set; then
5508   withval="$with_tclinclude"
5509   with_tclinclude=${withval}
5510 else
5511   with_tclinclude=''
5512 fi;
5513 if test "${ac_cv_path_tclsh+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516
5517 if test x"${with_tclinclude}" != x ; then
5518   if test -f ${with_tclinclude}/tclsh ; then
5519     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5520   elif test -f ${with_tclinclude}/src/tclsh ; then
5521     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5522   else
5523     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5524 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5525    { (exit 1); exit 1; }; }
5526   fi
5527 fi
5528
5529 if test x"${ac_cv_path_tclsh}" = x ; then
5530   echo "$as_me:$LINENO: result: none" >&5
5531 echo "${ECHO_T}none" >&6
5532   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
5533 do
5534   # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_path_TCLSH+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   case $TCLSH in
5542   [\\/]* | ?:[\\/]*)
5543   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5544   ;;
5545   *)
5546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551   for ac_exec_ext in '' $ac_executable_extensions; do
5552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558 done
5559
5560   ;;
5561 esac
5562 fi
5563 TCLSH=$ac_cv_path_TCLSH
5564
5565 if test -n "$TCLSH"; then
5566   echo "$as_me:$LINENO: result: $TCLSH" >&5
5567 echo "${ECHO_T}$TCLSH" >&6
5568 else
5569   echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5571 fi
5572
5573   test -n "$TCLSH" && break
5574 done
5575
5576   if test x"${TCLSH}" = x ; then
5577     ac_cv_path_tclsh='';
5578   else
5579     ac_cv_path_tclsh="${TCLSH}";
5580   fi
5581 else
5582   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5583 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5584   TCLSH="${ac_cv_path_tclsh}"
5585
5586 fi
5587
5588 fi
5589
5590 # Extract the first word of "zip", so it can be a program name with args.
5591 set dummy zip; ac_word=$2
5592 echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594 if test "${ac_cv_path_ZIP+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   case $ZIP in
5598   [\\/]* | ?:[\\/]*)
5599   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5600   ;;
5601   *)
5602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607   for ac_exec_ext in '' $ac_executable_extensions; do
5608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614 done
5615
5616   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5617   ;;
5618 esac
5619 fi
5620 ZIP=$ac_cv_path_ZIP
5621
5622 if test -n "$ZIP"; then
5623   echo "$as_me:$LINENO: result: $ZIP" >&5
5624 echo "${ECHO_T}$ZIP" >&6
5625 else
5626   echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6
5628 fi
5629
5630
5631 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5632 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5633 if test "${llvm_cv_link_use_r+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636    ac_ext=c
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642   oldcflags="$CFLAGS"
5643   CFLAGS="$CFLAGS -Wl,-R."
5644   cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650
5651 int
5652 main ()
5653 {
5654 int main() { return 0; }
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661   (eval $ac_link) 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -z "$ac_c_werror_flag"
5669                          || test ! -s conftest.err'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; } &&
5675          { ac_try='test -s conftest$ac_exeext'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; }; then
5681   llvm_cv_link_use_r=yes
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 llvm_cv_link_use_r=no
5687 fi
5688 rm -f conftest.err conftest.$ac_objext \
5689       conftest$ac_exeext conftest.$ac_ext
5690   CFLAGS="$oldcflags"
5691   ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696
5697
5698 fi
5699 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5700 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5701 if test "$llvm_cv_link_use_r" = yes ; then
5702
5703 cat >>confdefs.h <<\_ACEOF
5704 #define HAVE_LINK_R 1
5705 _ACEOF
5706
5707   fi
5708
5709
5710
5711
5712 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5714 if test "${ac_cv_c_const+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723
5724 int
5725 main ()
5726 {
5727 /* FIXME: Include the comments suggested by Paul. */
5728 #ifndef __cplusplus
5729   /* Ultrix mips cc rejects this.  */
5730   typedef int charset[2];
5731   const charset x;
5732   /* SunOS 4.1.1 cc rejects this.  */
5733   char const *const *ccp;
5734   char **p;
5735   /* NEC SVR4.0.2 mips cc rejects this.  */
5736   struct point {int x, y;};
5737   static struct point const zero = {0,0};
5738   /* AIX XL C 1.02.0.0 rejects this.
5739      It does not let you subtract one const X* pointer from another in
5740      an arm of an if-expression whose if-part is not a constant
5741      expression */
5742   const char *g = "string";
5743   ccp = &g + (g ? g-g : 0);
5744   /* HPUX 7.0 cc rejects these. */
5745   ++ccp;
5746   p = (char**) ccp;
5747   ccp = (char const *const *) p;
5748   { /* SCO 3.2v4 cc rejects this.  */
5749     char *t;
5750     char const *s = 0 ? (char *) 0 : (char const *) 0;
5751
5752     *t++ = 0;
5753   }
5754   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5755     int x[] = {25, 17};
5756     const int *foo = &x[0];
5757     ++foo;
5758   }
5759   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5760     typedef const int *iptr;
5761     iptr p = 0;
5762     ++p;
5763   }
5764   { /* AIX XL C 1.02.0.0 rejects this saying
5765        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5766     struct s { int j; const int *ap[3]; };
5767     struct s *b; b->j = 5;
5768   }
5769   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5770     const int foo = 10;
5771   }
5772 #endif
5773
5774   ;
5775   return 0;
5776 }
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780   (eval $ac_compile) 2>conftest.er1
5781   ac_status=$?
5782   grep -v '^ *+' conftest.er1 >conftest.err
5783   rm -f conftest.er1
5784   cat conftest.err >&5
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } &&
5787          { ac_try='test -z "$ac_c_werror_flag"
5788                          || test ! -s conftest.err'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; } &&
5794          { ac_try='test -s conftest.$ac_objext'
5795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796   (eval $ac_try) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; }; then
5800   ac_cv_c_const=yes
5801 else
5802   echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 ac_cv_c_const=no
5806 fi
5807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5810 echo "${ECHO_T}$ac_cv_c_const" >&6
5811 if test $ac_cv_c_const = no; then
5812
5813 cat >>confdefs.h <<\_ACEOF
5814 #define const
5815 _ACEOF
5816
5817 fi
5818
5819
5820 echo "$as_me:$LINENO: checking for egrep" >&5
5821 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5822 if test "${ac_cv_prog_egrep+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5826     then ac_cv_prog_egrep='grep -E'
5827     else ac_cv_prog_egrep='egrep'
5828     fi
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5831 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5832  EGREP=$ac_cv_prog_egrep
5833
5834
5835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5837 if test "${ac_cv_header_stdc+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h.  */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h.  */
5846 #include <stdlib.h>
5847 #include <stdarg.h>
5848 #include <string.h>
5849 #include <float.h>
5850
5851 int
5852 main ()
5853 {
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"
5869                          || test ! -s conftest.err'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; } &&
5875          { ac_try='test -s conftest.$ac_objext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   ac_cv_header_stdc=yes
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_cv_header_stdc=no
5887 fi
5888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889
5890 if test $ac_cv_header_stdc = yes; then
5891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <string.h>
5899
5900 _ACEOF
5901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5902   $EGREP "memchr" >/dev/null 2>&1; then
5903   :
5904 else
5905   ac_cv_header_stdc=no
5906 fi
5907 rm -f conftest*
5908
5909 fi
5910
5911 if test $ac_cv_header_stdc = yes; then
5912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5913   cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919 #include <stdlib.h>
5920
5921 _ACEOF
5922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923   $EGREP "free" >/dev/null 2>&1; then
5924   :
5925 else
5926   ac_cv_header_stdc=no
5927 fi
5928 rm -f conftest*
5929
5930 fi
5931
5932 if test $ac_cv_header_stdc = yes; then
5933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5934   if test "$cross_compiling" = yes; then
5935   :
5936 else
5937   cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943 #include <ctype.h>
5944 #if ((' ' & 0x0FF) == 0x020)
5945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5947 #else
5948 # define ISLOWER(c) \
5949                    (('a' <= (c) && (c) <= 'i') \
5950                      || ('j' <= (c) && (c) <= 'r') \
5951                      || ('s' <= (c) && (c) <= 'z'))
5952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5953 #endif
5954
5955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5956 int
5957 main ()
5958 {
5959   int i;
5960   for (i = 0; i < 256; i++)
5961     if (XOR (islower (i), ISLOWER (i))
5962         || toupper (i) != TOUPPER (i))
5963       exit(2);
5964   exit (0);
5965 }
5966 _ACEOF
5967 rm -f conftest$ac_exeext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969   (eval $ac_link) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; }; then
5978   :
5979 else
5980   echo "$as_me: program exited with status $ac_status" >&5
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ( exit $ac_status )
5985 ac_cv_header_stdc=no
5986 fi
5987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5988 fi
5989 fi
5990 fi
5991 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5992 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5993 if test $ac_cv_header_stdc = yes; then
5994
5995 cat >>confdefs.h <<\_ACEOF
5996 #define STDC_HEADERS 1
5997 _ACEOF
5998
5999 fi
6000
6001
6002
6003
6004
6005
6006 ac_header_dirent=no
6007 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6008   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6009 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6010 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h.  */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h.  */
6020 #include <sys/types.h>
6021 #include <$ac_hdr>
6022
6023 int
6024 main ()
6025 {
6026 if ((DIR *) 0)
6027 return 0;
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest.$ac_objext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034   (eval $ac_compile) 2>conftest.er1
6035   ac_status=$?
6036   grep -v '^ *+' conftest.er1 >conftest.err
6037   rm -f conftest.er1
6038   cat conftest.err >&5
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); } &&
6041          { ac_try='test -z "$ac_c_werror_flag"
6042                          || test ! -s conftest.err'
6043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044   (eval $ac_try) 2>&5
6045   ac_status=$?
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); }; } &&
6048          { ac_try='test -s conftest.$ac_objext'
6049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050   (eval $ac_try) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; }; then
6054   eval "$as_ac_Header=yes"
6055 else
6056   echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 eval "$as_ac_Header=no"
6060 fi
6061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6062 fi
6063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6066   cat >>confdefs.h <<_ACEOF
6067 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6068 _ACEOF
6069
6070 ac_header_dirent=$ac_hdr; break
6071 fi
6072
6073 done
6074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6075 if test $ac_header_dirent = dirent.h; then
6076   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6077 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6078 if test "${ac_cv_search_opendir+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   ac_func_search_save_LIBS=$LIBS
6082 ac_cv_search_opendir=no
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089
6090 /* Override any gcc2 internal prototype to avoid an error.  */
6091 #ifdef __cplusplus
6092 extern "C"
6093 #endif
6094 /* We use char because int might match the return type of a gcc2
6095    builtin and then its argument prototype would still apply.  */
6096 char opendir ();
6097 int
6098 main ()
6099 {
6100 opendir ();
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext conftest$ac_exeext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107   (eval $ac_link) 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -z "$ac_c_werror_flag"
6115                          || test ! -s conftest.err'
6116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117   (eval $ac_try) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; } &&
6121          { ac_try='test -s conftest$ac_exeext'
6122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123   (eval $ac_try) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; }; then
6127   ac_cv_search_opendir="none required"
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 fi
6133 rm -f conftest.err conftest.$ac_objext \
6134       conftest$ac_exeext conftest.$ac_ext
6135 if test "$ac_cv_search_opendir" = no; then
6136   for ac_lib in dir; do
6137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6138     cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144
6145 /* Override any gcc2 internal prototype to avoid an error.  */
6146 #ifdef __cplusplus
6147 extern "C"
6148 #endif
6149 /* We use char because int might match the return type of a gcc2
6150    builtin and then its argument prototype would still apply.  */
6151 char opendir ();
6152 int
6153 main ()
6154 {
6155 opendir ();
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162   (eval $ac_link) 2>conftest.er1
6163   ac_status=$?
6164   grep -v '^ *+' conftest.er1 >conftest.err
6165   rm -f conftest.er1
6166   cat conftest.err >&5
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } &&
6169          { ac_try='test -z "$ac_c_werror_flag"
6170                          || test ! -s conftest.err'
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); }; } &&
6176          { ac_try='test -s conftest$ac_exeext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   ac_cv_search_opendir="-l$ac_lib"
6183 break
6184 else
6185   echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188 fi
6189 rm -f conftest.err conftest.$ac_objext \
6190       conftest$ac_exeext conftest.$ac_ext
6191   done
6192 fi
6193 LIBS=$ac_func_search_save_LIBS
6194 fi
6195 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6196 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6197 if test "$ac_cv_search_opendir" != no; then
6198   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6199
6200 fi
6201
6202 else
6203   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6205 if test "${ac_cv_search_opendir+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   ac_func_search_save_LIBS=$LIBS
6209 ac_cv_search_opendir=no
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216
6217 /* Override any gcc2 internal prototype to avoid an error.  */
6218 #ifdef __cplusplus
6219 extern "C"
6220 #endif
6221 /* We use char because int might match the return type of a gcc2
6222    builtin and then its argument prototype would still apply.  */
6223 char opendir ();
6224 int
6225 main ()
6226 {
6227 opendir ();
6228   ;
6229   return 0;
6230 }
6231 _ACEOF
6232 rm -f conftest.$ac_objext conftest$ac_exeext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6234   (eval $ac_link) 2>conftest.er1
6235   ac_status=$?
6236   grep -v '^ *+' conftest.er1 >conftest.err
6237   rm -f conftest.er1
6238   cat conftest.err >&5
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); } &&
6241          { ac_try='test -z "$ac_c_werror_flag"
6242                          || test ! -s conftest.err'
6243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244   (eval $ac_try) 2>&5
6245   ac_status=$?
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); }; } &&
6248          { ac_try='test -s conftest$ac_exeext'
6249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250   (eval $ac_try) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); }; }; then
6254   ac_cv_search_opendir="none required"
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 fi
6260 rm -f conftest.err conftest.$ac_objext \
6261       conftest$ac_exeext conftest.$ac_ext
6262 if test "$ac_cv_search_opendir" = no; then
6263   for ac_lib in x; do
6264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6265     cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271
6272 /* Override any gcc2 internal prototype to avoid an error.  */
6273 #ifdef __cplusplus
6274 extern "C"
6275 #endif
6276 /* We use char because int might match the return type of a gcc2
6277    builtin and then its argument prototype would still apply.  */
6278 char opendir ();
6279 int
6280 main ()
6281 {
6282 opendir ();
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289   (eval $ac_link) 2>conftest.er1
6290   ac_status=$?
6291   grep -v '^ *+' conftest.er1 >conftest.err
6292   rm -f conftest.er1
6293   cat conftest.err >&5
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } &&
6296          { ac_try='test -z "$ac_c_werror_flag"
6297                          || test ! -s conftest.err'
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); }; } &&
6303          { ac_try='test -s conftest$ac_exeext'
6304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; }; then
6309   ac_cv_search_opendir="-l$ac_lib"
6310 break
6311 else
6312   echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 fi
6316 rm -f conftest.err conftest.$ac_objext \
6317       conftest$ac_exeext conftest.$ac_ext
6318   done
6319 fi
6320 LIBS=$ac_func_search_save_LIBS
6321 fi
6322 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6323 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6324 if test "$ac_cv_search_opendir" != no; then
6325   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6326
6327 fi
6328
6329 fi
6330
6331 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6342                   inttypes.h stdint.h unistd.h
6343 do
6344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345 echo "$as_me:$LINENO: checking for $ac_header" >&5
6346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h.  */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h.  */
6356 $ac_includes_default
6357
6358 #include <$ac_header>
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362   (eval $ac_compile) 2>conftest.er1
6363   ac_status=$?
6364   grep -v '^ *+' conftest.er1 >conftest.err
6365   rm -f conftest.er1
6366   cat conftest.err >&5
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -z "$ac_c_werror_flag"
6370                          || test ! -s conftest.err'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; } &&
6376          { ac_try='test -s conftest.$ac_objext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   eval "$as_ac_Header=yes"
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 eval "$as_ac_Header=no"
6388 fi
6389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6390 fi
6391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6394   cat >>confdefs.h <<_ACEOF
6395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 _ACEOF
6397
6398 fi
6399
6400 done
6401
6402
6403
6404 for ac_header in dlfcn.h
6405 do
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408   echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 fi
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415 else
6416   # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h.  */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h.  */
6425 $ac_includes_default
6426 #include <$ac_header>
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430   (eval $ac_compile) 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -z "$ac_c_werror_flag"
6438                          || test ! -s conftest.err'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; } &&
6444          { ac_try='test -s conftest.$ac_objext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   ac_header_compiler=yes
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 ac_header_compiler=no
6456 fi
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6460
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470 #include <$ac_header>
6471 _ACEOF
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474   ac_status=$?
6475   grep -v '^ *+' conftest.er1 >conftest.err
6476   rm -f conftest.er1
6477   cat conftest.err >&5
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); } >/dev/null; then
6480   if test -s conftest.err; then
6481     ac_cpp_err=$ac_c_preproc_warn_flag
6482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483   else
6484     ac_cpp_err=
6485   fi
6486 else
6487   ac_cpp_err=yes
6488 fi
6489 if test -z "$ac_cpp_err"; then
6490   ac_header_preproc=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495   ac_header_preproc=no
6496 fi
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6500
6501 # So?  What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503   yes:no: )
6504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508     ac_header_preproc=yes
6509     ;;
6510   no:yes:* )
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6523     (
6524       cat <<\_ASBOX
6525 ## ----------------------------------- ##
6526 ## Report this to llvmbugs@cs.uiuc.edu ##
6527 ## ----------------------------------- ##
6528 _ASBOX
6529     ) |
6530       sed "s/^/$as_me: WARNING:     /" >&2
6531     ;;
6532 esac
6533 echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   eval "$as_ac_Header=\$ac_header_preproc"
6539 fi
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542
6543 fi
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545   cat >>confdefs.h <<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 _ACEOF
6548
6549 fi
6550
6551 done
6552
6553 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6554 if test "${enable_ltdl_install+set}" = set; then
6555   enableval="$enable_ltdl_install"
6556
6557 fi;
6558
6559
6560
6561 if test x"${enable_ltdl_install-no}" != xno; then
6562   INSTALL_LTDL_TRUE=
6563   INSTALL_LTDL_FALSE='#'
6564 else
6565   INSTALL_LTDL_TRUE='#'
6566   INSTALL_LTDL_FALSE=
6567 fi
6568
6569
6570
6571 if test x"${enable_ltdl_convenience-no}" != xno; then
6572   CONVENIENCE_LTDL_TRUE=
6573   CONVENIENCE_LTDL_FALSE='#'
6574 else
6575   CONVENIENCE_LTDL_TRUE='#'
6576   CONVENIENCE_LTDL_FALSE=
6577 fi
6578
6579
6580 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6581 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6582 library_names_spec=
6583 libname_spec='lib$name'
6584 soname_spec=
6585 shrext_cmds=".so"
6586 postinstall_cmds=
6587 postuninstall_cmds=
6588 finish_cmds=
6589 finish_eval=
6590 shlibpath_var=
6591 shlibpath_overrides_runpath=unknown
6592 version_type=none
6593 dynamic_linker="$host_os ld.so"
6594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6595 if test "$GCC" = yes; then
6596   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6597   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6598     # if the path contains ";" then we assume it to be the separator
6599     # otherwise default to the standard path separator (i.e. ":") - it is
6600     # assumed that no part of a normal pathname contains ";" but that should
6601     # okay in the real world where ";" in dirpaths is itself problematic.
6602     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6603   else
6604     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6605   fi
6606 else
6607   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6608 fi
6609 need_lib_prefix=unknown
6610 hardcode_into_libs=no
6611
6612 # when you set need_version to no, make sure it does not cause -set_version
6613 # flags to be left without arguments
6614 need_version=unknown
6615
6616 case $host_os in
6617 aix3*)
6618   version_type=linux
6619   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6620   shlibpath_var=LIBPATH
6621
6622   # AIX 3 has no versioning support, so we append a major version to the name.
6623   soname_spec='${libname}${release}${shared_ext}$major'
6624   ;;
6625
6626 aix4* | aix5*)
6627   version_type=linux
6628   need_lib_prefix=no
6629   need_version=no
6630   hardcode_into_libs=yes
6631   if test "$host_cpu" = ia64; then
6632     # AIX 5 supports IA64
6633     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6634     shlibpath_var=LD_LIBRARY_PATH
6635   else
6636     # With GCC up to 2.95.x, collect2 would create an import file
6637     # for dependence libraries.  The import file would start with
6638     # the line `#! .'.  This would cause the generated library to
6639     # depend on `.', always an invalid library.  This was fixed in
6640     # development snapshots of GCC prior to 3.0.
6641     case $host_os in
6642       aix4 | aix4.[01] | aix4.[01].*)
6643       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6644            echo ' yes '
6645            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6646         :
6647       else
6648         can_build_shared=no
6649       fi
6650       ;;
6651     esac
6652     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6653     # soname into executable. Probably we can add versioning support to
6654     # collect2, so additional links can be useful in future.
6655     if test "$aix_use_runtimelinking" = yes; then
6656       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6657       # instead of lib<name>.a to let people know that these are not
6658       # typical AIX shared libraries.
6659       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6660     else
6661       # We preserve .a as extension for shared libraries through AIX4.2
6662       # and later when we are not doing run time linking.
6663       library_names_spec='${libname}${release}.a $libname.a'
6664       soname_spec='${libname}${release}${shared_ext}$major'
6665     fi
6666     shlibpath_var=LIBPATH
6667   fi
6668   ;;
6669
6670 amigaos*)
6671   library_names_spec='$libname.ixlibrary $libname.a'
6672   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6673   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'
6674   ;;
6675
6676 beos*)
6677   library_names_spec='${libname}${shared_ext}'
6678   dynamic_linker="$host_os ld.so"
6679   shlibpath_var=LIBRARY_PATH
6680   ;;
6681
6682 bsdi[45]*)
6683   version_type=linux
6684   need_version=no
6685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6686   soname_spec='${libname}${release}${shared_ext}$major'
6687   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6688   shlibpath_var=LD_LIBRARY_PATH
6689   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6690   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6691   # the default ld.so.conf also contains /usr/contrib/lib and
6692   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6693   # libtool to hard-code these into programs
6694   ;;
6695
6696 cygwin* | mingw* | pw32*)
6697   version_type=windows
6698   shrext_cmds=".dll"
6699   need_version=no
6700   need_lib_prefix=no
6701
6702   case $GCC,$host_os in
6703   yes,cygwin* | yes,mingw* | yes,pw32*)
6704     library_names_spec='$libname.dll.a'
6705     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6706     postinstall_cmds='base_file=`basename \${file}`~
6707       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6708       dldir=$destdir/`dirname \$dlpath`~
6709       test -d \$dldir || mkdir -p \$dldir~
6710       $install_prog $dir/$dlname \$dldir/$dlname'
6711     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6712       dlpath=$dir/\$dldll~
6713        $rm \$dlpath'
6714     shlibpath_overrides_runpath=yes
6715
6716     case $host_os in
6717     cygwin*)
6718       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6719       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6720       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6721       ;;
6722     mingw*)
6723       # MinGW DLLs use traditional 'lib' prefix
6724       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6725       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6726       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6727         # It is most probably a Windows format PATH printed by
6728         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6729         # path with ; separators, and with drive letters. We can handle the
6730         # drive letters (cygwin fileutils understands them), so leave them,
6731         # especially as we might pass files found there to a mingw objdump,
6732         # which wouldn't understand a cygwinified path. Ahh.
6733         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6734       else
6735         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6736       fi
6737       ;;
6738     pw32*)
6739       # pw32 DLLs use 'pw' prefix rather than 'lib'
6740       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6741       ;;
6742     esac
6743     ;;
6744
6745   *)
6746     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6747     ;;
6748   esac
6749   dynamic_linker='Win32 ld.exe'
6750   # FIXME: first we should search . and the directory the executable is in
6751   shlibpath_var=PATH
6752   ;;
6753
6754 darwin* | rhapsody*)
6755   dynamic_linker="$host_os dyld"
6756   version_type=darwin
6757   need_lib_prefix=no
6758   need_version=no
6759   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6760   soname_spec='${libname}${release}${major}$shared_ext'
6761   shlibpath_overrides_runpath=yes
6762   shlibpath_var=DYLD_LIBRARY_PATH
6763   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6764   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6765   if test "$GCC" = yes; then
6766     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"`
6767   else
6768     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6769   fi
6770   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6771   ;;
6772
6773 dgux*)
6774   version_type=linux
6775   need_lib_prefix=no
6776   need_version=no
6777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6778   soname_spec='${libname}${release}${shared_ext}$major'
6779   shlibpath_var=LD_LIBRARY_PATH
6780   ;;
6781
6782 freebsd1*)
6783   dynamic_linker=no
6784   ;;
6785
6786 kfreebsd*-gnu)
6787   version_type=linux
6788   need_lib_prefix=no
6789   need_version=no
6790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6791   soname_spec='${libname}${release}${shared_ext}$major'
6792   shlibpath_var=LD_LIBRARY_PATH
6793   shlibpath_overrides_runpath=no
6794   hardcode_into_libs=yes
6795   dynamic_linker='GNU ld.so'
6796   ;;
6797
6798 freebsd*)
6799   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6800   version_type=freebsd-$objformat
6801   case $version_type in
6802     freebsd-elf*)
6803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6804       need_version=no
6805       need_lib_prefix=no
6806       ;;
6807     freebsd-*)
6808       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6809       need_version=yes
6810       ;;
6811   esac
6812   shlibpath_var=LD_LIBRARY_PATH
6813   case $host_os in
6814   freebsd2*)
6815     shlibpath_overrides_runpath=yes
6816     ;;
6817   freebsd3.01* | freebsdelf3.01*)
6818     shlibpath_overrides_runpath=yes
6819     hardcode_into_libs=yes
6820     ;;
6821   *) # from 3.2 on
6822     shlibpath_overrides_runpath=no
6823     hardcode_into_libs=yes
6824     ;;
6825   esac
6826   ;;
6827
6828 gnu*)
6829   version_type=linux
6830   need_lib_prefix=no
6831   need_version=no
6832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6833   soname_spec='${libname}${release}${shared_ext}$major'
6834   shlibpath_var=LD_LIBRARY_PATH
6835   hardcode_into_libs=yes
6836   ;;
6837
6838 hpux9* | hpux10* | hpux11*)
6839   # Give a soname corresponding to the major version so that dld.sl refuses to
6840   # link against other versions.
6841   version_type=sunos
6842   need_lib_prefix=no
6843   need_version=no
6844   case "$host_cpu" in
6845   ia64*)
6846     shrext_cmds='.so'
6847     hardcode_into_libs=yes
6848     dynamic_linker="$host_os dld.so"
6849     shlibpath_var=LD_LIBRARY_PATH
6850     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6852     soname_spec='${libname}${release}${shared_ext}$major'
6853     if test "X$HPUX_IA64_MODE" = X32; then
6854       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6855     else
6856       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6857     fi
6858     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6859     ;;
6860    hppa*64*)
6861      shrext_cmds='.sl'
6862      hardcode_into_libs=yes
6863      dynamic_linker="$host_os dld.sl"
6864      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6865      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6866      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867      soname_spec='${libname}${release}${shared_ext}$major'
6868      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6869      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6870      ;;
6871    *)
6872     shrext_cmds='.sl'
6873     dynamic_linker="$host_os dld.sl"
6874     shlibpath_var=SHLIB_PATH
6875     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6877     soname_spec='${libname}${release}${shared_ext}$major'
6878     ;;
6879   esac
6880   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6881   postinstall_cmds='chmod 555 $lib'
6882   ;;
6883
6884 irix5* | irix6* | nonstopux*)
6885   case $host_os in
6886     nonstopux*) version_type=nonstopux ;;
6887     *)
6888         if test "$lt_cv_prog_gnu_ld" = yes; then
6889                 version_type=linux
6890         else
6891                 version_type=irix
6892         fi ;;
6893   esac
6894   need_lib_prefix=no
6895   need_version=no
6896   soname_spec='${libname}${release}${shared_ext}$major'
6897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6898   case $host_os in
6899   irix5* | nonstopux*)
6900     libsuff= shlibsuff=
6901     ;;
6902   *)
6903     case $LD in # libtool.m4 will add one of these switches to LD
6904     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6905       libsuff= shlibsuff= libmagic=32-bit;;
6906     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6907       libsuff=32 shlibsuff=N32 libmagic=N32;;
6908     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6909       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6910     *) libsuff= shlibsuff= libmagic=never-match;;
6911     esac
6912     ;;
6913   esac
6914   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6915   shlibpath_overrides_runpath=no
6916   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6917   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6918   hardcode_into_libs=yes
6919   ;;
6920
6921 # No shared lib support for Linux oldld, aout, or coff.
6922 linux*oldld* | linux*aout* | linux*coff*)
6923   dynamic_linker=no
6924   ;;
6925
6926 # This must be Linux ELF.
6927 linux*)
6928   version_type=linux
6929   need_lib_prefix=no
6930   need_version=no
6931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6932   soname_spec='${libname}${release}${shared_ext}$major'
6933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6934   shlibpath_var=LD_LIBRARY_PATH
6935   shlibpath_overrides_runpath=no
6936   # This implies no fast_install, which is unacceptable.
6937   # Some rework will be needed to allow for fast_install
6938   # before this can be enabled.
6939   hardcode_into_libs=yes
6940
6941   # Append ld.so.conf contents to the search path
6942   if test -f /etc/ld.so.conf; then
6943     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6944     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6945   fi
6946
6947   # We used to test for /lib/ld.so.1 and disable shared libraries on
6948   # powerpc, because MkLinux only supported shared libraries with the
6949   # GNU dynamic linker.  Since this was broken with cross compilers,
6950   # most powerpc-linux boxes support dynamic linking these days and
6951   # people can always --disable-shared, the test was removed, and we
6952   # assume the GNU/Linux dynamic linker is in use.
6953   dynamic_linker='GNU/Linux ld.so'
6954   ;;
6955
6956 knetbsd*-gnu)
6957   version_type=linux
6958   need_lib_prefix=no
6959   need_version=no
6960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6961   soname_spec='${libname}${release}${shared_ext}$major'
6962   shlibpath_var=LD_LIBRARY_PATH
6963   shlibpath_overrides_runpath=no
6964   hardcode_into_libs=yes
6965   dynamic_linker='GNU ld.so'
6966   ;;
6967
6968 netbsd*)
6969   version_type=sunos
6970   need_lib_prefix=no
6971   need_version=no
6972   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6974     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6975     dynamic_linker='NetBSD (a.out) ld.so'
6976   else
6977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6978     soname_spec='${libname}${release}${shared_ext}$major'
6979     dynamic_linker='NetBSD ld.elf_so'
6980   fi
6981   shlibpath_var=LD_LIBRARY_PATH
6982   shlibpath_overrides_runpath=yes
6983   hardcode_into_libs=yes
6984   ;;
6985
6986 newsos6)
6987   version_type=linux
6988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989   shlibpath_var=LD_LIBRARY_PATH
6990   shlibpath_overrides_runpath=yes
6991   ;;
6992
6993 nto-qnx*)
6994   version_type=linux
6995   need_lib_prefix=no
6996   need_version=no
6997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6998   soname_spec='${libname}${release}${shared_ext}$major'
6999   shlibpath_var=LD_LIBRARY_PATH
7000   shlibpath_overrides_runpath=yes
7001   ;;
7002
7003 openbsd*)
7004   version_type=sunos
7005   need_lib_prefix=no
7006   need_version=no
7007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7008   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7009   shlibpath_var=LD_LIBRARY_PATH
7010   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7011     case $host_os in
7012       openbsd2.[89] | openbsd2.[89].*)
7013         shlibpath_overrides_runpath=no
7014         ;;
7015       *)
7016         shlibpath_overrides_runpath=yes
7017         ;;
7018       esac
7019   else
7020     shlibpath_overrides_runpath=yes
7021   fi
7022   ;;
7023
7024 os2*)
7025   libname_spec='$name'
7026   shrext_cmds=".dll"
7027   need_lib_prefix=no
7028   library_names_spec='$libname${shared_ext} $libname.a'
7029   dynamic_linker='OS/2 ld.exe'
7030   shlibpath_var=LIBPATH
7031   ;;
7032
7033 osf3* | osf4* | osf5*)
7034   version_type=osf
7035   need_lib_prefix=no
7036   need_version=no
7037   soname_spec='${libname}${release}${shared_ext}$major'
7038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7039   shlibpath_var=LD_LIBRARY_PATH
7040   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7041   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7042   ;;
7043
7044 sco3.2v5*)
7045   version_type=osf
7046   soname_spec='${libname}${release}${shared_ext}$major'
7047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7048   shlibpath_var=LD_LIBRARY_PATH
7049   ;;
7050
7051 solaris*)
7052   version_type=linux
7053   need_lib_prefix=no
7054   need_version=no
7055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7056   soname_spec='${libname}${release}${shared_ext}$major'
7057   shlibpath_var=LD_LIBRARY_PATH
7058   shlibpath_overrides_runpath=yes
7059   hardcode_into_libs=yes
7060   # ldd complains unless libraries are executable
7061   postinstall_cmds='chmod +x $lib'
7062   ;;
7063
7064 sunos4*)
7065   version_type=sunos
7066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7067   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7068   shlibpath_var=LD_LIBRARY_PATH
7069   shlibpath_overrides_runpath=yes
7070   if test "$with_gnu_ld" = yes; then
7071     need_lib_prefix=no
7072   fi
7073   need_version=yes
7074   ;;
7075
7076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7077   version_type=linux
7078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7079   soname_spec='${libname}${release}${shared_ext}$major'
7080   shlibpath_var=LD_LIBRARY_PATH
7081   case $host_vendor in
7082     sni)
7083       shlibpath_overrides_runpath=no
7084       need_lib_prefix=no
7085       export_dynamic_flag_spec='${wl}-Blargedynsym'
7086       runpath_var=LD_RUN_PATH
7087       ;;
7088     siemens)
7089       need_lib_prefix=no
7090       ;;
7091     motorola)
7092       need_lib_prefix=no
7093       need_version=no
7094       shlibpath_overrides_runpath=no
7095       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7096       ;;
7097   esac
7098   ;;
7099
7100 sysv4*MP*)
7101   if test -d /usr/nec ;then
7102     version_type=linux
7103     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7104     soname_spec='$libname${shared_ext}.$major'
7105     shlibpath_var=LD_LIBRARY_PATH
7106   fi
7107   ;;
7108
7109 uts4*)
7110   version_type=linux
7111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7112   soname_spec='${libname}${release}${shared_ext}$major'
7113   shlibpath_var=LD_LIBRARY_PATH
7114   ;;
7115
7116 *)
7117   dynamic_linker=no
7118   ;;
7119 esac
7120 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7121 echo "${ECHO_T}$dynamic_linker" >&6
7122 test "$dynamic_linker" = no && can_build_shared=no
7123
7124
7125 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7126 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7127 if test "${libltdl_cv_shlibext+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130
7131 module=yes
7132 eval libltdl_cv_shlibext=$shrext_cmds
7133
7134 fi
7135 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7136 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7137 if test -n "$libltdl_cv_shlibext"; then
7138
7139 cat >>confdefs.h <<_ACEOF
7140 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7141 _ACEOF
7142
7143 fi
7144
7145
7146 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7147 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7148 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   libltdl_cv_shlibpath_var="$shlibpath_var"
7152 fi
7153 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7154 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7155 if test -n "$libltdl_cv_shlibpath_var"; then
7156
7157 cat >>confdefs.h <<_ACEOF
7158 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7159 _ACEOF
7160
7161 fi
7162
7163
7164 echo "$as_me:$LINENO: checking for the default library search path" >&5
7165 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7166 if test "${libltdl_cv_sys_search_path+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7170 fi
7171 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7172 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7173 if test -n "$libltdl_cv_sys_search_path"; then
7174   sys_search_path=
7175   for dir in $libltdl_cv_sys_search_path; do
7176     if test -z "$sys_search_path"; then
7177       sys_search_path="$dir"
7178     else
7179       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7180     fi
7181   done
7182
7183 cat >>confdefs.h <<_ACEOF
7184 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7185 _ACEOF
7186
7187 fi
7188
7189 echo "$as_me:$LINENO: checking for objdir" >&5
7190 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7191 if test "${libltdl_cv_objdir+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   libltdl_cv_objdir="$objdir"
7195   if test -n "$objdir"; then
7196     :
7197   else
7198     rm -f .libs 2>/dev/null
7199     mkdir .libs 2>/dev/null
7200     if test -d .libs; then
7201       libltdl_cv_objdir=.libs
7202     else
7203       # MS-DOS does not allow filenames that begin with a dot.
7204       libltdl_cv_objdir=_libs
7205     fi
7206   rmdir .libs 2>/dev/null
7207   fi
7208
7209 fi
7210 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7211 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7215 _ACEOF
7216
7217
7218 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7219 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7220 if test "${lt_cv_path_NM+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   if test -n "$NM"; then
7224   # Let the user override the test.
7225   lt_cv_path_NM="$NM"
7226 else
7227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7228   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7229     IFS="$lt_save_ifs"
7230     test -z "$ac_dir" && ac_dir=.
7231     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7232     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7233       # Check to see if the nm accepts a BSD-compat flag.
7234       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7235       #   nm: unknown option "B" ignored
7236       # Tru64's nm complains that /dev/null is an invalid object file
7237       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7238       */dev/null* | *'Invalid file or object type'*)
7239         lt_cv_path_NM="$tmp_nm -B"
7240         break
7241         ;;
7242       *)
7243         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7244         */dev/null*)
7245           lt_cv_path_NM="$tmp_nm -p"
7246           break
7247           ;;
7248         *)
7249           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7250           continue # so that we can try to find one that supports BSD flags
7251           ;;
7252         esac
7253       esac
7254     fi
7255   done
7256   IFS="$lt_save_ifs"
7257   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7258 fi
7259 fi
7260 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7261 echo "${ECHO_T}$lt_cv_path_NM" >&6
7262 NM="$lt_cv_path_NM"
7263
7264
7265
7266
7267
7268 # Check for command to grab the raw symbol name followed by C symbol from nm.
7269 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7270 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7271 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274
7275 # These are sane defaults that work on at least a few old systems.
7276 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7277
7278 # Character class describing NM global symbol codes.
7279 symcode='[BCDEGRST]'
7280
7281 # Regexp to match symbols that can be accessed directly from C.
7282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7283
7284 # Transform the above into a raw symbol and a C symbol.
7285 symxfrm='\1 \2\3 \3'
7286
7287 # Transform an extracted symbol line into a proper C declaration
7288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7289
7290 # Transform an extracted symbol line into symbol name and symbol address
7291 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'"
7292
7293 # Define system-specific variables.
7294 case $host_os in
7295 aix*)
7296   symcode='[BCDT]'
7297   ;;
7298 cygwin* | mingw* | pw32*)
7299   symcode='[ABCDGISTW]'
7300   ;;
7301 hpux*) # Its linker distinguishes data from code symbols
7302   if test "$host_cpu" = ia64; then
7303     symcode='[ABCDEGRST]'
7304   fi
7305   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7307   ;;
7308 linux*)
7309   if test "$host_cpu" = ia64; then
7310     symcode='[ABCDGIRSTW]'
7311     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7312     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'"
7313   fi
7314   ;;
7315 irix* | nonstopux*)
7316   symcode='[BCDEGRST]'
7317   ;;
7318 osf*)
7319   symcode='[BCDEGQRST]'
7320   ;;
7321 solaris* | sysv5*)
7322   symcode='[BDRT]'
7323   ;;
7324 sysv4)
7325   symcode='[DFNSTU]'
7326   ;;
7327 esac
7328
7329 # Handle CRLF in mingw tool chain
7330 opt_cr=
7331 case $build_os in
7332 mingw*)
7333   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7334   ;;
7335 esac
7336
7337 # If we're using GNU nm, then use its standard symbol codes.
7338 case `$NM -V 2>&1` in
7339 *GNU* | *'with BFD'*)
7340   symcode='[ABCDGIRSTW]' ;;
7341 esac
7342
7343 # Try without a prefix undercore, then with it.
7344 for ac_symprfx in "" "_"; do
7345
7346   # Write the raw and C identifiers.
7347   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7348
7349   # Check to see that the pipe works correctly.
7350   pipe_works=no
7351
7352   rm -f conftest*
7353   cat > conftest.$ac_ext <<EOF
7354 #ifdef __cplusplus
7355 extern "C" {
7356 #endif
7357 char nm_test_var;
7358 void nm_test_func(){}
7359 #ifdef __cplusplus
7360 }
7361 #endif
7362 int main(){nm_test_var='a';nm_test_func();return(0);}
7363 EOF
7364
7365   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366   (eval $ac_compile) 2>&5
7367   ac_status=$?
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); }; then
7370     # Now try to grab the symbols.
7371     nlist=conftest.nm
7372     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7373   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } && test -s "$nlist"; then
7377       # Try sorting and uniquifying the output.
7378       if sort "$nlist" | uniq > "$nlist"T; then
7379         mv -f "$nlist"T "$nlist"
7380       else
7381         rm -f "$nlist"T
7382       fi
7383
7384       # Make sure that we snagged all the symbols we need.
7385       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7386         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7387           cat <<EOF > conftest.$ac_ext
7388 #ifdef __cplusplus
7389 extern "C" {
7390 #endif
7391
7392 EOF
7393           # Now generate the symbol file.
7394           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7395
7396           cat <<EOF >> conftest.$ac_ext
7397 #if defined (__STDC__) && __STDC__
7398 # define lt_ptr_t void *
7399 #else
7400 # define lt_ptr_t char *
7401 # define const
7402 #endif
7403
7404 /* The mapping between symbol names and symbols. */
7405 const struct {
7406   const char *name;
7407   lt_ptr_t address;
7408 }
7409 lt_preloaded_symbols[] =
7410 {
7411 EOF
7412           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7413           cat <<\EOF >> conftest.$ac_ext
7414   {0, (lt_ptr_t) 0}
7415 };
7416
7417 #ifdef __cplusplus
7418 }
7419 #endif
7420 EOF
7421           # Now try linking the two files.
7422           mv conftest.$ac_objext conftstm.$ac_objext
7423           lt_save_LIBS="$LIBS"
7424           lt_save_CFLAGS="$CFLAGS"
7425           LIBS="conftstm.$ac_objext"
7426           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7427           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428   (eval $ac_link) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7432             pipe_works=yes
7433           fi
7434           LIBS="$lt_save_LIBS"
7435           CFLAGS="$lt_save_CFLAGS"
7436         else
7437           echo "cannot find nm_test_func in $nlist" >&5
7438         fi
7439       else
7440         echo "cannot find nm_test_var in $nlist" >&5
7441       fi
7442     else
7443       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7444     fi
7445   else
7446     echo "$progname: failed program was:" >&5
7447     cat conftest.$ac_ext >&5
7448   fi
7449   rm -f conftest* conftst*
7450
7451   # Do not use the global_symbol_pipe unless it works.
7452   if test "$pipe_works" = yes; then
7453     break
7454   else
7455     lt_cv_sys_global_symbol_pipe=
7456   fi
7457 done
7458
7459 fi
7460
7461 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7462   lt_cv_sys_global_symbol_to_cdecl=
7463 fi
7464 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7465   echo "$as_me:$LINENO: result: failed" >&5
7466 echo "${ECHO_T}failed" >&6
7467 else
7468   echo "$as_me:$LINENO: result: ok" >&5
7469 echo "${ECHO_T}ok" >&6
7470 fi
7471
7472
7473 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7474 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7475 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7479     libltdl_cv_preloaded_symbols=yes
7480   else
7481     libltdl_cv_preloaded_symbols=no
7482   fi
7483
7484 fi
7485 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7486 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7487 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7488
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_PRELOADED_SYMBOLS 1
7491 _ACEOF
7492
7493 fi
7494
7495 LIBADD_DL=
7496
7497 ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503
7504 echo "$as_me:$LINENO: checking for shl_load" >&5
7505 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7506 if test "${ac_cv_func_shl_load+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   cat >conftest.$ac_ext <<_ACEOF
7510 /* confdefs.h.  */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h.  */
7515 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7517 #define shl_load innocuous_shl_load
7518
7519 /* System header to define __stub macros and hopefully few prototypes,
7520     which can conflict with char shl_load (); below.
7521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7522     <limits.h> exists even on freestanding compilers.  */
7523
7524 #ifdef __STDC__
7525 # include <limits.h>
7526 #else
7527 # include <assert.h>
7528 #endif
7529
7530 #undef shl_load
7531
7532 /* Override any gcc2 internal prototype to avoid an error.  */
7533 #ifdef __cplusplus
7534 extern "C"
7535 {
7536 #endif
7537 /* We use char because int might match the return type of a gcc2
7538    builtin and then its argument prototype would still apply.  */
7539 char shl_load ();
7540 /* The GNU C library defines this for functions which it implements
7541     to always fail with ENOSYS.  Some functions are actually named
7542     something starting with __ and the normal name is an alias.  */
7543 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7544 choke me
7545 #else
7546 char (*f) () = shl_load;
7547 #endif
7548 #ifdef __cplusplus
7549 }
7550 #endif
7551
7552 int
7553 main ()
7554 {
7555 return f != shl_load;
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 rm -f conftest.$ac_objext conftest$ac_exeext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7562   (eval $ac_link) 2>conftest.er1
7563   ac_status=$?
7564   grep -v '^ *+' conftest.er1 >conftest.err
7565   rm -f conftest.er1
7566   cat conftest.err >&5
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); } &&
7569          { ac_try='test -z "$ac_c_werror_flag"
7570                          || test ! -s conftest.err'
7571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572   (eval $ac_try) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); }; } &&
7576          { ac_try='test -s conftest$ac_exeext'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; }; then
7582   ac_cv_func_shl_load=yes
7583 else
7584   echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 ac_cv_func_shl_load=no
7588 fi
7589 rm -f conftest.err conftest.$ac_objext \
7590       conftest$ac_exeext conftest.$ac_ext
7591 fi
7592 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7593 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7594 if test $ac_cv_func_shl_load = yes; then
7595
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_SHL_LOAD 1
7598 _ACEOF
7599
7600 else
7601   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   ac_check_lib_save_LIBS=$LIBS
7607 LIBS="-ldld  $LIBS"
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614
7615 /* Override any gcc2 internal prototype to avoid an error.  */
7616 #ifdef __cplusplus
7617 extern "C"
7618 #endif
7619 /* We use char because int might match the return type of a gcc2
7620    builtin and then its argument prototype would still apply.  */
7621 char shl_load ();
7622 int
7623 main ()
7624 {
7625 shl_load ();
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632   (eval $ac_link) 2>conftest.er1
7633   ac_status=$?
7634   grep -v '^ *+' conftest.er1 >conftest.err
7635   rm -f conftest.er1
7636   cat conftest.err >&5
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } &&
7639          { ac_try='test -z "$ac_c_werror_flag"
7640                          || test ! -s conftest.err'
7641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642   (eval $ac_try) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; } &&
7646          { ac_try='test -s conftest$ac_exeext'
7647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648   (eval $ac_try) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }; }; then
7652   ac_cv_lib_dld_shl_load=yes
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ac_cv_lib_dld_shl_load=no
7658 fi
7659 rm -f conftest.err conftest.$ac_objext \
7660       conftest$ac_exeext conftest.$ac_ext
7661 LIBS=$ac_check_lib_save_LIBS
7662 fi
7663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7665 if test $ac_cv_lib_dld_shl_load = yes; then
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_SHL_LOAD 1
7669 _ACEOF
7670
7671         LIBADD_DL="$LIBADD_DL -ldld"
7672 else
7673   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   ac_check_lib_save_LIBS=$LIBS
7679 LIBS="-ldl  $LIBS"
7680 cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h.  */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h.  */
7686
7687 /* Override any gcc2 internal prototype to avoid an error.  */
7688 #ifdef __cplusplus
7689 extern "C"
7690 #endif
7691 /* We use char because int might match the return type of a gcc2
7692    builtin and then its argument prototype would still apply.  */
7693 char dlopen ();
7694 int
7695 main ()
7696 {
7697 dlopen ();
7698   ;
7699   return 0;
7700 }
7701 _ACEOF
7702 rm -f conftest.$ac_objext conftest$ac_exeext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704   (eval $ac_link) 2>conftest.er1
7705   ac_status=$?
7706   grep -v '^ *+' conftest.er1 >conftest.err
7707   rm -f conftest.er1
7708   cat conftest.err >&5
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); } &&
7711          { ac_try='test -z "$ac_c_werror_flag"
7712                          || test ! -s conftest.err'
7713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714   (eval $ac_try) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); }; } &&
7718          { ac_try='test -s conftest$ac_exeext'
7719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720   (eval $ac_try) 2>&5
7721   ac_status=$?
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); }; }; then
7724   ac_cv_lib_dl_dlopen=yes
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 ac_cv_lib_dl_dlopen=no
7730 fi
7731 rm -f conftest.err conftest.$ac_objext \
7732       conftest$ac_exeext conftest.$ac_ext
7733 LIBS=$ac_check_lib_save_LIBS
7734 fi
7735 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7737 if test $ac_cv_lib_dl_dlopen = yes; then
7738
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_LIBDL 1
7741 _ACEOF
7742
7743                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7744 else
7745   cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h.  */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h.  */
7751 #if HAVE_DLFCN_H
7752 #  include <dlfcn.h>
7753 #endif
7754
7755 int
7756 main ()
7757 {
7758 dlopen(0, 0);
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765   (eval $ac_link) 2>conftest.er1
7766   ac_status=$?
7767   grep -v '^ *+' conftest.er1 >conftest.err
7768   rm -f conftest.er1
7769   cat conftest.err >&5
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } &&
7772          { ac_try='test -z "$ac_c_werror_flag"
7773                          || test ! -s conftest.err'
7774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775   (eval $ac_try) 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; } &&
7779          { ac_try='test -s conftest$ac_exeext'
7780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781   (eval $ac_try) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_LIBDL 1
7788 _ACEOF
7789  libltdl_cv_func_dlopen="yes"
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7795 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   ac_check_lib_save_LIBS=$LIBS
7800 LIBS="-lsvld  $LIBS"
7801 cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h.  */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h.  */
7807
7808 /* Override any gcc2 internal prototype to avoid an error.  */
7809 #ifdef __cplusplus
7810 extern "C"
7811 #endif
7812 /* We use char because int might match the return type of a gcc2
7813    builtin and then its argument prototype would still apply.  */
7814 char dlopen ();
7815 int
7816 main ()
7817 {
7818 dlopen ();
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825   (eval $ac_link) 2>conftest.er1
7826   ac_status=$?
7827   grep -v '^ *+' conftest.er1 >conftest.err
7828   rm -f conftest.er1
7829   cat conftest.err >&5
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } &&
7832          { ac_try='test -z "$ac_c_werror_flag"
7833                          || test ! -s conftest.err'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; } &&
7839          { ac_try='test -s conftest$ac_exeext'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; }; then
7845   ac_cv_lib_svld_dlopen=yes
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7849
7850 ac_cv_lib_svld_dlopen=no
7851 fi
7852 rm -f conftest.err conftest.$ac_objext \
7853       conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7855 fi
7856 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7857 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7858 if test $ac_cv_lib_svld_dlopen = yes; then
7859
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_LIBDL 1
7862 _ACEOF
7863
7864                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7865 else
7866   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7867 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7868 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   ac_check_lib_save_LIBS=$LIBS
7872 LIBS="-ldld  $LIBS"
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h.  */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h.  */
7879
7880 /* Override any gcc2 internal prototype to avoid an error.  */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 /* We use char because int might match the return type of a gcc2
7885    builtin and then its argument prototype would still apply.  */
7886 char dld_link ();
7887 int
7888 main ()
7889 {
7890 dld_link ();
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897   (eval $ac_link) 2>conftest.er1
7898   ac_status=$?
7899   grep -v '^ *+' conftest.er1 >conftest.err
7900   rm -f conftest.er1
7901   cat conftest.err >&5
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -z "$ac_c_werror_flag"
7905                          || test ! -s conftest.err'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; } &&
7911          { ac_try='test -s conftest$ac_exeext'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; }; then
7917   ac_cv_lib_dld_dld_link=yes
7918 else
7919   echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 ac_cv_lib_dld_dld_link=no
7923 fi
7924 rm -f conftest.err conftest.$ac_objext \
7925       conftest$ac_exeext conftest.$ac_ext
7926 LIBS=$ac_check_lib_save_LIBS
7927 fi
7928 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7929 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7930 if test $ac_cv_lib_dld_dld_link = yes; then
7931
7932 cat >>confdefs.h <<\_ACEOF
7933 #define HAVE_DLD 1
7934 _ACEOF
7935
7936                 LIBADD_DL="$LIBADD_DL -ldld"
7937 else
7938   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7939 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7940 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h.  */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h.  */
7949 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7951 #define _dyld_func_lookup innocuous__dyld_func_lookup
7952
7953 /* System header to define __stub macros and hopefully few prototypes,
7954     which can conflict with char _dyld_func_lookup (); below.
7955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7956     <limits.h> exists even on freestanding compilers.  */
7957
7958 #ifdef __STDC__
7959 # include <limits.h>
7960 #else
7961 # include <assert.h>
7962 #endif
7963
7964 #undef _dyld_func_lookup
7965
7966 /* Override any gcc2 internal prototype to avoid an error.  */
7967 #ifdef __cplusplus
7968 extern "C"
7969 {
7970 #endif
7971 /* We use char because int might match the return type of a gcc2
7972    builtin and then its argument prototype would still apply.  */
7973 char _dyld_func_lookup ();
7974 /* The GNU C library defines this for functions which it implements
7975     to always fail with ENOSYS.  Some functions are actually named
7976     something starting with __ and the normal name is an alias.  */
7977 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7978 choke me
7979 #else
7980 char (*f) () = _dyld_func_lookup;
7981 #endif
7982 #ifdef __cplusplus
7983 }
7984 #endif
7985
7986 int
7987 main ()
7988 {
7989 return f != _dyld_func_lookup;
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996   (eval $ac_link) 2>conftest.er1
7997   ac_status=$?
7998   grep -v '^ *+' conftest.er1 >conftest.err
7999   rm -f conftest.er1
8000   cat conftest.err >&5
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); } &&
8003          { ac_try='test -z "$ac_c_werror_flag"
8004                          || test ! -s conftest.err'
8005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006   (eval $ac_try) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; } &&
8010          { ac_try='test -s conftest$ac_exeext'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; }; then
8016   ac_cv_func__dyld_func_lookup=yes
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 ac_cv_func__dyld_func_lookup=no
8022 fi
8023 rm -f conftest.err conftest.$ac_objext \
8024       conftest$ac_exeext conftest.$ac_ext
8025 fi
8026 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8027 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8028 if test $ac_cv_func__dyld_func_lookup = yes; then
8029
8030 cat >>confdefs.h <<\_ACEOF
8031 #define HAVE_DYLD 1
8032 _ACEOF
8033
8034 fi
8035
8036
8037 fi
8038
8039
8040 fi
8041
8042
8043 fi
8044 rm -f conftest.err conftest.$ac_objext \
8045       conftest$ac_exeext conftest.$ac_ext
8046
8047 fi
8048
8049
8050 fi
8051
8052
8053 fi
8054
8055
8056 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8057 then
8058   lt_save_LIBS="$LIBS"
8059   LIBS="$LIBS $LIBADD_DL"
8060
8061 for ac_func in dlerror
8062 do
8063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8064 echo "$as_me:$LINENO: checking for $ac_func" >&5
8065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8066 if eval "test \"\${$as_ac_var+set}\" = set"; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8077 #define $ac_func innocuous_$ac_func
8078
8079 /* System header to define __stub macros and hopefully few prototypes,
8080     which can conflict with char $ac_func (); below.
8081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8082     <limits.h> exists even on freestanding compilers.  */
8083
8084 #ifdef __STDC__
8085 # include <limits.h>
8086 #else
8087 # include <assert.h>
8088 #endif
8089
8090 #undef $ac_func
8091
8092 /* Override any gcc2 internal prototype to avoid an error.  */
8093 #ifdef __cplusplus
8094 extern "C"
8095 {
8096 #endif
8097 /* We use char because int might match the return type of a gcc2
8098    builtin and then its argument prototype would still apply.  */
8099 char $ac_func ();
8100 /* The GNU C library defines this for functions which it implements
8101     to always fail with ENOSYS.  Some functions are actually named
8102     something starting with __ and the normal name is an alias.  */
8103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8104 choke me
8105 #else
8106 char (*f) () = $ac_func;
8107 #endif
8108 #ifdef __cplusplus
8109 }
8110 #endif
8111
8112 int
8113 main ()
8114 {
8115 return f != $ac_func;
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8122   (eval $ac_link) 2>conftest.er1
8123   ac_status=$?
8124   grep -v '^ *+' conftest.er1 >conftest.err
8125   rm -f conftest.er1
8126   cat conftest.err >&5
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } &&
8129          { ac_try='test -z "$ac_c_werror_flag"
8130                          || test ! -s conftest.err'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; } &&
8136          { ac_try='test -s conftest$ac_exeext'
8137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138   (eval $ac_try) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; }; then
8142   eval "$as_ac_var=yes"
8143 else
8144   echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147 eval "$as_ac_var=no"
8148 fi
8149 rm -f conftest.err conftest.$ac_objext \
8150       conftest$ac_exeext conftest.$ac_ext
8151 fi
8152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8154 if test `eval echo '${'$as_ac_var'}'` = yes; then
8155   cat >>confdefs.h <<_ACEOF
8156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8157 _ACEOF
8158
8159 fi
8160 done
8161
8162   LIBS="$lt_save_LIBS"
8163 fi
8164 ac_ext=c
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171
8172 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8173 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8174 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   ac_cv_sys_symbol_underscore=no
8178   cat > conftest.$ac_ext <<EOF
8179 void nm_test_func(){}
8180 int main(){nm_test_func;return 0;}
8181 EOF
8182   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183   (eval $ac_compile) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; then
8187     # Now try to grab the symbols.
8188     ac_nlist=conftest.nm
8189     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8190   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } && test -s "$ac_nlist"; then
8194       # See whether the symbols have a leading underscore.
8195       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8196         ac_cv_sys_symbol_underscore=yes
8197       else
8198         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8199           :
8200         else
8201           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8202         fi
8203       fi
8204     else
8205       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8206     fi
8207   else
8208     echo "configure: failed program was:" >&5
8209     cat conftest.c >&5
8210   fi
8211   rm -rf conftest*
8212
8213 fi
8214 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8215 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8216
8217
8218 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8219   if test x"$libltdl_cv_func_dlopen" = xyes ||
8220      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8221         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8222 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8223 if test "${libltdl_cv_need_uscore+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   libltdl_cv_need_uscore=unknown
8227           save_LIBS="$LIBS"
8228           LIBS="$LIBS $LIBADD_DL"
8229           if test "$cross_compiling" = yes; then :
8230   libltdl_cv_need_uscore=cross
8231 else
8232   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8233   lt_status=$lt_dlunknown
8234   cat > conftest.$ac_ext <<EOF
8235 #line 8235 "configure"
8236 #include "confdefs.h"
8237
8238 #if HAVE_DLFCN_H
8239 #include <dlfcn.h>
8240 #endif
8241
8242 #include <stdio.h>
8243
8244 #ifdef RTLD_GLOBAL
8245 #  define LT_DLGLOBAL           RTLD_GLOBAL
8246 #else
8247 #  ifdef DL_GLOBAL
8248 #    define LT_DLGLOBAL         DL_GLOBAL
8249 #  else
8250 #    define LT_DLGLOBAL         0
8251 #  endif
8252 #endif
8253
8254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8255    find out it does not work in some platform. */
8256 #ifndef LT_DLLAZY_OR_NOW
8257 #  ifdef RTLD_LAZY
8258 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8259 #  else
8260 #    ifdef DL_LAZY
8261 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8262 #    else
8263 #      ifdef RTLD_NOW
8264 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8265 #      else
8266 #        ifdef DL_NOW
8267 #          define LT_DLLAZY_OR_NOW      DL_NOW
8268 #        else
8269 #          define LT_DLLAZY_OR_NOW      0
8270 #        endif
8271 #      endif
8272 #    endif
8273 #  endif
8274 #endif
8275
8276 #ifdef __cplusplus
8277 extern "C" void exit (int);
8278 #endif
8279
8280 void fnord() { int i=42;}
8281 int main ()
8282 {
8283   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8284   int status = $lt_dlunknown;
8285
8286   if (self)
8287     {
8288       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8289       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8290       /* dlclose (self); */
8291     }
8292
8293     exit (status);
8294 }
8295 EOF
8296   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297   (eval $ac_link) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8301     (./conftest; exit; ) 2>/dev/null
8302     lt_status=$?
8303     case x$lt_status in
8304       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8305       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8306       x$lt_unknown|x*)  ;;
8307     esac
8308   else :
8309     # compilation failed
8310
8311   fi
8312 fi
8313 rm -fr conftest*
8314
8315           LIBS="$save_LIBS"
8316
8317 fi
8318 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8319 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8320   fi
8321 fi
8322
8323 if test x"$libltdl_cv_need_uscore" = xyes; then
8324
8325 cat >>confdefs.h <<\_ACEOF
8326 #define NEED_USCORE 1
8327 _ACEOF
8328
8329 fi
8330
8331
8332 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8333 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8334 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   # PORTME does your system automatically load deplibs for dlopen?
8338   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8339   # For now, we just catch OSes we know something about -- in the
8340   # future, we'll try test this programmatically.
8341   libltdl_cv_sys_dlopen_deplibs=unknown
8342   case "$host_os" in
8343   aix3*|aix4.1.*|aix4.2.*)
8344     # Unknown whether this is true for these versions of AIX, but
8345     # we want this `case' here to explicitly catch those versions.
8346     libltdl_cv_sys_dlopen_deplibs=unknown
8347     ;;
8348   aix[45]*)
8349     libltdl_cv_sys_dlopen_deplibs=yes
8350     ;;
8351   darwin*)
8352     # Assuming the user has installed a libdl from somewhere, this is true
8353     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8354     libltdl_cv_sys_dlopen_deplibs=yes
8355     ;;
8356   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8357     # GNU and its variants, using gnu ld.so (Glibc)
8358     libltdl_cv_sys_dlopen_deplibs=yes
8359     ;;
8360   hpux10*|hpux11*)
8361     libltdl_cv_sys_dlopen_deplibs=yes
8362     ;;
8363   irix[12345]*|irix6.[01]*)
8364     # Catch all versions of IRIX before 6.2, and indicate that we don't
8365     # know how it worked for any of those versions.
8366     libltdl_cv_sys_dlopen_deplibs=unknown
8367     ;;
8368   irix*)
8369     # The case above catches anything before 6.2, and it's known that
8370     # at 6.2 and later dlopen does load deplibs.
8371     libltdl_cv_sys_dlopen_deplibs=yes
8372     ;;
8373   netbsd*)
8374     libltdl_cv_sys_dlopen_deplibs=yes
8375     ;;
8376   openbsd*)
8377     libltdl_cv_sys_dlopen_deplibs=yes
8378     ;;
8379   osf[1234]*)
8380     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8381     # it did *not* use an RPATH in a shared library to find objects the
8382     # library depends on, so we explictly say `no'.
8383     libltdl_cv_sys_dlopen_deplibs=no
8384     ;;
8385   osf5.0|osf5.0a|osf5.1)
8386     # dlopen *does* load deplibs and with the right loader patch applied
8387     # it even uses RPATH in a shared library to search for shared objects
8388     # that the library depends on, but there's no easy way to know if that
8389     # patch is installed.  Since this is the case, all we can really
8390     # say is unknown -- it depends on the patch being installed.  If
8391     # it is, this changes to `yes'.  Without it, it would be `no'.
8392     libltdl_cv_sys_dlopen_deplibs=unknown
8393     ;;
8394   osf*)
8395     # the two cases above should catch all versions of osf <= 5.1.  Read
8396     # the comments above for what we know about them.
8397     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8398     # is used to find them so we can finally say `yes'.
8399     libltdl_cv_sys_dlopen_deplibs=yes
8400     ;;
8401   solaris*)
8402     libltdl_cv_sys_dlopen_deplibs=yes
8403     ;;
8404   esac
8405
8406 fi
8407 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8408 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8409 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8410
8411 cat >>confdefs.h <<\_ACEOF
8412 #define LTDL_DLOPEN_DEPLIBS 1
8413 _ACEOF
8414
8415 fi
8416
8417
8418 for ac_header in argz.h
8419 do
8420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422   echo "$as_me:$LINENO: checking for $ac_header" >&5
8423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 fi
8427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8429 else
8430   # Is the header compilable?
8431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439 $ac_includes_default
8440 #include <$ac_header>
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444   (eval $ac_compile) 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag"
8452                          || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_header_compiler=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_header_compiler=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8473 echo "${ECHO_T}$ac_header_compiler" >&6
8474
8475 # Is the header present?
8476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h.  */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h.  */
8484 #include <$ac_header>
8485 _ACEOF
8486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } >/dev/null; then
8494   if test -s conftest.err; then
8495     ac_cpp_err=$ac_c_preproc_warn_flag
8496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8497   else
8498     ac_cpp_err=
8499   fi
8500 else
8501   ac_cpp_err=yes
8502 fi
8503 if test -z "$ac_cpp_err"; then
8504   ac_header_preproc=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509   ac_header_preproc=no
8510 fi
8511 rm -f conftest.err conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6
8514
8515 # So?  What about this header?
8516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8517   yes:no: )
8518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8522     ac_header_preproc=yes
8523     ;;
8524   no:yes:* )
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8528 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8529     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8531     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8532 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8535     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8537     (
8538       cat <<\_ASBOX
8539 ## ----------------------------------- ##
8540 ## Report this to llvmbugs@cs.uiuc.edu ##
8541 ## ----------------------------------- ##
8542 _ASBOX
8543     ) |
8544       sed "s/^/$as_me: WARNING:     /" >&2
8545     ;;
8546 esac
8547 echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552   eval "$as_ac_Header=\$ac_header_preproc"
8553 fi
8554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8556
8557 fi
8558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559   cat >>confdefs.h <<_ACEOF
8560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 _ACEOF
8562
8563 fi
8564
8565 done
8566
8567
8568 echo "$as_me:$LINENO: checking for error_t" >&5
8569 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8570 if test "${ac_cv_type_error_t+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579 #if HAVE_ARGZ_H
8580 #  include <argz.h>
8581 #endif
8582
8583 int
8584 main ()
8585 {
8586 if ((error_t *) 0)
8587   return 0;
8588 if (sizeof (error_t))
8589   return 0;
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596   (eval $ac_compile) 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag"
8604                          || test ! -s conftest.err'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; } &&
8610          { ac_try='test -s conftest.$ac_objext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_type_error_t=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_type_error_t=no
8622 fi
8623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8626 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8627 if test $ac_cv_type_error_t = yes; then
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_ERROR_T 1
8631 _ACEOF
8632
8633
8634 else
8635
8636 cat >>confdefs.h <<\_ACEOF
8637 #define error_t int
8638 _ACEOF
8639
8640 fi
8641
8642
8643
8644
8645
8646
8647
8648 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8649 do
8650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651 echo "$as_me:$LINENO: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then
8654   echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656   cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8664 #define $ac_func innocuous_$ac_func
8665
8666 /* System header to define __stub macros and hopefully few prototypes,
8667     which can conflict with char $ac_func (); below.
8668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669     <limits.h> exists even on freestanding compilers.  */
8670
8671 #ifdef __STDC__
8672 # include <limits.h>
8673 #else
8674 # include <assert.h>
8675 #endif
8676
8677 #undef $ac_func
8678
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 {
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685    builtin and then its argument prototype would still apply.  */
8686 char $ac_func ();
8687 /* The GNU C library defines this for functions which it implements
8688     to always fail with ENOSYS.  Some functions are actually named
8689     something starting with __ and the normal name is an alias.  */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8691 choke me
8692 #else
8693 char (*f) () = $ac_func;
8694 #endif
8695 #ifdef __cplusplus
8696 }
8697 #endif
8698
8699 int
8700 main ()
8701 {
8702 return f != $ac_func;
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709   (eval $ac_link) 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag"
8717                          || test ! -s conftest.err'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   eval "$as_ac_var=yes"
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 eval "$as_ac_var=no"
8735 fi
8736 rm -f conftest.err conftest.$ac_objext \
8737       conftest$ac_exeext conftest.$ac_ext
8738 fi
8739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8741 if test `eval echo '${'$as_ac_var'}'` = yes; then
8742   cat >>confdefs.h <<_ACEOF
8743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8744 _ACEOF
8745
8746 fi
8747 done
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8777                   stdio.h unistd.h
8778 do
8779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8781   echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 fi
8786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8788 else
8789   # Is the header compilable?
8790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798 $ac_includes_default
8799 #include <$ac_header>
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803   (eval $ac_compile) 2>conftest.er1
8804   ac_status=$?
8805   grep -v '^ *+' conftest.er1 >conftest.err
8806   rm -f conftest.er1
8807   cat conftest.err >&5
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -z "$ac_c_werror_flag"
8811                          || test ! -s conftest.err'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; } &&
8817          { ac_try='test -s conftest.$ac_objext'
8818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819   (eval $ac_try) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   ac_header_compiler=yes
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 ac_header_compiler=no
8829 fi
8830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8832 echo "${ECHO_T}$ac_header_compiler" >&6
8833
8834 # Is the header present?
8835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8837 cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843 #include <$ac_header>
8844 _ACEOF
8845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8847   ac_status=$?
8848   grep -v '^ *+' conftest.er1 >conftest.err
8849   rm -f conftest.er1
8850   cat conftest.err >&5
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } >/dev/null; then
8853   if test -s conftest.err; then
8854     ac_cpp_err=$ac_c_preproc_warn_flag
8855     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8856   else
8857     ac_cpp_err=
8858   fi
8859 else
8860   ac_cpp_err=yes
8861 fi
8862 if test -z "$ac_cpp_err"; then
8863   ac_header_preproc=yes
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868   ac_header_preproc=no
8869 fi
8870 rm -f conftest.err conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8872 echo "${ECHO_T}$ac_header_preproc" >&6
8873
8874 # So?  What about this header?
8875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8876   yes:no: )
8877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8881     ac_header_preproc=yes
8882     ;;
8883   no:yes:* )
8884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8886     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8887 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8890     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8891 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8896     (
8897       cat <<\_ASBOX
8898 ## ----------------------------------- ##
8899 ## Report this to llvmbugs@cs.uiuc.edu ##
8900 ## ----------------------------------- ##
8901 _ASBOX
8902     ) |
8903       sed "s/^/$as_me: WARNING:     /" >&2
8904     ;;
8905 esac
8906 echo "$as_me:$LINENO: checking for $ac_header" >&5
8907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   eval "$as_ac_Header=\$ac_header_preproc"
8912 fi
8913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8915
8916 fi
8917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8918   cat >>confdefs.h <<_ACEOF
8919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8920 _ACEOF
8921
8922 fi
8923
8924 done
8925
8926
8927
8928
8929
8930 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8931 do
8932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934   echo "$as_me:$LINENO: checking for $ac_header" >&5
8935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 fi
8939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8941 else
8942   # Is the header compilable?
8943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951 $ac_includes_default
8952 #include <$ac_header>
8953 _ACEOF
8954 rm -f conftest.$ac_objext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956   (eval $ac_compile) 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } &&
8963          { ac_try='test -z "$ac_c_werror_flag"
8964                          || test ! -s conftest.err'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; } &&
8970          { ac_try='test -s conftest.$ac_objext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_header_compiler=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_header_compiler=no
8982 fi
8983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985 echo "${ECHO_T}$ac_header_compiler" >&6
8986
8987 # Is the header present?
8988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996 #include <$ac_header>
8997 _ACEOF
8998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } >/dev/null; then
9006   if test -s conftest.err; then
9007     ac_cpp_err=$ac_c_preproc_warn_flag
9008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9009   else
9010     ac_cpp_err=
9011   fi
9012 else
9013   ac_cpp_err=yes
9014 fi
9015 if test -z "$ac_cpp_err"; then
9016   ac_header_preproc=yes
9017 else
9018   echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021   ac_header_preproc=no
9022 fi
9023 rm -f conftest.err conftest.$ac_ext
9024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9025 echo "${ECHO_T}$ac_header_preproc" >&6
9026
9027 # So?  What about this header?
9028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9029   yes:no: )
9030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9034     ac_header_preproc=yes
9035     ;;
9036   no:yes:* )
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9049     (
9050       cat <<\_ASBOX
9051 ## ----------------------------------- ##
9052 ## Report this to llvmbugs@cs.uiuc.edu ##
9053 ## ----------------------------------- ##
9054 _ASBOX
9055     ) |
9056       sed "s/^/$as_me: WARNING:     /" >&2
9057     ;;
9058 esac
9059 echo "$as_me:$LINENO: checking for $ac_header" >&5
9060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   eval "$as_ac_Header=\$ac_header_preproc"
9065 fi
9066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9068
9069 fi
9070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9071   cat >>confdefs.h <<_ACEOF
9072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 _ACEOF
9074
9075 fi
9076
9077 done
9078
9079
9080
9081 for ac_header in string.h strings.h
9082 do
9083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085   echo "$as_me:$LINENO: checking for $ac_header" >&5
9086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 fi
9090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9092 else
9093   # Is the header compilable?
9094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h.  */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h.  */
9102 $ac_includes_default
9103 #include <$ac_header>
9104 _ACEOF
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107   (eval $ac_compile) 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } &&
9114          { ac_try='test -z "$ac_c_werror_flag"
9115                          || test ! -s conftest.err'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; } &&
9121          { ac_try='test -s conftest.$ac_objext'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   ac_header_compiler=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_header_compiler=no
9133 fi
9134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9136 echo "${ECHO_T}$ac_header_compiler" >&6
9137
9138 # Is the header present?
9139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h.  */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h.  */
9147 #include <$ac_header>
9148 _ACEOF
9149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9151   ac_status=$?
9152   grep -v '^ *+' conftest.er1 >conftest.err
9153   rm -f conftest.er1
9154   cat conftest.err >&5
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); } >/dev/null; then
9157   if test -s conftest.err; then
9158     ac_cpp_err=$ac_c_preproc_warn_flag
9159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9160   else
9161     ac_cpp_err=
9162   fi
9163 else
9164   ac_cpp_err=yes
9165 fi
9166 if test -z "$ac_cpp_err"; then
9167   ac_header_preproc=yes
9168 else
9169   echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9171
9172   ac_header_preproc=no
9173 fi
9174 rm -f conftest.err conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9176 echo "${ECHO_T}$ac_header_preproc" >&6
9177
9178 # So?  What about this header?
9179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9180   yes:no: )
9181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9185     ac_header_preproc=yes
9186     ;;
9187   no:yes:* )
9188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9200     (
9201       cat <<\_ASBOX
9202 ## ----------------------------------- ##
9203 ## Report this to llvmbugs@cs.uiuc.edu ##
9204 ## ----------------------------------- ##
9205 _ASBOX
9206     ) |
9207       sed "s/^/$as_me: WARNING:     /" >&2
9208     ;;
9209 esac
9210 echo "$as_me:$LINENO: checking for $ac_header" >&5
9211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   eval "$as_ac_Header=\$ac_header_preproc"
9216 fi
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9219
9220 fi
9221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222   cat >>confdefs.h <<_ACEOF
9223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9224 _ACEOF
9225  break
9226 fi
9227
9228 done
9229
9230
9231
9232
9233 for ac_func in strchr index
9234 do
9235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9236 echo "$as_me:$LINENO: checking for $ac_func" >&5
9237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9238 if eval "test \"\${$as_ac_var+set}\" = set"; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9249 #define $ac_func innocuous_$ac_func
9250
9251 /* System header to define __stub macros and hopefully few prototypes,
9252     which can conflict with char $ac_func (); below.
9253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9254     <limits.h> exists even on freestanding compilers.  */
9255
9256 #ifdef __STDC__
9257 # include <limits.h>
9258 #else
9259 # include <assert.h>
9260 #endif
9261
9262 #undef $ac_func
9263
9264 /* Override any gcc2 internal prototype to avoid an error.  */
9265 #ifdef __cplusplus
9266 extern "C"
9267 {
9268 #endif
9269 /* We use char because int might match the return type of a gcc2
9270    builtin and then its argument prototype would still apply.  */
9271 char $ac_func ();
9272 /* The GNU C library defines this for functions which it implements
9273     to always fail with ENOSYS.  Some functions are actually named
9274     something starting with __ and the normal name is an alias.  */
9275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9276 choke me
9277 #else
9278 char (*f) () = $ac_func;
9279 #endif
9280 #ifdef __cplusplus
9281 }
9282 #endif
9283
9284 int
9285 main ()
9286 {
9287 return f != $ac_func;
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294   (eval $ac_link) 2>conftest.er1
9295   ac_status=$?
9296   grep -v '^ *+' conftest.er1 >conftest.err
9297   rm -f conftest.er1
9298   cat conftest.err >&5
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } &&
9301          { ac_try='test -z "$ac_c_werror_flag"
9302                          || test ! -s conftest.err'
9303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304   (eval $ac_try) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); }; } &&
9308          { ac_try='test -s conftest$ac_exeext'
9309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310   (eval $ac_try) 2>&5
9311   ac_status=$?
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); }; }; then
9314   eval "$as_ac_var=yes"
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 eval "$as_ac_var=no"
9320 fi
9321 rm -f conftest.err conftest.$ac_objext \
9322       conftest$ac_exeext conftest.$ac_ext
9323 fi
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9326 if test `eval echo '${'$as_ac_var'}'` = yes; then
9327   cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9329 _ACEOF
9330  break
9331 fi
9332 done
9333
9334
9335
9336 for ac_func in strrchr rindex
9337 do
9338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9339 echo "$as_me:$LINENO: checking for $ac_func" >&5
9340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9341 if eval "test \"\${$as_ac_var+set}\" = set"; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344   cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9352 #define $ac_func innocuous_$ac_func
9353
9354 /* System header to define __stub macros and hopefully few prototypes,
9355     which can conflict with char $ac_func (); below.
9356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357     <limits.h> exists even on freestanding compilers.  */
9358
9359 #ifdef __STDC__
9360 # include <limits.h>
9361 #else
9362 # include <assert.h>
9363 #endif
9364
9365 #undef $ac_func
9366
9367 /* Override any gcc2 internal prototype to avoid an error.  */
9368 #ifdef __cplusplus
9369 extern "C"
9370 {
9371 #endif
9372 /* We use char because int might match the return type of a gcc2
9373    builtin and then its argument prototype would still apply.  */
9374 char $ac_func ();
9375 /* The GNU C library defines this for functions which it implements
9376     to always fail with ENOSYS.  Some functions are actually named
9377     something starting with __ and the normal name is an alias.  */
9378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9379 choke me
9380 #else
9381 char (*f) () = $ac_func;
9382 #endif
9383 #ifdef __cplusplus
9384 }
9385 #endif
9386
9387 int
9388 main ()
9389 {
9390 return f != $ac_func;
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397   (eval $ac_link) 2>conftest.er1
9398   ac_status=$?
9399   grep -v '^ *+' conftest.er1 >conftest.err
9400   rm -f conftest.er1
9401   cat conftest.err >&5
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); } &&
9404          { ac_try='test -z "$ac_c_werror_flag"
9405                          || test ! -s conftest.err'
9406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407   (eval $ac_try) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); }; } &&
9411          { ac_try='test -s conftest$ac_exeext'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; }; then
9417   eval "$as_ac_var=yes"
9418 else
9419   echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422 eval "$as_ac_var=no"
9423 fi
9424 rm -f conftest.err conftest.$ac_objext \
9425       conftest$ac_exeext conftest.$ac_ext
9426 fi
9427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9429 if test `eval echo '${'$as_ac_var'}'` = yes; then
9430   cat >>confdefs.h <<_ACEOF
9431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9432 _ACEOF
9433  break
9434 fi
9435 done
9436
9437
9438
9439 for ac_func in memcpy bcopy
9440 do
9441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442 echo "$as_me:$LINENO: checking for $ac_func" >&5
9443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9444 if eval "test \"\${$as_ac_var+set}\" = set"; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9455 #define $ac_func innocuous_$ac_func
9456
9457 /* System header to define __stub macros and hopefully few prototypes,
9458     which can conflict with char $ac_func (); below.
9459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460     <limits.h> exists even on freestanding compilers.  */
9461
9462 #ifdef __STDC__
9463 # include <limits.h>
9464 #else
9465 # include <assert.h>
9466 #endif
9467
9468 #undef $ac_func
9469
9470 /* Override any gcc2 internal prototype to avoid an error.  */
9471 #ifdef __cplusplus
9472 extern "C"
9473 {
9474 #endif
9475 /* We use char because int might match the return type of a gcc2
9476    builtin and then its argument prototype would still apply.  */
9477 char $ac_func ();
9478 /* The GNU C library defines this for functions which it implements
9479     to always fail with ENOSYS.  Some functions are actually named
9480     something starting with __ and the normal name is an alias.  */
9481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9482 choke me
9483 #else
9484 char (*f) () = $ac_func;
9485 #endif
9486 #ifdef __cplusplus
9487 }
9488 #endif
9489
9490 int
9491 main ()
9492 {
9493 return f != $ac_func;
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500   (eval $ac_link) 2>conftest.er1
9501   ac_status=$?
9502   grep -v '^ *+' conftest.er1 >conftest.err
9503   rm -f conftest.er1
9504   cat conftest.err >&5
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); } &&
9507          { ac_try='test -z "$ac_c_werror_flag"
9508                          || test ! -s conftest.err'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; } &&
9514          { ac_try='test -s conftest$ac_exeext'
9515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516   (eval $ac_try) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); }; }; then
9520   eval "$as_ac_var=yes"
9521 else
9522   echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525 eval "$as_ac_var=no"
9526 fi
9527 rm -f conftest.err conftest.$ac_objext \
9528       conftest$ac_exeext conftest.$ac_ext
9529 fi
9530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9532 if test `eval echo '${'$as_ac_var'}'` = yes; then
9533   cat >>confdefs.h <<_ACEOF
9534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9535 _ACEOF
9536  break
9537 fi
9538 done
9539
9540
9541
9542 for ac_func in memmove strcmp
9543 do
9544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9545 echo "$as_me:$LINENO: checking for $ac_func" >&5
9546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9547 if eval "test \"\${$as_ac_var+set}\" = set"; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550   cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9558 #define $ac_func innocuous_$ac_func
9559
9560 /* System header to define __stub macros and hopefully few prototypes,
9561     which can conflict with char $ac_func (); below.
9562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563     <limits.h> exists even on freestanding compilers.  */
9564
9565 #ifdef __STDC__
9566 # include <limits.h>
9567 #else
9568 # include <assert.h>
9569 #endif
9570
9571 #undef $ac_func
9572
9573 /* Override any gcc2 internal prototype to avoid an error.  */
9574 #ifdef __cplusplus
9575 extern "C"
9576 {
9577 #endif
9578 /* We use char because int might match the return type of a gcc2
9579    builtin and then its argument prototype would still apply.  */
9580 char $ac_func ();
9581 /* The GNU C library defines this for functions which it implements
9582     to always fail with ENOSYS.  Some functions are actually named
9583     something starting with __ and the normal name is an alias.  */
9584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9585 choke me
9586 #else
9587 char (*f) () = $ac_func;
9588 #endif
9589 #ifdef __cplusplus
9590 }
9591 #endif
9592
9593 int
9594 main ()
9595 {
9596 return f != $ac_func;
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603   (eval $ac_link) 2>conftest.er1
9604   ac_status=$?
9605   grep -v '^ *+' conftest.er1 >conftest.err
9606   rm -f conftest.er1
9607   cat conftest.err >&5
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } &&
9610          { ac_try='test -z "$ac_c_werror_flag"
9611                          || test ! -s conftest.err'
9612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613   (eval $ac_try) 2>&5
9614   ac_status=$?
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); }; } &&
9617          { ac_try='test -s conftest$ac_exeext'
9618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619   (eval $ac_try) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; }; then
9623   eval "$as_ac_var=yes"
9624 else
9625   echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 eval "$as_ac_var=no"
9629 fi
9630 rm -f conftest.err conftest.$ac_objext \
9631       conftest$ac_exeext conftest.$ac_ext
9632 fi
9633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9635 if test `eval echo '${'$as_ac_var'}'` = yes; then
9636   cat >>confdefs.h <<_ACEOF
9637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9638 _ACEOF
9639
9640 fi
9641 done
9642
9643
9644
9645
9646 for ac_func in closedir opendir readdir
9647 do
9648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9649 echo "$as_me:$LINENO: checking for $ac_func" >&5
9650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9651 if eval "test \"\${$as_ac_var+set}\" = set"; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9662 #define $ac_func innocuous_$ac_func
9663
9664 /* System header to define __stub macros and hopefully few prototypes,
9665     which can conflict with char $ac_func (); below.
9666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667     <limits.h> exists even on freestanding compilers.  */
9668
9669 #ifdef __STDC__
9670 # include <limits.h>
9671 #else
9672 # include <assert.h>
9673 #endif
9674
9675 #undef $ac_func
9676
9677 /* Override any gcc2 internal prototype to avoid an error.  */
9678 #ifdef __cplusplus
9679 extern "C"
9680 {
9681 #endif
9682 /* We use char because int might match the return type of a gcc2
9683    builtin and then its argument prototype would still apply.  */
9684 char $ac_func ();
9685 /* The GNU C library defines this for functions which it implements
9686     to always fail with ENOSYS.  Some functions are actually named
9687     something starting with __ and the normal name is an alias.  */
9688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9689 choke me
9690 #else
9691 char (*f) () = $ac_func;
9692 #endif
9693 #ifdef __cplusplus
9694 }
9695 #endif
9696
9697 int
9698 main ()
9699 {
9700 return f != $ac_func;
9701   ;
9702   return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707   (eval $ac_link) 2>conftest.er1
9708   ac_status=$?
9709   grep -v '^ *+' conftest.er1 >conftest.err
9710   rm -f conftest.er1
9711   cat conftest.err >&5
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); } &&
9714          { ac_try='test -z "$ac_c_werror_flag"
9715                          || test ! -s conftest.err'
9716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717   (eval $ac_try) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; } &&
9721          { ac_try='test -s conftest$ac_exeext'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   eval "$as_ac_var=yes"
9728 else
9729   echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 eval "$as_ac_var=no"
9733 fi
9734 rm -f conftest.err conftest.$ac_objext \
9735       conftest$ac_exeext conftest.$ac_ext
9736 fi
9737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9739 if test `eval echo '${'$as_ac_var'}'` = yes; then
9740   cat >>confdefs.h <<_ACEOF
9741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9742 _ACEOF
9743
9744 fi
9745 done
9746
9747
9748 # Check whether --enable-shared or --disable-shared was given.
9749 if test "${enable_shared+set}" = set; then
9750   enableval="$enable_shared"
9751   p=${PACKAGE-default}
9752     case $enableval in
9753     yes) enable_shared=yes ;;
9754     no) enable_shared=no ;;
9755     *)
9756       enable_shared=no
9757       # Look at the argument we got.  We use all the common list separators.
9758       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9759       for pkg in $enableval; do
9760         IFS="$lt_save_ifs"
9761         if test "X$pkg" = "X$p"; then
9762           enable_shared=yes
9763         fi
9764       done
9765       IFS="$lt_save_ifs"
9766       ;;
9767     esac
9768 else
9769   enable_shared=yes
9770 fi;
9771
9772 # Check whether --enable-static or --disable-static was given.
9773 if test "${enable_static+set}" = set; then
9774   enableval="$enable_static"
9775   p=${PACKAGE-default}
9776     case $enableval in
9777     yes) enable_static=yes ;;
9778     no) enable_static=no ;;
9779     *)
9780      enable_static=no
9781       # Look at the argument we got.  We use all the common list separators.
9782       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9783       for pkg in $enableval; do
9784         IFS="$lt_save_ifs"
9785         if test "X$pkg" = "X$p"; then
9786           enable_static=yes
9787         fi
9788       done
9789       IFS="$lt_save_ifs"
9790       ;;
9791     esac
9792 else
9793   enable_static=yes
9794 fi;
9795
9796 # Check whether --enable-fast-install or --disable-fast-install was given.
9797 if test "${enable_fast_install+set}" = set; then
9798   enableval="$enable_fast_install"
9799   p=${PACKAGE-default}
9800     case $enableval in
9801     yes) enable_fast_install=yes ;;
9802     no) enable_fast_install=no ;;
9803     *)
9804       enable_fast_install=no
9805       # Look at the argument we got.  We use all the common list separators.
9806       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9807       for pkg in $enableval; do
9808         IFS="$lt_save_ifs"
9809         if test "X$pkg" = "X$p"; then
9810           enable_fast_install=yes
9811         fi
9812       done
9813       IFS="$lt_save_ifs"
9814       ;;
9815     esac
9816 else
9817   enable_fast_install=yes
9818 fi;
9819
9820 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9821 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9822 if test "${lt_cv_path_SED+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   # Loop through the user's path and test for sed and gsed.
9826 # Then use that list of sed's as ones to test for truncation.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9829 do
9830   IFS=$as_save_IFS
9831   test -z "$as_dir" && as_dir=.
9832   for lt_ac_prog in sed gsed; do
9833     for ac_exec_ext in '' $ac_executable_extensions; do
9834       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9835         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9836       fi
9837     done
9838   done
9839 done
9840 lt_ac_max=0
9841 lt_ac_count=0
9842 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9843 # along with /bin/sed that truncates output.
9844 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9845   test ! -f $lt_ac_sed && break
9846   cat /dev/null > conftest.in
9847   lt_ac_count=0
9848   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9849   # Check for GNU sed and select it if it is found.
9850   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9851     lt_cv_path_SED=$lt_ac_sed
9852     break
9853   fi
9854   while true; do
9855     cat conftest.in conftest.in >conftest.tmp
9856     mv conftest.tmp conftest.in
9857     cp conftest.in conftest.nl
9858     echo >>conftest.nl
9859     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9860     cmp -s conftest.out conftest.nl || break
9861     # 10000 chars as input seems more than enough
9862     test $lt_ac_count -gt 10 && break
9863     lt_ac_count=`expr $lt_ac_count + 1`
9864     if test $lt_ac_count -gt $lt_ac_max; then
9865       lt_ac_max=$lt_ac_count
9866       lt_cv_path_SED=$lt_ac_sed
9867     fi
9868   done
9869 done
9870
9871 fi
9872
9873 SED=$lt_cv_path_SED
9874 echo "$as_me:$LINENO: result: $SED" >&5
9875 echo "${ECHO_T}$SED" >&6
9876
9877
9878 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9879 if test "${with_gnu_ld+set}" = set; then
9880   withval="$with_gnu_ld"
9881   test "$withval" = no || with_gnu_ld=yes
9882 else
9883   with_gnu_ld=no
9884 fi;
9885 ac_prog=ld
9886 if test "$GCC" = yes; then
9887   # Check if gcc -print-prog-name=ld gives a path.
9888   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9889 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9890   case $host in
9891   *-*-mingw*)
9892     # gcc leaves a trailing carriage return which upsets mingw
9893     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9894   *)
9895     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9896   esac
9897   case $ac_prog in
9898     # Accept absolute paths.
9899     [\\/]* | ?:[\\/]*)
9900       re_direlt='/[^/][^/]*/\.\./'
9901       # Canonicalize the pathname of ld
9902       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9903       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9904         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9905       done
9906       test -z "$LD" && LD="$ac_prog"
9907       ;;
9908   "")
9909     # If it fails, then pretend we aren't using GCC.
9910     ac_prog=ld
9911     ;;
9912   *)
9913     # If it is relative, then search for the first ld in PATH.
9914     with_gnu_ld=unknown
9915     ;;
9916   esac
9917 elif test "$with_gnu_ld" = yes; then
9918   echo "$as_me:$LINENO: checking for GNU ld" >&5
9919 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9920 else
9921   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9922 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9923 fi
9924 if test "${lt_cv_path_LD+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   if test -z "$LD"; then
9928   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9929   for ac_dir in $PATH; do
9930     IFS="$lt_save_ifs"
9931     test -z "$ac_dir" && ac_dir=.
9932     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9933       lt_cv_path_LD="$ac_dir/$ac_prog"
9934       # Check to see if the program is GNU ld.  I'd rather use --version,
9935       # but apparently some GNU ld's only accept -v.
9936       # Break only if it was the GNU/non-GNU ld that we prefer.
9937       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9938       *GNU* | *'with BFD'*)
9939         test "$with_gnu_ld" != no && break
9940         ;;
9941       *)
9942         test "$with_gnu_ld" != yes && break
9943         ;;
9944       esac
9945     fi
9946   done
9947   IFS="$lt_save_ifs"
9948 else
9949   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9950 fi
9951 fi
9952
9953 LD="$lt_cv_path_LD"
9954 if test -n "$LD"; then
9955   echo "$as_me:$LINENO: result: $LD" >&5
9956 echo "${ECHO_T}$LD" >&6
9957 else
9958   echo "$as_me:$LINENO: result: no" >&5
9959 echo "${ECHO_T}no" >&6
9960 fi
9961 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9962 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9963    { (exit 1); exit 1; }; }
9964 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9965 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9966 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9970 case `$LD -v 2>&1 </dev/null` in
9971 *GNU* | *'with BFD'*)
9972   lt_cv_prog_gnu_ld=yes
9973   ;;
9974 *)
9975   lt_cv_prog_gnu_ld=no
9976   ;;
9977 esac
9978 fi
9979 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9980 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9981 with_gnu_ld=$lt_cv_prog_gnu_ld
9982
9983
9984 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9985 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9986 if test "${lt_cv_ld_reload_flag+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   lt_cv_ld_reload_flag='-r'
9990 fi
9991 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9992 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9993 reload_flag=$lt_cv_ld_reload_flag
9994 case $reload_flag in
9995 "" | " "*) ;;
9996 *) reload_flag=" $reload_flag" ;;
9997 esac
9998 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9999 case $host_os in
10000   darwin*)
10001     if test "$GCC" = yes; then
10002       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10003     else
10004       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10005     fi
10006     ;;
10007 esac
10008
10009 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10010 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10011 if test "${lt_cv_deplibs_check_method+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   lt_cv_file_magic_cmd='$MAGIC_CMD'
10015 lt_cv_file_magic_test_file=
10016 lt_cv_deplibs_check_method='unknown'
10017 # Need to set the preceding variable on all platforms that support
10018 # interlibrary dependencies.
10019 # 'none' -- dependencies not supported.
10020 # `unknown' -- same as none, but documents that we really don't know.
10021 # 'pass_all' -- all dependencies passed with no checks.
10022 # 'test_compile' -- check by making test program.
10023 # 'file_magic [[regex]]' -- check by looking for files in library path
10024 # which responds to the $file_magic_cmd with a given extended regex.
10025 # If you have `file' or equivalent on your system and you're not sure
10026 # whether `pass_all' will *always* work, you probably want this one.
10027
10028 case $host_os in
10029 aix4* | aix5*)
10030   lt_cv_deplibs_check_method=pass_all
10031   ;;
10032
10033 beos*)
10034   lt_cv_deplibs_check_method=pass_all
10035   ;;
10036
10037 bsdi[45]*)
10038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10039   lt_cv_file_magic_cmd='/usr/bin/file -L'
10040   lt_cv_file_magic_test_file=/shlib/libc.so
10041   ;;
10042
10043 cygwin*)
10044   # func_win32_libid is a shell function defined in ltmain.sh
10045   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10046   lt_cv_file_magic_cmd='func_win32_libid'
10047   ;;
10048
10049 mingw* | pw32*)
10050   # Base MSYS/MinGW do not provide the 'file' command needed by
10051   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10052   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10053   lt_cv_file_magic_cmd='$OBJDUMP -f'
10054   ;;
10055
10056 darwin* | rhapsody*)
10057   lt_cv_deplibs_check_method=pass_all
10058   ;;
10059
10060 freebsd* | kfreebsd*-gnu)
10061   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10062     case $host_cpu in
10063     i*86 )
10064       # Not sure whether the presence of OpenBSD here was a mistake.
10065       # Let's accept both of them until this is cleared up.
10066       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10067       lt_cv_file_magic_cmd=/usr/bin/file
10068       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10069       ;;
10070     esac
10071   else
10072     lt_cv_deplibs_check_method=pass_all
10073   fi
10074   ;;
10075
10076 gnu*)
10077   lt_cv_deplibs_check_method=pass_all
10078   ;;
10079
10080 hpux10.20* | hpux11*)
10081   lt_cv_file_magic_cmd=/usr/bin/file
10082   case "$host_cpu" in
10083   ia64*)
10084     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10085     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10086     ;;
10087   hppa*64*)
10088     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]'
10089     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10090     ;;
10091   *)
10092     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10093     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10094     ;;
10095   esac
10096   ;;
10097
10098 irix5* | irix6* | nonstopux*)
10099   case $LD in
10100   *-32|*"-32 ") libmagic=32-bit;;
10101   *-n32|*"-n32 ") libmagic=N32;;
10102   *-64|*"-64 ") libmagic=64-bit;;
10103   *) libmagic=never-match;;
10104   esac
10105   lt_cv_deplibs_check_method=pass_all
10106   ;;
10107
10108 # This must be Linux ELF.
10109 linux*)
10110   lt_cv_deplibs_check_method=pass_all
10111   ;;
10112
10113 netbsd*)
10114   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10115     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10116   else
10117     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10118   fi
10119   ;;
10120
10121 newos6*)
10122   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10123   lt_cv_file_magic_cmd=/usr/bin/file
10124   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10125   ;;
10126
10127 nto-qnx*)
10128   lt_cv_deplibs_check_method=unknown
10129   ;;
10130
10131 openbsd*)
10132   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10134   else
10135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10136   fi
10137   ;;
10138
10139 osf3* | osf4* | osf5*)
10140   lt_cv_deplibs_check_method=pass_all
10141   ;;
10142
10143 sco3.2v5*)
10144   lt_cv_deplibs_check_method=pass_all
10145   ;;
10146
10147 solaris*)
10148   lt_cv_deplibs_check_method=pass_all
10149   ;;
10150
10151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10152   case $host_vendor in
10153   motorola)
10154     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]'
10155     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10156     ;;
10157   ncr)
10158     lt_cv_deplibs_check_method=pass_all
10159     ;;
10160   sequent)
10161     lt_cv_file_magic_cmd='/bin/file'
10162     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10163     ;;
10164   sni)
10165     lt_cv_file_magic_cmd='/bin/file'
10166     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10167     lt_cv_file_magic_test_file=/lib/libc.so
10168     ;;
10169   siemens)
10170     lt_cv_deplibs_check_method=pass_all
10171     ;;
10172   esac
10173   ;;
10174
10175 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10176   lt_cv_deplibs_check_method=pass_all
10177   ;;
10178 esac
10179
10180 fi
10181 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10182 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10183 file_magic_cmd=$lt_cv_file_magic_cmd
10184 deplibs_check_method=$lt_cv_deplibs_check_method
10185 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10186
10187
10188
10189 # If no C compiler was specified, use CC.
10190 LTCC=${LTCC-"$CC"}
10191
10192 # Allow CC to be a program name with arguments.
10193 compiler=$CC
10194
10195 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10196 if test "${enable_libtool_lock+set}" = set; then
10197   enableval="$enable_libtool_lock"
10198
10199 fi;
10200 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10201
10202 # Some flags need to be propagated to the compiler or linker for good
10203 # libtool support.
10204 case $host in
10205 ia64-*-hpux*)
10206   # Find out which ABI we are using.
10207   echo 'int i;' > conftest.$ac_ext
10208   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209   (eval $ac_compile) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; then
10213     case `/usr/bin/file conftest.$ac_objext` in
10214     *ELF-32*)
10215       HPUX_IA64_MODE="32"
10216       ;;
10217     *ELF-64*)
10218       HPUX_IA64_MODE="64"
10219       ;;
10220     esac
10221   fi
10222   rm -rf conftest*
10223   ;;
10224 *-*-irix6*)
10225   # Find out which ABI we are using.
10226   echo '#line 10226 "configure"' > conftest.$ac_ext
10227   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228   (eval $ac_compile) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; then
10232    if test "$lt_cv_prog_gnu_ld" = yes; then
10233     case `/usr/bin/file conftest.$ac_objext` in
10234     *32-bit*)
10235       LD="${LD-ld} -melf32bsmip"
10236       ;;
10237     *N32*)
10238       LD="${LD-ld} -melf32bmipn32"
10239       ;;
10240     *64-bit*)
10241       LD="${LD-ld} -melf64bmip"
10242       ;;
10243     esac
10244    else
10245     case `/usr/bin/file conftest.$ac_objext` in
10246     *32-bit*)
10247       LD="${LD-ld} -32"
10248       ;;
10249     *N32*)
10250       LD="${LD-ld} -n32"
10251       ;;
10252     *64-bit*)
10253       LD="${LD-ld} -64"
10254       ;;
10255     esac
10256    fi
10257   fi
10258   rm -rf conftest*
10259   ;;
10260
10261 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10262   # Find out which ABI we are using.
10263   echo 'int i;' > conftest.$ac_ext
10264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265   (eval $ac_compile) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; then
10269     case "`/usr/bin/file conftest.o`" in
10270     *32-bit*)
10271       case $host in
10272         x86_64-*linux*)
10273           LD="${LD-ld} -m elf_i386"
10274           ;;
10275         ppc64-*linux*|powerpc64-*linux*)
10276           LD="${LD-ld} -m elf32ppclinux"
10277           ;;
10278         s390x-*linux*)
10279           LD="${LD-ld} -m elf_s390"
10280           ;;
10281         sparc64-*linux*)
10282           LD="${LD-ld} -m elf32_sparc"
10283           ;;
10284       esac
10285       ;;
10286     *64-bit*)
10287       case $host in
10288         x86_64-*linux*)
10289           LD="${LD-ld} -m elf_x86_64"
10290           ;;
10291         ppc*-*linux*|powerpc*-*linux*)
10292           LD="${LD-ld} -m elf64ppc"
10293           ;;
10294         s390*-*linux*)
10295           LD="${LD-ld} -m elf64_s390"
10296           ;;
10297         sparc*-*linux*)
10298           LD="${LD-ld} -m elf64_sparc"
10299           ;;
10300       esac
10301       ;;
10302     esac
10303   fi
10304   rm -rf conftest*
10305   ;;
10306
10307 *-*-sco3.2v5*)
10308   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10309   SAVE_CFLAGS="$CFLAGS"
10310   CFLAGS="$CFLAGS -belf"
10311   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10312 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10313 if test "${lt_cv_cc_needs_belf+set}" = set; then
10314   echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316   ac_ext=c
10317 ac_cpp='$CPP $CPPFLAGS'
10318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321
10322      cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332   (eval $ac_link) 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } &&
10339          { ac_try='test -z "$ac_c_werror_flag"
10340                          || test ! -s conftest.err'
10341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342   (eval $ac_try) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; } &&
10346          { ac_try='test -s conftest$ac_exeext'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   lt_cv_cc_needs_belf=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 lt_cv_cc_needs_belf=no
10358 fi
10359 rm -f conftest.err conftest.$ac_objext \
10360       conftest$ac_exeext conftest.$ac_ext
10361      ac_ext=c
10362 ac_cpp='$CPP $CPPFLAGS'
10363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10366
10367 fi
10368 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10369 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10370   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10371     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10372     CFLAGS="$SAVE_CFLAGS"
10373   fi
10374   ;;
10375
10376 esac
10377
10378 need_locks="$enable_libtool_lock"
10379
10380
10381
10382
10383 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10384     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10385     (test "X$CXX" != "Xg++"))) ; then
10386   ac_ext=cc
10387 ac_cpp='$CXXCPP $CPPFLAGS'
10388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10391 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10392 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10393 if test -z "$CXXCPP"; then
10394   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397       # Double quotes because CXXCPP needs to be expanded
10398     for CXXCPP in "$CXX -E" "/lib/cpp"
10399     do
10400       ac_preproc_ok=false
10401 for ac_cxx_preproc_warn_flag in '' yes
10402 do
10403   # Use a header file that comes with gcc, so configuring glibc
10404   # with a fresh cross-compiler works.
10405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10406   # <limits.h> exists even on freestanding compilers.
10407   # On the NeXT, cc -E runs the code through the compiler's parser,
10408   # not just through cpp. "Syntax error" is here to catch this case.
10409   cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 #ifdef __STDC__
10416 # include <limits.h>
10417 #else
10418 # include <assert.h>
10419 #endif
10420                      Syntax error
10421 _ACEOF
10422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10424   ac_status=$?
10425   grep -v '^ *+' conftest.er1 >conftest.err
10426   rm -f conftest.er1
10427   cat conftest.err >&5
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); } >/dev/null; then
10430   if test -s conftest.err; then
10431     ac_cpp_err=$ac_cxx_preproc_warn_flag
10432     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10433   else
10434     ac_cpp_err=
10435   fi
10436 else
10437   ac_cpp_err=yes
10438 fi
10439 if test -z "$ac_cpp_err"; then
10440   :
10441 else
10442   echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445   # Broken: fails on valid input.
10446 continue
10447 fi
10448 rm -f conftest.err conftest.$ac_ext
10449
10450   # OK, works on sane cases.  Now check whether non-existent headers
10451   # can be detected and how.
10452   cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458 #include <ac_nonexistent.h>
10459 _ACEOF
10460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } >/dev/null; then
10468   if test -s conftest.err; then
10469     ac_cpp_err=$ac_cxx_preproc_warn_flag
10470     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10471   else
10472     ac_cpp_err=
10473   fi
10474 else
10475   ac_cpp_err=yes
10476 fi
10477 if test -z "$ac_cpp_err"; then
10478   # Broken: success on invalid input.
10479 continue
10480 else
10481   echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10483
10484   # Passes both tests.
10485 ac_preproc_ok=:
10486 break
10487 fi
10488 rm -f conftest.err conftest.$ac_ext
10489
10490 done
10491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10492 rm -f conftest.err conftest.$ac_ext
10493 if $ac_preproc_ok; then
10494   break
10495 fi
10496
10497     done
10498     ac_cv_prog_CXXCPP=$CXXCPP
10499
10500 fi
10501   CXXCPP=$ac_cv_prog_CXXCPP
10502 else
10503   ac_cv_prog_CXXCPP=$CXXCPP
10504 fi
10505 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10506 echo "${ECHO_T}$CXXCPP" >&6
10507 ac_preproc_ok=false
10508 for ac_cxx_preproc_warn_flag in '' yes
10509 do
10510   # Use a header file that comes with gcc, so configuring glibc
10511   # with a fresh cross-compiler works.
10512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513   # <limits.h> exists even on freestanding compilers.
10514   # On the NeXT, cc -E runs the code through the compiler's parser,
10515   # not just through cpp. "Syntax error" is here to catch this case.
10516   cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 #ifdef __STDC__
10523 # include <limits.h>
10524 #else
10525 # include <assert.h>
10526 #endif
10527                      Syntax error
10528 _ACEOF
10529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } >/dev/null; then
10537   if test -s conftest.err; then
10538     ac_cpp_err=$ac_cxx_preproc_warn_flag
10539     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10540   else
10541     ac_cpp_err=
10542   fi
10543 else
10544   ac_cpp_err=yes
10545 fi
10546 if test -z "$ac_cpp_err"; then
10547   :
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552   # Broken: fails on valid input.
10553 continue
10554 fi
10555 rm -f conftest.err conftest.$ac_ext
10556
10557   # OK, works on sane cases.  Now check whether non-existent headers
10558   # can be detected and how.
10559   cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 #include <ac_nonexistent.h>
10566 _ACEOF
10567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } >/dev/null; then
10575   if test -s conftest.err; then
10576     ac_cpp_err=$ac_cxx_preproc_warn_flag
10577     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10578   else
10579     ac_cpp_err=
10580   fi
10581 else
10582   ac_cpp_err=yes
10583 fi
10584 if test -z "$ac_cpp_err"; then
10585   # Broken: success on invalid input.
10586 continue
10587 else
10588   echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591   # Passes both tests.
10592 ac_preproc_ok=:
10593 break
10594 fi
10595 rm -f conftest.err conftest.$ac_ext
10596
10597 done
10598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10599 rm -f conftest.err conftest.$ac_ext
10600 if $ac_preproc_ok; then
10601   :
10602 else
10603   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10604 See \`config.log' for more details." >&5
10605 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10606 See \`config.log' for more details." >&2;}
10607    { (exit 1); exit 1; }; }
10608 fi
10609
10610 ac_ext=cc
10611 ac_cpp='$CXXCPP $CPPFLAGS'
10612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10615
10616 fi
10617
10618
10619 ac_ext=f
10620 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10621 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10623 if test -n "$ac_tool_prefix"; then
10624   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10625   do
10626     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10628 echo "$as_me:$LINENO: checking for $ac_word" >&5
10629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10630 if test "${ac_cv_prog_F77+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   if test -n "$F77"; then
10634   ac_cv_prog_F77="$F77" # Let the user override the test.
10635 else
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10638 do
10639   IFS=$as_save_IFS
10640   test -z "$as_dir" && as_dir=.
10641   for ac_exec_ext in '' $ac_executable_extensions; do
10642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10643     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10645     break 2
10646   fi
10647 done
10648 done
10649
10650 fi
10651 fi
10652 F77=$ac_cv_prog_F77
10653 if test -n "$F77"; then
10654   echo "$as_me:$LINENO: result: $F77" >&5
10655 echo "${ECHO_T}$F77" >&6
10656 else
10657   echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6
10659 fi
10660
10661     test -n "$F77" && break
10662   done
10663 fi
10664 if test -z "$F77"; then
10665   ac_ct_F77=$F77
10666   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10667 do
10668   # Extract the first word of "$ac_prog", so it can be a program name with args.
10669 set dummy $ac_prog; ac_word=$2
10670 echo "$as_me:$LINENO: checking for $ac_word" >&5
10671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10672 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   if test -n "$ac_ct_F77"; then
10676   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10677 else
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10680 do
10681   IFS=$as_save_IFS
10682   test -z "$as_dir" && as_dir=.
10683   for ac_exec_ext in '' $ac_executable_extensions; do
10684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685     ac_cv_prog_ac_ct_F77="$ac_prog"
10686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10687     break 2
10688   fi
10689 done
10690 done
10691
10692 fi
10693 fi
10694 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10695 if test -n "$ac_ct_F77"; then
10696   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10697 echo "${ECHO_T}$ac_ct_F77" >&6
10698 else
10699   echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6
10701 fi
10702
10703   test -n "$ac_ct_F77" && break
10704 done
10705
10706   F77=$ac_ct_F77
10707 fi
10708
10709
10710 # Provide some information about the compiler.
10711 echo "$as_me:10711:" \
10712      "checking for Fortran 77 compiler version" >&5
10713 ac_compiler=`set X $ac_compile; echo $2`
10714 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10715   (eval $ac_compiler --version </dev/null >&5) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }
10719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10720   (eval $ac_compiler -v </dev/null >&5) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }
10724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10725   (eval $ac_compiler -V </dev/null >&5) 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }
10729 rm -f a.out
10730
10731 # If we don't use `.F' as extension, the preprocessor is not run on the
10732 # input file.  (Note that this only needs to work for GNU compilers.)
10733 ac_save_ext=$ac_ext
10734 ac_ext=F
10735 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10736 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10737 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10738   echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740   cat >conftest.$ac_ext <<_ACEOF
10741       program main
10742 #ifndef __GNUC__
10743        choke me
10744 #endif
10745
10746       end
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750   (eval $ac_compile) 2>conftest.er1
10751   ac_status=$?
10752   grep -v '^ *+' conftest.er1 >conftest.err
10753   rm -f conftest.er1
10754   cat conftest.err >&5
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } &&
10757          { ac_try='test -z "$ac_f77_werror_flag"
10758                          || test ! -s conftest.err'
10759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760   (eval $ac_try) 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; } &&
10764          { ac_try='test -s conftest.$ac_objext'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; }; then
10770   ac_compiler_gnu=yes
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_compiler_gnu=no
10776 fi
10777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10778 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10779
10780 fi
10781 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10782 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10783 ac_ext=$ac_save_ext
10784 ac_test_FFLAGS=${FFLAGS+set}
10785 ac_save_FFLAGS=$FFLAGS
10786 FFLAGS=
10787 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10788 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10789 if test "${ac_cv_prog_f77_g+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   FFLAGS=-g
10793 cat >conftest.$ac_ext <<_ACEOF
10794       program main
10795
10796       end
10797 _ACEOF
10798 rm -f conftest.$ac_objext
10799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10800   (eval $ac_compile) 2>conftest.er1
10801   ac_status=$?
10802   grep -v '^ *+' conftest.er1 >conftest.err
10803   rm -f conftest.er1
10804   cat conftest.err >&5
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); } &&
10807          { ac_try='test -z "$ac_f77_werror_flag"
10808                          || test ! -s conftest.err'
10809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810   (eval $ac_try) 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); }; } &&
10814          { ac_try='test -s conftest.$ac_objext'
10815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816   (eval $ac_try) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; }; then
10820   ac_cv_prog_f77_g=yes
10821 else
10822   echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_prog_f77_g=no
10826 fi
10827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10828
10829 fi
10830 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10831 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10832 if test "$ac_test_FFLAGS" = set; then
10833   FFLAGS=$ac_save_FFLAGS
10834 elif test $ac_cv_prog_f77_g = yes; then
10835   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10836     FFLAGS="-g -O2"
10837   else
10838     FFLAGS="-g"
10839   fi
10840 else
10841   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10842     FFLAGS="-O2"
10843   else
10844     FFLAGS=
10845   fi
10846 fi
10847
10848 G77=`test $ac_compiler_gnu = yes && echo yes`
10849 ac_ext=c
10850 ac_cpp='$CPP $CPPFLAGS'
10851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10854
10855
10856
10857 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10858
10859 # find the maximum length of command line arguments
10860 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10861 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10862 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10863   echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865     i=0
10866   teststring="ABCD"
10867
10868   case $build_os in
10869   msdosdjgpp*)
10870     # On DJGPP, this test can blow up pretty badly due to problems in libc
10871     # (any single argument exceeding 2000 bytes causes a buffer overrun
10872     # during glob expansion).  Even if it were fixed, the result of this
10873     # check would be larger than it should be.
10874     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10875     ;;
10876
10877   gnu*)
10878     # Under GNU Hurd, this test is not required because there is
10879     # no limit to the length of command line arguments.
10880     # Libtool will interpret -1 as no limit whatsoever
10881     lt_cv_sys_max_cmd_len=-1;
10882     ;;
10883
10884   cygwin* | mingw*)
10885     # On Win9x/ME, this test blows up -- it succeeds, but takes
10886     # about 5 minutes as the teststring grows exponentially.
10887     # Worse, since 9x/ME are not pre-emptively multitasking,
10888     # you end up with a "frozen" computer, even though with patience
10889     # the test eventually succeeds (with a max line length of 256k).
10890     # Instead, let's just punt: use the minimum linelength reported by
10891     # all of the supported platforms: 8192 (on NT/2K/XP).
10892     lt_cv_sys_max_cmd_len=8192;
10893     ;;
10894
10895   amigaos*)
10896     # On AmigaOS with pdksh, this test takes hours, literally.
10897     # So we just punt and use a minimum line length of 8192.
10898     lt_cv_sys_max_cmd_len=8192;
10899     ;;
10900
10901   netbsd* | freebsd* | openbsd* | darwin* )
10902     # This has been around since 386BSD, at least.  Likely further.
10903     if test -x /sbin/sysctl; then
10904       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10905     elif test -x /usr/sbin/sysctl; then
10906       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10907     else
10908       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10909     fi
10910     # And add a safety zone
10911     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10912     ;;
10913
10914  *)
10915     # If test is not a shell built-in, we'll probably end up computing a
10916     # maximum length that is only half of the actual maximum length, but
10917     # we can't tell.
10918     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10919     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10920                = "XX$teststring") >/dev/null 2>&1 &&
10921             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10922             lt_cv_sys_max_cmd_len=$new_result &&
10923             test $i != 17 # 1/2 MB should be enough
10924     do
10925       i=`expr $i + 1`
10926       teststring=$teststring$teststring
10927     done
10928     teststring=
10929     # Add a significant safety factor because C++ compilers can tack on massive
10930     # amounts of additional arguments before passing them to the linker.
10931     # It appears as though 1/2 is a usable value.
10932     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10933     ;;
10934   esac
10935
10936 fi
10937
10938 if test -n $lt_cv_sys_max_cmd_len ; then
10939   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10940 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10941 else
10942   echo "$as_me:$LINENO: result: none" >&5
10943 echo "${ECHO_T}none" >&6
10944 fi
10945
10946
10947
10948
10949 # Check for command to grab the raw symbol name followed by C symbol from nm.
10950 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10951 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10952 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955
10956 # These are sane defaults that work on at least a few old systems.
10957 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10958
10959 # Character class describing NM global symbol codes.
10960 symcode='[BCDEGRST]'
10961
10962 # Regexp to match symbols that can be accessed directly from C.
10963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10964
10965 # Transform the above into a raw symbol and a C symbol.
10966 symxfrm='\1 \2\3 \3'
10967
10968 # Transform an extracted symbol line into a proper C declaration
10969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10970
10971 # Transform an extracted symbol line into symbol name and symbol address
10972 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'"
10973
10974 # Define system-specific variables.
10975 case $host_os in
10976 aix*)
10977   symcode='[BCDT]'
10978   ;;
10979 cygwin* | mingw* | pw32*)
10980   symcode='[ABCDGISTW]'
10981   ;;
10982 hpux*) # Its linker distinguishes data from code symbols
10983   if test "$host_cpu" = ia64; then
10984     symcode='[ABCDEGRST]'
10985   fi
10986   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10987   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
10988   ;;
10989 linux*)
10990   if test "$host_cpu" = ia64; then
10991     symcode='[ABCDGIRSTW]'
10992     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10993     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'"
10994   fi
10995   ;;
10996 irix* | nonstopux*)
10997   symcode='[BCDEGRST]'
10998   ;;
10999 osf*)
11000   symcode='[BCDEGQRST]'
11001   ;;
11002 solaris* | sysv5*)
11003   symcode='[BDRT]'
11004   ;;
11005 sysv4)
11006   symcode='[DFNSTU]'
11007   ;;
11008 esac
11009
11010 # Handle CRLF in mingw tool chain
11011 opt_cr=
11012 case $build_os in
11013 mingw*)
11014   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11015   ;;
11016 esac
11017
11018 # If we're using GNU nm, then use its standard symbol codes.
11019 case `$NM -V 2>&1` in
11020 *GNU* | *'with BFD'*)
11021   symcode='[ABCDGIRSTW]' ;;
11022 esac
11023
11024 # Try without a prefix undercore, then with it.
11025 for ac_symprfx in "" "_"; do
11026
11027   # Write the raw and C identifiers.
11028   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11029
11030   # Check to see that the pipe works correctly.
11031   pipe_works=no
11032
11033   rm -f conftest*
11034   cat > conftest.$ac_ext <<EOF
11035 #ifdef __cplusplus
11036 extern "C" {
11037 #endif
11038 char nm_test_var;
11039 void nm_test_func(){}
11040 #ifdef __cplusplus
11041 }
11042 #endif
11043 int main(){nm_test_var='a';nm_test_func();return(0);}
11044 EOF
11045
11046   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11047   (eval $ac_compile) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; then
11051     # Now try to grab the symbols.
11052     nlist=conftest.nm
11053     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11054   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } && test -s "$nlist"; then
11058       # Try sorting and uniquifying the output.
11059       if sort "$nlist" | uniq > "$nlist"T; then
11060         mv -f "$nlist"T "$nlist"
11061       else
11062         rm -f "$nlist"T
11063       fi
11064
11065       # Make sure that we snagged all the symbols we need.
11066       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11067         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11068           cat <<EOF > conftest.$ac_ext
11069 #ifdef __cplusplus
11070 extern "C" {
11071 #endif
11072
11073 EOF
11074           # Now generate the symbol file.
11075           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11076
11077           cat <<EOF >> conftest.$ac_ext
11078 #if defined (__STDC__) && __STDC__
11079 # define lt_ptr_t void *
11080 #else
11081 # define lt_ptr_t char *
11082 # define const
11083 #endif
11084
11085 /* The mapping between symbol names and symbols. */
11086 const struct {
11087   const char *name;
11088   lt_ptr_t address;
11089 }
11090 lt_preloaded_symbols[] =
11091 {
11092 EOF
11093           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11094           cat <<\EOF >> conftest.$ac_ext
11095   {0, (lt_ptr_t) 0}
11096 };
11097
11098 #ifdef __cplusplus
11099 }
11100 #endif
11101 EOF
11102           # Now try linking the two files.
11103           mv conftest.$ac_objext conftstm.$ac_objext
11104           lt_save_LIBS="$LIBS"
11105           lt_save_CFLAGS="$CFLAGS"
11106           LIBS="conftstm.$ac_objext"
11107           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11108           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109   (eval $ac_link) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11113             pipe_works=yes
11114           fi
11115           LIBS="$lt_save_LIBS"
11116           CFLAGS="$lt_save_CFLAGS"
11117         else
11118           echo "cannot find nm_test_func in $nlist" >&5
11119         fi
11120       else
11121         echo "cannot find nm_test_var in $nlist" >&5
11122       fi
11123     else
11124       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11125     fi
11126   else
11127     echo "$progname: failed program was:" >&5
11128     cat conftest.$ac_ext >&5
11129   fi
11130   rm -f conftest* conftst*
11131
11132   # Do not use the global_symbol_pipe unless it works.
11133   if test "$pipe_works" = yes; then
11134     break
11135   else
11136     lt_cv_sys_global_symbol_pipe=
11137   fi
11138 done
11139
11140 fi
11141
11142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11143   lt_cv_sys_global_symbol_to_cdecl=
11144 fi
11145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11146   echo "$as_me:$LINENO: result: failed" >&5
11147 echo "${ECHO_T}failed" >&6
11148 else
11149   echo "$as_me:$LINENO: result: ok" >&5
11150 echo "${ECHO_T}ok" >&6
11151 fi
11152
11153 echo "$as_me:$LINENO: checking for objdir" >&5
11154 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11155 if test "${lt_cv_objdir+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   rm -f .libs 2>/dev/null
11159 mkdir .libs 2>/dev/null
11160 if test -d .libs; then
11161   lt_cv_objdir=.libs
11162 else
11163   # MS-DOS does not allow filenames that begin with a dot.
11164   lt_cv_objdir=_libs
11165 fi
11166 rmdir .libs 2>/dev/null
11167 fi
11168 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11169 echo "${ECHO_T}$lt_cv_objdir" >&6
11170 objdir=$lt_cv_objdir
11171
11172
11173
11174
11175
11176 case $host_os in
11177 aix3*)
11178   # AIX sometimes has problems with the GCC collect2 program.  For some
11179   # reason, if we set the COLLECT_NAMES environment variable, the problems
11180   # vanish in a puff of smoke.
11181   if test "X${COLLECT_NAMES+set}" != Xset; then
11182     COLLECT_NAMES=
11183     export COLLECT_NAMES
11184   fi
11185   ;;
11186 esac
11187
11188 # Sed substitution that helps us do robust quoting.  It backslashifies
11189 # metacharacters that are still active within double-quoted strings.
11190 Xsed='sed -e s/^X//'
11191 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11192
11193 # Same as above, but do not quote variable references.
11194 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11195
11196 # Sed substitution to delay expansion of an escaped shell variable in a
11197 # double_quote_subst'ed string.
11198 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11199
11200 # Sed substitution to avoid accidental globbing in evaled expressions
11201 no_glob_subst='s/\*/\\\*/g'
11202
11203 # Constants:
11204 rm="rm -f"
11205
11206 # Global variables:
11207 default_ofile=mklib
11208 can_build_shared=yes
11209
11210 # All known linkers require a `.a' archive for static linking (except M$VC,
11211 # which needs '.lib').
11212 libext=a
11213 ltmain="$ac_aux_dir/ltmain.sh"
11214 ofile="$default_ofile"
11215 with_gnu_ld="$lt_cv_prog_gnu_ld"
11216
11217 if test -n "$ac_tool_prefix"; then
11218   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11219 set dummy ${ac_tool_prefix}ar; ac_word=$2
11220 echo "$as_me:$LINENO: checking for $ac_word" >&5
11221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11222 if test "${ac_cv_prog_AR+set}" = set; then
11223   echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225   if test -n "$AR"; then
11226   ac_cv_prog_AR="$AR" # Let the user override the test.
11227 else
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11230 do
11231   IFS=$as_save_IFS
11232   test -z "$as_dir" && as_dir=.
11233   for ac_exec_ext in '' $ac_executable_extensions; do
11234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235     ac_cv_prog_AR="${ac_tool_prefix}ar"
11236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11237     break 2
11238   fi
11239 done
11240 done
11241
11242 fi
11243 fi
11244 AR=$ac_cv_prog_AR
11245 if test -n "$AR"; then
11246   echo "$as_me:$LINENO: result: $AR" >&5
11247 echo "${ECHO_T}$AR" >&6
11248 else
11249   echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6
11251 fi
11252
11253 fi
11254 if test -z "$ac_cv_prog_AR"; then
11255   ac_ct_AR=$AR
11256   # Extract the first word of "ar", so it can be a program name with args.
11257 set dummy ar; ac_word=$2
11258 echo "$as_me:$LINENO: checking for $ac_word" >&5
11259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11261   echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263   if test -n "$ac_ct_AR"; then
11264   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11265 else
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11268 do
11269   IFS=$as_save_IFS
11270   test -z "$as_dir" && as_dir=.
11271   for ac_exec_ext in '' $ac_executable_extensions; do
11272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273     ac_cv_prog_ac_ct_AR="ar"
11274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11275     break 2
11276   fi
11277 done
11278 done
11279
11280   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11281 fi
11282 fi
11283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11284 if test -n "$ac_ct_AR"; then
11285   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11286 echo "${ECHO_T}$ac_ct_AR" >&6
11287 else
11288   echo "$as_me:$LINENO: result: no" >&5
11289 echo "${ECHO_T}no" >&6
11290 fi
11291
11292   AR=$ac_ct_AR
11293 else
11294   AR="$ac_cv_prog_AR"
11295 fi
11296
11297 if test -n "$ac_tool_prefix"; then
11298   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11300 echo "$as_me:$LINENO: checking for $ac_word" >&5
11301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11302 if test "${ac_cv_prog_RANLIB+set}" = set; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305   if test -n "$RANLIB"; then
11306   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11307 else
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11310 do
11311   IFS=$as_save_IFS
11312   test -z "$as_dir" && as_dir=.
11313   for ac_exec_ext in '' $ac_executable_extensions; do
11314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317     break 2
11318   fi
11319 done
11320 done
11321
11322 fi
11323 fi
11324 RANLIB=$ac_cv_prog_RANLIB
11325 if test -n "$RANLIB"; then
11326   echo "$as_me:$LINENO: result: $RANLIB" >&5
11327 echo "${ECHO_T}$RANLIB" >&6
11328 else
11329   echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6
11331 fi
11332
11333 fi
11334 if test -z "$ac_cv_prog_RANLIB"; then
11335   ac_ct_RANLIB=$RANLIB
11336   # Extract the first word of "ranlib", so it can be a program name with args.
11337 set dummy ranlib; ac_word=$2
11338 echo "$as_me:$LINENO: checking for $ac_word" >&5
11339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   if test -n "$ac_ct_RANLIB"; then
11344   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11345 else
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11348 do
11349   IFS=$as_save_IFS
11350   test -z "$as_dir" && as_dir=.
11351   for ac_exec_ext in '' $ac_executable_extensions; do
11352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353     ac_cv_prog_ac_ct_RANLIB="ranlib"
11354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11355     break 2
11356   fi
11357 done
11358 done
11359
11360   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11361 fi
11362 fi
11363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11364 if test -n "$ac_ct_RANLIB"; then
11365   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11367 else
11368   echo "$as_me:$LINENO: result: no" >&5
11369 echo "${ECHO_T}no" >&6
11370 fi
11371
11372   RANLIB=$ac_ct_RANLIB
11373 else
11374   RANLIB="$ac_cv_prog_RANLIB"
11375 fi
11376
11377 if test -n "$ac_tool_prefix"; then
11378   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11379 set dummy ${ac_tool_prefix}strip; ac_word=$2
11380 echo "$as_me:$LINENO: checking for $ac_word" >&5
11381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11382 if test "${ac_cv_prog_STRIP+set}" = set; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   if test -n "$STRIP"; then
11386   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11387 else
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11390 do
11391   IFS=$as_save_IFS
11392   test -z "$as_dir" && as_dir=.
11393   for ac_exec_ext in '' $ac_executable_extensions; do
11394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397     break 2
11398   fi
11399 done
11400 done
11401
11402 fi
11403 fi
11404 STRIP=$ac_cv_prog_STRIP
11405 if test -n "$STRIP"; then
11406   echo "$as_me:$LINENO: result: $STRIP" >&5
11407 echo "${ECHO_T}$STRIP" >&6
11408 else
11409   echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11411 fi
11412
11413 fi
11414 if test -z "$ac_cv_prog_STRIP"; then
11415   ac_ct_STRIP=$STRIP
11416   # Extract the first word of "strip", so it can be a program name with args.
11417 set dummy strip; ac_word=$2
11418 echo "$as_me:$LINENO: checking for $ac_word" >&5
11419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11420 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   if test -n "$ac_ct_STRIP"; then
11424   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11425 else
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11428 do
11429   IFS=$as_save_IFS
11430   test -z "$as_dir" && as_dir=.
11431   for ac_exec_ext in '' $ac_executable_extensions; do
11432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433     ac_cv_prog_ac_ct_STRIP="strip"
11434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11435     break 2
11436   fi
11437 done
11438 done
11439
11440   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11441 fi
11442 fi
11443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11444 if test -n "$ac_ct_STRIP"; then
11445   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11446 echo "${ECHO_T}$ac_ct_STRIP" >&6
11447 else
11448   echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6
11450 fi
11451
11452   STRIP=$ac_ct_STRIP
11453 else
11454   STRIP="$ac_cv_prog_STRIP"
11455 fi
11456
11457
11458 old_CC="$CC"
11459 old_CFLAGS="$CFLAGS"
11460
11461 # Set sane defaults for various variables
11462 test -z "$AR" && AR=ar
11463 test -z "$AR_FLAGS" && AR_FLAGS=cru
11464 test -z "$AS" && AS=as
11465 test -z "$CC" && CC=cc
11466 test -z "$LTCC" && LTCC=$CC
11467 test -z "$DLLTOOL" && DLLTOOL=dlltool
11468 test -z "$LD" && LD=ld
11469 test -z "$LN_S" && LN_S="ln -s"
11470 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11471 test -z "$NM" && NM=nm
11472 test -z "$SED" && SED=sed
11473 test -z "$OBJDUMP" && OBJDUMP=objdump
11474 test -z "$RANLIB" && RANLIB=:
11475 test -z "$STRIP" && STRIP=:
11476 test -z "$ac_objext" && ac_objext=o
11477
11478 # Determine commands to create old-style static archives.
11479 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11480 old_postinstall_cmds='chmod 644 $oldlib'
11481 old_postuninstall_cmds=
11482
11483 if test -n "$RANLIB"; then
11484   case $host_os in
11485   openbsd*)
11486     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11487     ;;
11488   *)
11489     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11490     ;;
11491   esac
11492   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11493 fi
11494
11495 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11496
11497 # Only perform the check for file, if the check method requires it
11498 case $deplibs_check_method in
11499 file_magic*)
11500   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11501     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11502 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11503 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11504   echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506   case $MAGIC_CMD in
11507 [\\/*] |  ?:[\\/]*)
11508   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11509   ;;
11510 *)
11511   lt_save_MAGIC_CMD="$MAGIC_CMD"
11512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11513   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11514   for ac_dir in $ac_dummy; do
11515     IFS="$lt_save_ifs"
11516     test -z "$ac_dir" && ac_dir=.
11517     if test -f $ac_dir/${ac_tool_prefix}file; then
11518       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11519       if test -n "$file_magic_test_file"; then
11520         case $deplibs_check_method in
11521         "file_magic "*)
11522           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11523           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11524           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11525             $EGREP "$file_magic_regex" > /dev/null; then
11526             :
11527           else
11528             cat <<EOF 1>&2
11529
11530 *** Warning: the command libtool uses to detect shared libraries,
11531 *** $file_magic_cmd, produces output that libtool cannot recognize.
11532 *** The result is that libtool may fail to recognize shared libraries
11533 *** as such.  This will affect the creation of libtool libraries that
11534 *** depend on shared libraries, but programs linked with such libtool
11535 *** libraries will work regardless of this problem.  Nevertheless, you
11536 *** may want to report the problem to your system manager and/or to
11537 *** bug-libtool@gnu.org
11538
11539 EOF
11540           fi ;;
11541         esac
11542       fi
11543       break
11544     fi
11545   done
11546   IFS="$lt_save_ifs"
11547   MAGIC_CMD="$lt_save_MAGIC_CMD"
11548   ;;
11549 esac
11550 fi
11551
11552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11553 if test -n "$MAGIC_CMD"; then
11554   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11555 echo "${ECHO_T}$MAGIC_CMD" >&6
11556 else
11557   echo "$as_me:$LINENO: result: no" >&5
11558 echo "${ECHO_T}no" >&6
11559 fi
11560
11561 if test -z "$lt_cv_path_MAGIC_CMD"; then
11562   if test -n "$ac_tool_prefix"; then
11563     echo "$as_me:$LINENO: checking for file" >&5
11564 echo $ECHO_N "checking for file... $ECHO_C" >&6
11565 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   case $MAGIC_CMD in
11569 [\\/*] |  ?:[\\/]*)
11570   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11571   ;;
11572 *)
11573   lt_save_MAGIC_CMD="$MAGIC_CMD"
11574   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11575   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11576   for ac_dir in $ac_dummy; do
11577     IFS="$lt_save_ifs"
11578     test -z "$ac_dir" && ac_dir=.
11579     if test -f $ac_dir/file; then
11580       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11581       if test -n "$file_magic_test_file"; then
11582         case $deplibs_check_method in
11583         "file_magic "*)
11584           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11585           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11586           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11587             $EGREP "$file_magic_regex" > /dev/null; then
11588             :
11589           else
11590             cat <<EOF 1>&2
11591
11592 *** Warning: the command libtool uses to detect shared libraries,
11593 *** $file_magic_cmd, produces output that libtool cannot recognize.
11594 *** The result is that libtool may fail to recognize shared libraries
11595 *** as such.  This will affect the creation of libtool libraries that
11596 *** depend on shared libraries, but programs linked with such libtool
11597 *** libraries will work regardless of this problem.  Nevertheless, you
11598 *** may want to report the problem to your system manager and/or to
11599 *** bug-libtool@gnu.org
11600
11601 EOF
11602           fi ;;
11603         esac
11604       fi
11605       break
11606     fi
11607   done
11608   IFS="$lt_save_ifs"
11609   MAGIC_CMD="$lt_save_MAGIC_CMD"
11610   ;;
11611 esac
11612 fi
11613
11614 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11615 if test -n "$MAGIC_CMD"; then
11616   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11617 echo "${ECHO_T}$MAGIC_CMD" >&6
11618 else
11619   echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6
11621 fi
11622
11623   else
11624     MAGIC_CMD=:
11625   fi
11626 fi
11627
11628   fi
11629   ;;
11630 esac
11631
11632 enable_dlopen=yes
11633 enable_win32_dll=no
11634
11635 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11636 if test "${enable_libtool_lock+set}" = set; then
11637   enableval="$enable_libtool_lock"
11638
11639 fi;
11640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11641
11642
11643 # Check whether --with-pic or --without-pic was given.
11644 if test "${with_pic+set}" = set; then
11645   withval="$with_pic"
11646   pic_mode="$withval"
11647 else
11648   pic_mode=default
11649 fi;
11650 test -z "$pic_mode" && pic_mode=default
11651
11652 # Use C for the default configuration in the libtool script
11653 tagname=
11654 lt_save_CC="$CC"
11655 ac_ext=c
11656 ac_cpp='$CPP $CPPFLAGS'
11657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11660
11661
11662 # Source file extension for C test sources.
11663 ac_ext=c
11664
11665 # Object file extension for compiled C test sources.
11666 objext=o
11667 objext=$objext
11668
11669 # Code to be used in simple compile tests
11670 lt_simple_compile_test_code="int some_variable = 0;\n"
11671
11672 # Code to be used in simple link tests
11673 lt_simple_link_test_code='int main(){return(0);}\n'
11674
11675
11676 # If no C compiler was specified, use CC.
11677 LTCC=${LTCC-"$CC"}
11678
11679 # Allow CC to be a program name with arguments.
11680 compiler=$CC
11681
11682
11683 #
11684 # Check for any special shared library compilation flags.
11685 #
11686 lt_prog_cc_shlib=
11687 if test "$GCC" = no; then
11688   case $host_os in
11689   sco3.2v5*)
11690     lt_prog_cc_shlib='-belf'
11691     ;;
11692   esac
11693 fi
11694 if test -n "$lt_prog_cc_shlib"; then
11695   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11696 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11697   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11698   else
11699     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11700 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11701     lt_cv_prog_cc_can_build_shared=no
11702   fi
11703 fi
11704
11705
11706 #
11707 # Check to make sure the static flag actually works.
11708 #
11709 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11710 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11711 if test "${lt_prog_compiler_static_works+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   lt_prog_compiler_static_works=no
11715    save_LDFLAGS="$LDFLAGS"
11716    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11717    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11718    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11719      # The compiler can only warn and ignore the option if not recognized
11720      # So say no if there are warnings
11721      if test -s conftest.err; then
11722        # Append any errors to the config.log.
11723        cat conftest.err 1>&5
11724      else
11725        lt_prog_compiler_static_works=yes
11726      fi
11727    fi
11728    $rm conftest*
11729    LDFLAGS="$save_LDFLAGS"
11730
11731 fi
11732 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11733 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11734
11735 if test x"$lt_prog_compiler_static_works" = xyes; then
11736     :
11737 else
11738     lt_prog_compiler_static=
11739 fi
11740
11741
11742
11743
11744 lt_prog_compiler_no_builtin_flag=
11745
11746 if test "$GCC" = yes; then
11747   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11748
11749
11750 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11751 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11752 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   lt_cv_prog_compiler_rtti_exceptions=no
11756   ac_outfile=conftest.$ac_objext
11757    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11758    lt_compiler_flag="-fno-rtti -fno-exceptions"
11759    # Insert the option either (1) after the last *FLAGS variable, or
11760    # (2) before a word containing "conftest.", or (3) at the end.
11761    # Note that $ac_compile itself does not contain backslashes and begins
11762    # with a dollar sign (not a hyphen), so the echo should work correctly.
11763    # The option is referenced via a variable to avoid confusing sed.
11764    lt_compile=`echo "$ac_compile" | $SED \
11765    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11766    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11767    -e 's:$: $lt_compiler_flag:'`
11768    (eval echo "\"\$as_me:11768: $lt_compile\"" >&5)
11769    (eval "$lt_compile" 2>conftest.err)
11770    ac_status=$?
11771    cat conftest.err >&5
11772    echo "$as_me:11772: \$? = $ac_status" >&5
11773    if (exit $ac_status) && test -s "$ac_outfile"; then
11774      # The compiler can only warn and ignore the option if not recognized
11775      # So say no if there are warnings
11776      if test ! -s conftest.err; then
11777        lt_cv_prog_compiler_rtti_exceptions=yes
11778      fi
11779    fi
11780    $rm conftest*
11781
11782 fi
11783 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11784 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11785
11786 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11787     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11788 else
11789     :
11790 fi
11791
11792 fi
11793
11794 lt_prog_compiler_wl=
11795 lt_prog_compiler_pic=
11796 lt_prog_compiler_static=
11797
11798 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11799 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11800
11801   if test "$GCC" = yes; then
11802     lt_prog_compiler_wl='-Wl,'
11803     lt_prog_compiler_static='-static'
11804
11805     case $host_os in
11806       aix*)
11807       # All AIX code is PIC.
11808       if test "$host_cpu" = ia64; then
11809         # AIX 5 now supports IA64 processor
11810         lt_prog_compiler_static='-Bstatic'
11811       fi
11812       ;;
11813
11814     amigaos*)
11815       # FIXME: we need at least 68020 code to build shared libraries, but
11816       # adding the `-m68020' flag to GCC prevents building anything better,
11817       # like `-m68040'.
11818       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11819       ;;
11820
11821     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11822       # PIC is the default for these OSes.
11823       ;;
11824
11825     mingw* | pw32* | os2*)
11826       # This hack is so that the source file can tell whether it is being
11827       # built for inclusion in a dll (and should export symbols for example).
11828       lt_prog_compiler_pic='-DDLL_EXPORT'
11829       ;;
11830
11831     darwin* | rhapsody*)
11832       # PIC is the default on this platform
11833       # Common symbols not allowed in MH_DYLIB files
11834       lt_prog_compiler_pic='-fno-common'
11835       ;;
11836
11837     msdosdjgpp*)
11838       # Just because we use GCC doesn't mean we suddenly get shared libraries
11839       # on systems that don't support them.
11840       lt_prog_compiler_can_build_shared=no
11841       enable_shared=no
11842       ;;
11843
11844     sysv4*MP*)
11845       if test -d /usr/nec; then
11846         lt_prog_compiler_pic=-Kconform_pic
11847       fi
11848       ;;
11849
11850     hpux*)
11851       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11852       # not for PA HP-UX.
11853       case "$host_cpu" in
11854       hppa*64*|ia64*)
11855         # +Z the default
11856         ;;
11857       *)
11858         lt_prog_compiler_pic='-fPIC'
11859         ;;
11860       esac
11861       ;;
11862
11863     *)
11864       lt_prog_compiler_pic='-fPIC'
11865       ;;
11866     esac
11867   else
11868     # PORTME Check for flag to pass linker flags through the system compiler.
11869     case $host_os in
11870     aix*)
11871       lt_prog_compiler_wl='-Wl,'
11872       if test "$host_cpu" = ia64; then
11873         # AIX 5 now supports IA64 processor
11874         lt_prog_compiler_static='-Bstatic'
11875       else
11876         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11877       fi
11878       ;;
11879       darwin*)
11880         # PIC is the default on this platform
11881         # Common symbols not allowed in MH_DYLIB files
11882        case "$cc_basename" in
11883          xlc*)
11884          lt_prog_compiler_pic='-qnocommon'
11885          lt_prog_compiler_wl='-Wl,'
11886          ;;
11887        esac
11888        ;;
11889
11890     mingw* | pw32* | os2*)
11891       # This hack is so that the source file can tell whether it is being
11892       # built for inclusion in a dll (and should export symbols for example).
11893       lt_prog_compiler_pic='-DDLL_EXPORT'
11894       ;;
11895
11896     hpux9* | hpux10* | hpux11*)
11897       lt_prog_compiler_wl='-Wl,'
11898       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11899       # not for PA HP-UX.
11900       case "$host_cpu" in
11901       hppa*64*|ia64*)
11902         # +Z the default
11903         ;;
11904       *)
11905         lt_prog_compiler_pic='+Z'
11906         ;;
11907       esac
11908       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11909       lt_prog_compiler_static='${wl}-a ${wl}archive'
11910       ;;
11911
11912     irix5* | irix6* | nonstopux*)
11913       lt_prog_compiler_wl='-Wl,'
11914       # PIC (with -KPIC) is the default.
11915       lt_prog_compiler_static='-non_shared'
11916       ;;
11917
11918     newsos6)
11919       lt_prog_compiler_pic='-KPIC'
11920       lt_prog_compiler_static='-Bstatic'
11921       ;;
11922
11923     linux*)
11924       case $CC in
11925       icc* | ecc*)
11926         lt_prog_compiler_wl='-Wl,'
11927         lt_prog_compiler_pic='-KPIC'
11928         lt_prog_compiler_static='-static'
11929         ;;
11930       ccc*)
11931         lt_prog_compiler_wl='-Wl,'
11932         # All Alpha code is PIC.
11933         lt_prog_compiler_static='-non_shared'
11934         ;;
11935       esac
11936       ;;
11937
11938     osf3* | osf4* | osf5*)
11939       lt_prog_compiler_wl='-Wl,'
11940       # All OSF/1 code is PIC.
11941       lt_prog_compiler_static='-non_shared'
11942       ;;
11943
11944     sco3.2v5*)
11945       lt_prog_compiler_pic='-Kpic'
11946       lt_prog_compiler_static='-dn'
11947       ;;
11948
11949     solaris*)
11950       lt_prog_compiler_wl='-Wl,'
11951       lt_prog_compiler_pic='-KPIC'
11952       lt_prog_compiler_static='-Bstatic'
11953       ;;
11954
11955     sunos4*)
11956       lt_prog_compiler_wl='-Qoption ld '
11957       lt_prog_compiler_pic='-PIC'
11958       lt_prog_compiler_static='-Bstatic'
11959       ;;
11960
11961     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11962       lt_prog_compiler_wl='-Wl,'
11963       lt_prog_compiler_pic='-KPIC'
11964       lt_prog_compiler_static='-Bstatic'
11965       ;;
11966
11967     sysv4*MP*)
11968       if test -d /usr/nec ;then
11969         lt_prog_compiler_pic='-Kconform_pic'
11970         lt_prog_compiler_static='-Bstatic'
11971       fi
11972       ;;
11973
11974     uts4*)
11975       lt_prog_compiler_pic='-pic'
11976       lt_prog_compiler_static='-Bstatic'
11977       ;;
11978
11979     *)
11980       lt_prog_compiler_can_build_shared=no
11981       ;;
11982     esac
11983   fi
11984
11985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11986 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11987
11988 #
11989 # Check to make sure the PIC flag actually works.
11990 #
11991 if test -n "$lt_prog_compiler_pic"; then
11992
11993 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11995 if test "${lt_prog_compiler_pic_works+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   lt_prog_compiler_pic_works=no
11999   ac_outfile=conftest.$ac_objext
12000    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12001    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12002    # Insert the option either (1) after the last *FLAGS variable, or
12003    # (2) before a word containing "conftest.", or (3) at the end.
12004    # Note that $ac_compile itself does not contain backslashes and begins
12005    # with a dollar sign (not a hyphen), so the echo should work correctly.
12006    # The option is referenced via a variable to avoid confusing sed.
12007    lt_compile=`echo "$ac_compile" | $SED \
12008    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12010    -e 's:$: $lt_compiler_flag:'`
12011    (eval echo "\"\$as_me:12011: $lt_compile\"" >&5)
12012    (eval "$lt_compile" 2>conftest.err)
12013    ac_status=$?
12014    cat conftest.err >&5
12015    echo "$as_me:12015: \$? = $ac_status" >&5
12016    if (exit $ac_status) && test -s "$ac_outfile"; then
12017      # The compiler can only warn and ignore the option if not recognized
12018      # So say no if there are warnings
12019      if test ! -s conftest.err; then
12020        lt_prog_compiler_pic_works=yes
12021      fi
12022    fi
12023    $rm conftest*
12024
12025 fi
12026 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12027 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12028
12029 if test x"$lt_prog_compiler_pic_works" = xyes; then
12030     case $lt_prog_compiler_pic in
12031      "" | " "*) ;;
12032      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12033      esac
12034 else
12035     lt_prog_compiler_pic=
12036      lt_prog_compiler_can_build_shared=no
12037 fi
12038
12039 fi
12040 case "$host_os" in
12041   # For platforms which do not support PIC, -DPIC is meaningless:
12042   *djgpp*)
12043     lt_prog_compiler_pic=
12044     ;;
12045   *)
12046     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12047     ;;
12048 esac
12049
12050 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12052 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   lt_cv_prog_compiler_c_o=no
12056    $rm -r conftest 2>/dev/null
12057    mkdir conftest
12058    cd conftest
12059    mkdir out
12060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12061
12062    lt_compiler_flag="-o out/conftest2.$ac_objext"
12063    # Insert the option either (1) after the last *FLAGS variable, or
12064    # (2) before a word containing "conftest.", or (3) at the end.
12065    # Note that $ac_compile itself does not contain backslashes and begins
12066    # with a dollar sign (not a hyphen), so the echo should work correctly.
12067    lt_compile=`echo "$ac_compile" | $SED \
12068    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12070    -e 's:$: $lt_compiler_flag:'`
12071    (eval echo "\"\$as_me:12071: $lt_compile\"" >&5)
12072    (eval "$lt_compile" 2>out/conftest.err)
12073    ac_status=$?
12074    cat out/conftest.err >&5
12075    echo "$as_me:12075: \$? = $ac_status" >&5
12076    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12077    then
12078      # The compiler can only warn and ignore the option if not recognized
12079      # So say no if there are warnings
12080      if test ! -s out/conftest.err; then
12081        lt_cv_prog_compiler_c_o=yes
12082      fi
12083    fi
12084    chmod u+w .
12085    $rm conftest*
12086    # SGI C++ compiler will create directory out/ii_files/ for
12087    # template instantiation
12088    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12089    $rm out/* && rmdir out
12090    cd ..
12091    rmdir conftest
12092    $rm conftest*
12093
12094 fi
12095 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12097
12098
12099 hard_links="nottested"
12100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12101   # do not overwrite the value of need_locks provided by the user
12102   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12104   hard_links=yes
12105   $rm conftest*
12106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107   touch conftest.a
12108   ln conftest.a conftest.b 2>&5 || hard_links=no
12109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110   echo "$as_me:$LINENO: result: $hard_links" >&5
12111 echo "${ECHO_T}$hard_links" >&6
12112   if test "$hard_links" = no; then
12113     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12115     need_locks=warn
12116   fi
12117 else
12118   need_locks=no
12119 fi
12120
12121 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12123
12124   runpath_var=
12125   allow_undefined_flag=
12126   enable_shared_with_static_runtimes=no
12127   archive_cmds=
12128   archive_expsym_cmds=
12129   old_archive_From_new_cmds=
12130   old_archive_from_expsyms_cmds=
12131   export_dynamic_flag_spec=
12132   whole_archive_flag_spec=
12133   thread_safe_flag_spec=
12134   hardcode_libdir_flag_spec=
12135   hardcode_libdir_flag_spec_ld=
12136   hardcode_libdir_separator=
12137   hardcode_direct=no
12138   hardcode_minus_L=no
12139   hardcode_shlibpath_var=unsupported
12140   link_all_deplibs=unknown
12141   hardcode_automatic=no
12142   module_cmds=
12143   module_expsym_cmds=
12144   always_export_symbols=no
12145   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12146   # include_expsyms should be a list of space-separated symbols to be *always*
12147   # included in the symbol list
12148   include_expsyms=
12149   # exclude_expsyms can be an extended regexp of symbols to exclude
12150   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12151   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12152   # as well as any symbol that contains `d'.
12153   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12154   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12155   # platforms (ab)use it in PIC code, but their linkers get confused if
12156   # the symbol is explicitly referenced.  Since portable code cannot
12157   # rely on this symbol name, it's probably fine to never include it in
12158   # preloaded symbol tables.
12159   extract_expsyms_cmds=
12160
12161   case $host_os in
12162   cygwin* | mingw* | pw32*)
12163     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12164     # When not using gcc, we currently assume that we are using
12165     # Microsoft Visual C++.
12166     if test "$GCC" != yes; then
12167       with_gnu_ld=no
12168     fi
12169     ;;
12170   openbsd*)
12171     with_gnu_ld=no
12172     ;;
12173   esac
12174
12175   ld_shlibs=yes
12176   if test "$with_gnu_ld" = yes; then
12177     # If archive_cmds runs LD, not CC, wlarc should be empty
12178     wlarc='${wl}'
12179
12180     # See if GNU ld supports shared libraries.
12181     case $host_os in
12182     aix3* | aix4* | aix5*)
12183       # On AIX/PPC, the GNU linker is very broken
12184       if test "$host_cpu" != ia64; then
12185         ld_shlibs=no
12186         cat <<EOF 1>&2
12187
12188 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12189 *** to be unable to reliably create shared libraries on AIX.
12190 *** Therefore, libtool is disabling shared libraries support.  If you
12191 *** really care for shared libraries, you may want to modify your PATH
12192 *** so that a non-GNU linker is found, and then restart.
12193
12194 EOF
12195       fi
12196       ;;
12197
12198     amigaos*)
12199       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)'
12200       hardcode_libdir_flag_spec='-L$libdir'
12201       hardcode_minus_L=yes
12202
12203       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12204       # that the semantics of dynamic libraries on AmigaOS, at least up
12205       # to version 4, is to share data among multiple programs linked
12206       # with the same dynamic library.  Since this doesn't match the
12207       # behavior of shared libraries on other platforms, we can't use
12208       # them.
12209       ld_shlibs=no
12210       ;;
12211
12212     beos*)
12213       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12214         allow_undefined_flag=unsupported
12215         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12216         # support --undefined.  This deserves some investigation.  FIXME
12217         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218       else
12219         ld_shlibs=no
12220       fi
12221       ;;
12222
12223     cygwin* | mingw* | pw32*)
12224       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12225       # as there is no search path for DLLs.
12226       hardcode_libdir_flag_spec='-L$libdir'
12227       allow_undefined_flag=unsupported
12228       always_export_symbols=no
12229       enable_shared_with_static_runtimes=yes
12230       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12231
12232       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12233         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12234         # If the export-symbols file already is a .def file (1st line
12235         # is EXPORTS), use it as is; otherwise, prepend...
12236         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12237           cp $export_symbols $output_objdir/$soname.def;
12238         else
12239           echo EXPORTS > $output_objdir/$soname.def;
12240           cat $export_symbols >> $output_objdir/$soname.def;
12241         fi~
12242         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12243       else
12244         ld_shlibs=no
12245       fi
12246       ;;
12247
12248     netbsd*)
12249       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12250         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12251         wlarc=
12252       else
12253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12255       fi
12256       ;;
12257
12258     solaris* | sysv5*)
12259       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12260         ld_shlibs=no
12261         cat <<EOF 1>&2
12262
12263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12264 *** create shared libraries on Solaris systems.  Therefore, libtool
12265 *** is disabling shared libraries support.  We urge you to upgrade GNU
12266 *** binutils to release 2.9.1 or newer.  Another option is to modify
12267 *** your PATH or compiler configuration so that the native linker is
12268 *** used, and then restart.
12269
12270 EOF
12271       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12272         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12274       else
12275         ld_shlibs=no
12276       fi
12277       ;;
12278
12279     sunos4*)
12280       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12281       wlarc=
12282       hardcode_direct=yes
12283       hardcode_shlibpath_var=no
12284       ;;
12285
12286   linux*)
12287     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12288         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12289         archive_cmds="$tmp_archive_cmds"
12290       supports_anon_versioning=no
12291       case `$LD -v 2>/dev/null` in
12292         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12293         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12294         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12295         *\ 2.11.*) ;; # other 2.11 versions
12296         *) supports_anon_versioning=yes ;;
12297       esac
12298       if test $supports_anon_versioning = yes; then
12299         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12301 $echo "local: *; };" >> $output_objdir/$libname.ver~
12302         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12303       else
12304         archive_expsym_cmds="$tmp_archive_cmds"
12305       fi
12306     else
12307       ld_shlibs=no
12308     fi
12309     ;;
12310
12311     *)
12312       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12313         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12314         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12315       else
12316         ld_shlibs=no
12317       fi
12318       ;;
12319     esac
12320
12321     if test "$ld_shlibs" = yes; then
12322       runpath_var=LD_RUN_PATH
12323       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12324       export_dynamic_flag_spec='${wl}--export-dynamic'
12325       # ancient GNU ld didn't support --whole-archive et. al.
12326       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12327         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12328       else
12329         whole_archive_flag_spec=
12330       fi
12331     fi
12332   else
12333     # PORTME fill in a description of your system's linker (not GNU ld)
12334     case $host_os in
12335     aix3*)
12336       allow_undefined_flag=unsupported
12337       always_export_symbols=yes
12338       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'
12339       # Note: this linker hardcodes the directories in LIBPATH if there
12340       # are no directories specified by -L.
12341       hardcode_minus_L=yes
12342       if test "$GCC" = yes && test -z "$link_static_flag"; then
12343         # Neither direct hardcoding nor static linking is supported with a
12344         # broken collect2.
12345         hardcode_direct=unsupported
12346       fi
12347       ;;
12348
12349     aix4* | aix5*)
12350       if test "$host_cpu" = ia64; then
12351         # On IA64, the linker does run time linking by default, so we don't
12352         # have to do anything special.
12353         aix_use_runtimelinking=no
12354         exp_sym_flag='-Bexport'
12355         no_entry_flag=""
12356       else
12357         # If we're using GNU nm, then we don't want the "-C" option.
12358         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12359         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12360           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'
12361         else
12362           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'
12363         fi
12364         aix_use_runtimelinking=no
12365
12366         # Test if we are trying to use run time linking or normal
12367         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12368         # need to do runtime linking.
12369         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12370           for ld_flag in $LDFLAGS; do
12371           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12372             aix_use_runtimelinking=yes
12373             break
12374           fi
12375           done
12376         esac
12377
12378         exp_sym_flag='-bexport'
12379         no_entry_flag='-bnoentry'
12380       fi
12381
12382       # When large executables or shared objects are built, AIX ld can
12383       # have problems creating the table of contents.  If linking a library
12384       # or program results in "error TOC overflow" add -mminimal-toc to
12385       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12386       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12387
12388       archive_cmds=''
12389       hardcode_direct=yes
12390       hardcode_libdir_separator=':'
12391       link_all_deplibs=yes
12392
12393       if test "$GCC" = yes; then
12394         case $host_os in aix4.012|aix4.012.*)
12395         # We only want to do this on AIX 4.2 and lower, the check
12396         # below for broken collect2 doesn't work under 4.3+
12397           collect2name=`${CC} -print-prog-name=collect2`
12398           if test -f "$collect2name" && \
12399            strings "$collect2name" | grep resolve_lib_name >/dev/null
12400           then
12401           # We have reworked collect2
12402           hardcode_direct=yes
12403           else
12404           # We have old collect2
12405           hardcode_direct=unsupported
12406           # It fails to find uninstalled libraries when the uninstalled
12407           # path is not listed in the libpath.  Setting hardcode_minus_L
12408           # to unsupported forces relinking
12409           hardcode_minus_L=yes
12410           hardcode_libdir_flag_spec='-L$libdir'
12411           hardcode_libdir_separator=
12412           fi
12413         esac
12414         shared_flag='-shared'
12415       else
12416         # not using gcc
12417         if test "$host_cpu" = ia64; then
12418         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12419         # chokes on -Wl,-G. The following line is correct:
12420           shared_flag='-G'
12421         else
12422         if test "$aix_use_runtimelinking" = yes; then
12423             shared_flag='${wl}-G'
12424           else
12425             shared_flag='${wl}-bM:SRE'
12426         fi
12427         fi
12428       fi
12429
12430       # It seems that -bexpall does not export symbols beginning with
12431       # underscore (_), so it is better to generate a list of symbols to export.
12432       always_export_symbols=yes
12433       if test "$aix_use_runtimelinking" = yes; then
12434         # Warning - without using the other runtime loading flags (-brtl),
12435         # -berok will link without error, but may produce a broken library.
12436         allow_undefined_flag='-berok'
12437        # Determine the default libpath from the value encoded in an empty executable.
12438        cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444
12445 int
12446 main ()
12447 {
12448
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455   (eval $ac_link) 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } &&
12462          { ac_try='test -z "$ac_c_werror_flag"
12463                          || test ! -s conftest.err'
12464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465   (eval $ac_try) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; } &&
12469          { ac_try='test -s conftest$ac_exeext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475
12476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12477 }'`
12478 # Check for a 64-bit object if we didn't find anything.
12479 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; }
12480 }'`; fi
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 fi
12486 rm -f conftest.err conftest.$ac_objext \
12487       conftest$ac_exeext conftest.$ac_ext
12488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12489
12490        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12491         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"
12492        else
12493         if test "$host_cpu" = ia64; then
12494           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12495           allow_undefined_flag="-z nodefs"
12496           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"
12497         else
12498          # Determine the default libpath from the value encoded in an empty executable.
12499          cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505
12506 int
12507 main ()
12508 {
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516   (eval $ac_link) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"
12524                          || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536
12537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12538 }'`
12539 # Check for a 64-bit object if we didn't find anything.
12540 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; }
12541 }'`; fi
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 fi
12547 rm -f conftest.err conftest.$ac_objext \
12548       conftest$ac_exeext conftest.$ac_ext
12549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12550
12551          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12552           # Warning - without using the other run time loading flags,
12553           # -berok will link without error, but may produce a broken library.
12554           no_undefined_flag=' ${wl}-bernotok'
12555           allow_undefined_flag=' ${wl}-berok'
12556           # -bexpall does not export symbols beginning with underscore (_)
12557           always_export_symbols=yes
12558           # Exported symbols can be pulled into shared objects from archives
12559           whole_archive_flag_spec=' '
12560           archive_cmds_need_lc=yes
12561           # This is similar to how AIX traditionally builds it's shared libraries.
12562           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'
12563         fi
12564       fi
12565       ;;
12566
12567     amigaos*)
12568       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)'
12569       hardcode_libdir_flag_spec='-L$libdir'
12570       hardcode_minus_L=yes
12571       # see comment about different semantics on the GNU ld section
12572       ld_shlibs=no
12573       ;;
12574
12575     bsdi[45]*)
12576       export_dynamic_flag_spec=-rdynamic
12577       ;;
12578
12579     cygwin* | mingw* | pw32*)
12580       # When not using gcc, we currently assume that we are using
12581       # Microsoft Visual C++.
12582       # hardcode_libdir_flag_spec is actually meaningless, as there is
12583       # no search path for DLLs.
12584       hardcode_libdir_flag_spec=' '
12585       allow_undefined_flag=unsupported
12586       # Tell ltmain to make .lib files, not .a files.
12587       libext=lib
12588       # Tell ltmain to make .dll files, not .so files.
12589       shrext_cmds=".dll"
12590       # FIXME: Setting linknames here is a bad hack.
12591       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12592       # The linker will automatically build a .lib file if we build a DLL.
12593       old_archive_From_new_cmds='true'
12594       # FIXME: Should let the user specify the lib program.
12595       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12596       fix_srcfile_path='`cygpath -w "$srcfile"`'
12597       enable_shared_with_static_runtimes=yes
12598       ;;
12599
12600     darwin* | rhapsody*)
12601       case "$host_os" in
12602         rhapsody* | darwin1.[012])
12603          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12604          ;;
12605        *) # Darwin 1.3 on
12606          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12607            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12608          else
12609            case ${MACOSX_DEPLOYMENT_TARGET} in
12610              10.[012])
12611                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12612                ;;
12613              10.*)
12614                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12615                ;;
12616            esac
12617          fi
12618          ;;
12619       esac
12620       archive_cmds_need_lc=no
12621       hardcode_direct=no
12622       hardcode_automatic=yes
12623       hardcode_shlibpath_var=unsupported
12624       whole_archive_flag_spec=''
12625       link_all_deplibs=yes
12626     if test "$GCC" = yes ; then
12627         output_verbose_link_cmd='echo'
12628         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12629       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12630       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12631       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}'
12632       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}'
12633     else
12634       case "$cc_basename" in
12635         xlc*)
12636          output_verbose_link_cmd='echo'
12637          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12638          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12639           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12640          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}'
12641           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}'
12642           ;;
12643        *)
12644          ld_shlibs=no
12645           ;;
12646       esac
12647     fi
12648       ;;
12649
12650     dgux*)
12651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12652       hardcode_libdir_flag_spec='-L$libdir'
12653       hardcode_shlibpath_var=no
12654       ;;
12655
12656     freebsd1*)
12657       ld_shlibs=no
12658       ;;
12659
12660     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12661     # support.  Future versions do this automatically, but an explicit c++rt0.o
12662     # does not break anything, and helps significantly (at the cost of a little
12663     # extra space).
12664     freebsd2.2*)
12665       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12666       hardcode_libdir_flag_spec='-R$libdir'
12667       hardcode_direct=yes
12668       hardcode_shlibpath_var=no
12669       ;;
12670
12671     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12672     freebsd2*)
12673       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12674       hardcode_direct=yes
12675       hardcode_minus_L=yes
12676       hardcode_shlibpath_var=no
12677       ;;
12678
12679     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12680     freebsd* | kfreebsd*-gnu)
12681       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12682       hardcode_libdir_flag_spec='-R$libdir'
12683       hardcode_direct=yes
12684       hardcode_shlibpath_var=no
12685       ;;
12686
12687     hpux9*)
12688       if test "$GCC" = yes; then
12689         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'
12690       else
12691         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'
12692       fi
12693       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12694       hardcode_libdir_separator=:
12695       hardcode_direct=yes
12696
12697       # hardcode_minus_L: Not really in the search PATH,
12698       # but as the default location of the library.
12699       hardcode_minus_L=yes
12700       export_dynamic_flag_spec='${wl}-E'
12701       ;;
12702
12703     hpux10* | hpux11*)
12704       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12705         case "$host_cpu" in
12706         hppa*64*|ia64*)
12707           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12708           ;;
12709         *)
12710           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12711           ;;
12712         esac
12713       else
12714         case "$host_cpu" in
12715         hppa*64*|ia64*)
12716           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12717           ;;
12718         *)
12719           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12720           ;;
12721         esac
12722       fi
12723       if test "$with_gnu_ld" = no; then
12724         case "$host_cpu" in
12725         hppa*64*)
12726           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12727           hardcode_libdir_flag_spec_ld='+b $libdir'
12728           hardcode_libdir_separator=:
12729           hardcode_direct=no
12730           hardcode_shlibpath_var=no
12731           ;;
12732         ia64*)
12733           hardcode_libdir_flag_spec='-L$libdir'
12734           hardcode_direct=no
12735           hardcode_shlibpath_var=no
12736
12737           # hardcode_minus_L: Not really in the search PATH,
12738           # but as the default location of the library.
12739           hardcode_minus_L=yes
12740           ;;
12741         *)
12742           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12743           hardcode_libdir_separator=:
12744           hardcode_direct=yes
12745           export_dynamic_flag_spec='${wl}-E'
12746
12747           # hardcode_minus_L: Not really in the search PATH,
12748           # but as the default location of the library.
12749           hardcode_minus_L=yes
12750           ;;
12751         esac
12752       fi
12753       ;;
12754
12755     irix5* | irix6* | nonstopux*)
12756       if test "$GCC" = yes; then
12757         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'
12758       else
12759         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'
12760         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12761       fi
12762       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12763       hardcode_libdir_separator=:
12764       link_all_deplibs=yes
12765       ;;
12766
12767     netbsd*)
12768       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12769         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12770       else
12771         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12772       fi
12773       hardcode_libdir_flag_spec='-R$libdir'
12774       hardcode_direct=yes
12775       hardcode_shlibpath_var=no
12776       ;;
12777
12778     newsos6)
12779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780       hardcode_direct=yes
12781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782       hardcode_libdir_separator=:
12783       hardcode_shlibpath_var=no
12784       ;;
12785
12786     openbsd*)
12787       hardcode_direct=yes
12788       hardcode_shlibpath_var=no
12789       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12790         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12791         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12792         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12793         export_dynamic_flag_spec='${wl}-E'
12794       else
12795        case $host_os in
12796          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12797            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798            hardcode_libdir_flag_spec='-R$libdir'
12799            ;;
12800          *)
12801            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12802            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12803            ;;
12804        esac
12805       fi
12806       ;;
12807
12808     os2*)
12809       hardcode_libdir_flag_spec='-L$libdir'
12810       hardcode_minus_L=yes
12811       allow_undefined_flag=unsupported
12812       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'
12813       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12814       ;;
12815
12816     osf3*)
12817       if test "$GCC" = yes; then
12818         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12819         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'
12820       else
12821         allow_undefined_flag=' -expect_unresolved \*'
12822         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'
12823       fi
12824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12825       hardcode_libdir_separator=:
12826       ;;
12827
12828     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12829       if test "$GCC" = yes; then
12830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12831         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'
12832         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12833       else
12834         allow_undefined_flag=' -expect_unresolved \*'
12835         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'
12836         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12837         $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'
12838
12839         # Both c and cxx compiler support -rpath directly
12840         hardcode_libdir_flag_spec='-rpath $libdir'
12841       fi
12842       hardcode_libdir_separator=:
12843       ;;
12844
12845     sco3.2v5*)
12846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12847       hardcode_shlibpath_var=no
12848       export_dynamic_flag_spec='${wl}-Bexport'
12849       runpath_var=LD_RUN_PATH
12850       hardcode_runpath_var=yes
12851       ;;
12852
12853     solaris*)
12854       no_undefined_flag=' -z text'
12855       if test "$GCC" = yes; then
12856         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12857         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12859       else
12860         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12862         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12863       fi
12864       hardcode_libdir_flag_spec='-R$libdir'
12865       hardcode_shlibpath_var=no
12866       case $host_os in
12867       solaris2.[0-5] | solaris2.[0-5].*) ;;
12868       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12869         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12870       esac
12871       link_all_deplibs=yes
12872       ;;
12873
12874     sunos4*)
12875       if test "x$host_vendor" = xsequent; then
12876         # Use $CC to link under sequent, because it throws in some extra .o
12877         # files that make .init and .fini sections work.
12878         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12879       else
12880         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12881       fi
12882       hardcode_libdir_flag_spec='-L$libdir'
12883       hardcode_direct=yes
12884       hardcode_minus_L=yes
12885       hardcode_shlibpath_var=no
12886       ;;
12887
12888     sysv4)
12889       case $host_vendor in
12890         sni)
12891           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12892           hardcode_direct=yes # is this really true???
12893         ;;
12894         siemens)
12895           ## LD is ld it makes a PLAMLIB
12896           ## CC just makes a GrossModule.
12897           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12898           reload_cmds='$CC -r -o $output$reload_objs'
12899           hardcode_direct=no
12900         ;;
12901         motorola)
12902           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12903           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12904         ;;
12905       esac
12906       runpath_var='LD_RUN_PATH'
12907       hardcode_shlibpath_var=no
12908       ;;
12909
12910     sysv4.3*)
12911       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912       hardcode_shlibpath_var=no
12913       export_dynamic_flag_spec='-Bexport'
12914       ;;
12915
12916     sysv4*MP*)
12917       if test -d /usr/nec; then
12918         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12919         hardcode_shlibpath_var=no
12920         runpath_var=LD_RUN_PATH
12921         hardcode_runpath_var=yes
12922         ld_shlibs=yes
12923       fi
12924       ;;
12925
12926     sysv4.2uw2*)
12927       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12928       hardcode_direct=yes
12929       hardcode_minus_L=no
12930       hardcode_shlibpath_var=no
12931       hardcode_runpath_var=yes
12932       runpath_var=LD_RUN_PATH
12933       ;;
12934
12935    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12936       no_undefined_flag='${wl}-z ${wl}text'
12937       if test "$GCC" = yes; then
12938         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12939       else
12940         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12941       fi
12942       runpath_var='LD_RUN_PATH'
12943       hardcode_shlibpath_var=no
12944       ;;
12945
12946     sysv5*)
12947       no_undefined_flag=' -z text'
12948       # $CC -shared without GNU ld will not create a library from C++
12949       # object files and a static libstdc++, better avoid it by now
12950       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12951       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12952                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12953       hardcode_libdir_flag_spec=
12954       hardcode_shlibpath_var=no
12955       runpath_var='LD_RUN_PATH'
12956       ;;
12957
12958     uts4*)
12959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12960       hardcode_libdir_flag_spec='-L$libdir'
12961       hardcode_shlibpath_var=no
12962       ;;
12963
12964     *)
12965       ld_shlibs=no
12966       ;;
12967     esac
12968   fi
12969
12970 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12971 echo "${ECHO_T}$ld_shlibs" >&6
12972 test "$ld_shlibs" = no && can_build_shared=no
12973
12974 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12975 if test "$GCC" = yes; then
12976   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12977 fi
12978
12979 #
12980 # Do we need to explicitly link libc?
12981 #
12982 case "x$archive_cmds_need_lc" in
12983 x|xyes)
12984   # Assume -lc should be added
12985   archive_cmds_need_lc=yes
12986
12987   if test "$enable_shared" = yes && test "$GCC" = yes; then
12988     case $archive_cmds in
12989     *'~'*)
12990       # FIXME: we may have to deal with multi-command sequences.
12991       ;;
12992     '$CC '*)
12993       # Test whether the compiler implicitly links with -lc since on some
12994       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12995       # to ld, don't add -lc before -lgcc.
12996       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12997 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12998       $rm conftest*
12999       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13000
13001       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002   (eval $ac_compile) 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); } 2>conftest.err; then
13006         soname=conftest
13007         lib=conftest
13008         libobjs=conftest.$ac_objext
13009         deplibs=
13010         wl=$lt_prog_compiler_wl
13011         compiler_flags=-v
13012         linker_flags=-v
13013         verstring=
13014         output_objdir=.
13015         libname=conftest
13016         lt_save_allow_undefined_flag=$allow_undefined_flag
13017         allow_undefined_flag=
13018         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13019   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }
13023         then
13024           archive_cmds_need_lc=no
13025         else
13026           archive_cmds_need_lc=yes
13027         fi
13028         allow_undefined_flag=$lt_save_allow_undefined_flag
13029       else
13030         cat conftest.err 1>&5
13031       fi
13032       $rm conftest*
13033       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13034 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13035       ;;
13036     esac
13037   fi
13038   ;;
13039 esac
13040
13041 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13042 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13043 library_names_spec=
13044 libname_spec='lib$name'
13045 soname_spec=
13046 shrext_cmds=".so"
13047 postinstall_cmds=
13048 postuninstall_cmds=
13049 finish_cmds=
13050 finish_eval=
13051 shlibpath_var=
13052 shlibpath_overrides_runpath=unknown
13053 version_type=none
13054 dynamic_linker="$host_os ld.so"
13055 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13056 if test "$GCC" = yes; then
13057   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13058   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13059     # if the path contains ";" then we assume it to be the separator
13060     # otherwise default to the standard path separator (i.e. ":") - it is
13061     # assumed that no part of a normal pathname contains ";" but that should
13062     # okay in the real world where ";" in dirpaths is itself problematic.
13063     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13064   else
13065     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13066   fi
13067 else
13068   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13069 fi
13070 need_lib_prefix=unknown
13071 hardcode_into_libs=no
13072
13073 # when you set need_version to no, make sure it does not cause -set_version
13074 # flags to be left without arguments
13075 need_version=unknown
13076
13077 case $host_os in
13078 aix3*)
13079   version_type=linux
13080   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13081   shlibpath_var=LIBPATH
13082
13083   # AIX 3 has no versioning support, so we append a major version to the name.
13084   soname_spec='${libname}${release}${shared_ext}$major'
13085   ;;
13086
13087 aix4* | aix5*)
13088   version_type=linux
13089   need_lib_prefix=no
13090   need_version=no
13091   hardcode_into_libs=yes
13092   if test "$host_cpu" = ia64; then
13093     # AIX 5 supports IA64
13094     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13095     shlibpath_var=LD_LIBRARY_PATH
13096   else
13097     # With GCC up to 2.95.x, collect2 would create an import file
13098     # for dependence libraries.  The import file would start with
13099     # the line `#! .'.  This would cause the generated library to
13100     # depend on `.', always an invalid library.  This was fixed in
13101     # development snapshots of GCC prior to 3.0.
13102     case $host_os in
13103       aix4 | aix4.[01] | aix4.[01].*)
13104       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13105            echo ' yes '
13106            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13107         :
13108       else
13109         can_build_shared=no
13110       fi
13111       ;;
13112     esac
13113     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13114     # soname into executable. Probably we can add versioning support to
13115     # collect2, so additional links can be useful in future.
13116     if test "$aix_use_runtimelinking" = yes; then
13117       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13118       # instead of lib<name>.a to let people know that these are not
13119       # typical AIX shared libraries.
13120       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121     else
13122       # We preserve .a as extension for shared libraries through AIX4.2
13123       # and later when we are not doing run time linking.
13124       library_names_spec='${libname}${release}.a $libname.a'
13125       soname_spec='${libname}${release}${shared_ext}$major'
13126     fi
13127     shlibpath_var=LIBPATH
13128   fi
13129   ;;
13130
13131 amigaos*)
13132   library_names_spec='$libname.ixlibrary $libname.a'
13133   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13134   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'
13135   ;;
13136
13137 beos*)
13138   library_names_spec='${libname}${shared_ext}'
13139   dynamic_linker="$host_os ld.so"
13140   shlibpath_var=LIBRARY_PATH
13141   ;;
13142
13143 bsdi[45]*)
13144   version_type=linux
13145   need_version=no
13146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147   soname_spec='${libname}${release}${shared_ext}$major'
13148   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13149   shlibpath_var=LD_LIBRARY_PATH
13150   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13151   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13152   # the default ld.so.conf also contains /usr/contrib/lib and
13153   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13154   # libtool to hard-code these into programs
13155   ;;
13156
13157 cygwin* | mingw* | pw32*)
13158   version_type=windows
13159   shrext_cmds=".dll"
13160   need_version=no
13161   need_lib_prefix=no
13162
13163   case $GCC,$host_os in
13164   yes,cygwin* | yes,mingw* | yes,pw32*)
13165     library_names_spec='$libname.dll.a'
13166     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13167     postinstall_cmds='base_file=`basename \${file}`~
13168       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13169       dldir=$destdir/`dirname \$dlpath`~
13170       test -d \$dldir || mkdir -p \$dldir~
13171       $install_prog $dir/$dlname \$dldir/$dlname'
13172     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13173       dlpath=$dir/\$dldll~
13174        $rm \$dlpath'
13175     shlibpath_overrides_runpath=yes
13176
13177     case $host_os in
13178     cygwin*)
13179       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13180       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13181       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13182       ;;
13183     mingw*)
13184       # MinGW DLLs use traditional 'lib' prefix
13185       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13186       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13187       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13188         # It is most probably a Windows format PATH printed by
13189         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13190         # path with ; separators, and with drive letters. We can handle the
13191         # drive letters (cygwin fileutils understands them), so leave them,
13192         # especially as we might pass files found there to a mingw objdump,
13193         # which wouldn't understand a cygwinified path. Ahh.
13194         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13195       else
13196         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13197       fi
13198       ;;
13199     pw32*)
13200       # pw32 DLLs use 'pw' prefix rather than 'lib'
13201       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13202       ;;
13203     esac
13204     ;;
13205
13206   *)
13207     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13208     ;;
13209   esac
13210   dynamic_linker='Win32 ld.exe'
13211   # FIXME: first we should search . and the directory the executable is in
13212   shlibpath_var=PATH
13213   ;;
13214
13215 darwin* | rhapsody*)
13216   dynamic_linker="$host_os dyld"
13217   version_type=darwin
13218   need_lib_prefix=no
13219   need_version=no
13220   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13221   soname_spec='${libname}${release}${major}$shared_ext'
13222   shlibpath_overrides_runpath=yes
13223   shlibpath_var=DYLD_LIBRARY_PATH
13224   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13225   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13226   if test "$GCC" = yes; then
13227     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"`
13228   else
13229     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13230   fi
13231   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13232   ;;
13233
13234 dgux*)
13235   version_type=linux
13236   need_lib_prefix=no
13237   need_version=no
13238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13239   soname_spec='${libname}${release}${shared_ext}$major'
13240   shlibpath_var=LD_LIBRARY_PATH
13241   ;;
13242
13243 freebsd1*)
13244   dynamic_linker=no
13245   ;;
13246
13247 kfreebsd*-gnu)
13248   version_type=linux
13249   need_lib_prefix=no
13250   need_version=no
13251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13252   soname_spec='${libname}${release}${shared_ext}$major'
13253   shlibpath_var=LD_LIBRARY_PATH
13254   shlibpath_overrides_runpath=no
13255   hardcode_into_libs=yes
13256   dynamic_linker='GNU ld.so'
13257   ;;
13258
13259 freebsd*)
13260   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13261   version_type=freebsd-$objformat
13262   case $version_type in
13263     freebsd-elf*)
13264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13265       need_version=no
13266       need_lib_prefix=no
13267       ;;
13268     freebsd-*)
13269       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13270       need_version=yes
13271       ;;
13272   esac
13273   shlibpath_var=LD_LIBRARY_PATH
13274   case $host_os in
13275   freebsd2*)
13276     shlibpath_overrides_runpath=yes
13277     ;;
13278   freebsd3.01* | freebsdelf3.01*)
13279     shlibpath_overrides_runpath=yes
13280     hardcode_into_libs=yes
13281     ;;
13282   *) # from 3.2 on
13283     shlibpath_overrides_runpath=no
13284     hardcode_into_libs=yes
13285     ;;
13286   esac
13287   ;;
13288
13289 gnu*)
13290   version_type=linux
13291   need_lib_prefix=no
13292   need_version=no
13293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13294   soname_spec='${libname}${release}${shared_ext}$major'
13295   shlibpath_var=LD_LIBRARY_PATH
13296   hardcode_into_libs=yes
13297   ;;
13298
13299 hpux9* | hpux10* | hpux11*)
13300   # Give a soname corresponding to the major version so that dld.sl refuses to
13301   # link against other versions.
13302   version_type=sunos
13303   need_lib_prefix=no
13304   need_version=no
13305   case "$host_cpu" in
13306   ia64*)
13307     shrext_cmds='.so'
13308     hardcode_into_libs=yes
13309     dynamic_linker="$host_os dld.so"
13310     shlibpath_var=LD_LIBRARY_PATH
13311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313     soname_spec='${libname}${release}${shared_ext}$major'
13314     if test "X$HPUX_IA64_MODE" = X32; then
13315       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13316     else
13317       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13318     fi
13319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13320     ;;
13321    hppa*64*)
13322      shrext_cmds='.sl'
13323      hardcode_into_libs=yes
13324      dynamic_linker="$host_os dld.sl"
13325      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13326      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13327      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328      soname_spec='${libname}${release}${shared_ext}$major'
13329      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13330      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13331      ;;
13332    *)
13333     shrext_cmds='.sl'
13334     dynamic_linker="$host_os dld.sl"
13335     shlibpath_var=SHLIB_PATH
13336     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338     soname_spec='${libname}${release}${shared_ext}$major'
13339     ;;
13340   esac
13341   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13342   postinstall_cmds='chmod 555 $lib'
13343   ;;
13344
13345 irix5* | irix6* | nonstopux*)
13346   case $host_os in
13347     nonstopux*) version_type=nonstopux ;;
13348     *)
13349         if test "$lt_cv_prog_gnu_ld" = yes; then
13350                 version_type=linux
13351         else
13352                 version_type=irix
13353         fi ;;
13354   esac
13355   need_lib_prefix=no
13356   need_version=no
13357   soname_spec='${libname}${release}${shared_ext}$major'
13358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13359   case $host_os in
13360   irix5* | nonstopux*)
13361     libsuff= shlibsuff=
13362     ;;
13363   *)
13364     case $LD in # libtool.m4 will add one of these switches to LD
13365     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13366       libsuff= shlibsuff= libmagic=32-bit;;
13367     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13368       libsuff=32 shlibsuff=N32 libmagic=N32;;
13369     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13370       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13371     *) libsuff= shlibsuff= libmagic=never-match;;
13372     esac
13373     ;;
13374   esac
13375   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13376   shlibpath_overrides_runpath=no
13377   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13378   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13379   hardcode_into_libs=yes
13380   ;;
13381
13382 # No shared lib support for Linux oldld, aout, or coff.
13383 linux*oldld* | linux*aout* | linux*coff*)
13384   dynamic_linker=no
13385   ;;
13386
13387 # This must be Linux ELF.
13388 linux*)
13389   version_type=linux
13390   need_lib_prefix=no
13391   need_version=no
13392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13393   soname_spec='${libname}${release}${shared_ext}$major'
13394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13395   shlibpath_var=LD_LIBRARY_PATH
13396   shlibpath_overrides_runpath=no
13397   # This implies no fast_install, which is unacceptable.
13398   # Some rework will be needed to allow for fast_install
13399   # before this can be enabled.
13400   hardcode_into_libs=yes
13401
13402   # Append ld.so.conf contents to the search path
13403   if test -f /etc/ld.so.conf; then
13404     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13405     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13406   fi
13407
13408   # We used to test for /lib/ld.so.1 and disable shared libraries on
13409   # powerpc, because MkLinux only supported shared libraries with the
13410   # GNU dynamic linker.  Since this was broken with cross compilers,
13411   # most powerpc-linux boxes support dynamic linking these days and
13412   # people can always --disable-shared, the test was removed, and we
13413   # assume the GNU/Linux dynamic linker is in use.
13414   dynamic_linker='GNU/Linux ld.so'
13415   ;;
13416
13417 knetbsd*-gnu)
13418   version_type=linux
13419   need_lib_prefix=no
13420   need_version=no
13421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13422   soname_spec='${libname}${release}${shared_ext}$major'
13423   shlibpath_var=LD_LIBRARY_PATH
13424   shlibpath_overrides_runpath=no
13425   hardcode_into_libs=yes
13426   dynamic_linker='GNU ld.so'
13427   ;;
13428
13429 netbsd*)
13430   version_type=sunos
13431   need_lib_prefix=no
13432   need_version=no
13433   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436     dynamic_linker='NetBSD (a.out) ld.so'
13437   else
13438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13439     soname_spec='${libname}${release}${shared_ext}$major'
13440     dynamic_linker='NetBSD ld.elf_so'
13441   fi
13442   shlibpath_var=LD_LIBRARY_PATH
13443   shlibpath_overrides_runpath=yes
13444   hardcode_into_libs=yes
13445   ;;
13446
13447 newsos6)
13448   version_type=linux
13449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450   shlibpath_var=LD_LIBRARY_PATH
13451   shlibpath_overrides_runpath=yes
13452   ;;
13453
13454 nto-qnx*)
13455   version_type=linux
13456   need_lib_prefix=no
13457   need_version=no
13458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459   soname_spec='${libname}${release}${shared_ext}$major'
13460   shlibpath_var=LD_LIBRARY_PATH
13461   shlibpath_overrides_runpath=yes
13462   ;;
13463
13464 openbsd*)
13465   version_type=sunos
13466   need_lib_prefix=no
13467   need_version=no
13468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13469   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13470   shlibpath_var=LD_LIBRARY_PATH
13471   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13472     case $host_os in
13473       openbsd2.[89] | openbsd2.[89].*)
13474         shlibpath_overrides_runpath=no
13475         ;;
13476       *)
13477         shlibpath_overrides_runpath=yes
13478         ;;
13479       esac
13480   else
13481     shlibpath_overrides_runpath=yes
13482   fi
13483   ;;
13484
13485 os2*)
13486   libname_spec='$name'
13487   shrext_cmds=".dll"
13488   need_lib_prefix=no
13489   library_names_spec='$libname${shared_ext} $libname.a'
13490   dynamic_linker='OS/2 ld.exe'
13491   shlibpath_var=LIBPATH
13492   ;;
13493
13494 osf3* | osf4* | osf5*)
13495   version_type=osf
13496   need_lib_prefix=no
13497   need_version=no
13498   soname_spec='${libname}${release}${shared_ext}$major'
13499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500   shlibpath_var=LD_LIBRARY_PATH
13501   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13502   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13503   ;;
13504
13505 sco3.2v5*)
13506   version_type=osf
13507   soname_spec='${libname}${release}${shared_ext}$major'
13508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509   shlibpath_var=LD_LIBRARY_PATH
13510   ;;
13511
13512 solaris*)
13513   version_type=linux
13514   need_lib_prefix=no
13515   need_version=no
13516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517   soname_spec='${libname}${release}${shared_ext}$major'
13518   shlibpath_var=LD_LIBRARY_PATH
13519   shlibpath_overrides_runpath=yes
13520   hardcode_into_libs=yes
13521   # ldd complains unless libraries are executable
13522   postinstall_cmds='chmod +x $lib'
13523   ;;
13524
13525 sunos4*)
13526   version_type=sunos
13527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13528   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13529   shlibpath_var=LD_LIBRARY_PATH
13530   shlibpath_overrides_runpath=yes
13531   if test "$with_gnu_ld" = yes; then
13532     need_lib_prefix=no
13533   fi
13534   need_version=yes
13535   ;;
13536
13537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13538   version_type=linux
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540   soname_spec='${libname}${release}${shared_ext}$major'
13541   shlibpath_var=LD_LIBRARY_PATH
13542   case $host_vendor in
13543     sni)
13544       shlibpath_overrides_runpath=no
13545       need_lib_prefix=no
13546       export_dynamic_flag_spec='${wl}-Blargedynsym'
13547       runpath_var=LD_RUN_PATH
13548       ;;
13549     siemens)
13550       need_lib_prefix=no
13551       ;;
13552     motorola)
13553       need_lib_prefix=no
13554       need_version=no
13555       shlibpath_overrides_runpath=no
13556       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13557       ;;
13558   esac
13559   ;;
13560
13561 sysv4*MP*)
13562   if test -d /usr/nec ;then
13563     version_type=linux
13564     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13565     soname_spec='$libname${shared_ext}.$major'
13566     shlibpath_var=LD_LIBRARY_PATH
13567   fi
13568   ;;
13569
13570 uts4*)
13571   version_type=linux
13572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573   soname_spec='${libname}${release}${shared_ext}$major'
13574   shlibpath_var=LD_LIBRARY_PATH
13575   ;;
13576
13577 *)
13578   dynamic_linker=no
13579   ;;
13580 esac
13581 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13582 echo "${ECHO_T}$dynamic_linker" >&6
13583 test "$dynamic_linker" = no && can_build_shared=no
13584
13585 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13586 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13587 hardcode_action=
13588 if test -n "$hardcode_libdir_flag_spec" || \
13589    test -n "$runpath_var" || \
13590    test "X$hardcode_automatic" = "Xyes" ; then
13591
13592   # We can hardcode non-existant directories.
13593   if test "$hardcode_direct" != no &&
13594      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13595      # have to relink, otherwise we might link with an installed library
13596      # when we should be linking with a yet-to-be-installed one
13597      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13598      test "$hardcode_minus_L" != no; then
13599     # Linking always hardcodes the temporary library directory.
13600     hardcode_action=relink
13601   else
13602     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13603     hardcode_action=immediate
13604   fi
13605 else
13606   # We cannot hardcode anything, or else we can only hardcode existing
13607   # directories.
13608   hardcode_action=unsupported
13609 fi
13610 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13611 echo "${ECHO_T}$hardcode_action" >&6
13612
13613 if test "$hardcode_action" = relink; then
13614   # Fast installation is not supported
13615   enable_fast_install=no
13616 elif test "$shlibpath_overrides_runpath" = yes ||
13617      test "$enable_shared" = no; then
13618   # Fast installation is not necessary
13619   enable_fast_install=needless
13620 fi
13621
13622 striplib=
13623 old_striplib=
13624 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13625 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13626 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13627   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13628   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13629   echo "$as_me:$LINENO: result: yes" >&5
13630 echo "${ECHO_T}yes" >&6
13631 else
13632 # FIXME - insert some real tests, host_os isn't really good enough
13633   case $host_os in
13634    darwin*)
13635        if test -n "$STRIP" ; then
13636          striplib="$STRIP -x"
13637          echo "$as_me:$LINENO: result: yes" >&5
13638 echo "${ECHO_T}yes" >&6
13639        else
13640   echo "$as_me:$LINENO: result: no" >&5
13641 echo "${ECHO_T}no" >&6
13642 fi
13643        ;;
13644    *)
13645   echo "$as_me:$LINENO: result: no" >&5
13646 echo "${ECHO_T}no" >&6
13647     ;;
13648   esac
13649 fi
13650
13651 if test "x$enable_dlopen" != xyes; then
13652   enable_dlopen=unknown
13653   enable_dlopen_self=unknown
13654   enable_dlopen_self_static=unknown
13655 else
13656   lt_cv_dlopen=no
13657   lt_cv_dlopen_libs=
13658
13659   case $host_os in
13660   beos*)
13661     lt_cv_dlopen="load_add_on"
13662     lt_cv_dlopen_libs=
13663     lt_cv_dlopen_self=yes
13664     ;;
13665
13666   mingw* | pw32*)
13667     lt_cv_dlopen="LoadLibrary"
13668     lt_cv_dlopen_libs=
13669    ;;
13670
13671   cygwin*)
13672     lt_cv_dlopen="dlopen"
13673     lt_cv_dlopen_libs=
13674    ;;
13675
13676   darwin*)
13677   # if libdl is installed we need to link against it
13678     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13681   echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683   ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-ldl  $LIBS"
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691
13692 /* Override any gcc2 internal prototype to avoid an error.  */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 /* We use char because int might match the return type of a gcc2
13697    builtin and then its argument prototype would still apply.  */
13698 char dlopen ();
13699 int
13700 main ()
13701 {
13702 dlopen ();
13703   ;
13704   return 0;
13705 }
13706 _ACEOF
13707 rm -f conftest.$ac_objext conftest$ac_exeext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13709   (eval $ac_link) 2>conftest.er1
13710   ac_status=$?
13711   grep -v '^ *+' conftest.er1 >conftest.err
13712   rm -f conftest.er1
13713   cat conftest.err >&5
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); } &&
13716          { ac_try='test -z "$ac_c_werror_flag"
13717                          || test ! -s conftest.err'
13718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719   (eval $ac_try) 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; } &&
13723          { ac_try='test -s conftest$ac_exeext'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   ac_cv_lib_dl_dlopen=yes
13730 else
13731   echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_cv_lib_dl_dlopen=no
13735 fi
13736 rm -f conftest.err conftest.$ac_objext \
13737       conftest$ac_exeext conftest.$ac_ext
13738 LIBS=$ac_check_lib_save_LIBS
13739 fi
13740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13742 if test $ac_cv_lib_dl_dlopen = yes; then
13743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13744 else
13745
13746     lt_cv_dlopen="dyld"
13747     lt_cv_dlopen_libs=
13748     lt_cv_dlopen_self=yes
13749
13750 fi
13751
13752    ;;
13753
13754   *)
13755     echo "$as_me:$LINENO: checking for shl_load" >&5
13756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13757 if test "${ac_cv_func_shl_load+set}" = set; then
13758   echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760   cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13768 #define shl_load innocuous_shl_load
13769
13770 /* System header to define __stub macros and hopefully few prototypes,
13771     which can conflict with char shl_load (); below.
13772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13773     <limits.h> exists even on freestanding compilers.  */
13774
13775 #ifdef __STDC__
13776 # include <limits.h>
13777 #else
13778 # include <assert.h>
13779 #endif
13780
13781 #undef shl_load
13782
13783 /* Override any gcc2 internal prototype to avoid an error.  */
13784 #ifdef __cplusplus
13785 extern "C"
13786 {
13787 #endif
13788 /* We use char because int might match the return type of a gcc2
13789    builtin and then its argument prototype would still apply.  */
13790 char shl_load ();
13791 /* The GNU C library defines this for functions which it implements
13792     to always fail with ENOSYS.  Some functions are actually named
13793     something starting with __ and the normal name is an alias.  */
13794 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13795 choke me
13796 #else
13797 char (*f) () = shl_load;
13798 #endif
13799 #ifdef __cplusplus
13800 }
13801 #endif
13802
13803 int
13804 main ()
13805 {
13806 return f != shl_load;
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13813   (eval $ac_link) 2>conftest.er1
13814   ac_status=$?
13815   grep -v '^ *+' conftest.er1 >conftest.err
13816   rm -f conftest.er1
13817   cat conftest.err >&5
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } &&
13820          { ac_try='test -z "$ac_c_werror_flag"
13821                          || test ! -s conftest.err'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; } &&
13827          { ac_try='test -s conftest$ac_exeext'
13828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829   (eval $ac_try) 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; }; then
13833   ac_cv_func_shl_load=yes
13834 else
13835   echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838 ac_cv_func_shl_load=no
13839 fi
13840 rm -f conftest.err conftest.$ac_objext \
13841       conftest$ac_exeext conftest.$ac_ext
13842 fi
13843 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13844 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13845 if test $ac_cv_func_shl_load = yes; then
13846   lt_cv_dlopen="shl_load"
13847 else
13848   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13849 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13850 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   ac_check_lib_save_LIBS=$LIBS
13854 LIBS="-ldld  $LIBS"
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861
13862 /* Override any gcc2 internal prototype to avoid an error.  */
13863 #ifdef __cplusplus
13864 extern "C"
13865 #endif
13866 /* We use char because int might match the return type of a gcc2
13867    builtin and then its argument prototype would still apply.  */
13868 char shl_load ();
13869 int
13870 main ()
13871 {
13872 shl_load ();
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879   (eval $ac_link) 2>conftest.er1
13880   ac_status=$?
13881   grep -v '^ *+' conftest.er1 >conftest.err
13882   rm -f conftest.er1
13883   cat conftest.err >&5
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -z "$ac_c_werror_flag"
13887                          || test ! -s conftest.err'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; } &&
13893          { ac_try='test -s conftest$ac_exeext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   ac_cv_lib_dld_shl_load=yes
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_cv_lib_dld_shl_load=no
13905 fi
13906 rm -f conftest.err conftest.$ac_objext \
13907       conftest$ac_exeext conftest.$ac_ext
13908 LIBS=$ac_check_lib_save_LIBS
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13912 if test $ac_cv_lib_dld_shl_load = yes; then
13913   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13914 else
13915   echo "$as_me:$LINENO: checking for dlopen" >&5
13916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13917 if test "${ac_cv_func_dlopen+set}" = set; then
13918   echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920   cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13928 #define dlopen innocuous_dlopen
13929
13930 /* System header to define __stub macros and hopefully few prototypes,
13931     which can conflict with char dlopen (); below.
13932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13933     <limits.h> exists even on freestanding compilers.  */
13934
13935 #ifdef __STDC__
13936 # include <limits.h>
13937 #else
13938 # include <assert.h>
13939 #endif
13940
13941 #undef dlopen
13942
13943 /* Override any gcc2 internal prototype to avoid an error.  */
13944 #ifdef __cplusplus
13945 extern "C"
13946 {
13947 #endif
13948 /* We use char because int might match the return type of a gcc2
13949    builtin and then its argument prototype would still apply.  */
13950 char dlopen ();
13951 /* The GNU C library defines this for functions which it implements
13952     to always fail with ENOSYS.  Some functions are actually named
13953     something starting with __ and the normal name is an alias.  */
13954 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13955 choke me
13956 #else
13957 char (*f) () = dlopen;
13958 #endif
13959 #ifdef __cplusplus
13960 }
13961 #endif
13962
13963 int
13964 main ()
13965 {
13966 return f != dlopen;
13967   ;
13968   return 0;
13969 }
13970 _ACEOF
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13973   (eval $ac_link) 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -z "$ac_c_werror_flag"
13981                          || test ! -s conftest.err'
13982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983   (eval $ac_try) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; } &&
13987          { ac_try='test -s conftest$ac_exeext'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993   ac_cv_func_dlopen=yes
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_cv_func_dlopen=no
13999 fi
14000 rm -f conftest.err conftest.$ac_objext \
14001       conftest$ac_exeext conftest.$ac_ext
14002 fi
14003 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14004 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14005 if test $ac_cv_func_dlopen = yes; then
14006   lt_cv_dlopen="dlopen"
14007 else
14008   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013   ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-ldl  $LIBS"
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h.  */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h.  */
14021
14022 /* Override any gcc2 internal prototype to avoid an error.  */
14023 #ifdef __cplusplus
14024 extern "C"
14025 #endif
14026 /* We use char because int might match the return type of a gcc2
14027    builtin and then its argument prototype would still apply.  */
14028 char dlopen ();
14029 int
14030 main ()
14031 {
14032 dlopen ();
14033   ;
14034   return 0;
14035 }
14036 _ACEOF
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14039   (eval $ac_link) 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -z "$ac_c_werror_flag"
14047                          || test ! -s conftest.err'
14048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049   (eval $ac_try) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; } &&
14053          { ac_try='test -s conftest$ac_exeext'
14054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055   (eval $ac_try) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; }; then
14059   ac_cv_lib_dl_dlopen=yes
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064 ac_cv_lib_dl_dlopen=no
14065 fi
14066 rm -f conftest.err conftest.$ac_objext \
14067       conftest$ac_exeext conftest.$ac_ext
14068 LIBS=$ac_check_lib_save_LIBS
14069 fi
14070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14072 if test $ac_cv_lib_dl_dlopen = yes; then
14073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14074 else
14075   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   ac_check_lib_save_LIBS=$LIBS
14081 LIBS="-lsvld  $LIBS"
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h.  */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h.  */
14088
14089 /* Override any gcc2 internal prototype to avoid an error.  */
14090 #ifdef __cplusplus
14091 extern "C"
14092 #endif
14093 /* We use char because int might match the return type of a gcc2
14094    builtin and then its argument prototype would still apply.  */
14095 char dlopen ();
14096 int
14097 main ()
14098 {
14099 dlopen ();
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest.$ac_objext conftest$ac_exeext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106   (eval $ac_link) 2>conftest.er1
14107   ac_status=$?
14108   grep -v '^ *+' conftest.er1 >conftest.err
14109   rm -f conftest.er1
14110   cat conftest.err >&5
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); } &&
14113          { ac_try='test -z "$ac_c_werror_flag"
14114                          || test ! -s conftest.err'
14115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116   (eval $ac_try) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; } &&
14120          { ac_try='test -s conftest$ac_exeext'
14121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122   (eval $ac_try) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }; }; then
14126   ac_cv_lib_svld_dlopen=yes
14127 else
14128   echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14130
14131 ac_cv_lib_svld_dlopen=no
14132 fi
14133 rm -f conftest.err conftest.$ac_objext \
14134       conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS
14136 fi
14137 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14138 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14139 if test $ac_cv_lib_svld_dlopen = yes; then
14140   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14141 else
14142   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14145   echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147   ac_check_lib_save_LIBS=$LIBS
14148 LIBS="-ldld  $LIBS"
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155
14156 /* Override any gcc2 internal prototype to avoid an error.  */
14157 #ifdef __cplusplus
14158 extern "C"
14159 #endif
14160 /* We use char because int might match the return type of a gcc2
14161    builtin and then its argument prototype would still apply.  */
14162 char dld_link ();
14163 int
14164 main ()
14165 {
14166 dld_link ();
14167   ;
14168   return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173   (eval $ac_link) 2>conftest.er1
14174   ac_status=$?
14175   grep -v '^ *+' conftest.er1 >conftest.err
14176   rm -f conftest.er1
14177   cat conftest.err >&5
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } &&
14180          { ac_try='test -z "$ac_c_werror_flag"
14181                          || test ! -s conftest.err'
14182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183   (eval $ac_try) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; } &&
14187          { ac_try='test -s conftest$ac_exeext'
14188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189   (eval $ac_try) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; }; then
14193   ac_cv_lib_dld_dld_link=yes
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 ac_cv_lib_dld_dld_link=no
14199 fi
14200 rm -f conftest.err conftest.$ac_objext \
14201       conftest$ac_exeext conftest.$ac_ext
14202 LIBS=$ac_check_lib_save_LIBS
14203 fi
14204 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14205 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14206 if test $ac_cv_lib_dld_dld_link = yes; then
14207   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14208 fi
14209
14210
14211 fi
14212
14213
14214 fi
14215
14216
14217 fi
14218
14219
14220 fi
14221
14222
14223 fi
14224
14225     ;;
14226   esac
14227
14228   if test "x$lt_cv_dlopen" != xno; then
14229     enable_dlopen=yes
14230   else
14231     enable_dlopen=no
14232   fi
14233
14234   case $lt_cv_dlopen in
14235   dlopen)
14236     save_CPPFLAGS="$CPPFLAGS"
14237     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14238
14239     save_LDFLAGS="$LDFLAGS"
14240     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14241
14242     save_LIBS="$LIBS"
14243     LIBS="$lt_cv_dlopen_libs $LIBS"
14244
14245     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14246 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14247 if test "${lt_cv_dlopen_self+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250           if test "$cross_compiling" = yes; then :
14251   lt_cv_dlopen_self=cross
14252 else
14253   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14254   lt_status=$lt_dlunknown
14255   cat > conftest.$ac_ext <<EOF
14256 #line 14256 "configure"
14257 #include "confdefs.h"
14258
14259 #if HAVE_DLFCN_H
14260 #include <dlfcn.h>
14261 #endif
14262
14263 #include <stdio.h>
14264
14265 #ifdef RTLD_GLOBAL
14266 #  define LT_DLGLOBAL           RTLD_GLOBAL
14267 #else
14268 #  ifdef DL_GLOBAL
14269 #    define LT_DLGLOBAL         DL_GLOBAL
14270 #  else
14271 #    define LT_DLGLOBAL         0
14272 #  endif
14273 #endif
14274
14275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14276    find out it does not work in some platform. */
14277 #ifndef LT_DLLAZY_OR_NOW
14278 #  ifdef RTLD_LAZY
14279 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14280 #  else
14281 #    ifdef DL_LAZY
14282 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14283 #    else
14284 #      ifdef RTLD_NOW
14285 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14286 #      else
14287 #        ifdef DL_NOW
14288 #          define LT_DLLAZY_OR_NOW      DL_NOW
14289 #        else
14290 #          define LT_DLLAZY_OR_NOW      0
14291 #        endif
14292 #      endif
14293 #    endif
14294 #  endif
14295 #endif
14296
14297 #ifdef __cplusplus
14298 extern "C" void exit (int);
14299 #endif
14300
14301 void fnord() { int i=42;}
14302 int main ()
14303 {
14304   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14305   int status = $lt_dlunknown;
14306
14307   if (self)
14308     {
14309       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14310       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14311       /* dlclose (self); */
14312     }
14313
14314     exit (status);
14315 }
14316 EOF
14317   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318   (eval $ac_link) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14322     (./conftest; exit; ) 2>/dev/null
14323     lt_status=$?
14324     case x$lt_status in
14325       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14326       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14327       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14328     esac
14329   else :
14330     # compilation failed
14331     lt_cv_dlopen_self=no
14332   fi
14333 fi
14334 rm -fr conftest*
14335
14336
14337 fi
14338 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14339 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14340
14341     if test "x$lt_cv_dlopen_self" = xyes; then
14342       LDFLAGS="$LDFLAGS $link_static_flag"
14343       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14344 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14345 if test "${lt_cv_dlopen_self_static+set}" = set; then
14346   echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348           if test "$cross_compiling" = yes; then :
14349   lt_cv_dlopen_self_static=cross
14350 else
14351   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14352   lt_status=$lt_dlunknown
14353   cat > conftest.$ac_ext <<EOF
14354 #line 14354 "configure"
14355 #include "confdefs.h"
14356
14357 #if HAVE_DLFCN_H
14358 #include <dlfcn.h>
14359 #endif
14360
14361 #include <stdio.h>
14362
14363 #ifdef RTLD_GLOBAL
14364 #  define LT_DLGLOBAL           RTLD_GLOBAL
14365 #else
14366 #  ifdef DL_GLOBAL
14367 #    define LT_DLGLOBAL         DL_GLOBAL
14368 #  else
14369 #    define LT_DLGLOBAL         0
14370 #  endif
14371 #endif
14372
14373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14374    find out it does not work in some platform. */
14375 #ifndef LT_DLLAZY_OR_NOW
14376 #  ifdef RTLD_LAZY
14377 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14378 #  else
14379 #    ifdef DL_LAZY
14380 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14381 #    else
14382 #      ifdef RTLD_NOW
14383 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14384 #      else
14385 #        ifdef DL_NOW
14386 #          define LT_DLLAZY_OR_NOW      DL_NOW
14387 #        else
14388 #          define LT_DLLAZY_OR_NOW      0
14389 #        endif
14390 #      endif
14391 #    endif
14392 #  endif
14393 #endif
14394
14395 #ifdef __cplusplus
14396 extern "C" void exit (int);
14397 #endif
14398
14399 void fnord() { int i=42;}
14400 int main ()
14401 {
14402   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14403   int status = $lt_dlunknown;
14404
14405   if (self)
14406     {
14407       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14408       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14409       /* dlclose (self); */
14410     }
14411
14412     exit (status);
14413 }
14414 EOF
14415   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14416   (eval $ac_link) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14420     (./conftest; exit; ) 2>/dev/null
14421     lt_status=$?
14422     case x$lt_status in
14423       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14424       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14425       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14426     esac
14427   else :
14428     # compilation failed
14429     lt_cv_dlopen_self_static=no
14430   fi
14431 fi
14432 rm -fr conftest*
14433
14434
14435 fi
14436 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14437 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14438     fi
14439
14440     CPPFLAGS="$save_CPPFLAGS"
14441     LDFLAGS="$save_LDFLAGS"
14442     LIBS="$save_LIBS"
14443     ;;
14444   esac
14445
14446   case $lt_cv_dlopen_self in
14447   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14448   *) enable_dlopen_self=unknown ;;
14449   esac
14450
14451   case $lt_cv_dlopen_self_static in
14452   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14453   *) enable_dlopen_self_static=unknown ;;
14454   esac
14455 fi
14456
14457
14458 # Report which librarie types wil actually be built
14459 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14460 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14461 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14462 echo "${ECHO_T}$can_build_shared" >&6
14463
14464 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14465 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14466 test "$can_build_shared" = "no" && enable_shared=no
14467
14468 # On AIX, shared libraries and static libraries use the same namespace, and
14469 # are all built from PIC.
14470 case "$host_os" in
14471 aix3*)
14472   test "$enable_shared" = yes && enable_static=no
14473   if test -n "$RANLIB"; then
14474     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14475     postinstall_cmds='$RANLIB $lib'
14476   fi
14477   ;;
14478
14479 aix4* | aix5*)
14480   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14481     test "$enable_shared" = yes && enable_static=no
14482   fi
14483     ;;
14484 esac
14485 echo "$as_me:$LINENO: result: $enable_shared" >&5
14486 echo "${ECHO_T}$enable_shared" >&6
14487
14488 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14489 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14490 # Make sure either enable_shared or enable_static is yes.
14491 test "$enable_shared" = yes || enable_static=yes
14492 echo "$as_me:$LINENO: result: $enable_static" >&5
14493 echo "${ECHO_T}$enable_static" >&6
14494
14495 # The else clause should only fire when bootstrapping the
14496 # libtool distribution, otherwise you forgot to ship ltmain.sh
14497 # with your package, and you will get complaints that there are
14498 # no rules to generate ltmain.sh.
14499 if test -f "$ltmain"; then
14500   # See if we are running on zsh, and set the options which allow our commands through
14501   # without removal of \ escapes.
14502   if test -n "${ZSH_VERSION+set}" ; then
14503     setopt NO_GLOB_SUBST
14504   fi
14505   # Now quote all the things that may contain metacharacters while being
14506   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14507   # variables and quote the copies for generation of the libtool script.
14508   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14509     SED SHELL STRIP \
14510     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14511     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14512     deplibs_check_method reload_flag reload_cmds need_locks \
14513     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14514     lt_cv_sys_global_symbol_to_c_name_address \
14515     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14516     old_postinstall_cmds old_postuninstall_cmds \
14517     compiler \
14518     CC \
14519     LD \
14520     lt_prog_compiler_wl \
14521     lt_prog_compiler_pic \
14522     lt_prog_compiler_static \
14523     lt_prog_compiler_no_builtin_flag \
14524     export_dynamic_flag_spec \
14525     thread_safe_flag_spec \
14526     whole_archive_flag_spec \
14527     enable_shared_with_static_runtimes \
14528     old_archive_cmds \
14529     old_archive_from_new_cmds \
14530     predep_objects \
14531     postdep_objects \
14532     predeps \
14533     postdeps \
14534     compiler_lib_search_path \
14535     archive_cmds \
14536     archive_expsym_cmds \
14537     postinstall_cmds \
14538     postuninstall_cmds \
14539     old_archive_from_expsyms_cmds \
14540     allow_undefined_flag \
14541     no_undefined_flag \
14542     export_symbols_cmds \
14543     hardcode_libdir_flag_spec \
14544     hardcode_libdir_flag_spec_ld \
14545     hardcode_libdir_separator \
14546     hardcode_automatic \
14547     module_cmds \
14548     module_expsym_cmds \
14549     lt_cv_prog_compiler_c_o \
14550     exclude_expsyms \
14551     include_expsyms; do
14552
14553     case $var in
14554     old_archive_cmds | \
14555     old_archive_from_new_cmds | \
14556     archive_cmds | \
14557     archive_expsym_cmds | \
14558     module_cmds | \
14559     module_expsym_cmds | \
14560     old_archive_from_expsyms_cmds | \
14561     export_symbols_cmds | \
14562     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14563     postinstall_cmds | postuninstall_cmds | \
14564     old_postinstall_cmds | old_postuninstall_cmds | \
14565     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14566       # Double-quote double-evaled strings.
14567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14568       ;;
14569     *)
14570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14571       ;;
14572     esac
14573   done
14574
14575   case $lt_echo in
14576   *'\$0 --fallback-echo"')
14577     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14578     ;;
14579   esac
14580
14581 cfgfile="${ofile}T"
14582   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14583   $rm -f "$cfgfile"
14584   { echo "$as_me:$LINENO: creating $ofile" >&5
14585 echo "$as_me: creating $ofile" >&6;}
14586
14587   cat <<__EOF__ >> "$cfgfile"
14588 #! $SHELL
14589
14590 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14591 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14593 #
14594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14595 # Free Software Foundation, Inc.
14596 #
14597 # This file is part of GNU Libtool:
14598 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14599 #
14600 # This program is free software; you can redistribute it and/or modify
14601 # it under the terms of the GNU General Public License as published by
14602 # the Free Software Foundation; either version 2 of the License, or
14603 # (at your option) any later version.
14604 #
14605 # This program is distributed in the hope that it will be useful, but
14606 # WITHOUT ANY WARRANTY; without even the implied warranty of
14607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14608 # General Public License for more details.
14609 #
14610 # You should have received a copy of the GNU General Public License
14611 # along with this program; if not, write to the Free Software
14612 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14613 #
14614 # As a special exception to the GNU General Public License, if you
14615 # distribute this file as part of a program that contains a
14616 # configuration script generated by Autoconf, you may include it under
14617 # the same distribution terms that you use for the rest of that program.
14618
14619 # A sed program that does not truncate output.
14620 SED=$lt_SED
14621
14622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14623 Xsed="$SED -e s/^X//"
14624
14625 # The HP-UX ksh and POSIX shell print the target directory to stdout
14626 # if CDPATH is set.
14627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14628
14629 # The names of the tagged configurations supported by this script.
14630 available_tags=
14631
14632 # ### BEGIN LIBTOOL CONFIG
14633
14634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14635
14636 # Shell to use when invoking shell scripts.
14637 SHELL=$lt_SHELL
14638
14639 # Whether or not to build shared libraries.
14640 build_libtool_libs=$enable_shared
14641
14642 # Whether or not to build static libraries.
14643 build_old_libs=$enable_static
14644
14645 # Whether or not to add -lc for building shared libraries.
14646 build_libtool_need_lc=$archive_cmds_need_lc
14647
14648 # Whether or not to disallow shared libs when runtime libs are static
14649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14650
14651 # Whether or not to optimize for fast installation.
14652 fast_install=$enable_fast_install
14653
14654 # The host system.
14655 host_alias=$host_alias
14656 host=$host
14657
14658 # An echo program that does not interpret backslashes.
14659 echo=$lt_echo
14660
14661 # The archiver.
14662 AR=$lt_AR
14663 AR_FLAGS=$lt_AR_FLAGS
14664
14665 # A C compiler.
14666 LTCC=$lt_LTCC
14667
14668 # A language-specific compiler.
14669 CC=$lt_compiler
14670
14671 # Is the compiler the GNU C compiler?
14672 with_gcc=$GCC
14673
14674 # An ERE matcher.
14675 EGREP=$lt_EGREP
14676
14677 # The linker used to build libraries.
14678 LD=$lt_LD
14679
14680 # Whether we need hard or soft links.
14681 LN_S=$lt_LN_S
14682
14683 # A BSD-compatible nm program.
14684 NM=$lt_NM
14685
14686 # A symbol stripping program
14687 STRIP=$lt_STRIP
14688
14689 # Used to examine libraries when file_magic_cmd begins "file"
14690 MAGIC_CMD=$MAGIC_CMD
14691
14692 # Used on cygwin: DLL creation program.
14693 DLLTOOL="$DLLTOOL"
14694
14695 # Used on cygwin: object dumper.
14696 OBJDUMP="$OBJDUMP"
14697
14698 # Used on cygwin: assembler.
14699 AS="$AS"
14700
14701 # The name of the directory that contains temporary libtool files.
14702 objdir=$objdir
14703
14704 # How to create reloadable object files.
14705 reload_flag=$lt_reload_flag
14706 reload_cmds=$lt_reload_cmds
14707
14708 # How to pass a linker flag through the compiler.
14709 wl=$lt_lt_prog_compiler_wl
14710
14711 # Object file suffix (normally "o").
14712 objext="$ac_objext"
14713
14714 # Old archive suffix (normally "a").
14715 libext="$libext"
14716
14717 # Shared library suffix (normally ".so").
14718 shrext_cmds='$shrext_cmds'
14719
14720 # Executable file suffix (normally "").
14721 exeext="$exeext"
14722
14723 # Additional compiler flags for building library objects.
14724 pic_flag=$lt_lt_prog_compiler_pic
14725 pic_mode=$pic_mode
14726
14727 # What is the maximum length of a command?
14728 max_cmd_len=$lt_cv_sys_max_cmd_len
14729
14730 # Does compiler simultaneously support -c and -o options?
14731 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14732
14733 # Must we lock files when doing compilation ?
14734 need_locks=$lt_need_locks
14735
14736 # Do we need the lib prefix for modules?
14737 need_lib_prefix=$need_lib_prefix
14738
14739 # Do we need a version for libraries?
14740 need_version=$need_version
14741
14742 # Whether dlopen is supported.
14743 dlopen_support=$enable_dlopen
14744
14745 # Whether dlopen of programs is supported.
14746 dlopen_self=$enable_dlopen_self
14747
14748 # Whether dlopen of statically linked programs is supported.
14749 dlopen_self_static=$enable_dlopen_self_static
14750
14751 # Compiler flag to prevent dynamic linking.
14752 link_static_flag=$lt_lt_prog_compiler_static
14753
14754 # Compiler flag to turn off builtin functions.
14755 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14756
14757 # Compiler flag to allow reflexive dlopens.
14758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14759
14760 # Compiler flag to generate shared objects directly from archives.
14761 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14762
14763 # Compiler flag to generate thread-safe objects.
14764 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14765
14766 # Library versioning type.
14767 version_type=$version_type
14768
14769 # Format of library name prefix.
14770 libname_spec=$lt_libname_spec
14771
14772 # List of archive names.  First name is the real one, the rest are links.
14773 # The last name is the one that the linker finds with -lNAME.
14774 library_names_spec=$lt_library_names_spec
14775
14776 # The coded name of the library, if different from the real name.
14777 soname_spec=$lt_soname_spec
14778
14779 # Commands used to build and install an old-style archive.
14780 RANLIB=$lt_RANLIB
14781 old_archive_cmds=$lt_old_archive_cmds
14782 old_postinstall_cmds=$lt_old_postinstall_cmds
14783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14784
14785 # Create an old-style archive from a shared archive.
14786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14787
14788 # Create a temporary old-style archive to link instead of a shared archive.
14789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14790
14791 # Commands used to build and install a shared archive.
14792 archive_cmds=$lt_archive_cmds
14793 archive_expsym_cmds=$lt_archive_expsym_cmds
14794 postinstall_cmds=$lt_postinstall_cmds
14795 postuninstall_cmds=$lt_postuninstall_cmds
14796
14797 # Commands used to build a loadable module (assumed same as above if empty)
14798 module_cmds=$lt_module_cmds
14799 module_expsym_cmds=$lt_module_expsym_cmds
14800
14801 # Commands to strip libraries.
14802 old_striplib=$lt_old_striplib
14803 striplib=$lt_striplib
14804
14805 # Dependencies to place before the objects being linked to create a
14806 # shared library.
14807 predep_objects=$lt_predep_objects
14808
14809 # Dependencies to place after the objects being linked to create a
14810 # shared library.
14811 postdep_objects=$lt_postdep_objects
14812
14813 # Dependencies to place before the objects being linked to create a
14814 # shared library.
14815 predeps=$lt_predeps
14816
14817 # Dependencies to place after the objects being linked to create a
14818 # shared library.
14819 postdeps=$lt_postdeps
14820
14821 # The library search path used internally by the compiler when linking
14822 # a shared library.
14823 compiler_lib_search_path=$lt_compiler_lib_search_path
14824
14825 # Method to check whether dependent libraries are shared objects.
14826 deplibs_check_method=$lt_deplibs_check_method
14827
14828 # Command to use when deplibs_check_method == file_magic.
14829 file_magic_cmd=$lt_file_magic_cmd
14830
14831 # Flag that allows shared libraries with undefined symbols to be built.
14832 allow_undefined_flag=$lt_allow_undefined_flag
14833
14834 # Flag that forces no undefined symbols.
14835 no_undefined_flag=$lt_no_undefined_flag
14836
14837 # Commands used to finish a libtool library installation in a directory.
14838 finish_cmds=$lt_finish_cmds
14839
14840 # Same as above, but a single script fragment to be evaled but not shown.
14841 finish_eval=$lt_finish_eval
14842
14843 # Take the output of nm and produce a listing of raw symbols and C names.
14844 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14845
14846 # Transform the output of nm in a proper C declaration
14847 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14848
14849 # Transform the output of nm in a C name address pair
14850 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14851
14852 # This is the shared library runtime path variable.
14853 runpath_var=$runpath_var
14854
14855 # This is the shared library path variable.
14856 shlibpath_var=$shlibpath_var
14857
14858 # Is shlibpath searched before the hard-coded library search path?
14859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14860
14861 # How to hardcode a shared library path into an executable.
14862 hardcode_action=$hardcode_action
14863
14864 # Whether we should hardcode library paths into libraries.
14865 hardcode_into_libs=$hardcode_into_libs
14866
14867 # Flag to hardcode \$libdir into a binary during linking.
14868 # This must work even if \$libdir does not exist.
14869 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14870
14871 # If ld is used when linking, flag to hardcode \$libdir into
14872 # a binary during linking. This must work even if \$libdir does
14873 # not exist.
14874 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14875
14876 # Whether we need a single -rpath flag with a separated argument.
14877 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14878
14879 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14880 # resulting binary.
14881 hardcode_direct=$hardcode_direct
14882
14883 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14884 # resulting binary.
14885 hardcode_minus_L=$hardcode_minus_L
14886
14887 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14888 # the resulting binary.
14889 hardcode_shlibpath_var=$hardcode_shlibpath_var
14890
14891 # Set to yes if building a shared library automatically hardcodes DIR into the library
14892 # and all subsequent libraries and executables linked against it.
14893 hardcode_automatic=$hardcode_automatic
14894
14895 # Variables whose values should be saved in libtool wrapper scripts and
14896 # restored at relink time.
14897 variables_saved_for_relink="$variables_saved_for_relink"
14898
14899 # Whether libtool must link a program against all its dependency libraries.
14900 link_all_deplibs=$link_all_deplibs
14901
14902 # Compile-time system search path for libraries
14903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14904
14905 # Run-time system search path for libraries
14906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14907
14908 # Fix the shell variable \$srcfile for the compiler.
14909 fix_srcfile_path="$fix_srcfile_path"
14910
14911 # Set to yes if exported symbols are required.
14912 always_export_symbols=$always_export_symbols
14913
14914 # The commands to list exported symbols.
14915 export_symbols_cmds=$lt_export_symbols_cmds
14916
14917 # The commands to extract the exported symbol list from a shared archive.
14918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14919
14920 # Symbols that should not be listed in the preloaded symbols.
14921 exclude_expsyms=$lt_exclude_expsyms
14922
14923 # Symbols that must always be exported.
14924 include_expsyms=$lt_include_expsyms
14925
14926 # ### END LIBTOOL CONFIG
14927
14928 __EOF__
14929
14930
14931   case $host_os in
14932   aix3*)
14933     cat <<\EOF >> "$cfgfile"
14934
14935 # AIX sometimes has problems with the GCC collect2 program.  For some
14936 # reason, if we set the COLLECT_NAMES environment variable, the problems
14937 # vanish in a puff of smoke.
14938 if test "X${COLLECT_NAMES+set}" != Xset; then
14939   COLLECT_NAMES=
14940   export COLLECT_NAMES
14941 fi
14942 EOF
14943     ;;
14944   esac
14945
14946   # We use sed instead of cat because bash on DJGPP gets confused if
14947   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14948   # text mode, it properly converts lines to CR/LF.  This bash problem
14949   # is reportedly fixed, but why not run on old versions too?
14950   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14951
14952   mv -f "$cfgfile" "$ofile" || \
14953     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14954   chmod +x "$ofile"
14955
14956 else
14957   # If there is no Makefile yet, we rely on a make rule to execute
14958   # `config.status --recheck' to rerun these tests and create the
14959   # libtool script then.
14960   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14961   if test -f "$ltmain_in"; then
14962     test -f Makefile && make "$ltmain"
14963   fi
14964 fi
14965
14966
14967 ac_ext=c
14968 ac_cpp='$CPP $CPPFLAGS'
14969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14972
14973 CC="$lt_save_CC"
14974
14975
14976 # Check whether --with-tags or --without-tags was given.
14977 if test "${with_tags+set}" = set; then
14978   withval="$with_tags"
14979   tagnames="$withval"
14980 fi;
14981
14982 if test -f "$ltmain" && test -n "$tagnames"; then
14983   if test ! -f "${ofile}"; then
14984     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14985 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14986   fi
14987
14988   if test -z "$LTCC"; then
14989     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14990     if test -z "$LTCC"; then
14991       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14992 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14993     else
14994       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14995 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14996     fi
14997   fi
14998
14999   # Extract list of available tagged configurations in $ofile.
15000   # Note that this assumes the entire list is on one line.
15001   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15002
15003   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15004   for tagname in $tagnames; do
15005     IFS="$lt_save_ifs"
15006     # Check whether tagname contains only valid characters
15007     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15008     "") ;;
15009     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15010 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15011    { (exit 1); exit 1; }; }
15012         ;;
15013     esac
15014
15015     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15016     then
15017       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15018 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15019    { (exit 1); exit 1; }; }
15020     fi
15021
15022     # Update the list of available tags.
15023     if test -n "$tagname"; then
15024       echo appending configuration tag "$tagname" to $ofile
15025
15026       case $tagname in
15027       CXX)
15028         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15029             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15030             (test "X$CXX" != "Xg++"))) ; then
15031           ac_ext=cc
15032 ac_cpp='$CXXCPP $CPPFLAGS'
15033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15036
15037
15038
15039
15040 archive_cmds_need_lc_CXX=no
15041 allow_undefined_flag_CXX=
15042 always_export_symbols_CXX=no
15043 archive_expsym_cmds_CXX=
15044 export_dynamic_flag_spec_CXX=
15045 hardcode_direct_CXX=no
15046 hardcode_libdir_flag_spec_CXX=
15047 hardcode_libdir_flag_spec_ld_CXX=
15048 hardcode_libdir_separator_CXX=
15049 hardcode_minus_L_CXX=no
15050 hardcode_automatic_CXX=no
15051 module_cmds_CXX=
15052 module_expsym_cmds_CXX=
15053 link_all_deplibs_CXX=unknown
15054 old_archive_cmds_CXX=$old_archive_cmds
15055 no_undefined_flag_CXX=
15056 whole_archive_flag_spec_CXX=
15057 enable_shared_with_static_runtimes_CXX=no
15058
15059 # Dependencies to place before and after the object being linked:
15060 predep_objects_CXX=
15061 postdep_objects_CXX=
15062 predeps_CXX=
15063 postdeps_CXX=
15064 compiler_lib_search_path_CXX=
15065
15066 # Source file extension for C++ test sources.
15067 ac_ext=cc
15068
15069 # Object file extension for compiled C++ test sources.
15070 objext=o
15071 objext_CXX=$objext
15072
15073 # Code to be used in simple compile tests
15074 lt_simple_compile_test_code="int some_variable = 0;\n"
15075
15076 # Code to be used in simple link tests
15077 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15078
15079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15080
15081 # If no C compiler was specified, use CC.
15082 LTCC=${LTCC-"$CC"}
15083
15084 # Allow CC to be a program name with arguments.
15085 compiler=$CC
15086
15087
15088 # Allow CC to be a program name with arguments.
15089 lt_save_CC=$CC
15090 lt_save_LD=$LD
15091 lt_save_GCC=$GCC
15092 GCC=$GXX
15093 lt_save_with_gnu_ld=$with_gnu_ld
15094 lt_save_path_LD=$lt_cv_path_LD
15095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15096   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15097 else
15098   unset lt_cv_prog_gnu_ld
15099 fi
15100 if test -n "${lt_cv_path_LDCXX+set}"; then
15101   lt_cv_path_LD=$lt_cv_path_LDCXX
15102 else
15103   unset lt_cv_path_LD
15104 fi
15105 test -z "${LDCXX+set}" || LD=$LDCXX
15106 CC=${CXX-"c++"}
15107 compiler=$CC
15108 compiler_CXX=$CC
15109 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15110
15111 # We don't want -fno-exception wen compiling C++ code, so set the
15112 # no_builtin_flag separately
15113 if test "$GXX" = yes; then
15114   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15115 else
15116   lt_prog_compiler_no_builtin_flag_CXX=
15117 fi
15118
15119 if test "$GXX" = yes; then
15120   # Set up default GNU C++ configuration
15121
15122
15123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15124 if test "${with_gnu_ld+set}" = set; then
15125   withval="$with_gnu_ld"
15126   test "$withval" = no || with_gnu_ld=yes
15127 else
15128   with_gnu_ld=no
15129 fi;
15130 ac_prog=ld
15131 if test "$GCC" = yes; then
15132   # Check if gcc -print-prog-name=ld gives a path.
15133   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15135   case $host in
15136   *-*-mingw*)
15137     # gcc leaves a trailing carriage return which upsets mingw
15138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15139   *)
15140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15141   esac
15142   case $ac_prog in
15143     # Accept absolute paths.
15144     [\\/]* | ?:[\\/]*)
15145       re_direlt='/[^/][^/]*/\.\./'
15146       # Canonicalize the pathname of ld
15147       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15149         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15150       done
15151       test -z "$LD" && LD="$ac_prog"
15152       ;;
15153   "")
15154     # If it fails, then pretend we aren't using GCC.
15155     ac_prog=ld
15156     ;;
15157   *)
15158     # If it is relative, then search for the first ld in PATH.
15159     with_gnu_ld=unknown
15160     ;;
15161   esac
15162 elif test "$with_gnu_ld" = yes; then
15163   echo "$as_me:$LINENO: checking for GNU ld" >&5
15164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15165 else
15166   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15168 fi
15169 if test "${lt_cv_path_LD+set}" = set; then
15170   echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172   if test -z "$LD"; then
15173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15174   for ac_dir in $PATH; do
15175     IFS="$lt_save_ifs"
15176     test -z "$ac_dir" && ac_dir=.
15177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15178       lt_cv_path_LD="$ac_dir/$ac_prog"
15179       # Check to see if the program is GNU ld.  I'd rather use --version,
15180       # but apparently some GNU ld's only accept -v.
15181       # Break only if it was the GNU/non-GNU ld that we prefer.
15182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15183       *GNU* | *'with BFD'*)
15184         test "$with_gnu_ld" != no && break
15185         ;;
15186       *)
15187         test "$with_gnu_ld" != yes && break
15188         ;;
15189       esac
15190     fi
15191   done
15192   IFS="$lt_save_ifs"
15193 else
15194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15195 fi
15196 fi
15197
15198 LD="$lt_cv_path_LD"
15199 if test -n "$LD"; then
15200   echo "$as_me:$LINENO: result: $LD" >&5
15201 echo "${ECHO_T}$LD" >&6
15202 else
15203   echo "$as_me:$LINENO: result: no" >&5
15204 echo "${ECHO_T}no" >&6
15205 fi
15206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15208    { (exit 1); exit 1; }; }
15209 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15212   echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15215 case `$LD -v 2>&1 </dev/null` in
15216 *GNU* | *'with BFD'*)
15217   lt_cv_prog_gnu_ld=yes
15218   ;;
15219 *)
15220   lt_cv_prog_gnu_ld=no
15221   ;;
15222 esac
15223 fi
15224 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15226 with_gnu_ld=$lt_cv_prog_gnu_ld
15227
15228
15229
15230   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15231   # archiving commands below assume that GNU ld is being used.
15232   if test "$with_gnu_ld" = yes; then
15233     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234     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'
15235
15236     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15237     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15238
15239     # If archive_cmds runs LD, not CC, wlarc should be empty
15240     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15241     #     investigate it a little bit more. (MM)
15242     wlarc='${wl}'
15243
15244     # ancient GNU ld didn't support --whole-archive et. al.
15245     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15246         grep 'no-whole-archive' > /dev/null; then
15247       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15248     else
15249       whole_archive_flag_spec_CXX=
15250     fi
15251   else
15252     with_gnu_ld=no
15253     wlarc=
15254
15255     # A generic and very simple default shared library creation
15256     # command for GNU C++ for the case where it uses the native
15257     # linker, instead of GNU ld.  If possible, this setting should
15258     # overridden to take advantage of the native linker features on
15259     # the platform it is being used on.
15260     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15261   fi
15262
15263   # Commands to make compiler produce verbose output that lists
15264   # what "hidden" libraries, object files and flags are used when
15265   # linking a shared library.
15266   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15267
15268 else
15269   GXX=no
15270   with_gnu_ld=no
15271   wlarc=
15272 fi
15273
15274 # PORTME: fill in a description of your system's C++ link characteristics
15275 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15277 ld_shlibs_CXX=yes
15278 case $host_os in
15279   aix3*)
15280     # FIXME: insert proper C++ library support
15281     ld_shlibs_CXX=no
15282     ;;
15283   aix4* | aix5*)
15284     if test "$host_cpu" = ia64; then
15285       # On IA64, the linker does run time linking by default, so we don't
15286       # have to do anything special.
15287       aix_use_runtimelinking=no
15288       exp_sym_flag='-Bexport'
15289       no_entry_flag=""
15290     else
15291       aix_use_runtimelinking=no
15292
15293       # Test if we are trying to use run time linking or normal
15294       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15295       # need to do runtime linking.
15296       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15297         for ld_flag in $LDFLAGS; do
15298           case $ld_flag in
15299           *-brtl*)
15300             aix_use_runtimelinking=yes
15301             break
15302             ;;
15303           esac
15304         done
15305       esac
15306
15307       exp_sym_flag='-bexport'
15308       no_entry_flag='-bnoentry'
15309     fi
15310
15311     # When large executables or shared objects are built, AIX ld can
15312     # have problems creating the table of contents.  If linking a library
15313     # or program results in "error TOC overflow" add -mminimal-toc to
15314     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15315     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15316
15317     archive_cmds_CXX=''
15318     hardcode_direct_CXX=yes
15319     hardcode_libdir_separator_CXX=':'
15320     link_all_deplibs_CXX=yes
15321
15322     if test "$GXX" = yes; then
15323       case $host_os in aix4.012|aix4.012.*)
15324       # We only want to do this on AIX 4.2 and lower, the check
15325       # below for broken collect2 doesn't work under 4.3+
15326         collect2name=`${CC} -print-prog-name=collect2`
15327         if test -f "$collect2name" && \
15328            strings "$collect2name" | grep resolve_lib_name >/dev/null
15329         then
15330           # We have reworked collect2
15331           hardcode_direct_CXX=yes
15332         else
15333           # We have old collect2
15334           hardcode_direct_CXX=unsupported
15335           # It fails to find uninstalled libraries when the uninstalled
15336           # path is not listed in the libpath.  Setting hardcode_minus_L
15337           # to unsupported forces relinking
15338           hardcode_minus_L_CXX=yes
15339           hardcode_libdir_flag_spec_CXX='-L$libdir'
15340           hardcode_libdir_separator_CXX=
15341         fi
15342       esac
15343       shared_flag='-shared'
15344     else
15345       # not using gcc
15346       if test "$host_cpu" = ia64; then
15347         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15348         # chokes on -Wl,-G. The following line is correct:
15349         shared_flag='-G'
15350       else
15351         if test "$aix_use_runtimelinking" = yes; then
15352           shared_flag='${wl}-G'
15353         else
15354           shared_flag='${wl}-bM:SRE'
15355         fi
15356       fi
15357     fi
15358
15359     # It seems that -bexpall does not export symbols beginning with
15360     # underscore (_), so it is better to generate a list of symbols to export.
15361     always_export_symbols_CXX=yes
15362     if test "$aix_use_runtimelinking" = yes; then
15363       # Warning - without using the other runtime loading flags (-brtl),
15364       # -berok will link without error, but may produce a broken library.
15365       allow_undefined_flag_CXX='-berok'
15366       # Determine the default libpath from the value encoded in an empty executable.
15367       cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h.  */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h.  */
15373
15374 int
15375 main ()
15376 {
15377
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384   (eval $ac_link) 2>conftest.er1
15385   ac_status=$?
15386   grep -v '^ *+' conftest.er1 >conftest.err
15387   rm -f conftest.er1
15388   cat conftest.err >&5
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); } &&
15391          { ac_try='test -z "$ac_cxx_werror_flag"
15392                          || test ! -s conftest.err'
15393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394   (eval $ac_try) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; } &&
15398          { ac_try='test -s conftest$ac_exeext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404
15405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15406 }'`
15407 # Check for a 64-bit object if we didn't find anything.
15408 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; }
15409 }'`; fi
15410 else
15411   echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 fi
15415 rm -f conftest.err conftest.$ac_objext \
15416       conftest$ac_exeext conftest.$ac_ext
15417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15418
15419       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15420
15421       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"
15422      else
15423       if test "$host_cpu" = ia64; then
15424         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15425         allow_undefined_flag_CXX="-z nodefs"
15426         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"
15427       else
15428         # Determine the default libpath from the value encoded in an empty executable.
15429         cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435
15436 int
15437 main ()
15438 {
15439
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext conftest$ac_exeext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15446   (eval $ac_link) 2>conftest.er1
15447   ac_status=$?
15448   grep -v '^ *+' conftest.er1 >conftest.err
15449   rm -f conftest.er1
15450   cat conftest.err >&5
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); } &&
15453          { ac_try='test -z "$ac_cxx_werror_flag"
15454                          || test ! -s conftest.err'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; } &&
15460          { ac_try='test -s conftest$ac_exeext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466
15467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15468 }'`
15469 # Check for a 64-bit object if we didn't find anything.
15470 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; }
15471 }'`; fi
15472 else
15473   echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476 fi
15477 rm -f conftest.err conftest.$ac_objext \
15478       conftest$ac_exeext conftest.$ac_ext
15479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15480
15481         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15482         # Warning - without using the other run time loading flags,
15483         # -berok will link without error, but may produce a broken library.
15484         no_undefined_flag_CXX=' ${wl}-bernotok'
15485         allow_undefined_flag_CXX=' ${wl}-berok'
15486         # -bexpall does not export symbols beginning with underscore (_)
15487         always_export_symbols_CXX=yes
15488         # Exported symbols can be pulled into shared objects from archives
15489         whole_archive_flag_spec_CXX=' '
15490         archive_cmds_need_lc_CXX=yes
15491         # This is similar to how AIX traditionally builds it's shared libraries.
15492         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'
15493       fi
15494     fi
15495     ;;
15496   chorus*)
15497     case $cc_basename in
15498       *)
15499         # FIXME: insert proper C++ library support
15500         ld_shlibs_CXX=no
15501         ;;
15502     esac
15503     ;;
15504
15505
15506   cygwin* | mingw* | pw32*)
15507     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15508     # as there is no search path for DLLs.
15509     hardcode_libdir_flag_spec_CXX='-L$libdir'
15510     allow_undefined_flag_CXX=unsupported
15511     always_export_symbols_CXX=no
15512     enable_shared_with_static_runtimes_CXX=yes
15513
15514     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15515       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'
15516       # If the export-symbols file already is a .def file (1st line
15517       # is EXPORTS), use it as is; otherwise, prepend...
15518       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15519         cp $export_symbols $output_objdir/$soname.def;
15520       else
15521         echo EXPORTS > $output_objdir/$soname.def;
15522         cat $export_symbols >> $output_objdir/$soname.def;
15523       fi~
15524       $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'
15525     else
15526       ld_shlibs_CXX=no
15527     fi
15528   ;;
15529       darwin* | rhapsody*)
15530         case "$host_os" in
15531         rhapsody* | darwin1.[012])
15532          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15533          ;;
15534        *) # Darwin 1.3 on
15535          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15536            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15537          else
15538            case ${MACOSX_DEPLOYMENT_TARGET} in
15539              10.[012])
15540                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15541                ;;
15542              10.*)
15543                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15544                ;;
15545            esac
15546          fi
15547          ;;
15548         esac
15549       archive_cmds_need_lc_CXX=no
15550       hardcode_direct_CXX=no
15551       hardcode_automatic_CXX=yes
15552       hardcode_shlibpath_var_CXX=unsupported
15553       whole_archive_flag_spec_CXX=''
15554       link_all_deplibs_CXX=yes
15555
15556     if test "$GXX" = yes ; then
15557       lt_int_apple_cc_single_mod=no
15558       output_verbose_link_cmd='echo'
15559       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15560        lt_int_apple_cc_single_mod=yes
15561       fi
15562       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15563        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15564       else
15565           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'
15566         fi
15567         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15568         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15569           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15570             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}'
15571           else
15572             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}'
15573           fi
15574             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}'
15575       else
15576       case "$cc_basename" in
15577         xlc*)
15578          output_verbose_link_cmd='echo'
15579           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'
15580           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15581           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15582           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}'
15583           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}'
15584           ;;
15585        *)
15586          ld_shlibs_CXX=no
15587           ;;
15588       esac
15589       fi
15590         ;;
15591
15592   dgux*)
15593     case $cc_basename in
15594       ec++)
15595         # FIXME: insert proper C++ library support
15596         ld_shlibs_CXX=no
15597         ;;
15598       ghcx)
15599         # Green Hills C++ Compiler
15600         # FIXME: insert proper C++ library support
15601         ld_shlibs_CXX=no
15602         ;;
15603       *)
15604         # FIXME: insert proper C++ library support
15605         ld_shlibs_CXX=no
15606         ;;
15607     esac
15608     ;;
15609   freebsd12*)
15610     # C++ shared libraries reported to be fairly broken before switch to ELF
15611     ld_shlibs_CXX=no
15612     ;;
15613   freebsd-elf*)
15614     archive_cmds_need_lc_CXX=no
15615     ;;
15616   freebsd* | kfreebsd*-gnu)
15617     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15618     # conventions
15619     ld_shlibs_CXX=yes
15620     ;;
15621   gnu*)
15622     ;;
15623   hpux9*)
15624     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15625     hardcode_libdir_separator_CXX=:
15626     export_dynamic_flag_spec_CXX='${wl}-E'
15627     hardcode_direct_CXX=yes
15628     hardcode_minus_L_CXX=yes # Not in the search PATH,
15629                                 # but as the default
15630                                 # location of the library.
15631
15632     case $cc_basename in
15633     CC)
15634       # FIXME: insert proper C++ library support
15635       ld_shlibs_CXX=no
15636       ;;
15637     aCC)
15638       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'
15639       # Commands to make compiler produce verbose output that lists
15640       # what "hidden" libraries, object files and flags are used when
15641       # linking a shared library.
15642       #
15643       # There doesn't appear to be a way to prevent this compiler from
15644       # explicitly linking system object files so we need to strip them
15645       # from the output so that they don't get included in the library
15646       # dependencies.
15647       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'
15648       ;;
15649     *)
15650       if test "$GXX" = yes; then
15651         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'
15652       else
15653         # FIXME: insert proper C++ library support
15654         ld_shlibs_CXX=no
15655       fi
15656       ;;
15657     esac
15658     ;;
15659   hpux10*|hpux11*)
15660     if test $with_gnu_ld = no; then
15661       case "$host_cpu" in
15662       hppa*64*)
15663         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15664         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15665         hardcode_libdir_separator_CXX=:
15666         ;;
15667       ia64*)
15668         hardcode_libdir_flag_spec_CXX='-L$libdir'
15669         ;;
15670       *)
15671         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15672         hardcode_libdir_separator_CXX=:
15673         export_dynamic_flag_spec_CXX='${wl}-E'
15674         ;;
15675       esac
15676     fi
15677     case "$host_cpu" in
15678     hppa*64*)
15679       hardcode_direct_CXX=no
15680       hardcode_shlibpath_var_CXX=no
15681       ;;
15682     ia64*)
15683       hardcode_direct_CXX=no
15684       hardcode_shlibpath_var_CXX=no
15685       hardcode_minus_L_CXX=yes # Not in the search PATH,
15686                                               # but as the default
15687                                               # location of the library.
15688       ;;
15689     *)
15690       hardcode_direct_CXX=yes
15691       hardcode_minus_L_CXX=yes # Not in the search PATH,
15692                                               # but as the default
15693                                               # location of the library.
15694       ;;
15695     esac
15696
15697     case $cc_basename in
15698       CC)
15699         # FIXME: insert proper C++ library support
15700         ld_shlibs_CXX=no
15701         ;;
15702       aCC)
15703         case "$host_cpu" in
15704         hppa*64*|ia64*)
15705           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15706           ;;
15707         *)
15708           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15709           ;;
15710         esac
15711         # Commands to make compiler produce verbose output that lists
15712         # what "hidden" libraries, object files and flags are used when
15713         # linking a shared library.
15714         #
15715         # There doesn't appear to be a way to prevent this compiler from
15716         # explicitly linking system object files so we need to strip them
15717         # from the output so that they don't get included in the library
15718         # dependencies.
15719         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'
15720         ;;
15721       *)
15722         if test "$GXX" = yes; then
15723           if test $with_gnu_ld = no; then
15724             case "$host_cpu" in
15725             ia64*|hppa*64*)
15726               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15727               ;;
15728             *)
15729               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'
15730               ;;
15731             esac
15732           fi
15733         else
15734           # FIXME: insert proper C++ library support
15735           ld_shlibs_CXX=no
15736         fi
15737         ;;
15738     esac
15739     ;;
15740   irix5* | irix6*)
15741     case $cc_basename in
15742       CC)
15743         # SGI C++
15744         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'
15745
15746         # Archives containing C++ object files must be created using
15747         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15748         # necessary to make sure instantiated templates are included
15749         # in the archive.
15750         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15751         ;;
15752       *)
15753         if test "$GXX" = yes; then
15754           if test "$with_gnu_ld" = no; then
15755             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'
15756           else
15757             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'
15758           fi
15759         fi
15760         link_all_deplibs_CXX=yes
15761         ;;
15762     esac
15763     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15764     hardcode_libdir_separator_CXX=:
15765     ;;
15766   linux*)
15767     case $cc_basename in
15768       KCC)
15769         # Kuck and Associates, Inc. (KAI) C++ Compiler
15770
15771         # KCC will only create a shared library if the output file
15772         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15773         # to its proper name (with version) after linking.
15774         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'
15775         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'
15776         # Commands to make compiler produce verbose output that lists
15777         # what "hidden" libraries, object files and flags are used when
15778         # linking a shared library.
15779         #
15780         # There doesn't appear to be a way to prevent this compiler from
15781         # explicitly linking system object files so we need to strip them
15782         # from the output so that they don't get included in the library
15783         # dependencies.
15784         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'
15785
15786         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15787         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15788
15789         # Archives containing C++ object files must be created using
15790         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15791         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15792         ;;
15793       icpc)
15794         # Intel C++
15795         with_gnu_ld=yes
15796         # version 8.0 and above of icpc choke on multiply defined symbols
15797         # if we add $predep_objects and $postdep_objects, however 7.1 and
15798         # earlier do not add the objects themselves.
15799         case `$CC -V 2>&1` in
15800         *"Version 7."*)
15801           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802           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'
15803           ;;
15804         *)  # Version 8.0 or newer
15805           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15807           ;;
15808         esac
15809         archive_cmds_need_lc_CXX=no
15810         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15811         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15812         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15813         ;;
15814       cxx)
15815         # Compaq C++
15816         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15817         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'
15818
15819         runpath_var=LD_RUN_PATH
15820         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15821         hardcode_libdir_separator_CXX=:
15822
15823         # Commands to make compiler produce verbose output that lists
15824         # what "hidden" libraries, object files and flags are used when
15825         # linking a shared library.
15826         #
15827         # There doesn't appear to be a way to prevent this compiler from
15828         # explicitly linking system object files so we need to strip them
15829         # from the output so that they don't get included in the library
15830         # dependencies.
15831         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'
15832         ;;
15833     esac
15834     ;;
15835   lynxos*)
15836     # FIXME: insert proper C++ library support
15837     ld_shlibs_CXX=no
15838     ;;
15839   m88k*)
15840     # FIXME: insert proper C++ library support
15841     ld_shlibs_CXX=no
15842     ;;
15843   mvs*)
15844     case $cc_basename in
15845       cxx)
15846         # FIXME: insert proper C++ library support
15847         ld_shlibs_CXX=no
15848         ;;
15849       *)
15850         # FIXME: insert proper C++ library support
15851         ld_shlibs_CXX=no
15852         ;;
15853     esac
15854     ;;
15855   netbsd*)
15856     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15857       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15858       wlarc=
15859       hardcode_libdir_flag_spec_CXX='-R$libdir'
15860       hardcode_direct_CXX=yes
15861       hardcode_shlibpath_var_CXX=no
15862     fi
15863     # Workaround some broken pre-1.5 toolchains
15864     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15865     ;;
15866   openbsd2*)
15867     # C++ shared libraries are fairly broken
15868     ld_shlibs_CXX=no
15869     ;;
15870   openbsd*)
15871     hardcode_direct_CXX=yes
15872     hardcode_shlibpath_var_CXX=no
15873     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15874     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15875     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15876       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15877       export_dynamic_flag_spec_CXX='${wl}-E'
15878       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15879     fi
15880     output_verbose_link_cmd='echo'
15881     ;;
15882   osf3*)
15883     case $cc_basename in
15884       KCC)
15885         # Kuck and Associates, Inc. (KAI) C++ Compiler
15886
15887         # KCC will only create a shared library if the output file
15888         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15889         # to its proper name (with version) after linking.
15890         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'
15891
15892         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15893         hardcode_libdir_separator_CXX=:
15894
15895         # Archives containing C++ object files must be created using
15896         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15897         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15898
15899         ;;
15900       RCC)
15901         # Rational C++ 2.4.1
15902         # FIXME: insert proper C++ library support
15903         ld_shlibs_CXX=no
15904         ;;
15905       cxx)
15906         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15907         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'
15908
15909         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15910         hardcode_libdir_separator_CXX=:
15911
15912         # Commands to make compiler produce verbose output that lists
15913         # what "hidden" libraries, object files and flags are used when
15914         # linking a shared library.
15915         #
15916         # There doesn't appear to be a way to prevent this compiler from
15917         # explicitly linking system object files so we need to strip them
15918         # from the output so that they don't get included in the library
15919         # dependencies.
15920         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'
15921         ;;
15922       *)
15923         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15924           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15925           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'
15926
15927           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15928           hardcode_libdir_separator_CXX=:
15929
15930           # Commands to make compiler produce verbose output that lists
15931           # what "hidden" libraries, object files and flags are used when
15932           # linking a shared library.
15933           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15934
15935         else
15936           # FIXME: insert proper C++ library support
15937           ld_shlibs_CXX=no
15938         fi
15939         ;;
15940     esac
15941     ;;
15942   osf4* | osf5*)
15943     case $cc_basename in
15944       KCC)
15945         # Kuck and Associates, Inc. (KAI) C++ Compiler
15946
15947         # KCC will only create a shared library if the output file
15948         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15949         # to its proper name (with version) after linking.
15950         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'
15951
15952         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15953         hardcode_libdir_separator_CXX=:
15954
15955         # Archives containing C++ object files must be created using
15956         # the KAI C++ compiler.
15957         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15958         ;;
15959       RCC)
15960         # Rational C++ 2.4.1
15961         # FIXME: insert proper C++ library support
15962         ld_shlibs_CXX=no
15963         ;;
15964       cxx)
15965         allow_undefined_flag_CXX=' -expect_unresolved \*'
15966         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'
15967         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15968           echo "-hidden">> $lib.exp~
15969           $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~
15970           $rm $lib.exp'
15971
15972         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15973         hardcode_libdir_separator_CXX=:
15974
15975         # Commands to make compiler produce verbose output that lists
15976         # what "hidden" libraries, object files and flags are used when
15977         # linking a shared library.
15978         #
15979         # There doesn't appear to be a way to prevent this compiler from
15980         # explicitly linking system object files so we need to strip them
15981         # from the output so that they don't get included in the library
15982         # dependencies.
15983         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'
15984         ;;
15985       *)
15986         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15987           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15988          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'
15989
15990           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15991           hardcode_libdir_separator_CXX=:
15992
15993           # Commands to make compiler produce verbose output that lists
15994           # what "hidden" libraries, object files and flags are used when
15995           # linking a shared library.
15996           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15997
15998         else
15999           # FIXME: insert proper C++ library support
16000           ld_shlibs_CXX=no
16001         fi
16002         ;;
16003     esac
16004     ;;
16005   psos*)
16006     # FIXME: insert proper C++ library support
16007     ld_shlibs_CXX=no
16008     ;;
16009   sco*)
16010     archive_cmds_need_lc_CXX=no
16011     case $cc_basename in
16012       CC)
16013         # FIXME: insert proper C++ library support
16014         ld_shlibs_CXX=no
16015         ;;
16016       *)
16017         # FIXME: insert proper C++ library support
16018         ld_shlibs_CXX=no
16019         ;;
16020     esac
16021     ;;
16022   sunos4*)
16023     case $cc_basename in
16024       CC)
16025         # Sun C++ 4.x
16026         # FIXME: insert proper C++ library support
16027         ld_shlibs_CXX=no
16028         ;;
16029       lcc)
16030         # Lucid
16031         # FIXME: insert proper C++ library support
16032         ld_shlibs_CXX=no
16033         ;;
16034       *)
16035         # FIXME: insert proper C++ library support
16036         ld_shlibs_CXX=no
16037         ;;
16038     esac
16039     ;;
16040   solaris*)
16041     case $cc_basename in
16042       CC)
16043         # Sun C++ 4.2, 5.x and Centerline C++
16044         no_undefined_flag_CXX=' -zdefs'
16045         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16046         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047         $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'
16048
16049         hardcode_libdir_flag_spec_CXX='-R$libdir'
16050         hardcode_shlibpath_var_CXX=no
16051         case $host_os in
16052           solaris2.0-5 | solaris2.0-5.*) ;;
16053           *)
16054             # The C++ compiler is used as linker so we must use $wl
16055             # flag to pass the commands to the underlying system
16056             # linker.
16057             # Supported since Solaris 2.6 (maybe 2.5.1?)
16058             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16059             ;;
16060         esac
16061         link_all_deplibs_CXX=yes
16062
16063         # Commands to make compiler produce verbose output that lists
16064         # what "hidden" libraries, object files and flags are used when
16065         # linking a shared library.
16066         #
16067         # There doesn't appear to be a way to prevent this compiler from
16068         # explicitly linking system object files so we need to strip them
16069         # from the output so that they don't get included in the library
16070         # dependencies.
16071         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'
16072
16073         # Archives containing C++ object files must be created using
16074         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16075         # necessary to make sure instantiated templates are included
16076         # in the archive.
16077         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16078         ;;
16079       gcx)
16080         # Green Hills C++ Compiler
16081         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16082
16083         # The C++ compiler must be used to create the archive.
16084         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16085         ;;
16086       *)
16087         # GNU C++ compiler with Solaris linker
16088         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16089           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16090           if $CC --version | grep -v '^2\.7' > /dev/null; then
16091             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16092             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16093                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16094
16095             # Commands to make compiler produce verbose output that lists
16096             # what "hidden" libraries, object files and flags are used when
16097             # linking a shared library.
16098             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16099           else
16100             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16101             # platform.
16102             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16103             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16104                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16105
16106             # Commands to make compiler produce verbose output that lists
16107             # what "hidden" libraries, object files and flags are used when
16108             # linking a shared library.
16109             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16110           fi
16111
16112           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16113         fi
16114         ;;
16115     esac
16116     ;;
16117   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16118     archive_cmds_need_lc_CXX=no
16119     ;;
16120   tandem*)
16121     case $cc_basename in
16122       NCC)
16123         # NonStop-UX NCC 3.20
16124         # FIXME: insert proper C++ library support
16125         ld_shlibs_CXX=no
16126         ;;
16127       *)
16128         # FIXME: insert proper C++ library support
16129         ld_shlibs_CXX=no
16130         ;;
16131     esac
16132     ;;
16133   vxworks*)
16134     # FIXME: insert proper C++ library support
16135     ld_shlibs_CXX=no
16136     ;;
16137   *)
16138     # FIXME: insert proper C++ library support
16139     ld_shlibs_CXX=no
16140     ;;
16141 esac
16142 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16143 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16144 test "$ld_shlibs_CXX" = no && can_build_shared=no
16145
16146 GCC_CXX="$GXX"
16147 LD_CXX="$LD"
16148
16149
16150 cat > conftest.$ac_ext <<EOF
16151 class Foo
16152 {
16153 public:
16154   Foo (void) { a = 0; }
16155 private:
16156   int a;
16157 };
16158 EOF
16159
16160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161   (eval $ac_compile) 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); }; then
16165   # Parse the compiler output and extract the necessary
16166   # objects, libraries and library flags.
16167
16168   # Sentinel used to keep track of whether or not we are before
16169   # the conftest object file.
16170   pre_test_object_deps_done=no
16171
16172   # The `*' in the case matches for architectures that use `case' in
16173   # $output_verbose_cmd can trigger glob expansion during the loop
16174   # eval without this substitution.
16175   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16176
16177   for p in `eval $output_verbose_link_cmd`; do
16178     case $p in
16179
16180     -L* | -R* | -l*)
16181        # Some compilers place space between "-{L,R}" and the path.
16182        # Remove the space.
16183        if test $p = "-L" \
16184           || test $p = "-R"; then
16185          prev=$p
16186          continue
16187        else
16188          prev=
16189        fi
16190
16191        if test "$pre_test_object_deps_done" = no; then
16192          case $p in
16193          -L* | -R*)
16194            # Internal compiler library paths should come after those
16195            # provided the user.  The postdeps already come after the
16196            # user supplied libs so there is no need to process them.
16197            if test -z "$compiler_lib_search_path_CXX"; then
16198              compiler_lib_search_path_CXX="${prev}${p}"
16199            else
16200              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16201            fi
16202            ;;
16203          # The "-l" case would never come before the object being
16204          # linked, so don't bother handling this case.
16205          esac
16206        else
16207          if test -z "$postdeps_CXX"; then
16208            postdeps_CXX="${prev}${p}"
16209          else
16210            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16211          fi
16212        fi
16213        ;;
16214
16215     *.$objext)
16216        # This assumes that the test object file only shows up
16217        # once in the compiler output.
16218        if test "$p" = "conftest.$objext"; then
16219          pre_test_object_deps_done=yes
16220          continue
16221        fi
16222
16223        if test "$pre_test_object_deps_done" = no; then
16224          if test -z "$predep_objects_CXX"; then
16225            predep_objects_CXX="$p"
16226          else
16227            predep_objects_CXX="$predep_objects_CXX $p"
16228          fi
16229        else
16230          if test -z "$postdep_objects_CXX"; then
16231            postdep_objects_CXX="$p"
16232          else
16233            postdep_objects_CXX="$postdep_objects_CXX $p"
16234          fi
16235        fi
16236        ;;
16237
16238     *) ;; # Ignore the rest.
16239
16240     esac
16241   done
16242
16243   # Clean up.
16244   rm -f a.out a.exe
16245 else
16246   echo "libtool.m4: error: problem compiling CXX test program"
16247 fi
16248
16249 $rm -f confest.$objext
16250
16251 case " $postdeps_CXX " in
16252 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16253 esac
16254
16255 lt_prog_compiler_wl_CXX=
16256 lt_prog_compiler_pic_CXX=
16257 lt_prog_compiler_static_CXX=
16258
16259 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16260 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16261
16262   # C++ specific cases for pic, static, wl, etc.
16263   if test "$GXX" = yes; then
16264     lt_prog_compiler_wl_CXX='-Wl,'
16265     lt_prog_compiler_static_CXX='-static'
16266
16267     case $host_os in
16268     aix*)
16269       # All AIX code is PIC.
16270       if test "$host_cpu" = ia64; then
16271         # AIX 5 now supports IA64 processor
16272         lt_prog_compiler_static_CXX='-Bstatic'
16273       fi
16274       ;;
16275     amigaos*)
16276       # FIXME: we need at least 68020 code to build shared libraries, but
16277       # adding the `-m68020' flag to GCC prevents building anything better,
16278       # like `-m68040'.
16279       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16280       ;;
16281     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16282       # PIC is the default for these OSes.
16283       ;;
16284     mingw* | os2* | pw32*)
16285       # This hack is so that the source file can tell whether it is being
16286       # built for inclusion in a dll (and should export symbols for example).
16287       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16288       ;;
16289     darwin* | rhapsody*)
16290       # PIC is the default on this platform
16291       # Common symbols not allowed in MH_DYLIB files
16292       lt_prog_compiler_pic_CXX='-fno-common'
16293       ;;
16294     *djgpp*)
16295       # DJGPP does not support shared libraries at all
16296       lt_prog_compiler_pic_CXX=
16297       ;;
16298     sysv4*MP*)
16299       if test -d /usr/nec; then
16300         lt_prog_compiler_pic_CXX=-Kconform_pic
16301       fi
16302       ;;
16303     hpux*)
16304       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16305       # not for PA HP-UX.
16306       case "$host_cpu" in
16307       hppa*64*|ia64*)
16308         ;;
16309       *)
16310         lt_prog_compiler_pic_CXX='-fPIC'
16311         ;;
16312       esac
16313       ;;
16314     *)
16315       lt_prog_compiler_pic_CXX='-fPIC'
16316       ;;
16317     esac
16318   else
16319     case $host_os in
16320       aix4* | aix5*)
16321         # All AIX code is PIC.
16322         if test "$host_cpu" = ia64; then
16323           # AIX 5 now supports IA64 processor
16324           lt_prog_compiler_static_CXX='-Bstatic'
16325         else
16326           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16327         fi
16328         ;;
16329       chorus*)
16330         case $cc_basename in
16331         cxch68)
16332           # Green Hills C++ Compiler
16333           # _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"
16334           ;;
16335         esac
16336         ;;
16337        darwin*)
16338          # PIC is the default on this platform
16339          # Common symbols not allowed in MH_DYLIB files
16340          case "$cc_basename" in
16341            xlc*)
16342            lt_prog_compiler_pic_CXX='-qnocommon'
16343            lt_prog_compiler_wl_CXX='-Wl,'
16344            ;;
16345          esac
16346        ;;
16347       dgux*)
16348         case $cc_basename in
16349           ec++)
16350             lt_prog_compiler_pic_CXX='-KPIC'
16351             ;;
16352           ghcx)
16353             # Green Hills C++ Compiler
16354             lt_prog_compiler_pic_CXX='-pic'
16355             ;;
16356           *)
16357             ;;
16358         esac
16359         ;;
16360       freebsd* | kfreebsd*-gnu)
16361         # FreeBSD uses GNU C++
16362         ;;
16363       hpux9* | hpux10* | hpux11*)
16364         case $cc_basename in
16365           CC)
16366             lt_prog_compiler_wl_CXX='-Wl,'
16367             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16368             if test "$host_cpu" != ia64; then
16369               lt_prog_compiler_pic_CXX='+Z'
16370             fi
16371             ;;
16372           aCC)
16373             lt_prog_compiler_wl_CXX='-Wl,'
16374             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16375             case "$host_cpu" in
16376             hppa*64*|ia64*)
16377               # +Z the default
16378               ;;
16379             *)
16380               lt_prog_compiler_pic_CXX='+Z'
16381               ;;
16382             esac
16383             ;;
16384           *)
16385             ;;
16386         esac
16387         ;;
16388       irix5* | irix6* | nonstopux*)
16389         case $cc_basename in
16390           CC)
16391             lt_prog_compiler_wl_CXX='-Wl,'
16392             lt_prog_compiler_static_CXX='-non_shared'
16393             # CC pic flag -KPIC is the default.
16394             ;;
16395           *)
16396             ;;
16397         esac
16398         ;;
16399       linux*)
16400         case $cc_basename in
16401           KCC)
16402             # KAI C++ Compiler
16403             lt_prog_compiler_wl_CXX='--backend -Wl,'
16404             lt_prog_compiler_pic_CXX='-fPIC'
16405             ;;
16406           icpc)
16407             # Intel C++
16408             lt_prog_compiler_wl_CXX='-Wl,'
16409             lt_prog_compiler_pic_CXX='-KPIC'
16410             lt_prog_compiler_static_CXX='-static'
16411             ;;
16412           cxx)
16413             # Compaq C++
16414             # Make sure the PIC flag is empty.  It appears that all Alpha
16415             # Linux and Compaq Tru64 Unix objects are PIC.
16416             lt_prog_compiler_pic_CXX=
16417             lt_prog_compiler_static_CXX='-non_shared'
16418             ;;
16419           *)
16420             ;;
16421         esac
16422         ;;
16423       lynxos*)
16424         ;;
16425       m88k*)
16426         ;;
16427       mvs*)
16428         case $cc_basename in
16429           cxx)
16430             lt_prog_compiler_pic_CXX='-W c,exportall'
16431             ;;
16432           *)
16433             ;;
16434         esac
16435         ;;
16436       netbsd*)
16437         ;;
16438       osf3* | osf4* | osf5*)
16439         case $cc_basename in
16440           KCC)
16441             lt_prog_compiler_wl_CXX='--backend -Wl,'
16442             ;;
16443           RCC)
16444             # Rational C++ 2.4.1
16445             lt_prog_compiler_pic_CXX='-pic'
16446             ;;
16447           cxx)
16448             # Digital/Compaq C++
16449             lt_prog_compiler_wl_CXX='-Wl,'
16450             # Make sure the PIC flag is empty.  It appears that all Alpha
16451             # Linux and Compaq Tru64 Unix objects are PIC.
16452             lt_prog_compiler_pic_CXX=
16453             lt_prog_compiler_static_CXX='-non_shared'
16454             ;;
16455           *)
16456             ;;
16457         esac
16458         ;;
16459       psos*)
16460         ;;
16461       sco*)
16462         case $cc_basename in
16463           CC)
16464             lt_prog_compiler_pic_CXX='-fPIC'
16465             ;;
16466           *)
16467             ;;
16468         esac
16469         ;;
16470       solaris*)
16471         case $cc_basename in
16472           CC)
16473             # Sun C++ 4.2, 5.x and Centerline C++
16474             lt_prog_compiler_pic_CXX='-KPIC'
16475             lt_prog_compiler_static_CXX='-Bstatic'
16476             lt_prog_compiler_wl_CXX='-Qoption ld '
16477             ;;
16478           gcx)
16479             # Green Hills C++ Compiler
16480             lt_prog_compiler_pic_CXX='-PIC'
16481             ;;
16482           *)
16483             ;;
16484         esac
16485         ;;
16486       sunos4*)
16487         case $cc_basename in
16488           CC)
16489             # Sun C++ 4.x
16490             lt_prog_compiler_pic_CXX='-pic'
16491             lt_prog_compiler_static_CXX='-Bstatic'
16492             ;;
16493           lcc)
16494             # Lucid
16495             lt_prog_compiler_pic_CXX='-pic'
16496             ;;
16497           *)
16498             ;;
16499         esac
16500         ;;
16501       tandem*)
16502         case $cc_basename in
16503           NCC)
16504             # NonStop-UX NCC 3.20
16505             lt_prog_compiler_pic_CXX='-KPIC'
16506             ;;
16507           *)
16508             ;;
16509         esac
16510         ;;
16511       unixware*)
16512         ;;
16513       vxworks*)
16514         ;;
16515       *)
16516         lt_prog_compiler_can_build_shared_CXX=no
16517         ;;
16518     esac
16519   fi
16520
16521 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16522 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16523
16524 #
16525 # Check to make sure the PIC flag actually works.
16526 #
16527 if test -n "$lt_prog_compiler_pic_CXX"; then
16528
16529 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16530 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16531 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16532   echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534   lt_prog_compiler_pic_works_CXX=no
16535   ac_outfile=conftest.$ac_objext
16536    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16537    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16538    # Insert the option either (1) after the last *FLAGS variable, or
16539    # (2) before a word containing "conftest.", or (3) at the end.
16540    # Note that $ac_compile itself does not contain backslashes and begins
16541    # with a dollar sign (not a hyphen), so the echo should work correctly.
16542    # The option is referenced via a variable to avoid confusing sed.
16543    lt_compile=`echo "$ac_compile" | $SED \
16544    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16546    -e 's:$: $lt_compiler_flag:'`
16547    (eval echo "\"\$as_me:16547: $lt_compile\"" >&5)
16548    (eval "$lt_compile" 2>conftest.err)
16549    ac_status=$?
16550    cat conftest.err >&5
16551    echo "$as_me:16551: \$? = $ac_status" >&5
16552    if (exit $ac_status) && test -s "$ac_outfile"; then
16553      # The compiler can only warn and ignore the option if not recognized
16554      # So say no if there are warnings
16555      if test ! -s conftest.err; then
16556        lt_prog_compiler_pic_works_CXX=yes
16557      fi
16558    fi
16559    $rm conftest*
16560
16561 fi
16562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16563 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16564
16565 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16566     case $lt_prog_compiler_pic_CXX in
16567      "" | " "*) ;;
16568      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16569      esac
16570 else
16571     lt_prog_compiler_pic_CXX=
16572      lt_prog_compiler_can_build_shared_CXX=no
16573 fi
16574
16575 fi
16576 case "$host_os" in
16577   # For platforms which do not support PIC, -DPIC is meaningless:
16578   *djgpp*)
16579     lt_prog_compiler_pic_CXX=
16580     ;;
16581   *)
16582     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16583     ;;
16584 esac
16585
16586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16588 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   lt_cv_prog_compiler_c_o_CXX=no
16592    $rm -r conftest 2>/dev/null
16593    mkdir conftest
16594    cd conftest
16595    mkdir out
16596    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16597
16598    lt_compiler_flag="-o out/conftest2.$ac_objext"
16599    # Insert the option either (1) after the last *FLAGS variable, or
16600    # (2) before a word containing "conftest.", or (3) at the end.
16601    # Note that $ac_compile itself does not contain backslashes and begins
16602    # with a dollar sign (not a hyphen), so the echo should work correctly.
16603    lt_compile=`echo "$ac_compile" | $SED \
16604    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16606    -e 's:$: $lt_compiler_flag:'`
16607    (eval echo "\"\$as_me:16607: $lt_compile\"" >&5)
16608    (eval "$lt_compile" 2>out/conftest.err)
16609    ac_status=$?
16610    cat out/conftest.err >&5
16611    echo "$as_me:16611: \$? = $ac_status" >&5
16612    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16613    then
16614      # The compiler can only warn and ignore the option if not recognized
16615      # So say no if there are warnings
16616      if test ! -s out/conftest.err; then
16617        lt_cv_prog_compiler_c_o_CXX=yes
16618      fi
16619    fi
16620    chmod u+w .
16621    $rm conftest*
16622    # SGI C++ compiler will create directory out/ii_files/ for
16623    # template instantiation
16624    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16625    $rm out/* && rmdir out
16626    cd ..
16627    rmdir conftest
16628    $rm conftest*
16629
16630 fi
16631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16633
16634
16635 hard_links="nottested"
16636 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16637   # do not overwrite the value of need_locks provided by the user
16638   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16640   hard_links=yes
16641   $rm conftest*
16642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643   touch conftest.a
16644   ln conftest.a conftest.b 2>&5 || hard_links=no
16645   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16646   echo "$as_me:$LINENO: result: $hard_links" >&5
16647 echo "${ECHO_T}$hard_links" >&6
16648   if test "$hard_links" = no; then
16649     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16651     need_locks=warn
16652   fi
16653 else
16654   need_locks=no
16655 fi
16656
16657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16659
16660   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16661   case $host_os in
16662   aix4* | aix5*)
16663     # If we're using GNU nm, then we don't want the "-C" option.
16664     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16665     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16666       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'
16667     else
16668       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'
16669     fi
16670     ;;
16671   pw32*)
16672     export_symbols_cmds_CXX="$ltdll_cmds"
16673   ;;
16674   cygwin* | mingw*)
16675     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16676   ;;
16677   *)
16678     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16679   ;;
16680   esac
16681
16682 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16683 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16684 test "$ld_shlibs_CXX" = no && can_build_shared=no
16685
16686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16687 if test "$GCC" = yes; then
16688   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16689 fi
16690
16691 #
16692 # Do we need to explicitly link libc?
16693 #
16694 case "x$archive_cmds_need_lc_CXX" in
16695 x|xyes)
16696   # Assume -lc should be added
16697   archive_cmds_need_lc_CXX=yes
16698
16699   if test "$enable_shared" = yes && test "$GCC" = yes; then
16700     case $archive_cmds_CXX in
16701     *'~'*)
16702       # FIXME: we may have to deal with multi-command sequences.
16703       ;;
16704     '$CC '*)
16705       # Test whether the compiler implicitly links with -lc since on some
16706       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16707       # to ld, don't add -lc before -lgcc.
16708       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16709 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16710       $rm conftest*
16711       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16712
16713       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714   (eval $ac_compile) 2>&5
16715   ac_status=$?
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); } 2>conftest.err; then
16718         soname=conftest
16719         lib=conftest
16720         libobjs=conftest.$ac_objext
16721         deplibs=
16722         wl=$lt_prog_compiler_wl_CXX
16723         compiler_flags=-v
16724         linker_flags=-v
16725         verstring=
16726         output_objdir=.
16727         libname=conftest
16728         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16729         allow_undefined_flag_CXX=
16730         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16731   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }
16735         then
16736           archive_cmds_need_lc_CXX=no
16737         else
16738           archive_cmds_need_lc_CXX=yes
16739         fi
16740         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16741       else
16742         cat conftest.err 1>&5
16743       fi
16744       $rm conftest*
16745       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16746 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16747       ;;
16748     esac
16749   fi
16750   ;;
16751 esac
16752
16753 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16755 library_names_spec=
16756 libname_spec='lib$name'
16757 soname_spec=
16758 shrext_cmds=".so"
16759 postinstall_cmds=
16760 postuninstall_cmds=
16761 finish_cmds=
16762 finish_eval=
16763 shlibpath_var=
16764 shlibpath_overrides_runpath=unknown
16765 version_type=none
16766 dynamic_linker="$host_os ld.so"
16767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16768 if test "$GCC" = yes; then
16769   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16771     # if the path contains ";" then we assume it to be the separator
16772     # otherwise default to the standard path separator (i.e. ":") - it is
16773     # assumed that no part of a normal pathname contains ";" but that should
16774     # okay in the real world where ";" in dirpaths is itself problematic.
16775     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16776   else
16777     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16778   fi
16779 else
16780   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16781 fi
16782 need_lib_prefix=unknown
16783 hardcode_into_libs=no
16784
16785 # when you set need_version to no, make sure it does not cause -set_version
16786 # flags to be left without arguments
16787 need_version=unknown
16788
16789 case $host_os in
16790 aix3*)
16791   version_type=linux
16792   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16793   shlibpath_var=LIBPATH
16794
16795   # AIX 3 has no versioning support, so we append a major version to the name.
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   ;;
16798
16799 aix4* | aix5*)
16800   version_type=linux
16801   need_lib_prefix=no
16802   need_version=no
16803   hardcode_into_libs=yes
16804   if test "$host_cpu" = ia64; then
16805     # AIX 5 supports IA64
16806     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16807     shlibpath_var=LD_LIBRARY_PATH
16808   else
16809     # With GCC up to 2.95.x, collect2 would create an import file
16810     # for dependence libraries.  The import file would start with
16811     # the line `#! .'.  This would cause the generated library to
16812     # depend on `.', always an invalid library.  This was fixed in
16813     # development snapshots of GCC prior to 3.0.
16814     case $host_os in
16815       aix4 | aix4.[01] | aix4.[01].*)
16816       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16817            echo ' yes '
16818            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16819         :
16820       else
16821         can_build_shared=no
16822       fi
16823       ;;
16824     esac
16825     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16826     # soname into executable. Probably we can add versioning support to
16827     # collect2, so additional links can be useful in future.
16828     if test "$aix_use_runtimelinking" = yes; then
16829       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16830       # instead of lib<name>.a to let people know that these are not
16831       # typical AIX shared libraries.
16832       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833     else
16834       # We preserve .a as extension for shared libraries through AIX4.2
16835       # and later when we are not doing run time linking.
16836       library_names_spec='${libname}${release}.a $libname.a'
16837       soname_spec='${libname}${release}${shared_ext}$major'
16838     fi
16839     shlibpath_var=LIBPATH
16840   fi
16841   ;;
16842
16843 amigaos*)
16844   library_names_spec='$libname.ixlibrary $libname.a'
16845   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16846   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'
16847   ;;
16848
16849 beos*)
16850   library_names_spec='${libname}${shared_ext}'
16851   dynamic_linker="$host_os ld.so"
16852   shlibpath_var=LIBRARY_PATH
16853   ;;
16854
16855 bsdi[45]*)
16856   version_type=linux
16857   need_version=no
16858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859   soname_spec='${libname}${release}${shared_ext}$major'
16860   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16861   shlibpath_var=LD_LIBRARY_PATH
16862   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16863   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16864   # the default ld.so.conf also contains /usr/contrib/lib and
16865   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16866   # libtool to hard-code these into programs
16867   ;;
16868
16869 cygwin* | mingw* | pw32*)
16870   version_type=windows
16871   shrext_cmds=".dll"
16872   need_version=no
16873   need_lib_prefix=no
16874
16875   case $GCC,$host_os in
16876   yes,cygwin* | yes,mingw* | yes,pw32*)
16877     library_names_spec='$libname.dll.a'
16878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16879     postinstall_cmds='base_file=`basename \${file}`~
16880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16881       dldir=$destdir/`dirname \$dlpath`~
16882       test -d \$dldir || mkdir -p \$dldir~
16883       $install_prog $dir/$dlname \$dldir/$dlname'
16884     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16885       dlpath=$dir/\$dldll~
16886        $rm \$dlpath'
16887     shlibpath_overrides_runpath=yes
16888
16889     case $host_os in
16890     cygwin*)
16891       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16892       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16893       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16894       ;;
16895     mingw*)
16896       # MinGW DLLs use traditional 'lib' prefix
16897       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16898       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16899       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16900         # It is most probably a Windows format PATH printed by
16901         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16902         # path with ; separators, and with drive letters. We can handle the
16903         # drive letters (cygwin fileutils understands them), so leave them,
16904         # especially as we might pass files found there to a mingw objdump,
16905         # which wouldn't understand a cygwinified path. Ahh.
16906         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16907       else
16908         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16909       fi
16910       ;;
16911     pw32*)
16912       # pw32 DLLs use 'pw' prefix rather than 'lib'
16913       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16914       ;;
16915     esac
16916     ;;
16917
16918   *)
16919     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16920     ;;
16921   esac
16922   dynamic_linker='Win32 ld.exe'
16923   # FIXME: first we should search . and the directory the executable is in
16924   shlibpath_var=PATH
16925   ;;
16926
16927 darwin* | rhapsody*)
16928   dynamic_linker="$host_os dyld"
16929   version_type=darwin
16930   need_lib_prefix=no
16931   need_version=no
16932   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16933   soname_spec='${libname}${release}${major}$shared_ext'
16934   shlibpath_overrides_runpath=yes
16935   shlibpath_var=DYLD_LIBRARY_PATH
16936   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16937   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16938   if test "$GCC" = yes; then
16939     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"`
16940   else
16941     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16942   fi
16943   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16944   ;;
16945
16946 dgux*)
16947   version_type=linux
16948   need_lib_prefix=no
16949   need_version=no
16950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16951   soname_spec='${libname}${release}${shared_ext}$major'
16952   shlibpath_var=LD_LIBRARY_PATH
16953   ;;
16954
16955 freebsd1*)
16956   dynamic_linker=no
16957   ;;
16958
16959 kfreebsd*-gnu)
16960   version_type=linux
16961   need_lib_prefix=no
16962   need_version=no
16963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16964   soname_spec='${libname}${release}${shared_ext}$major'
16965   shlibpath_var=LD_LIBRARY_PATH
16966   shlibpath_overrides_runpath=no
16967   hardcode_into_libs=yes
16968   dynamic_linker='GNU ld.so'
16969   ;;
16970
16971 freebsd*)
16972   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16973   version_type=freebsd-$objformat
16974   case $version_type in
16975     freebsd-elf*)
16976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16977       need_version=no
16978       need_lib_prefix=no
16979       ;;
16980     freebsd-*)
16981       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16982       need_version=yes
16983       ;;
16984   esac
16985   shlibpath_var=LD_LIBRARY_PATH
16986   case $host_os in
16987   freebsd2*)
16988     shlibpath_overrides_runpath=yes
16989     ;;
16990   freebsd3.01* | freebsdelf3.01*)
16991     shlibpath_overrides_runpath=yes
16992     hardcode_into_libs=yes
16993     ;;
16994   *) # from 3.2 on
16995     shlibpath_overrides_runpath=no
16996     hardcode_into_libs=yes
16997     ;;
16998   esac
16999   ;;
17000
17001 gnu*)
17002   version_type=linux
17003   need_lib_prefix=no
17004   need_version=no
17005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17006   soname_spec='${libname}${release}${shared_ext}$major'
17007   shlibpath_var=LD_LIBRARY_PATH
17008   hardcode_into_libs=yes
17009   ;;
17010
17011 hpux9* | hpux10* | hpux11*)
17012   # Give a soname corresponding to the major version so that dld.sl refuses to
17013   # link against other versions.
17014   version_type=sunos
17015   need_lib_prefix=no
17016   need_version=no
17017   case "$host_cpu" in
17018   ia64*)
17019     shrext_cmds='.so'
17020     hardcode_into_libs=yes
17021     dynamic_linker="$host_os dld.so"
17022     shlibpath_var=LD_LIBRARY_PATH
17023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025     soname_spec='${libname}${release}${shared_ext}$major'
17026     if test "X$HPUX_IA64_MODE" = X32; then
17027       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17028     else
17029       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17030     fi
17031     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17032     ;;
17033    hppa*64*)
17034      shrext_cmds='.sl'
17035      hardcode_into_libs=yes
17036      dynamic_linker="$host_os dld.sl"
17037      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17038      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040      soname_spec='${libname}${release}${shared_ext}$major'
17041      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17042      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17043      ;;
17044    *)
17045     shrext_cmds='.sl'
17046     dynamic_linker="$host_os dld.sl"
17047     shlibpath_var=SHLIB_PATH
17048     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050     soname_spec='${libname}${release}${shared_ext}$major'
17051     ;;
17052   esac
17053   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17054   postinstall_cmds='chmod 555 $lib'
17055   ;;
17056
17057 irix5* | irix6* | nonstopux*)
17058   case $host_os in
17059     nonstopux*) version_type=nonstopux ;;
17060     *)
17061         if test "$lt_cv_prog_gnu_ld" = yes; then
17062                 version_type=linux
17063         else
17064                 version_type=irix
17065         fi ;;
17066   esac
17067   need_lib_prefix=no
17068   need_version=no
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17071   case $host_os in
17072   irix5* | nonstopux*)
17073     libsuff= shlibsuff=
17074     ;;
17075   *)
17076     case $LD in # libtool.m4 will add one of these switches to LD
17077     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17078       libsuff= shlibsuff= libmagic=32-bit;;
17079     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17080       libsuff=32 shlibsuff=N32 libmagic=N32;;
17081     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17082       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17083     *) libsuff= shlibsuff= libmagic=never-match;;
17084     esac
17085     ;;
17086   esac
17087   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17088   shlibpath_overrides_runpath=no
17089   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17090   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17091   hardcode_into_libs=yes
17092   ;;
17093
17094 # No shared lib support for Linux oldld, aout, or coff.
17095 linux*oldld* | linux*aout* | linux*coff*)
17096   dynamic_linker=no
17097   ;;
17098
17099 # This must be Linux ELF.
17100 linux*)
17101   version_type=linux
17102   need_lib_prefix=no
17103   need_version=no
17104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105   soname_spec='${libname}${release}${shared_ext}$major'
17106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17107   shlibpath_var=LD_LIBRARY_PATH
17108   shlibpath_overrides_runpath=no
17109   # This implies no fast_install, which is unacceptable.
17110   # Some rework will be needed to allow for fast_install
17111   # before this can be enabled.
17112   hardcode_into_libs=yes
17113
17114   # Append ld.so.conf contents to the search path
17115   if test -f /etc/ld.so.conf; then
17116     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17117     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17118   fi
17119
17120   # We used to test for /lib/ld.so.1 and disable shared libraries on
17121   # powerpc, because MkLinux only supported shared libraries with the
17122   # GNU dynamic linker.  Since this was broken with cross compilers,
17123   # most powerpc-linux boxes support dynamic linking these days and
17124   # people can always --disable-shared, the test was removed, and we
17125   # assume the GNU/Linux dynamic linker is in use.
17126   dynamic_linker='GNU/Linux ld.so'
17127   ;;
17128
17129 knetbsd*-gnu)
17130   version_type=linux
17131   need_lib_prefix=no
17132   need_version=no
17133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17134   soname_spec='${libname}${release}${shared_ext}$major'
17135   shlibpath_var=LD_LIBRARY_PATH
17136   shlibpath_overrides_runpath=no
17137   hardcode_into_libs=yes
17138   dynamic_linker='GNU ld.so'
17139   ;;
17140
17141 netbsd*)
17142   version_type=sunos
17143   need_lib_prefix=no
17144   need_version=no
17145   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17146     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17147     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17148     dynamic_linker='NetBSD (a.out) ld.so'
17149   else
17150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17151     soname_spec='${libname}${release}${shared_ext}$major'
17152     dynamic_linker='NetBSD ld.elf_so'
17153   fi
17154   shlibpath_var=LD_LIBRARY_PATH
17155   shlibpath_overrides_runpath=yes
17156   hardcode_into_libs=yes
17157   ;;
17158
17159 newsos6)
17160   version_type=linux
17161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162   shlibpath_var=LD_LIBRARY_PATH
17163   shlibpath_overrides_runpath=yes
17164   ;;
17165
17166 nto-qnx*)
17167   version_type=linux
17168   need_lib_prefix=no
17169   need_version=no
17170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171   soname_spec='${libname}${release}${shared_ext}$major'
17172   shlibpath_var=LD_LIBRARY_PATH
17173   shlibpath_overrides_runpath=yes
17174   ;;
17175
17176 openbsd*)
17177   version_type=sunos
17178   need_lib_prefix=no
17179   need_version=no
17180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17181   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17182   shlibpath_var=LD_LIBRARY_PATH
17183   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17184     case $host_os in
17185       openbsd2.[89] | openbsd2.[89].*)
17186         shlibpath_overrides_runpath=no
17187         ;;
17188       *)
17189         shlibpath_overrides_runpath=yes
17190         ;;
17191       esac
17192   else
17193     shlibpath_overrides_runpath=yes
17194   fi
17195   ;;
17196
17197 os2*)
17198   libname_spec='$name'
17199   shrext_cmds=".dll"
17200   need_lib_prefix=no
17201   library_names_spec='$libname${shared_ext} $libname.a'
17202   dynamic_linker='OS/2 ld.exe'
17203   shlibpath_var=LIBPATH
17204   ;;
17205
17206 osf3* | osf4* | osf5*)
17207   version_type=osf
17208   need_lib_prefix=no
17209   need_version=no
17210   soname_spec='${libname}${release}${shared_ext}$major'
17211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212   shlibpath_var=LD_LIBRARY_PATH
17213   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17214   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17215   ;;
17216
17217 sco3.2v5*)
17218   version_type=osf
17219   soname_spec='${libname}${release}${shared_ext}$major'
17220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221   shlibpath_var=LD_LIBRARY_PATH
17222   ;;
17223
17224 solaris*)
17225   version_type=linux
17226   need_lib_prefix=no
17227   need_version=no
17228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229   soname_spec='${libname}${release}${shared_ext}$major'
17230   shlibpath_var=LD_LIBRARY_PATH
17231   shlibpath_overrides_runpath=yes
17232   hardcode_into_libs=yes
17233   # ldd complains unless libraries are executable
17234   postinstall_cmds='chmod +x $lib'
17235   ;;
17236
17237 sunos4*)
17238   version_type=sunos
17239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17240   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17241   shlibpath_var=LD_LIBRARY_PATH
17242   shlibpath_overrides_runpath=yes
17243   if test "$with_gnu_ld" = yes; then
17244     need_lib_prefix=no
17245   fi
17246   need_version=yes
17247   ;;
17248
17249 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17250   version_type=linux
17251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252   soname_spec='${libname}${release}${shared_ext}$major'
17253   shlibpath_var=LD_LIBRARY_PATH
17254   case $host_vendor in
17255     sni)
17256       shlibpath_overrides_runpath=no
17257       need_lib_prefix=no
17258       export_dynamic_flag_spec='${wl}-Blargedynsym'
17259       runpath_var=LD_RUN_PATH
17260       ;;
17261     siemens)
17262       need_lib_prefix=no
17263       ;;
17264     motorola)
17265       need_lib_prefix=no
17266       need_version=no
17267       shlibpath_overrides_runpath=no
17268       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17269       ;;
17270   esac
17271   ;;
17272
17273 sysv4*MP*)
17274   if test -d /usr/nec ;then
17275     version_type=linux
17276     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17277     soname_spec='$libname${shared_ext}.$major'
17278     shlibpath_var=LD_LIBRARY_PATH
17279   fi
17280   ;;
17281
17282 uts4*)
17283   version_type=linux
17284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285   soname_spec='${libname}${release}${shared_ext}$major'
17286   shlibpath_var=LD_LIBRARY_PATH
17287   ;;
17288
17289 *)
17290   dynamic_linker=no
17291   ;;
17292 esac
17293 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17294 echo "${ECHO_T}$dynamic_linker" >&6
17295 test "$dynamic_linker" = no && can_build_shared=no
17296
17297 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17298 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17299 hardcode_action_CXX=
17300 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17301    test -n "$runpath_var_CXX" || \
17302    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17303
17304   # We can hardcode non-existant directories.
17305   if test "$hardcode_direct_CXX" != no &&
17306      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17307      # have to relink, otherwise we might link with an installed library
17308      # when we should be linking with a yet-to-be-installed one
17309      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17310      test "$hardcode_minus_L_CXX" != no; then
17311     # Linking always hardcodes the temporary library directory.
17312     hardcode_action_CXX=relink
17313   else
17314     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17315     hardcode_action_CXX=immediate
17316   fi
17317 else
17318   # We cannot hardcode anything, or else we can only hardcode existing
17319   # directories.
17320   hardcode_action_CXX=unsupported
17321 fi
17322 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17323 echo "${ECHO_T}$hardcode_action_CXX" >&6
17324
17325 if test "$hardcode_action_CXX" = relink; then
17326   # Fast installation is not supported
17327   enable_fast_install=no
17328 elif test "$shlibpath_overrides_runpath" = yes ||
17329      test "$enable_shared" = no; then
17330   # Fast installation is not necessary
17331   enable_fast_install=needless
17332 fi
17333
17334 striplib=
17335 old_striplib=
17336 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17337 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17338 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17339   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17340   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17341   echo "$as_me:$LINENO: result: yes" >&5
17342 echo "${ECHO_T}yes" >&6
17343 else
17344 # FIXME - insert some real tests, host_os isn't really good enough
17345   case $host_os in
17346    darwin*)
17347        if test -n "$STRIP" ; then
17348          striplib="$STRIP -x"
17349          echo "$as_me:$LINENO: result: yes" >&5
17350 echo "${ECHO_T}yes" >&6
17351        else
17352   echo "$as_me:$LINENO: result: no" >&5
17353 echo "${ECHO_T}no" >&6
17354 fi
17355        ;;
17356    *)
17357   echo "$as_me:$LINENO: result: no" >&5
17358 echo "${ECHO_T}no" >&6
17359     ;;
17360   esac
17361 fi
17362
17363 if test "x$enable_dlopen" != xyes; then
17364   enable_dlopen=unknown
17365   enable_dlopen_self=unknown
17366   enable_dlopen_self_static=unknown
17367 else
17368   lt_cv_dlopen=no
17369   lt_cv_dlopen_libs=
17370
17371   case $host_os in
17372   beos*)
17373     lt_cv_dlopen="load_add_on"
17374     lt_cv_dlopen_libs=
17375     lt_cv_dlopen_self=yes
17376     ;;
17377
17378   mingw* | pw32*)
17379     lt_cv_dlopen="LoadLibrary"
17380     lt_cv_dlopen_libs=
17381    ;;
17382
17383   cygwin*)
17384     lt_cv_dlopen="dlopen"
17385     lt_cv_dlopen_libs=
17386    ;;
17387
17388   darwin*)
17389   # if libdl is installed we need to link against it
17390     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17393   echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395   ac_check_lib_save_LIBS=$LIBS
17396 LIBS="-ldl  $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403
17404 /* Override any gcc2 internal prototype to avoid an error.  */
17405 #ifdef __cplusplus
17406 extern "C"
17407 #endif
17408 /* We use char because int might match the return type of a gcc2
17409    builtin and then its argument prototype would still apply.  */
17410 char dlopen ();
17411 int
17412 main ()
17413 {
17414 dlopen ();
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421   (eval $ac_link) 2>conftest.er1
17422   ac_status=$?
17423   grep -v '^ *+' conftest.er1 >conftest.err
17424   rm -f conftest.er1
17425   cat conftest.err >&5
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); } &&
17428          { ac_try='test -z "$ac_cxx_werror_flag"
17429                          || test ! -s conftest.err'
17430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431   (eval $ac_try) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; } &&
17435          { ac_try='test -s conftest$ac_exeext'
17436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437   (eval $ac_try) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; }; then
17441   ac_cv_lib_dl_dlopen=yes
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 ac_cv_lib_dl_dlopen=no
17447 fi
17448 rm -f conftest.err conftest.$ac_objext \
17449       conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17451 fi
17452 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17453 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17454 if test $ac_cv_lib_dl_dlopen = yes; then
17455   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17456 else
17457
17458     lt_cv_dlopen="dyld"
17459     lt_cv_dlopen_libs=
17460     lt_cv_dlopen_self=yes
17461
17462 fi
17463
17464    ;;
17465
17466   *)
17467     echo "$as_me:$LINENO: checking for shl_load" >&5
17468 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17469 if test "${ac_cv_func_shl_load+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h.  */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h.  */
17478 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17480 #define shl_load innocuous_shl_load
17481
17482 /* System header to define __stub macros and hopefully few prototypes,
17483     which can conflict with char shl_load (); below.
17484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485     <limits.h> exists even on freestanding compilers.  */
17486
17487 #ifdef __STDC__
17488 # include <limits.h>
17489 #else
17490 # include <assert.h>
17491 #endif
17492
17493 #undef shl_load
17494
17495 /* Override any gcc2 internal prototype to avoid an error.  */
17496 #ifdef __cplusplus
17497 extern "C"
17498 {
17499 #endif
17500 /* We use char because int might match the return type of a gcc2
17501    builtin and then its argument prototype would still apply.  */
17502 char shl_load ();
17503 /* The GNU C library defines this for functions which it implements
17504     to always fail with ENOSYS.  Some functions are actually named
17505     something starting with __ and the normal name is an alias.  */
17506 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17507 choke me
17508 #else
17509 char (*f) () = shl_load;
17510 #endif
17511 #ifdef __cplusplus
17512 }
17513 #endif
17514
17515 int
17516 main ()
17517 {
17518 return f != shl_load;
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525   (eval $ac_link) 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_cxx_werror_flag"
17533                          || test ! -s conftest.err'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; } &&
17539          { ac_try='test -s conftest$ac_exeext'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   ac_cv_func_shl_load=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 ac_cv_func_shl_load=no
17551 fi
17552 rm -f conftest.err conftest.$ac_objext \
17553       conftest$ac_exeext conftest.$ac_ext
17554 fi
17555 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17556 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17557 if test $ac_cv_func_shl_load = yes; then
17558   lt_cv_dlopen="shl_load"
17559 else
17560   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17561 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17562 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   ac_check_lib_save_LIBS=$LIBS
17566 LIBS="-ldld  $LIBS"
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h.  */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h.  */
17573
17574 /* Override any gcc2 internal prototype to avoid an error.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 /* We use char because int might match the return type of a gcc2
17579    builtin and then its argument prototype would still apply.  */
17580 char shl_load ();
17581 int
17582 main ()
17583 {
17584 shl_load ();
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591   (eval $ac_link) 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } &&
17598          { ac_try='test -z "$ac_cxx_werror_flag"
17599                          || test ! -s conftest.err'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; } &&
17605          { ac_try='test -s conftest$ac_exeext'
17606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607   (eval $ac_try) 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   ac_cv_lib_dld_shl_load=yes
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 ac_cv_lib_dld_shl_load=no
17617 fi
17618 rm -f conftest.err conftest.$ac_objext \
17619       conftest$ac_exeext conftest.$ac_ext
17620 LIBS=$ac_check_lib_save_LIBS
17621 fi
17622 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17623 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17624 if test $ac_cv_lib_dld_shl_load = yes; then
17625   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17626 else
17627   echo "$as_me:$LINENO: checking for dlopen" >&5
17628 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17629 if test "${ac_cv_func_dlopen+set}" = set; then
17630   echo $ECHO_N "(cached) $ECHO_C" >&6
17631 else
17632   cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h.  */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h.  */
17638 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17640 #define dlopen innocuous_dlopen
17641
17642 /* System header to define __stub macros and hopefully few prototypes,
17643     which can conflict with char dlopen (); below.
17644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17645     <limits.h> exists even on freestanding compilers.  */
17646
17647 #ifdef __STDC__
17648 # include <limits.h>
17649 #else
17650 # include <assert.h>
17651 #endif
17652
17653 #undef dlopen
17654
17655 /* Override any gcc2 internal prototype to avoid an error.  */
17656 #ifdef __cplusplus
17657 extern "C"
17658 {
17659 #endif
17660 /* We use char because int might match the return type of a gcc2
17661    builtin and then its argument prototype would still apply.  */
17662 char dlopen ();
17663 /* The GNU C library defines this for functions which it implements
17664     to always fail with ENOSYS.  Some functions are actually named
17665     something starting with __ and the normal name is an alias.  */
17666 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17667 choke me
17668 #else
17669 char (*f) () = dlopen;
17670 #endif
17671 #ifdef __cplusplus
17672 }
17673 #endif
17674
17675 int
17676 main ()
17677 {
17678 return f != dlopen;
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685   (eval $ac_link) 2>conftest.er1
17686   ac_status=$?
17687   grep -v '^ *+' conftest.er1 >conftest.err
17688   rm -f conftest.er1
17689   cat conftest.err >&5
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } &&
17692          { ac_try='test -z "$ac_cxx_werror_flag"
17693                          || test ! -s conftest.err'
17694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695   (eval $ac_try) 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; } &&
17699          { ac_try='test -s conftest$ac_exeext'
17700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701   (eval $ac_try) 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   ac_cv_func_dlopen=yes
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 ac_cv_func_dlopen=no
17711 fi
17712 rm -f conftest.err conftest.$ac_objext \
17713       conftest$ac_exeext conftest.$ac_ext
17714 fi
17715 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17716 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17717 if test $ac_cv_func_dlopen = yes; then
17718   lt_cv_dlopen="dlopen"
17719 else
17720   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17721 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17723   echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725   ac_check_lib_save_LIBS=$LIBS
17726 LIBS="-ldl  $LIBS"
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733
17734 /* Override any gcc2 internal prototype to avoid an error.  */
17735 #ifdef __cplusplus
17736 extern "C"
17737 #endif
17738 /* We use char because int might match the return type of a gcc2
17739    builtin and then its argument prototype would still apply.  */
17740 char dlopen ();
17741 int
17742 main ()
17743 {
17744 dlopen ();
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751   (eval $ac_link) 2>conftest.er1
17752   ac_status=$?
17753   grep -v '^ *+' conftest.er1 >conftest.err
17754   rm -f conftest.er1
17755   cat conftest.err >&5
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); } &&
17758          { ac_try='test -z "$ac_cxx_werror_flag"
17759                          || test ! -s conftest.err'
17760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761   (eval $ac_try) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; } &&
17765          { ac_try='test -s conftest$ac_exeext'
17766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767   (eval $ac_try) 2>&5
17768   ac_status=$?
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); }; }; then
17771   ac_cv_lib_dl_dlopen=yes
17772 else
17773   echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 ac_cv_lib_dl_dlopen=no
17777 fi
17778 rm -f conftest.err conftest.$ac_objext \
17779       conftest$ac_exeext conftest.$ac_ext
17780 LIBS=$ac_check_lib_save_LIBS
17781 fi
17782 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17783 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17784 if test $ac_cv_lib_dl_dlopen = yes; then
17785   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17786 else
17787   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17788 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17789 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17790   echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792   ac_check_lib_save_LIBS=$LIBS
17793 LIBS="-lsvld  $LIBS"
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800
17801 /* Override any gcc2 internal prototype to avoid an error.  */
17802 #ifdef __cplusplus
17803 extern "C"
17804 #endif
17805 /* We use char because int might match the return type of a gcc2
17806    builtin and then its argument prototype would still apply.  */
17807 char dlopen ();
17808 int
17809 main ()
17810 {
17811 dlopen ();
17812   ;
17813   return 0;
17814 }
17815 _ACEOF
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17818   (eval $ac_link) 2>conftest.er1
17819   ac_status=$?
17820   grep -v '^ *+' conftest.er1 >conftest.err
17821   rm -f conftest.er1
17822   cat conftest.err >&5
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); } &&
17825          { ac_try='test -z "$ac_cxx_werror_flag"
17826                          || test ! -s conftest.err'
17827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828   (eval $ac_try) 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; } &&
17832          { ac_try='test -s conftest$ac_exeext'
17833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834   (eval $ac_try) 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; }; then
17838   ac_cv_lib_svld_dlopen=yes
17839 else
17840   echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 ac_cv_lib_svld_dlopen=no
17844 fi
17845 rm -f conftest.err conftest.$ac_objext \
17846       conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17848 fi
17849 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17850 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17851 if test $ac_cv_lib_svld_dlopen = yes; then
17852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17853 else
17854   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17855 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17857   echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859   ac_check_lib_save_LIBS=$LIBS
17860 LIBS="-ldld  $LIBS"
17861 cat >conftest.$ac_ext <<_ACEOF
17862 /* confdefs.h.  */
17863 _ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h.  */
17867
17868 /* Override any gcc2 internal prototype to avoid an error.  */
17869 #ifdef __cplusplus
17870 extern "C"
17871 #endif
17872 /* We use char because int might match the return type of a gcc2
17873    builtin and then its argument prototype would still apply.  */
17874 char dld_link ();
17875 int
17876 main ()
17877 {
17878 dld_link ();
17879   ;
17880   return 0;
17881 }
17882 _ACEOF
17883 rm -f conftest.$ac_objext conftest$ac_exeext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17885   (eval $ac_link) 2>conftest.er1
17886   ac_status=$?
17887   grep -v '^ *+' conftest.er1 >conftest.err
17888   rm -f conftest.er1
17889   cat conftest.err >&5
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); } &&
17892          { ac_try='test -z "$ac_cxx_werror_flag"
17893                          || test ! -s conftest.err'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; } &&
17899          { ac_try='test -s conftest$ac_exeext'
17900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901   (eval $ac_try) 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); }; }; then
17905   ac_cv_lib_dld_dld_link=yes
17906 else
17907   echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17909
17910 ac_cv_lib_dld_dld_link=no
17911 fi
17912 rm -f conftest.err conftest.$ac_objext \
17913       conftest$ac_exeext conftest.$ac_ext
17914 LIBS=$ac_check_lib_save_LIBS
17915 fi
17916 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17917 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17918 if test $ac_cv_lib_dld_dld_link = yes; then
17919   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17920 fi
17921
17922
17923 fi
17924
17925
17926 fi
17927
17928
17929 fi
17930
17931
17932 fi
17933
17934
17935 fi
17936
17937     ;;
17938   esac
17939
17940   if test "x$lt_cv_dlopen" != xno; then
17941     enable_dlopen=yes
17942   else
17943     enable_dlopen=no
17944   fi
17945
17946   case $lt_cv_dlopen in
17947   dlopen)
17948     save_CPPFLAGS="$CPPFLAGS"
17949     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17950
17951     save_LDFLAGS="$LDFLAGS"
17952     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17953
17954     save_LIBS="$LIBS"
17955     LIBS="$lt_cv_dlopen_libs $LIBS"
17956
17957     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17958 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17959 if test "${lt_cv_dlopen_self+set}" = set; then
17960   echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962           if test "$cross_compiling" = yes; then :
17963   lt_cv_dlopen_self=cross
17964 else
17965   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17966   lt_status=$lt_dlunknown
17967   cat > conftest.$ac_ext <<EOF
17968 #line 17968 "configure"
17969 #include "confdefs.h"
17970
17971 #if HAVE_DLFCN_H
17972 #include <dlfcn.h>
17973 #endif
17974
17975 #include <stdio.h>
17976
17977 #ifdef RTLD_GLOBAL
17978 #  define LT_DLGLOBAL           RTLD_GLOBAL
17979 #else
17980 #  ifdef DL_GLOBAL
17981 #    define LT_DLGLOBAL         DL_GLOBAL
17982 #  else
17983 #    define LT_DLGLOBAL         0
17984 #  endif
17985 #endif
17986
17987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17988    find out it does not work in some platform. */
17989 #ifndef LT_DLLAZY_OR_NOW
17990 #  ifdef RTLD_LAZY
17991 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17992 #  else
17993 #    ifdef DL_LAZY
17994 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17995 #    else
17996 #      ifdef RTLD_NOW
17997 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17998 #      else
17999 #        ifdef DL_NOW
18000 #          define LT_DLLAZY_OR_NOW      DL_NOW
18001 #        else
18002 #          define LT_DLLAZY_OR_NOW      0
18003 #        endif
18004 #      endif
18005 #    endif
18006 #  endif
18007 #endif
18008
18009 #ifdef __cplusplus
18010 extern "C" void exit (int);
18011 #endif
18012
18013 void fnord() { int i=42;}
18014 int main ()
18015 {
18016   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18017   int status = $lt_dlunknown;
18018
18019   if (self)
18020     {
18021       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18022       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18023       /* dlclose (self); */
18024     }
18025
18026     exit (status);
18027 }
18028 EOF
18029   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030   (eval $ac_link) 2>&5
18031   ac_status=$?
18032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18034     (./conftest; exit; ) 2>/dev/null
18035     lt_status=$?
18036     case x$lt_status in
18037       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18038       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18039       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18040     esac
18041   else :
18042     # compilation failed
18043     lt_cv_dlopen_self=no
18044   fi
18045 fi
18046 rm -fr conftest*
18047
18048
18049 fi
18050 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18051 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18052
18053     if test "x$lt_cv_dlopen_self" = xyes; then
18054       LDFLAGS="$LDFLAGS $link_static_flag"
18055       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18056 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18057 if test "${lt_cv_dlopen_self_static+set}" = set; then
18058   echo $ECHO_N "(cached) $ECHO_C" >&6
18059 else
18060           if test "$cross_compiling" = yes; then :
18061   lt_cv_dlopen_self_static=cross
18062 else
18063   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18064   lt_status=$lt_dlunknown
18065   cat > conftest.$ac_ext <<EOF
18066 #line 18066 "configure"
18067 #include "confdefs.h"
18068
18069 #if HAVE_DLFCN_H
18070 #include <dlfcn.h>
18071 #endif
18072
18073 #include <stdio.h>
18074
18075 #ifdef RTLD_GLOBAL
18076 #  define LT_DLGLOBAL           RTLD_GLOBAL
18077 #else
18078 #  ifdef DL_GLOBAL
18079 #    define LT_DLGLOBAL         DL_GLOBAL
18080 #  else
18081 #    define LT_DLGLOBAL         0
18082 #  endif
18083 #endif
18084
18085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18086    find out it does not work in some platform. */
18087 #ifndef LT_DLLAZY_OR_NOW
18088 #  ifdef RTLD_LAZY
18089 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18090 #  else
18091 #    ifdef DL_LAZY
18092 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18093 #    else
18094 #      ifdef RTLD_NOW
18095 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18096 #      else
18097 #        ifdef DL_NOW
18098 #          define LT_DLLAZY_OR_NOW      DL_NOW
18099 #        else
18100 #          define LT_DLLAZY_OR_NOW      0
18101 #        endif
18102 #      endif
18103 #    endif
18104 #  endif
18105 #endif
18106
18107 #ifdef __cplusplus
18108 extern "C" void exit (int);
18109 #endif
18110
18111 void fnord() { int i=42;}
18112 int main ()
18113 {
18114   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18115   int status = $lt_dlunknown;
18116
18117   if (self)
18118     {
18119       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18120       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18121       /* dlclose (self); */
18122     }
18123
18124     exit (status);
18125 }
18126 EOF
18127   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18128   (eval $ac_link) 2>&5
18129   ac_status=$?
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18132     (./conftest; exit; ) 2>/dev/null
18133     lt_status=$?
18134     case x$lt_status in
18135       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18136       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18137       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18138     esac
18139   else :
18140     # compilation failed
18141     lt_cv_dlopen_self_static=no
18142   fi
18143 fi
18144 rm -fr conftest*
18145
18146
18147 fi
18148 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18149 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18150     fi
18151
18152     CPPFLAGS="$save_CPPFLAGS"
18153     LDFLAGS="$save_LDFLAGS"
18154     LIBS="$save_LIBS"
18155     ;;
18156   esac
18157
18158   case $lt_cv_dlopen_self in
18159   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18160   *) enable_dlopen_self=unknown ;;
18161   esac
18162
18163   case $lt_cv_dlopen_self_static in
18164   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18165   *) enable_dlopen_self_static=unknown ;;
18166   esac
18167 fi
18168
18169
18170 # The else clause should only fire when bootstrapping the
18171 # libtool distribution, otherwise you forgot to ship ltmain.sh
18172 # with your package, and you will get complaints that there are
18173 # no rules to generate ltmain.sh.
18174 if test -f "$ltmain"; then
18175   # See if we are running on zsh, and set the options which allow our commands through
18176   # without removal of \ escapes.
18177   if test -n "${ZSH_VERSION+set}" ; then
18178     setopt NO_GLOB_SUBST
18179   fi
18180   # Now quote all the things that may contain metacharacters while being
18181   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18182   # variables and quote the copies for generation of the libtool script.
18183   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18184     SED SHELL STRIP \
18185     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18186     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18187     deplibs_check_method reload_flag reload_cmds need_locks \
18188     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18189     lt_cv_sys_global_symbol_to_c_name_address \
18190     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18191     old_postinstall_cmds old_postuninstall_cmds \
18192     compiler_CXX \
18193     CC_CXX \
18194     LD_CXX \
18195     lt_prog_compiler_wl_CXX \
18196     lt_prog_compiler_pic_CXX \
18197     lt_prog_compiler_static_CXX \
18198     lt_prog_compiler_no_builtin_flag_CXX \
18199     export_dynamic_flag_spec_CXX \
18200     thread_safe_flag_spec_CXX \
18201     whole_archive_flag_spec_CXX \
18202     enable_shared_with_static_runtimes_CXX \
18203     old_archive_cmds_CXX \
18204     old_archive_from_new_cmds_CXX \
18205     predep_objects_CXX \
18206     postdep_objects_CXX \
18207     predeps_CXX \
18208     postdeps_CXX \
18209     compiler_lib_search_path_CXX \
18210     archive_cmds_CXX \
18211     archive_expsym_cmds_CXX \
18212     postinstall_cmds_CXX \
18213     postuninstall_cmds_CXX \
18214     old_archive_from_expsyms_cmds_CXX \
18215     allow_undefined_flag_CXX \
18216     no_undefined_flag_CXX \
18217     export_symbols_cmds_CXX \
18218     hardcode_libdir_flag_spec_CXX \
18219     hardcode_libdir_flag_spec_ld_CXX \
18220     hardcode_libdir_separator_CXX \
18221     hardcode_automatic_CXX \
18222     module_cmds_CXX \
18223     module_expsym_cmds_CXX \
18224     lt_cv_prog_compiler_c_o_CXX \
18225     exclude_expsyms_CXX \
18226     include_expsyms_CXX; do
18227
18228     case $var in
18229     old_archive_cmds_CXX | \
18230     old_archive_from_new_cmds_CXX | \
18231     archive_cmds_CXX | \
18232     archive_expsym_cmds_CXX | \
18233     module_cmds_CXX | \
18234     module_expsym_cmds_CXX | \
18235     old_archive_from_expsyms_cmds_CXX | \
18236     export_symbols_cmds_CXX | \
18237     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18238     postinstall_cmds | postuninstall_cmds | \
18239     old_postinstall_cmds | old_postuninstall_cmds | \
18240     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18241       # Double-quote double-evaled strings.
18242       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18243       ;;
18244     *)
18245       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18246       ;;
18247     esac
18248   done
18249
18250   case $lt_echo in
18251   *'\$0 --fallback-echo"')
18252     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18253     ;;
18254   esac
18255
18256 cfgfile="$ofile"
18257
18258   cat <<__EOF__ >> "$cfgfile"
18259 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18260
18261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18262
18263 # Shell to use when invoking shell scripts.
18264 SHELL=$lt_SHELL
18265
18266 # Whether or not to build shared libraries.
18267 build_libtool_libs=$enable_shared
18268
18269 # Whether or not to build static libraries.
18270 build_old_libs=$enable_static
18271
18272 # Whether or not to add -lc for building shared libraries.
18273 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18274
18275 # Whether or not to disallow shared libs when runtime libs are static
18276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18277
18278 # Whether or not to optimize for fast installation.
18279 fast_install=$enable_fast_install
18280
18281 # The host system.
18282 host_alias=$host_alias
18283 host=$host
18284
18285 # An echo program that does not interpret backslashes.
18286 echo=$lt_echo
18287
18288 # The archiver.
18289 AR=$lt_AR
18290 AR_FLAGS=$lt_AR_FLAGS
18291
18292 # A C compiler.
18293 LTCC=$lt_LTCC
18294
18295 # A language-specific compiler.
18296 CC=$lt_compiler_CXX
18297
18298 # Is the compiler the GNU C compiler?
18299 with_gcc=$GCC_CXX
18300
18301 # An ERE matcher.
18302 EGREP=$lt_EGREP
18303
18304 # The linker used to build libraries.
18305 LD=$lt_LD_CXX
18306
18307 # Whether we need hard or soft links.
18308 LN_S=$lt_LN_S
18309
18310 # A BSD-compatible nm program.
18311 NM=$lt_NM
18312
18313 # A symbol stripping program
18314 STRIP=$lt_STRIP
18315
18316 # Used to examine libraries when file_magic_cmd begins "file"
18317 MAGIC_CMD=$MAGIC_CMD
18318
18319 # Used on cygwin: DLL creation program.
18320 DLLTOOL="$DLLTOOL"
18321
18322 # Used on cygwin: object dumper.
18323 OBJDUMP="$OBJDUMP"
18324
18325 # Used on cygwin: assembler.
18326 AS="$AS"
18327
18328 # The name of the directory that contains temporary libtool files.
18329 objdir=$objdir
18330
18331 # How to create reloadable object files.
18332 reload_flag=$lt_reload_flag
18333 reload_cmds=$lt_reload_cmds
18334
18335 # How to pass a linker flag through the compiler.
18336 wl=$lt_lt_prog_compiler_wl_CXX
18337
18338 # Object file suffix (normally "o").
18339 objext="$ac_objext"
18340
18341 # Old archive suffix (normally "a").
18342 libext="$libext"
18343
18344 # Shared library suffix (normally ".so").
18345 shrext_cmds='$shrext_cmds'
18346
18347 # Executable file suffix (normally "").
18348 exeext="$exeext"
18349
18350 # Additional compiler flags for building library objects.
18351 pic_flag=$lt_lt_prog_compiler_pic_CXX
18352 pic_mode=$pic_mode
18353
18354 # What is the maximum length of a command?
18355 max_cmd_len=$lt_cv_sys_max_cmd_len
18356
18357 # Does compiler simultaneously support -c and -o options?
18358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18359
18360 # Must we lock files when doing compilation ?
18361 need_locks=$lt_need_locks
18362
18363 # Do we need the lib prefix for modules?
18364 need_lib_prefix=$need_lib_prefix
18365
18366 # Do we need a version for libraries?
18367 need_version=$need_version
18368
18369 # Whether dlopen is supported.
18370 dlopen_support=$enable_dlopen
18371
18372 # Whether dlopen of programs is supported.
18373 dlopen_self=$enable_dlopen_self
18374
18375 # Whether dlopen of statically linked programs is supported.
18376 dlopen_self_static=$enable_dlopen_self_static
18377
18378 # Compiler flag to prevent dynamic linking.
18379 link_static_flag=$lt_lt_prog_compiler_static_CXX
18380
18381 # Compiler flag to turn off builtin functions.
18382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18383
18384 # Compiler flag to allow reflexive dlopens.
18385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18386
18387 # Compiler flag to generate shared objects directly from archives.
18388 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18389
18390 # Compiler flag to generate thread-safe objects.
18391 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18392
18393 # Library versioning type.
18394 version_type=$version_type
18395
18396 # Format of library name prefix.
18397 libname_spec=$lt_libname_spec
18398
18399 # List of archive names.  First name is the real one, the rest are links.
18400 # The last name is the one that the linker finds with -lNAME.
18401 library_names_spec=$lt_library_names_spec
18402
18403 # The coded name of the library, if different from the real name.
18404 soname_spec=$lt_soname_spec
18405
18406 # Commands used to build and install an old-style archive.
18407 RANLIB=$lt_RANLIB
18408 old_archive_cmds=$lt_old_archive_cmds_CXX
18409 old_postinstall_cmds=$lt_old_postinstall_cmds
18410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18411
18412 # Create an old-style archive from a shared archive.
18413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18414
18415 # Create a temporary old-style archive to link instead of a shared archive.
18416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18417
18418 # Commands used to build and install a shared archive.
18419 archive_cmds=$lt_archive_cmds_CXX
18420 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18421 postinstall_cmds=$lt_postinstall_cmds
18422 postuninstall_cmds=$lt_postuninstall_cmds
18423
18424 # Commands used to build a loadable module (assumed same as above if empty)
18425 module_cmds=$lt_module_cmds_CXX
18426 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18427
18428 # Commands to strip libraries.
18429 old_striplib=$lt_old_striplib
18430 striplib=$lt_striplib
18431
18432 # Dependencies to place before the objects being linked to create a
18433 # shared library.
18434 predep_objects=$lt_predep_objects_CXX
18435
18436 # Dependencies to place after the objects being linked to create a
18437 # shared library.
18438 postdep_objects=$lt_postdep_objects_CXX
18439
18440 # Dependencies to place before the objects being linked to create a
18441 # shared library.
18442 predeps=$lt_predeps_CXX
18443
18444 # Dependencies to place after the objects being linked to create a
18445 # shared library.
18446 postdeps=$lt_postdeps_CXX
18447
18448 # The library search path used internally by the compiler when linking
18449 # a shared library.
18450 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18451
18452 # Method to check whether dependent libraries are shared objects.
18453 deplibs_check_method=$lt_deplibs_check_method
18454
18455 # Command to use when deplibs_check_method == file_magic.
18456 file_magic_cmd=$lt_file_magic_cmd
18457
18458 # Flag that allows shared libraries with undefined symbols to be built.
18459 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18460
18461 # Flag that forces no undefined symbols.
18462 no_undefined_flag=$lt_no_undefined_flag_CXX
18463
18464 # Commands used to finish a libtool library installation in a directory.
18465 finish_cmds=$lt_finish_cmds
18466
18467 # Same as above, but a single script fragment to be evaled but not shown.
18468 finish_eval=$lt_finish_eval
18469
18470 # Take the output of nm and produce a listing of raw symbols and C names.
18471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18472
18473 # Transform the output of nm in a proper C declaration
18474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18475
18476 # Transform the output of nm in a C name address pair
18477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18478
18479 # This is the shared library runtime path variable.
18480 runpath_var=$runpath_var
18481
18482 # This is the shared library path variable.
18483 shlibpath_var=$shlibpath_var
18484
18485 # Is shlibpath searched before the hard-coded library search path?
18486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18487
18488 # How to hardcode a shared library path into an executable.
18489 hardcode_action=$hardcode_action_CXX
18490
18491 # Whether we should hardcode library paths into libraries.
18492 hardcode_into_libs=$hardcode_into_libs
18493
18494 # Flag to hardcode \$libdir into a binary during linking.
18495 # This must work even if \$libdir does not exist.
18496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18497
18498 # If ld is used when linking, flag to hardcode \$libdir into
18499 # a binary during linking. This must work even if \$libdir does
18500 # not exist.
18501 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18502
18503 # Whether we need a single -rpath flag with a separated argument.
18504 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18505
18506 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18507 # resulting binary.
18508 hardcode_direct=$hardcode_direct_CXX
18509
18510 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18511 # resulting binary.
18512 hardcode_minus_L=$hardcode_minus_L_CXX
18513
18514 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18515 # the resulting binary.
18516 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18517
18518 # Set to yes if building a shared library automatically hardcodes DIR into the library
18519 # and all subsequent libraries and executables linked against it.
18520 hardcode_automatic=$hardcode_automatic_CXX
18521
18522 # Variables whose values should be saved in libtool wrapper scripts and
18523 # restored at relink time.
18524 variables_saved_for_relink="$variables_saved_for_relink"
18525
18526 # Whether libtool must link a program against all its dependency libraries.
18527 link_all_deplibs=$link_all_deplibs_CXX
18528
18529 # Compile-time system search path for libraries
18530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18531
18532 # Run-time system search path for libraries
18533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18534
18535 # Fix the shell variable \$srcfile for the compiler.
18536 fix_srcfile_path="$fix_srcfile_path_CXX"
18537
18538 # Set to yes if exported symbols are required.
18539 always_export_symbols=$always_export_symbols_CXX
18540
18541 # The commands to list exported symbols.
18542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18543
18544 # The commands to extract the exported symbol list from a shared archive.
18545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18546
18547 # Symbols that should not be listed in the preloaded symbols.
18548 exclude_expsyms=$lt_exclude_expsyms_CXX
18549
18550 # Symbols that must always be exported.
18551 include_expsyms=$lt_include_expsyms_CXX
18552
18553 # ### END LIBTOOL TAG CONFIG: $tagname
18554
18555 __EOF__
18556
18557
18558 else
18559   # If there is no Makefile yet, we rely on a make rule to execute
18560   # `config.status --recheck' to rerun these tests and create the
18561   # libtool script then.
18562   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18563   if test -f "$ltmain_in"; then
18564     test -f Makefile && make "$ltmain"
18565   fi
18566 fi
18567
18568
18569 ac_ext=c
18570 ac_cpp='$CPP $CPPFLAGS'
18571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18574
18575 CC=$lt_save_CC
18576 LDCXX=$LD
18577 LD=$lt_save_LD
18578 GCC=$lt_save_GCC
18579 with_gnu_ldcxx=$with_gnu_ld
18580 with_gnu_ld=$lt_save_with_gnu_ld
18581 lt_cv_path_LDCXX=$lt_cv_path_LD
18582 lt_cv_path_LD=$lt_save_path_LD
18583 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18584 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18585
18586         else
18587           tagname=""
18588         fi
18589         ;;
18590
18591       F77)
18592         if test -n "$F77" && test "X$F77" != "Xno"; then
18593
18594 ac_ext=f
18595 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18596 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18598
18599
18600 archive_cmds_need_lc_F77=no
18601 allow_undefined_flag_F77=
18602 always_export_symbols_F77=no
18603 archive_expsym_cmds_F77=
18604 export_dynamic_flag_spec_F77=
18605 hardcode_direct_F77=no
18606 hardcode_libdir_flag_spec_F77=
18607 hardcode_libdir_flag_spec_ld_F77=
18608 hardcode_libdir_separator_F77=
18609 hardcode_minus_L_F77=no
18610 hardcode_automatic_F77=no
18611 module_cmds_F77=
18612 module_expsym_cmds_F77=
18613 link_all_deplibs_F77=unknown
18614 old_archive_cmds_F77=$old_archive_cmds
18615 no_undefined_flag_F77=
18616 whole_archive_flag_spec_F77=
18617 enable_shared_with_static_runtimes_F77=no
18618
18619 # Source file extension for f77 test sources.
18620 ac_ext=f
18621
18622 # Object file extension for compiled f77 test sources.
18623 objext=o
18624 objext_F77=$objext
18625
18626 # Code to be used in simple compile tests
18627 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18628
18629 # Code to be used in simple link tests
18630 lt_simple_link_test_code="      program t\n      end\n"
18631
18632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18633
18634 # If no C compiler was specified, use CC.
18635 LTCC=${LTCC-"$CC"}
18636
18637 # Allow CC to be a program name with arguments.
18638 compiler=$CC
18639
18640
18641 # Allow CC to be a program name with arguments.
18642 lt_save_CC="$CC"
18643 CC=${F77-"f77"}
18644 compiler=$CC
18645 compiler_F77=$CC
18646 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18647
18648 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18649 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18650 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18651 echo "${ECHO_T}$can_build_shared" >&6
18652
18653 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18654 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18655 test "$can_build_shared" = "no" && enable_shared=no
18656
18657 # On AIX, shared libraries and static libraries use the same namespace, and
18658 # are all built from PIC.
18659 case "$host_os" in
18660 aix3*)
18661   test "$enable_shared" = yes && enable_static=no
18662   if test -n "$RANLIB"; then
18663     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18664     postinstall_cmds='$RANLIB $lib'
18665   fi
18666   ;;
18667 aix4* | aix5*)
18668   test "$enable_shared" = yes && enable_static=no
18669   ;;
18670 esac
18671 echo "$as_me:$LINENO: result: $enable_shared" >&5
18672 echo "${ECHO_T}$enable_shared" >&6
18673
18674 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18675 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18676 # Make sure either enable_shared or enable_static is yes.
18677 test "$enable_shared" = yes || enable_static=yes
18678 echo "$as_me:$LINENO: result: $enable_static" >&5
18679 echo "${ECHO_T}$enable_static" >&6
18680
18681 test "$ld_shlibs_F77" = no && can_build_shared=no
18682
18683 GCC_F77="$G77"
18684 LD_F77="$LD"
18685
18686 lt_prog_compiler_wl_F77=
18687 lt_prog_compiler_pic_F77=
18688 lt_prog_compiler_static_F77=
18689
18690 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18691 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18692
18693   if test "$GCC" = yes; then
18694     lt_prog_compiler_wl_F77='-Wl,'
18695     lt_prog_compiler_static_F77='-static'
18696
18697     case $host_os in
18698       aix*)
18699       # All AIX code is PIC.
18700       if test "$host_cpu" = ia64; then
18701         # AIX 5 now supports IA64 processor
18702         lt_prog_compiler_static_F77='-Bstatic'
18703       fi
18704       ;;
18705
18706     amigaos*)
18707       # FIXME: we need at least 68020 code to build shared libraries, but
18708       # adding the `-m68020' flag to GCC prevents building anything better,
18709       # like `-m68040'.
18710       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18711       ;;
18712
18713     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18714       # PIC is the default for these OSes.
18715       ;;
18716
18717     mingw* | pw32* | os2*)
18718       # This hack is so that the source file can tell whether it is being
18719       # built for inclusion in a dll (and should export symbols for example).
18720       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18721       ;;
18722
18723     darwin* | rhapsody*)
18724       # PIC is the default on this platform
18725       # Common symbols not allowed in MH_DYLIB files
18726       lt_prog_compiler_pic_F77='-fno-common'
18727       ;;
18728
18729     msdosdjgpp*)
18730       # Just because we use GCC doesn't mean we suddenly get shared libraries
18731       # on systems that don't support them.
18732       lt_prog_compiler_can_build_shared_F77=no
18733       enable_shared=no
18734       ;;
18735
18736     sysv4*MP*)
18737       if test -d /usr/nec; then
18738         lt_prog_compiler_pic_F77=-Kconform_pic
18739       fi
18740       ;;
18741
18742     hpux*)
18743       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18744       # not for PA HP-UX.
18745       case "$host_cpu" in
18746       hppa*64*|ia64*)
18747         # +Z the default
18748         ;;
18749       *)
18750         lt_prog_compiler_pic_F77='-fPIC'
18751         ;;
18752       esac
18753       ;;
18754
18755     *)
18756       lt_prog_compiler_pic_F77='-fPIC'
18757       ;;
18758     esac
18759   else
18760     # PORTME Check for flag to pass linker flags through the system compiler.
18761     case $host_os in
18762     aix*)
18763       lt_prog_compiler_wl_F77='-Wl,'
18764       if test "$host_cpu" = ia64; then
18765         # AIX 5 now supports IA64 processor
18766         lt_prog_compiler_static_F77='-Bstatic'
18767       else
18768         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18769       fi
18770       ;;
18771       darwin*)
18772         # PIC is the default on this platform
18773         # Common symbols not allowed in MH_DYLIB files
18774        case "$cc_basename" in
18775          xlc*)
18776          lt_prog_compiler_pic_F77='-qnocommon'
18777          lt_prog_compiler_wl_F77='-Wl,'
18778          ;;
18779        esac
18780        ;;
18781
18782     mingw* | pw32* | os2*)
18783       # This hack is so that the source file can tell whether it is being
18784       # built for inclusion in a dll (and should export symbols for example).
18785       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18786       ;;
18787
18788     hpux9* | hpux10* | hpux11*)
18789       lt_prog_compiler_wl_F77='-Wl,'
18790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18791       # not for PA HP-UX.
18792       case "$host_cpu" in
18793       hppa*64*|ia64*)
18794         # +Z the default
18795         ;;
18796       *)
18797         lt_prog_compiler_pic_F77='+Z'
18798         ;;
18799       esac
18800       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18801       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18802       ;;
18803
18804     irix5* | irix6* | nonstopux*)
18805       lt_prog_compiler_wl_F77='-Wl,'
18806       # PIC (with -KPIC) is the default.
18807       lt_prog_compiler_static_F77='-non_shared'
18808       ;;
18809
18810     newsos6)
18811       lt_prog_compiler_pic_F77='-KPIC'
18812       lt_prog_compiler_static_F77='-Bstatic'
18813       ;;
18814
18815     linux*)
18816       case $CC in
18817       icc* | ecc*)
18818         lt_prog_compiler_wl_F77='-Wl,'
18819         lt_prog_compiler_pic_F77='-KPIC'
18820         lt_prog_compiler_static_F77='-static'
18821         ;;
18822       ccc*)
18823         lt_prog_compiler_wl_F77='-Wl,'
18824         # All Alpha code is PIC.
18825         lt_prog_compiler_static_F77='-non_shared'
18826         ;;
18827       esac
18828       ;;
18829
18830     osf3* | osf4* | osf5*)
18831       lt_prog_compiler_wl_F77='-Wl,'
18832       # All OSF/1 code is PIC.
18833       lt_prog_compiler_static_F77='-non_shared'
18834       ;;
18835
18836     sco3.2v5*)
18837       lt_prog_compiler_pic_F77='-Kpic'
18838       lt_prog_compiler_static_F77='-dn'
18839       ;;
18840
18841     solaris*)
18842       lt_prog_compiler_wl_F77='-Wl,'
18843       lt_prog_compiler_pic_F77='-KPIC'
18844       lt_prog_compiler_static_F77='-Bstatic'
18845       ;;
18846
18847     sunos4*)
18848       lt_prog_compiler_wl_F77='-Qoption ld '
18849       lt_prog_compiler_pic_F77='-PIC'
18850       lt_prog_compiler_static_F77='-Bstatic'
18851       ;;
18852
18853     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18854       lt_prog_compiler_wl_F77='-Wl,'
18855       lt_prog_compiler_pic_F77='-KPIC'
18856       lt_prog_compiler_static_F77='-Bstatic'
18857       ;;
18858
18859     sysv4*MP*)
18860       if test -d /usr/nec ;then
18861         lt_prog_compiler_pic_F77='-Kconform_pic'
18862         lt_prog_compiler_static_F77='-Bstatic'
18863       fi
18864       ;;
18865
18866     uts4*)
18867       lt_prog_compiler_pic_F77='-pic'
18868       lt_prog_compiler_static_F77='-Bstatic'
18869       ;;
18870
18871     *)
18872       lt_prog_compiler_can_build_shared_F77=no
18873       ;;
18874     esac
18875   fi
18876
18877 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18878 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18879
18880 #
18881 # Check to make sure the PIC flag actually works.
18882 #
18883 if test -n "$lt_prog_compiler_pic_F77"; then
18884
18885 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18886 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18887 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   lt_prog_compiler_pic_works_F77=no
18891   ac_outfile=conftest.$ac_objext
18892    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18893    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18894    # Insert the option either (1) after the last *FLAGS variable, or
18895    # (2) before a word containing "conftest.", or (3) at the end.
18896    # Note that $ac_compile itself does not contain backslashes and begins
18897    # with a dollar sign (not a hyphen), so the echo should work correctly.
18898    # The option is referenced via a variable to avoid confusing sed.
18899    lt_compile=`echo "$ac_compile" | $SED \
18900    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18901    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18902    -e 's:$: $lt_compiler_flag:'`
18903    (eval echo "\"\$as_me:18903: $lt_compile\"" >&5)
18904    (eval "$lt_compile" 2>conftest.err)
18905    ac_status=$?
18906    cat conftest.err >&5
18907    echo "$as_me:18907: \$? = $ac_status" >&5
18908    if (exit $ac_status) && test -s "$ac_outfile"; then
18909      # The compiler can only warn and ignore the option if not recognized
18910      # So say no if there are warnings
18911      if test ! -s conftest.err; then
18912        lt_prog_compiler_pic_works_F77=yes
18913      fi
18914    fi
18915    $rm conftest*
18916
18917 fi
18918 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18919 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18920
18921 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18922     case $lt_prog_compiler_pic_F77 in
18923      "" | " "*) ;;
18924      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18925      esac
18926 else
18927     lt_prog_compiler_pic_F77=
18928      lt_prog_compiler_can_build_shared_F77=no
18929 fi
18930
18931 fi
18932 case "$host_os" in
18933   # For platforms which do not support PIC, -DPIC is meaningless:
18934   *djgpp*)
18935     lt_prog_compiler_pic_F77=
18936     ;;
18937   *)
18938     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18939     ;;
18940 esac
18941
18942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18944 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947   lt_cv_prog_compiler_c_o_F77=no
18948    $rm -r conftest 2>/dev/null
18949    mkdir conftest
18950    cd conftest
18951    mkdir out
18952    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18953
18954    lt_compiler_flag="-o out/conftest2.$ac_objext"
18955    # Insert the option either (1) after the last *FLAGS variable, or
18956    # (2) before a word containing "conftest.", or (3) at the end.
18957    # Note that $ac_compile itself does not contain backslashes and begins
18958    # with a dollar sign (not a hyphen), so the echo should work correctly.
18959    lt_compile=`echo "$ac_compile" | $SED \
18960    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18962    -e 's:$: $lt_compiler_flag:'`
18963    (eval echo "\"\$as_me:18963: $lt_compile\"" >&5)
18964    (eval "$lt_compile" 2>out/conftest.err)
18965    ac_status=$?
18966    cat out/conftest.err >&5
18967    echo "$as_me:18967: \$? = $ac_status" >&5
18968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18969    then
18970      # The compiler can only warn and ignore the option if not recognized
18971      # So say no if there are warnings
18972      if test ! -s out/conftest.err; then
18973        lt_cv_prog_compiler_c_o_F77=yes
18974      fi
18975    fi
18976    chmod u+w .
18977    $rm conftest*
18978    # SGI C++ compiler will create directory out/ii_files/ for
18979    # template instantiation
18980    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18981    $rm out/* && rmdir out
18982    cd ..
18983    rmdir conftest
18984    $rm conftest*
18985
18986 fi
18987 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18989
18990
18991 hard_links="nottested"
18992 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18993   # do not overwrite the value of need_locks provided by the user
18994   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18996   hard_links=yes
18997   $rm conftest*
18998   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18999   touch conftest.a
19000   ln conftest.a conftest.b 2>&5 || hard_links=no
19001   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19002   echo "$as_me:$LINENO: result: $hard_links" >&5
19003 echo "${ECHO_T}$hard_links" >&6
19004   if test "$hard_links" = no; then
19005     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19007     need_locks=warn
19008   fi
19009 else
19010   need_locks=no
19011 fi
19012
19013 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19015
19016   runpath_var=
19017   allow_undefined_flag_F77=
19018   enable_shared_with_static_runtimes_F77=no
19019   archive_cmds_F77=
19020   archive_expsym_cmds_F77=
19021   old_archive_From_new_cmds_F77=
19022   old_archive_from_expsyms_cmds_F77=
19023   export_dynamic_flag_spec_F77=
19024   whole_archive_flag_spec_F77=
19025   thread_safe_flag_spec_F77=
19026   hardcode_libdir_flag_spec_F77=
19027   hardcode_libdir_flag_spec_ld_F77=
19028   hardcode_libdir_separator_F77=
19029   hardcode_direct_F77=no
19030   hardcode_minus_L_F77=no
19031   hardcode_shlibpath_var_F77=unsupported
19032   link_all_deplibs_F77=unknown
19033   hardcode_automatic_F77=no
19034   module_cmds_F77=
19035   module_expsym_cmds_F77=
19036   always_export_symbols_F77=no
19037   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19038   # include_expsyms should be a list of space-separated symbols to be *always*
19039   # included in the symbol list
19040   include_expsyms_F77=
19041   # exclude_expsyms can be an extended regexp of symbols to exclude
19042   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19043   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19044   # as well as any symbol that contains `d'.
19045   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19046   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19047   # platforms (ab)use it in PIC code, but their linkers get confused if
19048   # the symbol is explicitly referenced.  Since portable code cannot
19049   # rely on this symbol name, it's probably fine to never include it in
19050   # preloaded symbol tables.
19051   extract_expsyms_cmds=
19052
19053   case $host_os in
19054   cygwin* | mingw* | pw32*)
19055     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19056     # When not using gcc, we currently assume that we are using
19057     # Microsoft Visual C++.
19058     if test "$GCC" != yes; then
19059       with_gnu_ld=no
19060     fi
19061     ;;
19062   openbsd*)
19063     with_gnu_ld=no
19064     ;;
19065   esac
19066
19067   ld_shlibs_F77=yes
19068   if test "$with_gnu_ld" = yes; then
19069     # If archive_cmds runs LD, not CC, wlarc should be empty
19070     wlarc='${wl}'
19071
19072     # See if GNU ld supports shared libraries.
19073     case $host_os in
19074     aix3* | aix4* | aix5*)
19075       # On AIX/PPC, the GNU linker is very broken
19076       if test "$host_cpu" != ia64; then
19077         ld_shlibs_F77=no
19078         cat <<EOF 1>&2
19079
19080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19081 *** to be unable to reliably create shared libraries on AIX.
19082 *** Therefore, libtool is disabling shared libraries support.  If you
19083 *** really care for shared libraries, you may want to modify your PATH
19084 *** so that a non-GNU linker is found, and then restart.
19085
19086 EOF
19087       fi
19088       ;;
19089
19090     amigaos*)
19091       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)'
19092       hardcode_libdir_flag_spec_F77='-L$libdir'
19093       hardcode_minus_L_F77=yes
19094
19095       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19096       # that the semantics of dynamic libraries on AmigaOS, at least up
19097       # to version 4, is to share data among multiple programs linked
19098       # with the same dynamic library.  Since this doesn't match the
19099       # behavior of shared libraries on other platforms, we can't use
19100       # them.
19101       ld_shlibs_F77=no
19102       ;;
19103
19104     beos*)
19105       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19106         allow_undefined_flag_F77=unsupported
19107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19108         # support --undefined.  This deserves some investigation.  FIXME
19109         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110       else
19111         ld_shlibs_F77=no
19112       fi
19113       ;;
19114
19115     cygwin* | mingw* | pw32*)
19116       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19117       # as there is no search path for DLLs.
19118       hardcode_libdir_flag_spec_F77='-L$libdir'
19119       allow_undefined_flag_F77=unsupported
19120       always_export_symbols_F77=no
19121       enable_shared_with_static_runtimes_F77=yes
19122       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19123
19124       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19125         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19126         # If the export-symbols file already is a .def file (1st line
19127         # is EXPORTS), use it as is; otherwise, prepend...
19128         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19129           cp $export_symbols $output_objdir/$soname.def;
19130         else
19131           echo EXPORTS > $output_objdir/$soname.def;
19132           cat $export_symbols >> $output_objdir/$soname.def;
19133         fi~
19134         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19135       else
19136         ld_shlibs=no
19137       fi
19138       ;;
19139
19140     netbsd*)
19141       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19142         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19143         wlarc=
19144       else
19145         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19146         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19147       fi
19148       ;;
19149
19150     solaris* | sysv5*)
19151       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19152         ld_shlibs_F77=no
19153         cat <<EOF 1>&2
19154
19155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19156 *** create shared libraries on Solaris systems.  Therefore, libtool
19157 *** is disabling shared libraries support.  We urge you to upgrade GNU
19158 *** binutils to release 2.9.1 or newer.  Another option is to modify
19159 *** your PATH or compiler configuration so that the native linker is
19160 *** used, and then restart.
19161
19162 EOF
19163       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19164         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19166       else
19167         ld_shlibs_F77=no
19168       fi
19169       ;;
19170
19171     sunos4*)
19172       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19173       wlarc=
19174       hardcode_direct_F77=yes
19175       hardcode_shlibpath_var_F77=no
19176       ;;
19177
19178   linux*)
19179     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19180         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181         archive_cmds_F77="$tmp_archive_cmds"
19182       supports_anon_versioning=no
19183       case `$LD -v 2>/dev/null` in
19184         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19185         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19186         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19187         *\ 2.11.*) ;; # other 2.11 versions
19188         *) supports_anon_versioning=yes ;;
19189       esac
19190       if test $supports_anon_versioning = yes; then
19191         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19193 $echo "local: *; };" >> $output_objdir/$libname.ver~
19194         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19195       else
19196         archive_expsym_cmds_F77="$tmp_archive_cmds"
19197       fi
19198     else
19199       ld_shlibs_F77=no
19200     fi
19201     ;;
19202
19203     *)
19204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19205         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19206         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19207       else
19208         ld_shlibs_F77=no
19209       fi
19210       ;;
19211     esac
19212
19213     if test "$ld_shlibs_F77" = yes; then
19214       runpath_var=LD_RUN_PATH
19215       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19216       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19217       # ancient GNU ld didn't support --whole-archive et. al.
19218       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19219         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19220       else
19221         whole_archive_flag_spec_F77=
19222       fi
19223     fi
19224   else
19225     # PORTME fill in a description of your system's linker (not GNU ld)
19226     case $host_os in
19227     aix3*)
19228       allow_undefined_flag_F77=unsupported
19229       always_export_symbols_F77=yes
19230       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'
19231       # Note: this linker hardcodes the directories in LIBPATH if there
19232       # are no directories specified by -L.
19233       hardcode_minus_L_F77=yes
19234       if test "$GCC" = yes && test -z "$link_static_flag"; then
19235         # Neither direct hardcoding nor static linking is supported with a
19236         # broken collect2.
19237         hardcode_direct_F77=unsupported
19238       fi
19239       ;;
19240
19241     aix4* | aix5*)
19242       if test "$host_cpu" = ia64; then
19243         # On IA64, the linker does run time linking by default, so we don't
19244         # have to do anything special.
19245         aix_use_runtimelinking=no
19246         exp_sym_flag='-Bexport'
19247         no_entry_flag=""
19248       else
19249         # If we're using GNU nm, then we don't want the "-C" option.
19250         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19251         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19252           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'
19253         else
19254           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'
19255         fi
19256         aix_use_runtimelinking=no
19257
19258         # Test if we are trying to use run time linking or normal
19259         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19260         # need to do runtime linking.
19261         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19262           for ld_flag in $LDFLAGS; do
19263           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19264             aix_use_runtimelinking=yes
19265             break
19266           fi
19267           done
19268         esac
19269
19270         exp_sym_flag='-bexport'
19271         no_entry_flag='-bnoentry'
19272       fi
19273
19274       # When large executables or shared objects are built, AIX ld can
19275       # have problems creating the table of contents.  If linking a library
19276       # or program results in "error TOC overflow" add -mminimal-toc to
19277       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19278       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19279
19280       archive_cmds_F77=''
19281       hardcode_direct_F77=yes
19282       hardcode_libdir_separator_F77=':'
19283       link_all_deplibs_F77=yes
19284
19285       if test "$GCC" = yes; then
19286         case $host_os in aix4.012|aix4.012.*)
19287         # We only want to do this on AIX 4.2 and lower, the check
19288         # below for broken collect2 doesn't work under 4.3+
19289           collect2name=`${CC} -print-prog-name=collect2`
19290           if test -f "$collect2name" && \
19291            strings "$collect2name" | grep resolve_lib_name >/dev/null
19292           then
19293           # We have reworked collect2
19294           hardcode_direct_F77=yes
19295           else
19296           # We have old collect2
19297           hardcode_direct_F77=unsupported
19298           # It fails to find uninstalled libraries when the uninstalled
19299           # path is not listed in the libpath.  Setting hardcode_minus_L
19300           # to unsupported forces relinking
19301           hardcode_minus_L_F77=yes
19302           hardcode_libdir_flag_spec_F77='-L$libdir'
19303           hardcode_libdir_separator_F77=
19304           fi
19305         esac
19306         shared_flag='-shared'
19307       else
19308         # not using gcc
19309         if test "$host_cpu" = ia64; then
19310         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19311         # chokes on -Wl,-G. The following line is correct:
19312           shared_flag='-G'
19313         else
19314         if test "$aix_use_runtimelinking" = yes; then
19315             shared_flag='${wl}-G'
19316           else
19317             shared_flag='${wl}-bM:SRE'
19318         fi
19319         fi
19320       fi
19321
19322       # It seems that -bexpall does not export symbols beginning with
19323       # underscore (_), so it is better to generate a list of symbols to export.
19324       always_export_symbols_F77=yes
19325       if test "$aix_use_runtimelinking" = yes; then
19326         # Warning - without using the other runtime loading flags (-brtl),
19327         # -berok will link without error, but may produce a broken library.
19328         allow_undefined_flag_F77='-berok'
19329        # Determine the default libpath from the value encoded in an empty executable.
19330        cat >conftest.$ac_ext <<_ACEOF
19331       program main
19332
19333       end
19334 _ACEOF
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337   (eval $ac_link) 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } &&
19344          { ac_try='test -z "$ac_f77_werror_flag"
19345                          || test ! -s conftest.err'
19346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347   (eval $ac_try) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; } &&
19351          { ac_try='test -s conftest$ac_exeext'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; }; then
19357
19358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19359 }'`
19360 # Check for a 64-bit object if we didn't find anything.
19361 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; }
19362 }'`; fi
19363 else
19364   echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19366
19367 fi
19368 rm -f conftest.err conftest.$ac_objext \
19369       conftest$ac_exeext conftest.$ac_ext
19370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19371
19372        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19373         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"
19374        else
19375         if test "$host_cpu" = ia64; then
19376           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19377           allow_undefined_flag_F77="-z nodefs"
19378           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"
19379         else
19380          # Determine the default libpath from the value encoded in an empty executable.
19381          cat >conftest.$ac_ext <<_ACEOF
19382       program main
19383
19384       end
19385 _ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388   (eval $ac_link) 2>conftest.er1
19389   ac_status=$?
19390   grep -v '^ *+' conftest.er1 >conftest.err
19391   rm -f conftest.er1
19392   cat conftest.err >&5
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); } &&
19395          { ac_try='test -z "$ac_f77_werror_flag"
19396                          || test ! -s conftest.err'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; } &&
19402          { ac_try='test -s conftest$ac_exeext'
19403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404   (eval $ac_try) 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; }; then
19408
19409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19410 }'`
19411 # Check for a 64-bit object if we didn't find anything.
19412 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; }
19413 }'`; fi
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 fi
19419 rm -f conftest.err conftest.$ac_objext \
19420       conftest$ac_exeext conftest.$ac_ext
19421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19422
19423          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19424           # Warning - without using the other run time loading flags,
19425           # -berok will link without error, but may produce a broken library.
19426           no_undefined_flag_F77=' ${wl}-bernotok'
19427           allow_undefined_flag_F77=' ${wl}-berok'
19428           # -bexpall does not export symbols beginning with underscore (_)
19429           always_export_symbols_F77=yes
19430           # Exported symbols can be pulled into shared objects from archives
19431           whole_archive_flag_spec_F77=' '
19432           archive_cmds_need_lc_F77=yes
19433           # This is similar to how AIX traditionally builds it's shared libraries.
19434           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'
19435         fi
19436       fi
19437       ;;
19438
19439     amigaos*)
19440       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)'
19441       hardcode_libdir_flag_spec_F77='-L$libdir'
19442       hardcode_minus_L_F77=yes
19443       # see comment about different semantics on the GNU ld section
19444       ld_shlibs_F77=no
19445       ;;
19446
19447     bsdi[45]*)
19448       export_dynamic_flag_spec_F77=-rdynamic
19449       ;;
19450
19451     cygwin* | mingw* | pw32*)
19452       # When not using gcc, we currently assume that we are using
19453       # Microsoft Visual C++.
19454       # hardcode_libdir_flag_spec is actually meaningless, as there is
19455       # no search path for DLLs.
19456       hardcode_libdir_flag_spec_F77=' '
19457       allow_undefined_flag_F77=unsupported
19458       # Tell ltmain to make .lib files, not .a files.
19459       libext=lib
19460       # Tell ltmain to make .dll files, not .so files.
19461       shrext_cmds=".dll"
19462       # FIXME: Setting linknames here is a bad hack.
19463       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19464       # The linker will automatically build a .lib file if we build a DLL.
19465       old_archive_From_new_cmds_F77='true'
19466       # FIXME: Should let the user specify the lib program.
19467       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19468       fix_srcfile_path='`cygpath -w "$srcfile"`'
19469       enable_shared_with_static_runtimes_F77=yes
19470       ;;
19471
19472     darwin* | rhapsody*)
19473       case "$host_os" in
19474         rhapsody* | darwin1.[012])
19475          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19476          ;;
19477        *) # Darwin 1.3 on
19478          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19479            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19480          else
19481            case ${MACOSX_DEPLOYMENT_TARGET} in
19482              10.[012])
19483                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19484                ;;
19485              10.*)
19486                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19487                ;;
19488            esac
19489          fi
19490          ;;
19491       esac
19492       archive_cmds_need_lc_F77=no
19493       hardcode_direct_F77=no
19494       hardcode_automatic_F77=yes
19495       hardcode_shlibpath_var_F77=unsupported
19496       whole_archive_flag_spec_F77=''
19497       link_all_deplibs_F77=yes
19498     if test "$GCC" = yes ; then
19499         output_verbose_link_cmd='echo'
19500         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19501       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19502       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19503       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}'
19504       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}'
19505     else
19506       case "$cc_basename" in
19507         xlc*)
19508          output_verbose_link_cmd='echo'
19509          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19510          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19511           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19512          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}'
19513           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}'
19514           ;;
19515        *)
19516          ld_shlibs_F77=no
19517           ;;
19518       esac
19519     fi
19520       ;;
19521
19522     dgux*)
19523       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19524       hardcode_libdir_flag_spec_F77='-L$libdir'
19525       hardcode_shlibpath_var_F77=no
19526       ;;
19527
19528     freebsd1*)
19529       ld_shlibs_F77=no
19530       ;;
19531
19532     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19533     # support.  Future versions do this automatically, but an explicit c++rt0.o
19534     # does not break anything, and helps significantly (at the cost of a little
19535     # extra space).
19536     freebsd2.2*)
19537       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19538       hardcode_libdir_flag_spec_F77='-R$libdir'
19539       hardcode_direct_F77=yes
19540       hardcode_shlibpath_var_F77=no
19541       ;;
19542
19543     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19544     freebsd2*)
19545       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19546       hardcode_direct_F77=yes
19547       hardcode_minus_L_F77=yes
19548       hardcode_shlibpath_var_F77=no
19549       ;;
19550
19551     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19552     freebsd* | kfreebsd*-gnu)
19553       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19554       hardcode_libdir_flag_spec_F77='-R$libdir'
19555       hardcode_direct_F77=yes
19556       hardcode_shlibpath_var_F77=no
19557       ;;
19558
19559     hpux9*)
19560       if test "$GCC" = yes; then
19561         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'
19562       else
19563         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'
19564       fi
19565       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19566       hardcode_libdir_separator_F77=:
19567       hardcode_direct_F77=yes
19568
19569       # hardcode_minus_L: Not really in the search PATH,
19570       # but as the default location of the library.
19571       hardcode_minus_L_F77=yes
19572       export_dynamic_flag_spec_F77='${wl}-E'
19573       ;;
19574
19575     hpux10* | hpux11*)
19576       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19577         case "$host_cpu" in
19578         hppa*64*|ia64*)
19579           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19580           ;;
19581         *)
19582           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19583           ;;
19584         esac
19585       else
19586         case "$host_cpu" in
19587         hppa*64*|ia64*)
19588           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19589           ;;
19590         *)
19591           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19592           ;;
19593         esac
19594       fi
19595       if test "$with_gnu_ld" = no; then
19596         case "$host_cpu" in
19597         hppa*64*)
19598           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19599           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19600           hardcode_libdir_separator_F77=:
19601           hardcode_direct_F77=no
19602           hardcode_shlibpath_var_F77=no
19603           ;;
19604         ia64*)
19605           hardcode_libdir_flag_spec_F77='-L$libdir'
19606           hardcode_direct_F77=no
19607           hardcode_shlibpath_var_F77=no
19608
19609           # hardcode_minus_L: Not really in the search PATH,
19610           # but as the default location of the library.
19611           hardcode_minus_L_F77=yes
19612           ;;
19613         *)
19614           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19615           hardcode_libdir_separator_F77=:
19616           hardcode_direct_F77=yes
19617           export_dynamic_flag_spec_F77='${wl}-E'
19618
19619           # hardcode_minus_L: Not really in the search PATH,
19620           # but as the default location of the library.
19621           hardcode_minus_L_F77=yes
19622           ;;
19623         esac
19624       fi
19625       ;;
19626
19627     irix5* | irix6* | nonstopux*)
19628       if test "$GCC" = yes; then
19629         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'
19630       else
19631         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'
19632         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19633       fi
19634       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19635       hardcode_libdir_separator_F77=:
19636       link_all_deplibs_F77=yes
19637       ;;
19638
19639     netbsd*)
19640       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19641         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19642       else
19643         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19644       fi
19645       hardcode_libdir_flag_spec_F77='-R$libdir'
19646       hardcode_direct_F77=yes
19647       hardcode_shlibpath_var_F77=no
19648       ;;
19649
19650     newsos6)
19651       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652       hardcode_direct_F77=yes
19653       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19654       hardcode_libdir_separator_F77=:
19655       hardcode_shlibpath_var_F77=no
19656       ;;
19657
19658     openbsd*)
19659       hardcode_direct_F77=yes
19660       hardcode_shlibpath_var_F77=no
19661       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19662         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19663         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19664         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19665         export_dynamic_flag_spec_F77='${wl}-E'
19666       else
19667        case $host_os in
19668          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19669            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19670            hardcode_libdir_flag_spec_F77='-R$libdir'
19671            ;;
19672          *)
19673            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19674            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19675            ;;
19676        esac
19677       fi
19678       ;;
19679
19680     os2*)
19681       hardcode_libdir_flag_spec_F77='-L$libdir'
19682       hardcode_minus_L_F77=yes
19683       allow_undefined_flag_F77=unsupported
19684       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'
19685       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19686       ;;
19687
19688     osf3*)
19689       if test "$GCC" = yes; then
19690         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19691         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'
19692       else
19693         allow_undefined_flag_F77=' -expect_unresolved \*'
19694         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'
19695       fi
19696       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19697       hardcode_libdir_separator_F77=:
19698       ;;
19699
19700     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19701       if test "$GCC" = yes; then
19702         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19703         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'
19704         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19705       else
19706         allow_undefined_flag_F77=' -expect_unresolved \*'
19707         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'
19708         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~
19709         $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'
19710
19711         # Both c and cxx compiler support -rpath directly
19712         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19713       fi
19714       hardcode_libdir_separator_F77=:
19715       ;;
19716
19717     sco3.2v5*)
19718       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719       hardcode_shlibpath_var_F77=no
19720       export_dynamic_flag_spec_F77='${wl}-Bexport'
19721       runpath_var=LD_RUN_PATH
19722       hardcode_runpath_var=yes
19723       ;;
19724
19725     solaris*)
19726       no_undefined_flag_F77=' -z text'
19727       if test "$GCC" = yes; then
19728         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19729         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19730           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19731       else
19732         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19733         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19734         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19735       fi
19736       hardcode_libdir_flag_spec_F77='-R$libdir'
19737       hardcode_shlibpath_var_F77=no
19738       case $host_os in
19739       solaris2.[0-5] | solaris2.[0-5].*) ;;
19740       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19741         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19742       esac
19743       link_all_deplibs_F77=yes
19744       ;;
19745
19746     sunos4*)
19747       if test "x$host_vendor" = xsequent; then
19748         # Use $CC to link under sequent, because it throws in some extra .o
19749         # files that make .init and .fini sections work.
19750         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19751       else
19752         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19753       fi
19754       hardcode_libdir_flag_spec_F77='-L$libdir'
19755       hardcode_direct_F77=yes
19756       hardcode_minus_L_F77=yes
19757       hardcode_shlibpath_var_F77=no
19758       ;;
19759
19760     sysv4)
19761       case $host_vendor in
19762         sni)
19763           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19764           hardcode_direct_F77=yes # is this really true???
19765         ;;
19766         siemens)
19767           ## LD is ld it makes a PLAMLIB
19768           ## CC just makes a GrossModule.
19769           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19770           reload_cmds_F77='$CC -r -o $output$reload_objs'
19771           hardcode_direct_F77=no
19772         ;;
19773         motorola)
19774           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19775           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19776         ;;
19777       esac
19778       runpath_var='LD_RUN_PATH'
19779       hardcode_shlibpath_var_F77=no
19780       ;;
19781
19782     sysv4.3*)
19783       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784       hardcode_shlibpath_var_F77=no
19785       export_dynamic_flag_spec_F77='-Bexport'
19786       ;;
19787
19788     sysv4*MP*)
19789       if test -d /usr/nec; then
19790         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19791         hardcode_shlibpath_var_F77=no
19792         runpath_var=LD_RUN_PATH
19793         hardcode_runpath_var=yes
19794         ld_shlibs_F77=yes
19795       fi
19796       ;;
19797
19798     sysv4.2uw2*)
19799       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19800       hardcode_direct_F77=yes
19801       hardcode_minus_L_F77=no
19802       hardcode_shlibpath_var_F77=no
19803       hardcode_runpath_var=yes
19804       runpath_var=LD_RUN_PATH
19805       ;;
19806
19807    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19808       no_undefined_flag_F77='${wl}-z ${wl}text'
19809       if test "$GCC" = yes; then
19810         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19811       else
19812         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19813       fi
19814       runpath_var='LD_RUN_PATH'
19815       hardcode_shlibpath_var_F77=no
19816       ;;
19817
19818     sysv5*)
19819       no_undefined_flag_F77=' -z text'
19820       # $CC -shared without GNU ld will not create a library from C++
19821       # object files and a static libstdc++, better avoid it by now
19822       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19823       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19824                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19825       hardcode_libdir_flag_spec_F77=
19826       hardcode_shlibpath_var_F77=no
19827       runpath_var='LD_RUN_PATH'
19828       ;;
19829
19830     uts4*)
19831       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19832       hardcode_libdir_flag_spec_F77='-L$libdir'
19833       hardcode_shlibpath_var_F77=no
19834       ;;
19835
19836     *)
19837       ld_shlibs_F77=no
19838       ;;
19839     esac
19840   fi
19841
19842 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19843 echo "${ECHO_T}$ld_shlibs_F77" >&6
19844 test "$ld_shlibs_F77" = no && can_build_shared=no
19845
19846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19847 if test "$GCC" = yes; then
19848   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19849 fi
19850
19851 #
19852 # Do we need to explicitly link libc?
19853 #
19854 case "x$archive_cmds_need_lc_F77" in
19855 x|xyes)
19856   # Assume -lc should be added
19857   archive_cmds_need_lc_F77=yes
19858
19859   if test "$enable_shared" = yes && test "$GCC" = yes; then
19860     case $archive_cmds_F77 in
19861     *'~'*)
19862       # FIXME: we may have to deal with multi-command sequences.
19863       ;;
19864     '$CC '*)
19865       # Test whether the compiler implicitly links with -lc since on some
19866       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19867       # to ld, don't add -lc before -lgcc.
19868       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19869 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19870       $rm conftest*
19871       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19872
19873       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874   (eval $ac_compile) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } 2>conftest.err; then
19878         soname=conftest
19879         lib=conftest
19880         libobjs=conftest.$ac_objext
19881         deplibs=
19882         wl=$lt_prog_compiler_wl_F77
19883         compiler_flags=-v
19884         linker_flags=-v
19885         verstring=
19886         output_objdir=.
19887         libname=conftest
19888         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19889         allow_undefined_flag_F77=
19890         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19891   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); }
19895         then
19896           archive_cmds_need_lc_F77=no
19897         else
19898           archive_cmds_need_lc_F77=yes
19899         fi
19900         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19901       else
19902         cat conftest.err 1>&5
19903       fi
19904       $rm conftest*
19905       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19906 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19907       ;;
19908     esac
19909   fi
19910   ;;
19911 esac
19912
19913 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19914 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19915 library_names_spec=
19916 libname_spec='lib$name'
19917 soname_spec=
19918 shrext_cmds=".so"
19919 postinstall_cmds=
19920 postuninstall_cmds=
19921 finish_cmds=
19922 finish_eval=
19923 shlibpath_var=
19924 shlibpath_overrides_runpath=unknown
19925 version_type=none
19926 dynamic_linker="$host_os ld.so"
19927 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19928 if test "$GCC" = yes; then
19929   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19930   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19931     # if the path contains ";" then we assume it to be the separator
19932     # otherwise default to the standard path separator (i.e. ":") - it is
19933     # assumed that no part of a normal pathname contains ";" but that should
19934     # okay in the real world where ";" in dirpaths is itself problematic.
19935     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19936   else
19937     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19938   fi
19939 else
19940   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19941 fi
19942 need_lib_prefix=unknown
19943 hardcode_into_libs=no
19944
19945 # when you set need_version to no, make sure it does not cause -set_version
19946 # flags to be left without arguments
19947 need_version=unknown
19948
19949 case $host_os in
19950 aix3*)
19951   version_type=linux
19952   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19953   shlibpath_var=LIBPATH
19954
19955   # AIX 3 has no versioning support, so we append a major version to the name.
19956   soname_spec='${libname}${release}${shared_ext}$major'
19957   ;;
19958
19959 aix4* | aix5*)
19960   version_type=linux
19961   need_lib_prefix=no
19962   need_version=no
19963   hardcode_into_libs=yes
19964   if test "$host_cpu" = ia64; then
19965     # AIX 5 supports IA64
19966     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19967     shlibpath_var=LD_LIBRARY_PATH
19968   else
19969     # With GCC up to 2.95.x, collect2 would create an import file
19970     # for dependence libraries.  The import file would start with
19971     # the line `#! .'.  This would cause the generated library to
19972     # depend on `.', always an invalid library.  This was fixed in
19973     # development snapshots of GCC prior to 3.0.
19974     case $host_os in
19975       aix4 | aix4.[01] | aix4.[01].*)
19976       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19977            echo ' yes '
19978            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19979         :
19980       else
19981         can_build_shared=no
19982       fi
19983       ;;
19984     esac
19985     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19986     # soname into executable. Probably we can add versioning support to
19987     # collect2, so additional links can be useful in future.
19988     if test "$aix_use_runtimelinking" = yes; then
19989       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19990       # instead of lib<name>.a to let people know that these are not
19991       # typical AIX shared libraries.
19992       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19993     else
19994       # We preserve .a as extension for shared libraries through AIX4.2
19995       # and later when we are not doing run time linking.
19996       library_names_spec='${libname}${release}.a $libname.a'
19997       soname_spec='${libname}${release}${shared_ext}$major'
19998     fi
19999     shlibpath_var=LIBPATH
20000   fi
20001   ;;
20002
20003 amigaos*)
20004   library_names_spec='$libname.ixlibrary $libname.a'
20005   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20006   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'
20007   ;;
20008
20009 beos*)
20010   library_names_spec='${libname}${shared_ext}'
20011   dynamic_linker="$host_os ld.so"
20012   shlibpath_var=LIBRARY_PATH
20013   ;;
20014
20015 bsdi[45]*)
20016   version_type=linux
20017   need_version=no
20018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019   soname_spec='${libname}${release}${shared_ext}$major'
20020   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20021   shlibpath_var=LD_LIBRARY_PATH
20022   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20023   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20024   # the default ld.so.conf also contains /usr/contrib/lib and
20025   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20026   # libtool to hard-code these into programs
20027   ;;
20028
20029 cygwin* | mingw* | pw32*)
20030   version_type=windows
20031   shrext_cmds=".dll"
20032   need_version=no
20033   need_lib_prefix=no
20034
20035   case $GCC,$host_os in
20036   yes,cygwin* | yes,mingw* | yes,pw32*)
20037     library_names_spec='$libname.dll.a'
20038     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20039     postinstall_cmds='base_file=`basename \${file}`~
20040       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20041       dldir=$destdir/`dirname \$dlpath`~
20042       test -d \$dldir || mkdir -p \$dldir~
20043       $install_prog $dir/$dlname \$dldir/$dlname'
20044     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20045       dlpath=$dir/\$dldll~
20046        $rm \$dlpath'
20047     shlibpath_overrides_runpath=yes
20048
20049     case $host_os in
20050     cygwin*)
20051       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20052       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20053       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20054       ;;
20055     mingw*)
20056       # MinGW DLLs use traditional 'lib' prefix
20057       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20058       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20059       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20060         # It is most probably a Windows format PATH printed by
20061         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20062         # path with ; separators, and with drive letters. We can handle the
20063         # drive letters (cygwin fileutils understands them), so leave them,
20064         # especially as we might pass files found there to a mingw objdump,
20065         # which wouldn't understand a cygwinified path. Ahh.
20066         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20067       else
20068         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20069       fi
20070       ;;
20071     pw32*)
20072       # pw32 DLLs use 'pw' prefix rather than 'lib'
20073       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20074       ;;
20075     esac
20076     ;;
20077
20078   *)
20079     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20080     ;;
20081   esac
20082   dynamic_linker='Win32 ld.exe'
20083   # FIXME: first we should search . and the directory the executable is in
20084   shlibpath_var=PATH
20085   ;;
20086
20087 darwin* | rhapsody*)
20088   dynamic_linker="$host_os dyld"
20089   version_type=darwin
20090   need_lib_prefix=no
20091   need_version=no
20092   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20093   soname_spec='${libname}${release}${major}$shared_ext'
20094   shlibpath_overrides_runpath=yes
20095   shlibpath_var=DYLD_LIBRARY_PATH
20096   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20097   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20098   if test "$GCC" = yes; then
20099     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"`
20100   else
20101     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20102   fi
20103   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20104   ;;
20105
20106 dgux*)
20107   version_type=linux
20108   need_lib_prefix=no
20109   need_version=no
20110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20111   soname_spec='${libname}${release}${shared_ext}$major'
20112   shlibpath_var=LD_LIBRARY_PATH
20113   ;;
20114
20115 freebsd1*)
20116   dynamic_linker=no
20117   ;;
20118
20119 kfreebsd*-gnu)
20120   version_type=linux
20121   need_lib_prefix=no
20122   need_version=no
20123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20124   soname_spec='${libname}${release}${shared_ext}$major'
20125   shlibpath_var=LD_LIBRARY_PATH
20126   shlibpath_overrides_runpath=no
20127   hardcode_into_libs=yes
20128   dynamic_linker='GNU ld.so'
20129   ;;
20130
20131 freebsd*)
20132   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20133   version_type=freebsd-$objformat
20134   case $version_type in
20135     freebsd-elf*)
20136       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20137       need_version=no
20138       need_lib_prefix=no
20139       ;;
20140     freebsd-*)
20141       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20142       need_version=yes
20143       ;;
20144   esac
20145   shlibpath_var=LD_LIBRARY_PATH
20146   case $host_os in
20147   freebsd2*)
20148     shlibpath_overrides_runpath=yes
20149     ;;
20150   freebsd3.01* | freebsdelf3.01*)
20151     shlibpath_overrides_runpath=yes
20152     hardcode_into_libs=yes
20153     ;;
20154   *) # from 3.2 on
20155     shlibpath_overrides_runpath=no
20156     hardcode_into_libs=yes
20157     ;;
20158   esac
20159   ;;
20160
20161 gnu*)
20162   version_type=linux
20163   need_lib_prefix=no
20164   need_version=no
20165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20166   soname_spec='${libname}${release}${shared_ext}$major'
20167   shlibpath_var=LD_LIBRARY_PATH
20168   hardcode_into_libs=yes
20169   ;;
20170
20171 hpux9* | hpux10* | hpux11*)
20172   # Give a soname corresponding to the major version so that dld.sl refuses to
20173   # link against other versions.
20174   version_type=sunos
20175   need_lib_prefix=no
20176   need_version=no
20177   case "$host_cpu" in
20178   ia64*)
20179     shrext_cmds='.so'
20180     hardcode_into_libs=yes
20181     dynamic_linker="$host_os dld.so"
20182     shlibpath_var=LD_LIBRARY_PATH
20183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185     soname_spec='${libname}${release}${shared_ext}$major'
20186     if test "X$HPUX_IA64_MODE" = X32; then
20187       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20188     else
20189       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20190     fi
20191     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20192     ;;
20193    hppa*64*)
20194      shrext_cmds='.sl'
20195      hardcode_into_libs=yes
20196      dynamic_linker="$host_os dld.sl"
20197      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20198      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20199      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200      soname_spec='${libname}${release}${shared_ext}$major'
20201      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20202      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20203      ;;
20204    *)
20205     shrext_cmds='.sl'
20206     dynamic_linker="$host_os dld.sl"
20207     shlibpath_var=SHLIB_PATH
20208     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210     soname_spec='${libname}${release}${shared_ext}$major'
20211     ;;
20212   esac
20213   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20214   postinstall_cmds='chmod 555 $lib'
20215   ;;
20216
20217 irix5* | irix6* | nonstopux*)
20218   case $host_os in
20219     nonstopux*) version_type=nonstopux ;;
20220     *)
20221         if test "$lt_cv_prog_gnu_ld" = yes; then
20222                 version_type=linux
20223         else
20224                 version_type=irix
20225         fi ;;
20226   esac
20227   need_lib_prefix=no
20228   need_version=no
20229   soname_spec='${libname}${release}${shared_ext}$major'
20230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20231   case $host_os in
20232   irix5* | nonstopux*)
20233     libsuff= shlibsuff=
20234     ;;
20235   *)
20236     case $LD in # libtool.m4 will add one of these switches to LD
20237     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20238       libsuff= shlibsuff= libmagic=32-bit;;
20239     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20240       libsuff=32 shlibsuff=N32 libmagic=N32;;
20241     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20242       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20243     *) libsuff= shlibsuff= libmagic=never-match;;
20244     esac
20245     ;;
20246   esac
20247   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20248   shlibpath_overrides_runpath=no
20249   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20250   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20251   hardcode_into_libs=yes
20252   ;;
20253
20254 # No shared lib support for Linux oldld, aout, or coff.
20255 linux*oldld* | linux*aout* | linux*coff*)
20256   dynamic_linker=no
20257   ;;
20258
20259 # This must be Linux ELF.
20260 linux*)
20261   version_type=linux
20262   need_lib_prefix=no
20263   need_version=no
20264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265   soname_spec='${libname}${release}${shared_ext}$major'
20266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20267   shlibpath_var=LD_LIBRARY_PATH
20268   shlibpath_overrides_runpath=no
20269   # This implies no fast_install, which is unacceptable.
20270   # Some rework will be needed to allow for fast_install
20271   # before this can be enabled.
20272   hardcode_into_libs=yes
20273
20274   # Append ld.so.conf contents to the search path
20275   if test -f /etc/ld.so.conf; then
20276     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20277     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20278   fi
20279
20280   # We used to test for /lib/ld.so.1 and disable shared libraries on
20281   # powerpc, because MkLinux only supported shared libraries with the
20282   # GNU dynamic linker.  Since this was broken with cross compilers,
20283   # most powerpc-linux boxes support dynamic linking these days and
20284   # people can always --disable-shared, the test was removed, and we
20285   # assume the GNU/Linux dynamic linker is in use.
20286   dynamic_linker='GNU/Linux ld.so'
20287   ;;
20288
20289 knetbsd*-gnu)
20290   version_type=linux
20291   need_lib_prefix=no
20292   need_version=no
20293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20294   soname_spec='${libname}${release}${shared_ext}$major'
20295   shlibpath_var=LD_LIBRARY_PATH
20296   shlibpath_overrides_runpath=no
20297   hardcode_into_libs=yes
20298   dynamic_linker='GNU ld.so'
20299   ;;
20300
20301 netbsd*)
20302   version_type=sunos
20303   need_lib_prefix=no
20304   need_version=no
20305   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20307     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20308     dynamic_linker='NetBSD (a.out) ld.so'
20309   else
20310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20311     soname_spec='${libname}${release}${shared_ext}$major'
20312     dynamic_linker='NetBSD ld.elf_so'
20313   fi
20314   shlibpath_var=LD_LIBRARY_PATH
20315   shlibpath_overrides_runpath=yes
20316   hardcode_into_libs=yes
20317   ;;
20318
20319 newsos6)
20320   version_type=linux
20321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322   shlibpath_var=LD_LIBRARY_PATH
20323   shlibpath_overrides_runpath=yes
20324   ;;
20325
20326 nto-qnx*)
20327   version_type=linux
20328   need_lib_prefix=no
20329   need_version=no
20330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20331   soname_spec='${libname}${release}${shared_ext}$major'
20332   shlibpath_var=LD_LIBRARY_PATH
20333   shlibpath_overrides_runpath=yes
20334   ;;
20335
20336 openbsd*)
20337   version_type=sunos
20338   need_lib_prefix=no
20339   need_version=no
20340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20342   shlibpath_var=LD_LIBRARY_PATH
20343   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20344     case $host_os in
20345       openbsd2.[89] | openbsd2.[89].*)
20346         shlibpath_overrides_runpath=no
20347         ;;
20348       *)
20349         shlibpath_overrides_runpath=yes
20350         ;;
20351       esac
20352   else
20353     shlibpath_overrides_runpath=yes
20354   fi
20355   ;;
20356
20357 os2*)
20358   libname_spec='$name'
20359   shrext_cmds=".dll"
20360   need_lib_prefix=no
20361   library_names_spec='$libname${shared_ext} $libname.a'
20362   dynamic_linker='OS/2 ld.exe'
20363   shlibpath_var=LIBPATH
20364   ;;
20365
20366 osf3* | osf4* | osf5*)
20367   version_type=osf
20368   need_lib_prefix=no
20369   need_version=no
20370   soname_spec='${libname}${release}${shared_ext}$major'
20371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372   shlibpath_var=LD_LIBRARY_PATH
20373   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20374   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20375   ;;
20376
20377 sco3.2v5*)
20378   version_type=osf
20379   soname_spec='${libname}${release}${shared_ext}$major'
20380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381   shlibpath_var=LD_LIBRARY_PATH
20382   ;;
20383
20384 solaris*)
20385   version_type=linux
20386   need_lib_prefix=no
20387   need_version=no
20388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389   soname_spec='${libname}${release}${shared_ext}$major'
20390   shlibpath_var=LD_LIBRARY_PATH
20391   shlibpath_overrides_runpath=yes
20392   hardcode_into_libs=yes
20393   # ldd complains unless libraries are executable
20394   postinstall_cmds='chmod +x $lib'
20395   ;;
20396
20397 sunos4*)
20398   version_type=sunos
20399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20400   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20401   shlibpath_var=LD_LIBRARY_PATH
20402   shlibpath_overrides_runpath=yes
20403   if test "$with_gnu_ld" = yes; then
20404     need_lib_prefix=no
20405   fi
20406   need_version=yes
20407   ;;
20408
20409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20410   version_type=linux
20411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412   soname_spec='${libname}${release}${shared_ext}$major'
20413   shlibpath_var=LD_LIBRARY_PATH
20414   case $host_vendor in
20415     sni)
20416       shlibpath_overrides_runpath=no
20417       need_lib_prefix=no
20418       export_dynamic_flag_spec='${wl}-Blargedynsym'
20419       runpath_var=LD_RUN_PATH
20420       ;;
20421     siemens)
20422       need_lib_prefix=no
20423       ;;
20424     motorola)
20425       need_lib_prefix=no
20426       need_version=no
20427       shlibpath_overrides_runpath=no
20428       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20429       ;;
20430   esac
20431   ;;
20432
20433 sysv4*MP*)
20434   if test -d /usr/nec ;then
20435     version_type=linux
20436     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20437     soname_spec='$libname${shared_ext}.$major'
20438     shlibpath_var=LD_LIBRARY_PATH
20439   fi
20440   ;;
20441
20442 uts4*)
20443   version_type=linux
20444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20445   soname_spec='${libname}${release}${shared_ext}$major'
20446   shlibpath_var=LD_LIBRARY_PATH
20447   ;;
20448
20449 *)
20450   dynamic_linker=no
20451   ;;
20452 esac
20453 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20454 echo "${ECHO_T}$dynamic_linker" >&6
20455 test "$dynamic_linker" = no && can_build_shared=no
20456
20457 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20458 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20459 hardcode_action_F77=
20460 if test -n "$hardcode_libdir_flag_spec_F77" || \
20461    test -n "$runpath_var_F77" || \
20462    test "X$hardcode_automatic_F77" = "Xyes" ; then
20463
20464   # We can hardcode non-existant directories.
20465   if test "$hardcode_direct_F77" != no &&
20466      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20467      # have to relink, otherwise we might link with an installed library
20468      # when we should be linking with a yet-to-be-installed one
20469      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20470      test "$hardcode_minus_L_F77" != no; then
20471     # Linking always hardcodes the temporary library directory.
20472     hardcode_action_F77=relink
20473   else
20474     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20475     hardcode_action_F77=immediate
20476   fi
20477 else
20478   # We cannot hardcode anything, or else we can only hardcode existing
20479   # directories.
20480   hardcode_action_F77=unsupported
20481 fi
20482 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20483 echo "${ECHO_T}$hardcode_action_F77" >&6
20484
20485 if test "$hardcode_action_F77" = relink; then
20486   # Fast installation is not supported
20487   enable_fast_install=no
20488 elif test "$shlibpath_overrides_runpath" = yes ||
20489      test "$enable_shared" = no; then
20490   # Fast installation is not necessary
20491   enable_fast_install=needless
20492 fi
20493
20494 striplib=
20495 old_striplib=
20496 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20497 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20498 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20499   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20500   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20501   echo "$as_me:$LINENO: result: yes" >&5
20502 echo "${ECHO_T}yes" >&6
20503 else
20504 # FIXME - insert some real tests, host_os isn't really good enough
20505   case $host_os in
20506    darwin*)
20507        if test -n "$STRIP" ; then
20508          striplib="$STRIP -x"
20509          echo "$as_me:$LINENO: result: yes" >&5
20510 echo "${ECHO_T}yes" >&6
20511        else
20512   echo "$as_me:$LINENO: result: no" >&5
20513 echo "${ECHO_T}no" >&6
20514 fi
20515        ;;
20516    *)
20517   echo "$as_me:$LINENO: result: no" >&5
20518 echo "${ECHO_T}no" >&6
20519     ;;
20520   esac
20521 fi
20522
20523
20524
20525 # The else clause should only fire when bootstrapping the
20526 # libtool distribution, otherwise you forgot to ship ltmain.sh
20527 # with your package, and you will get complaints that there are
20528 # no rules to generate ltmain.sh.
20529 if test -f "$ltmain"; then
20530   # See if we are running on zsh, and set the options which allow our commands through
20531   # without removal of \ escapes.
20532   if test -n "${ZSH_VERSION+set}" ; then
20533     setopt NO_GLOB_SUBST
20534   fi
20535   # Now quote all the things that may contain metacharacters while being
20536   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20537   # variables and quote the copies for generation of the libtool script.
20538   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20539     SED SHELL STRIP \
20540     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20541     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20542     deplibs_check_method reload_flag reload_cmds need_locks \
20543     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20544     lt_cv_sys_global_symbol_to_c_name_address \
20545     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20546     old_postinstall_cmds old_postuninstall_cmds \
20547     compiler_F77 \
20548     CC_F77 \
20549     LD_F77 \
20550     lt_prog_compiler_wl_F77 \
20551     lt_prog_compiler_pic_F77 \
20552     lt_prog_compiler_static_F77 \
20553     lt_prog_compiler_no_builtin_flag_F77 \
20554     export_dynamic_flag_spec_F77 \
20555     thread_safe_flag_spec_F77 \
20556     whole_archive_flag_spec_F77 \
20557     enable_shared_with_static_runtimes_F77 \
20558     old_archive_cmds_F77 \
20559     old_archive_from_new_cmds_F77 \
20560     predep_objects_F77 \
20561     postdep_objects_F77 \
20562     predeps_F77 \
20563     postdeps_F77 \
20564     compiler_lib_search_path_F77 \
20565     archive_cmds_F77 \
20566     archive_expsym_cmds_F77 \
20567     postinstall_cmds_F77 \
20568     postuninstall_cmds_F77 \
20569     old_archive_from_expsyms_cmds_F77 \
20570     allow_undefined_flag_F77 \
20571     no_undefined_flag_F77 \
20572     export_symbols_cmds_F77 \
20573     hardcode_libdir_flag_spec_F77 \
20574     hardcode_libdir_flag_spec_ld_F77 \
20575     hardcode_libdir_separator_F77 \
20576     hardcode_automatic_F77 \
20577     module_cmds_F77 \
20578     module_expsym_cmds_F77 \
20579     lt_cv_prog_compiler_c_o_F77 \
20580     exclude_expsyms_F77 \
20581     include_expsyms_F77; do
20582
20583     case $var in
20584     old_archive_cmds_F77 | \
20585     old_archive_from_new_cmds_F77 | \
20586     archive_cmds_F77 | \
20587     archive_expsym_cmds_F77 | \
20588     module_cmds_F77 | \
20589     module_expsym_cmds_F77 | \
20590     old_archive_from_expsyms_cmds_F77 | \
20591     export_symbols_cmds_F77 | \
20592     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20593     postinstall_cmds | postuninstall_cmds | \
20594     old_postinstall_cmds | old_postuninstall_cmds | \
20595     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20596       # Double-quote double-evaled strings.
20597       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20598       ;;
20599     *)
20600       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20601       ;;
20602     esac
20603   done
20604
20605   case $lt_echo in
20606   *'\$0 --fallback-echo"')
20607     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20608     ;;
20609   esac
20610
20611 cfgfile="$ofile"
20612
20613   cat <<__EOF__ >> "$cfgfile"
20614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20615
20616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20617
20618 # Shell to use when invoking shell scripts.
20619 SHELL=$lt_SHELL
20620
20621 # Whether or not to build shared libraries.
20622 build_libtool_libs=$enable_shared
20623
20624 # Whether or not to build static libraries.
20625 build_old_libs=$enable_static
20626
20627 # Whether or not to add -lc for building shared libraries.
20628 build_libtool_need_lc=$archive_cmds_need_lc_F77
20629
20630 # Whether or not to disallow shared libs when runtime libs are static
20631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20632
20633 # Whether or not to optimize for fast installation.
20634 fast_install=$enable_fast_install
20635
20636 # The host system.
20637 host_alias=$host_alias
20638 host=$host
20639
20640 # An echo program that does not interpret backslashes.
20641 echo=$lt_echo
20642
20643 # The archiver.
20644 AR=$lt_AR
20645 AR_FLAGS=$lt_AR_FLAGS
20646
20647 # A C compiler.
20648 LTCC=$lt_LTCC
20649
20650 # A language-specific compiler.
20651 CC=$lt_compiler_F77
20652
20653 # Is the compiler the GNU C compiler?
20654 with_gcc=$GCC_F77
20655
20656 # An ERE matcher.
20657 EGREP=$lt_EGREP
20658
20659 # The linker used to build libraries.
20660 LD=$lt_LD_F77
20661
20662 # Whether we need hard or soft links.
20663 LN_S=$lt_LN_S
20664
20665 # A BSD-compatible nm program.
20666 NM=$lt_NM
20667
20668 # A symbol stripping program
20669 STRIP=$lt_STRIP
20670
20671 # Used to examine libraries when file_magic_cmd begins "file"
20672 MAGIC_CMD=$MAGIC_CMD
20673
20674 # Used on cygwin: DLL creation program.
20675 DLLTOOL="$DLLTOOL"
20676
20677 # Used on cygwin: object dumper.
20678 OBJDUMP="$OBJDUMP"
20679
20680 # Used on cygwin: assembler.
20681 AS="$AS"
20682
20683 # The name of the directory that contains temporary libtool files.
20684 objdir=$objdir
20685
20686 # How to create reloadable object files.
20687 reload_flag=$lt_reload_flag
20688 reload_cmds=$lt_reload_cmds
20689
20690 # How to pass a linker flag through the compiler.
20691 wl=$lt_lt_prog_compiler_wl_F77
20692
20693 # Object file suffix (normally "o").
20694 objext="$ac_objext"
20695
20696 # Old archive suffix (normally "a").
20697 libext="$libext"
20698
20699 # Shared library suffix (normally ".so").
20700 shrext_cmds='$shrext_cmds'
20701
20702 # Executable file suffix (normally "").
20703 exeext="$exeext"
20704
20705 # Additional compiler flags for building library objects.
20706 pic_flag=$lt_lt_prog_compiler_pic_F77
20707 pic_mode=$pic_mode
20708
20709 # What is the maximum length of a command?
20710 max_cmd_len=$lt_cv_sys_max_cmd_len
20711
20712 # Does compiler simultaneously support -c and -o options?
20713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20714
20715 # Must we lock files when doing compilation ?
20716 need_locks=$lt_need_locks
20717
20718 # Do we need the lib prefix for modules?
20719 need_lib_prefix=$need_lib_prefix
20720
20721 # Do we need a version for libraries?
20722 need_version=$need_version
20723
20724 # Whether dlopen is supported.
20725 dlopen_support=$enable_dlopen
20726
20727 # Whether dlopen of programs is supported.
20728 dlopen_self=$enable_dlopen_self
20729
20730 # Whether dlopen of statically linked programs is supported.
20731 dlopen_self_static=$enable_dlopen_self_static
20732
20733 # Compiler flag to prevent dynamic linking.
20734 link_static_flag=$lt_lt_prog_compiler_static_F77
20735
20736 # Compiler flag to turn off builtin functions.
20737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20738
20739 # Compiler flag to allow reflexive dlopens.
20740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20741
20742 # Compiler flag to generate shared objects directly from archives.
20743 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20744
20745 # Compiler flag to generate thread-safe objects.
20746 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20747
20748 # Library versioning type.
20749 version_type=$version_type
20750
20751 # Format of library name prefix.
20752 libname_spec=$lt_libname_spec
20753
20754 # List of archive names.  First name is the real one, the rest are links.
20755 # The last name is the one that the linker finds with -lNAME.
20756 library_names_spec=$lt_library_names_spec
20757
20758 # The coded name of the library, if different from the real name.
20759 soname_spec=$lt_soname_spec
20760
20761 # Commands used to build and install an old-style archive.
20762 RANLIB=$lt_RANLIB
20763 old_archive_cmds=$lt_old_archive_cmds_F77
20764 old_postinstall_cmds=$lt_old_postinstall_cmds
20765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20766
20767 # Create an old-style archive from a shared archive.
20768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20769
20770 # Create a temporary old-style archive to link instead of a shared archive.
20771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20772
20773 # Commands used to build and install a shared archive.
20774 archive_cmds=$lt_archive_cmds_F77
20775 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20776 postinstall_cmds=$lt_postinstall_cmds
20777 postuninstall_cmds=$lt_postuninstall_cmds
20778
20779 # Commands used to build a loadable module (assumed same as above if empty)
20780 module_cmds=$lt_module_cmds_F77
20781 module_expsym_cmds=$lt_module_expsym_cmds_F77
20782
20783 # Commands to strip libraries.
20784 old_striplib=$lt_old_striplib
20785 striplib=$lt_striplib
20786
20787 # Dependencies to place before the objects being linked to create a
20788 # shared library.
20789 predep_objects=$lt_predep_objects_F77
20790
20791 # Dependencies to place after the objects being linked to create a
20792 # shared library.
20793 postdep_objects=$lt_postdep_objects_F77
20794
20795 # Dependencies to place before the objects being linked to create a
20796 # shared library.
20797 predeps=$lt_predeps_F77
20798
20799 # Dependencies to place after the objects being linked to create a
20800 # shared library.
20801 postdeps=$lt_postdeps_F77
20802
20803 # The library search path used internally by the compiler when linking
20804 # a shared library.
20805 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20806
20807 # Method to check whether dependent libraries are shared objects.
20808 deplibs_check_method=$lt_deplibs_check_method
20809
20810 # Command to use when deplibs_check_method == file_magic.
20811 file_magic_cmd=$lt_file_magic_cmd
20812
20813 # Flag that allows shared libraries with undefined symbols to be built.
20814 allow_undefined_flag=$lt_allow_undefined_flag_F77
20815
20816 # Flag that forces no undefined symbols.
20817 no_undefined_flag=$lt_no_undefined_flag_F77
20818
20819 # Commands used to finish a libtool library installation in a directory.
20820 finish_cmds=$lt_finish_cmds
20821
20822 # Same as above, but a single script fragment to be evaled but not shown.
20823 finish_eval=$lt_finish_eval
20824
20825 # Take the output of nm and produce a listing of raw symbols and C names.
20826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20827
20828 # Transform the output of nm in a proper C declaration
20829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20830
20831 # Transform the output of nm in a C name address pair
20832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20833
20834 # This is the shared library runtime path variable.
20835 runpath_var=$runpath_var
20836
20837 # This is the shared library path variable.
20838 shlibpath_var=$shlibpath_var
20839
20840 # Is shlibpath searched before the hard-coded library search path?
20841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20842
20843 # How to hardcode a shared library path into an executable.
20844 hardcode_action=$hardcode_action_F77
20845
20846 # Whether we should hardcode library paths into libraries.
20847 hardcode_into_libs=$hardcode_into_libs
20848
20849 # Flag to hardcode \$libdir into a binary during linking.
20850 # This must work even if \$libdir does not exist.
20851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20852
20853 # If ld is used when linking, flag to hardcode \$libdir into
20854 # a binary during linking. This must work even if \$libdir does
20855 # not exist.
20856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20857
20858 # Whether we need a single -rpath flag with a separated argument.
20859 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20860
20861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20862 # resulting binary.
20863 hardcode_direct=$hardcode_direct_F77
20864
20865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20866 # resulting binary.
20867 hardcode_minus_L=$hardcode_minus_L_F77
20868
20869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20870 # the resulting binary.
20871 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20872
20873 # Set to yes if building a shared library automatically hardcodes DIR into the library
20874 # and all subsequent libraries and executables linked against it.
20875 hardcode_automatic=$hardcode_automatic_F77
20876
20877 # Variables whose values should be saved in libtool wrapper scripts and
20878 # restored at relink time.
20879 variables_saved_for_relink="$variables_saved_for_relink"
20880
20881 # Whether libtool must link a program against all its dependency libraries.
20882 link_all_deplibs=$link_all_deplibs_F77
20883
20884 # Compile-time system search path for libraries
20885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20886
20887 # Run-time system search path for libraries
20888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20889
20890 # Fix the shell variable \$srcfile for the compiler.
20891 fix_srcfile_path="$fix_srcfile_path_F77"
20892
20893 # Set to yes if exported symbols are required.
20894 always_export_symbols=$always_export_symbols_F77
20895
20896 # The commands to list exported symbols.
20897 export_symbols_cmds=$lt_export_symbols_cmds_F77
20898
20899 # The commands to extract the exported symbol list from a shared archive.
20900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20901
20902 # Symbols that should not be listed in the preloaded symbols.
20903 exclude_expsyms=$lt_exclude_expsyms_F77
20904
20905 # Symbols that must always be exported.
20906 include_expsyms=$lt_include_expsyms_F77
20907
20908 # ### END LIBTOOL TAG CONFIG: $tagname
20909
20910 __EOF__
20911
20912
20913 else
20914   # If there is no Makefile yet, we rely on a make rule to execute
20915   # `config.status --recheck' to rerun these tests and create the
20916   # libtool script then.
20917   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20918   if test -f "$ltmain_in"; then
20919     test -f Makefile && make "$ltmain"
20920   fi
20921 fi
20922
20923
20924 ac_ext=c
20925 ac_cpp='$CPP $CPPFLAGS'
20926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929
20930 CC="$lt_save_CC"
20931
20932         else
20933           tagname=""
20934         fi
20935         ;;
20936
20937       GCJ)
20938         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20939           ac_ext=c
20940 ac_cpp='$CPP $CPPFLAGS'
20941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944
20945
20946 # Source file extension for Java test sources.
20947 ac_ext=java
20948
20949 # Object file extension for compiled Java test sources.
20950 objext=o
20951 objext_GCJ=$objext
20952
20953 # Code to be used in simple compile tests
20954 lt_simple_compile_test_code="class foo {}\n"
20955
20956 # Code to be used in simple link tests
20957 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20958
20959 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20960
20961 # If no C compiler was specified, use CC.
20962 LTCC=${LTCC-"$CC"}
20963
20964 # Allow CC to be a program name with arguments.
20965 compiler=$CC
20966
20967
20968 # Allow CC to be a program name with arguments.
20969 lt_save_CC="$CC"
20970 CC=${GCJ-"gcj"}
20971 compiler=$CC
20972 compiler_GCJ=$CC
20973
20974 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20975 archive_cmds_need_lc_GCJ=no
20976
20977
20978 lt_prog_compiler_no_builtin_flag_GCJ=
20979
20980 if test "$GCC" = yes; then
20981   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20982
20983
20984 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20985 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20987   echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989   lt_cv_prog_compiler_rtti_exceptions=no
20990   ac_outfile=conftest.$ac_objext
20991    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20992    lt_compiler_flag="-fno-rtti -fno-exceptions"
20993    # Insert the option either (1) after the last *FLAGS variable, or
20994    # (2) before a word containing "conftest.", or (3) at the end.
20995    # Note that $ac_compile itself does not contain backslashes and begins
20996    # with a dollar sign (not a hyphen), so the echo should work correctly.
20997    # The option is referenced via a variable to avoid confusing sed.
20998    lt_compile=`echo "$ac_compile" | $SED \
20999    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21001    -e 's:$: $lt_compiler_flag:'`
21002    (eval echo "\"\$as_me:21002: $lt_compile\"" >&5)
21003    (eval "$lt_compile" 2>conftest.err)
21004    ac_status=$?
21005    cat conftest.err >&5
21006    echo "$as_me:21006: \$? = $ac_status" >&5
21007    if (exit $ac_status) && test -s "$ac_outfile"; then
21008      # The compiler can only warn and ignore the option if not recognized
21009      # So say no if there are warnings
21010      if test ! -s conftest.err; then
21011        lt_cv_prog_compiler_rtti_exceptions=yes
21012      fi
21013    fi
21014    $rm conftest*
21015
21016 fi
21017 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21018 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21019
21020 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21021     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21022 else
21023     :
21024 fi
21025
21026 fi
21027
21028 lt_prog_compiler_wl_GCJ=
21029 lt_prog_compiler_pic_GCJ=
21030 lt_prog_compiler_static_GCJ=
21031
21032 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21033 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21034
21035   if test "$GCC" = yes; then
21036     lt_prog_compiler_wl_GCJ='-Wl,'
21037     lt_prog_compiler_static_GCJ='-static'
21038
21039     case $host_os in
21040       aix*)
21041       # All AIX code is PIC.
21042       if test "$host_cpu" = ia64; then
21043         # AIX 5 now supports IA64 processor
21044         lt_prog_compiler_static_GCJ='-Bstatic'
21045       fi
21046       ;;
21047
21048     amigaos*)
21049       # FIXME: we need at least 68020 code to build shared libraries, but
21050       # adding the `-m68020' flag to GCC prevents building anything better,
21051       # like `-m68040'.
21052       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21053       ;;
21054
21055     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21056       # PIC is the default for these OSes.
21057       ;;
21058
21059     mingw* | pw32* | os2*)
21060       # This hack is so that the source file can tell whether it is being
21061       # built for inclusion in a dll (and should export symbols for example).
21062       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21063       ;;
21064
21065     darwin* | rhapsody*)
21066       # PIC is the default on this platform
21067       # Common symbols not allowed in MH_DYLIB files
21068       lt_prog_compiler_pic_GCJ='-fno-common'
21069       ;;
21070
21071     msdosdjgpp*)
21072       # Just because we use GCC doesn't mean we suddenly get shared libraries
21073       # on systems that don't support them.
21074       lt_prog_compiler_can_build_shared_GCJ=no
21075       enable_shared=no
21076       ;;
21077
21078     sysv4*MP*)
21079       if test -d /usr/nec; then
21080         lt_prog_compiler_pic_GCJ=-Kconform_pic
21081       fi
21082       ;;
21083
21084     hpux*)
21085       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21086       # not for PA HP-UX.
21087       case "$host_cpu" in
21088       hppa*64*|ia64*)
21089         # +Z the default
21090         ;;
21091       *)
21092         lt_prog_compiler_pic_GCJ='-fPIC'
21093         ;;
21094       esac
21095       ;;
21096
21097     *)
21098       lt_prog_compiler_pic_GCJ='-fPIC'
21099       ;;
21100     esac
21101   else
21102     # PORTME Check for flag to pass linker flags through the system compiler.
21103     case $host_os in
21104     aix*)
21105       lt_prog_compiler_wl_GCJ='-Wl,'
21106       if test "$host_cpu" = ia64; then
21107         # AIX 5 now supports IA64 processor
21108         lt_prog_compiler_static_GCJ='-Bstatic'
21109       else
21110         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21111       fi
21112       ;;
21113       darwin*)
21114         # PIC is the default on this platform
21115         # Common symbols not allowed in MH_DYLIB files
21116        case "$cc_basename" in
21117          xlc*)
21118          lt_prog_compiler_pic_GCJ='-qnocommon'
21119          lt_prog_compiler_wl_GCJ='-Wl,'
21120          ;;
21121        esac
21122        ;;
21123
21124     mingw* | pw32* | os2*)
21125       # This hack is so that the source file can tell whether it is being
21126       # built for inclusion in a dll (and should export symbols for example).
21127       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21128       ;;
21129
21130     hpux9* | hpux10* | hpux11*)
21131       lt_prog_compiler_wl_GCJ='-Wl,'
21132       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21133       # not for PA HP-UX.
21134       case "$host_cpu" in
21135       hppa*64*|ia64*)
21136         # +Z the default
21137         ;;
21138       *)
21139         lt_prog_compiler_pic_GCJ='+Z'
21140         ;;
21141       esac
21142       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21143       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21144       ;;
21145
21146     irix5* | irix6* | nonstopux*)
21147       lt_prog_compiler_wl_GCJ='-Wl,'
21148       # PIC (with -KPIC) is the default.
21149       lt_prog_compiler_static_GCJ='-non_shared'
21150       ;;
21151
21152     newsos6)
21153       lt_prog_compiler_pic_GCJ='-KPIC'
21154       lt_prog_compiler_static_GCJ='-Bstatic'
21155       ;;
21156
21157     linux*)
21158       case $CC in
21159       icc* | ecc*)
21160         lt_prog_compiler_wl_GCJ='-Wl,'
21161         lt_prog_compiler_pic_GCJ='-KPIC'
21162         lt_prog_compiler_static_GCJ='-static'
21163         ;;
21164       ccc*)
21165         lt_prog_compiler_wl_GCJ='-Wl,'
21166         # All Alpha code is PIC.
21167         lt_prog_compiler_static_GCJ='-non_shared'
21168         ;;
21169       esac
21170       ;;
21171
21172     osf3* | osf4* | osf5*)
21173       lt_prog_compiler_wl_GCJ='-Wl,'
21174       # All OSF/1 code is PIC.
21175       lt_prog_compiler_static_GCJ='-non_shared'
21176       ;;
21177
21178     sco3.2v5*)
21179       lt_prog_compiler_pic_GCJ='-Kpic'
21180       lt_prog_compiler_static_GCJ='-dn'
21181       ;;
21182
21183     solaris*)
21184       lt_prog_compiler_wl_GCJ='-Wl,'
21185       lt_prog_compiler_pic_GCJ='-KPIC'
21186       lt_prog_compiler_static_GCJ='-Bstatic'
21187       ;;
21188
21189     sunos4*)
21190       lt_prog_compiler_wl_GCJ='-Qoption ld '
21191       lt_prog_compiler_pic_GCJ='-PIC'
21192       lt_prog_compiler_static_GCJ='-Bstatic'
21193       ;;
21194
21195     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21196       lt_prog_compiler_wl_GCJ='-Wl,'
21197       lt_prog_compiler_pic_GCJ='-KPIC'
21198       lt_prog_compiler_static_GCJ='-Bstatic'
21199       ;;
21200
21201     sysv4*MP*)
21202       if test -d /usr/nec ;then
21203         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21204         lt_prog_compiler_static_GCJ='-Bstatic'
21205       fi
21206       ;;
21207
21208     uts4*)
21209       lt_prog_compiler_pic_GCJ='-pic'
21210       lt_prog_compiler_static_GCJ='-Bstatic'
21211       ;;
21212
21213     *)
21214       lt_prog_compiler_can_build_shared_GCJ=no
21215       ;;
21216     esac
21217   fi
21218
21219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21220 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21221
21222 #
21223 # Check to make sure the PIC flag actually works.
21224 #
21225 if test -n "$lt_prog_compiler_pic_GCJ"; then
21226
21227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21229 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21230   echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232   lt_prog_compiler_pic_works_GCJ=no
21233   ac_outfile=conftest.$ac_objext
21234    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21235    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21236    # Insert the option either (1) after the last *FLAGS variable, or
21237    # (2) before a word containing "conftest.", or (3) at the end.
21238    # Note that $ac_compile itself does not contain backslashes and begins
21239    # with a dollar sign (not a hyphen), so the echo should work correctly.
21240    # The option is referenced via a variable to avoid confusing sed.
21241    lt_compile=`echo "$ac_compile" | $SED \
21242    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21244    -e 's:$: $lt_compiler_flag:'`
21245    (eval echo "\"\$as_me:21245: $lt_compile\"" >&5)
21246    (eval "$lt_compile" 2>conftest.err)
21247    ac_status=$?
21248    cat conftest.err >&5
21249    echo "$as_me:21249: \$? = $ac_status" >&5
21250    if (exit $ac_status) && test -s "$ac_outfile"; then
21251      # The compiler can only warn and ignore the option if not recognized
21252      # So say no if there are warnings
21253      if test ! -s conftest.err; then
21254        lt_prog_compiler_pic_works_GCJ=yes
21255      fi
21256    fi
21257    $rm conftest*
21258
21259 fi
21260 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21261 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21262
21263 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21264     case $lt_prog_compiler_pic_GCJ in
21265      "" | " "*) ;;
21266      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21267      esac
21268 else
21269     lt_prog_compiler_pic_GCJ=
21270      lt_prog_compiler_can_build_shared_GCJ=no
21271 fi
21272
21273 fi
21274 case "$host_os" in
21275   # For platforms which do not support PIC, -DPIC is meaningless:
21276   *djgpp*)
21277     lt_prog_compiler_pic_GCJ=
21278     ;;
21279   *)
21280     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21281     ;;
21282 esac
21283
21284 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21285 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21286 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21287   echo $ECHO_N "(cached) $ECHO_C" >&6
21288 else
21289   lt_cv_prog_compiler_c_o_GCJ=no
21290    $rm -r conftest 2>/dev/null
21291    mkdir conftest
21292    cd conftest
21293    mkdir out
21294    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21295
21296    lt_compiler_flag="-o out/conftest2.$ac_objext"
21297    # Insert the option either (1) after the last *FLAGS variable, or
21298    # (2) before a word containing "conftest.", or (3) at the end.
21299    # Note that $ac_compile itself does not contain backslashes and begins
21300    # with a dollar sign (not a hyphen), so the echo should work correctly.
21301    lt_compile=`echo "$ac_compile" | $SED \
21302    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21303    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21304    -e 's:$: $lt_compiler_flag:'`
21305    (eval echo "\"\$as_me:21305: $lt_compile\"" >&5)
21306    (eval "$lt_compile" 2>out/conftest.err)
21307    ac_status=$?
21308    cat out/conftest.err >&5
21309    echo "$as_me:21309: \$? = $ac_status" >&5
21310    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21311    then
21312      # The compiler can only warn and ignore the option if not recognized
21313      # So say no if there are warnings
21314      if test ! -s out/conftest.err; then
21315        lt_cv_prog_compiler_c_o_GCJ=yes
21316      fi
21317    fi
21318    chmod u+w .
21319    $rm conftest*
21320    # SGI C++ compiler will create directory out/ii_files/ for
21321    # template instantiation
21322    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21323    $rm out/* && rmdir out
21324    cd ..
21325    rmdir conftest
21326    $rm conftest*
21327
21328 fi
21329 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21330 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21331
21332
21333 hard_links="nottested"
21334 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21335   # do not overwrite the value of need_locks provided by the user
21336   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21337 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21338   hard_links=yes
21339   $rm conftest*
21340   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21341   touch conftest.a
21342   ln conftest.a conftest.b 2>&5 || hard_links=no
21343   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21344   echo "$as_me:$LINENO: result: $hard_links" >&5
21345 echo "${ECHO_T}$hard_links" >&6
21346   if test "$hard_links" = no; then
21347     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21348 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21349     need_locks=warn
21350   fi
21351 else
21352   need_locks=no
21353 fi
21354
21355 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21356 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21357
21358   runpath_var=
21359   allow_undefined_flag_GCJ=
21360   enable_shared_with_static_runtimes_GCJ=no
21361   archive_cmds_GCJ=
21362   archive_expsym_cmds_GCJ=
21363   old_archive_From_new_cmds_GCJ=
21364   old_archive_from_expsyms_cmds_GCJ=
21365   export_dynamic_flag_spec_GCJ=
21366   whole_archive_flag_spec_GCJ=
21367   thread_safe_flag_spec_GCJ=
21368   hardcode_libdir_flag_spec_GCJ=
21369   hardcode_libdir_flag_spec_ld_GCJ=
21370   hardcode_libdir_separator_GCJ=
21371   hardcode_direct_GCJ=no
21372   hardcode_minus_L_GCJ=no
21373   hardcode_shlibpath_var_GCJ=unsupported
21374   link_all_deplibs_GCJ=unknown
21375   hardcode_automatic_GCJ=no
21376   module_cmds_GCJ=
21377   module_expsym_cmds_GCJ=
21378   always_export_symbols_GCJ=no
21379   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21380   # include_expsyms should be a list of space-separated symbols to be *always*
21381   # included in the symbol list
21382   include_expsyms_GCJ=
21383   # exclude_expsyms can be an extended regexp of symbols to exclude
21384   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21385   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21386   # as well as any symbol that contains `d'.
21387   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21388   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21389   # platforms (ab)use it in PIC code, but their linkers get confused if
21390   # the symbol is explicitly referenced.  Since portable code cannot
21391   # rely on this symbol name, it's probably fine to never include it in
21392   # preloaded symbol tables.
21393   extract_expsyms_cmds=
21394
21395   case $host_os in
21396   cygwin* | mingw* | pw32*)
21397     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21398     # When not using gcc, we currently assume that we are using
21399     # Microsoft Visual C++.
21400     if test "$GCC" != yes; then
21401       with_gnu_ld=no
21402     fi
21403     ;;
21404   openbsd*)
21405     with_gnu_ld=no
21406     ;;
21407   esac
21408
21409   ld_shlibs_GCJ=yes
21410   if test "$with_gnu_ld" = yes; then
21411     # If archive_cmds runs LD, not CC, wlarc should be empty
21412     wlarc='${wl}'
21413
21414     # See if GNU ld supports shared libraries.
21415     case $host_os in
21416     aix3* | aix4* | aix5*)
21417       # On AIX/PPC, the GNU linker is very broken
21418       if test "$host_cpu" != ia64; then
21419         ld_shlibs_GCJ=no
21420         cat <<EOF 1>&2
21421
21422 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21423 *** to be unable to reliably create shared libraries on AIX.
21424 *** Therefore, libtool is disabling shared libraries support.  If you
21425 *** really care for shared libraries, you may want to modify your PATH
21426 *** so that a non-GNU linker is found, and then restart.
21427
21428 EOF
21429       fi
21430       ;;
21431
21432     amigaos*)
21433       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)'
21434       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21435       hardcode_minus_L_GCJ=yes
21436
21437       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21438       # that the semantics of dynamic libraries on AmigaOS, at least up
21439       # to version 4, is to share data among multiple programs linked
21440       # with the same dynamic library.  Since this doesn't match the
21441       # behavior of shared libraries on other platforms, we can't use
21442       # them.
21443       ld_shlibs_GCJ=no
21444       ;;
21445
21446     beos*)
21447       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21448         allow_undefined_flag_GCJ=unsupported
21449         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21450         # support --undefined.  This deserves some investigation.  FIXME
21451         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21452       else
21453         ld_shlibs_GCJ=no
21454       fi
21455       ;;
21456
21457     cygwin* | mingw* | pw32*)
21458       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21459       # as there is no search path for DLLs.
21460       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21461       allow_undefined_flag_GCJ=unsupported
21462       always_export_symbols_GCJ=no
21463       enable_shared_with_static_runtimes_GCJ=yes
21464       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21465
21466       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21467         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21468         # If the export-symbols file already is a .def file (1st line
21469         # is EXPORTS), use it as is; otherwise, prepend...
21470         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21471           cp $export_symbols $output_objdir/$soname.def;
21472         else
21473           echo EXPORTS > $output_objdir/$soname.def;
21474           cat $export_symbols >> $output_objdir/$soname.def;
21475         fi~
21476         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21477       else
21478         ld_shlibs=no
21479       fi
21480       ;;
21481
21482     netbsd*)
21483       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21484         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21485         wlarc=
21486       else
21487         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21489       fi
21490       ;;
21491
21492     solaris* | sysv5*)
21493       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21494         ld_shlibs_GCJ=no
21495         cat <<EOF 1>&2
21496
21497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21498 *** create shared libraries on Solaris systems.  Therefore, libtool
21499 *** is disabling shared libraries support.  We urge you to upgrade GNU
21500 *** binutils to release 2.9.1 or newer.  Another option is to modify
21501 *** your PATH or compiler configuration so that the native linker is
21502 *** used, and then restart.
21503
21504 EOF
21505       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21506         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21507         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21508       else
21509         ld_shlibs_GCJ=no
21510       fi
21511       ;;
21512
21513     sunos4*)
21514       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21515       wlarc=
21516       hardcode_direct_GCJ=yes
21517       hardcode_shlibpath_var_GCJ=no
21518       ;;
21519
21520   linux*)
21521     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21522         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21523         archive_cmds_GCJ="$tmp_archive_cmds"
21524       supports_anon_versioning=no
21525       case `$LD -v 2>/dev/null` in
21526         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21527         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21528         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21529         *\ 2.11.*) ;; # other 2.11 versions
21530         *) supports_anon_versioning=yes ;;
21531       esac
21532       if test $supports_anon_versioning = yes; then
21533         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21535 $echo "local: *; };" >> $output_objdir/$libname.ver~
21536         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21537       else
21538         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21539       fi
21540     else
21541       ld_shlibs_GCJ=no
21542     fi
21543     ;;
21544
21545     *)
21546       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21547         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21548         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21549       else
21550         ld_shlibs_GCJ=no
21551       fi
21552       ;;
21553     esac
21554
21555     if test "$ld_shlibs_GCJ" = yes; then
21556       runpath_var=LD_RUN_PATH
21557       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21558       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21559       # ancient GNU ld didn't support --whole-archive et. al.
21560       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21561         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21562       else
21563         whole_archive_flag_spec_GCJ=
21564       fi
21565     fi
21566   else
21567     # PORTME fill in a description of your system's linker (not GNU ld)
21568     case $host_os in
21569     aix3*)
21570       allow_undefined_flag_GCJ=unsupported
21571       always_export_symbols_GCJ=yes
21572       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'
21573       # Note: this linker hardcodes the directories in LIBPATH if there
21574       # are no directories specified by -L.
21575       hardcode_minus_L_GCJ=yes
21576       if test "$GCC" = yes && test -z "$link_static_flag"; then
21577         # Neither direct hardcoding nor static linking is supported with a
21578         # broken collect2.
21579         hardcode_direct_GCJ=unsupported
21580       fi
21581       ;;
21582
21583     aix4* | aix5*)
21584       if test "$host_cpu" = ia64; then
21585         # On IA64, the linker does run time linking by default, so we don't
21586         # have to do anything special.
21587         aix_use_runtimelinking=no
21588         exp_sym_flag='-Bexport'
21589         no_entry_flag=""
21590       else
21591         # If we're using GNU nm, then we don't want the "-C" option.
21592         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21593         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21594           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'
21595         else
21596           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'
21597         fi
21598         aix_use_runtimelinking=no
21599
21600         # Test if we are trying to use run time linking or normal
21601         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21602         # need to do runtime linking.
21603         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21604           for ld_flag in $LDFLAGS; do
21605           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21606             aix_use_runtimelinking=yes
21607             break
21608           fi
21609           done
21610         esac
21611
21612         exp_sym_flag='-bexport'
21613         no_entry_flag='-bnoentry'
21614       fi
21615
21616       # When large executables or shared objects are built, AIX ld can
21617       # have problems creating the table of contents.  If linking a library
21618       # or program results in "error TOC overflow" add -mminimal-toc to
21619       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21620       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21621
21622       archive_cmds_GCJ=''
21623       hardcode_direct_GCJ=yes
21624       hardcode_libdir_separator_GCJ=':'
21625       link_all_deplibs_GCJ=yes
21626
21627       if test "$GCC" = yes; then
21628         case $host_os in aix4.012|aix4.012.*)
21629         # We only want to do this on AIX 4.2 and lower, the check
21630         # below for broken collect2 doesn't work under 4.3+
21631           collect2name=`${CC} -print-prog-name=collect2`
21632           if test -f "$collect2name" && \
21633            strings "$collect2name" | grep resolve_lib_name >/dev/null
21634           then
21635           # We have reworked collect2
21636           hardcode_direct_GCJ=yes
21637           else
21638           # We have old collect2
21639           hardcode_direct_GCJ=unsupported
21640           # It fails to find uninstalled libraries when the uninstalled
21641           # path is not listed in the libpath.  Setting hardcode_minus_L
21642           # to unsupported forces relinking
21643           hardcode_minus_L_GCJ=yes
21644           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21645           hardcode_libdir_separator_GCJ=
21646           fi
21647         esac
21648         shared_flag='-shared'
21649       else
21650         # not using gcc
21651         if test "$host_cpu" = ia64; then
21652         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21653         # chokes on -Wl,-G. The following line is correct:
21654           shared_flag='-G'
21655         else
21656         if test "$aix_use_runtimelinking" = yes; then
21657             shared_flag='${wl}-G'
21658           else
21659             shared_flag='${wl}-bM:SRE'
21660         fi
21661         fi
21662       fi
21663
21664       # It seems that -bexpall does not export symbols beginning with
21665       # underscore (_), so it is better to generate a list of symbols to export.
21666       always_export_symbols_GCJ=yes
21667       if test "$aix_use_runtimelinking" = yes; then
21668         # Warning - without using the other runtime loading flags (-brtl),
21669         # -berok will link without error, but may produce a broken library.
21670         allow_undefined_flag_GCJ='-berok'
21671        # Determine the default libpath from the value encoded in an empty executable.
21672        cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h.  */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h.  */
21678
21679 int
21680 main ()
21681 {
21682
21683   ;
21684   return 0;
21685 }
21686 _ACEOF
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21689   (eval $ac_link) 2>conftest.er1
21690   ac_status=$?
21691   grep -v '^ *+' conftest.er1 >conftest.err
21692   rm -f conftest.er1
21693   cat conftest.err >&5
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } &&
21696          { ac_try='test -z "$ac_c_werror_flag"
21697                          || test ! -s conftest.err'
21698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699   (eval $ac_try) 2>&5
21700   ac_status=$?
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); }; } &&
21703          { ac_try='test -s conftest$ac_exeext'
21704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705   (eval $ac_try) 2>&5
21706   ac_status=$?
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); }; }; then
21709
21710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21711 }'`
21712 # Check for a 64-bit object if we didn't find anything.
21713 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; }
21714 }'`; fi
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719 fi
21720 rm -f conftest.err conftest.$ac_objext \
21721       conftest$ac_exeext conftest.$ac_ext
21722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21723
21724        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21725         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"
21726        else
21727         if test "$host_cpu" = ia64; then
21728           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21729           allow_undefined_flag_GCJ="-z nodefs"
21730           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"
21731         else
21732          # Determine the default libpath from the value encoded in an empty executable.
21733          cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739
21740 int
21741 main ()
21742 {
21743
21744   ;
21745   return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext conftest$ac_exeext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21750   (eval $ac_link) 2>conftest.er1
21751   ac_status=$?
21752   grep -v '^ *+' conftest.er1 >conftest.err
21753   rm -f conftest.er1
21754   cat conftest.err >&5
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); } &&
21757          { ac_try='test -z "$ac_c_werror_flag"
21758                          || test ! -s conftest.err'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; } &&
21764          { ac_try='test -s conftest$ac_exeext'
21765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766   (eval $ac_try) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; }; then
21770
21771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21772 }'`
21773 # Check for a 64-bit object if we didn't find anything.
21774 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; }
21775 }'`; fi
21776 else
21777   echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21779
21780 fi
21781 rm -f conftest.err conftest.$ac_objext \
21782       conftest$ac_exeext conftest.$ac_ext
21783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21784
21785          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21786           # Warning - without using the other run time loading flags,
21787           # -berok will link without error, but may produce a broken library.
21788           no_undefined_flag_GCJ=' ${wl}-bernotok'
21789           allow_undefined_flag_GCJ=' ${wl}-berok'
21790           # -bexpall does not export symbols beginning with underscore (_)
21791           always_export_symbols_GCJ=yes
21792           # Exported symbols can be pulled into shared objects from archives
21793           whole_archive_flag_spec_GCJ=' '
21794           archive_cmds_need_lc_GCJ=yes
21795           # This is similar to how AIX traditionally builds it's shared libraries.
21796           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'
21797         fi
21798       fi
21799       ;;
21800
21801     amigaos*)
21802       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)'
21803       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21804       hardcode_minus_L_GCJ=yes
21805       # see comment about different semantics on the GNU ld section
21806       ld_shlibs_GCJ=no
21807       ;;
21808
21809     bsdi[45]*)
21810       export_dynamic_flag_spec_GCJ=-rdynamic
21811       ;;
21812
21813     cygwin* | mingw* | pw32*)
21814       # When not using gcc, we currently assume that we are using
21815       # Microsoft Visual C++.
21816       # hardcode_libdir_flag_spec is actually meaningless, as there is
21817       # no search path for DLLs.
21818       hardcode_libdir_flag_spec_GCJ=' '
21819       allow_undefined_flag_GCJ=unsupported
21820       # Tell ltmain to make .lib files, not .a files.
21821       libext=lib
21822       # Tell ltmain to make .dll files, not .so files.
21823       shrext_cmds=".dll"
21824       # FIXME: Setting linknames here is a bad hack.
21825       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21826       # The linker will automatically build a .lib file if we build a DLL.
21827       old_archive_From_new_cmds_GCJ='true'
21828       # FIXME: Should let the user specify the lib program.
21829       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21830       fix_srcfile_path='`cygpath -w "$srcfile"`'
21831       enable_shared_with_static_runtimes_GCJ=yes
21832       ;;
21833
21834     darwin* | rhapsody*)
21835       case "$host_os" in
21836         rhapsody* | darwin1.[012])
21837          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21838          ;;
21839        *) # Darwin 1.3 on
21840          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21841            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21842          else
21843            case ${MACOSX_DEPLOYMENT_TARGET} in
21844              10.[012])
21845                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21846                ;;
21847              10.*)
21848                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21849                ;;
21850            esac
21851          fi
21852          ;;
21853       esac
21854       archive_cmds_need_lc_GCJ=no
21855       hardcode_direct_GCJ=no
21856       hardcode_automatic_GCJ=yes
21857       hardcode_shlibpath_var_GCJ=unsupported
21858       whole_archive_flag_spec_GCJ=''
21859       link_all_deplibs_GCJ=yes
21860     if test "$GCC" = yes ; then
21861         output_verbose_link_cmd='echo'
21862         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21863       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21864       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21865       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}'
21866       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}'
21867     else
21868       case "$cc_basename" in
21869         xlc*)
21870          output_verbose_link_cmd='echo'
21871          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21872          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21873           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21874          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}'
21875           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}'
21876           ;;
21877        *)
21878          ld_shlibs_GCJ=no
21879           ;;
21880       esac
21881     fi
21882       ;;
21883
21884     dgux*)
21885       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21886       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21887       hardcode_shlibpath_var_GCJ=no
21888       ;;
21889
21890     freebsd1*)
21891       ld_shlibs_GCJ=no
21892       ;;
21893
21894     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21895     # support.  Future versions do this automatically, but an explicit c++rt0.o
21896     # does not break anything, and helps significantly (at the cost of a little
21897     # extra space).
21898     freebsd2.2*)
21899       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21900       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21901       hardcode_direct_GCJ=yes
21902       hardcode_shlibpath_var_GCJ=no
21903       ;;
21904
21905     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21906     freebsd2*)
21907       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21908       hardcode_direct_GCJ=yes
21909       hardcode_minus_L_GCJ=yes
21910       hardcode_shlibpath_var_GCJ=no
21911       ;;
21912
21913     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21914     freebsd* | kfreebsd*-gnu)
21915       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21916       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21917       hardcode_direct_GCJ=yes
21918       hardcode_shlibpath_var_GCJ=no
21919       ;;
21920
21921     hpux9*)
21922       if test "$GCC" = yes; then
21923         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'
21924       else
21925         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'
21926       fi
21927       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21928       hardcode_libdir_separator_GCJ=:
21929       hardcode_direct_GCJ=yes
21930
21931       # hardcode_minus_L: Not really in the search PATH,
21932       # but as the default location of the library.
21933       hardcode_minus_L_GCJ=yes
21934       export_dynamic_flag_spec_GCJ='${wl}-E'
21935       ;;
21936
21937     hpux10* | hpux11*)
21938       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21939         case "$host_cpu" in
21940         hppa*64*|ia64*)
21941           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21942           ;;
21943         *)
21944           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21945           ;;
21946         esac
21947       else
21948         case "$host_cpu" in
21949         hppa*64*|ia64*)
21950           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21951           ;;
21952         *)
21953           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21954           ;;
21955         esac
21956       fi
21957       if test "$with_gnu_ld" = no; then
21958         case "$host_cpu" in
21959         hppa*64*)
21960           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21961           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21962           hardcode_libdir_separator_GCJ=:
21963           hardcode_direct_GCJ=no
21964           hardcode_shlibpath_var_GCJ=no
21965           ;;
21966         ia64*)
21967           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21968           hardcode_direct_GCJ=no
21969           hardcode_shlibpath_var_GCJ=no
21970
21971           # hardcode_minus_L: Not really in the search PATH,
21972           # but as the default location of the library.
21973           hardcode_minus_L_GCJ=yes
21974           ;;
21975         *)
21976           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21977           hardcode_libdir_separator_GCJ=:
21978           hardcode_direct_GCJ=yes
21979           export_dynamic_flag_spec_GCJ='${wl}-E'
21980
21981           # hardcode_minus_L: Not really in the search PATH,
21982           # but as the default location of the library.
21983           hardcode_minus_L_GCJ=yes
21984           ;;
21985         esac
21986       fi
21987       ;;
21988
21989     irix5* | irix6* | nonstopux*)
21990       if test "$GCC" = yes; then
21991         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'
21992       else
21993         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'
21994         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21995       fi
21996       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21997       hardcode_libdir_separator_GCJ=:
21998       link_all_deplibs_GCJ=yes
21999       ;;
22000
22001     netbsd*)
22002       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22003         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22004       else
22005         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22006       fi
22007       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22008       hardcode_direct_GCJ=yes
22009       hardcode_shlibpath_var_GCJ=no
22010       ;;
22011
22012     newsos6)
22013       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014       hardcode_direct_GCJ=yes
22015       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22016       hardcode_libdir_separator_GCJ=:
22017       hardcode_shlibpath_var_GCJ=no
22018       ;;
22019
22020     openbsd*)
22021       hardcode_direct_GCJ=yes
22022       hardcode_shlibpath_var_GCJ=no
22023       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22024         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22025         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22026         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22027         export_dynamic_flag_spec_GCJ='${wl}-E'
22028       else
22029        case $host_os in
22030          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22031            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22033            ;;
22034          *)
22035            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22036            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22037            ;;
22038        esac
22039       fi
22040       ;;
22041
22042     os2*)
22043       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22044       hardcode_minus_L_GCJ=yes
22045       allow_undefined_flag_GCJ=unsupported
22046       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'
22047       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22048       ;;
22049
22050     osf3*)
22051       if test "$GCC" = yes; then
22052         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22053         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'
22054       else
22055         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22056         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'
22057       fi
22058       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22059       hardcode_libdir_separator_GCJ=:
22060       ;;
22061
22062     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22063       if test "$GCC" = yes; then
22064         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22065         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'
22066         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22067       else
22068         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22069         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'
22070         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~
22071         $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'
22072
22073         # Both c and cxx compiler support -rpath directly
22074         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22075       fi
22076       hardcode_libdir_separator_GCJ=:
22077       ;;
22078
22079     sco3.2v5*)
22080       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22081       hardcode_shlibpath_var_GCJ=no
22082       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22083       runpath_var=LD_RUN_PATH
22084       hardcode_runpath_var=yes
22085       ;;
22086
22087     solaris*)
22088       no_undefined_flag_GCJ=' -z text'
22089       if test "$GCC" = yes; then
22090         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22091         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22092           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22093       else
22094         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22095         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22096         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22097       fi
22098       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22099       hardcode_shlibpath_var_GCJ=no
22100       case $host_os in
22101       solaris2.[0-5] | solaris2.[0-5].*) ;;
22102       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22103         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22104       esac
22105       link_all_deplibs_GCJ=yes
22106       ;;
22107
22108     sunos4*)
22109       if test "x$host_vendor" = xsequent; then
22110         # Use $CC to link under sequent, because it throws in some extra .o
22111         # files that make .init and .fini sections work.
22112         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22113       else
22114         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22115       fi
22116       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22117       hardcode_direct_GCJ=yes
22118       hardcode_minus_L_GCJ=yes
22119       hardcode_shlibpath_var_GCJ=no
22120       ;;
22121
22122     sysv4)
22123       case $host_vendor in
22124         sni)
22125           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22126           hardcode_direct_GCJ=yes # is this really true???
22127         ;;
22128         siemens)
22129           ## LD is ld it makes a PLAMLIB
22130           ## CC just makes a GrossModule.
22131           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22132           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22133           hardcode_direct_GCJ=no
22134         ;;
22135         motorola)
22136           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22137           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22138         ;;
22139       esac
22140       runpath_var='LD_RUN_PATH'
22141       hardcode_shlibpath_var_GCJ=no
22142       ;;
22143
22144     sysv4.3*)
22145       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146       hardcode_shlibpath_var_GCJ=no
22147       export_dynamic_flag_spec_GCJ='-Bexport'
22148       ;;
22149
22150     sysv4*MP*)
22151       if test -d /usr/nec; then
22152         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22153         hardcode_shlibpath_var_GCJ=no
22154         runpath_var=LD_RUN_PATH
22155         hardcode_runpath_var=yes
22156         ld_shlibs_GCJ=yes
22157       fi
22158       ;;
22159
22160     sysv4.2uw2*)
22161       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22162       hardcode_direct_GCJ=yes
22163       hardcode_minus_L_GCJ=no
22164       hardcode_shlibpath_var_GCJ=no
22165       hardcode_runpath_var=yes
22166       runpath_var=LD_RUN_PATH
22167       ;;
22168
22169    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22170       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22171       if test "$GCC" = yes; then
22172         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22173       else
22174         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22175       fi
22176       runpath_var='LD_RUN_PATH'
22177       hardcode_shlibpath_var_GCJ=no
22178       ;;
22179
22180     sysv5*)
22181       no_undefined_flag_GCJ=' -z text'
22182       # $CC -shared without GNU ld will not create a library from C++
22183       # object files and a static libstdc++, better avoid it by now
22184       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22185       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22186                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22187       hardcode_libdir_flag_spec_GCJ=
22188       hardcode_shlibpath_var_GCJ=no
22189       runpath_var='LD_RUN_PATH'
22190       ;;
22191
22192     uts4*)
22193       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22194       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22195       hardcode_shlibpath_var_GCJ=no
22196       ;;
22197
22198     *)
22199       ld_shlibs_GCJ=no
22200       ;;
22201     esac
22202   fi
22203
22204 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22205 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22206 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22207
22208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22209 if test "$GCC" = yes; then
22210   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22211 fi
22212
22213 #
22214 # Do we need to explicitly link libc?
22215 #
22216 case "x$archive_cmds_need_lc_GCJ" in
22217 x|xyes)
22218   # Assume -lc should be added
22219   archive_cmds_need_lc_GCJ=yes
22220
22221   if test "$enable_shared" = yes && test "$GCC" = yes; then
22222     case $archive_cmds_GCJ in
22223     *'~'*)
22224       # FIXME: we may have to deal with multi-command sequences.
22225       ;;
22226     '$CC '*)
22227       # Test whether the compiler implicitly links with -lc since on some
22228       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22229       # to ld, don't add -lc before -lgcc.
22230       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22231 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22232       $rm conftest*
22233       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22234
22235       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22236   (eval $ac_compile) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } 2>conftest.err; then
22240         soname=conftest
22241         lib=conftest
22242         libobjs=conftest.$ac_objext
22243         deplibs=
22244         wl=$lt_prog_compiler_wl_GCJ
22245         compiler_flags=-v
22246         linker_flags=-v
22247         verstring=
22248         output_objdir=.
22249         libname=conftest
22250         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22251         allow_undefined_flag_GCJ=
22252         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22253   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }
22257         then
22258           archive_cmds_need_lc_GCJ=no
22259         else
22260           archive_cmds_need_lc_GCJ=yes
22261         fi
22262         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22263       else
22264         cat conftest.err 1>&5
22265       fi
22266       $rm conftest*
22267       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22268 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22269       ;;
22270     esac
22271   fi
22272   ;;
22273 esac
22274
22275 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22277 library_names_spec=
22278 libname_spec='lib$name'
22279 soname_spec=
22280 shrext_cmds=".so"
22281 postinstall_cmds=
22282 postuninstall_cmds=
22283 finish_cmds=
22284 finish_eval=
22285 shlibpath_var=
22286 shlibpath_overrides_runpath=unknown
22287 version_type=none
22288 dynamic_linker="$host_os ld.so"
22289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22290 if test "$GCC" = yes; then
22291   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22292   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22293     # if the path contains ";" then we assume it to be the separator
22294     # otherwise default to the standard path separator (i.e. ":") - it is
22295     # assumed that no part of a normal pathname contains ";" but that should
22296     # okay in the real world where ";" in dirpaths is itself problematic.
22297     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22298   else
22299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22300   fi
22301 else
22302   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22303 fi
22304 need_lib_prefix=unknown
22305 hardcode_into_libs=no
22306
22307 # when you set need_version to no, make sure it does not cause -set_version
22308 # flags to be left without arguments
22309 need_version=unknown
22310
22311 case $host_os in
22312 aix3*)
22313   version_type=linux
22314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22315   shlibpath_var=LIBPATH
22316
22317   # AIX 3 has no versioning support, so we append a major version to the name.
22318   soname_spec='${libname}${release}${shared_ext}$major'
22319   ;;
22320
22321 aix4* | aix5*)
22322   version_type=linux
22323   need_lib_prefix=no
22324   need_version=no
22325   hardcode_into_libs=yes
22326   if test "$host_cpu" = ia64; then
22327     # AIX 5 supports IA64
22328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22329     shlibpath_var=LD_LIBRARY_PATH
22330   else
22331     # With GCC up to 2.95.x, collect2 would create an import file
22332     # for dependence libraries.  The import file would start with
22333     # the line `#! .'.  This would cause the generated library to
22334     # depend on `.', always an invalid library.  This was fixed in
22335     # development snapshots of GCC prior to 3.0.
22336     case $host_os in
22337       aix4 | aix4.[01] | aix4.[01].*)
22338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22339            echo ' yes '
22340            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22341         :
22342       else
22343         can_build_shared=no
22344       fi
22345       ;;
22346     esac
22347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22348     # soname into executable. Probably we can add versioning support to
22349     # collect2, so additional links can be useful in future.
22350     if test "$aix_use_runtimelinking" = yes; then
22351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22352       # instead of lib<name>.a to let people know that these are not
22353       # typical AIX shared libraries.
22354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22355     else
22356       # We preserve .a as extension for shared libraries through AIX4.2
22357       # and later when we are not doing run time linking.
22358       library_names_spec='${libname}${release}.a $libname.a'
22359       soname_spec='${libname}${release}${shared_ext}$major'
22360     fi
22361     shlibpath_var=LIBPATH
22362   fi
22363   ;;
22364
22365 amigaos*)
22366   library_names_spec='$libname.ixlibrary $libname.a'
22367   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22368   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'
22369   ;;
22370
22371 beos*)
22372   library_names_spec='${libname}${shared_ext}'
22373   dynamic_linker="$host_os ld.so"
22374   shlibpath_var=LIBRARY_PATH
22375   ;;
22376
22377 bsdi[45]*)
22378   version_type=linux
22379   need_version=no
22380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22381   soname_spec='${libname}${release}${shared_ext}$major'
22382   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22383   shlibpath_var=LD_LIBRARY_PATH
22384   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22385   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22386   # the default ld.so.conf also contains /usr/contrib/lib and
22387   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22388   # libtool to hard-code these into programs
22389   ;;
22390
22391 cygwin* | mingw* | pw32*)
22392   version_type=windows
22393   shrext_cmds=".dll"
22394   need_version=no
22395   need_lib_prefix=no
22396
22397   case $GCC,$host_os in
22398   yes,cygwin* | yes,mingw* | yes,pw32*)
22399     library_names_spec='$libname.dll.a'
22400     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22401     postinstall_cmds='base_file=`basename \${file}`~
22402       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22403       dldir=$destdir/`dirname \$dlpath`~
22404       test -d \$dldir || mkdir -p \$dldir~
22405       $install_prog $dir/$dlname \$dldir/$dlname'
22406     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22407       dlpath=$dir/\$dldll~
22408        $rm \$dlpath'
22409     shlibpath_overrides_runpath=yes
22410
22411     case $host_os in
22412     cygwin*)
22413       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22414       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22415       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22416       ;;
22417     mingw*)
22418       # MinGW DLLs use traditional 'lib' prefix
22419       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22420       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22421       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22422         # It is most probably a Windows format PATH printed by
22423         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22424         # path with ; separators, and with drive letters. We can handle the
22425         # drive letters (cygwin fileutils understands them), so leave them,
22426         # especially as we might pass files found there to a mingw objdump,
22427         # which wouldn't understand a cygwinified path. Ahh.
22428         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22429       else
22430         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22431       fi
22432       ;;
22433     pw32*)
22434       # pw32 DLLs use 'pw' prefix rather than 'lib'
22435       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22436       ;;
22437     esac
22438     ;;
22439
22440   *)
22441     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22442     ;;
22443   esac
22444   dynamic_linker='Win32 ld.exe'
22445   # FIXME: first we should search . and the directory the executable is in
22446   shlibpath_var=PATH
22447   ;;
22448
22449 darwin* | rhapsody*)
22450   dynamic_linker="$host_os dyld"
22451   version_type=darwin
22452   need_lib_prefix=no
22453   need_version=no
22454   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22455   soname_spec='${libname}${release}${major}$shared_ext'
22456   shlibpath_overrides_runpath=yes
22457   shlibpath_var=DYLD_LIBRARY_PATH
22458   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22459   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22460   if test "$GCC" = yes; then
22461     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"`
22462   else
22463     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22464   fi
22465   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22466   ;;
22467
22468 dgux*)
22469   version_type=linux
22470   need_lib_prefix=no
22471   need_version=no
22472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22473   soname_spec='${libname}${release}${shared_ext}$major'
22474   shlibpath_var=LD_LIBRARY_PATH
22475   ;;
22476
22477 freebsd1*)
22478   dynamic_linker=no
22479   ;;
22480
22481 kfreebsd*-gnu)
22482   version_type=linux
22483   need_lib_prefix=no
22484   need_version=no
22485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22486   soname_spec='${libname}${release}${shared_ext}$major'
22487   shlibpath_var=LD_LIBRARY_PATH
22488   shlibpath_overrides_runpath=no
22489   hardcode_into_libs=yes
22490   dynamic_linker='GNU ld.so'
22491   ;;
22492
22493 freebsd*)
22494   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22495   version_type=freebsd-$objformat
22496   case $version_type in
22497     freebsd-elf*)
22498       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22499       need_version=no
22500       need_lib_prefix=no
22501       ;;
22502     freebsd-*)
22503       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22504       need_version=yes
22505       ;;
22506   esac
22507   shlibpath_var=LD_LIBRARY_PATH
22508   case $host_os in
22509   freebsd2*)
22510     shlibpath_overrides_runpath=yes
22511     ;;
22512   freebsd3.01* | freebsdelf3.01*)
22513     shlibpath_overrides_runpath=yes
22514     hardcode_into_libs=yes
22515     ;;
22516   *) # from 3.2 on
22517     shlibpath_overrides_runpath=no
22518     hardcode_into_libs=yes
22519     ;;
22520   esac
22521   ;;
22522
22523 gnu*)
22524   version_type=linux
22525   need_lib_prefix=no
22526   need_version=no
22527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22528   soname_spec='${libname}${release}${shared_ext}$major'
22529   shlibpath_var=LD_LIBRARY_PATH
22530   hardcode_into_libs=yes
22531   ;;
22532
22533 hpux9* | hpux10* | hpux11*)
22534   # Give a soname corresponding to the major version so that dld.sl refuses to
22535   # link against other versions.
22536   version_type=sunos
22537   need_lib_prefix=no
22538   need_version=no
22539   case "$host_cpu" in
22540   ia64*)
22541     shrext_cmds='.so'
22542     hardcode_into_libs=yes
22543     dynamic_linker="$host_os dld.so"
22544     shlibpath_var=LD_LIBRARY_PATH
22545     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547     soname_spec='${libname}${release}${shared_ext}$major'
22548     if test "X$HPUX_IA64_MODE" = X32; then
22549       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22550     else
22551       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22552     fi
22553     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22554     ;;
22555    hppa*64*)
22556      shrext_cmds='.sl'
22557      hardcode_into_libs=yes
22558      dynamic_linker="$host_os dld.sl"
22559      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22560      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22561      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562      soname_spec='${libname}${release}${shared_ext}$major'
22563      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22564      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22565      ;;
22566    *)
22567     shrext_cmds='.sl'
22568     dynamic_linker="$host_os dld.sl"
22569     shlibpath_var=SHLIB_PATH
22570     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22572     soname_spec='${libname}${release}${shared_ext}$major'
22573     ;;
22574   esac
22575   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22576   postinstall_cmds='chmod 555 $lib'
22577   ;;
22578
22579 irix5* | irix6* | nonstopux*)
22580   case $host_os in
22581     nonstopux*) version_type=nonstopux ;;
22582     *)
22583         if test "$lt_cv_prog_gnu_ld" = yes; then
22584                 version_type=linux
22585         else
22586                 version_type=irix
22587         fi ;;
22588   esac
22589   need_lib_prefix=no
22590   need_version=no
22591   soname_spec='${libname}${release}${shared_ext}$major'
22592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22593   case $host_os in
22594   irix5* | nonstopux*)
22595     libsuff= shlibsuff=
22596     ;;
22597   *)
22598     case $LD in # libtool.m4 will add one of these switches to LD
22599     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22600       libsuff= shlibsuff= libmagic=32-bit;;
22601     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22602       libsuff=32 shlibsuff=N32 libmagic=N32;;
22603     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22604       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22605     *) libsuff= shlibsuff= libmagic=never-match;;
22606     esac
22607     ;;
22608   esac
22609   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22610   shlibpath_overrides_runpath=no
22611   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22612   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22613   hardcode_into_libs=yes
22614   ;;
22615
22616 # No shared lib support for Linux oldld, aout, or coff.
22617 linux*oldld* | linux*aout* | linux*coff*)
22618   dynamic_linker=no
22619   ;;
22620
22621 # This must be Linux ELF.
22622 linux*)
22623   version_type=linux
22624   need_lib_prefix=no
22625   need_version=no
22626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22627   soname_spec='${libname}${release}${shared_ext}$major'
22628   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22629   shlibpath_var=LD_LIBRARY_PATH
22630   shlibpath_overrides_runpath=no
22631   # This implies no fast_install, which is unacceptable.
22632   # Some rework will be needed to allow for fast_install
22633   # before this can be enabled.
22634   hardcode_into_libs=yes
22635
22636   # Append ld.so.conf contents to the search path
22637   if test -f /etc/ld.so.conf; then
22638     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22639     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22640   fi
22641
22642   # We used to test for /lib/ld.so.1 and disable shared libraries on
22643   # powerpc, because MkLinux only supported shared libraries with the
22644   # GNU dynamic linker.  Since this was broken with cross compilers,
22645   # most powerpc-linux boxes support dynamic linking these days and
22646   # people can always --disable-shared, the test was removed, and we
22647   # assume the GNU/Linux dynamic linker is in use.
22648   dynamic_linker='GNU/Linux ld.so'
22649   ;;
22650
22651 knetbsd*-gnu)
22652   version_type=linux
22653   need_lib_prefix=no
22654   need_version=no
22655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22656   soname_spec='${libname}${release}${shared_ext}$major'
22657   shlibpath_var=LD_LIBRARY_PATH
22658   shlibpath_overrides_runpath=no
22659   hardcode_into_libs=yes
22660   dynamic_linker='GNU ld.so'
22661   ;;
22662
22663 netbsd*)
22664   version_type=sunos
22665   need_lib_prefix=no
22666   need_version=no
22667   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22669     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22670     dynamic_linker='NetBSD (a.out) ld.so'
22671   else
22672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22673     soname_spec='${libname}${release}${shared_ext}$major'
22674     dynamic_linker='NetBSD ld.elf_so'
22675   fi
22676   shlibpath_var=LD_LIBRARY_PATH
22677   shlibpath_overrides_runpath=yes
22678   hardcode_into_libs=yes
22679   ;;
22680
22681 newsos6)
22682   version_type=linux
22683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684   shlibpath_var=LD_LIBRARY_PATH
22685   shlibpath_overrides_runpath=yes
22686   ;;
22687
22688 nto-qnx*)
22689   version_type=linux
22690   need_lib_prefix=no
22691   need_version=no
22692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22693   soname_spec='${libname}${release}${shared_ext}$major'
22694   shlibpath_var=LD_LIBRARY_PATH
22695   shlibpath_overrides_runpath=yes
22696   ;;
22697
22698 openbsd*)
22699   version_type=sunos
22700   need_lib_prefix=no
22701   need_version=no
22702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22703   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22704   shlibpath_var=LD_LIBRARY_PATH
22705   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22706     case $host_os in
22707       openbsd2.[89] | openbsd2.[89].*)
22708         shlibpath_overrides_runpath=no
22709         ;;
22710       *)
22711         shlibpath_overrides_runpath=yes
22712         ;;
22713       esac
22714   else
22715     shlibpath_overrides_runpath=yes
22716   fi
22717   ;;
22718
22719 os2*)
22720   libname_spec='$name'
22721   shrext_cmds=".dll"
22722   need_lib_prefix=no
22723   library_names_spec='$libname${shared_ext} $libname.a'
22724   dynamic_linker='OS/2 ld.exe'
22725   shlibpath_var=LIBPATH
22726   ;;
22727
22728 osf3* | osf4* | osf5*)
22729   version_type=osf
22730   need_lib_prefix=no
22731   need_version=no
22732   soname_spec='${libname}${release}${shared_ext}$major'
22733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734   shlibpath_var=LD_LIBRARY_PATH
22735   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22736   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22737   ;;
22738
22739 sco3.2v5*)
22740   version_type=osf
22741   soname_spec='${libname}${release}${shared_ext}$major'
22742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22743   shlibpath_var=LD_LIBRARY_PATH
22744   ;;
22745
22746 solaris*)
22747   version_type=linux
22748   need_lib_prefix=no
22749   need_version=no
22750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751   soname_spec='${libname}${release}${shared_ext}$major'
22752   shlibpath_var=LD_LIBRARY_PATH
22753   shlibpath_overrides_runpath=yes
22754   hardcode_into_libs=yes
22755   # ldd complains unless libraries are executable
22756   postinstall_cmds='chmod +x $lib'
22757   ;;
22758
22759 sunos4*)
22760   version_type=sunos
22761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22762   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22763   shlibpath_var=LD_LIBRARY_PATH
22764   shlibpath_overrides_runpath=yes
22765   if test "$with_gnu_ld" = yes; then
22766     need_lib_prefix=no
22767   fi
22768   need_version=yes
22769   ;;
22770
22771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22772   version_type=linux
22773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22774   soname_spec='${libname}${release}${shared_ext}$major'
22775   shlibpath_var=LD_LIBRARY_PATH
22776   case $host_vendor in
22777     sni)
22778       shlibpath_overrides_runpath=no
22779       need_lib_prefix=no
22780       export_dynamic_flag_spec='${wl}-Blargedynsym'
22781       runpath_var=LD_RUN_PATH
22782       ;;
22783     siemens)
22784       need_lib_prefix=no
22785       ;;
22786     motorola)
22787       need_lib_prefix=no
22788       need_version=no
22789       shlibpath_overrides_runpath=no
22790       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22791       ;;
22792   esac
22793   ;;
22794
22795 sysv4*MP*)
22796   if test -d /usr/nec ;then
22797     version_type=linux
22798     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22799     soname_spec='$libname${shared_ext}.$major'
22800     shlibpath_var=LD_LIBRARY_PATH
22801   fi
22802   ;;
22803
22804 uts4*)
22805   version_type=linux
22806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807   soname_spec='${libname}${release}${shared_ext}$major'
22808   shlibpath_var=LD_LIBRARY_PATH
22809   ;;
22810
22811 *)
22812   dynamic_linker=no
22813   ;;
22814 esac
22815 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22816 echo "${ECHO_T}$dynamic_linker" >&6
22817 test "$dynamic_linker" = no && can_build_shared=no
22818
22819 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22820 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22821 hardcode_action_GCJ=
22822 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22823    test -n "$runpath_var_GCJ" || \
22824    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22825
22826   # We can hardcode non-existant directories.
22827   if test "$hardcode_direct_GCJ" != no &&
22828      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22829      # have to relink, otherwise we might link with an installed library
22830      # when we should be linking with a yet-to-be-installed one
22831      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22832      test "$hardcode_minus_L_GCJ" != no; then
22833     # Linking always hardcodes the temporary library directory.
22834     hardcode_action_GCJ=relink
22835   else
22836     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22837     hardcode_action_GCJ=immediate
22838   fi
22839 else
22840   # We cannot hardcode anything, or else we can only hardcode existing
22841   # directories.
22842   hardcode_action_GCJ=unsupported
22843 fi
22844 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22845 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22846
22847 if test "$hardcode_action_GCJ" = relink; then
22848   # Fast installation is not supported
22849   enable_fast_install=no
22850 elif test "$shlibpath_overrides_runpath" = yes ||
22851      test "$enable_shared" = no; then
22852   # Fast installation is not necessary
22853   enable_fast_install=needless
22854 fi
22855
22856 striplib=
22857 old_striplib=
22858 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22859 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22860 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22861   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22862   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22863   echo "$as_me:$LINENO: result: yes" >&5
22864 echo "${ECHO_T}yes" >&6
22865 else
22866 # FIXME - insert some real tests, host_os isn't really good enough
22867   case $host_os in
22868    darwin*)
22869        if test -n "$STRIP" ; then
22870          striplib="$STRIP -x"
22871          echo "$as_me:$LINENO: result: yes" >&5
22872 echo "${ECHO_T}yes" >&6
22873        else
22874   echo "$as_me:$LINENO: result: no" >&5
22875 echo "${ECHO_T}no" >&6
22876 fi
22877        ;;
22878    *)
22879   echo "$as_me:$LINENO: result: no" >&5
22880 echo "${ECHO_T}no" >&6
22881     ;;
22882   esac
22883 fi
22884
22885 if test "x$enable_dlopen" != xyes; then
22886   enable_dlopen=unknown
22887   enable_dlopen_self=unknown
22888   enable_dlopen_self_static=unknown
22889 else
22890   lt_cv_dlopen=no
22891   lt_cv_dlopen_libs=
22892
22893   case $host_os in
22894   beos*)
22895     lt_cv_dlopen="load_add_on"
22896     lt_cv_dlopen_libs=
22897     lt_cv_dlopen_self=yes
22898     ;;
22899
22900   mingw* | pw32*)
22901     lt_cv_dlopen="LoadLibrary"
22902     lt_cv_dlopen_libs=
22903    ;;
22904
22905   cygwin*)
22906     lt_cv_dlopen="dlopen"
22907     lt_cv_dlopen_libs=
22908    ;;
22909
22910   darwin*)
22911   # if libdl is installed we need to link against it
22912     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22915   echo $ECHO_N "(cached) $ECHO_C" >&6
22916 else
22917   ac_check_lib_save_LIBS=$LIBS
22918 LIBS="-ldl  $LIBS"
22919 cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h.  */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h.  */
22925
22926 /* Override any gcc2 internal prototype to avoid an error.  */
22927 #ifdef __cplusplus
22928 extern "C"
22929 #endif
22930 /* We use char because int might match the return type of a gcc2
22931    builtin and then its argument prototype would still apply.  */
22932 char dlopen ();
22933 int
22934 main ()
22935 {
22936 dlopen ();
22937   ;
22938   return 0;
22939 }
22940 _ACEOF
22941 rm -f conftest.$ac_objext conftest$ac_exeext
22942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943   (eval $ac_link) 2>conftest.er1
22944   ac_status=$?
22945   grep -v '^ *+' conftest.er1 >conftest.err
22946   rm -f conftest.er1
22947   cat conftest.err >&5
22948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); } &&
22950          { ac_try='test -z "$ac_c_werror_flag"
22951                          || test ! -s conftest.err'
22952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953   (eval $ac_try) 2>&5
22954   ac_status=$?
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); }; } &&
22957          { ac_try='test -s conftest$ac_exeext'
22958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22959   (eval $ac_try) 2>&5
22960   ac_status=$?
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); }; }; then
22963   ac_cv_lib_dl_dlopen=yes
22964 else
22965   echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968 ac_cv_lib_dl_dlopen=no
22969 fi
22970 rm -f conftest.err conftest.$ac_objext \
22971       conftest$ac_exeext conftest.$ac_ext
22972 LIBS=$ac_check_lib_save_LIBS
22973 fi
22974 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22975 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22976 if test $ac_cv_lib_dl_dlopen = yes; then
22977   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22978 else
22979
22980     lt_cv_dlopen="dyld"
22981     lt_cv_dlopen_libs=
22982     lt_cv_dlopen_self=yes
22983
22984 fi
22985
22986    ;;
22987
22988   *)
22989     echo "$as_me:$LINENO: checking for shl_load" >&5
22990 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22991 if test "${ac_cv_func_shl_load+set}" = set; then
22992   echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994   cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h.  */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h.  */
23000 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23002 #define shl_load innocuous_shl_load
23003
23004 /* System header to define __stub macros and hopefully few prototypes,
23005     which can conflict with char shl_load (); below.
23006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23007     <limits.h> exists even on freestanding compilers.  */
23008
23009 #ifdef __STDC__
23010 # include <limits.h>
23011 #else
23012 # include <assert.h>
23013 #endif
23014
23015 #undef shl_load
23016
23017 /* Override any gcc2 internal prototype to avoid an error.  */
23018 #ifdef __cplusplus
23019 extern "C"
23020 {
23021 #endif
23022 /* We use char because int might match the return type of a gcc2
23023    builtin and then its argument prototype would still apply.  */
23024 char shl_load ();
23025 /* The GNU C library defines this for functions which it implements
23026     to always fail with ENOSYS.  Some functions are actually named
23027     something starting with __ and the normal name is an alias.  */
23028 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23029 choke me
23030 #else
23031 char (*f) () = shl_load;
23032 #endif
23033 #ifdef __cplusplus
23034 }
23035 #endif
23036
23037 int
23038 main ()
23039 {
23040 return f != shl_load;
23041   ;
23042   return 0;
23043 }
23044 _ACEOF
23045 rm -f conftest.$ac_objext conftest$ac_exeext
23046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23047   (eval $ac_link) 2>conftest.er1
23048   ac_status=$?
23049   grep -v '^ *+' conftest.er1 >conftest.err
23050   rm -f conftest.er1
23051   cat conftest.err >&5
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); } &&
23054          { ac_try='test -z "$ac_c_werror_flag"
23055                          || test ! -s conftest.err'
23056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057   (eval $ac_try) 2>&5
23058   ac_status=$?
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); }; } &&
23061          { ac_try='test -s conftest$ac_exeext'
23062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063   (eval $ac_try) 2>&5
23064   ac_status=$?
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); }; }; then
23067   ac_cv_func_shl_load=yes
23068 else
23069   echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23071
23072 ac_cv_func_shl_load=no
23073 fi
23074 rm -f conftest.err conftest.$ac_objext \
23075       conftest$ac_exeext conftest.$ac_ext
23076 fi
23077 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23078 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23079 if test $ac_cv_func_shl_load = yes; then
23080   lt_cv_dlopen="shl_load"
23081 else
23082   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23083 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23084 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23085   echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087   ac_check_lib_save_LIBS=$LIBS
23088 LIBS="-ldld  $LIBS"
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h.  */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h.  */
23095
23096 /* Override any gcc2 internal prototype to avoid an error.  */
23097 #ifdef __cplusplus
23098 extern "C"
23099 #endif
23100 /* We use char because int might match the return type of a gcc2
23101    builtin and then its argument prototype would still apply.  */
23102 char shl_load ();
23103 int
23104 main ()
23105 {
23106 shl_load ();
23107   ;
23108   return 0;
23109 }
23110 _ACEOF
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113   (eval $ac_link) 2>conftest.er1
23114   ac_status=$?
23115   grep -v '^ *+' conftest.er1 >conftest.err
23116   rm -f conftest.er1
23117   cat conftest.err >&5
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); } &&
23120          { ac_try='test -z "$ac_c_werror_flag"
23121                          || test ! -s conftest.err'
23122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123   (eval $ac_try) 2>&5
23124   ac_status=$?
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); }; } &&
23127          { ac_try='test -s conftest$ac_exeext'
23128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129   (eval $ac_try) 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); }; }; then
23133   ac_cv_lib_dld_shl_load=yes
23134 else
23135   echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138 ac_cv_lib_dld_shl_load=no
23139 fi
23140 rm -f conftest.err conftest.$ac_objext \
23141       conftest$ac_exeext conftest.$ac_ext
23142 LIBS=$ac_check_lib_save_LIBS
23143 fi
23144 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23145 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23146 if test $ac_cv_lib_dld_shl_load = yes; then
23147   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23148 else
23149   echo "$as_me:$LINENO: checking for dlopen" >&5
23150 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23151 if test "${ac_cv_func_dlopen+set}" = set; then
23152   echo $ECHO_N "(cached) $ECHO_C" >&6
23153 else
23154   cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h.  */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h.  */
23160 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23162 #define dlopen innocuous_dlopen
23163
23164 /* System header to define __stub macros and hopefully few prototypes,
23165     which can conflict with char dlopen (); below.
23166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23167     <limits.h> exists even on freestanding compilers.  */
23168
23169 #ifdef __STDC__
23170 # include <limits.h>
23171 #else
23172 # include <assert.h>
23173 #endif
23174
23175 #undef dlopen
23176
23177 /* Override any gcc2 internal prototype to avoid an error.  */
23178 #ifdef __cplusplus
23179 extern "C"
23180 {
23181 #endif
23182 /* We use char because int might match the return type of a gcc2
23183    builtin and then its argument prototype would still apply.  */
23184 char dlopen ();
23185 /* The GNU C library defines this for functions which it implements
23186     to always fail with ENOSYS.  Some functions are actually named
23187     something starting with __ and the normal name is an alias.  */
23188 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23189 choke me
23190 #else
23191 char (*f) () = dlopen;
23192 #endif
23193 #ifdef __cplusplus
23194 }
23195 #endif
23196
23197 int
23198 main ()
23199 {
23200 return f != dlopen;
23201   ;
23202   return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23207   (eval $ac_link) 2>conftest.er1
23208   ac_status=$?
23209   grep -v '^ *+' conftest.er1 >conftest.err
23210   rm -f conftest.er1
23211   cat conftest.err >&5
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); } &&
23214          { ac_try='test -z "$ac_c_werror_flag"
23215                          || test ! -s conftest.err'
23216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217   (eval $ac_try) 2>&5
23218   ac_status=$?
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); }; } &&
23221          { ac_try='test -s conftest$ac_exeext'
23222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223   (eval $ac_try) 2>&5
23224   ac_status=$?
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); }; }; then
23227   ac_cv_func_dlopen=yes
23228 else
23229   echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23231
23232 ac_cv_func_dlopen=no
23233 fi
23234 rm -f conftest.err conftest.$ac_objext \
23235       conftest$ac_exeext conftest.$ac_ext
23236 fi
23237 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23238 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23239 if test $ac_cv_func_dlopen = yes; then
23240   lt_cv_dlopen="dlopen"
23241 else
23242   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23243 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23244 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   ac_check_lib_save_LIBS=$LIBS
23248 LIBS="-ldl  $LIBS"
23249 cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255
23256 /* Override any gcc2 internal prototype to avoid an error.  */
23257 #ifdef __cplusplus
23258 extern "C"
23259 #endif
23260 /* We use char because int might match the return type of a gcc2
23261    builtin and then its argument prototype would still apply.  */
23262 char dlopen ();
23263 int
23264 main ()
23265 {
23266 dlopen ();
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23273   (eval $ac_link) 2>conftest.er1
23274   ac_status=$?
23275   grep -v '^ *+' conftest.er1 >conftest.err
23276   rm -f conftest.er1
23277   cat conftest.err >&5
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); } &&
23280          { ac_try='test -z "$ac_c_werror_flag"
23281                          || test ! -s conftest.err'
23282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283   (eval $ac_try) 2>&5
23284   ac_status=$?
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); }; } &&
23287          { ac_try='test -s conftest$ac_exeext'
23288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289   (eval $ac_try) 2>&5
23290   ac_status=$?
23291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292   (exit $ac_status); }; }; then
23293   ac_cv_lib_dl_dlopen=yes
23294 else
23295   echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297
23298 ac_cv_lib_dl_dlopen=no
23299 fi
23300 rm -f conftest.err conftest.$ac_objext \
23301       conftest$ac_exeext conftest.$ac_ext
23302 LIBS=$ac_check_lib_save_LIBS
23303 fi
23304 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23305 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23306 if test $ac_cv_lib_dl_dlopen = yes; then
23307   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23308 else
23309   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23310 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23311 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23312   echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314   ac_check_lib_save_LIBS=$LIBS
23315 LIBS="-lsvld  $LIBS"
23316 cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h.  */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h.  */
23322
23323 /* Override any gcc2 internal prototype to avoid an error.  */
23324 #ifdef __cplusplus
23325 extern "C"
23326 #endif
23327 /* We use char because int might match the return type of a gcc2
23328    builtin and then its argument prototype would still apply.  */
23329 char dlopen ();
23330 int
23331 main ()
23332 {
23333 dlopen ();
23334   ;
23335   return 0;
23336 }
23337 _ACEOF
23338 rm -f conftest.$ac_objext conftest$ac_exeext
23339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23340   (eval $ac_link) 2>conftest.er1
23341   ac_status=$?
23342   grep -v '^ *+' conftest.er1 >conftest.err
23343   rm -f conftest.er1
23344   cat conftest.err >&5
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } &&
23347          { ac_try='test -z "$ac_c_werror_flag"
23348                          || test ! -s conftest.err'
23349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350   (eval $ac_try) 2>&5
23351   ac_status=$?
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); }; } &&
23354          { ac_try='test -s conftest$ac_exeext'
23355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356   (eval $ac_try) 2>&5
23357   ac_status=$?
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); }; }; then
23360   ac_cv_lib_svld_dlopen=yes
23361 else
23362   echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23364
23365 ac_cv_lib_svld_dlopen=no
23366 fi
23367 rm -f conftest.err conftest.$ac_objext \
23368       conftest$ac_exeext conftest.$ac_ext
23369 LIBS=$ac_check_lib_save_LIBS
23370 fi
23371 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23372 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23373 if test $ac_cv_lib_svld_dlopen = yes; then
23374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23375 else
23376   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23377 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23378 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23379   echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381   ac_check_lib_save_LIBS=$LIBS
23382 LIBS="-ldld  $LIBS"
23383 cat >conftest.$ac_ext <<_ACEOF
23384 /* confdefs.h.  */
23385 _ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h.  */
23389
23390 /* Override any gcc2 internal prototype to avoid an error.  */
23391 #ifdef __cplusplus
23392 extern "C"
23393 #endif
23394 /* We use char because int might match the return type of a gcc2
23395    builtin and then its argument prototype would still apply.  */
23396 char dld_link ();
23397 int
23398 main ()
23399 {
23400 dld_link ();
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext conftest$ac_exeext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23407   (eval $ac_link) 2>conftest.er1
23408   ac_status=$?
23409   grep -v '^ *+' conftest.er1 >conftest.err
23410   rm -f conftest.er1
23411   cat conftest.err >&5
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } &&
23414          { ac_try='test -z "$ac_c_werror_flag"
23415                          || test ! -s conftest.err'
23416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417   (eval $ac_try) 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); }; } &&
23421          { ac_try='test -s conftest$ac_exeext'
23422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423   (eval $ac_try) 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; }; then
23427   ac_cv_lib_dld_dld_link=yes
23428 else
23429   echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23431
23432 ac_cv_lib_dld_dld_link=no
23433 fi
23434 rm -f conftest.err conftest.$ac_objext \
23435       conftest$ac_exeext conftest.$ac_ext
23436 LIBS=$ac_check_lib_save_LIBS
23437 fi
23438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23439 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23440 if test $ac_cv_lib_dld_dld_link = yes; then
23441   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23442 fi
23443
23444
23445 fi
23446
23447
23448 fi
23449
23450
23451 fi
23452
23453
23454 fi
23455
23456
23457 fi
23458
23459     ;;
23460   esac
23461
23462   if test "x$lt_cv_dlopen" != xno; then
23463     enable_dlopen=yes
23464   else
23465     enable_dlopen=no
23466   fi
23467
23468   case $lt_cv_dlopen in
23469   dlopen)
23470     save_CPPFLAGS="$CPPFLAGS"
23471     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23472
23473     save_LDFLAGS="$LDFLAGS"
23474     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23475
23476     save_LIBS="$LIBS"
23477     LIBS="$lt_cv_dlopen_libs $LIBS"
23478
23479     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23480 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23481 if test "${lt_cv_dlopen_self+set}" = set; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 else
23484           if test "$cross_compiling" = yes; then :
23485   lt_cv_dlopen_self=cross
23486 else
23487   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23488   lt_status=$lt_dlunknown
23489   cat > conftest.$ac_ext <<EOF
23490 #line 23490 "configure"
23491 #include "confdefs.h"
23492
23493 #if HAVE_DLFCN_H
23494 #include <dlfcn.h>
23495 #endif
23496
23497 #include <stdio.h>
23498
23499 #ifdef RTLD_GLOBAL
23500 #  define LT_DLGLOBAL           RTLD_GLOBAL
23501 #else
23502 #  ifdef DL_GLOBAL
23503 #    define LT_DLGLOBAL         DL_GLOBAL
23504 #  else
23505 #    define LT_DLGLOBAL         0
23506 #  endif
23507 #endif
23508
23509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23510    find out it does not work in some platform. */
23511 #ifndef LT_DLLAZY_OR_NOW
23512 #  ifdef RTLD_LAZY
23513 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23514 #  else
23515 #    ifdef DL_LAZY
23516 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23517 #    else
23518 #      ifdef RTLD_NOW
23519 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23520 #      else
23521 #        ifdef DL_NOW
23522 #          define LT_DLLAZY_OR_NOW      DL_NOW
23523 #        else
23524 #          define LT_DLLAZY_OR_NOW      0
23525 #        endif
23526 #      endif
23527 #    endif
23528 #  endif
23529 #endif
23530
23531 #ifdef __cplusplus
23532 extern "C" void exit (int);
23533 #endif
23534
23535 void fnord() { int i=42;}
23536 int main ()
23537 {
23538   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23539   int status = $lt_dlunknown;
23540
23541   if (self)
23542     {
23543       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23544       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23545       /* dlclose (self); */
23546     }
23547
23548     exit (status);
23549 }
23550 EOF
23551   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552   (eval $ac_link) 2>&5
23553   ac_status=$?
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23556     (./conftest; exit; ) 2>/dev/null
23557     lt_status=$?
23558     case x$lt_status in
23559       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23560       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23561       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23562     esac
23563   else :
23564     # compilation failed
23565     lt_cv_dlopen_self=no
23566   fi
23567 fi
23568 rm -fr conftest*
23569
23570
23571 fi
23572 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23573 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23574
23575     if test "x$lt_cv_dlopen_self" = xyes; then
23576       LDFLAGS="$LDFLAGS $link_static_flag"
23577       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23578 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23579 if test "${lt_cv_dlopen_self_static+set}" = set; then
23580   echo $ECHO_N "(cached) $ECHO_C" >&6
23581 else
23582           if test "$cross_compiling" = yes; then :
23583   lt_cv_dlopen_self_static=cross
23584 else
23585   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23586   lt_status=$lt_dlunknown
23587   cat > conftest.$ac_ext <<EOF
23588 #line 23588 "configure"
23589 #include "confdefs.h"
23590
23591 #if HAVE_DLFCN_H
23592 #include <dlfcn.h>
23593 #endif
23594
23595 #include <stdio.h>
23596
23597 #ifdef RTLD_GLOBAL
23598 #  define LT_DLGLOBAL           RTLD_GLOBAL
23599 #else
23600 #  ifdef DL_GLOBAL
23601 #    define LT_DLGLOBAL         DL_GLOBAL
23602 #  else
23603 #    define LT_DLGLOBAL         0
23604 #  endif
23605 #endif
23606
23607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23608    find out it does not work in some platform. */
23609 #ifndef LT_DLLAZY_OR_NOW
23610 #  ifdef RTLD_LAZY
23611 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23612 #  else
23613 #    ifdef DL_LAZY
23614 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23615 #    else
23616 #      ifdef RTLD_NOW
23617 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23618 #      else
23619 #        ifdef DL_NOW
23620 #          define LT_DLLAZY_OR_NOW      DL_NOW
23621 #        else
23622 #          define LT_DLLAZY_OR_NOW      0
23623 #        endif
23624 #      endif
23625 #    endif
23626 #  endif
23627 #endif
23628
23629 #ifdef __cplusplus
23630 extern "C" void exit (int);
23631 #endif
23632
23633 void fnord() { int i=42;}
23634 int main ()
23635 {
23636   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23637   int status = $lt_dlunknown;
23638
23639   if (self)
23640     {
23641       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23642       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23643       /* dlclose (self); */
23644     }
23645
23646     exit (status);
23647 }
23648 EOF
23649   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650   (eval $ac_link) 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23654     (./conftest; exit; ) 2>/dev/null
23655     lt_status=$?
23656     case x$lt_status in
23657       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23658       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23659       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23660     esac
23661   else :
23662     # compilation failed
23663     lt_cv_dlopen_self_static=no
23664   fi
23665 fi
23666 rm -fr conftest*
23667
23668
23669 fi
23670 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23671 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23672     fi
23673
23674     CPPFLAGS="$save_CPPFLAGS"
23675     LDFLAGS="$save_LDFLAGS"
23676     LIBS="$save_LIBS"
23677     ;;
23678   esac
23679
23680   case $lt_cv_dlopen_self in
23681   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23682   *) enable_dlopen_self=unknown ;;
23683   esac
23684
23685   case $lt_cv_dlopen_self_static in
23686   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23687   *) enable_dlopen_self_static=unknown ;;
23688   esac
23689 fi
23690
23691
23692 # The else clause should only fire when bootstrapping the
23693 # libtool distribution, otherwise you forgot to ship ltmain.sh
23694 # with your package, and you will get complaints that there are
23695 # no rules to generate ltmain.sh.
23696 if test -f "$ltmain"; then
23697   # See if we are running on zsh, and set the options which allow our commands through
23698   # without removal of \ escapes.
23699   if test -n "${ZSH_VERSION+set}" ; then
23700     setopt NO_GLOB_SUBST
23701   fi
23702   # Now quote all the things that may contain metacharacters while being
23703   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23704   # variables and quote the copies for generation of the libtool script.
23705   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23706     SED SHELL STRIP \
23707     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23708     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23709     deplibs_check_method reload_flag reload_cmds need_locks \
23710     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23711     lt_cv_sys_global_symbol_to_c_name_address \
23712     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23713     old_postinstall_cmds old_postuninstall_cmds \
23714     compiler_GCJ \
23715     CC_GCJ \
23716     LD_GCJ \
23717     lt_prog_compiler_wl_GCJ \
23718     lt_prog_compiler_pic_GCJ \
23719     lt_prog_compiler_static_GCJ \
23720     lt_prog_compiler_no_builtin_flag_GCJ \
23721     export_dynamic_flag_spec_GCJ \
23722     thread_safe_flag_spec_GCJ \
23723     whole_archive_flag_spec_GCJ \
23724     enable_shared_with_static_runtimes_GCJ \
23725     old_archive_cmds_GCJ \
23726     old_archive_from_new_cmds_GCJ \
23727     predep_objects_GCJ \
23728     postdep_objects_GCJ \
23729     predeps_GCJ \
23730     postdeps_GCJ \
23731     compiler_lib_search_path_GCJ \
23732     archive_cmds_GCJ \
23733     archive_expsym_cmds_GCJ \
23734     postinstall_cmds_GCJ \
23735     postuninstall_cmds_GCJ \
23736     old_archive_from_expsyms_cmds_GCJ \
23737     allow_undefined_flag_GCJ \
23738     no_undefined_flag_GCJ \
23739     export_symbols_cmds_GCJ \
23740     hardcode_libdir_flag_spec_GCJ \
23741     hardcode_libdir_flag_spec_ld_GCJ \
23742     hardcode_libdir_separator_GCJ \
23743     hardcode_automatic_GCJ \
23744     module_cmds_GCJ \
23745     module_expsym_cmds_GCJ \
23746     lt_cv_prog_compiler_c_o_GCJ \
23747     exclude_expsyms_GCJ \
23748     include_expsyms_GCJ; do
23749
23750     case $var in
23751     old_archive_cmds_GCJ | \
23752     old_archive_from_new_cmds_GCJ | \
23753     archive_cmds_GCJ | \
23754     archive_expsym_cmds_GCJ | \
23755     module_cmds_GCJ | \
23756     module_expsym_cmds_GCJ | \
23757     old_archive_from_expsyms_cmds_GCJ | \
23758     export_symbols_cmds_GCJ | \
23759     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23760     postinstall_cmds | postuninstall_cmds | \
23761     old_postinstall_cmds | old_postuninstall_cmds | \
23762     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23763       # Double-quote double-evaled strings.
23764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23765       ;;
23766     *)
23767       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23768       ;;
23769     esac
23770   done
23771
23772   case $lt_echo in
23773   *'\$0 --fallback-echo"')
23774     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23775     ;;
23776   esac
23777
23778 cfgfile="$ofile"
23779
23780   cat <<__EOF__ >> "$cfgfile"
23781 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23782
23783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23784
23785 # Shell to use when invoking shell scripts.
23786 SHELL=$lt_SHELL
23787
23788 # Whether or not to build shared libraries.
23789 build_libtool_libs=$enable_shared
23790
23791 # Whether or not to build static libraries.
23792 build_old_libs=$enable_static
23793
23794 # Whether or not to add -lc for building shared libraries.
23795 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23796
23797 # Whether or not to disallow shared libs when runtime libs are static
23798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23799
23800 # Whether or not to optimize for fast installation.
23801 fast_install=$enable_fast_install
23802
23803 # The host system.
23804 host_alias=$host_alias
23805 host=$host
23806
23807 # An echo program that does not interpret backslashes.
23808 echo=$lt_echo
23809
23810 # The archiver.
23811 AR=$lt_AR
23812 AR_FLAGS=$lt_AR_FLAGS
23813
23814 # A C compiler.
23815 LTCC=$lt_LTCC
23816
23817 # A language-specific compiler.
23818 CC=$lt_compiler_GCJ
23819
23820 # Is the compiler the GNU C compiler?
23821 with_gcc=$GCC_GCJ
23822
23823 # An ERE matcher.
23824 EGREP=$lt_EGREP
23825
23826 # The linker used to build libraries.
23827 LD=$lt_LD_GCJ
23828
23829 # Whether we need hard or soft links.
23830 LN_S=$lt_LN_S
23831
23832 # A BSD-compatible nm program.
23833 NM=$lt_NM
23834
23835 # A symbol stripping program
23836 STRIP=$lt_STRIP
23837
23838 # Used to examine libraries when file_magic_cmd begins "file"
23839 MAGIC_CMD=$MAGIC_CMD
23840
23841 # Used on cygwin: DLL creation program.
23842 DLLTOOL="$DLLTOOL"
23843
23844 # Used on cygwin: object dumper.
23845 OBJDUMP="$OBJDUMP"
23846
23847 # Used on cygwin: assembler.
23848 AS="$AS"
23849
23850 # The name of the directory that contains temporary libtool files.
23851 objdir=$objdir
23852
23853 # How to create reloadable object files.
23854 reload_flag=$lt_reload_flag
23855 reload_cmds=$lt_reload_cmds
23856
23857 # How to pass a linker flag through the compiler.
23858 wl=$lt_lt_prog_compiler_wl_GCJ
23859
23860 # Object file suffix (normally "o").
23861 objext="$ac_objext"
23862
23863 # Old archive suffix (normally "a").
23864 libext="$libext"
23865
23866 # Shared library suffix (normally ".so").
23867 shrext_cmds='$shrext_cmds'
23868
23869 # Executable file suffix (normally "").
23870 exeext="$exeext"
23871
23872 # Additional compiler flags for building library objects.
23873 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23874 pic_mode=$pic_mode
23875
23876 # What is the maximum length of a command?
23877 max_cmd_len=$lt_cv_sys_max_cmd_len
23878
23879 # Does compiler simultaneously support -c and -o options?
23880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23881
23882 # Must we lock files when doing compilation ?
23883 need_locks=$lt_need_locks
23884
23885 # Do we need the lib prefix for modules?
23886 need_lib_prefix=$need_lib_prefix
23887
23888 # Do we need a version for libraries?
23889 need_version=$need_version
23890
23891 # Whether dlopen is supported.
23892 dlopen_support=$enable_dlopen
23893
23894 # Whether dlopen of programs is supported.
23895 dlopen_self=$enable_dlopen_self
23896
23897 # Whether dlopen of statically linked programs is supported.
23898 dlopen_self_static=$enable_dlopen_self_static
23899
23900 # Compiler flag to prevent dynamic linking.
23901 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23902
23903 # Compiler flag to turn off builtin functions.
23904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23905
23906 # Compiler flag to allow reflexive dlopens.
23907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23908
23909 # Compiler flag to generate shared objects directly from archives.
23910 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23911
23912 # Compiler flag to generate thread-safe objects.
23913 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23914
23915 # Library versioning type.
23916 version_type=$version_type
23917
23918 # Format of library name prefix.
23919 libname_spec=$lt_libname_spec
23920
23921 # List of archive names.  First name is the real one, the rest are links.
23922 # The last name is the one that the linker finds with -lNAME.
23923 library_names_spec=$lt_library_names_spec
23924
23925 # The coded name of the library, if different from the real name.
23926 soname_spec=$lt_soname_spec
23927
23928 # Commands used to build and install an old-style archive.
23929 RANLIB=$lt_RANLIB
23930 old_archive_cmds=$lt_old_archive_cmds_GCJ
23931 old_postinstall_cmds=$lt_old_postinstall_cmds
23932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23933
23934 # Create an old-style archive from a shared archive.
23935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23936
23937 # Create a temporary old-style archive to link instead of a shared archive.
23938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23939
23940 # Commands used to build and install a shared archive.
23941 archive_cmds=$lt_archive_cmds_GCJ
23942 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23943 postinstall_cmds=$lt_postinstall_cmds
23944 postuninstall_cmds=$lt_postuninstall_cmds
23945
23946 # Commands used to build a loadable module (assumed same as above if empty)
23947 module_cmds=$lt_module_cmds_GCJ
23948 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23949
23950 # Commands to strip libraries.
23951 old_striplib=$lt_old_striplib
23952 striplib=$lt_striplib
23953
23954 # Dependencies to place before the objects being linked to create a
23955 # shared library.
23956 predep_objects=$lt_predep_objects_GCJ
23957
23958 # Dependencies to place after the objects being linked to create a
23959 # shared library.
23960 postdep_objects=$lt_postdep_objects_GCJ
23961
23962 # Dependencies to place before the objects being linked to create a
23963 # shared library.
23964 predeps=$lt_predeps_GCJ
23965
23966 # Dependencies to place after the objects being linked to create a
23967 # shared library.
23968 postdeps=$lt_postdeps_GCJ
23969
23970 # The library search path used internally by the compiler when linking
23971 # a shared library.
23972 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23973
23974 # Method to check whether dependent libraries are shared objects.
23975 deplibs_check_method=$lt_deplibs_check_method
23976
23977 # Command to use when deplibs_check_method == file_magic.
23978 file_magic_cmd=$lt_file_magic_cmd
23979
23980 # Flag that allows shared libraries with undefined symbols to be built.
23981 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23982
23983 # Flag that forces no undefined symbols.
23984 no_undefined_flag=$lt_no_undefined_flag_GCJ
23985
23986 # Commands used to finish a libtool library installation in a directory.
23987 finish_cmds=$lt_finish_cmds
23988
23989 # Same as above, but a single script fragment to be evaled but not shown.
23990 finish_eval=$lt_finish_eval
23991
23992 # Take the output of nm and produce a listing of raw symbols and C names.
23993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23994
23995 # Transform the output of nm in a proper C declaration
23996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23997
23998 # Transform the output of nm in a C name address pair
23999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24000
24001 # This is the shared library runtime path variable.
24002 runpath_var=$runpath_var
24003
24004 # This is the shared library path variable.
24005 shlibpath_var=$shlibpath_var
24006
24007 # Is shlibpath searched before the hard-coded library search path?
24008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24009
24010 # How to hardcode a shared library path into an executable.
24011 hardcode_action=$hardcode_action_GCJ
24012
24013 # Whether we should hardcode library paths into libraries.
24014 hardcode_into_libs=$hardcode_into_libs
24015
24016 # Flag to hardcode \$libdir into a binary during linking.
24017 # This must work even if \$libdir does not exist.
24018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24019
24020 # If ld is used when linking, flag to hardcode \$libdir into
24021 # a binary during linking. This must work even if \$libdir does
24022 # not exist.
24023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24024
24025 # Whether we need a single -rpath flag with a separated argument.
24026 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24027
24028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24029 # resulting binary.
24030 hardcode_direct=$hardcode_direct_GCJ
24031
24032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24033 # resulting binary.
24034 hardcode_minus_L=$hardcode_minus_L_GCJ
24035
24036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24037 # the resulting binary.
24038 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24039
24040 # Set to yes if building a shared library automatically hardcodes DIR into the library
24041 # and all subsequent libraries and executables linked against it.
24042 hardcode_automatic=$hardcode_automatic_GCJ
24043
24044 # Variables whose values should be saved in libtool wrapper scripts and
24045 # restored at relink time.
24046 variables_saved_for_relink="$variables_saved_for_relink"
24047
24048 # Whether libtool must link a program against all its dependency libraries.
24049 link_all_deplibs=$link_all_deplibs_GCJ
24050
24051 # Compile-time system search path for libraries
24052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24053
24054 # Run-time system search path for libraries
24055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24056
24057 # Fix the shell variable \$srcfile for the compiler.
24058 fix_srcfile_path="$fix_srcfile_path_GCJ"
24059
24060 # Set to yes if exported symbols are required.
24061 always_export_symbols=$always_export_symbols_GCJ
24062
24063 # The commands to list exported symbols.
24064 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24065
24066 # The commands to extract the exported symbol list from a shared archive.
24067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24068
24069 # Symbols that should not be listed in the preloaded symbols.
24070 exclude_expsyms=$lt_exclude_expsyms_GCJ
24071
24072 # Symbols that must always be exported.
24073 include_expsyms=$lt_include_expsyms_GCJ
24074
24075 # ### END LIBTOOL TAG CONFIG: $tagname
24076
24077 __EOF__
24078
24079
24080 else
24081   # If there is no Makefile yet, we rely on a make rule to execute
24082   # `config.status --recheck' to rerun these tests and create the
24083   # libtool script then.
24084   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24085   if test -f "$ltmain_in"; then
24086     test -f Makefile && make "$ltmain"
24087   fi
24088 fi
24089
24090
24091 ac_ext=c
24092 ac_cpp='$CPP $CPPFLAGS'
24093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24096
24097 CC="$lt_save_CC"
24098
24099         else
24100           tagname=""
24101         fi
24102         ;;
24103
24104       RC)
24105         ac_ext=c
24106 ac_cpp='$CPP $CPPFLAGS'
24107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24110
24111
24112 # Source file extension for RC test sources.
24113 ac_ext=rc
24114
24115 # Object file extension for compiled RC test sources.
24116 objext=o
24117 objext_RC=$objext
24118
24119 # Code to be used in simple compile tests
24120 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24121
24122 # Code to be used in simple link tests
24123 lt_simple_link_test_code="$lt_simple_compile_test_code"
24124
24125 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24126
24127 # If no C compiler was specified, use CC.
24128 LTCC=${LTCC-"$CC"}
24129
24130 # Allow CC to be a program name with arguments.
24131 compiler=$CC
24132
24133
24134 # Allow CC to be a program name with arguments.
24135 lt_save_CC="$CC"
24136 CC=${RC-"windres"}
24137 compiler=$CC
24138 compiler_RC=$CC
24139 lt_cv_prog_compiler_c_o_RC=yes
24140
24141 # The else clause should only fire when bootstrapping the
24142 # libtool distribution, otherwise you forgot to ship ltmain.sh
24143 # with your package, and you will get complaints that there are
24144 # no rules to generate ltmain.sh.
24145 if test -f "$ltmain"; then
24146   # See if we are running on zsh, and set the options which allow our commands through
24147   # without removal of \ escapes.
24148   if test -n "${ZSH_VERSION+set}" ; then
24149     setopt NO_GLOB_SUBST
24150   fi
24151   # Now quote all the things that may contain metacharacters while being
24152   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24153   # variables and quote the copies for generation of the libtool script.
24154   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24155     SED SHELL STRIP \
24156     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24157     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24158     deplibs_check_method reload_flag reload_cmds need_locks \
24159     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24160     lt_cv_sys_global_symbol_to_c_name_address \
24161     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24162     old_postinstall_cmds old_postuninstall_cmds \
24163     compiler_RC \
24164     CC_RC \
24165     LD_RC \
24166     lt_prog_compiler_wl_RC \
24167     lt_prog_compiler_pic_RC \
24168     lt_prog_compiler_static_RC \
24169     lt_prog_compiler_no_builtin_flag_RC \
24170     export_dynamic_flag_spec_RC \
24171     thread_safe_flag_spec_RC \
24172     whole_archive_flag_spec_RC \
24173     enable_shared_with_static_runtimes_RC \
24174     old_archive_cmds_RC \
24175     old_archive_from_new_cmds_RC \
24176     predep_objects_RC \
24177     postdep_objects_RC \
24178     predeps_RC \
24179     postdeps_RC \
24180     compiler_lib_search_path_RC \
24181     archive_cmds_RC \
24182     archive_expsym_cmds_RC \
24183     postinstall_cmds_RC \
24184     postuninstall_cmds_RC \
24185     old_archive_from_expsyms_cmds_RC \
24186     allow_undefined_flag_RC \
24187     no_undefined_flag_RC \
24188     export_symbols_cmds_RC \
24189     hardcode_libdir_flag_spec_RC \
24190     hardcode_libdir_flag_spec_ld_RC \
24191     hardcode_libdir_separator_RC \
24192     hardcode_automatic_RC \
24193     module_cmds_RC \
24194     module_expsym_cmds_RC \
24195     lt_cv_prog_compiler_c_o_RC \
24196     exclude_expsyms_RC \
24197     include_expsyms_RC; do
24198
24199     case $var in
24200     old_archive_cmds_RC | \
24201     old_archive_from_new_cmds_RC | \
24202     archive_cmds_RC | \
24203     archive_expsym_cmds_RC | \
24204     module_cmds_RC | \
24205     module_expsym_cmds_RC | \
24206     old_archive_from_expsyms_cmds_RC | \
24207     export_symbols_cmds_RC | \
24208     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24209     postinstall_cmds | postuninstall_cmds | \
24210     old_postinstall_cmds | old_postuninstall_cmds | \
24211     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24212       # Double-quote double-evaled strings.
24213       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24214       ;;
24215     *)
24216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24217       ;;
24218     esac
24219   done
24220
24221   case $lt_echo in
24222   *'\$0 --fallback-echo"')
24223     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24224     ;;
24225   esac
24226
24227 cfgfile="$ofile"
24228
24229   cat <<__EOF__ >> "$cfgfile"
24230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24231
24232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24233
24234 # Shell to use when invoking shell scripts.
24235 SHELL=$lt_SHELL
24236
24237 # Whether or not to build shared libraries.
24238 build_libtool_libs=$enable_shared
24239
24240 # Whether or not to build static libraries.
24241 build_old_libs=$enable_static
24242
24243 # Whether or not to add -lc for building shared libraries.
24244 build_libtool_need_lc=$archive_cmds_need_lc_RC
24245
24246 # Whether or not to disallow shared libs when runtime libs are static
24247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24248
24249 # Whether or not to optimize for fast installation.
24250 fast_install=$enable_fast_install
24251
24252 # The host system.
24253 host_alias=$host_alias
24254 host=$host
24255
24256 # An echo program that does not interpret backslashes.
24257 echo=$lt_echo
24258
24259 # The archiver.
24260 AR=$lt_AR
24261 AR_FLAGS=$lt_AR_FLAGS
24262
24263 # A C compiler.
24264 LTCC=$lt_LTCC
24265
24266 # A language-specific compiler.
24267 CC=$lt_compiler_RC
24268
24269 # Is the compiler the GNU C compiler?
24270 with_gcc=$GCC_RC
24271
24272 # An ERE matcher.
24273 EGREP=$lt_EGREP
24274
24275 # The linker used to build libraries.
24276 LD=$lt_LD_RC
24277
24278 # Whether we need hard or soft links.
24279 LN_S=$lt_LN_S
24280
24281 # A BSD-compatible nm program.
24282 NM=$lt_NM
24283
24284 # A symbol stripping program
24285 STRIP=$lt_STRIP
24286
24287 # Used to examine libraries when file_magic_cmd begins "file"
24288 MAGIC_CMD=$MAGIC_CMD
24289
24290 # Used on cygwin: DLL creation program.
24291 DLLTOOL="$DLLTOOL"
24292
24293 # Used on cygwin: object dumper.
24294 OBJDUMP="$OBJDUMP"
24295
24296 # Used on cygwin: assembler.
24297 AS="$AS"
24298
24299 # The name of the directory that contains temporary libtool files.
24300 objdir=$objdir
24301
24302 # How to create reloadable object files.
24303 reload_flag=$lt_reload_flag
24304 reload_cmds=$lt_reload_cmds
24305
24306 # How to pass a linker flag through the compiler.
24307 wl=$lt_lt_prog_compiler_wl_RC
24308
24309 # Object file suffix (normally "o").
24310 objext="$ac_objext"
24311
24312 # Old archive suffix (normally "a").
24313 libext="$libext"
24314
24315 # Shared library suffix (normally ".so").
24316 shrext_cmds='$shrext_cmds'
24317
24318 # Executable file suffix (normally "").
24319 exeext="$exeext"
24320
24321 # Additional compiler flags for building library objects.
24322 pic_flag=$lt_lt_prog_compiler_pic_RC
24323 pic_mode=$pic_mode
24324
24325 # What is the maximum length of a command?
24326 max_cmd_len=$lt_cv_sys_max_cmd_len
24327
24328 # Does compiler simultaneously support -c and -o options?
24329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24330
24331 # Must we lock files when doing compilation ?
24332 need_locks=$lt_need_locks
24333
24334 # Do we need the lib prefix for modules?
24335 need_lib_prefix=$need_lib_prefix
24336
24337 # Do we need a version for libraries?
24338 need_version=$need_version
24339
24340 # Whether dlopen is supported.
24341 dlopen_support=$enable_dlopen
24342
24343 # Whether dlopen of programs is supported.
24344 dlopen_self=$enable_dlopen_self
24345
24346 # Whether dlopen of statically linked programs is supported.
24347 dlopen_self_static=$enable_dlopen_self_static
24348
24349 # Compiler flag to prevent dynamic linking.
24350 link_static_flag=$lt_lt_prog_compiler_static_RC
24351
24352 # Compiler flag to turn off builtin functions.
24353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24354
24355 # Compiler flag to allow reflexive dlopens.
24356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24357
24358 # Compiler flag to generate shared objects directly from archives.
24359 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24360
24361 # Compiler flag to generate thread-safe objects.
24362 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24363
24364 # Library versioning type.
24365 version_type=$version_type
24366
24367 # Format of library name prefix.
24368 libname_spec=$lt_libname_spec
24369
24370 # List of archive names.  First name is the real one, the rest are links.
24371 # The last name is the one that the linker finds with -lNAME.
24372 library_names_spec=$lt_library_names_spec
24373
24374 # The coded name of the library, if different from the real name.
24375 soname_spec=$lt_soname_spec
24376
24377 # Commands used to build and install an old-style archive.
24378 RANLIB=$lt_RANLIB
24379 old_archive_cmds=$lt_old_archive_cmds_RC
24380 old_postinstall_cmds=$lt_old_postinstall_cmds
24381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24382
24383 # Create an old-style archive from a shared archive.
24384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24385
24386 # Create a temporary old-style archive to link instead of a shared archive.
24387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24388
24389 # Commands used to build and install a shared archive.
24390 archive_cmds=$lt_archive_cmds_RC
24391 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24392 postinstall_cmds=$lt_postinstall_cmds
24393 postuninstall_cmds=$lt_postuninstall_cmds
24394
24395 # Commands used to build a loadable module (assumed same as above if empty)
24396 module_cmds=$lt_module_cmds_RC
24397 module_expsym_cmds=$lt_module_expsym_cmds_RC
24398
24399 # Commands to strip libraries.
24400 old_striplib=$lt_old_striplib
24401 striplib=$lt_striplib
24402
24403 # Dependencies to place before the objects being linked to create a
24404 # shared library.
24405 predep_objects=$lt_predep_objects_RC
24406
24407 # Dependencies to place after the objects being linked to create a
24408 # shared library.
24409 postdep_objects=$lt_postdep_objects_RC
24410
24411 # Dependencies to place before the objects being linked to create a
24412 # shared library.
24413 predeps=$lt_predeps_RC
24414
24415 # Dependencies to place after the objects being linked to create a
24416 # shared library.
24417 postdeps=$lt_postdeps_RC
24418
24419 # The library search path used internally by the compiler when linking
24420 # a shared library.
24421 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24422
24423 # Method to check whether dependent libraries are shared objects.
24424 deplibs_check_method=$lt_deplibs_check_method
24425
24426 # Command to use when deplibs_check_method == file_magic.
24427 file_magic_cmd=$lt_file_magic_cmd
24428
24429 # Flag that allows shared libraries with undefined symbols to be built.
24430 allow_undefined_flag=$lt_allow_undefined_flag_RC
24431
24432 # Flag that forces no undefined symbols.
24433 no_undefined_flag=$lt_no_undefined_flag_RC
24434
24435 # Commands used to finish a libtool library installation in a directory.
24436 finish_cmds=$lt_finish_cmds
24437
24438 # Same as above, but a single script fragment to be evaled but not shown.
24439 finish_eval=$lt_finish_eval
24440
24441 # Take the output of nm and produce a listing of raw symbols and C names.
24442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24443
24444 # Transform the output of nm in a proper C declaration
24445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24446
24447 # Transform the output of nm in a C name address pair
24448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24449
24450 # This is the shared library runtime path variable.
24451 runpath_var=$runpath_var
24452
24453 # This is the shared library path variable.
24454 shlibpath_var=$shlibpath_var
24455
24456 # Is shlibpath searched before the hard-coded library search path?
24457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24458
24459 # How to hardcode a shared library path into an executable.
24460 hardcode_action=$hardcode_action_RC
24461
24462 # Whether we should hardcode library paths into libraries.
24463 hardcode_into_libs=$hardcode_into_libs
24464
24465 # Flag to hardcode \$libdir into a binary during linking.
24466 # This must work even if \$libdir does not exist.
24467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24468
24469 # If ld is used when linking, flag to hardcode \$libdir into
24470 # a binary during linking. This must work even if \$libdir does
24471 # not exist.
24472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24473
24474 # Whether we need a single -rpath flag with a separated argument.
24475 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24476
24477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24478 # resulting binary.
24479 hardcode_direct=$hardcode_direct_RC
24480
24481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24482 # resulting binary.
24483 hardcode_minus_L=$hardcode_minus_L_RC
24484
24485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24486 # the resulting binary.
24487 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24488
24489 # Set to yes if building a shared library automatically hardcodes DIR into the library
24490 # and all subsequent libraries and executables linked against it.
24491 hardcode_automatic=$hardcode_automatic_RC
24492
24493 # Variables whose values should be saved in libtool wrapper scripts and
24494 # restored at relink time.
24495 variables_saved_for_relink="$variables_saved_for_relink"
24496
24497 # Whether libtool must link a program against all its dependency libraries.
24498 link_all_deplibs=$link_all_deplibs_RC
24499
24500 # Compile-time system search path for libraries
24501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24502
24503 # Run-time system search path for libraries
24504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24505
24506 # Fix the shell variable \$srcfile for the compiler.
24507 fix_srcfile_path="$fix_srcfile_path_RC"
24508
24509 # Set to yes if exported symbols are required.
24510 always_export_symbols=$always_export_symbols_RC
24511
24512 # The commands to list exported symbols.
24513 export_symbols_cmds=$lt_export_symbols_cmds_RC
24514
24515 # The commands to extract the exported symbol list from a shared archive.
24516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24517
24518 # Symbols that should not be listed in the preloaded symbols.
24519 exclude_expsyms=$lt_exclude_expsyms_RC
24520
24521 # Symbols that must always be exported.
24522 include_expsyms=$lt_include_expsyms_RC
24523
24524 # ### END LIBTOOL TAG CONFIG: $tagname
24525
24526 __EOF__
24527
24528
24529 else
24530   # If there is no Makefile yet, we rely on a make rule to execute
24531   # `config.status --recheck' to rerun these tests and create the
24532   # libtool script then.
24533   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24534   if test -f "$ltmain_in"; then
24535     test -f Makefile && make "$ltmain"
24536   fi
24537 fi
24538
24539
24540 ac_ext=c
24541 ac_cpp='$CPP $CPPFLAGS'
24542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24545
24546 CC="$lt_save_CC"
24547
24548         ;;
24549
24550       *)
24551         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24552 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24553    { (exit 1); exit 1; }; }
24554         ;;
24555       esac
24556
24557       # Append the new tag name to the list of available tags.
24558       if test -n "$tagname" ; then
24559       available_tags="$available_tags $tagname"
24560     fi
24561     fi
24562   done
24563   IFS="$lt_save_ifs"
24564
24565   # Now substitute the updated list of available tags.
24566   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24567     mv "${ofile}T" "$ofile"
24568     chmod +x "$ofile"
24569   else
24570     rm -f "${ofile}T"
24571     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24572 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24573    { (exit 1); exit 1; }; }
24574   fi
24575 fi
24576
24577
24578
24579 # This can be used to rebuild libtool when needed
24580 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24581
24582 # Always use our own libtool.
24583 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24584
24585 # Prevent multiple expansion
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607 if test "$lt_cv_dlopen_self" = "yes" ; then
24608
24609 cat >>confdefs.h <<\_ACEOF
24610 #define CAN_DLOPEN_SELF 1
24611 _ACEOF
24612
24613 fi
24614
24615 etags_version=`$ETAGS --version 2>&1`
24616 case "$etags_version" in
24617         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24618         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24619         *) ETAGSFLAGS="" ;;
24620 esac
24621 ETAGSFLAGS=$ETAGSFLAGS
24622
24623
24624 if test "$WITH_LLVMGCCDIR" = "default" ; then
24625   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24626 set dummy llvm-gcc; ac_word=$2
24627 echo "$as_me:$LINENO: checking for $ac_word" >&5
24628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24629 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24630   echo $ECHO_N "(cached) $ECHO_C" >&6
24631 else
24632   case $LLVMGCC in
24633   [\\/]* | ?:[\\/]*)
24634   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24635   ;;
24636   *)
24637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24638 for as_dir in $PATH
24639 do
24640   IFS=$as_save_IFS
24641   test -z "$as_dir" && as_dir=.
24642   for ac_exec_ext in '' $ac_executable_extensions; do
24643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24644     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24646     break 2
24647   fi
24648 done
24649 done
24650
24651   ;;
24652 esac
24653 fi
24654 LLVMGCC=$ac_cv_path_LLVMGCC
24655
24656 if test -n "$LLVMGCC"; then
24657   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24658 echo "${ECHO_T}$LLVMGCC" >&6
24659 else
24660   echo "$as_me:$LINENO: result: no" >&5
24661 echo "${ECHO_T}no" >&6
24662 fi
24663
24664   # Extract the first word of "llvm-g++", so it can be a program name with args.
24665 set dummy llvm-g++; ac_word=$2
24666 echo "$as_me:$LINENO: checking for $ac_word" >&5
24667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24668 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24669   echo $ECHO_N "(cached) $ECHO_C" >&6
24670 else
24671   case $LLVMGXX in
24672   [\\/]* | ?:[\\/]*)
24673   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24674   ;;
24675   *)
24676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24677 for as_dir in $PATH
24678 do
24679   IFS=$as_save_IFS
24680   test -z "$as_dir" && as_dir=.
24681   for ac_exec_ext in '' $ac_executable_extensions; do
24682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24683     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24685     break 2
24686   fi
24687 done
24688 done
24689
24690   ;;
24691 esac
24692 fi
24693 LLVMGXX=$ac_cv_path_LLVMGXX
24694
24695 if test -n "$LLVMGXX"; then
24696   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24697 echo "${ECHO_T}$LLVMGXX" >&6
24698 else
24699   echo "$as_me:$LINENO: result: no" >&5
24700 echo "${ECHO_T}no" >&6
24701 fi
24702
24703 else
24704   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24705   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24706   LLVMGCC=$LLVMGCC
24707
24708   LLVMGXX=$LLVMGXX
24709
24710 fi
24711
24712 echo "$as_me:$LINENO: checking tool compatibility" >&5
24713 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24714
24715 ICC=no
24716 IXX=no
24717 case $CC in
24718   icc*|icpc*)
24719     ICC=yes
24720     IXX=yes
24721     ;;
24722    *)
24723     ;;
24724 esac
24725
24726 if test "$GCC" != "yes" && test "$ICC" != "yes"
24727 then
24728   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24729 echo "$as_me: error: gcc|icc required but not found" >&2;}
24730    { (exit 1); exit 1; }; }
24731 fi
24732
24733 if test "$GXX" != "yes" && test "$IXX" != "yes"
24734 then
24735   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24736 echo "$as_me: error: g++|icc required but not found" >&2;}
24737    { (exit 1); exit 1; }; }
24738 fi
24739
24740 if test "$GCC" = "yes"
24741 then
24742   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24743   if test "$gccmajor" -lt "3"
24744   then
24745     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24746 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24747    { (exit 1); exit 1; }; }
24748   fi
24749 fi
24750
24751 if test -z "$llvm_cv_gnu_make_command"
24752 then
24753   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24754 echo "$as_me: error: GNU Make required but not found" >&2;}
24755    { (exit 1); exit 1; }; }
24756 fi
24757
24758 echo "$as_me:$LINENO: result: ok" >&5
24759 echo "${ECHO_T}ok" >&6
24760
24761
24762
24763 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24764 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24765 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24766   echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768   ac_check_lib_save_LIBS=$LIBS
24769 LIBS="-lelf  $LIBS"
24770 cat >conftest.$ac_ext <<_ACEOF
24771 /* confdefs.h.  */
24772 _ACEOF
24773 cat confdefs.h >>conftest.$ac_ext
24774 cat >>conftest.$ac_ext <<_ACEOF
24775 /* end confdefs.h.  */
24776
24777 /* Override any gcc2 internal prototype to avoid an error.  */
24778 #ifdef __cplusplus
24779 extern "C"
24780 #endif
24781 /* We use char because int might match the return type of a gcc2
24782    builtin and then its argument prototype would still apply.  */
24783 char elf_begin ();
24784 int
24785 main ()
24786 {
24787 elf_begin ();
24788   ;
24789   return 0;
24790 }
24791 _ACEOF
24792 rm -f conftest.$ac_objext conftest$ac_exeext
24793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24794   (eval $ac_link) 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } &&
24801          { ac_try='test -z "$ac_c_werror_flag"
24802                          || test ! -s conftest.err'
24803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804   (eval $ac_try) 2>&5
24805   ac_status=$?
24806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807   (exit $ac_status); }; } &&
24808          { ac_try='test -s conftest$ac_exeext'
24809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810   (eval $ac_try) 2>&5
24811   ac_status=$?
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); }; }; then
24814   ac_cv_lib_elf_elf_begin=yes
24815 else
24816   echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24818
24819 ac_cv_lib_elf_elf_begin=no
24820 fi
24821 rm -f conftest.err conftest.$ac_objext \
24822       conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24824 fi
24825 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24826 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24827 if test $ac_cv_lib_elf_elf_begin = yes; then
24828   cat >>confdefs.h <<_ACEOF
24829 #define HAVE_LIBELF 1
24830 _ACEOF
24831
24832   LIBS="-lelf $LIBS"
24833
24834 fi
24835
24836
24837 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24838 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24839 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842   ac_func_search_save_LIBS=$LIBS
24843 ac_cv_search_lt_dlopen=no
24844 cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850
24851 /* Override any gcc2 internal prototype to avoid an error.  */
24852 #ifdef __cplusplus
24853 extern "C"
24854 #endif
24855 /* We use char because int might match the return type of a gcc2
24856    builtin and then its argument prototype would still apply.  */
24857 char lt_dlopen ();
24858 int
24859 main ()
24860 {
24861 lt_dlopen ();
24862   ;
24863   return 0;
24864 }
24865 _ACEOF
24866 rm -f conftest.$ac_objext conftest$ac_exeext
24867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868   (eval $ac_link) 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } &&
24875          { ac_try='test -z "$ac_c_werror_flag"
24876                          || test ! -s conftest.err'
24877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878   (eval $ac_try) 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); }; } &&
24882          { ac_try='test -s conftest$ac_exeext'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; }; then
24888   ac_cv_search_lt_dlopen="none required"
24889 else
24890   echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24892
24893 fi
24894 rm -f conftest.err conftest.$ac_objext \
24895       conftest$ac_exeext conftest.$ac_ext
24896 if test "$ac_cv_search_lt_dlopen" = no; then
24897   for ac_lib in ltdl; do
24898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24899     cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905
24906 /* Override any gcc2 internal prototype to avoid an error.  */
24907 #ifdef __cplusplus
24908 extern "C"
24909 #endif
24910 /* We use char because int might match the return type of a gcc2
24911    builtin and then its argument prototype would still apply.  */
24912 char lt_dlopen ();
24913 int
24914 main ()
24915 {
24916 lt_dlopen ();
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923   (eval $ac_link) 2>conftest.er1
24924   ac_status=$?
24925   grep -v '^ *+' conftest.er1 >conftest.err
24926   rm -f conftest.er1
24927   cat conftest.err >&5
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); } &&
24930          { ac_try='test -z "$ac_c_werror_flag"
24931                          || test ! -s conftest.err'
24932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933   (eval $ac_try) 2>&5
24934   ac_status=$?
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); }; } &&
24937          { ac_try='test -s conftest$ac_exeext'
24938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939   (eval $ac_try) 2>&5
24940   ac_status=$?
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); }; }; then
24943   ac_cv_search_lt_dlopen="-l$ac_lib"
24944 break
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949 fi
24950 rm -f conftest.err conftest.$ac_objext \
24951       conftest$ac_exeext conftest.$ac_ext
24952   done
24953 fi
24954 LIBS=$ac_func_search_save_LIBS
24955 fi
24956 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24957 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24958 if test "$ac_cv_search_lt_dlopen" != no; then
24959   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24960
24961 cat >>confdefs.h <<\_ACEOF
24962 #define HAVE_LT_DLOPEN 1
24963 _ACEOF
24964
24965 else
24966   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24967                            not be available" >&5
24968 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24969                            not be available" >&2;}
24970 fi
24971
24972
24973 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24974 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24975 if test "${ac_cv_search_dlopen+set}" = set; then
24976   echo $ECHO_N "(cached) $ECHO_C" >&6
24977 else
24978   ac_func_search_save_LIBS=$LIBS
24979 ac_cv_search_dlopen=no
24980 cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h.  */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h.  */
24986
24987 /* Override any gcc2 internal prototype to avoid an error.  */
24988 #ifdef __cplusplus
24989 extern "C"
24990 #endif
24991 /* We use char because int might match the return type of a gcc2
24992    builtin and then its argument prototype would still apply.  */
24993 char dlopen ();
24994 int
24995 main ()
24996 {
24997 dlopen ();
24998   ;
24999   return 0;
25000 }
25001 _ACEOF
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004   (eval $ac_link) 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } &&
25011          { ac_try='test -z "$ac_c_werror_flag"
25012                          || test ! -s conftest.err'
25013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014   (eval $ac_try) 2>&5
25015   ac_status=$?
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); }; } &&
25018          { ac_try='test -s conftest$ac_exeext'
25019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020   (eval $ac_try) 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; }; then
25024   ac_cv_search_dlopen="none required"
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 fi
25030 rm -f conftest.err conftest.$ac_objext \
25031       conftest$ac_exeext conftest.$ac_ext
25032 if test "$ac_cv_search_dlopen" = no; then
25033   for ac_lib in dl; do
25034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25035     cat >conftest.$ac_ext <<_ACEOF
25036 /* confdefs.h.  */
25037 _ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h.  */
25041
25042 /* Override any gcc2 internal prototype to avoid an error.  */
25043 #ifdef __cplusplus
25044 extern "C"
25045 #endif
25046 /* We use char because int might match the return type of a gcc2
25047    builtin and then its argument prototype would still apply.  */
25048 char dlopen ();
25049 int
25050 main ()
25051 {
25052 dlopen ();
25053   ;
25054   return 0;
25055 }
25056 _ACEOF
25057 rm -f conftest.$ac_objext conftest$ac_exeext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059   (eval $ac_link) 2>conftest.er1
25060   ac_status=$?
25061   grep -v '^ *+' conftest.er1 >conftest.err
25062   rm -f conftest.er1
25063   cat conftest.err >&5
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); } &&
25066          { ac_try='test -z "$ac_c_werror_flag"
25067                          || test ! -s conftest.err'
25068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069   (eval $ac_try) 2>&5
25070   ac_status=$?
25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072   (exit $ac_status); }; } &&
25073          { ac_try='test -s conftest$ac_exeext'
25074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075   (eval $ac_try) 2>&5
25076   ac_status=$?
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); }; }; then
25079   ac_cv_search_dlopen="-l$ac_lib"
25080 break
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085 fi
25086 rm -f conftest.err conftest.$ac_objext \
25087       conftest$ac_exeext conftest.$ac_ext
25088   done
25089 fi
25090 LIBS=$ac_func_search_save_LIBS
25091 fi
25092 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25093 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25094 if test "$ac_cv_search_dlopen" != no; then
25095   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25096
25097 cat >>confdefs.h <<\_ACEOF
25098 #define HAVE_DLOPEN 1
25099 _ACEOF
25100
25101 else
25102   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25103 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25104 fi
25105
25106
25107 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25108 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25109 if test "${ac_cv_search_mallinfo+set}" = set; then
25110   echo $ECHO_N "(cached) $ECHO_C" >&6
25111 else
25112   ac_func_search_save_LIBS=$LIBS
25113 ac_cv_search_mallinfo=no
25114 cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h.  */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h.  */
25120
25121 /* Override any gcc2 internal prototype to avoid an error.  */
25122 #ifdef __cplusplus
25123 extern "C"
25124 #endif
25125 /* We use char because int might match the return type of a gcc2
25126    builtin and then its argument prototype would still apply.  */
25127 char mallinfo ();
25128 int
25129 main ()
25130 {
25131 mallinfo ();
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25138   (eval $ac_link) 2>conftest.er1
25139   ac_status=$?
25140   grep -v '^ *+' conftest.er1 >conftest.err
25141   rm -f conftest.er1
25142   cat conftest.err >&5
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); } &&
25145          { ac_try='test -z "$ac_c_werror_flag"
25146                          || test ! -s conftest.err'
25147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148   (eval $ac_try) 2>&5
25149   ac_status=$?
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); }; } &&
25152          { ac_try='test -s conftest$ac_exeext'
25153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154   (eval $ac_try) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); }; }; then
25158   ac_cv_search_mallinfo="none required"
25159 else
25160   echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 fi
25164 rm -f conftest.err conftest.$ac_objext \
25165       conftest$ac_exeext conftest.$ac_ext
25166 if test "$ac_cv_search_mallinfo" = no; then
25167   for ac_lib in malloc; do
25168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25169     cat >conftest.$ac_ext <<_ACEOF
25170 /* confdefs.h.  */
25171 _ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h.  */
25175
25176 /* Override any gcc2 internal prototype to avoid an error.  */
25177 #ifdef __cplusplus
25178 extern "C"
25179 #endif
25180 /* We use char because int might match the return type of a gcc2
25181    builtin and then its argument prototype would still apply.  */
25182 char mallinfo ();
25183 int
25184 main ()
25185 {
25186 mallinfo ();
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193   (eval $ac_link) 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } &&
25200          { ac_try='test -z "$ac_c_werror_flag"
25201                          || test ! -s conftest.err'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; } &&
25207          { ac_try='test -s conftest$ac_exeext'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213   ac_cv_search_mallinfo="-l$ac_lib"
25214 break
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219 fi
25220 rm -f conftest.err conftest.$ac_objext \
25221       conftest$ac_exeext conftest.$ac_ext
25222   done
25223 fi
25224 LIBS=$ac_func_search_save_LIBS
25225 fi
25226 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25228 if test "$ac_cv_search_mallinfo" != no; then
25229   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25230
25231 cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_MALLINFO 1
25233 _ACEOF
25234
25235 fi
25236
25237
25238 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25239 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25241   echo $ECHO_N "(cached) $ECHO_C" >&6
25242 else
25243   ac_func_search_save_LIBS=$LIBS
25244 ac_cv_search_pthread_mutex_lock=no
25245 cat >conftest.$ac_ext <<_ACEOF
25246 /* confdefs.h.  */
25247 _ACEOF
25248 cat confdefs.h >>conftest.$ac_ext
25249 cat >>conftest.$ac_ext <<_ACEOF
25250 /* end confdefs.h.  */
25251
25252 /* Override any gcc2 internal prototype to avoid an error.  */
25253 #ifdef __cplusplus
25254 extern "C"
25255 #endif
25256 /* We use char because int might match the return type of a gcc2
25257    builtin and then its argument prototype would still apply.  */
25258 char pthread_mutex_lock ();
25259 int
25260 main ()
25261 {
25262 pthread_mutex_lock ();
25263   ;
25264   return 0;
25265 }
25266 _ACEOF
25267 rm -f conftest.$ac_objext conftest$ac_exeext
25268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25269   (eval $ac_link) 2>conftest.er1
25270   ac_status=$?
25271   grep -v '^ *+' conftest.er1 >conftest.err
25272   rm -f conftest.er1
25273   cat conftest.err >&5
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); } &&
25276          { ac_try='test -z "$ac_c_werror_flag"
25277                          || test ! -s conftest.err'
25278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279   (eval $ac_try) 2>&5
25280   ac_status=$?
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); }; } &&
25283          { ac_try='test -s conftest$ac_exeext'
25284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285   (eval $ac_try) 2>&5
25286   ac_status=$?
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); }; }; then
25289   ac_cv_search_pthread_mutex_lock="none required"
25290 else
25291   echo "$as_me: failed program was:" >&5
25292 sed 's/^/| /' conftest.$ac_ext >&5
25293
25294 fi
25295 rm -f conftest.err conftest.$ac_objext \
25296       conftest$ac_exeext conftest.$ac_ext
25297 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25298   for ac_lib in pthread; do
25299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25300     cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h.  */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h.  */
25306
25307 /* Override any gcc2 internal prototype to avoid an error.  */
25308 #ifdef __cplusplus
25309 extern "C"
25310 #endif
25311 /* We use char because int might match the return type of a gcc2
25312    builtin and then its argument prototype would still apply.  */
25313 char pthread_mutex_lock ();
25314 int
25315 main ()
25316 {
25317 pthread_mutex_lock ();
25318   ;
25319   return 0;
25320 }
25321 _ACEOF
25322 rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25324   (eval $ac_link) 2>conftest.er1
25325   ac_status=$?
25326   grep -v '^ *+' conftest.er1 >conftest.err
25327   rm -f conftest.er1
25328   cat conftest.err >&5
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); } &&
25331          { ac_try='test -z "$ac_c_werror_flag"
25332                          || test ! -s conftest.err'
25333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334   (eval $ac_try) 2>&5
25335   ac_status=$?
25336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); }; } &&
25338          { ac_try='test -s conftest$ac_exeext'
25339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340   (eval $ac_try) 2>&5
25341   ac_status=$?
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); }; }; then
25344   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25345 break
25346 else
25347   echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350 fi
25351 rm -f conftest.err conftest.$ac_objext \
25352       conftest$ac_exeext conftest.$ac_ext
25353   done
25354 fi
25355 LIBS=$ac_func_search_save_LIBS
25356 fi
25357 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25358 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25359 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25360   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25361
25362 cat >>confdefs.h <<\_ACEOF
25363 #define HAVE_PTHREAD_MUTEX_LOCK 1
25364 _ACEOF
25365
25366 fi
25367
25368
25369
25370
25371
25372
25373
25374
25375 ac_header_dirent=no
25376 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25377   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25378 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25379 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25381   echo $ECHO_N "(cached) $ECHO_C" >&6
25382 else
25383   cat >conftest.$ac_ext <<_ACEOF
25384 /* confdefs.h.  */
25385 _ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h.  */
25389 #include <sys/types.h>
25390 #include <$ac_hdr>
25391
25392 int
25393 main ()
25394 {
25395 if ((DIR *) 0)
25396 return 0;
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 rm -f conftest.$ac_objext
25402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403   (eval $ac_compile) 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } &&
25410          { ac_try='test -z "$ac_c_werror_flag"
25411                          || test ! -s conftest.err'
25412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413   (eval $ac_try) 2>&5
25414   ac_status=$?
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); }; } &&
25417          { ac_try='test -s conftest.$ac_objext'
25418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419   (eval $ac_try) 2>&5
25420   ac_status=$?
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); }; }; then
25423   eval "$as_ac_Header=yes"
25424 else
25425   echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25427
25428 eval "$as_ac_Header=no"
25429 fi
25430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25431 fi
25432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25435   cat >>confdefs.h <<_ACEOF
25436 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25437 _ACEOF
25438
25439 ac_header_dirent=$ac_hdr; break
25440 fi
25441
25442 done
25443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25444 if test $ac_header_dirent = dirent.h; then
25445   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25447 if test "${ac_cv_search_opendir+set}" = set; then
25448   echo $ECHO_N "(cached) $ECHO_C" >&6
25449 else
25450   ac_func_search_save_LIBS=$LIBS
25451 ac_cv_search_opendir=no
25452 cat >conftest.$ac_ext <<_ACEOF
25453 /* confdefs.h.  */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h.  */
25458
25459 /* Override any gcc2 internal prototype to avoid an error.  */
25460 #ifdef __cplusplus
25461 extern "C"
25462 #endif
25463 /* We use char because int might match the return type of a gcc2
25464    builtin and then its argument prototype would still apply.  */
25465 char opendir ();
25466 int
25467 main ()
25468 {
25469 opendir ();
25470   ;
25471   return 0;
25472 }
25473 _ACEOF
25474 rm -f conftest.$ac_objext conftest$ac_exeext
25475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476   (eval $ac_link) 2>conftest.er1
25477   ac_status=$?
25478   grep -v '^ *+' conftest.er1 >conftest.err
25479   rm -f conftest.er1
25480   cat conftest.err >&5
25481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482   (exit $ac_status); } &&
25483          { ac_try='test -z "$ac_c_werror_flag"
25484                          || test ! -s conftest.err'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; } &&
25490          { ac_try='test -s conftest$ac_exeext'
25491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492   (eval $ac_try) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); }; }; then
25496   ac_cv_search_opendir="none required"
25497 else
25498   echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25500
25501 fi
25502 rm -f conftest.err conftest.$ac_objext \
25503       conftest$ac_exeext conftest.$ac_ext
25504 if test "$ac_cv_search_opendir" = no; then
25505   for ac_lib in dir; do
25506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25507     cat >conftest.$ac_ext <<_ACEOF
25508 /* confdefs.h.  */
25509 _ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h.  */
25513
25514 /* Override any gcc2 internal prototype to avoid an error.  */
25515 #ifdef __cplusplus
25516 extern "C"
25517 #endif
25518 /* We use char because int might match the return type of a gcc2
25519    builtin and then its argument prototype would still apply.  */
25520 char opendir ();
25521 int
25522 main ()
25523 {
25524 opendir ();
25525   ;
25526   return 0;
25527 }
25528 _ACEOF
25529 rm -f conftest.$ac_objext conftest$ac_exeext
25530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25531   (eval $ac_link) 2>conftest.er1
25532   ac_status=$?
25533   grep -v '^ *+' conftest.er1 >conftest.err
25534   rm -f conftest.er1
25535   cat conftest.err >&5
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); } &&
25538          { ac_try='test -z "$ac_c_werror_flag"
25539                          || test ! -s conftest.err'
25540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541   (eval $ac_try) 2>&5
25542   ac_status=$?
25543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544   (exit $ac_status); }; } &&
25545          { ac_try='test -s conftest$ac_exeext'
25546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547   (eval $ac_try) 2>&5
25548   ac_status=$?
25549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550   (exit $ac_status); }; }; then
25551   ac_cv_search_opendir="-l$ac_lib"
25552 break
25553 else
25554   echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25556
25557 fi
25558 rm -f conftest.err conftest.$ac_objext \
25559       conftest$ac_exeext conftest.$ac_ext
25560   done
25561 fi
25562 LIBS=$ac_func_search_save_LIBS
25563 fi
25564 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25565 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25566 if test "$ac_cv_search_opendir" != no; then
25567   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25568
25569 fi
25570
25571 else
25572   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25573 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25574 if test "${ac_cv_search_opendir+set}" = set; then
25575   echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577   ac_func_search_save_LIBS=$LIBS
25578 ac_cv_search_opendir=no
25579 cat >conftest.$ac_ext <<_ACEOF
25580 /* confdefs.h.  */
25581 _ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h.  */
25585
25586 /* Override any gcc2 internal prototype to avoid an error.  */
25587 #ifdef __cplusplus
25588 extern "C"
25589 #endif
25590 /* We use char because int might match the return type of a gcc2
25591    builtin and then its argument prototype would still apply.  */
25592 char opendir ();
25593 int
25594 main ()
25595 {
25596 opendir ();
25597   ;
25598   return 0;
25599 }
25600 _ACEOF
25601 rm -f conftest.$ac_objext conftest$ac_exeext
25602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25603   (eval $ac_link) 2>conftest.er1
25604   ac_status=$?
25605   grep -v '^ *+' conftest.er1 >conftest.err
25606   rm -f conftest.er1
25607   cat conftest.err >&5
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); } &&
25610          { ac_try='test -z "$ac_c_werror_flag"
25611                          || test ! -s conftest.err'
25612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613   (eval $ac_try) 2>&5
25614   ac_status=$?
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); }; } &&
25617          { ac_try='test -s conftest$ac_exeext'
25618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619   (eval $ac_try) 2>&5
25620   ac_status=$?
25621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622   (exit $ac_status); }; }; then
25623   ac_cv_search_opendir="none required"
25624 else
25625   echo "$as_me: failed program was:" >&5
25626 sed 's/^/| /' conftest.$ac_ext >&5
25627
25628 fi
25629 rm -f conftest.err conftest.$ac_objext \
25630       conftest$ac_exeext conftest.$ac_ext
25631 if test "$ac_cv_search_opendir" = no; then
25632   for ac_lib in x; do
25633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25634     cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h.  */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h.  */
25640
25641 /* Override any gcc2 internal prototype to avoid an error.  */
25642 #ifdef __cplusplus
25643 extern "C"
25644 #endif
25645 /* We use char because int might match the return type of a gcc2
25646    builtin and then its argument prototype would still apply.  */
25647 char opendir ();
25648 int
25649 main ()
25650 {
25651 opendir ();
25652   ;
25653   return 0;
25654 }
25655 _ACEOF
25656 rm -f conftest.$ac_objext conftest$ac_exeext
25657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25658   (eval $ac_link) 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } &&
25665          { ac_try='test -z "$ac_c_werror_flag"
25666                          || test ! -s conftest.err'
25667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668   (eval $ac_try) 2>&5
25669   ac_status=$?
25670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671   (exit $ac_status); }; } &&
25672          { ac_try='test -s conftest$ac_exeext'
25673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674   (eval $ac_try) 2>&5
25675   ac_status=$?
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); }; }; then
25678   ac_cv_search_opendir="-l$ac_lib"
25679 break
25680 else
25681   echo "$as_me: failed program was:" >&5
25682 sed 's/^/| /' conftest.$ac_ext >&5
25683
25684 fi
25685 rm -f conftest.err conftest.$ac_objext \
25686       conftest$ac_exeext conftest.$ac_ext
25687   done
25688 fi
25689 LIBS=$ac_func_search_save_LIBS
25690 fi
25691 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25692 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25693 if test "$ac_cv_search_opendir" != no; then
25694   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25695
25696 fi
25697
25698 fi
25699
25700 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25701 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25702 if test "${ac_cv_header_mmap_anon+set}" = set; then
25703   echo $ECHO_N "(cached) $ECHO_C" >&6
25704 else
25705    ac_ext=c
25706 ac_cpp='$CPP $CPPFLAGS'
25707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25710
25711   cat >conftest.$ac_ext <<_ACEOF
25712 /* confdefs.h.  */
25713 _ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h.  */
25717 #include <sys/mman.h>
25718 #include <unistd.h>
25719 #include <fcntl.h>
25720 int
25721 main ()
25722 {
25723 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25724   ;
25725   return 0;
25726 }
25727 _ACEOF
25728 rm -f conftest.$ac_objext
25729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25730   (eval $ac_compile) 2>conftest.er1
25731   ac_status=$?
25732   grep -v '^ *+' conftest.er1 >conftest.err
25733   rm -f conftest.er1
25734   cat conftest.err >&5
25735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736   (exit $ac_status); } &&
25737          { ac_try='test -z "$ac_c_werror_flag"
25738                          || test ! -s conftest.err'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; } &&
25744          { ac_try='test -s conftest.$ac_objext'
25745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746   (eval $ac_try) 2>&5
25747   ac_status=$?
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); }; }; then
25750   ac_cv_header_mmap_anon=yes
25751 else
25752   echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25754
25755 ac_cv_header_mmap_anon=no
25756 fi
25757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25758   ac_ext=c
25759 ac_cpp='$CPP $CPPFLAGS'
25760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25763
25764
25765 fi
25766 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25767 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25768 if test "$ac_cv_header_mmap_anon" = yes; then
25769
25770 cat >>confdefs.h <<\_ACEOF
25771 #define HAVE_MMAP_ANONYMOUS 1
25772 _ACEOF
25773
25774 fi
25775
25776 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25777 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25778 if test "${ac_cv_header_stat_broken+set}" = set; then
25779   echo $ECHO_N "(cached) $ECHO_C" >&6
25780 else
25781   cat >conftest.$ac_ext <<_ACEOF
25782 /* confdefs.h.  */
25783 _ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h.  */
25787 #include <sys/types.h>
25788 #include <sys/stat.h>
25789
25790 #if defined(S_ISBLK) && defined(S_IFDIR)
25791 # if S_ISBLK (S_IFDIR)
25792 You lose.
25793 # endif
25794 #endif
25795
25796 #if defined(S_ISBLK) && defined(S_IFCHR)
25797 # if S_ISBLK (S_IFCHR)
25798 You lose.
25799 # endif
25800 #endif
25801
25802 #if defined(S_ISLNK) && defined(S_IFREG)
25803 # if S_ISLNK (S_IFREG)
25804 You lose.
25805 # endif
25806 #endif
25807
25808 #if defined(S_ISSOCK) && defined(S_IFREG)
25809 # if S_ISSOCK (S_IFREG)
25810 You lose.
25811 # endif
25812 #endif
25813
25814 _ACEOF
25815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25816   $EGREP "You lose" >/dev/null 2>&1; then
25817   ac_cv_header_stat_broken=yes
25818 else
25819   ac_cv_header_stat_broken=no
25820 fi
25821 rm -f conftest*
25822
25823 fi
25824 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25825 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25826 if test $ac_cv_header_stat_broken = yes; then
25827
25828 cat >>confdefs.h <<\_ACEOF
25829 #define STAT_MACROS_BROKEN 1
25830 _ACEOF
25831
25832 fi
25833
25834 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25836 if test "${ac_cv_header_stdc+set}" = set; then
25837   echo $ECHO_N "(cached) $ECHO_C" >&6
25838 else
25839   cat >conftest.$ac_ext <<_ACEOF
25840 /* confdefs.h.  */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h.  */
25845 #include <stdlib.h>
25846 #include <stdarg.h>
25847 #include <string.h>
25848 #include <float.h>
25849
25850 int
25851 main ()
25852 {
25853
25854   ;
25855   return 0;
25856 }
25857 _ACEOF
25858 rm -f conftest.$ac_objext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860   (eval $ac_compile) 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } &&
25867          { ac_try='test -z "$ac_c_werror_flag"
25868                          || test ! -s conftest.err'
25869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870   (eval $ac_try) 2>&5
25871   ac_status=$?
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); }; } &&
25874          { ac_try='test -s conftest.$ac_objext'
25875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876   (eval $ac_try) 2>&5
25877   ac_status=$?
25878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); }; }; then
25880   ac_cv_header_stdc=yes
25881 else
25882   echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885 ac_cv_header_stdc=no
25886 fi
25887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25888
25889 if test $ac_cv_header_stdc = yes; then
25890   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25891   cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897 #include <string.h>
25898
25899 _ACEOF
25900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25901   $EGREP "memchr" >/dev/null 2>&1; then
25902   :
25903 else
25904   ac_cv_header_stdc=no
25905 fi
25906 rm -f conftest*
25907
25908 fi
25909
25910 if test $ac_cv_header_stdc = yes; then
25911   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25912   cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h.  */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h.  */
25918 #include <stdlib.h>
25919
25920 _ACEOF
25921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25922   $EGREP "free" >/dev/null 2>&1; then
25923   :
25924 else
25925   ac_cv_header_stdc=no
25926 fi
25927 rm -f conftest*
25928
25929 fi
25930
25931 if test $ac_cv_header_stdc = yes; then
25932   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25933   if test "$cross_compiling" = yes; then
25934   :
25935 else
25936   cat >conftest.$ac_ext <<_ACEOF
25937 /* confdefs.h.  */
25938 _ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h.  */
25942 #include <ctype.h>
25943 #if ((' ' & 0x0FF) == 0x020)
25944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25946 #else
25947 # define ISLOWER(c) \
25948                    (('a' <= (c) && (c) <= 'i') \
25949                      || ('j' <= (c) && (c) <= 'r') \
25950                      || ('s' <= (c) && (c) <= 'z'))
25951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25952 #endif
25953
25954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25955 int
25956 main ()
25957 {
25958   int i;
25959   for (i = 0; i < 256; i++)
25960     if (XOR (islower (i), ISLOWER (i))
25961         || toupper (i) != TOUPPER (i))
25962       exit(2);
25963   exit (0);
25964 }
25965 _ACEOF
25966 rm -f conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968   (eval $ac_link) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973   (eval $ac_try) 2>&5
25974   ac_status=$?
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); }; }; then
25977   :
25978 else
25979   echo "$as_me: program exited with status $ac_status" >&5
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983 ( exit $ac_status )
25984 ac_cv_header_stdc=no
25985 fi
25986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25987 fi
25988 fi
25989 fi
25990 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25991 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25992 if test $ac_cv_header_stdc = yes; then
25993
25994 cat >>confdefs.h <<\_ACEOF
25995 #define STDC_HEADERS 1
25996 _ACEOF
25997
25998 fi
25999
26000 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26001 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26002 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26003   echo $ECHO_N "(cached) $ECHO_C" >&6
26004 else
26005   cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h.  */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h.  */
26011 #include <sys/types.h>
26012 #include <sys/wait.h>
26013 #ifndef WEXITSTATUS
26014 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26015 #endif
26016 #ifndef WIFEXITED
26017 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26018 #endif
26019
26020 int
26021 main ()
26022 {
26023   int s;
26024   wait (&s);
26025   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26026   ;
26027   return 0;
26028 }
26029 _ACEOF
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032   (eval $ac_compile) 2>conftest.er1
26033   ac_status=$?
26034   grep -v '^ *+' conftest.er1 >conftest.err
26035   rm -f conftest.er1
26036   cat conftest.err >&5
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); } &&
26039          { ac_try='test -z "$ac_c_werror_flag"
26040                          || test ! -s conftest.err'
26041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042   (eval $ac_try) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; } &&
26046          { ac_try='test -s conftest.$ac_objext'
26047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048   (eval $ac_try) 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); }; }; then
26052   ac_cv_header_sys_wait_h=yes
26053 else
26054   echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26056
26057 ac_cv_header_sys_wait_h=no
26058 fi
26059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26060 fi
26061 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26062 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26063 if test $ac_cv_header_sys_wait_h = yes; then
26064
26065 cat >>confdefs.h <<\_ACEOF
26066 #define HAVE_SYS_WAIT_H 1
26067 _ACEOF
26068
26069 fi
26070
26071 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26073 if test "${ac_cv_header_time+set}" = set; then
26074   echo $ECHO_N "(cached) $ECHO_C" >&6
26075 else
26076   cat >conftest.$ac_ext <<_ACEOF
26077 /* confdefs.h.  */
26078 _ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h.  */
26082 #include <sys/types.h>
26083 #include <sys/time.h>
26084 #include <time.h>
26085
26086 int
26087 main ()
26088 {
26089 if ((struct tm *) 0)
26090 return 0;
26091   ;
26092   return 0;
26093 }
26094 _ACEOF
26095 rm -f conftest.$ac_objext
26096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26097   (eval $ac_compile) 2>conftest.er1
26098   ac_status=$?
26099   grep -v '^ *+' conftest.er1 >conftest.err
26100   rm -f conftest.er1
26101   cat conftest.err >&5
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); } &&
26104          { ac_try='test -z "$ac_c_werror_flag"
26105                          || test ! -s conftest.err'
26106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107   (eval $ac_try) 2>&5
26108   ac_status=$?
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); }; } &&
26111          { ac_try='test -s conftest.$ac_objext'
26112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113   (eval $ac_try) 2>&5
26114   ac_status=$?
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); }; }; then
26117   ac_cv_header_time=yes
26118 else
26119   echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26121
26122 ac_cv_header_time=no
26123 fi
26124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26125 fi
26126 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26127 echo "${ECHO_T}$ac_cv_header_time" >&6
26128 if test $ac_cv_header_time = yes; then
26129
26130 cat >>confdefs.h <<\_ACEOF
26131 #define TIME_WITH_SYS_TIME 1
26132 _ACEOF
26133
26134 fi
26135
26136
26137
26138
26139
26140
26141
26142
26143 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26144 do
26145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26147   echo "$as_me:$LINENO: checking for $ac_header" >&5
26148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26150   echo $ECHO_N "(cached) $ECHO_C" >&6
26151 fi
26152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26154 else
26155   # Is the header compilable?
26156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26158 cat >conftest.$ac_ext <<_ACEOF
26159 /* confdefs.h.  */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h.  */
26164 $ac_includes_default
26165 #include <$ac_header>
26166 _ACEOF
26167 rm -f conftest.$ac_objext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26169   (eval $ac_compile) 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } &&
26176          { ac_try='test -z "$ac_c_werror_flag"
26177                          || test ! -s conftest.err'
26178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179   (eval $ac_try) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); }; } &&
26183          { ac_try='test -s conftest.$ac_objext'
26184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185   (eval $ac_try) 2>&5
26186   ac_status=$?
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); }; }; then
26189   ac_header_compiler=yes
26190 else
26191   echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 ac_header_compiler=no
26195 fi
26196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26198 echo "${ECHO_T}$ac_header_compiler" >&6
26199
26200 # Is the header present?
26201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26203 cat >conftest.$ac_ext <<_ACEOF
26204 /* confdefs.h.  */
26205 _ACEOF
26206 cat confdefs.h >>conftest.$ac_ext
26207 cat >>conftest.$ac_ext <<_ACEOF
26208 /* end confdefs.h.  */
26209 #include <$ac_header>
26210 _ACEOF
26211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26213   ac_status=$?
26214   grep -v '^ *+' conftest.er1 >conftest.err
26215   rm -f conftest.er1
26216   cat conftest.err >&5
26217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218   (exit $ac_status); } >/dev/null; then
26219   if test -s conftest.err; then
26220     ac_cpp_err=$ac_c_preproc_warn_flag
26221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26222   else
26223     ac_cpp_err=
26224   fi
26225 else
26226   ac_cpp_err=yes
26227 fi
26228 if test -z "$ac_cpp_err"; then
26229   ac_header_preproc=yes
26230 else
26231   echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26233
26234   ac_header_preproc=no
26235 fi
26236 rm -f conftest.err conftest.$ac_ext
26237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26238 echo "${ECHO_T}$ac_header_preproc" >&6
26239
26240 # So?  What about this header?
26241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26242   yes:no: )
26243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26247     ac_header_preproc=yes
26248     ;;
26249   no:yes:* )
26250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26262     (
26263       cat <<\_ASBOX
26264 ## ----------------------------------- ##
26265 ## Report this to llvmbugs@cs.uiuc.edu ##
26266 ## ----------------------------------- ##
26267 _ASBOX
26268     ) |
26269       sed "s/^/$as_me: WARNING:     /" >&2
26270     ;;
26271 esac
26272 echo "$as_me:$LINENO: checking for $ac_header" >&5
26273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277   eval "$as_ac_Header=\$ac_header_preproc"
26278 fi
26279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26281
26282 fi
26283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26284   cat >>confdefs.h <<_ACEOF
26285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26286 _ACEOF
26287
26288 fi
26289
26290 done
26291
26292
26293
26294
26295
26296
26297
26298 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26299 do
26300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26302   echo "$as_me:$LINENO: checking for $ac_header" >&5
26303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26305   echo $ECHO_N "(cached) $ECHO_C" >&6
26306 fi
26307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26309 else
26310   # Is the header compilable?
26311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26313 cat >conftest.$ac_ext <<_ACEOF
26314 /* confdefs.h.  */
26315 _ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h.  */
26319 $ac_includes_default
26320 #include <$ac_header>
26321 _ACEOF
26322 rm -f conftest.$ac_objext
26323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26324   (eval $ac_compile) 2>conftest.er1
26325   ac_status=$?
26326   grep -v '^ *+' conftest.er1 >conftest.err
26327   rm -f conftest.er1
26328   cat conftest.err >&5
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); } &&
26331          { ac_try='test -z "$ac_c_werror_flag"
26332                          || test ! -s conftest.err'
26333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334   (eval $ac_try) 2>&5
26335   ac_status=$?
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); }; } &&
26338          { ac_try='test -s conftest.$ac_objext'
26339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340   (eval $ac_try) 2>&5
26341   ac_status=$?
26342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343   (exit $ac_status); }; }; then
26344   ac_header_compiler=yes
26345 else
26346   echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.$ac_ext >&5
26348
26349 ac_header_compiler=no
26350 fi
26351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26353 echo "${ECHO_T}$ac_header_compiler" >&6
26354
26355 # Is the header present?
26356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26358 cat >conftest.$ac_ext <<_ACEOF
26359 /* confdefs.h.  */
26360 _ACEOF
26361 cat confdefs.h >>conftest.$ac_ext
26362 cat >>conftest.$ac_ext <<_ACEOF
26363 /* end confdefs.h.  */
26364 #include <$ac_header>
26365 _ACEOF
26366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26368   ac_status=$?
26369   grep -v '^ *+' conftest.er1 >conftest.err
26370   rm -f conftest.er1
26371   cat conftest.err >&5
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); } >/dev/null; then
26374   if test -s conftest.err; then
26375     ac_cpp_err=$ac_c_preproc_warn_flag
26376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26377   else
26378     ac_cpp_err=
26379   fi
26380 else
26381   ac_cpp_err=yes
26382 fi
26383 if test -z "$ac_cpp_err"; then
26384   ac_header_preproc=yes
26385 else
26386   echo "$as_me: failed program was:" >&5
26387 sed 's/^/| /' conftest.$ac_ext >&5
26388
26389   ac_header_preproc=no
26390 fi
26391 rm -f conftest.err conftest.$ac_ext
26392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26393 echo "${ECHO_T}$ac_header_preproc" >&6
26394
26395 # So?  What about this header?
26396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26397   yes:no: )
26398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26402     ac_header_preproc=yes
26403     ;;
26404   no:yes:* )
26405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26417     (
26418       cat <<\_ASBOX
26419 ## ----------------------------------- ##
26420 ## Report this to llvmbugs@cs.uiuc.edu ##
26421 ## ----------------------------------- ##
26422 _ASBOX
26423     ) |
26424       sed "s/^/$as_me: WARNING:     /" >&2
26425     ;;
26426 esac
26427 echo "$as_me:$LINENO: checking for $ac_header" >&5
26428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26430   echo $ECHO_N "(cached) $ECHO_C" >&6
26431 else
26432   eval "$as_ac_Header=\$ac_header_preproc"
26433 fi
26434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26436
26437 fi
26438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26439   cat >>confdefs.h <<_ACEOF
26440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26441 _ACEOF
26442
26443 fi
26444
26445 done
26446
26447
26448
26449
26450
26451
26452 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26453 do
26454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26456   echo "$as_me:$LINENO: checking for $ac_header" >&5
26457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26459   echo $ECHO_N "(cached) $ECHO_C" >&6
26460 fi
26461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26463 else
26464   # Is the header compilable?
26465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26467 cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473 $ac_includes_default
26474 #include <$ac_header>
26475 _ACEOF
26476 rm -f conftest.$ac_objext
26477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26478   (eval $ac_compile) 2>conftest.er1
26479   ac_status=$?
26480   grep -v '^ *+' conftest.er1 >conftest.err
26481   rm -f conftest.er1
26482   cat conftest.err >&5
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); } &&
26485          { ac_try='test -z "$ac_c_werror_flag"
26486                          || test ! -s conftest.err'
26487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488   (eval $ac_try) 2>&5
26489   ac_status=$?
26490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); }; } &&
26492          { ac_try='test -s conftest.$ac_objext'
26493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494   (eval $ac_try) 2>&5
26495   ac_status=$?
26496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497   (exit $ac_status); }; }; then
26498   ac_header_compiler=yes
26499 else
26500   echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.$ac_ext >&5
26502
26503 ac_header_compiler=no
26504 fi
26505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26507 echo "${ECHO_T}$ac_header_compiler" >&6
26508
26509 # Is the header present?
26510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26512 cat >conftest.$ac_ext <<_ACEOF
26513 /* confdefs.h.  */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h.  */
26518 #include <$ac_header>
26519 _ACEOF
26520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26522   ac_status=$?
26523   grep -v '^ *+' conftest.er1 >conftest.err
26524   rm -f conftest.er1
26525   cat conftest.err >&5
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } >/dev/null; then
26528   if test -s conftest.err; then
26529     ac_cpp_err=$ac_c_preproc_warn_flag
26530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26531   else
26532     ac_cpp_err=
26533   fi
26534 else
26535   ac_cpp_err=yes
26536 fi
26537 if test -z "$ac_cpp_err"; then
26538   ac_header_preproc=yes
26539 else
26540   echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26542
26543   ac_header_preproc=no
26544 fi
26545 rm -f conftest.err conftest.$ac_ext
26546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26547 echo "${ECHO_T}$ac_header_preproc" >&6
26548
26549 # So?  What about this header?
26550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26551   yes:no: )
26552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26556     ac_header_preproc=yes
26557     ;;
26558   no:yes:* )
26559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26571     (
26572       cat <<\_ASBOX
26573 ## ----------------------------------- ##
26574 ## Report this to llvmbugs@cs.uiuc.edu ##
26575 ## ----------------------------------- ##
26576 _ASBOX
26577     ) |
26578       sed "s/^/$as_me: WARNING:     /" >&2
26579     ;;
26580 esac
26581 echo "$as_me:$LINENO: checking for $ac_header" >&5
26582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26584   echo $ECHO_N "(cached) $ECHO_C" >&6
26585 else
26586   eval "$as_ac_Header=\$ac_header_preproc"
26587 fi
26588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26590
26591 fi
26592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26593   cat >>confdefs.h <<_ACEOF
26594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26595 _ACEOF
26596
26597 fi
26598
26599 done
26600
26601
26602
26603 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26604 do
26605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26607   echo "$as_me:$LINENO: checking for $ac_header" >&5
26608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26610   echo $ECHO_N "(cached) $ECHO_C" >&6
26611 fi
26612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26614 else
26615   # Is the header compilable?
26616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26618 cat >conftest.$ac_ext <<_ACEOF
26619 /* confdefs.h.  */
26620 _ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h.  */
26624 $ac_includes_default
26625 #include <$ac_header>
26626 _ACEOF
26627 rm -f conftest.$ac_objext
26628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26629   (eval $ac_compile) 2>conftest.er1
26630   ac_status=$?
26631   grep -v '^ *+' conftest.er1 >conftest.err
26632   rm -f conftest.er1
26633   cat conftest.err >&5
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } &&
26636          { ac_try='test -z "$ac_c_werror_flag"
26637                          || test ! -s conftest.err'
26638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639   (eval $ac_try) 2>&5
26640   ac_status=$?
26641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642   (exit $ac_status); }; } &&
26643          { ac_try='test -s conftest.$ac_objext'
26644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645   (eval $ac_try) 2>&5
26646   ac_status=$?
26647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648   (exit $ac_status); }; }; then
26649   ac_header_compiler=yes
26650 else
26651   echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26653
26654 ac_header_compiler=no
26655 fi
26656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26658 echo "${ECHO_T}$ac_header_compiler" >&6
26659
26660 # Is the header present?
26661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26663 cat >conftest.$ac_ext <<_ACEOF
26664 /* confdefs.h.  */
26665 _ACEOF
26666 cat confdefs.h >>conftest.$ac_ext
26667 cat >>conftest.$ac_ext <<_ACEOF
26668 /* end confdefs.h.  */
26669 #include <$ac_header>
26670 _ACEOF
26671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26672   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26673   ac_status=$?
26674   grep -v '^ *+' conftest.er1 >conftest.err
26675   rm -f conftest.er1
26676   cat conftest.err >&5
26677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); } >/dev/null; then
26679   if test -s conftest.err; then
26680     ac_cpp_err=$ac_c_preproc_warn_flag
26681     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26682   else
26683     ac_cpp_err=
26684   fi
26685 else
26686   ac_cpp_err=yes
26687 fi
26688 if test -z "$ac_cpp_err"; then
26689   ac_header_preproc=yes
26690 else
26691   echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26693
26694   ac_header_preproc=no
26695 fi
26696 rm -f conftest.err conftest.$ac_ext
26697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26698 echo "${ECHO_T}$ac_header_preproc" >&6
26699
26700 # So?  What about this header?
26701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26702   yes:no: )
26703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26707     ac_header_preproc=yes
26708     ;;
26709   no:yes:* )
26710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26722     (
26723       cat <<\_ASBOX
26724 ## ----------------------------------- ##
26725 ## Report this to llvmbugs@cs.uiuc.edu ##
26726 ## ----------------------------------- ##
26727 _ASBOX
26728     ) |
26729       sed "s/^/$as_me: WARNING:     /" >&2
26730     ;;
26731 esac
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 else
26737   eval "$as_ac_Header=\$ac_header_preproc"
26738 fi
26739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26741
26742 fi
26743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26744   cat >>confdefs.h <<_ACEOF
26745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26746 _ACEOF
26747
26748 fi
26749
26750 done
26751
26752
26753
26754 echo "$as_me:$LINENO: checking for pid_t" >&5
26755 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26756 if test "${ac_cv_type_pid_t+set}" = set; then
26757   echo $ECHO_N "(cached) $ECHO_C" >&6
26758 else
26759   cat >conftest.$ac_ext <<_ACEOF
26760 /* confdefs.h.  */
26761 _ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h.  */
26765 $ac_includes_default
26766 int
26767 main ()
26768 {
26769 if ((pid_t *) 0)
26770   return 0;
26771 if (sizeof (pid_t))
26772   return 0;
26773   ;
26774   return 0;
26775 }
26776 _ACEOF
26777 rm -f conftest.$ac_objext
26778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26779   (eval $ac_compile) 2>conftest.er1
26780   ac_status=$?
26781   grep -v '^ *+' conftest.er1 >conftest.err
26782   rm -f conftest.er1
26783   cat conftest.err >&5
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); } &&
26786          { ac_try='test -z "$ac_c_werror_flag"
26787                          || test ! -s conftest.err'
26788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789   (eval $ac_try) 2>&5
26790   ac_status=$?
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); }; } &&
26793          { ac_try='test -s conftest.$ac_objext'
26794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795   (eval $ac_try) 2>&5
26796   ac_status=$?
26797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798   (exit $ac_status); }; }; then
26799   ac_cv_type_pid_t=yes
26800 else
26801   echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26803
26804 ac_cv_type_pid_t=no
26805 fi
26806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26807 fi
26808 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26809 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26810 if test $ac_cv_type_pid_t = yes; then
26811   :
26812 else
26813
26814 cat >>confdefs.h <<_ACEOF
26815 #define pid_t int
26816 _ACEOF
26817
26818 fi
26819
26820 echo "$as_me:$LINENO: checking for size_t" >&5
26821 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26822 if test "${ac_cv_type_size_t+set}" = set; then
26823   echo $ECHO_N "(cached) $ECHO_C" >&6
26824 else
26825   cat >conftest.$ac_ext <<_ACEOF
26826 /* confdefs.h.  */
26827 _ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h.  */
26831 $ac_includes_default
26832 int
26833 main ()
26834 {
26835 if ((size_t *) 0)
26836   return 0;
26837 if (sizeof (size_t))
26838   return 0;
26839   ;
26840   return 0;
26841 }
26842 _ACEOF
26843 rm -f conftest.$ac_objext
26844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26845   (eval $ac_compile) 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } &&
26852          { ac_try='test -z "$ac_c_werror_flag"
26853                          || test ! -s conftest.err'
26854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855   (eval $ac_try) 2>&5
26856   ac_status=$?
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); }; } &&
26859          { ac_try='test -s conftest.$ac_objext'
26860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861   (eval $ac_try) 2>&5
26862   ac_status=$?
26863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864   (exit $ac_status); }; }; then
26865   ac_cv_type_size_t=yes
26866 else
26867   echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26869
26870 ac_cv_type_size_t=no
26871 fi
26872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26873 fi
26874 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26875 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26876 if test $ac_cv_type_size_t = yes; then
26877   :
26878 else
26879
26880 cat >>confdefs.h <<_ACEOF
26881 #define size_t unsigned
26882 _ACEOF
26883
26884 fi
26885
26886 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26887 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26888 if test "${ac_cv_type_signal+set}" = set; then
26889   echo $ECHO_N "(cached) $ECHO_C" >&6
26890 else
26891   cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 #include <sys/types.h>
26898 #include <signal.h>
26899 #ifdef signal
26900 # undef signal
26901 #endif
26902 #ifdef __cplusplus
26903 extern "C" void (*signal (int, void (*)(int)))(int);
26904 #else
26905 void (*signal ()) ();
26906 #endif
26907
26908 int
26909 main ()
26910 {
26911 int i;
26912   ;
26913   return 0;
26914 }
26915 _ACEOF
26916 rm -f conftest.$ac_objext
26917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26918   (eval $ac_compile) 2>conftest.er1
26919   ac_status=$?
26920   grep -v '^ *+' conftest.er1 >conftest.err
26921   rm -f conftest.er1
26922   cat conftest.err >&5
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); } &&
26925          { ac_try='test -z "$ac_c_werror_flag"
26926                          || test ! -s conftest.err'
26927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928   (eval $ac_try) 2>&5
26929   ac_status=$?
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); }; } &&
26932          { ac_try='test -s conftest.$ac_objext'
26933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934   (eval $ac_try) 2>&5
26935   ac_status=$?
26936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937   (exit $ac_status); }; }; then
26938   ac_cv_type_signal=void
26939 else
26940   echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26942
26943 ac_cv_type_signal=int
26944 fi
26945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26946 fi
26947 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26948 echo "${ECHO_T}$ac_cv_type_signal" >&6
26949
26950 cat >>confdefs.h <<_ACEOF
26951 #define RETSIGTYPE $ac_cv_type_signal
26952 _ACEOF
26953
26954
26955 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26956 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26957 if test "${ac_cv_struct_tm+set}" = set; then
26958   echo $ECHO_N "(cached) $ECHO_C" >&6
26959 else
26960   cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h.  */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h.  */
26966 #include <sys/types.h>
26967 #include <time.h>
26968
26969 int
26970 main ()
26971 {
26972 struct tm *tp; tp->tm_sec;
26973   ;
26974   return 0;
26975 }
26976 _ACEOF
26977 rm -f conftest.$ac_objext
26978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26979   (eval $ac_compile) 2>conftest.er1
26980   ac_status=$?
26981   grep -v '^ *+' conftest.er1 >conftest.err
26982   rm -f conftest.er1
26983   cat conftest.err >&5
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } &&
26986          { ac_try='test -z "$ac_c_werror_flag"
26987                          || test ! -s conftest.err'
26988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989   (eval $ac_try) 2>&5
26990   ac_status=$?
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); }; } &&
26993          { ac_try='test -s conftest.$ac_objext'
26994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995   (eval $ac_try) 2>&5
26996   ac_status=$?
26997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998   (exit $ac_status); }; }; then
26999   ac_cv_struct_tm=time.h
27000 else
27001   echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27003
27004 ac_cv_struct_tm=sys/time.h
27005 fi
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27007 fi
27008 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27009 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27010 if test $ac_cv_struct_tm = sys/time.h; then
27011
27012 cat >>confdefs.h <<\_ACEOF
27013 #define TM_IN_SYS_TIME 1
27014 _ACEOF
27015
27016 fi
27017
27018 echo "$as_me:$LINENO: checking for int64_t" >&5
27019 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27020 if test "${ac_cv_type_int64_t+set}" = set; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27023   cat >conftest.$ac_ext <<_ACEOF
27024 /* confdefs.h.  */
27025 _ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h.  */
27029 $ac_includes_default
27030 int
27031 main ()
27032 {
27033 if ((int64_t *) 0)
27034   return 0;
27035 if (sizeof (int64_t))
27036   return 0;
27037   ;
27038   return 0;
27039 }
27040 _ACEOF
27041 rm -f conftest.$ac_objext
27042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27043   (eval $ac_compile) 2>conftest.er1
27044   ac_status=$?
27045   grep -v '^ *+' conftest.er1 >conftest.err
27046   rm -f conftest.er1
27047   cat conftest.err >&5
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); } &&
27050          { ac_try='test -z "$ac_c_werror_flag"
27051                          || test ! -s conftest.err'
27052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053   (eval $ac_try) 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); }; } &&
27057          { ac_try='test -s conftest.$ac_objext'
27058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059   (eval $ac_try) 2>&5
27060   ac_status=$?
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); }; }; then
27063   ac_cv_type_int64_t=yes
27064 else
27065   echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27067
27068 ac_cv_type_int64_t=no
27069 fi
27070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27071 fi
27072 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27073 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27074 if test $ac_cv_type_int64_t = yes; then
27075
27076 cat >>confdefs.h <<_ACEOF
27077 #define HAVE_INT64_T 1
27078 _ACEOF
27079
27080
27081 else
27082   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27083 echo "$as_me: error: Type int64_t required but not found" >&2;}
27084    { (exit 1); exit 1; }; }
27085 fi
27086
27087 echo "$as_me:$LINENO: checking for uint64_t" >&5
27088 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27089 if test "${ac_cv_type_uint64_t+set}" = set; then
27090   echo $ECHO_N "(cached) $ECHO_C" >&6
27091 else
27092   cat >conftest.$ac_ext <<_ACEOF
27093 /* confdefs.h.  */
27094 _ACEOF
27095 cat confdefs.h >>conftest.$ac_ext
27096 cat >>conftest.$ac_ext <<_ACEOF
27097 /* end confdefs.h.  */
27098 $ac_includes_default
27099 int
27100 main ()
27101 {
27102 if ((uint64_t *) 0)
27103   return 0;
27104 if (sizeof (uint64_t))
27105   return 0;
27106   ;
27107   return 0;
27108 }
27109 _ACEOF
27110 rm -f conftest.$ac_objext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27112   (eval $ac_compile) 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } &&
27119          { ac_try='test -z "$ac_c_werror_flag"
27120                          || test ! -s conftest.err'
27121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122   (eval $ac_try) 2>&5
27123   ac_status=$?
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); }; } &&
27126          { ac_try='test -s conftest.$ac_objext'
27127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128   (eval $ac_try) 2>&5
27129   ac_status=$?
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); }; }; then
27132   ac_cv_type_uint64_t=yes
27133 else
27134   echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137 ac_cv_type_uint64_t=no
27138 fi
27139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27140 fi
27141 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27142 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27143 if test $ac_cv_type_uint64_t = yes; then
27144
27145 cat >>confdefs.h <<_ACEOF
27146 #define HAVE_UINT64_T 1
27147 _ACEOF
27148
27149
27150 else
27151   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27152 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27153 if test "${ac_cv_type_u_int64_t+set}" = set; then
27154   echo $ECHO_N "(cached) $ECHO_C" >&6
27155 else
27156   cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162 $ac_includes_default
27163 int
27164 main ()
27165 {
27166 if ((u_int64_t *) 0)
27167   return 0;
27168 if (sizeof (u_int64_t))
27169   return 0;
27170   ;
27171   return 0;
27172 }
27173 _ACEOF
27174 rm -f conftest.$ac_objext
27175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27176   (eval $ac_compile) 2>conftest.er1
27177   ac_status=$?
27178   grep -v '^ *+' conftest.er1 >conftest.err
27179   rm -f conftest.er1
27180   cat conftest.err >&5
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); } &&
27183          { ac_try='test -z "$ac_c_werror_flag"
27184                          || test ! -s conftest.err'
27185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186   (eval $ac_try) 2>&5
27187   ac_status=$?
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); }; } &&
27190          { ac_try='test -s conftest.$ac_objext'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; }; then
27196   ac_cv_type_u_int64_t=yes
27197 else
27198   echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27200
27201 ac_cv_type_u_int64_t=no
27202 fi
27203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27204 fi
27205 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27206 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27207 if test $ac_cv_type_u_int64_t = yes; then
27208
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_U_INT64_T 1
27211 _ACEOF
27212
27213
27214 else
27215   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27216 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27217    { (exit 1); exit 1; }; }
27218 fi
27219
27220 fi
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230 for ac_func in backtrace ffsll getcwd getpagesize getrusage gettimeofday
27231 do
27232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27233 echo "$as_me:$LINENO: checking for $ac_func" >&5
27234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27235 if eval "test \"\${$as_ac_var+set}\" = set"; then
27236   echo $ECHO_N "(cached) $ECHO_C" >&6
27237 else
27238   cat >conftest.$ac_ext <<_ACEOF
27239 /* confdefs.h.  */
27240 _ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h.  */
27244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27246 #define $ac_func innocuous_$ac_func
27247
27248 /* System header to define __stub macros and hopefully few prototypes,
27249     which can conflict with char $ac_func (); below.
27250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27251     <limits.h> exists even on freestanding compilers.  */
27252
27253 #ifdef __STDC__
27254 # include <limits.h>
27255 #else
27256 # include <assert.h>
27257 #endif
27258
27259 #undef $ac_func
27260
27261 /* Override any gcc2 internal prototype to avoid an error.  */
27262 #ifdef __cplusplus
27263 extern "C"
27264 {
27265 #endif
27266 /* We use char because int might match the return type of a gcc2
27267    builtin and then its argument prototype would still apply.  */
27268 char $ac_func ();
27269 /* The GNU C library defines this for functions which it implements
27270     to always fail with ENOSYS.  Some functions are actually named
27271     something starting with __ and the normal name is an alias.  */
27272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27273 choke me
27274 #else
27275 char (*f) () = $ac_func;
27276 #endif
27277 #ifdef __cplusplus
27278 }
27279 #endif
27280
27281 int
27282 main ()
27283 {
27284 return f != $ac_func;
27285   ;
27286   return 0;
27287 }
27288 _ACEOF
27289 rm -f conftest.$ac_objext conftest$ac_exeext
27290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27291   (eval $ac_link) 2>conftest.er1
27292   ac_status=$?
27293   grep -v '^ *+' conftest.er1 >conftest.err
27294   rm -f conftest.er1
27295   cat conftest.err >&5
27296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297   (exit $ac_status); } &&
27298          { ac_try='test -z "$ac_c_werror_flag"
27299                          || test ! -s conftest.err'
27300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301   (eval $ac_try) 2>&5
27302   ac_status=$?
27303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); }; } &&
27305          { ac_try='test -s conftest$ac_exeext'
27306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307   (eval $ac_try) 2>&5
27308   ac_status=$?
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); }; }; then
27311   eval "$as_ac_var=yes"
27312 else
27313   echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27315
27316 eval "$as_ac_var=no"
27317 fi
27318 rm -f conftest.err conftest.$ac_objext \
27319       conftest$ac_exeext conftest.$ac_ext
27320 fi
27321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27323 if test `eval echo '${'$as_ac_var'}'` = yes; then
27324   cat >>confdefs.h <<_ACEOF
27325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27326 _ACEOF
27327
27328 fi
27329 done
27330
27331
27332
27333
27334
27335 for ac_func in isatty mkdtemp mkstemp mktemp
27336 do
27337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27338 echo "$as_me:$LINENO: checking for $ac_func" >&5
27339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27340 if eval "test \"\${$as_ac_var+set}\" = set"; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27351 #define $ac_func innocuous_$ac_func
27352
27353 /* System header to define __stub macros and hopefully few prototypes,
27354     which can conflict with char $ac_func (); below.
27355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27356     <limits.h> exists even on freestanding compilers.  */
27357
27358 #ifdef __STDC__
27359 # include <limits.h>
27360 #else
27361 # include <assert.h>
27362 #endif
27363
27364 #undef $ac_func
27365
27366 /* Override any gcc2 internal prototype to avoid an error.  */
27367 #ifdef __cplusplus
27368 extern "C"
27369 {
27370 #endif
27371 /* We use char because int might match the return type of a gcc2
27372    builtin and then its argument prototype would still apply.  */
27373 char $ac_func ();
27374 /* The GNU C library defines this for functions which it implements
27375     to always fail with ENOSYS.  Some functions are actually named
27376     something starting with __ and the normal name is an alias.  */
27377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27378 choke me
27379 #else
27380 char (*f) () = $ac_func;
27381 #endif
27382 #ifdef __cplusplus
27383 }
27384 #endif
27385
27386 int
27387 main ()
27388 {
27389 return f != $ac_func;
27390   ;
27391   return 0;
27392 }
27393 _ACEOF
27394 rm -f conftest.$ac_objext conftest$ac_exeext
27395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27396   (eval $ac_link) 2>conftest.er1
27397   ac_status=$?
27398   grep -v '^ *+' conftest.er1 >conftest.err
27399   rm -f conftest.er1
27400   cat conftest.err >&5
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); } &&
27403          { ac_try='test -z "$ac_c_werror_flag"
27404                          || test ! -s conftest.err'
27405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406   (eval $ac_try) 2>&5
27407   ac_status=$?
27408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409   (exit $ac_status); }; } &&
27410          { ac_try='test -s conftest$ac_exeext'
27411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27412   (eval $ac_try) 2>&5
27413   ac_status=$?
27414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415   (exit $ac_status); }; }; then
27416   eval "$as_ac_var=yes"
27417 else
27418   echo "$as_me: failed program was:" >&5
27419 sed 's/^/| /' conftest.$ac_ext >&5
27420
27421 eval "$as_ac_var=no"
27422 fi
27423 rm -f conftest.err conftest.$ac_objext \
27424       conftest$ac_exeext conftest.$ac_ext
27425 fi
27426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27428 if test `eval echo '${'$as_ac_var'}'` = yes; then
27429   cat >>confdefs.h <<_ACEOF
27430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27431 _ACEOF
27432
27433 fi
27434 done
27435
27436
27437
27438
27439
27440
27441
27442 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27443 do
27444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27445 echo "$as_me:$LINENO: checking for $ac_func" >&5
27446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27447 if eval "test \"\${$as_ac_var+set}\" = set"; then
27448   echo $ECHO_N "(cached) $ECHO_C" >&6
27449 else
27450   cat >conftest.$ac_ext <<_ACEOF
27451 /* confdefs.h.  */
27452 _ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h.  */
27456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27458 #define $ac_func innocuous_$ac_func
27459
27460 /* System header to define __stub macros and hopefully few prototypes,
27461     which can conflict with char $ac_func (); below.
27462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27463     <limits.h> exists even on freestanding compilers.  */
27464
27465 #ifdef __STDC__
27466 # include <limits.h>
27467 #else
27468 # include <assert.h>
27469 #endif
27470
27471 #undef $ac_func
27472
27473 /* Override any gcc2 internal prototype to avoid an error.  */
27474 #ifdef __cplusplus
27475 extern "C"
27476 {
27477 #endif
27478 /* We use char because int might match the return type of a gcc2
27479    builtin and then its argument prototype would still apply.  */
27480 char $ac_func ();
27481 /* The GNU C library defines this for functions which it implements
27482     to always fail with ENOSYS.  Some functions are actually named
27483     something starting with __ and the normal name is an alias.  */
27484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27485 choke me
27486 #else
27487 char (*f) () = $ac_func;
27488 #endif
27489 #ifdef __cplusplus
27490 }
27491 #endif
27492
27493 int
27494 main ()
27495 {
27496 return f != $ac_func;
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest.$ac_objext conftest$ac_exeext
27502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27503   (eval $ac_link) 2>conftest.er1
27504   ac_status=$?
27505   grep -v '^ *+' conftest.er1 >conftest.err
27506   rm -f conftest.er1
27507   cat conftest.err >&5
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); } &&
27510          { ac_try='test -z "$ac_c_werror_flag"
27511                          || test ! -s conftest.err'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; } &&
27517          { ac_try='test -s conftest$ac_exeext'
27518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519   (eval $ac_try) 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; }; then
27523   eval "$as_ac_var=yes"
27524 else
27525   echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528 eval "$as_ac_var=no"
27529 fi
27530 rm -f conftest.err conftest.$ac_objext \
27531       conftest$ac_exeext conftest.$ac_ext
27532 fi
27533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27535 if test `eval echo '${'$as_ac_var'}'` = yes; then
27536   cat >>confdefs.h <<_ACEOF
27537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27538 _ACEOF
27539
27540 fi
27541 done
27542
27543
27544
27545
27546 for ac_func in strtoll strtoq sysconf
27547 do
27548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27549 echo "$as_me:$LINENO: checking for $ac_func" >&5
27550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27551 if eval "test \"\${$as_ac_var+set}\" = set"; then
27552   echo $ECHO_N "(cached) $ECHO_C" >&6
27553 else
27554   cat >conftest.$ac_ext <<_ACEOF
27555 /* confdefs.h.  */
27556 _ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h.  */
27560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27562 #define $ac_func innocuous_$ac_func
27563
27564 /* System header to define __stub macros and hopefully few prototypes,
27565     which can conflict with char $ac_func (); below.
27566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27567     <limits.h> exists even on freestanding compilers.  */
27568
27569 #ifdef __STDC__
27570 # include <limits.h>
27571 #else
27572 # include <assert.h>
27573 #endif
27574
27575 #undef $ac_func
27576
27577 /* Override any gcc2 internal prototype to avoid an error.  */
27578 #ifdef __cplusplus
27579 extern "C"
27580 {
27581 #endif
27582 /* We use char because int might match the return type of a gcc2
27583    builtin and then its argument prototype would still apply.  */
27584 char $ac_func ();
27585 /* The GNU C library defines this for functions which it implements
27586     to always fail with ENOSYS.  Some functions are actually named
27587     something starting with __ and the normal name is an alias.  */
27588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27589 choke me
27590 #else
27591 char (*f) () = $ac_func;
27592 #endif
27593 #ifdef __cplusplus
27594 }
27595 #endif
27596
27597 int
27598 main ()
27599 {
27600 return f != $ac_func;
27601   ;
27602   return 0;
27603 }
27604 _ACEOF
27605 rm -f conftest.$ac_objext conftest$ac_exeext
27606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27607   (eval $ac_link) 2>conftest.er1
27608   ac_status=$?
27609   grep -v '^ *+' conftest.er1 >conftest.err
27610   rm -f conftest.er1
27611   cat conftest.err >&5
27612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); } &&
27614          { ac_try='test -z "$ac_c_werror_flag"
27615                          || test ! -s conftest.err'
27616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27617   (eval $ac_try) 2>&5
27618   ac_status=$?
27619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620   (exit $ac_status); }; } &&
27621          { ac_try='test -s conftest$ac_exeext'
27622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623   (eval $ac_try) 2>&5
27624   ac_status=$?
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); }; }; then
27627   eval "$as_ac_var=yes"
27628 else
27629   echo "$as_me: failed program was:" >&5
27630 sed 's/^/| /' conftest.$ac_ext >&5
27631
27632 eval "$as_ac_var=no"
27633 fi
27634 rm -f conftest.err conftest.$ac_objext \
27635       conftest$ac_exeext conftest.$ac_ext
27636 fi
27637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27639 if test `eval echo '${'$as_ac_var'}'` = yes; then
27640   cat >>confdefs.h <<_ACEOF
27641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27642 _ACEOF
27643
27644 fi
27645 done
27646
27647 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27648 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27649 if test "${llvm_cv_c_printf_a+set}" = set; then
27650   echo $ECHO_N "(cached) $ECHO_C" >&6
27651 else
27652   ac_ext=c
27653 ac_cpp='$CPP $CPPFLAGS'
27654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27657
27658  if test "$cross_compiling" = yes; then
27659   llvmac_cv_c_printf_a=no
27660 else
27661   cat >conftest.$ac_ext <<_ACEOF
27662
27663   /* confdefs.h.  */
27664 _ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h.  */
27668
27669 #include <stdio.h>
27670 #include <stdlib.h>
27671
27672 int
27673 main ()
27674 {
27675
27676 volatile double A, B;
27677 char Buffer[100];
27678 A = 1;
27679 A /= 10.0;
27680 sprintf(Buffer, "%a", A);
27681 B = atof(Buffer);
27682 if (A != B)
27683   return (1);
27684 if (A != 0x1.999999999999ap-4)
27685   return (1);
27686 return (0);
27687   ;
27688   return 0;
27689 }
27690 _ACEOF
27691 rm -f conftest$ac_exeext
27692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27693   (eval $ac_link) 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698   (eval $ac_try) 2>&5
27699   ac_status=$?
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); }; }; then
27702   llvm_cv_c_printf_a=yes
27703 else
27704   echo "$as_me: program exited with status $ac_status" >&5
27705 echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27707
27708 ( exit $ac_status )
27709 llvmac_cv_c_printf_a=no
27710 fi
27711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27712 fi
27713  ac_ext=c
27714 ac_cpp='$CPP $CPPFLAGS'
27715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27718
27719 fi
27720 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27721 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27722  if test "$llvm_cv_c_printf_a" = "yes"; then
27723
27724 cat >>confdefs.h <<\_ACEOF
27725 #define HAVE_PRINTF_A 1
27726 _ACEOF
27727
27728  fi
27729
27730 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27731 # for constant arguments.  Useless!
27732 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27733 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27734 if test "${ac_cv_working_alloca_h+set}" = set; then
27735   echo $ECHO_N "(cached) $ECHO_C" >&6
27736 else
27737   cat >conftest.$ac_ext <<_ACEOF
27738 /* confdefs.h.  */
27739 _ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h.  */
27743 #include <alloca.h>
27744 int
27745 main ()
27746 {
27747 char *p = (char *) alloca (2 * sizeof (int));
27748   ;
27749   return 0;
27750 }
27751 _ACEOF
27752 rm -f conftest.$ac_objext conftest$ac_exeext
27753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27754   (eval $ac_link) 2>conftest.er1
27755   ac_status=$?
27756   grep -v '^ *+' conftest.er1 >conftest.err
27757   rm -f conftest.er1
27758   cat conftest.err >&5
27759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); } &&
27761          { ac_try='test -z "$ac_c_werror_flag"
27762                          || test ! -s conftest.err'
27763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27764   (eval $ac_try) 2>&5
27765   ac_status=$?
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); }; } &&
27768          { ac_try='test -s conftest$ac_exeext'
27769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770   (eval $ac_try) 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; }; then
27774   ac_cv_working_alloca_h=yes
27775 else
27776   echo "$as_me: failed program was:" >&5
27777 sed 's/^/| /' conftest.$ac_ext >&5
27778
27779 ac_cv_working_alloca_h=no
27780 fi
27781 rm -f conftest.err conftest.$ac_objext \
27782       conftest$ac_exeext conftest.$ac_ext
27783 fi
27784 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27785 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27786 if test $ac_cv_working_alloca_h = yes; then
27787
27788 cat >>confdefs.h <<\_ACEOF
27789 #define HAVE_ALLOCA_H 1
27790 _ACEOF
27791
27792 fi
27793
27794 echo "$as_me:$LINENO: checking for alloca" >&5
27795 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27796 if test "${ac_cv_func_alloca_works+set}" = set; then
27797   echo $ECHO_N "(cached) $ECHO_C" >&6
27798 else
27799   cat >conftest.$ac_ext <<_ACEOF
27800 /* confdefs.h.  */
27801 _ACEOF
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h.  */
27805 #ifdef __GNUC__
27806 # define alloca __builtin_alloca
27807 #else
27808 # ifdef _MSC_VER
27809 #  include <malloc.h>
27810 #  define alloca _alloca
27811 # else
27812 #  if HAVE_ALLOCA_H
27813 #   include <alloca.h>
27814 #  else
27815 #   ifdef _AIX
27816  #pragma alloca
27817 #   else
27818 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27819 char *alloca ();
27820 #    endif
27821 #   endif
27822 #  endif
27823 # endif
27824 #endif
27825
27826 int
27827 main ()
27828 {
27829 char *p = (char *) alloca (1);
27830   ;
27831   return 0;
27832 }
27833 _ACEOF
27834 rm -f conftest.$ac_objext conftest$ac_exeext
27835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27836   (eval $ac_link) 2>conftest.er1
27837   ac_status=$?
27838   grep -v '^ *+' conftest.er1 >conftest.err
27839   rm -f conftest.er1
27840   cat conftest.err >&5
27841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842   (exit $ac_status); } &&
27843          { ac_try='test -z "$ac_c_werror_flag"
27844                          || test ! -s conftest.err'
27845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846   (eval $ac_try) 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; } &&
27850          { ac_try='test -s conftest$ac_exeext'
27851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852   (eval $ac_try) 2>&5
27853   ac_status=$?
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); }; }; then
27856   ac_cv_func_alloca_works=yes
27857 else
27858   echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861 ac_cv_func_alloca_works=no
27862 fi
27863 rm -f conftest.err conftest.$ac_objext \
27864       conftest$ac_exeext conftest.$ac_ext
27865 fi
27866 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27867 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27868
27869 if test $ac_cv_func_alloca_works = yes; then
27870
27871 cat >>confdefs.h <<\_ACEOF
27872 #define HAVE_ALLOCA 1
27873 _ACEOF
27874
27875 else
27876   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27877 # that cause trouble.  Some versions do not even contain alloca or
27878 # contain a buggy version.  If you still want to use their alloca,
27879 # use ar to extract alloca.o from them instead of compiling alloca.c.
27880
27881 ALLOCA=alloca.$ac_objext
27882
27883 cat >>confdefs.h <<\_ACEOF
27884 #define C_ALLOCA 1
27885 _ACEOF
27886
27887
27888 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27889 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27890 if test "${ac_cv_os_cray+set}" = set; then
27891   echo $ECHO_N "(cached) $ECHO_C" >&6
27892 else
27893   cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899 #if defined(CRAY) && ! defined(CRAY2)
27900 webecray
27901 #else
27902 wenotbecray
27903 #endif
27904
27905 _ACEOF
27906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27907   $EGREP "webecray" >/dev/null 2>&1; then
27908   ac_cv_os_cray=yes
27909 else
27910   ac_cv_os_cray=no
27911 fi
27912 rm -f conftest*
27913
27914 fi
27915 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27916 echo "${ECHO_T}$ac_cv_os_cray" >&6
27917 if test $ac_cv_os_cray = yes; then
27918   for ac_func in _getb67 GETB67 getb67; do
27919     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27920 echo "$as_me:$LINENO: checking for $ac_func" >&5
27921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27922 if eval "test \"\${$as_ac_var+set}\" = set"; then
27923   echo $ECHO_N "(cached) $ECHO_C" >&6
27924 else
27925   cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h.  */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h.  */
27931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27933 #define $ac_func innocuous_$ac_func
27934
27935 /* System header to define __stub macros and hopefully few prototypes,
27936     which can conflict with char $ac_func (); below.
27937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27938     <limits.h> exists even on freestanding compilers.  */
27939
27940 #ifdef __STDC__
27941 # include <limits.h>
27942 #else
27943 # include <assert.h>
27944 #endif
27945
27946 #undef $ac_func
27947
27948 /* Override any gcc2 internal prototype to avoid an error.  */
27949 #ifdef __cplusplus
27950 extern "C"
27951 {
27952 #endif
27953 /* We use char because int might match the return type of a gcc2
27954    builtin and then its argument prototype would still apply.  */
27955 char $ac_func ();
27956 /* The GNU C library defines this for functions which it implements
27957     to always fail with ENOSYS.  Some functions are actually named
27958     something starting with __ and the normal name is an alias.  */
27959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27960 choke me
27961 #else
27962 char (*f) () = $ac_func;
27963 #endif
27964 #ifdef __cplusplus
27965 }
27966 #endif
27967
27968 int
27969 main ()
27970 {
27971 return f != $ac_func;
27972   ;
27973   return 0;
27974 }
27975 _ACEOF
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978   (eval $ac_link) 2>conftest.er1
27979   ac_status=$?
27980   grep -v '^ *+' conftest.er1 >conftest.err
27981   rm -f conftest.er1
27982   cat conftest.err >&5
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); } &&
27985          { ac_try='test -z "$ac_c_werror_flag"
27986                          || test ! -s conftest.err'
27987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988   (eval $ac_try) 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest$ac_exeext'
27993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994   (eval $ac_try) 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; }; then
27998   eval "$as_ac_var=yes"
27999 else
28000   echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003 eval "$as_ac_var=no"
28004 fi
28005 rm -f conftest.err conftest.$ac_objext \
28006       conftest$ac_exeext conftest.$ac_ext
28007 fi
28008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28010 if test `eval echo '${'$as_ac_var'}'` = yes; then
28011
28012 cat >>confdefs.h <<_ACEOF
28013 #define CRAY_STACKSEG_END $ac_func
28014 _ACEOF
28015
28016     break
28017 fi
28018
28019   done
28020 fi
28021
28022 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28023 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28024 if test "${ac_cv_c_stack_direction+set}" = set; then
28025   echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28027   if test "$cross_compiling" = yes; then
28028   ac_cv_c_stack_direction=0
28029 else
28030   cat >conftest.$ac_ext <<_ACEOF
28031 /* confdefs.h.  */
28032 _ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h.  */
28036 int
28037 find_stack_direction ()
28038 {
28039   static char *addr = 0;
28040   auto char dummy;
28041   if (addr == 0)
28042     {
28043       addr = &dummy;
28044       return find_stack_direction ();
28045     }
28046   else
28047     return (&dummy > addr) ? 1 : -1;
28048 }
28049
28050 int
28051 main ()
28052 {
28053   exit (find_stack_direction () < 0);
28054 }
28055 _ACEOF
28056 rm -f conftest$ac_exeext
28057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28058   (eval $ac_link) 2>&5
28059   ac_status=$?
28060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28063   (eval $ac_try) 2>&5
28064   ac_status=$?
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); }; }; then
28067   ac_cv_c_stack_direction=1
28068 else
28069   echo "$as_me: program exited with status $ac_status" >&5
28070 echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28072
28073 ( exit $ac_status )
28074 ac_cv_c_stack_direction=-1
28075 fi
28076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28077 fi
28078 fi
28079 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28080 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28081
28082 cat >>confdefs.h <<_ACEOF
28083 #define STACK_DIRECTION $ac_cv_c_stack_direction
28084 _ACEOF
28085
28086
28087 fi
28088
28089
28090 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28091 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28092 if test "${ac_cv_func_rand48+set}" = set; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095   ac_ext=cc
28096 ac_cpp='$CXXCPP $CPPFLAGS'
28097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28100
28101    cat >conftest.$ac_ext <<_ACEOF
28102 /* confdefs.h.  */
28103 _ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h.  */
28107 #include <stdlib.h>
28108 int
28109 main ()
28110 {
28111 srand48(0);lrand48();drand48();
28112   ;
28113   return 0;
28114 }
28115 _ACEOF
28116 rm -f conftest.$ac_objext
28117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28118   (eval $ac_compile) 2>conftest.er1
28119   ac_status=$?
28120   grep -v '^ *+' conftest.er1 >conftest.err
28121   rm -f conftest.er1
28122   cat conftest.err >&5
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); } &&
28125          { ac_try='test -z "$ac_cxx_werror_flag"
28126                          || test ! -s conftest.err'
28127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128   (eval $ac_try) 2>&5
28129   ac_status=$?
28130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131   (exit $ac_status); }; } &&
28132          { ac_try='test -s conftest.$ac_objext'
28133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134   (eval $ac_try) 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); }; }; then
28138   ac_cv_func_rand48=yes
28139 else
28140   echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28142
28143 ac_cv_func_rand48=no
28144 fi
28145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28146   ac_ext=c
28147 ac_cpp='$CPP $CPPFLAGS'
28148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28151
28152 fi
28153 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28154 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28155
28156 if test "$ac_cv_func_rand48" = "yes" ; then
28157
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_RAND48 1
28160 _ACEOF
28161
28162 fi
28163
28164
28165 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28166 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28167 if test "${ac_cv_cxx_namespaces+set}" = set; then
28168   echo $ECHO_N "(cached) $ECHO_C" >&6
28169 else
28170   ac_ext=cc
28171 ac_cpp='$CXXCPP $CPPFLAGS'
28172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28175
28176  cat >conftest.$ac_ext <<_ACEOF
28177 /* confdefs.h.  */
28178 _ACEOF
28179 cat confdefs.h >>conftest.$ac_ext
28180 cat >>conftest.$ac_ext <<_ACEOF
28181 /* end confdefs.h.  */
28182 namespace Outer { namespace Inner { int i = 0; }}
28183 int
28184 main ()
28185 {
28186 using namespace Outer::Inner; return i;
28187   ;
28188   return 0;
28189 }
28190 _ACEOF
28191 rm -f conftest.$ac_objext
28192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28193   (eval $ac_compile) 2>conftest.er1
28194   ac_status=$?
28195   grep -v '^ *+' conftest.er1 >conftest.err
28196   rm -f conftest.er1
28197   cat conftest.err >&5
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } &&
28200          { ac_try='test -z "$ac_cxx_werror_flag"
28201                          || test ! -s conftest.err'
28202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203   (eval $ac_try) 2>&5
28204   ac_status=$?
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); }; } &&
28207          { ac_try='test -s conftest.$ac_objext'
28208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209   (eval $ac_try) 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; }; then
28213   ac_cv_cxx_namespaces=yes
28214 else
28215   echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28217
28218 ac_cv_cxx_namespaces=no
28219 fi
28220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28221  ac_ext=c
28222 ac_cpp='$CPP $CPPFLAGS'
28223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28226
28227
28228 fi
28229 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28230 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28231 if test "$ac_cv_cxx_namespaces" = yes; then
28232
28233 cat >>confdefs.h <<\_ACEOF
28234 #define HAVE_NAMESPACES
28235 _ACEOF
28236
28237 fi
28238
28239 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28240 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28241 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28242   echo $ECHO_N "(cached) $ECHO_C" >&6
28243 else
28244
28245   ac_ext=cc
28246 ac_cpp='$CXXCPP $CPPFLAGS'
28247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28250
28251   cat >conftest.$ac_ext <<_ACEOF
28252 /* confdefs.h.  */
28253 _ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h.  */
28257 #include <ext/hash_map>
28258 #ifdef HAVE_NAMESPACES
28259 using namespace std;
28260 #endif
28261 int
28262 main ()
28263 {
28264 hash_map<int, int> t;
28265   ;
28266   return 0;
28267 }
28268 _ACEOF
28269 rm -f conftest.$ac_objext
28270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28271   (eval $ac_compile) 2>conftest.er1
28272   ac_status=$?
28273   grep -v '^ *+' conftest.er1 >conftest.err
28274   rm -f conftest.er1
28275   cat conftest.err >&5
28276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277   (exit $ac_status); } &&
28278          { ac_try='test -z "$ac_cxx_werror_flag"
28279                          || test ! -s conftest.err'
28280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281   (eval $ac_try) 2>&5
28282   ac_status=$?
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); }; } &&
28285          { ac_try='test -s conftest.$ac_objext'
28286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287   (eval $ac_try) 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; }; then
28291   ac_cv_cxx_have_std_ext_hash_map=yes
28292 else
28293   echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296 ac_cv_cxx_have_std_ext_hash_map=no
28297 fi
28298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28299   ac_ext=c
28300 ac_cpp='$CPP $CPPFLAGS'
28301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28304
28305 fi
28306 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28307 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28308  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28309  then
28310
28311 cat >>confdefs.h <<\_ACEOF
28312 #define HAVE_STD_EXT_HASH_MAP 1
28313 _ACEOF
28314
28315  else
28316
28317 cat >>confdefs.h <<\_ACEOF
28318 #define HAVE_STD_EXT_HASH_MAP 0
28319 _ACEOF
28320
28321  fi
28322
28323  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28324 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28325 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28326   echo $ECHO_N "(cached) $ECHO_C" >&6
28327 else
28328
28329   ac_ext=cc
28330 ac_cpp='$CXXCPP $CPPFLAGS'
28331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28334
28335   cat >conftest.$ac_ext <<_ACEOF
28336 /* confdefs.h.  */
28337 _ACEOF
28338 cat confdefs.h >>conftest.$ac_ext
28339 cat >>conftest.$ac_ext <<_ACEOF
28340 /* end confdefs.h.  */
28341 #include <ext/hash_map>
28342 #ifdef HAVE_NAMESPACES
28343 using namespace __gnu_cxx;
28344 #endif
28345 int
28346 main ()
28347 {
28348 hash_map<int,int> t;
28349   ;
28350   return 0;
28351 }
28352 _ACEOF
28353 rm -f conftest.$ac_objext
28354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28355   (eval $ac_compile) 2>conftest.er1
28356   ac_status=$?
28357   grep -v '^ *+' conftest.er1 >conftest.err
28358   rm -f conftest.er1
28359   cat conftest.err >&5
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); } &&
28362          { ac_try='test -z "$ac_cxx_werror_flag"
28363                          || test ! -s conftest.err'
28364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365   (eval $ac_try) 2>&5
28366   ac_status=$?
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); }; } &&
28369          { ac_try='test -s conftest.$ac_objext'
28370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371   (eval $ac_try) 2>&5
28372   ac_status=$?
28373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374   (exit $ac_status); }; }; then
28375   ac_cv_cxx_have_gnu_ext_hash_map=yes
28376 else
28377   echo "$as_me: failed program was:" >&5
28378 sed 's/^/| /' conftest.$ac_ext >&5
28379
28380 ac_cv_cxx_have_gnu_ext_hash_map=no
28381 fi
28382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28383   ac_ext=c
28384 ac_cpp='$CPP $CPPFLAGS'
28385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28388
28389 fi
28390 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28391 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28392  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28393  then
28394
28395 cat >>confdefs.h <<\_ACEOF
28396 #define HAVE_GNU_EXT_HASH_MAP 1
28397 _ACEOF
28398
28399  else
28400
28401 cat >>confdefs.h <<\_ACEOF
28402 #define HAVE_GNU_EXT_HASH_MAP 0
28403 _ACEOF
28404
28405  fi
28406
28407  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28408 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28409 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28410   echo $ECHO_N "(cached) $ECHO_C" >&6
28411 else
28412
28413   ac_ext=cc
28414 ac_cpp='$CXXCPP $CPPFLAGS'
28415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28418
28419   cat >conftest.$ac_ext <<_ACEOF
28420 /* confdefs.h.  */
28421 _ACEOF
28422 cat confdefs.h >>conftest.$ac_ext
28423 cat >>conftest.$ac_ext <<_ACEOF
28424 /* end confdefs.h.  */
28425 #include <hash_map>
28426 int
28427 main ()
28428 {
28429 hash_map<int,int> t;
28430   ;
28431   return 0;
28432 }
28433 _ACEOF
28434 rm -f conftest.$ac_objext
28435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28436   (eval $ac_compile) 2>conftest.er1
28437   ac_status=$?
28438   grep -v '^ *+' conftest.er1 >conftest.err
28439   rm -f conftest.er1
28440   cat conftest.err >&5
28441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); } &&
28443          { ac_try='test -z "$ac_cxx_werror_flag"
28444                          || test ! -s conftest.err'
28445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446   (eval $ac_try) 2>&5
28447   ac_status=$?
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); }; } &&
28450          { ac_try='test -s conftest.$ac_objext'
28451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452   (eval $ac_try) 2>&5
28453   ac_status=$?
28454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455   (exit $ac_status); }; }; then
28456   ac_cv_cxx_have_global_hash_map=yes
28457 else
28458   echo "$as_me: failed program was:" >&5
28459 sed 's/^/| /' conftest.$ac_ext >&5
28460
28461 ac_cv_cxx_have_global_hash_map=no
28462 fi
28463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28464   ac_ext=c
28465 ac_cpp='$CPP $CPPFLAGS'
28466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28469
28470 fi
28471 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28472 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28473  if test "$ac_cv_cxx_have_global_hash_map" = yes
28474  then
28475
28476 cat >>confdefs.h <<\_ACEOF
28477 #define HAVE_GLOBAL_HASH_MAP 1
28478 _ACEOF
28479
28480  else
28481
28482 cat >>confdefs.h <<\_ACEOF
28483 #define HAVE_GLOBAL_HASH_MAP 0
28484 _ACEOF
28485
28486  fi
28487
28488 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28489 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28490 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28491   echo $ECHO_N "(cached) $ECHO_C" >&6
28492 else
28493
28494   ac_ext=cc
28495 ac_cpp='$CXXCPP $CPPFLAGS'
28496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28499
28500   cat >conftest.$ac_ext <<_ACEOF
28501 /* confdefs.h.  */
28502 _ACEOF
28503 cat confdefs.h >>conftest.$ac_ext
28504 cat >>conftest.$ac_ext <<_ACEOF
28505 /* end confdefs.h.  */
28506 #include <ext/hash_set>
28507 #ifdef HAVE_NAMESPACES
28508 using namespace std;
28509 #endif
28510 int
28511 main ()
28512 {
28513 hash_set<int> t;
28514   ;
28515   return 0;
28516 }
28517 _ACEOF
28518 rm -f conftest.$ac_objext
28519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28520   (eval $ac_compile) 2>conftest.er1
28521   ac_status=$?
28522   grep -v '^ *+' conftest.er1 >conftest.err
28523   rm -f conftest.er1
28524   cat conftest.err >&5
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); } &&
28527          { ac_try='test -z "$ac_cxx_werror_flag"
28528                          || test ! -s conftest.err'
28529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530   (eval $ac_try) 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); }; } &&
28534          { ac_try='test -s conftest.$ac_objext'
28535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536   (eval $ac_try) 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; }; then
28540   ac_cv_cxx_have_std_ext_hash_set=yes
28541 else
28542   echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28544
28545 ac_cv_cxx_have_std_ext_hash_set=no
28546 fi
28547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28548   ac_ext=c
28549 ac_cpp='$CPP $CPPFLAGS'
28550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28553
28554 fi
28555 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28556 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28557  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28558  then
28559
28560 cat >>confdefs.h <<\_ACEOF
28561 #define HAVE_STD_EXT_HASH_SET 1
28562 _ACEOF
28563
28564  else
28565
28566 cat >>confdefs.h <<\_ACEOF
28567 #define HAVE_STD_EXT_HASH_SET 0
28568 _ACEOF
28569
28570  fi
28571
28572  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28573 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28574 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28575   echo $ECHO_N "(cached) $ECHO_C" >&6
28576 else
28577
28578   ac_ext=cc
28579 ac_cpp='$CXXCPP $CPPFLAGS'
28580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28583
28584   cat >conftest.$ac_ext <<_ACEOF
28585 /* confdefs.h.  */
28586 _ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h.  */
28590 #include <ext/hash_set>
28591 #ifdef HAVE_NAMESPACES
28592 using namespace __gnu_cxx;
28593 #endif
28594 int
28595 main ()
28596 {
28597 hash_set<int> t;
28598   ;
28599   return 0;
28600 }
28601 _ACEOF
28602 rm -f conftest.$ac_objext
28603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28604   (eval $ac_compile) 2>conftest.er1
28605   ac_status=$?
28606   grep -v '^ *+' conftest.er1 >conftest.err
28607   rm -f conftest.er1
28608   cat conftest.err >&5
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); } &&
28611          { ac_try='test -z "$ac_cxx_werror_flag"
28612                          || test ! -s conftest.err'
28613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614   (eval $ac_try) 2>&5
28615   ac_status=$?
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); }; } &&
28618          { ac_try='test -s conftest.$ac_objext'
28619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620   (eval $ac_try) 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); }; }; then
28624   ac_cv_cxx_have_gnu_ext_hash_set=yes
28625 else
28626   echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28628
28629 ac_cv_cxx_have_gnu_ext_hash_set=no
28630 fi
28631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28632   ac_ext=c
28633 ac_cpp='$CPP $CPPFLAGS'
28634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28637
28638 fi
28639 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28640 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28641  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28642  then
28643
28644 cat >>confdefs.h <<\_ACEOF
28645 #define HAVE_GNU_EXT_HASH_SET 1
28646 _ACEOF
28647
28648  else
28649
28650 cat >>confdefs.h <<\_ACEOF
28651 #define HAVE_GNU_EXT_HASH_SET 0
28652 _ACEOF
28653
28654  fi
28655
28656  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28657 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28658 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28659   echo $ECHO_N "(cached) $ECHO_C" >&6
28660 else
28661
28662   ac_ext=cc
28663 ac_cpp='$CXXCPP $CPPFLAGS'
28664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28667
28668   cat >conftest.$ac_ext <<_ACEOF
28669 /* confdefs.h.  */
28670 _ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h.  */
28674 #include <hash_set>
28675 int
28676 main ()
28677 {
28678 hash_set<int> t; return 0;
28679   ;
28680   return 0;
28681 }
28682 _ACEOF
28683 rm -f conftest.$ac_objext
28684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28685   (eval $ac_compile) 2>conftest.er1
28686   ac_status=$?
28687   grep -v '^ *+' conftest.er1 >conftest.err
28688   rm -f conftest.er1
28689   cat conftest.err >&5
28690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); } &&
28692          { ac_try='test -z "$ac_cxx_werror_flag"
28693                          || test ! -s conftest.err'
28694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28695   (eval $ac_try) 2>&5
28696   ac_status=$?
28697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698   (exit $ac_status); }; } &&
28699          { ac_try='test -s conftest.$ac_objext'
28700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701   (eval $ac_try) 2>&5
28702   ac_status=$?
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); }; }; then
28705   ac_cv_cxx_have_global_hash_set=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710 ac_cv_cxx_have_global_hash_set=no
28711 fi
28712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28713   ac_ext=c
28714 ac_cpp='$CPP $CPPFLAGS'
28715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28718
28719 fi
28720 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28721 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28722  if test "$ac_cv_cxx_have_global_hash_set" = yes
28723  then
28724
28725 cat >>confdefs.h <<\_ACEOF
28726 #define HAVE_GLOBAL_HASH_SET 1
28727 _ACEOF
28728
28729  else
28730
28731 cat >>confdefs.h <<\_ACEOF
28732 #define HAVE_GLOBAL_HASH_SET 0
28733 _ACEOF
28734
28735  fi
28736
28737 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28738 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28739 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28740   echo $ECHO_N "(cached) $ECHO_C" >&6
28741 else
28742
28743   ac_ext=cc
28744 ac_cpp='$CXXCPP $CPPFLAGS'
28745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28748
28749   cat >conftest.$ac_ext <<_ACEOF
28750 /* confdefs.h.  */
28751 _ACEOF
28752 cat confdefs.h >>conftest.$ac_ext
28753 cat >>conftest.$ac_ext <<_ACEOF
28754 /* end confdefs.h.  */
28755 #include <iterator>
28756 #ifdef HAVE_NAMESPACES
28757 using namespace std;
28758 #endif
28759 int
28760 main ()
28761 {
28762 iterator<int,int,int> t; return 0;
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest.$ac_objext
28768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28769   (eval $ac_compile) 2>conftest.er1
28770   ac_status=$?
28771   grep -v '^ *+' conftest.er1 >conftest.err
28772   rm -f conftest.er1
28773   cat conftest.err >&5
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); } &&
28776          { ac_try='test -z "$ac_cxx_werror_flag"
28777                          || test ! -s conftest.err'
28778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779   (eval $ac_try) 2>&5
28780   ac_status=$?
28781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782   (exit $ac_status); }; } &&
28783          { ac_try='test -s conftest.$ac_objext'
28784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785   (eval $ac_try) 2>&5
28786   ac_status=$?
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; }; then
28789   ac_cv_cxx_have_std_iterator=yes
28790 else
28791   echo "$as_me: failed program was:" >&5
28792 sed 's/^/| /' conftest.$ac_ext >&5
28793
28794 ac_cv_cxx_have_std_iterator=no
28795 fi
28796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28797   ac_ext=c
28798 ac_cpp='$CPP $CPPFLAGS'
28799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28802
28803
28804 fi
28805 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28806 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28807 if test "$ac_cv_cxx_have_std_iterator" = yes
28808 then
28809
28810 cat >>confdefs.h <<\_ACEOF
28811 #define HAVE_STD_ITERATOR 1
28812 _ACEOF
28813
28814 else
28815
28816 cat >>confdefs.h <<\_ACEOF
28817 #define HAVE_STD_ITERATOR 0
28818 _ACEOF
28819
28820 fi
28821
28822 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28823 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28824 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28825   echo $ECHO_N "(cached) $ECHO_C" >&6
28826 else
28827
28828   ac_ext=cc
28829 ac_cpp='$CXXCPP $CPPFLAGS'
28830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28833
28834   cat >conftest.$ac_ext <<_ACEOF
28835 /* confdefs.h.  */
28836 _ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h.  */
28840 #include <iterator>
28841 #ifdef HAVE_NAMESPACES
28842 using namespace std;
28843 #endif
28844 int
28845 main ()
28846 {
28847 bidirectional_iterator<int,int> t; return 0;
28848   ;
28849   return 0;
28850 }
28851 _ACEOF
28852 rm -f conftest.$ac_objext
28853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28854   (eval $ac_compile) 2>conftest.er1
28855   ac_status=$?
28856   grep -v '^ *+' conftest.er1 >conftest.err
28857   rm -f conftest.er1
28858   cat conftest.err >&5
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); } &&
28861          { ac_try='test -z "$ac_cxx_werror_flag"
28862                          || test ! -s conftest.err'
28863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864   (eval $ac_try) 2>&5
28865   ac_status=$?
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); }; } &&
28868          { ac_try='test -s conftest.$ac_objext'
28869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870   (eval $ac_try) 2>&5
28871   ac_status=$?
28872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873   (exit $ac_status); }; }; then
28874   ac_cv_cxx_have_bi_iterator=yes
28875 else
28876   echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28878
28879 ac_cv_cxx_have_bi_iterator=no
28880 fi
28881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28882   ac_ext=c
28883 ac_cpp='$CPP $CPPFLAGS'
28884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28887
28888
28889 fi
28890 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28891 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28892 if test "$ac_cv_cxx_have_bi_iterator" = yes
28893 then
28894
28895 cat >>confdefs.h <<\_ACEOF
28896 #define HAVE_BI_ITERATOR 1
28897 _ACEOF
28898
28899 else
28900
28901 cat >>confdefs.h <<\_ACEOF
28902 #define HAVE_BI_ITERATOR 0
28903 _ACEOF
28904
28905 fi
28906
28907 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28908 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28909 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28910   echo $ECHO_N "(cached) $ECHO_C" >&6
28911 else
28912
28913   ac_ext=cc
28914 ac_cpp='$CXXCPP $CPPFLAGS'
28915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28918
28919   cat >conftest.$ac_ext <<_ACEOF
28920 /* confdefs.h.  */
28921 _ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h.  */
28925 #include <iterator>
28926 #ifdef HAVE_NAMESPACES
28927 using namespace std;
28928 #endif
28929 int
28930 main ()
28931 {
28932 forward_iterator<int,int> t; return 0;
28933   ;
28934   return 0;
28935 }
28936 _ACEOF
28937 rm -f conftest.$ac_objext
28938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28939   (eval $ac_compile) 2>conftest.er1
28940   ac_status=$?
28941   grep -v '^ *+' conftest.er1 >conftest.err
28942   rm -f conftest.er1
28943   cat conftest.err >&5
28944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); } &&
28946          { ac_try='test -z "$ac_cxx_werror_flag"
28947                          || test ! -s conftest.err'
28948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949   (eval $ac_try) 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; } &&
28953          { ac_try='test -s conftest.$ac_objext'
28954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955   (eval $ac_try) 2>&5
28956   ac_status=$?
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); }; }; then
28959   ac_cv_cxx_have_fwd_iterator=yes
28960 else
28961   echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28963
28964 ac_cv_cxx_have_fwd_iterator=no
28965 fi
28966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28967   ac_ext=c
28968 ac_cpp='$CPP $CPPFLAGS'
28969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28972
28973
28974 fi
28975 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28976 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28977 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28978 then
28979
28980 cat >>confdefs.h <<\_ACEOF
28981 #define HAVE_FWD_ITERATOR 1
28982 _ACEOF
28983
28984 else
28985
28986 cat >>confdefs.h <<\_ACEOF
28987 #define HAVE_FWD_ITERATOR 0
28988 _ACEOF
28989
28990 fi
28991
28992
28993 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28994 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28995 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998   ac_ext=cc
28999 ac_cpp='$CXXCPP $CPPFLAGS'
29000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29003
29004    cat >conftest.$ac_ext <<_ACEOF
29005 /* confdefs.h.  */
29006 _ACEOF
29007 cat confdefs.h >>conftest.$ac_ext
29008 cat >>conftest.$ac_ext <<_ACEOF
29009 /* end confdefs.h.  */
29010 #include <math.h>
29011 int
29012 main ()
29013 {
29014 float f; isnan(f);
29015   ;
29016   return 0;
29017 }
29018 _ACEOF
29019 rm -f conftest.$ac_objext
29020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29021   (eval $ac_compile) 2>conftest.er1
29022   ac_status=$?
29023   grep -v '^ *+' conftest.er1 >conftest.err
29024   rm -f conftest.er1
29025   cat conftest.err >&5
29026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027   (exit $ac_status); } &&
29028          { ac_try='test -z "$ac_cxx_werror_flag"
29029                          || test ! -s conftest.err'
29030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29031   (eval $ac_try) 2>&5
29032   ac_status=$?
29033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034   (exit $ac_status); }; } &&
29035          { ac_try='test -s conftest.$ac_objext'
29036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29037   (eval $ac_try) 2>&5
29038   ac_status=$?
29039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040   (exit $ac_status); }; }; then
29041   ac_cv_func_isnan_in_math_h=yes
29042 else
29043   echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29045
29046 ac_cv_func_isnan_in_math_h=no
29047 fi
29048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29049   ac_ext=c
29050 ac_cpp='$CPP $CPPFLAGS'
29051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29054
29055 fi
29056 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29057 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29058
29059
29060 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29061
29062 cat >>confdefs.h <<\_ACEOF
29063 #define HAVE_ISNAN_IN_MATH_H 1
29064 _ACEOF
29065
29066 fi
29067
29068 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29069 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29070 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29071   echo $ECHO_N "(cached) $ECHO_C" >&6
29072 else
29073   ac_ext=cc
29074 ac_cpp='$CXXCPP $CPPFLAGS'
29075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29078
29079    cat >conftest.$ac_ext <<_ACEOF
29080 /* confdefs.h.  */
29081 _ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h.  */
29085 #include <cmath>
29086 int
29087 main ()
29088 {
29089 float f; isnan(f);
29090   ;
29091   return 0;
29092 }
29093 _ACEOF
29094 rm -f conftest.$ac_objext
29095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29096   (eval $ac_compile) 2>conftest.er1
29097   ac_status=$?
29098   grep -v '^ *+' conftest.er1 >conftest.err
29099   rm -f conftest.er1
29100   cat conftest.err >&5
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); } &&
29103          { ac_try='test -z "$ac_cxx_werror_flag"
29104                          || test ! -s conftest.err'
29105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106   (eval $ac_try) 2>&5
29107   ac_status=$?
29108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109   (exit $ac_status); }; } &&
29110          { ac_try='test -s conftest.$ac_objext'
29111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112   (eval $ac_try) 2>&5
29113   ac_status=$?
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); }; }; then
29116   ac_cv_func_isnan_in_cmath=yes
29117 else
29118   echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29120
29121 ac_cv_func_isnan_in_cmath=no
29122 fi
29123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29124   ac_ext=c
29125 ac_cpp='$CPP $CPPFLAGS'
29126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29129
29130 fi
29131 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29132 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29133
29134 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29135
29136 cat >>confdefs.h <<\_ACEOF
29137 #define HAVE_ISNAN_IN_CMATH 1
29138 _ACEOF
29139
29140 fi
29141
29142 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29143 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29144 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29145   echo $ECHO_N "(cached) $ECHO_C" >&6
29146 else
29147   ac_ext=cc
29148 ac_cpp='$CXXCPP $CPPFLAGS'
29149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29152
29153    cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h.  */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h.  */
29159 #include <cmath>
29160 int
29161 main ()
29162 {
29163 float f; std::isnan(f);
29164   ;
29165   return 0;
29166 }
29167 _ACEOF
29168 rm -f conftest.$ac_objext
29169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29170   (eval $ac_compile) 2>conftest.er1
29171   ac_status=$?
29172   grep -v '^ *+' conftest.er1 >conftest.err
29173   rm -f conftest.er1
29174   cat conftest.err >&5
29175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176   (exit $ac_status); } &&
29177          { ac_try='test -z "$ac_cxx_werror_flag"
29178                          || test ! -s conftest.err'
29179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180   (eval $ac_try) 2>&5
29181   ac_status=$?
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); }; } &&
29184          { ac_try='test -s conftest.$ac_objext'
29185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186   (eval $ac_try) 2>&5
29187   ac_status=$?
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); }; }; then
29190   ac_cv_func_std_isnan_in_cmath=yes
29191 else
29192   echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29194
29195 ac_cv_func_std_isnan_in_cmath=no
29196 fi
29197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29198   ac_ext=c
29199 ac_cpp='$CPP $CPPFLAGS'
29200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29203
29204 fi
29205 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29206 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29207
29208 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29209
29210 cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_STD_ISNAN_IN_CMATH 1
29212 _ACEOF
29213
29214 fi
29215
29216
29217 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29218 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29219 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29220   echo $ECHO_N "(cached) $ECHO_C" >&6
29221 else
29222   ac_ext=cc
29223 ac_cpp='$CXXCPP $CPPFLAGS'
29224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29227
29228    cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234 #include <math.h>
29235 int
29236 main ()
29237 {
29238 float f; isinf(f);
29239   ;
29240   return 0;
29241 }
29242 _ACEOF
29243 rm -f conftest.$ac_objext
29244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29245   (eval $ac_compile) 2>conftest.er1
29246   ac_status=$?
29247   grep -v '^ *+' conftest.er1 >conftest.err
29248   rm -f conftest.er1
29249   cat conftest.err >&5
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); } &&
29252          { ac_try='test -z "$ac_cxx_werror_flag"
29253                          || test ! -s conftest.err'
29254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29255   (eval $ac_try) 2>&5
29256   ac_status=$?
29257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258   (exit $ac_status); }; } &&
29259          { ac_try='test -s conftest.$ac_objext'
29260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29261   (eval $ac_try) 2>&5
29262   ac_status=$?
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); }; }; then
29265   ac_cv_func_isinf_in_math_h=yes
29266 else
29267   echo "$as_me: failed program was:" >&5
29268 sed 's/^/| /' conftest.$ac_ext >&5
29269
29270 ac_cv_func_isinf_in_math_h=no
29271 fi
29272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29273   ac_ext=c
29274 ac_cpp='$CPP $CPPFLAGS'
29275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29278
29279 fi
29280 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29281 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29282
29283 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29284
29285 cat >>confdefs.h <<\_ACEOF
29286 #define HAVE_ISINF_IN_MATH_H 1
29287 _ACEOF
29288
29289 fi
29290
29291 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29292 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29293 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29294   echo $ECHO_N "(cached) $ECHO_C" >&6
29295 else
29296   ac_ext=cc
29297 ac_cpp='$CXXCPP $CPPFLAGS'
29298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29301
29302    cat >conftest.$ac_ext <<_ACEOF
29303 /* confdefs.h.  */
29304 _ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h.  */
29308 #include <cmath>
29309 int
29310 main ()
29311 {
29312 float f; isinf(f);
29313   ;
29314   return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29319   (eval $ac_compile) 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -z "$ac_cxx_werror_flag"
29327                          || test ! -s conftest.err'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; } &&
29333          { ac_try='test -s conftest.$ac_objext'
29334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335   (eval $ac_try) 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; }; then
29339   ac_cv_func_isinf_in_cmath=yes
29340 else
29341   echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29343
29344 ac_cv_func_isinf_in_cmath=no
29345 fi
29346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29347   ac_ext=c
29348 ac_cpp='$CPP $CPPFLAGS'
29349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29352
29353 fi
29354 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29355 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29356
29357 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29358
29359 cat >>confdefs.h <<\_ACEOF
29360 #define HAVE_ISINF_IN_CMATH 1
29361 _ACEOF
29362
29363 fi
29364
29365 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29366 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29367 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29368   echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370   ac_ext=cc
29371 ac_cpp='$CXXCPP $CPPFLAGS'
29372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29375
29376    cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h.  */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h.  */
29382 #include <cmath>
29383 int
29384 main ()
29385 {
29386 float f; std::isinf(f)}
29387   ;
29388   return 0;
29389 }
29390 _ACEOF
29391 rm -f conftest.$ac_objext
29392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29393   (eval $ac_compile) 2>conftest.er1
29394   ac_status=$?
29395   grep -v '^ *+' conftest.er1 >conftest.err
29396   rm -f conftest.er1
29397   cat conftest.err >&5
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); } &&
29400          { ac_try='test -z "$ac_cxx_werror_flag"
29401                          || test ! -s conftest.err'
29402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403   (eval $ac_try) 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; } &&
29407          { ac_try='test -s conftest.$ac_objext'
29408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409   (eval $ac_try) 2>&5
29410   ac_status=$?
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); }; }; then
29413   ac_cv_func_std_isinf_in_cmath=yes
29414 else
29415   echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29417
29418 ac_cv_func_std_isinf_in_cmath=no
29419 fi
29420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29421   ac_ext=c
29422 ac_cpp='$CPP $CPPFLAGS'
29423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29426
29427 fi
29428 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29429 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29430
29431 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29432
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_STD_ISINF_IN_CMATH 1
29435 _ACEOF
29436
29437 fi
29438
29439 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29440 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29441 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29442   echo $ECHO_N "(cached) $ECHO_C" >&6
29443 else
29444   ac_ext=cc
29445 ac_cpp='$CXXCPP $CPPFLAGS'
29446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29449
29450    cat >conftest.$ac_ext <<_ACEOF
29451 /* confdefs.h.  */
29452 _ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h.  */
29456 #include <ieeefp.h>
29457 int
29458 main ()
29459 {
29460 float f; finite(f);
29461   ;
29462   return 0;
29463 }
29464 _ACEOF
29465 rm -f conftest.$ac_objext
29466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29467   (eval $ac_compile) 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } &&
29474          { ac_try='test -z "$ac_cxx_werror_flag"
29475                          || test ! -s conftest.err'
29476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29477   (eval $ac_try) 2>&5
29478   ac_status=$?
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); }; } &&
29481          { ac_try='test -s conftest.$ac_objext'
29482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483   (eval $ac_try) 2>&5
29484   ac_status=$?
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); }; }; then
29487   ac_cv_func_finite_in_ieeefp_h=yes
29488 else
29489   echo "$as_me: failed program was:" >&5
29490 sed 's/^/| /' conftest.$ac_ext >&5
29491
29492 ac_cv_func_finite_in_ieeefp_h=no
29493 fi
29494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29495   ac_ext=c
29496 ac_cpp='$CPP $CPPFLAGS'
29497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29500
29501 fi
29502 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29503 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29504
29505 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29506
29507 cat >>confdefs.h <<\_ACEOF
29508 #define HAVE_FINITE_IN_IEEEFP_H 1
29509 _ACEOF
29510
29511 fi
29512
29513
29514
29515
29516
29517 for ac_header in stdlib.h unistd.h
29518 do
29519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29521   echo "$as_me:$LINENO: checking for $ac_header" >&5
29522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29524   echo $ECHO_N "(cached) $ECHO_C" >&6
29525 fi
29526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29528 else
29529   # Is the header compilable?
29530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29532 cat >conftest.$ac_ext <<_ACEOF
29533 /* confdefs.h.  */
29534 _ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h.  */
29538 $ac_includes_default
29539 #include <$ac_header>
29540 _ACEOF
29541 rm -f conftest.$ac_objext
29542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29543   (eval $ac_compile) 2>conftest.er1
29544   ac_status=$?
29545   grep -v '^ *+' conftest.er1 >conftest.err
29546   rm -f conftest.er1
29547   cat conftest.err >&5
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } &&
29550          { ac_try='test -z "$ac_c_werror_flag"
29551                          || test ! -s conftest.err'
29552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553   (eval $ac_try) 2>&5
29554   ac_status=$?
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); }; } &&
29557          { ac_try='test -s conftest.$ac_objext'
29558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559   (eval $ac_try) 2>&5
29560   ac_status=$?
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); }; }; then
29563   ac_header_compiler=yes
29564 else
29565   echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29567
29568 ac_header_compiler=no
29569 fi
29570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29572 echo "${ECHO_T}$ac_header_compiler" >&6
29573
29574 # Is the header present?
29575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
29584 _ACEOF
29585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29587   ac_status=$?
29588   grep -v '^ *+' conftest.er1 >conftest.err
29589   rm -f conftest.er1
29590   cat conftest.err >&5
29591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592   (exit $ac_status); } >/dev/null; then
29593   if test -s conftest.err; then
29594     ac_cpp_err=$ac_c_preproc_warn_flag
29595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29596   else
29597     ac_cpp_err=
29598   fi
29599 else
29600   ac_cpp_err=yes
29601 fi
29602 if test -z "$ac_cpp_err"; then
29603   ac_header_preproc=yes
29604 else
29605   echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29607
29608   ac_header_preproc=no
29609 fi
29610 rm -f conftest.err conftest.$ac_ext
29611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29612 echo "${ECHO_T}$ac_header_preproc" >&6
29613
29614 # So?  What about this header?
29615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29616   yes:no: )
29617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29621     ac_header_preproc=yes
29622     ;;
29623   no:yes:* )
29624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29636     (
29637       cat <<\_ASBOX
29638 ## ----------------------------------- ##
29639 ## Report this to llvmbugs@cs.uiuc.edu ##
29640 ## ----------------------------------- ##
29641 _ASBOX
29642     ) |
29643       sed "s/^/$as_me: WARNING:     /" >&2
29644     ;;
29645 esac
29646 echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29649   echo $ECHO_N "(cached) $ECHO_C" >&6
29650 else
29651   eval "$as_ac_Header=\$ac_header_preproc"
29652 fi
29653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29655
29656 fi
29657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29658   cat >>confdefs.h <<_ACEOF
29659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29660 _ACEOF
29661
29662 fi
29663
29664 done
29665
29666
29667 for ac_func in getpagesize
29668 do
29669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29670 echo "$as_me:$LINENO: checking for $ac_func" >&5
29671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29672 if eval "test \"\${$as_ac_var+set}\" = set"; then
29673   echo $ECHO_N "(cached) $ECHO_C" >&6
29674 else
29675   cat >conftest.$ac_ext <<_ACEOF
29676 /* confdefs.h.  */
29677 _ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h.  */
29681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29683 #define $ac_func innocuous_$ac_func
29684
29685 /* System header to define __stub macros and hopefully few prototypes,
29686     which can conflict with char $ac_func (); below.
29687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29688     <limits.h> exists even on freestanding compilers.  */
29689
29690 #ifdef __STDC__
29691 # include <limits.h>
29692 #else
29693 # include <assert.h>
29694 #endif
29695
29696 #undef $ac_func
29697
29698 /* Override any gcc2 internal prototype to avoid an error.  */
29699 #ifdef __cplusplus
29700 extern "C"
29701 {
29702 #endif
29703 /* We use char because int might match the return type of a gcc2
29704    builtin and then its argument prototype would still apply.  */
29705 char $ac_func ();
29706 /* The GNU C library defines this for functions which it implements
29707     to always fail with ENOSYS.  Some functions are actually named
29708     something starting with __ and the normal name is an alias.  */
29709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29710 choke me
29711 #else
29712 char (*f) () = $ac_func;
29713 #endif
29714 #ifdef __cplusplus
29715 }
29716 #endif
29717
29718 int
29719 main ()
29720 {
29721 return f != $ac_func;
29722   ;
29723   return 0;
29724 }
29725 _ACEOF
29726 rm -f conftest.$ac_objext conftest$ac_exeext
29727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29728   (eval $ac_link) 2>conftest.er1
29729   ac_status=$?
29730   grep -v '^ *+' conftest.er1 >conftest.err
29731   rm -f conftest.er1
29732   cat conftest.err >&5
29733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734   (exit $ac_status); } &&
29735          { ac_try='test -z "$ac_c_werror_flag"
29736                          || test ! -s conftest.err'
29737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738   (eval $ac_try) 2>&5
29739   ac_status=$?
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); }; } &&
29742          { ac_try='test -s conftest$ac_exeext'
29743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744   (eval $ac_try) 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); }; }; then
29748   eval "$as_ac_var=yes"
29749 else
29750   echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29752
29753 eval "$as_ac_var=no"
29754 fi
29755 rm -f conftest.err conftest.$ac_objext \
29756       conftest$ac_exeext conftest.$ac_ext
29757 fi
29758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29760 if test `eval echo '${'$as_ac_var'}'` = yes; then
29761   cat >>confdefs.h <<_ACEOF
29762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29763 _ACEOF
29764
29765 fi
29766 done
29767
29768 echo "$as_me:$LINENO: checking for working mmap" >&5
29769 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29770 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29771   echo $ECHO_N "(cached) $ECHO_C" >&6
29772 else
29773   if test "$cross_compiling" = yes; then
29774   ac_cv_func_mmap_fixed_mapped=no
29775 else
29776   cat >conftest.$ac_ext <<_ACEOF
29777 /* confdefs.h.  */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h.  */
29782 $ac_includes_default
29783 /* malloc might have been renamed as rpl_malloc. */
29784 #undef malloc
29785
29786 /* Thanks to Mike Haertel and Jim Avera for this test.
29787    Here is a matrix of mmap possibilities:
29788         mmap private not fixed
29789         mmap private fixed at somewhere currently unmapped
29790         mmap private fixed at somewhere already mapped
29791         mmap shared not fixed
29792         mmap shared fixed at somewhere currently unmapped
29793         mmap shared fixed at somewhere already mapped
29794    For private mappings, we should verify that changes cannot be read()
29795    back from the file, nor mmap's back from the file at a different
29796    address.  (There have been systems where private was not correctly
29797    implemented like the infamous i386 svr4.0, and systems where the
29798    VM page cache was not coherent with the file system buffer cache
29799    like early versions of FreeBSD and possibly contemporary NetBSD.)
29800    For shared mappings, we should conversely verify that changes get
29801    propagated back to all the places they're supposed to be.
29802
29803    Grep wants private fixed already mapped.
29804    The main things grep needs to know about mmap are:
29805    * does it exist and is it safe to write into the mmap'd area
29806    * how to use it (BSD variants)  */
29807
29808 #include <fcntl.h>
29809 #include <sys/mman.h>
29810
29811 #if !STDC_HEADERS && !HAVE_STDLIB_H
29812 char *malloc ();
29813 #endif
29814
29815 /* This mess was copied from the GNU getpagesize.h.  */
29816 #if !HAVE_GETPAGESIZE
29817 /* Assume that all systems that can run configure have sys/param.h.  */
29818 # if !HAVE_SYS_PARAM_H
29819 #  define HAVE_SYS_PARAM_H 1
29820 # endif
29821
29822 # ifdef _SC_PAGESIZE
29823 #  define getpagesize() sysconf(_SC_PAGESIZE)
29824 # else /* no _SC_PAGESIZE */
29825 #  if HAVE_SYS_PARAM_H
29826 #   include <sys/param.h>
29827 #   ifdef EXEC_PAGESIZE
29828 #    define getpagesize() EXEC_PAGESIZE
29829 #   else /* no EXEC_PAGESIZE */
29830 #    ifdef NBPG
29831 #     define getpagesize() NBPG * CLSIZE
29832 #     ifndef CLSIZE
29833 #      define CLSIZE 1
29834 #     endif /* no CLSIZE */
29835 #    else /* no NBPG */
29836 #     ifdef NBPC
29837 #      define getpagesize() NBPC
29838 #     else /* no NBPC */
29839 #      ifdef PAGESIZE
29840 #       define getpagesize() PAGESIZE
29841 #      endif /* PAGESIZE */
29842 #     endif /* no NBPC */
29843 #    endif /* no NBPG */
29844 #   endif /* no EXEC_PAGESIZE */
29845 #  else /* no HAVE_SYS_PARAM_H */
29846 #   define getpagesize() 8192   /* punt totally */
29847 #  endif /* no HAVE_SYS_PARAM_H */
29848 # endif /* no _SC_PAGESIZE */
29849
29850 #endif /* no HAVE_GETPAGESIZE */
29851
29852 int
29853 main ()
29854 {
29855   char *data, *data2, *data3;
29856   int i, pagesize;
29857   int fd;
29858
29859   pagesize = getpagesize ();
29860
29861   /* First, make a file with some known garbage in it. */
29862   data = (char *) malloc (pagesize);
29863   if (!data)
29864     exit (1);
29865   for (i = 0; i < pagesize; ++i)
29866     *(data + i) = rand ();
29867   umask (0);
29868   fd = creat ("conftest.mmap", 0600);
29869   if (fd < 0)
29870     exit (1);
29871   if (write (fd, data, pagesize) != pagesize)
29872     exit (1);
29873   close (fd);
29874
29875   /* Next, try to mmap the file at a fixed address which already has
29876      something else allocated at it.  If we can, also make sure that
29877      we see the same garbage.  */
29878   fd = open ("conftest.mmap", O_RDWR);
29879   if (fd < 0)
29880     exit (1);
29881   data2 = (char *) malloc (2 * pagesize);
29882   if (!data2)
29883     exit (1);
29884   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29885   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29886                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29887     exit (1);
29888   for (i = 0; i < pagesize; ++i)
29889     if (*(data + i) != *(data2 + i))
29890       exit (1);
29891
29892   /* Finally, make sure that changes to the mapped area do not
29893      percolate back to the file as seen by read().  (This is a bug on
29894      some variants of i386 svr4.0.)  */
29895   for (i = 0; i < pagesize; ++i)
29896     *(data2 + i) = *(data2 + i) + 1;
29897   data3 = (char *) malloc (pagesize);
29898   if (!data3)
29899     exit (1);
29900   if (read (fd, data3, pagesize) != pagesize)
29901     exit (1);
29902   for (i = 0; i < pagesize; ++i)
29903     if (*(data + i) != *(data3 + i))
29904       exit (1);
29905   close (fd);
29906   exit (0);
29907 }
29908 _ACEOF
29909 rm -f conftest$ac_exeext
29910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29911   (eval $ac_link) 2>&5
29912   ac_status=$?
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29916   (eval $ac_try) 2>&5
29917   ac_status=$?
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); }; }; then
29920   ac_cv_func_mmap_fixed_mapped=yes
29921 else
29922   echo "$as_me: program exited with status $ac_status" >&5
29923 echo "$as_me: failed program was:" >&5
29924 sed 's/^/| /' conftest.$ac_ext >&5
29925
29926 ( exit $ac_status )
29927 ac_cv_func_mmap_fixed_mapped=no
29928 fi
29929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29930 fi
29931 fi
29932 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29933 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29934 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29935
29936 cat >>confdefs.h <<\_ACEOF
29937 #define HAVE_MMAP 1
29938 _ACEOF
29939
29940 fi
29941 rm -f conftest.mmap
29942
29943 echo "$as_me:$LINENO: checking for mmap of files" >&5
29944 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29945 if test "${ac_cv_func_mmap_file+set}" = set; then
29946   echo $ECHO_N "(cached) $ECHO_C" >&6
29947 else
29948    ac_ext=c
29949 ac_cpp='$CPP $CPPFLAGS'
29950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29953
29954   if test "$cross_compiling" = yes; then
29955   ac_cv_func_mmap_file=no
29956 else
29957   cat >conftest.$ac_ext <<_ACEOF
29958
29959     /* confdefs.h.  */
29960 _ACEOF
29961 cat confdefs.h >>conftest.$ac_ext
29962 cat >>conftest.$ac_ext <<_ACEOF
29963 /* end confdefs.h.  */
29964
29965 #include <sys/types.h>
29966 #include <sys/mman.h>
29967 #include <fcntl.h>
29968
29969 int
29970 main ()
29971 {
29972
29973   int fd;
29974   fd = creat ("foo",0777);
29975   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29976   unlink ("foo");
29977   return (fd != (int) MAP_FAILED);
29978   ;
29979   return 0;
29980 }
29981 _ACEOF
29982 rm -f conftest$ac_exeext
29983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29984   (eval $ac_link) 2>&5
29985   ac_status=$?
29986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989   (eval $ac_try) 2>&5
29990   ac_status=$?
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); }; }; then
29993   ac_cv_func_mmap_file=yes
29994 else
29995   echo "$as_me: program exited with status $ac_status" >&5
29996 echo "$as_me: failed program was:" >&5
29997 sed 's/^/| /' conftest.$ac_ext >&5
29998
29999 ( exit $ac_status )
30000 ac_cv_func_mmap_file=no
30001 fi
30002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30003 fi
30004   ac_ext=c
30005 ac_cpp='$CPP $CPPFLAGS'
30006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30009
30010
30011 fi
30012 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30013 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30014 if test "$ac_cv_func_mmap_file" = yes; then
30015
30016 cat >>confdefs.h <<\_ACEOF
30017 #define HAVE_MMAP_FILE
30018 _ACEOF
30019
30020    MMAP_FILE=yes
30021
30022 fi
30023
30024 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30025 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30026 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30027   echo $ECHO_N "(cached) $ECHO_C" >&6
30028 else
30029   if test "$llvm_cv_os_type" = "Interix" ; then
30030    ac_cv_need_dev_zero_for_mmap=yes
30031  else
30032    ac_cv_need_dev_zero_for_mmap=no
30033  fi
30034
30035 fi
30036 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30037 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30038 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30039
30040 cat >>confdefs.h <<\_ACEOF
30041 #define NEED_DEV_ZERO_FOR_MMAP 1
30042 _ACEOF
30043
30044 fi
30045 echo "$as_me:$LINENO: checking for mprotect" >&5
30046 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30047 if test "${ac_cv_func_mprotect+set}" = set; then
30048   echo $ECHO_N "(cached) $ECHO_C" >&6
30049 else
30050   cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h.  */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h.  */
30056 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30058 #define mprotect innocuous_mprotect
30059
30060 /* System header to define __stub macros and hopefully few prototypes,
30061     which can conflict with char mprotect (); below.
30062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30063     <limits.h> exists even on freestanding compilers.  */
30064
30065 #ifdef __STDC__
30066 # include <limits.h>
30067 #else
30068 # include <assert.h>
30069 #endif
30070
30071 #undef mprotect
30072
30073 /* Override any gcc2 internal prototype to avoid an error.  */
30074 #ifdef __cplusplus
30075 extern "C"
30076 {
30077 #endif
30078 /* We use char because int might match the return type of a gcc2
30079    builtin and then its argument prototype would still apply.  */
30080 char mprotect ();
30081 /* The GNU C library defines this for functions which it implements
30082     to always fail with ENOSYS.  Some functions are actually named
30083     something starting with __ and the normal name is an alias.  */
30084 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30085 choke me
30086 #else
30087 char (*f) () = mprotect;
30088 #endif
30089 #ifdef __cplusplus
30090 }
30091 #endif
30092
30093 int
30094 main ()
30095 {
30096 return f != mprotect;
30097   ;
30098   return 0;
30099 }
30100 _ACEOF
30101 rm -f conftest.$ac_objext conftest$ac_exeext
30102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30103   (eval $ac_link) 2>conftest.er1
30104   ac_status=$?
30105   grep -v '^ *+' conftest.er1 >conftest.err
30106   rm -f conftest.er1
30107   cat conftest.err >&5
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); } &&
30110          { ac_try='test -z "$ac_c_werror_flag"
30111                          || test ! -s conftest.err'
30112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113   (eval $ac_try) 2>&5
30114   ac_status=$?
30115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116   (exit $ac_status); }; } &&
30117          { ac_try='test -s conftest$ac_exeext'
30118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30119   (eval $ac_try) 2>&5
30120   ac_status=$?
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); }; }; then
30123   ac_cv_func_mprotect=yes
30124 else
30125   echo "$as_me: failed program was:" >&5
30126 sed 's/^/| /' conftest.$ac_ext >&5
30127
30128 ac_cv_func_mprotect=no
30129 fi
30130 rm -f conftest.err conftest.$ac_objext \
30131       conftest$ac_exeext conftest.$ac_ext
30132 fi
30133 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30134 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30135 if test $ac_cv_func_mprotect = yes; then
30136   :
30137 else
30138   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30139 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30140    { (exit 1); exit 1; }; }
30141 fi
30142
30143
30144 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30145 then
30146   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30147 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30148 fi
30149 if test "$ac_cv_func_mmap_file" = "no"
30150 then
30151   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30152 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30153 fi
30154
30155
30156 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30157 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30158 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30159   echo $ECHO_N "(cached) $ECHO_C" >&6
30160 else
30161   llvm_cv_llvmgcc_sanity="no"
30162 if test -x "$LLVMGCC" ; then
30163   cp /dev/null conftest.c
30164   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30165   if test $? -eq 0 ; then
30166     llvm_cv_llvmgcc_sanity="yes"
30167   fi
30168   rm conftest.c
30169 fi
30170 fi
30171 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30172 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30173
30174 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30175   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30176   LLVMCC1=$llvmcc1path
30177
30178   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30179   LLVMCC1PLUS=$llvmcc1pluspath
30180
30181   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30182   LLVMGCCDIR=$llvmgccdir
30183
30184 fi
30185
30186 SHLIBEXT=$libltdl_cv_shlibext
30187
30188
30189 # Translate the various configuration directories and other basic
30190 # information into substitutions that will end up in Makefile.config.in
30191 # that these configured values can be used by the makefiles
30192 eval LLVM_PREFIX="${prefix}";
30193 eval LLVM_BINDIR="${prefix}/bin";
30194 eval LLVM_LIBDIR="${prefix}/lib";
30195 eval LLVM_DATADIR="${prefix}/share/llvm";
30196 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30197 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30198 eval LLVM_INCLUDEDIR="${prefix}/include";
30199 eval LLVM_INFODIR="${prefix}/info";
30200 eval LLVM_MANDIR="${prefix}/man";
30201 LLVM_CONFIGTIME=`date`
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213 # Place the various directores into the config.h file as #defines so that we
30214 # can know about the installation paths within LLVM.
30215
30216 cat >>confdefs.h <<_ACEOF
30217 #define LLVM_PREFIX "$LLVM_PREFIX"
30218 _ACEOF
30219
30220
30221 cat >>confdefs.h <<_ACEOF
30222 #define LLVM_BINDIR "$LLVM_BINDIR"
30223 _ACEOF
30224
30225
30226 cat >>confdefs.h <<_ACEOF
30227 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30228 _ACEOF
30229
30230
30231 cat >>confdefs.h <<_ACEOF
30232 #define LLVM_DATADIR "$LLVM_DATADIR"
30233 _ACEOF
30234
30235
30236 cat >>confdefs.h <<_ACEOF
30237 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30238 _ACEOF
30239
30240
30241 cat >>confdefs.h <<_ACEOF
30242 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30243 _ACEOF
30244
30245
30246 cat >>confdefs.h <<_ACEOF
30247 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30248 _ACEOF
30249
30250
30251 cat >>confdefs.h <<_ACEOF
30252 #define LLVM_INFODIR "$LLVM_INFODIR"
30253 _ACEOF
30254
30255
30256 cat >>confdefs.h <<_ACEOF
30257 #define LLVM_MANDIR "$LLVM_MANDIR"
30258 _ACEOF
30259
30260
30261 cat >>confdefs.h <<_ACEOF
30262 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30263 _ACEOF
30264
30265
30266
30267           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30268
30269
30270           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30271
30272           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30273
30274           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30275
30276           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30277
30278           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30279
30280
30281           ac_config_files="$ac_config_files Makefile.config"
30282
30283
30284                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30285
30286
30287           ac_config_files="$ac_config_files docs/doxygen.cfg"
30288
30289
30290           ac_config_commands="$ac_config_commands setup"
30291
30292           ac_config_commands="$ac_config_commands Makefile"
30293
30294
30295           ac_config_commands="$ac_config_commands Makefile.common"
30296
30297
30298           ac_config_commands="$ac_config_commands examples/Makefile"
30299
30300
30301           ac_config_commands="$ac_config_commands lib/Makefile"
30302
30303
30304           ac_config_commands="$ac_config_commands runtime/Makefile"
30305
30306
30307           ac_config_commands="$ac_config_commands test/Makefile"
30308
30309
30310           ac_config_commands="$ac_config_commands test/Makefile.tests"
30311
30312
30313           ac_config_commands="$ac_config_commands tools/Makefile"
30314
30315
30316           ac_config_commands="$ac_config_commands utils/Makefile"
30317
30318
30319           ac_config_commands="$ac_config_commands projects/Makefile"
30320
30321
30322
30323 cat >confcache <<\_ACEOF
30324 # This file is a shell script that caches the results of configure
30325 # tests run on this system so they can be shared between configure
30326 # scripts and configure runs, see configure's option --config-cache.
30327 # It is not useful on other systems.  If it contains results you don't
30328 # want to keep, you may remove or edit it.
30329 #
30330 # config.status only pays attention to the cache file if you give it
30331 # the --recheck option to rerun configure.
30332 #
30333 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30335 # following values.
30336
30337 _ACEOF
30338
30339 # The following way of writing the cache mishandles newlines in values,
30340 # but we know of no workaround that is simple, portable, and efficient.
30341 # So, don't put newlines in cache variables' values.
30342 # Ultrix sh set writes to stderr and can't be redirected directly,
30343 # and sets the high bit in the cache file unless we assign to the vars.
30344 {
30345   (set) 2>&1 |
30346     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30347     *ac_space=\ *)
30348       # `set' does not quote correctly, so add quotes (double-quote
30349       # substitution turns \\\\ into \\, and sed turns \\ into \).
30350       sed -n \
30351         "s/'/'\\\\''/g;
30352           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30353       ;;
30354     *)
30355       # `set' quotes correctly as required by POSIX, so do not add quotes.
30356       sed -n \
30357         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30358       ;;
30359     esac;
30360 } |
30361   sed '
30362      t clear
30363      : clear
30364      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30365      t end
30366      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30367      : end' >>confcache
30368 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30369   if test -w $cache_file; then
30370     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30371     cat confcache >$cache_file
30372   else
30373     echo "not updating unwritable cache $cache_file"
30374   fi
30375 fi
30376 rm -f confcache
30377
30378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30379 # Let make expand exec_prefix.
30380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30381
30382 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30383 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30384 # trailing colons and then remove the whole line if VPATH becomes empty
30385 # (actually we leave an empty line to preserve line numbers).
30386 if test "x$srcdir" = x.; then
30387   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30388 s/:*\$(srcdir):*/:/;
30389 s/:*\${srcdir}:*/:/;
30390 s/:*@srcdir@:*/:/;
30391 s/^\([^=]*=[     ]*\):*/\1/;
30392 s/:*$//;
30393 s/^[^=]*=[       ]*$//;
30394 }'
30395 fi
30396
30397 DEFS=-DHAVE_CONFIG_H
30398
30399 ac_libobjs=
30400 ac_ltlibobjs=
30401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30402   # 1. Remove the extension, and $U if already installed.
30403   ac_i=`echo "$ac_i" |
30404          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30405   # 2. Add them.
30406   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30407   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30408 done
30409 LIBOBJS=$ac_libobjs
30410
30411 LTLIBOBJS=$ac_ltlibobjs
30412
30413
30414 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30415   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30416 Usually this means the macro was only invoked conditionally." >&5
30417 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30418 Usually this means the macro was only invoked conditionally." >&2;}
30419    { (exit 1); exit 1; }; }
30420 fi
30421 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30422   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30423 Usually this means the macro was only invoked conditionally." >&5
30424 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30425 Usually this means the macro was only invoked conditionally." >&2;}
30426    { (exit 1); exit 1; }; }
30427 fi
30428
30429 : ${CONFIG_STATUS=./config.status}
30430 ac_clean_files_save=$ac_clean_files
30431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30432 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30433 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30434 cat >$CONFIG_STATUS <<_ACEOF
30435 #! $SHELL
30436 # Generated by $as_me.
30437 # Run this file to recreate the current configuration.
30438 # Compiler output produced by configure, useful for debugging
30439 # configure, is in config.log if it exists.
30440
30441 debug=false
30442 ac_cs_recheck=false
30443 ac_cs_silent=false
30444 SHELL=\${CONFIG_SHELL-$SHELL}
30445 _ACEOF
30446
30447 cat >>$CONFIG_STATUS <<\_ACEOF
30448 ## --------------------- ##
30449 ## M4sh Initialization.  ##
30450 ## --------------------- ##
30451
30452 # Be Bourne compatible
30453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30454   emulate sh
30455   NULLCMD=:
30456   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30457   # is contrary to our usage.  Disable this feature.
30458   alias -g '${1+"$@"}'='"$@"'
30459 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30460   set -o posix
30461 fi
30462 DUALCASE=1; export DUALCASE # for MKS sh
30463
30464 # Support unset when possible.
30465 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30466   as_unset=unset
30467 else
30468   as_unset=false
30469 fi
30470
30471
30472 # Work around bugs in pre-3.0 UWIN ksh.
30473 $as_unset ENV MAIL MAILPATH
30474 PS1='$ '
30475 PS2='> '
30476 PS4='+ '
30477
30478 # NLS nuisances.
30479 for as_var in \
30480   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30481   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30482   LC_TELEPHONE LC_TIME
30483 do
30484   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30485     eval $as_var=C; export $as_var
30486   else
30487     $as_unset $as_var
30488   fi
30489 done
30490
30491 # Required to use basename.
30492 if expr a : '\(a\)' >/dev/null 2>&1; then
30493   as_expr=expr
30494 else
30495   as_expr=false
30496 fi
30497
30498 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30499   as_basename=basename
30500 else
30501   as_basename=false
30502 fi
30503
30504
30505 # Name of the executable.
30506 as_me=`$as_basename "$0" ||
30507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30508          X"$0" : 'X\(//\)$' \| \
30509          X"$0" : 'X\(/\)$' \| \
30510          .     : '\(.\)' 2>/dev/null ||
30511 echo X/"$0" |
30512     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30513           /^X\/\(\/\/\)$/{ s//\1/; q; }
30514           /^X\/\(\/\).*/{ s//\1/; q; }
30515           s/.*/./; q'`
30516
30517
30518 # PATH needs CR, and LINENO needs CR and PATH.
30519 # Avoid depending upon Character Ranges.
30520 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30521 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30522 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30523 as_cr_digits='0123456789'
30524 as_cr_alnum=$as_cr_Letters$as_cr_digits
30525
30526 # The user is always right.
30527 if test "${PATH_SEPARATOR+set}" != set; then
30528   echo "#! /bin/sh" >conf$$.sh
30529   echo  "exit 0"   >>conf$$.sh
30530   chmod +x conf$$.sh
30531   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30532     PATH_SEPARATOR=';'
30533   else
30534     PATH_SEPARATOR=:
30535   fi
30536   rm -f conf$$.sh
30537 fi
30538
30539
30540   as_lineno_1=$LINENO
30541   as_lineno_2=$LINENO
30542   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30543   test "x$as_lineno_1" != "x$as_lineno_2" &&
30544   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30545   # Find who we are.  Look in the path if we contain no path at all
30546   # relative or not.
30547   case $0 in
30548     *[\\/]* ) as_myself=$0 ;;
30549     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30550 for as_dir in $PATH
30551 do
30552   IFS=$as_save_IFS
30553   test -z "$as_dir" && as_dir=.
30554   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30555 done
30556
30557        ;;
30558   esac
30559   # We did not find ourselves, most probably we were run as `sh COMMAND'
30560   # in which case we are not to be found in the path.
30561   if test "x$as_myself" = x; then
30562     as_myself=$0
30563   fi
30564   if test ! -f "$as_myself"; then
30565     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30566 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30567    { (exit 1); exit 1; }; }
30568   fi
30569   case $CONFIG_SHELL in
30570   '')
30571     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30572 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30573 do
30574   IFS=$as_save_IFS
30575   test -z "$as_dir" && as_dir=.
30576   for as_base in sh bash ksh sh5; do
30577          case $as_dir in
30578          /*)
30579            if ("$as_dir/$as_base" -c '
30580   as_lineno_1=$LINENO
30581   as_lineno_2=$LINENO
30582   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30583   test "x$as_lineno_1" != "x$as_lineno_2" &&
30584   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30585              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30586              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30587              CONFIG_SHELL=$as_dir/$as_base
30588              export CONFIG_SHELL
30589              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30590            fi;;
30591          esac
30592        done
30593 done
30594 ;;
30595   esac
30596
30597   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30598   # uniformly replaced by the line number.  The first 'sed' inserts a
30599   # line-number line before each line; the second 'sed' does the real
30600   # work.  The second script uses 'N' to pair each line-number line
30601   # with the numbered line, and appends trailing '-' during
30602   # substitution so that $LINENO is not a special case at line end.
30603   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30604   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30605   sed '=' <$as_myself |
30606     sed '
30607       N
30608       s,$,-,
30609       : loop
30610       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30611       t loop
30612       s,-$,,
30613       s,^['$as_cr_digits']*\n,,
30614     ' >$as_me.lineno &&
30615   chmod +x $as_me.lineno ||
30616     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30617 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30618    { (exit 1); exit 1; }; }
30619
30620   # Don't try to exec as it changes $[0], causing all sort of problems
30621   # (the dirname of $[0] is not the place where we might find the
30622   # original and so on.  Autoconf is especially sensible to this).
30623   . ./$as_me.lineno
30624   # Exit status is that of the last command.
30625   exit
30626 }
30627
30628
30629 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30630   *c*,-n*) ECHO_N= ECHO_C='
30631 ' ECHO_T='      ' ;;
30632   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30633   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30634 esac
30635
30636 if expr a : '\(a\)' >/dev/null 2>&1; then
30637   as_expr=expr
30638 else
30639   as_expr=false
30640 fi
30641
30642 rm -f conf$$ conf$$.exe conf$$.file
30643 echo >conf$$.file
30644 if ln -s conf$$.file conf$$ 2>/dev/null; then
30645   # We could just check for DJGPP; but this test a) works b) is more generic
30646   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30647   if test -f conf$$.exe; then
30648     # Don't use ln at all; we don't have any links
30649     as_ln_s='cp -p'
30650   else
30651     as_ln_s='ln -s'
30652   fi
30653 elif ln conf$$.file conf$$ 2>/dev/null; then
30654   as_ln_s=ln
30655 else
30656   as_ln_s='cp -p'
30657 fi
30658 rm -f conf$$ conf$$.exe conf$$.file
30659
30660 if mkdir -p . 2>/dev/null; then
30661   as_mkdir_p=:
30662 else
30663   test -d ./-p && rmdir ./-p
30664   as_mkdir_p=false
30665 fi
30666
30667 as_executable_p="test -f"
30668
30669 # Sed expression to map a string onto a valid CPP name.
30670 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30671
30672 # Sed expression to map a string onto a valid variable name.
30673 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30674
30675
30676 # IFS
30677 # We need space, tab and new line, in precisely that order.
30678 as_nl='
30679 '
30680 IFS="   $as_nl"
30681
30682 # CDPATH.
30683 $as_unset CDPATH
30684
30685 exec 6>&1
30686
30687 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30688 # report actual input values of CONFIG_FILES etc. instead of their
30689 # values after options handling.  Logging --version etc. is OK.
30690 exec 5>>config.log
30691 {
30692   echo
30693   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30694 ## Running $as_me. ##
30695 _ASBOX
30696 } >&5
30697 cat >&5 <<_CSEOF
30698
30699 This file was extended by llvm $as_me 1.5cvs, which was
30700 generated by GNU Autoconf 2.59.  Invocation command line was
30701
30702   CONFIG_FILES    = $CONFIG_FILES
30703   CONFIG_HEADERS  = $CONFIG_HEADERS
30704   CONFIG_LINKS    = $CONFIG_LINKS
30705   CONFIG_COMMANDS = $CONFIG_COMMANDS
30706   $ $0 $@
30707
30708 _CSEOF
30709 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30710 echo >&5
30711 _ACEOF
30712
30713 # Files that config.status was made for.
30714 if test -n "$ac_config_files"; then
30715   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30716 fi
30717
30718 if test -n "$ac_config_headers"; then
30719   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30720 fi
30721
30722 if test -n "$ac_config_links"; then
30723   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30724 fi
30725
30726 if test -n "$ac_config_commands"; then
30727   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30728 fi
30729
30730 cat >>$CONFIG_STATUS <<\_ACEOF
30731
30732 ac_cs_usage="\
30733 \`$as_me' instantiates files from templates according to the
30734 current configuration.
30735
30736 Usage: $0 [OPTIONS] [FILE]...
30737
30738   -h, --help       print this help, then exit
30739   -V, --version    print version number, then exit
30740   -q, --quiet      do not print progress messages
30741   -d, --debug      don't remove temporary files
30742       --recheck    update $as_me by reconfiguring in the same conditions
30743   --file=FILE[:TEMPLATE]
30744                    instantiate the configuration file FILE
30745   --header=FILE[:TEMPLATE]
30746                    instantiate the configuration header FILE
30747
30748 Configuration files:
30749 $config_files
30750
30751 Configuration headers:
30752 $config_headers
30753
30754 Configuration commands:
30755 $config_commands
30756
30757 Report bugs to <bug-autoconf@gnu.org>."
30758 _ACEOF
30759
30760 cat >>$CONFIG_STATUS <<_ACEOF
30761 ac_cs_version="\\
30762 llvm config.status 1.5cvs
30763 configured by $0, generated by GNU Autoconf 2.59,
30764   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30765
30766 Copyright (C) 2003 Free Software Foundation, Inc.
30767 This config.status script is free software; the Free Software Foundation
30768 gives unlimited permission to copy, distribute and modify it."
30769 srcdir=$srcdir
30770 INSTALL="$INSTALL"
30771 _ACEOF
30772
30773 cat >>$CONFIG_STATUS <<\_ACEOF
30774 # If no file are specified by the user, then we need to provide default
30775 # value.  By we need to know if files were specified by the user.
30776 ac_need_defaults=:
30777 while test $# != 0
30778 do
30779   case $1 in
30780   --*=*)
30781     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30782     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30783     ac_shift=:
30784     ;;
30785   -*)
30786     ac_option=$1
30787     ac_optarg=$2
30788     ac_shift=shift
30789     ;;
30790   *) # This is not an option, so the user has probably given explicit
30791      # arguments.
30792      ac_option=$1
30793      ac_need_defaults=false;;
30794   esac
30795
30796   case $ac_option in
30797   # Handling of the options.
30798 _ACEOF
30799 cat >>$CONFIG_STATUS <<\_ACEOF
30800   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30801     ac_cs_recheck=: ;;
30802   --version | --vers* | -V )
30803     echo "$ac_cs_version"; exit 0 ;;
30804   --he | --h)
30805     # Conflict between --help and --header
30806     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30807 Try \`$0 --help' for more information." >&5
30808 echo "$as_me: error: ambiguous option: $1
30809 Try \`$0 --help' for more information." >&2;}
30810    { (exit 1); exit 1; }; };;
30811   --help | --hel | -h )
30812     echo "$ac_cs_usage"; exit 0 ;;
30813   --debug | --d* | -d )
30814     debug=: ;;
30815   --file | --fil | --fi | --f )
30816     $ac_shift
30817     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30818     ac_need_defaults=false;;
30819   --header | --heade | --head | --hea )
30820     $ac_shift
30821     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30822     ac_need_defaults=false;;
30823   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30824   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30825     ac_cs_silent=: ;;
30826
30827   # This is an error.
30828   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30829 Try \`$0 --help' for more information." >&5
30830 echo "$as_me: error: unrecognized option: $1
30831 Try \`$0 --help' for more information." >&2;}
30832    { (exit 1); exit 1; }; } ;;
30833
30834   *) ac_config_targets="$ac_config_targets $1" ;;
30835
30836   esac
30837   shift
30838 done
30839
30840 ac_configure_extra_args=
30841
30842 if $ac_cs_silent; then
30843   exec 6>/dev/null
30844   ac_configure_extra_args="$ac_configure_extra_args --silent"
30845 fi
30846
30847 _ACEOF
30848 cat >>$CONFIG_STATUS <<_ACEOF
30849 if \$ac_cs_recheck; then
30850   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30851   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30852 fi
30853
30854 _ACEOF
30855
30856 cat >>$CONFIG_STATUS <<_ACEOF
30857 #
30858 # INIT-COMMANDS section.
30859 #
30860
30861 llvm_src="${srcdir}"
30862
30863 _ACEOF
30864
30865
30866
30867 cat >>$CONFIG_STATUS <<\_ACEOF
30868 for ac_config_target in $ac_config_targets
30869 do
30870   case "$ac_config_target" in
30871   # Handling of arguments.
30872   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30873   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30874   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30875   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30876   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30877   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30878   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30879   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30880   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30881   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30882   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30883   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30884   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30885   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30886   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30887   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30888   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30889   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30890   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30891   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30892   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30893   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30894   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30895   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30896 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30897    { (exit 1); exit 1; }; };;
30898   esac
30899 done
30900
30901 # If the user did not use the arguments to specify the items to instantiate,
30902 # then the envvar interface is used.  Set only those that are not.
30903 # We use the long form for the default assignment because of an extremely
30904 # bizarre bug on SunOS 4.1.3.
30905 if $ac_need_defaults; then
30906   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30907   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30908   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30909 fi
30910
30911 # Have a temporary directory for convenience.  Make it in the build tree
30912 # simply because there is no reason to put it here, and in addition,
30913 # creating and moving files from /tmp can sometimes cause problems.
30914 # Create a temporary directory, and hook for its removal unless debugging.
30915 $debug ||
30916 {
30917   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30918   trap '{ (exit 1); exit 1; }' 1 2 13 15
30919 }
30920
30921 # Create a (secure) tmp directory for tmp files.
30922
30923 {
30924   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30925   test -n "$tmp" && test -d "$tmp"
30926 }  ||
30927 {
30928   tmp=./confstat$$-$RANDOM
30929   (umask 077 && mkdir $tmp)
30930 } ||
30931 {
30932    echo "$me: cannot create a temporary directory in ." >&2
30933    { (exit 1); exit 1; }
30934 }
30935
30936 _ACEOF
30937
30938 cat >>$CONFIG_STATUS <<_ACEOF
30939
30940 #
30941 # CONFIG_FILES section.
30942 #
30943
30944 # No need to generate the scripts if there are no CONFIG_FILES.
30945 # This happens for instance when ./config.status config.h
30946 if test -n "\$CONFIG_FILES"; then
30947   # Protect against being on the right side of a sed subst in config.status.
30948   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30949    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30950 s,@SHELL@,$SHELL,;t t
30951 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30952 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30953 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30954 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30955 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30956 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30957 s,@exec_prefix@,$exec_prefix,;t t
30958 s,@prefix@,$prefix,;t t
30959 s,@program_transform_name@,$program_transform_name,;t t
30960 s,@bindir@,$bindir,;t t
30961 s,@sbindir@,$sbindir,;t t
30962 s,@libexecdir@,$libexecdir,;t t
30963 s,@datadir@,$datadir,;t t
30964 s,@sysconfdir@,$sysconfdir,;t t
30965 s,@sharedstatedir@,$sharedstatedir,;t t
30966 s,@localstatedir@,$localstatedir,;t t
30967 s,@libdir@,$libdir,;t t
30968 s,@includedir@,$includedir,;t t
30969 s,@oldincludedir@,$oldincludedir,;t t
30970 s,@infodir@,$infodir,;t t
30971 s,@mandir@,$mandir,;t t
30972 s,@build_alias@,$build_alias,;t t
30973 s,@host_alias@,$host_alias,;t t
30974 s,@target_alias@,$target_alias,;t t
30975 s,@DEFS@,$DEFS,;t t
30976 s,@ECHO_C@,$ECHO_C,;t t
30977 s,@ECHO_N@,$ECHO_N,;t t
30978 s,@ECHO_T@,$ECHO_T,;t t
30979 s,@LIBS@,$LIBS,;t t
30980 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30981 s,@subdirs@,$subdirs,;t t
30982 s,@build@,$build,;t t
30983 s,@build_cpu@,$build_cpu,;t t
30984 s,@build_vendor@,$build_vendor,;t t
30985 s,@build_os@,$build_os,;t t
30986 s,@host@,$host,;t t
30987 s,@host_cpu@,$host_cpu,;t t
30988 s,@host_vendor@,$host_vendor,;t t
30989 s,@host_os@,$host_os,;t t
30990 s,@target@,$target,;t t
30991 s,@target_cpu@,$target_cpu,;t t
30992 s,@target_vendor@,$target_vendor,;t t
30993 s,@target_os@,$target_os,;t t
30994 s,@OS@,$OS,;t t
30995 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30996 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30997 s,@ARCH@,$ARCH,;t t
30998 s,@ENDIAN@,$ENDIAN,;t t
30999 s,@CC@,$CC,;t t
31000 s,@CFLAGS@,$CFLAGS,;t t
31001 s,@LDFLAGS@,$LDFLAGS,;t t
31002 s,@CPPFLAGS@,$CPPFLAGS,;t t
31003 s,@ac_ct_CC@,$ac_ct_CC,;t t
31004 s,@EXEEXT@,$EXEEXT,;t t
31005 s,@OBJEXT@,$OBJEXT,;t t
31006 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31007 s,@JIT@,$JIT,;t t
31008 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31009 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31010 s,@CPP@,$CPP,;t t
31011 s,@CXX@,$CXX,;t t
31012 s,@CXXFLAGS@,$CXXFLAGS,;t t
31013 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31014 s,@LEX@,$LEX,;t t
31015 s,@LEXLIB@,$LEXLIB,;t t
31016 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31017 s,@FLEX@,$FLEX,;t t
31018 s,@YACC@,$YACC,;t t
31019 s,@BISON@,$BISON,;t t
31020 s,@ifGNUmake@,$ifGNUmake,;t t
31021 s,@LN_S@,$LN_S,;t t
31022 s,@CMP@,$CMP,;t t
31023 s,@CP@,$CP,;t t
31024 s,@DATE@,$DATE,;t t
31025 s,@FIND@,$FIND,;t t
31026 s,@GREP@,$GREP,;t t
31027 s,@MKDIR@,$MKDIR,;t t
31028 s,@MV@,$MV,;t t
31029 s,@RANLIB@,$RANLIB,;t t
31030 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31031 s,@RM@,$RM,;t t
31032 s,@SED@,$SED,;t t
31033 s,@TAR@,$TAR,;t t
31034 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31035 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31036 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31037 s,@BZIP2@,$BZIP2,;t t
31038 s,@DOT@,$DOT,;t t
31039 s,@DOXYGEN@,$DOXYGEN,;t t
31040 s,@ETAGS@,$ETAGS,;t t
31041 s,@GROFF@,$GROFF,;t t
31042 s,@GZIP@,$GZIP,;t t
31043 s,@POD2HTML@,$POD2HTML,;t t
31044 s,@POD2MAN@,$POD2MAN,;t t
31045 s,@RUNTEST@,$RUNTEST,;t t
31046 s,@TCLSH@,$TCLSH,;t t
31047 s,@ZIP@,$ZIP,;t t
31048 s,@EGREP@,$EGREP,;t t
31049 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31050 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31051 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31052 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31053 s,@LIBADD_DL@,$LIBADD_DL,;t t
31054 s,@ECHO@,$ECHO,;t t
31055 s,@AR@,$AR,;t t
31056 s,@ac_ct_AR@,$ac_ct_AR,;t t
31057 s,@STRIP@,$STRIP,;t t
31058 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31059 s,@CXXCPP@,$CXXCPP,;t t
31060 s,@F77@,$F77,;t t
31061 s,@FFLAGS@,$FFLAGS,;t t
31062 s,@ac_ct_F77@,$ac_ct_F77,;t t
31063 s,@LIBTOOL@,$LIBTOOL,;t t
31064 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31065 s,@LLVMGCC@,$LLVMGCC,;t t
31066 s,@LLVMGXX@,$LLVMGXX,;t t
31067 s,@ALLOCA@,$ALLOCA,;t t
31068 s,@MMAP_FILE@,$MMAP_FILE,;t t
31069 s,@LLVMCC1@,$LLVMCC1,;t t
31070 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31071 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31072 s,@SHLIBEXT@,$SHLIBEXT,;t t
31073 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31074 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31075 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31076 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31077 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31078 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31079 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31080 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31081 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31082 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31083 s,@LIBOBJS@,$LIBOBJS,;t t
31084 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31085 CEOF
31086
31087 _ACEOF
31088
31089   cat >>$CONFIG_STATUS <<\_ACEOF
31090   # Split the substitutions into bite-sized pieces for seds with
31091   # small command number limits, like on Digital OSF/1 and HP-UX.
31092   ac_max_sed_lines=48
31093   ac_sed_frag=1 # Number of current file.
31094   ac_beg=1 # First line for current file.
31095   ac_end=$ac_max_sed_lines # Line after last line for current file.
31096   ac_more_lines=:
31097   ac_sed_cmds=
31098   while $ac_more_lines; do
31099     if test $ac_beg -gt 1; then
31100       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31101     else
31102       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31103     fi
31104     if test ! -s $tmp/subs.frag; then
31105       ac_more_lines=false
31106     else
31107       # The purpose of the label and of the branching condition is to
31108       # speed up the sed processing (if there are no `@' at all, there
31109       # is no need to browse any of the substitutions).
31110       # These are the two extra sed commands mentioned above.
31111       (echo ':t
31112   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31113       if test -z "$ac_sed_cmds"; then
31114         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31115       else
31116         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31117       fi
31118       ac_sed_frag=`expr $ac_sed_frag + 1`
31119       ac_beg=$ac_end
31120       ac_end=`expr $ac_end + $ac_max_sed_lines`
31121     fi
31122   done
31123   if test -z "$ac_sed_cmds"; then
31124     ac_sed_cmds=cat
31125   fi
31126 fi # test -n "$CONFIG_FILES"
31127
31128 _ACEOF
31129 cat >>$CONFIG_STATUS <<\_ACEOF
31130 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31131   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31132   case $ac_file in
31133   - | *:- | *:-:* ) # input from stdin
31134         cat >$tmp/stdin
31135         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31136         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31137   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31138         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31139   * )   ac_file_in=$ac_file.in ;;
31140   esac
31141
31142   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31143   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31145          X"$ac_file" : 'X\(//\)[^/]' \| \
31146          X"$ac_file" : 'X\(//\)$' \| \
31147          X"$ac_file" : 'X\(/\)' \| \
31148          .     : '\(.\)' 2>/dev/null ||
31149 echo X"$ac_file" |
31150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31151           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31152           /^X\(\/\/\)$/{ s//\1/; q; }
31153           /^X\(\/\).*/{ s//\1/; q; }
31154           s/.*/./; q'`
31155   { if $as_mkdir_p; then
31156     mkdir -p "$ac_dir"
31157   else
31158     as_dir="$ac_dir"
31159     as_dirs=
31160     while test ! -d "$as_dir"; do
31161       as_dirs="$as_dir $as_dirs"
31162       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31164          X"$as_dir" : 'X\(//\)[^/]' \| \
31165          X"$as_dir" : 'X\(//\)$' \| \
31166          X"$as_dir" : 'X\(/\)' \| \
31167          .     : '\(.\)' 2>/dev/null ||
31168 echo X"$as_dir" |
31169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31170           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31171           /^X\(\/\/\)$/{ s//\1/; q; }
31172           /^X\(\/\).*/{ s//\1/; q; }
31173           s/.*/./; q'`
31174     done
31175     test ! -n "$as_dirs" || mkdir $as_dirs
31176   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31178    { (exit 1); exit 1; }; }; }
31179
31180   ac_builddir=.
31181
31182 if test "$ac_dir" != .; then
31183   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31184   # A "../" for each directory in $ac_dir_suffix.
31185   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31186 else
31187   ac_dir_suffix= ac_top_builddir=
31188 fi
31189
31190 case $srcdir in
31191   .)  # No --srcdir option.  We are building in place.
31192     ac_srcdir=.
31193     if test -z "$ac_top_builddir"; then
31194        ac_top_srcdir=.
31195     else
31196        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31197     fi ;;
31198   [\\/]* | ?:[\\/]* )  # Absolute path.
31199     ac_srcdir=$srcdir$ac_dir_suffix;
31200     ac_top_srcdir=$srcdir ;;
31201   *) # Relative path.
31202     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31203     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31204 esac
31205
31206 # Do not use `cd foo && pwd` to compute absolute paths, because
31207 # the directories may not exist.
31208 case `pwd` in
31209 .) ac_abs_builddir="$ac_dir";;
31210 *)
31211   case "$ac_dir" in
31212   .) ac_abs_builddir=`pwd`;;
31213   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31214   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31215   esac;;
31216 esac
31217 case $ac_abs_builddir in
31218 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31219 *)
31220   case ${ac_top_builddir}. in
31221   .) ac_abs_top_builddir=$ac_abs_builddir;;
31222   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31223   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31224   esac;;
31225 esac
31226 case $ac_abs_builddir in
31227 .) ac_abs_srcdir=$ac_srcdir;;
31228 *)
31229   case $ac_srcdir in
31230   .) ac_abs_srcdir=$ac_abs_builddir;;
31231   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31232   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31233   esac;;
31234 esac
31235 case $ac_abs_builddir in
31236 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31237 *)
31238   case $ac_top_srcdir in
31239   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31240   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31241   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31242   esac;;
31243 esac
31244
31245
31246   case $INSTALL in
31247   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31248   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31249   esac
31250
31251   if test x"$ac_file" != x-; then
31252     { echo "$as_me:$LINENO: creating $ac_file" >&5
31253 echo "$as_me: creating $ac_file" >&6;}
31254     rm -f "$ac_file"
31255   fi
31256   # Let's still pretend it is `configure' which instantiates (i.e., don't
31257   # use $as_me), people would be surprised to read:
31258   #    /* config.h.  Generated by config.status.  */
31259   if test x"$ac_file" = x-; then
31260     configure_input=
31261   else
31262     configure_input="$ac_file.  "
31263   fi
31264   configure_input=$configure_input"Generated from `echo $ac_file_in |
31265                                      sed 's,.*/,,'` by configure."
31266
31267   # First look for the input files in the build tree, otherwise in the
31268   # src tree.
31269   ac_file_inputs=`IFS=:
31270     for f in $ac_file_in; do
31271       case $f in
31272       -) echo $tmp/stdin ;;
31273       [\\/$]*)
31274          # Absolute (can't be DOS-style, as IFS=:)
31275          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31276 echo "$as_me: error: cannot find input file: $f" >&2;}
31277    { (exit 1); exit 1; }; }
31278          echo "$f";;
31279       *) # Relative
31280          if test -f "$f"; then
31281            # Build tree
31282            echo "$f"
31283          elif test -f "$srcdir/$f"; then
31284            # Source tree
31285            echo "$srcdir/$f"
31286          else
31287            # /dev/null tree
31288            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31289 echo "$as_me: error: cannot find input file: $f" >&2;}
31290    { (exit 1); exit 1; }; }
31291          fi;;
31292       esac
31293     done` || { (exit 1); exit 1; }
31294 _ACEOF
31295 cat >>$CONFIG_STATUS <<_ACEOF
31296   sed "$ac_vpsub
31297 $extrasub
31298 _ACEOF
31299 cat >>$CONFIG_STATUS <<\_ACEOF
31300 :t
31301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31302 s,@configure_input@,$configure_input,;t t
31303 s,@srcdir@,$ac_srcdir,;t t
31304 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31305 s,@top_srcdir@,$ac_top_srcdir,;t t
31306 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31307 s,@builddir@,$ac_builddir,;t t
31308 s,@abs_builddir@,$ac_abs_builddir,;t t
31309 s,@top_builddir@,$ac_top_builddir,;t t
31310 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31311 s,@INSTALL@,$ac_INSTALL,;t t
31312 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31313   rm -f $tmp/stdin
31314   if test x"$ac_file" != x-; then
31315     mv $tmp/out $ac_file
31316   else
31317     cat $tmp/out
31318     rm -f $tmp/out
31319   fi
31320
31321 done
31322 _ACEOF
31323 cat >>$CONFIG_STATUS <<\_ACEOF
31324
31325 #
31326 # CONFIG_HEADER section.
31327 #
31328
31329 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31330 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31331 #
31332 # ac_d sets the value in "#define NAME VALUE" lines.
31333 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31334 ac_dB='[         ].*$,\1#\2'
31335 ac_dC=' '
31336 ac_dD=',;t'
31337 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31338 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31339 ac_uB='$,\1#\2define\3'
31340 ac_uC=' '
31341 ac_uD=',;t'
31342
31343 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31344   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31345   case $ac_file in
31346   - | *:- | *:-:* ) # input from stdin
31347         cat >$tmp/stdin
31348         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31349         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31350   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31351         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31352   * )   ac_file_in=$ac_file.in ;;
31353   esac
31354
31355   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31356 echo "$as_me: creating $ac_file" >&6;}
31357
31358   # First look for the input files in the build tree, otherwise in the
31359   # src tree.
31360   ac_file_inputs=`IFS=:
31361     for f in $ac_file_in; do
31362       case $f in
31363       -) echo $tmp/stdin ;;
31364       [\\/$]*)
31365          # Absolute (can't be DOS-style, as IFS=:)
31366          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31367 echo "$as_me: error: cannot find input file: $f" >&2;}
31368    { (exit 1); exit 1; }; }
31369          # Do quote $f, to prevent DOS paths from being IFS'd.
31370          echo "$f";;
31371       *) # Relative
31372          if test -f "$f"; then
31373            # Build tree
31374            echo "$f"
31375          elif test -f "$srcdir/$f"; then
31376            # Source tree
31377            echo "$srcdir/$f"
31378          else
31379            # /dev/null tree
31380            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31381 echo "$as_me: error: cannot find input file: $f" >&2;}
31382    { (exit 1); exit 1; }; }
31383          fi;;
31384       esac
31385     done` || { (exit 1); exit 1; }
31386   # Remove the trailing spaces.
31387   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31388
31389 _ACEOF
31390
31391 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31392 # `conftest.undefs', that substitutes the proper values into
31393 # config.h.in to produce config.h.  The first handles `#define'
31394 # templates, and the second `#undef' templates.
31395 # And first: Protect against being on the right side of a sed subst in
31396 # config.status.  Protect against being in an unquoted here document
31397 # in config.status.
31398 rm -f conftest.defines conftest.undefs
31399 # Using a here document instead of a string reduces the quoting nightmare.
31400 # Putting comments in sed scripts is not portable.
31401 #
31402 # `end' is used to avoid that the second main sed command (meant for
31403 # 0-ary CPP macros) applies to n-ary macro definitions.
31404 # See the Autoconf documentation for `clear'.
31405 cat >confdef2sed.sed <<\_ACEOF
31406 s/[\\&,]/\\&/g
31407 s,[\\$`],\\&,g
31408 t clear
31409 : clear
31410 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31411 t end
31412 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31413 : end
31414 _ACEOF
31415 # If some macros were called several times there might be several times
31416 # the same #defines, which is useless.  Nevertheless, we may not want to
31417 # sort them, since we want the *last* AC-DEFINE to be honored.
31418 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31419 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31420 rm -f confdef2sed.sed
31421
31422 # This sed command replaces #undef with comments.  This is necessary, for
31423 # example, in the case of _POSIX_SOURCE, which is predefined and required
31424 # on some systems where configure will not decide to define it.
31425 cat >>conftest.undefs <<\_ACEOF
31426 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31427 _ACEOF
31428
31429 # Break up conftest.defines because some shells have a limit on the size
31430 # of here documents, and old seds have small limits too (100 cmds).
31431 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31432 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31433 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31434 echo '  :' >>$CONFIG_STATUS
31435 rm -f conftest.tail
31436 while grep . conftest.defines >/dev/null
31437 do
31438   # Write a limited-size here document to $tmp/defines.sed.
31439   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31440   # Speed up: don't consider the non `#define' lines.
31441   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31442   # Work around the forget-to-reset-the-flag bug.
31443   echo 't clr' >>$CONFIG_STATUS
31444   echo ': clr' >>$CONFIG_STATUS
31445   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31446   echo 'CEOF
31447   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31448   rm -f $tmp/in
31449   mv $tmp/out $tmp/in
31450 ' >>$CONFIG_STATUS
31451   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31452   rm -f conftest.defines
31453   mv conftest.tail conftest.defines
31454 done
31455 rm -f conftest.defines
31456 echo '  fi # grep' >>$CONFIG_STATUS
31457 echo >>$CONFIG_STATUS
31458
31459 # Break up conftest.undefs because some shells have a limit on the size
31460 # of here documents, and old seds have small limits too (100 cmds).
31461 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31462 rm -f conftest.tail
31463 while grep . conftest.undefs >/dev/null
31464 do
31465   # Write a limited-size here document to $tmp/undefs.sed.
31466   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31467   # Speed up: don't consider the non `#undef'
31468   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31469   # Work around the forget-to-reset-the-flag bug.
31470   echo 't clr' >>$CONFIG_STATUS
31471   echo ': clr' >>$CONFIG_STATUS
31472   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31473   echo 'CEOF
31474   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31475   rm -f $tmp/in
31476   mv $tmp/out $tmp/in
31477 ' >>$CONFIG_STATUS
31478   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31479   rm -f conftest.undefs
31480   mv conftest.tail conftest.undefs
31481 done
31482 rm -f conftest.undefs
31483
31484 cat >>$CONFIG_STATUS <<\_ACEOF
31485   # Let's still pretend it is `configure' which instantiates (i.e., don't
31486   # use $as_me), people would be surprised to read:
31487   #    /* config.h.  Generated by config.status.  */
31488   if test x"$ac_file" = x-; then
31489     echo "/* Generated by configure.  */" >$tmp/config.h
31490   else
31491     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31492   fi
31493   cat $tmp/in >>$tmp/config.h
31494   rm -f $tmp/in
31495   if test x"$ac_file" != x-; then
31496     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31497       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31498 echo "$as_me: $ac_file is unchanged" >&6;}
31499     else
31500       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31501 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31502          X"$ac_file" : 'X\(//\)[^/]' \| \
31503          X"$ac_file" : 'X\(//\)$' \| \
31504          X"$ac_file" : 'X\(/\)' \| \
31505          .     : '\(.\)' 2>/dev/null ||
31506 echo X"$ac_file" |
31507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31509           /^X\(\/\/\)$/{ s//\1/; q; }
31510           /^X\(\/\).*/{ s//\1/; q; }
31511           s/.*/./; q'`
31512       { if $as_mkdir_p; then
31513     mkdir -p "$ac_dir"
31514   else
31515     as_dir="$ac_dir"
31516     as_dirs=
31517     while test ! -d "$as_dir"; do
31518       as_dirs="$as_dir $as_dirs"
31519       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31521          X"$as_dir" : 'X\(//\)[^/]' \| \
31522          X"$as_dir" : 'X\(//\)$' \| \
31523          X"$as_dir" : 'X\(/\)' \| \
31524          .     : '\(.\)' 2>/dev/null ||
31525 echo X"$as_dir" |
31526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31528           /^X\(\/\/\)$/{ s//\1/; q; }
31529           /^X\(\/\).*/{ s//\1/; q; }
31530           s/.*/./; q'`
31531     done
31532     test ! -n "$as_dirs" || mkdir $as_dirs
31533   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31535    { (exit 1); exit 1; }; }; }
31536
31537       rm -f $ac_file
31538       mv $tmp/config.h $ac_file
31539     fi
31540   else
31541     cat $tmp/config.h
31542     rm -f $tmp/config.h
31543   fi
31544 done
31545 _ACEOF
31546 cat >>$CONFIG_STATUS <<\_ACEOF
31547
31548 #
31549 # CONFIG_COMMANDS section.
31550 #
31551 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31552   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31553   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31554   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31555 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31556          X"$ac_dest" : 'X\(//\)[^/]' \| \
31557          X"$ac_dest" : 'X\(//\)$' \| \
31558          X"$ac_dest" : 'X\(/\)' \| \
31559          .     : '\(.\)' 2>/dev/null ||
31560 echo X"$ac_dest" |
31561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31562           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31563           /^X\(\/\/\)$/{ s//\1/; q; }
31564           /^X\(\/\).*/{ s//\1/; q; }
31565           s/.*/./; q'`
31566   { if $as_mkdir_p; then
31567     mkdir -p "$ac_dir"
31568   else
31569     as_dir="$ac_dir"
31570     as_dirs=
31571     while test ! -d "$as_dir"; do
31572       as_dirs="$as_dir $as_dirs"
31573       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31575          X"$as_dir" : 'X\(//\)[^/]' \| \
31576          X"$as_dir" : 'X\(//\)$' \| \
31577          X"$as_dir" : 'X\(/\)' \| \
31578          .     : '\(.\)' 2>/dev/null ||
31579 echo X"$as_dir" |
31580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31582           /^X\(\/\/\)$/{ s//\1/; q; }
31583           /^X\(\/\).*/{ s//\1/; q; }
31584           s/.*/./; q'`
31585     done
31586     test ! -n "$as_dirs" || mkdir $as_dirs
31587   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31589    { (exit 1); exit 1; }; }; }
31590
31591   ac_builddir=.
31592
31593 if test "$ac_dir" != .; then
31594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31595   # A "../" for each directory in $ac_dir_suffix.
31596   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31597 else
31598   ac_dir_suffix= ac_top_builddir=
31599 fi
31600
31601 case $srcdir in
31602   .)  # No --srcdir option.  We are building in place.
31603     ac_srcdir=.
31604     if test -z "$ac_top_builddir"; then
31605        ac_top_srcdir=.
31606     else
31607        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31608     fi ;;
31609   [\\/]* | ?:[\\/]* )  # Absolute path.
31610     ac_srcdir=$srcdir$ac_dir_suffix;
31611     ac_top_srcdir=$srcdir ;;
31612   *) # Relative path.
31613     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31614     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31615 esac
31616
31617 # Do not use `cd foo && pwd` to compute absolute paths, because
31618 # the directories may not exist.
31619 case `pwd` in
31620 .) ac_abs_builddir="$ac_dir";;
31621 *)
31622   case "$ac_dir" in
31623   .) ac_abs_builddir=`pwd`;;
31624   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31625   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31626   esac;;
31627 esac
31628 case $ac_abs_builddir in
31629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31630 *)
31631   case ${ac_top_builddir}. in
31632   .) ac_abs_top_builddir=$ac_abs_builddir;;
31633   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31634   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31635   esac;;
31636 esac
31637 case $ac_abs_builddir in
31638 .) ac_abs_srcdir=$ac_srcdir;;
31639 *)
31640   case $ac_srcdir in
31641   .) ac_abs_srcdir=$ac_abs_builddir;;
31642   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31643   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31644   esac;;
31645 esac
31646 case $ac_abs_builddir in
31647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31648 *)
31649   case $ac_top_srcdir in
31650   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31651   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31652   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31653   esac;;
31654 esac
31655
31656
31657   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31658 echo "$as_me: executing $ac_dest commands" >&6;}
31659   case $ac_dest in
31660     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31661    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31662     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31663    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31664     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31665    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31666     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31667    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31668     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31669    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31670     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31671    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31672     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31673    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31674     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31675    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31676     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31677    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31678     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31679    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31680   esac
31681 done
31682 _ACEOF
31683
31684 cat >>$CONFIG_STATUS <<\_ACEOF
31685
31686 { (exit 0); exit 0; }
31687 _ACEOF
31688 chmod +x $CONFIG_STATUS
31689 ac_clean_files=$ac_clean_files_save
31690
31691
31692 # configure is writing to config.log, and then calls config.status.
31693 # config.status does its own redirection, appending to config.log.
31694 # Unfortunately, on DOS this fails, as config.log is still kept open
31695 # by configure, so config.status won't be able to write to it; its
31696 # output is simply discarded.  So we exec the FD to /dev/null,
31697 # effectively closing config.log, so it can be properly (re)opened and
31698 # appended to by config.status.  When coming back to configure, we
31699 # need to make the FD available again.
31700 if test "$no_create" != yes; then
31701   ac_cs_success=:
31702   ac_config_status_args=
31703   test "$silent" = yes &&
31704     ac_config_status_args="$ac_config_status_args --quiet"
31705   exec 5>/dev/null
31706   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31707   exec 5>>config.log
31708   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31709   # would make configure fail if this is the last instruction.
31710   $ac_cs_success || { (exit 1); exit 1; }
31711 fi
31712
31713 #
31714 # CONFIG_SUBDIRS section.
31715 #
31716 if test "$no_recursion" != yes; then
31717
31718   # Remove --cache-file and --srcdir arguments so they do not pile up.
31719   ac_sub_configure_args=
31720   ac_prev=
31721   for ac_arg in $ac_configure_args; do
31722     if test -n "$ac_prev"; then
31723       ac_prev=
31724       continue
31725     fi
31726     case $ac_arg in
31727     -cache-file | --cache-file | --cache-fil | --cache-fi \
31728     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31729       ac_prev=cache_file ;;
31730     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31731     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31732     | --c=*)
31733       ;;
31734     --config-cache | -C)
31735       ;;
31736     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31737       ac_prev=srcdir ;;
31738     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31739       ;;
31740     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31741       ac_prev=prefix ;;
31742     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31743       ;;
31744     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31745     esac
31746   done
31747
31748   # Always prepend --prefix to ensure using the same prefix
31749   # in subdir configurations.
31750   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31751
31752   ac_popdir=`pwd`
31753   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31754
31755     # Do not complain, so a configure script can configure whichever
31756     # parts of a large source tree are present.
31757     test -d $srcdir/$ac_dir || continue
31758
31759     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31760 echo "$as_me: configuring in $ac_dir" >&6;}
31761     { if $as_mkdir_p; then
31762     mkdir -p "$ac_dir"
31763   else
31764     as_dir="$ac_dir"
31765     as_dirs=
31766     while test ! -d "$as_dir"; do
31767       as_dirs="$as_dir $as_dirs"
31768       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31770          X"$as_dir" : 'X\(//\)[^/]' \| \
31771          X"$as_dir" : 'X\(//\)$' \| \
31772          X"$as_dir" : 'X\(/\)' \| \
31773          .     : '\(.\)' 2>/dev/null ||
31774 echo X"$as_dir" |
31775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31776           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31777           /^X\(\/\/\)$/{ s//\1/; q; }
31778           /^X\(\/\).*/{ s//\1/; q; }
31779           s/.*/./; q'`
31780     done
31781     test ! -n "$as_dirs" || mkdir $as_dirs
31782   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31783 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31784    { (exit 1); exit 1; }; }; }
31785
31786     ac_builddir=.
31787
31788 if test "$ac_dir" != .; then
31789   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31790   # A "../" for each directory in $ac_dir_suffix.
31791   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31792 else
31793   ac_dir_suffix= ac_top_builddir=
31794 fi
31795
31796 case $srcdir in
31797   .)  # No --srcdir option.  We are building in place.
31798     ac_srcdir=.
31799     if test -z "$ac_top_builddir"; then
31800        ac_top_srcdir=.
31801     else
31802        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31803     fi ;;
31804   [\\/]* | ?:[\\/]* )  # Absolute path.
31805     ac_srcdir=$srcdir$ac_dir_suffix;
31806     ac_top_srcdir=$srcdir ;;
31807   *) # Relative path.
31808     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31809     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31810 esac
31811
31812 # Do not use `cd foo && pwd` to compute absolute paths, because
31813 # the directories may not exist.
31814 case `pwd` in
31815 .) ac_abs_builddir="$ac_dir";;
31816 *)
31817   case "$ac_dir" in
31818   .) ac_abs_builddir=`pwd`;;
31819   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31820   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31821   esac;;
31822 esac
31823 case $ac_abs_builddir in
31824 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31825 *)
31826   case ${ac_top_builddir}. in
31827   .) ac_abs_top_builddir=$ac_abs_builddir;;
31828   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31829   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31830   esac;;
31831 esac
31832 case $ac_abs_builddir in
31833 .) ac_abs_srcdir=$ac_srcdir;;
31834 *)
31835   case $ac_srcdir in
31836   .) ac_abs_srcdir=$ac_abs_builddir;;
31837   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31838   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31839   esac;;
31840 esac
31841 case $ac_abs_builddir in
31842 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31843 *)
31844   case $ac_top_srcdir in
31845   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31846   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31847   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31848   esac;;
31849 esac
31850
31851
31852     cd $ac_dir
31853
31854     # Check for guested configure; otherwise get Cygnus style configure.
31855     if test -f $ac_srcdir/configure.gnu; then
31856       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31857     elif test -f $ac_srcdir/configure; then
31858       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31859     elif test -f $ac_srcdir/configure.in; then
31860       ac_sub_configure=$ac_configure
31861     else
31862       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31863 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31864       ac_sub_configure=
31865     fi
31866
31867     # The recursion is here.
31868     if test -n "$ac_sub_configure"; then
31869       # Make the cache file name correct relative to the subdirectory.
31870       case $cache_file in
31871       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31872       *) # Relative path.
31873         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31874       esac
31875
31876       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31877 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31878       # The eval makes quoting arguments work.
31879       eval $ac_sub_configure $ac_sub_configure_args \
31880            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31881         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31882 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31883    { (exit 1); exit 1; }; }
31884     fi
31885
31886     cd $ac_popdir
31887   done
31888 fi
31889
31890
31891 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31892  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31893 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31894  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31895 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31896  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31897 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31898  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31899 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31900  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31901 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31902 fi