902d5251839bf95546c9a946f37e879ee247db78
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # $LLVM_COPYRIGHT
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP LLVMGCC LLVMGXX MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.4:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039   --enable-doxygen        Build doxygen documentation (default is NO)
1040   --enable-ltdl-install   install libltdl
1041   --enable-shared[=PKGS]
1042                           build shared libraries [default=yes]
1043   --enable-static[=PKGS]
1044                           build static libraries [default=yes]
1045   --enable-fast-install[=PKGS]
1046                           optimize for fast installation [default=yes]
1047   --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049 Optional Packages:
1050   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052   --with-tclinclude       directory where tcl headers are
1053   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1054   --with-pic              try to use only PIC/non-PIC objects [default=use
1055                           both]
1056   --with-tags[=TAGS]
1057                           include additional configurations [automatic]
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CPP         C preprocessor
1067   CXX         C++ compiler command
1068   CXXFLAGS    C++ compiler flags
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 Report bugs to <llvmbugs@cs.uiuc.edu>.
1077 _ACEOF
1078 fi
1079
1080 if test "$ac_init_help" = "recursive"; then
1081   # If there are subdirs, report their specific --help.
1082   ac_popdir=`pwd`
1083   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084     test -d $ac_dir || continue
1085     ac_builddir=.
1086
1087 if test "$ac_dir" != .; then
1088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089   # A "../" for each directory in $ac_dir_suffix.
1090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 else
1092   ac_dir_suffix= ac_top_builddir=
1093 fi
1094
1095 case $srcdir in
1096   .)  # No --srcdir option.  We are building in place.
1097     ac_srcdir=.
1098     if test -z "$ac_top_builddir"; then
1099        ac_top_srcdir=.
1100     else
1101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102     fi ;;
1103   [\\/]* | ?:[\\/]* )  # Absolute path.
1104     ac_srcdir=$srcdir$ac_dir_suffix;
1105     ac_top_srcdir=$srcdir ;;
1106   *) # Relative path.
1107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 esac
1110
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1113 case `pwd` in
1114 .) ac_abs_builddir="$ac_dir";;
1115 *)
1116   case "$ac_dir" in
1117   .) ac_abs_builddir=`pwd`;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *)
1125   case ${ac_top_builddir}. in
1126   .) ac_abs_top_builddir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1133 *)
1134   case $ac_srcdir in
1135   .) ac_abs_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *)
1143   case $ac_top_srcdir in
1144   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147   esac;;
1148 esac
1149
1150     cd $ac_dir
1151     # Check for guested configure; otherwise get Cygnus style configure.
1152     if test -f $ac_srcdir/configure.gnu; then
1153       echo
1154       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1155     elif test -f $ac_srcdir/configure; then
1156       echo
1157       $SHELL $ac_srcdir/configure  --help=recursive
1158     elif test -f $ac_srcdir/configure.ac ||
1159            test -f $ac_srcdir/configure.in; then
1160       echo
1161       $ac_configure --help
1162     else
1163       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164     fi
1165     cd $ac_popdir
1166   done
1167 fi
1168
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1171   cat <<\_ACEOF
1172 llvm configure 1.4
1173 generated by GNU Autoconf 2.59
1174
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1178
1179 $LLVM_COPYRIGHT
1180 _ACEOF
1181   exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1187
1188 It was created by llvm $as_me 1.4, which was
1189 generated by GNU Autoconf 2.59.  Invocation command line was
1190
1191   $ $0 $@
1192
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1199
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208
1209 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1210 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1213 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1214 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1215 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216
1217 _ASUNAME
1218
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222   IFS=$as_save_IFS
1223   test -z "$as_dir" && as_dir=.
1224   echo "PATH: $as_dir"
1225 done
1226
1227 } >&5
1228
1229 cat >&5 <<_ACEOF
1230
1231
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1235
1236 _ACEOF
1237
1238
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251   for ac_arg
1252   do
1253     case $ac_arg in
1254     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256     | -silent | --silent | --silen | --sile | --sil)
1257       continue ;;
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     esac
1261     case $ac_pass in
1262     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263     2)
1264       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265       if test $ac_must_keep_next = true; then
1266         ac_must_keep_next=false # Got value, back to normal.
1267       else
1268         case $ac_arg in
1269           *=* | --config-cache | -C | -disable-* | --disable-* \
1270           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272           | -with-* | --with-* | -without-* | --without-* | --x)
1273             case "$ac_configure_args0 " in
1274               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275             esac
1276             ;;
1277           -* ) ac_must_keep_next=true ;;
1278         esac
1279       fi
1280       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281       # Get rid of the leading space.
1282       ac_sep=" "
1283       ;;
1284     esac
1285   done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log.  We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296   # Save into config.log some information that might help in debugging.
1297   {
1298     echo
1299
1300     cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305     echo
1306     # The following way of writing the cache mishandles newlines in values,
1307 {
1308   (set) 2>&1 |
1309     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310     *ac_space=\ *)
1311       sed -n \
1312         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314       ;;
1315     *)
1316       sed -n \
1317         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318       ;;
1319     esac;
1320 }
1321     echo
1322
1323     cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328     echo
1329     for ac_var in $ac_subst_vars
1330     do
1331       eval ac_val=$`echo $ac_var`
1332       echo "$ac_var='"'"'$ac_val'"'"'"
1333     done | sort
1334     echo
1335
1336     if test -n "$ac_subst_files"; then
1337       cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342       echo
1343       for ac_var in $ac_subst_files
1344       do
1345         eval ac_val=$`echo $ac_var`
1346         echo "$ac_var='"'"'$ac_val'"'"'"
1347       done | sort
1348       echo
1349     fi
1350
1351     if test -s confdefs.h; then
1352       cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357       echo
1358       sed "/^$/d" confdefs.h | sort
1359       echo
1360     fi
1361     test "$ac_signal" != 0 &&
1362       echo "$as_me: caught signal $ac_signal"
1363     echo "$as_me: exit $exit_status"
1364   } >&5
1365   rm -f core *.core &&
1366   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367     exit $exit_status
1368      ' 0
1369 for ac_signal in 1 2 13 15; do
1370   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1373
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1378
1379 # Predefined preprocessor variables.
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1404
1405
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409   if test "x$prefix" != xNONE; then
1410     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411   else
1412     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413   fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416   if test -r "$ac_site_file"; then
1417     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419     sed 's/^/| /' "$ac_site_file" >&5
1420     . "$ac_site_file"
1421   fi
1422 done
1423
1424 if test -r "$cache_file"; then
1425   # Some versions of bash will fail to source /dev/null (special
1426   # files actually), so we avoid doing that.
1427   if test -f "$cache_file"; then
1428     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430     case $cache_file in
1431       [\\/]* | ?:[\\/]* ) . $cache_file;;
1432       *)                      . ./$cache_file;;
1433     esac
1434   fi
1435 else
1436   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438   >$cache_file
1439 fi
1440
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447   eval ac_new_set=\$ac_env_${ac_var}_set
1448   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449   eval ac_new_val="\$ac_env_${ac_var}_value"
1450   case $ac_old_set,$ac_new_set in
1451     set,)
1452       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454       ac_cache_corrupted=: ;;
1455     ,set)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,);;
1460     *)
1461       if test "x$ac_old_val" != "x$ac_new_val"; then
1462         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1465 echo "$as_me:   former value:  $ac_old_val" >&2;}
1466         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1467 echo "$as_me:   current value: $ac_new_val" >&2;}
1468         ac_cache_corrupted=:
1469       fi;;
1470   esac
1471   # Pass precious variables to config.status.
1472   if test "$ac_new_set" = set; then
1473     case $ac_new_val in
1474     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476     *) ac_arg=$ac_var=$ac_new_val ;;
1477     esac
1478     case " $ac_configure_args " in
1479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1480       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481     esac
1482   fi
1483 done
1484 if $ac_cache_corrupted; then
1485   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489    { (exit 1); exit 1; }; }
1490 fi
1491
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1526
1527
1528
1529
1530
1531
1532
1533 ac_aux_dir=
1534 for ac_dir in autoconf $srcdir/autoconf; do
1535   if test -f $ac_dir/install-sh; then
1536     ac_aux_dir=$ac_dir
1537     ac_install_sh="$ac_aux_dir/install-sh -c"
1538     break
1539   elif test -f $ac_dir/install.sh; then
1540     ac_aux_dir=$ac_dir
1541     ac_install_sh="$ac_aux_dir/install.sh -c"
1542     break
1543   elif test -f $ac_dir/shtool; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/shtool install -c"
1546     break
1547   fi
1548 done
1549 if test -z "$ac_aux_dir"; then
1550   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1552    { (exit 1); exit 1; }; }
1553 fi
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557
1558
1559 if test ${srcdir} != "." ; then
1560   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1562 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563    { (exit 1); exit 1; }; }
1564   fi
1565 fi
1566
1567 for i in `ls ${srcdir}/projects`
1568 do
1569   if test -d ${srcdir}/projects/${i} ; then
1570     case ${i} in
1571       "CVS") ;;
1572       "sample")
1573
1574 subdirs="$subdirs projects/sample"
1575     ;;
1576       "Stacker")
1577
1578 subdirs="$subdirs projects/Stacker"
1579    ;;
1580       "llvm-test")
1581
1582 subdirs="$subdirs projects/llvm-test"
1583  ;;
1584       "llvm-reopt")
1585
1586 subdirs="$subdirs projects/llvm-reopt"
1587 ;;
1588       "llvm-gcc")
1589
1590 subdirs="$subdirs projects/llvm-gcc"
1591   ;;
1592       "Java")
1593
1594 subdirs="$subdirs projects/Java"
1595       ;;
1596       "llvm-tv")
1597
1598 subdirs="$subdirs projects/llvm-tv"
1599    ;;
1600       "llvm-fefw")
1601
1602 subdirs="$subdirs projects/llvm-fefw"
1603  ;;
1604       "poolalloc")
1605
1606 subdirs="$subdirs projects/poolalloc"
1607  ;;
1608       *)
1609         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1611         ;;
1612     esac
1613   fi
1614 done
1615
1616
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630   ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634    { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638    { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656   ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660    { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 echo "$as_me:$LINENO: checking target system type" >&5
1672 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673 if test "${ac_cv_target+set}" = set; then
1674   echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676   ac_cv_target_alias=$target_alias
1677 test "x$ac_cv_target_alias" = "x" &&
1678   ac_cv_target_alias=$ac_cv_host_alias
1679 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682    { (exit 1); exit 1; }; }
1683
1684 fi
1685 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686 echo "${ECHO_T}$ac_cv_target" >&6
1687 target=$ac_cv_target
1688 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691
1692
1693 # The aliases save the names the user supplied, while $host etc.
1694 # will get canonicalized.
1695 test -n "$target_alias" &&
1696   test "$program_prefix$program_suffix$program_transform_name" = \
1697     NONENONEs,x,x, &&
1698   program_prefix=${target_alias}-
1699
1700 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1701 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1702 if test "${llvm_cv_platform_type+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   case $build in
1706   *-*-aix*) llvm_cv_platform_type="AIX" ;;
1707   *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1708   *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1709   *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1710   *-*-interix*) llvm_cv_platform_type="Interix" ;;
1711   *-*-linux*) llvm_cv_platform_type="Linux" ;;
1712   *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1713   *-*-win32*) llvm_cv_platform_type="Win32" ;;
1714   *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1715   *) llvm_cv_platform_type="Unknown" ;;
1716 esac
1717 fi
1718 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1719 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1720
1721 if test "$llvm_cv_platform_type" = "Unknown" ; then
1722   { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1723 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1724    { (exit 1); exit 1; }; }
1725 fi
1726
1727 OS=$llvm_cv_platform_type
1728
1729
1730           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1731
1732
1733 case $target in
1734   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1735
1736   ;;
1737 esac
1738
1739 echo "$as_me:$LINENO: checking target architecture" >&5
1740 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1741 if test "${llvm_cv_target_arch+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   case $target in
1745   i*86-*)      llvm_cv_target_arch="x86" ;;
1746   sparc*-*)    llvm_cv_target_arch="Sparc" ;;
1747   powerpc*-*)  llvm_cv_target_arch="PowerPC" ;;
1748   *)           llvm_cv_target_arch="Unknown" ;;
1749 esac
1750 fi
1751 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1752 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1753
1754 if test "$llvm_cv_target_arch" = "Unknown" ; then
1755   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1756 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1757 fi
1758
1759 ARCH=$llvm_cv_target_arch
1760
1761
1762 ac_ext=c
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767 if test -n "$ac_tool_prefix"; then
1768   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$CC"; then
1776   ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   for ac_exec_ext in '' $ac_executable_extensions; do
1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787     break 2
1788   fi
1789 done
1790 done
1791
1792 fi
1793 fi
1794 CC=$ac_cv_prog_CC
1795 if test -n "$CC"; then
1796   echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803 fi
1804 if test -z "$ac_cv_prog_CC"; then
1805   ac_ct_CC=$CC
1806   # Extract the first word of "gcc", so it can be a program name with args.
1807 set dummy gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$ac_ct_CC"; then
1814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_ac_ct_CC="gcc"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841   CC=$ac_ct_CC
1842 else
1843   CC="$ac_cv_prog_CC"
1844 fi
1845
1846 if test -z "$CC"; then
1847   if test -n "$ac_tool_prefix"; then
1848   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849 set dummy ${ac_tool_prefix}cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CC+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test -n "$CC"; then
1856   ac_cv_prog_CC="$CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865     ac_cv_prog_CC="${ac_tool_prefix}cc"
1866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867     break 2
1868   fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 CC=$ac_cv_prog_CC
1875 if test -n "$CC"; then
1876   echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1878 else
1879   echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883 fi
1884 if test -z "$ac_cv_prog_CC"; then
1885   ac_ct_CC=$CC
1886   # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891   echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893   if test -n "$ac_ct_CC"; then
1894   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901   for ac_exec_ext in '' $ac_executable_extensions; do
1902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903     ac_cv_prog_ac_ct_CC="cc"
1904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905     break 2
1906   fi
1907 done
1908 done
1909
1910 fi
1911 fi
1912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913 if test -n "$ac_ct_CC"; then
1914   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915 echo "${ECHO_T}$ac_ct_CC" >&6
1916 else
1917   echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1919 fi
1920
1921   CC=$ac_ct_CC
1922 else
1923   CC="$ac_cv_prog_CC"
1924 fi
1925
1926 fi
1927 if test -z "$CC"; then
1928   # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$CC"; then
1936   ac_cv_prog_CC="$CC" # Let the user override the test.
1937 else
1938   ac_prog_rejected=no
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947        ac_prog_rejected=yes
1948        continue
1949      fi
1950     ac_cv_prog_CC="cc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 if test $ac_prog_rejected = yes; then
1958   # We found a bogon in the path, so make sure we never use it.
1959   set dummy $ac_cv_prog_CC
1960   shift
1961   if test $# != 0; then
1962     # We chose a different compiler from the bogus one.
1963     # However, it has the same basename, so the bogon will be chosen
1964     # first if we set CC to just the basename; use the full file name.
1965     shift
1966     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1967   fi
1968 fi
1969 fi
1970 fi
1971 CC=$ac_cv_prog_CC
1972 if test -n "$CC"; then
1973   echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980 fi
1981 if test -z "$CC"; then
1982   if test -n "$ac_tool_prefix"; then
1983   for ac_prog in cl
1984   do
1985     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   if test -n "$CC"; then
1993   ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   for ac_exec_ext in '' $ac_executable_extensions; do
2001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2015 else
2016   echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2018 fi
2019
2020     test -n "$CC" && break
2021   done
2022 fi
2023 if test -z "$CC"; then
2024   ac_ct_CC=$CC
2025   for ac_prog in cl
2026 do
2027   # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$ac_ct_CC"; then
2035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044     ac_cv_prog_ac_ct_CC="$ac_prog"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050
2051 fi
2052 fi
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2057 else
2058   echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2060 fi
2061
2062   test -n "$ac_ct_CC" && break
2063 done
2064
2065   CC=$ac_ct_CC
2066 fi
2067
2068 fi
2069
2070
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO:" \
2079      "checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082   (eval $ac_compiler --version </dev/null >&5) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }
2086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087   (eval $ac_compiler -v </dev/null >&5) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092   (eval $ac_compiler -V </dev/null >&5) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }
2096
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h.  */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h.  */
2103
2104 int
2105 main ()
2106 {
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 ac_clean_files_save=$ac_clean_files
2113 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114 # Try to create an executable without -o first, disregard a.out.
2115 # It will help us diagnose broken compilers, and finding out an intuition
2116 # of exeext.
2117 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2119 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121   (eval $ac_link_default) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }; then
2125   # Find the output, starting from the most likely.  This scheme is
2126 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127 # resort.
2128
2129 # Be careful to initialize this variable, since it used to be cached.
2130 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2131 ac_cv_exeext=
2132 # b.out is created by i960 compilers.
2133 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134 do
2135   test -f "$ac_file" || continue
2136   case $ac_file in
2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2138         ;;
2139     conftest.$ac_ext )
2140         # This is the source file.
2141         ;;
2142     [ab].out )
2143         # We found the default executable, but exeext='' is most
2144         # certainly right.
2145         break;;
2146     *.* )
2147         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148         # FIXME: I believe we export ac_cv_exeext for Libtool,
2149         # but it would be cool to find out if it's true.  Does anybody
2150         # maintain Libtool? --akim.
2151         export ac_cv_exeext
2152         break;;
2153     * )
2154         break;;
2155   esac
2156 done
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165    { (exit 77); exit 77; }; }
2166 fi
2167
2168 ac_exeext=$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_file" >&5
2170 echo "${ECHO_T}$ac_file" >&6
2171
2172 # Check the compiler produces executables we can run.  If not, either
2173 # the compiler is broken, or we cross compile.
2174 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177 # If not cross compiling, check that we can run a simple program.
2178 if test "$cross_compiling" != yes; then
2179   if { ac_try='./$ac_file'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185     cross_compiling=no
2186   else
2187     if test "$cross_compiling" = maybe; then
2188         cross_compiling=yes
2189     else
2190         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&2;}
2196    { (exit 1); exit 1; }; }
2197     fi
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6
2202
2203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2204 ac_clean_files=$ac_clean_files_save
2205 # Check the compiler produces executables we can run.  If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210 echo "${ECHO_T}$cross_compiling" >&6
2211
2212 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215   (eval $ac_link) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; then
2219   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2221 # work properly (i.e., refer to `conftest.exe'), while it won't with
2222 # `rm'.
2223 for ac_file in conftest.exe conftest conftest.*; do
2224   test -f "$ac_file" || continue
2225   case $ac_file in
2226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2227     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228           export ac_cv_exeext
2229           break;;
2230     * ) break;;
2231   esac
2232 done
2233 else
2234   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238    { (exit 1); exit 1; }; }
2239 fi
2240
2241 rm -f conftest$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2247 ac_exeext=$EXEEXT
2248 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250 if test "${ac_cv_objext+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259
2260 int
2261 main ()
2262 {
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.o conftest.obj
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278        break;;
2279   esac
2280 done
2281 else
2282   echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&2;}
2289    { (exit 1); exit 1; }; }
2290 fi
2291
2292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295 echo "${ECHO_T}$ac_cv_objext" >&6
2296 OBJEXT=$ac_cv_objext
2297 ac_objext=$OBJEXT
2298 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309
2310 int
2311 main ()
2312 {
2313 #ifndef __GNUC__
2314        choke me
2315 #endif
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323   (eval $ac_compile) 2>conftest.er1
2324   ac_status=$?
2325   grep -v '^ *+' conftest.er1 >conftest.err
2326   rm -f conftest.er1
2327   cat conftest.err >&5
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); } &&
2330          { ac_try='test -z "$ac_c_werror_flag"
2331                          || test ! -s conftest.err'
2332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333   (eval $ac_try) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; } &&
2337          { ac_try='test -s conftest.$ac_objext'
2338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339   (eval $ac_try) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; }; then
2343   ac_compiler_gnu=yes
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 ac_compiler_gnu=no
2349 fi
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2352
2353 fi
2354 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356 GCC=`test $ac_compiler_gnu = yes && echo yes`
2357 ac_test_CFLAGS=${CFLAGS+set}
2358 ac_save_CFLAGS=$CFLAGS
2359 CFLAGS="-g"
2360 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362 if test "${ac_cv_prog_cc_g+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h.  */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h.  */
2371
2372 int
2373 main ()
2374 {
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382   (eval $ac_compile) 2>conftest.er1
2383   ac_status=$?
2384   grep -v '^ *+' conftest.er1 >conftest.err
2385   rm -f conftest.er1
2386   cat conftest.err >&5
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); } &&
2389          { ac_try='test -z "$ac_c_werror_flag"
2390                          || test ! -s conftest.err'
2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392   (eval $ac_try) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; } &&
2396          { ac_try='test -s conftest.$ac_objext'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; }; then
2402   ac_cv_prog_cc_g=yes
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_prog_cc_g=no
2408 fi
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 fi
2411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413 if test "$ac_test_CFLAGS" = set; then
2414   CFLAGS=$ac_save_CFLAGS
2415 elif test $ac_cv_prog_cc_g = yes; then
2416   if test "$GCC" = yes; then
2417     CFLAGS="-g -O2"
2418   else
2419     CFLAGS="-g"
2420   fi
2421 else
2422   if test "$GCC" = yes; then
2423     CFLAGS="-O2"
2424   else
2425     CFLAGS=
2426   fi
2427 fi
2428 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   ac_cv_prog_cc_stdc=no
2434 ac_save_CC=$CC
2435 cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h.  */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h.  */
2441 #include <stdarg.h>
2442 #include <stdio.h>
2443 #include <sys/types.h>
2444 #include <sys/stat.h>
2445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2446 struct buf { int x; };
2447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448 static char *e (p, i)
2449      char **p;
2450      int i;
2451 {
2452   return p[i];
2453 }
2454 static char *f (char * (*g) (char **, int), char **p, ...)
2455 {
2456   char *s;
2457   va_list v;
2458   va_start (v,p);
2459   s = g (p, va_arg (v,int));
2460   va_end (v);
2461   return s;
2462 }
2463
2464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2465    function prototypes and stuff, but not '\xHH' hex character constants.
2466    These don't provoke an error unfortunately, instead are silently treated
2467    as 'x'.  The following induces an error, until -std1 is added to get
2468    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2469    array size at least.  It's necessary to write '\x00'==0 to get something
2470    that's true only with -std1.  */
2471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2472
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2477 int argc;
2478 char **argv;
2479 int
2480 main ()
2481 {
2482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 # Don't try gcc -ansi; that turns off useful extensions and
2488 # breaks some systems' header files.
2489 # AIX                   -qlanglvl=ansi
2490 # Ultrix and OSF/1      -std1
2491 # HP-UX 10.20 and later -Ae
2492 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2493 # SVR4                  -Xc -D__EXTENSIONS__
2494 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495 do
2496   CC="$ac_save_CC $ac_arg"
2497   rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499   (eval $ac_compile) 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -z "$ac_c_werror_flag"
2507                          || test ! -s conftest.err'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_prog_cc_stdc=$ac_arg
2520 break
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 fi
2526 rm -f conftest.err conftest.$ac_objext
2527 done
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2529 CC=$ac_save_CC
2530
2531 fi
2532
2533 case "x$ac_cv_prog_cc_stdc" in
2534   x|xno)
2535     echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2537   *)
2538     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540     CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 esac
2542
2543 # Some people use a C++ compiler to compile C.  Since we use `exit',
2544 # in C++ we need to declare it.  In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #ifndef __cplusplus
2549   choke me
2550 #endif
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>conftest.er1
2555   ac_status=$?
2556   grep -v '^ *+' conftest.er1 >conftest.err
2557   rm -f conftest.er1
2558   cat conftest.err >&5
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); } &&
2561          { ac_try='test -z "$ac_c_werror_flag"
2562                          || test ! -s conftest.err'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570   (eval $ac_try) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574   for ac_declaration in \
2575    '' \
2576    'extern "C" void std::exit (int) throw (); using std::exit;' \
2577    'extern "C" void std::exit (int); using std::exit;' \
2578    'extern "C" void exit (int) throw ();' \
2579    'extern "C" void exit (int);' \
2580    'void exit (int);'
2581 do
2582   cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588 $ac_declaration
2589 #include <stdlib.h>
2590 int
2591 main ()
2592 {
2593 exit (42);
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   :
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 continue
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 $ac_declaration
2635 int
2636 main ()
2637 {
2638 exit (42);
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645   (eval $ac_compile) 2>conftest.er1
2646   ac_status=$?
2647   grep -v '^ *+' conftest.er1 >conftest.err
2648   rm -f conftest.er1
2649   cat conftest.err >&5
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); } &&
2652          { ac_try='test -z "$ac_c_werror_flag"
2653                          || test ! -s conftest.err'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   break
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 fi
2671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672 done
2673 rm -f conftest*
2674 if test -n "$ac_declaration"; then
2675   echo '#ifdef __cplusplus' >>confdefs.h
2676   echo $ac_declaration      >>confdefs.h
2677   echo '#endif'             >>confdefs.h
2678 fi
2679
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692
2693 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2694 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2695 if test "${ac_cv_c_bigendian+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   # See if sys/param.h defines the BYTE_ORDER macro.
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705 #include <sys/types.h>
2706 #include <sys/param.h>
2707
2708 int
2709 main ()
2710 {
2711 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2712  bogus endian macros
2713 #endif
2714
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721   (eval $ac_compile) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -z "$ac_c_werror_flag"
2729                          || test ! -s conftest.err'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   # It does; now see whether it defined to BIG_ENDIAN or not.
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748 #include <sys/types.h>
2749 #include <sys/param.h>
2750
2751 int
2752 main ()
2753 {
2754 #if BYTE_ORDER != BIG_ENDIAN
2755  not big endian
2756 #endif
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764   (eval $ac_compile) 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -z "$ac_c_werror_flag"
2772                          || test ! -s conftest.err'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784   ac_cv_c_bigendian=yes
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 ac_cv_c_bigendian=no
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 # It does not; compile a test program.
2797 if test "$cross_compiling" = yes; then
2798   # try to guess the endianness by grepping values into an object file
2799   ac_cv_c_bigendian=unknown
2800   cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2807 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2808 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2809 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2810 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2811 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2812 int
2813 main ()
2814 {
2815  _ascii (); _ebcdic ();
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822   (eval $ac_compile) 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } &&
2829          { ac_try='test -z "$ac_c_werror_flag"
2830                          || test ! -s conftest.err'
2831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; } &&
2836          { ac_try='test -s conftest.$ac_objext'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2843   ac_cv_c_bigendian=yes
2844 fi
2845 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2846   if test "$ac_cv_c_bigendian" = unknown; then
2847     ac_cv_c_bigendian=no
2848   else
2849     # finding both strings is unlikely to happen, but who knows?
2850     ac_cv_c_bigendian=unknown
2851   fi
2852 fi
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 fi
2858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859 else
2860   cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866 int
2867 main ()
2868 {
2869   /* Are we little or big endian?  From Harbison&Steele.  */
2870   union
2871   {
2872     long l;
2873     char c[sizeof (long)];
2874   } u;
2875   u.l = 1;
2876   exit (u.c[sizeof (long) - 1] == 1);
2877 }
2878 _ACEOF
2879 rm -f conftest$ac_exeext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881   (eval $ac_link) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886   (eval $ac_try) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; }; then
2890   ac_cv_c_bigendian=no
2891 else
2892   echo "$as_me: program exited with status $ac_status" >&5
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 ( exit $ac_status )
2897 ac_cv_c_bigendian=yes
2898 fi
2899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2900 fi
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 fi
2904 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2905 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2906 case $ac_cv_c_bigendian in
2907   yes)
2908     ENDIAN=big
2909  ;;
2910   no)
2911     ENDIAN=little
2912  ;;
2913   *)
2914     { { echo "$as_me:$LINENO: error: unknown endianness
2915 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2916 echo "$as_me: error: unknown endianness
2917 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2918    { (exit 1); exit 1; }; } ;;
2919 esac
2920
2921
2922
2923 # Check whether --enable-optimized or --disable-optimized was given.
2924 if test "${enable_optimized+set}" = set; then
2925   enableval="$enable_optimized"
2926
2927 else
2928   enableval=no
2929 fi;
2930 if test ${enableval} = "no" ; then
2931   ENABLE_OPTIMIZED=
2932
2933 else
2934   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2935
2936 fi
2937
2938 # Check whether --enable-jit or --disable-jit was given.
2939 if test "${enable_jit+set}" = set; then
2940   enableval="$enable_jit"
2941
2942 else
2943   enableval=default
2944 fi;
2945 if test ${enableval} = "no"
2946 then
2947   JIT=
2948
2949 else
2950   case "$llvm_cv_target_arch" in
2951     x86)     JIT=TARGET_HAS_JIT=1
2952  ;;
2953     Sparc)   JIT=TARGET_HAS_JIT=1
2954  ;;
2955     PowerPC) JIT=TARGET_HAS_JIT=1
2956  ;;
2957     *)       JIT=
2958  ;;
2959   esac
2960 fi
2961
2962 # Check whether --enable-doxygen or --disable-doxygen was given.
2963 if test "${enable_doxygen+set}" = set; then
2964   enableval="$enable_doxygen"
2965
2966 else
2967   enableval=default
2968 fi;
2969 case "$enableval" in
2970   yes) ENABLE_DOXYGEN=1
2971  ;;
2972   no)  ENABLE_DOXYGEN=0
2973  ;;
2974   default) ENABLE_DOXYGEN=0
2975  ;;
2976   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2977 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2978    { (exit 1); exit 1; }; } ;;
2979 esac
2980
2981
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2991   CPP=
2992 fi
2993 if test -z "$CPP"; then
2994   if test "${ac_cv_prog_CPP+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997       # Double quotes because CPP needs to be expanded
2998     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2999     do
3000       ac_preproc_ok=false
3001 for ac_c_preproc_warn_flag in '' yes
3002 do
3003   # Use a header file that comes with gcc, so configuring glibc
3004   # with a fresh cross-compiler works.
3005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006   # <limits.h> exists even on freestanding compilers.
3007   # On the NeXT, cc -E runs the code through the compiler's parser,
3008   # not just through cpp. "Syntax error" is here to catch this case.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #ifdef __STDC__
3016 # include <limits.h>
3017 #else
3018 # include <assert.h>
3019 #endif
3020                      Syntax error
3021 _ACEOF
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } >/dev/null; then
3030   if test -s conftest.err; then
3031     ac_cpp_err=$ac_c_preproc_warn_flag
3032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3033   else
3034     ac_cpp_err=
3035   fi
3036 else
3037   ac_cpp_err=yes
3038 fi
3039 if test -z "$ac_cpp_err"; then
3040   :
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045   # Broken: fails on valid input.
3046 continue
3047 fi
3048 rm -f conftest.err conftest.$ac_ext
3049
3050   # OK, works on sane cases.  Now check whether non-existent headers
3051   # can be detected and how.
3052   cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058 #include <ac_nonexistent.h>
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } >/dev/null; then
3068   if test -s conftest.err; then
3069     ac_cpp_err=$ac_c_preproc_warn_flag
3070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071   else
3072     ac_cpp_err=
3073   fi
3074 else
3075   ac_cpp_err=yes
3076 fi
3077 if test -z "$ac_cpp_err"; then
3078   # Broken: success on invalid input.
3079 continue
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084   # Passes both tests.
3085 ac_preproc_ok=:
3086 break
3087 fi
3088 rm -f conftest.err conftest.$ac_ext
3089
3090 done
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.$ac_ext
3093 if $ac_preproc_ok; then
3094   break
3095 fi
3096
3097     done
3098     ac_cv_prog_CPP=$CPP
3099
3100 fi
3101   CPP=$ac_cv_prog_CPP
3102 else
3103   ac_cv_prog_CPP=$CPP
3104 fi
3105 echo "$as_me:$LINENO: result: $CPP" >&5
3106 echo "${ECHO_T}$CPP" >&6
3107 ac_preproc_ok=false
3108 for ac_c_preproc_warn_flag in '' yes
3109 do
3110   # Use a header file that comes with gcc, so configuring glibc
3111   # with a fresh cross-compiler works.
3112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113   # <limits.h> exists even on freestanding compilers.
3114   # On the NeXT, cc -E runs the code through the compiler's parser,
3115   # not just through cpp. "Syntax error" is here to catch this case.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #ifdef __STDC__
3123 # include <limits.h>
3124 #else
3125 # include <assert.h>
3126 #endif
3127                      Syntax error
3128 _ACEOF
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } >/dev/null; then
3137   if test -s conftest.err; then
3138     ac_cpp_err=$ac_c_preproc_warn_flag
3139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140   else
3141     ac_cpp_err=
3142   fi
3143 else
3144   ac_cpp_err=yes
3145 fi
3146 if test -z "$ac_cpp_err"; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152   # Broken: fails on valid input.
3153 continue
3154 fi
3155 rm -f conftest.err conftest.$ac_ext
3156
3157   # OK, works on sane cases.  Now check whether non-existent headers
3158   # can be detected and how.
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <ac_nonexistent.h>
3166 _ACEOF
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } >/dev/null; then
3175   if test -s conftest.err; then
3176     ac_cpp_err=$ac_c_preproc_warn_flag
3177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178   else
3179     ac_cpp_err=
3180   fi
3181 else
3182   ac_cpp_err=yes
3183 fi
3184 if test -z "$ac_cpp_err"; then
3185   # Broken: success on invalid input.
3186 continue
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191   # Passes both tests.
3192 ac_preproc_ok=:
3193 break
3194 fi
3195 rm -f conftest.err conftest.$ac_ext
3196
3197 done
3198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199 rm -f conftest.err conftest.$ac_ext
3200 if $ac_preproc_ok; then
3201   :
3202 else
3203   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3204 See \`config.log' for more details." >&5
3205 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&2;}
3207    { (exit 1); exit 1; }; }
3208 fi
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 if test -n "$ac_tool_prefix"; then
3222   for ac_prog in gcc
3223   do
3224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_CC+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -n "$CC"; then
3232   ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246 done
3247
3248 fi
3249 fi
3250 CC=$ac_cv_prog_CC
3251 if test -n "$CC"; then
3252   echo "$as_me:$LINENO: result: $CC" >&5
3253 echo "${ECHO_T}$CC" >&6
3254 else
3255   echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3257 fi
3258
3259     test -n "$CC" && break
3260   done
3261 fi
3262 if test -z "$CC"; then
3263   ac_ct_CC=$CC
3264   for ac_prog in gcc
3265 do
3266   # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   if test -n "$ac_ct_CC"; then
3274   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_exec_ext in '' $ac_executable_extensions; do
3282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283     ac_cv_prog_ac_ct_CC="$ac_prog"
3284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288 done
3289
3290 fi
3291 fi
3292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293 if test -n "$ac_ct_CC"; then
3294   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295 echo "${ECHO_T}$ac_ct_CC" >&6
3296 else
3297   echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3299 fi
3300
3301   test -n "$ac_ct_CC" && break
3302 done
3303
3304   CC=$ac_ct_CC
3305 fi
3306
3307
3308 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: no acceptable C compiler found in \$PATH
3311 See \`config.log' for more details." >&2;}
3312    { (exit 1); exit 1; }; }
3313
3314 # Provide some information about the compiler.
3315 echo "$as_me:$LINENO:" \
3316      "checking for C compiler version" >&5
3317 ac_compiler=`set X $ac_compile; echo $2`
3318 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3319   (eval $ac_compiler --version </dev/null >&5) 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }
3323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3324   (eval $ac_compiler -v </dev/null >&5) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }
3328 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3329   (eval $ac_compiler -V </dev/null >&5) 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); }
3333
3334 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345
3346 int
3347 main ()
3348 {
3349 #ifndef __GNUC__
3350        choke me
3351 #endif
3352
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359   (eval $ac_compile) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -z "$ac_c_werror_flag"
3367                          || test ! -s conftest.err'
3368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369   (eval $ac_try) 2>&5
3370   ac_status=$?
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); }; } &&
3373          { ac_try='test -s conftest.$ac_objext'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; }; then
3379   ac_compiler_gnu=yes
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 ac_compiler_gnu=no
3385 fi
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388
3389 fi
3390 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3392 GCC=`test $ac_compiler_gnu = yes && echo yes`
3393 ac_test_CFLAGS=${CFLAGS+set}
3394 ac_save_CFLAGS=$CFLAGS
3395 CFLAGS="-g"
3396 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3397 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3398 if test "${ac_cv_prog_cc_g+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407
3408 int
3409 main ()
3410 {
3411
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418   (eval $ac_compile) 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } &&
3425          { ac_try='test -z "$ac_c_werror_flag"
3426                          || test ! -s conftest.err'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; } &&
3432          { ac_try='test -s conftest.$ac_objext'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; }; then
3438   ac_cv_prog_cc_g=yes
3439 else
3440   echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 ac_cv_prog_cc_g=no
3444 fi
3445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446 fi
3447 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3449 if test "$ac_test_CFLAGS" = set; then
3450   CFLAGS=$ac_save_CFLAGS
3451 elif test $ac_cv_prog_cc_g = yes; then
3452   if test "$GCC" = yes; then
3453     CFLAGS="-g -O2"
3454   else
3455     CFLAGS="-g"
3456   fi
3457 else
3458   if test "$GCC" = yes; then
3459     CFLAGS="-O2"
3460   else
3461     CFLAGS=
3462   fi
3463 fi
3464 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3465 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3466 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   ac_cv_prog_cc_stdc=no
3470 ac_save_CC=$CC
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 #include <stdarg.h>
3478 #include <stdio.h>
3479 #include <sys/types.h>
3480 #include <sys/stat.h>
3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3482 struct buf { int x; };
3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484 static char *e (p, i)
3485      char **p;
3486      int i;
3487 {
3488   return p[i];
3489 }
3490 static char *f (char * (*g) (char **, int), char **p, ...)
3491 {
3492   char *s;
3493   va_list v;
3494   va_start (v,p);
3495   s = g (p, va_arg (v,int));
3496   va_end (v);
3497   return s;
3498 }
3499
3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3501    function prototypes and stuff, but not '\xHH' hex character constants.
3502    These don't provoke an error unfortunately, instead are silently treated
3503    as 'x'.  The following induces an error, until -std1 is added to get
3504    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3505    array size at least.  It's necessary to write '\x00'==0 to get something
3506    that's true only with -std1.  */
3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3508
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513 int argc;
3514 char **argv;
3515 int
3516 main ()
3517 {
3518 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 # Don't try gcc -ansi; that turns off useful extensions and
3524 # breaks some systems' header files.
3525 # AIX                   -qlanglvl=ansi
3526 # Ultrix and OSF/1      -std1
3527 # HP-UX 10.20 and later -Ae
3528 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3529 # SVR4                  -Xc -D__EXTENSIONS__
3530 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531 do
3532   CC="$ac_save_CC $ac_arg"
3533   rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535   (eval $ac_compile) 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } &&
3542          { ac_try='test -z "$ac_c_werror_flag"
3543                          || test ! -s conftest.err'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; } &&
3549          { ac_try='test -s conftest.$ac_objext'
3550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551   (eval $ac_try) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; }; then
3555   ac_cv_prog_cc_stdc=$ac_arg
3556 break
3557 else
3558   echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 fi
3562 rm -f conftest.err conftest.$ac_objext
3563 done
3564 rm -f conftest.$ac_ext conftest.$ac_objext
3565 CC=$ac_save_CC
3566
3567 fi
3568
3569 case "x$ac_cv_prog_cc_stdc" in
3570   x|xno)
3571     echo "$as_me:$LINENO: result: none needed" >&5
3572 echo "${ECHO_T}none needed" >&6 ;;
3573   *)
3574     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3575 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3576     CC="$CC $ac_cv_prog_cc_stdc" ;;
3577 esac
3578
3579 # Some people use a C++ compiler to compile C.  Since we use `exit',
3580 # in C++ we need to declare it.  In case someone uses the same compiler
3581 # for both compiling C and C++ we need to have the C++ compiler decide
3582 # the declaration of exit, since it's the most demanding environment.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #ifndef __cplusplus
3585   choke me
3586 #endif
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590   (eval $ac_compile) 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          { ac_try='test -z "$ac_c_werror_flag"
3598                          || test ! -s conftest.err'
3599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600   (eval $ac_try) 2>&5
3601   ac_status=$?
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); }; } &&
3604          { ac_try='test -s conftest.$ac_objext'
3605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606   (eval $ac_try) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; }; then
3610   for ac_declaration in \
3611    '' \
3612    'extern "C" void std::exit (int) throw (); using std::exit;' \
3613    'extern "C" void std::exit (int); using std::exit;' \
3614    'extern "C" void exit (int) throw ();' \
3615    'extern "C" void exit (int);' \
3616    'void exit (int);'
3617 do
3618   cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624 $ac_declaration
3625 #include <stdlib.h>
3626 int
3627 main ()
3628 {
3629 exit (42);
3630   ;
3631   return 0;
3632 }
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636   (eval $ac_compile) 2>conftest.er1
3637   ac_status=$?
3638   grep -v '^ *+' conftest.er1 >conftest.err
3639   rm -f conftest.er1
3640   cat conftest.err >&5
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } &&
3643          { ac_try='test -z "$ac_c_werror_flag"
3644                          || test ! -s conftest.err'
3645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646   (eval $ac_try) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; } &&
3650          { ac_try='test -s conftest.$ac_objext'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   :
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 continue
3662 fi
3663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 $ac_declaration
3671 int
3672 main ()
3673 {
3674 exit (42);
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681   (eval $ac_compile) 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } &&
3688          { ac_try='test -z "$ac_c_werror_flag"
3689                          || test ! -s conftest.err'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; } &&
3695          { ac_try='test -s conftest.$ac_objext'
3696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697   (eval $ac_try) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701   break
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 fi
3707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708 done
3709 rm -f conftest*
3710 if test -n "$ac_declaration"; then
3711   echo '#ifdef __cplusplus' >>confdefs.h
3712   echo $ac_declaration      >>confdefs.h
3713   echo '#endif'             >>confdefs.h
3714 fi
3715
3716 else
3717   echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 fi
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 ac_ext=cc
3729 ac_cpp='$CXXCPP $CPPFLAGS'
3730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733 if test -n "$ac_tool_prefix"; then
3734   for ac_prog in $CCC g++
3735   do
3736     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_prog_CXX+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   if test -n "$CXX"; then
3744   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751   for ac_exec_ext in '' $ac_executable_extensions; do
3752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755     break 2
3756   fi
3757 done
3758 done
3759
3760 fi
3761 fi
3762 CXX=$ac_cv_prog_CXX
3763 if test -n "$CXX"; then
3764   echo "$as_me:$LINENO: result: $CXX" >&5
3765 echo "${ECHO_T}$CXX" >&6
3766 else
3767   echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3769 fi
3770
3771     test -n "$CXX" && break
3772   done
3773 fi
3774 if test -z "$CXX"; then
3775   ac_ct_CXX=$CXX
3776   for ac_prog in $CCC g++
3777 do
3778   # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   if test -n "$ac_ct_CXX"; then
3786   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_prog_ac_ct_CXX="$ac_prog"
3796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800 done
3801
3802 fi
3803 fi
3804 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3805 if test -n "$ac_ct_CXX"; then
3806   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3807 echo "${ECHO_T}$ac_ct_CXX" >&6
3808 else
3809   echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6
3811 fi
3812
3813   test -n "$ac_ct_CXX" && break
3814 done
3815 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3816
3817   CXX=$ac_ct_CXX
3818 fi
3819
3820
3821 # Provide some information about the compiler.
3822 echo "$as_me:$LINENO:" \
3823      "checking for C++ compiler version" >&5
3824 ac_compiler=`set X $ac_compile; echo $2`
3825 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3826   (eval $ac_compiler --version </dev/null >&5) 2>&5
3827   ac_status=$?
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); }
3830 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3831   (eval $ac_compiler -v </dev/null >&5) 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }
3835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3836   (eval $ac_compiler -V </dev/null >&5) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }
3840
3841 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3842 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3843 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852
3853 int
3854 main ()
3855 {
3856 #ifndef __GNUC__
3857        choke me
3858 #endif
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866   (eval $ac_compile) 2>conftest.er1
3867   ac_status=$?
3868   grep -v '^ *+' conftest.er1 >conftest.err
3869   rm -f conftest.er1
3870   cat conftest.err >&5
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -z "$ac_cxx_werror_flag"
3874                          || test ! -s conftest.err'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; } &&
3880          { ac_try='test -s conftest.$ac_objext'
3881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882   (eval $ac_try) 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }; }; then
3886   ac_compiler_gnu=yes
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 ac_compiler_gnu=no
3892 fi
3893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3895
3896 fi
3897 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3898 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3899 GXX=`test $ac_compiler_gnu = yes && echo yes`
3900 ac_test_CXXFLAGS=${CXXFLAGS+set}
3901 ac_save_CXXFLAGS=$CXXFLAGS
3902 CXXFLAGS="-g"
3903 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3904 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3905 if test "${ac_cv_prog_cxx_g+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h.  */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h.  */
3914
3915 int
3916 main ()
3917 {
3918
3919   ;
3920   return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925   (eval $ac_compile) 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } &&
3932          { ac_try='test -z "$ac_cxx_werror_flag"
3933                          || test ! -s conftest.err'
3934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935   (eval $ac_try) 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); }; } &&
3939          { ac_try='test -s conftest.$ac_objext'
3940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941   (eval $ac_try) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; }; then
3945   ac_cv_prog_cxx_g=yes
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 ac_cv_prog_cxx_g=no
3951 fi
3952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3955 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3956 if test "$ac_test_CXXFLAGS" = set; then
3957   CXXFLAGS=$ac_save_CXXFLAGS
3958 elif test $ac_cv_prog_cxx_g = yes; then
3959   if test "$GXX" = yes; then
3960     CXXFLAGS="-g -O2"
3961   else
3962     CXXFLAGS="-g"
3963   fi
3964 else
3965   if test "$GXX" = yes; then
3966     CXXFLAGS="-O2"
3967   else
3968     CXXFLAGS=
3969   fi
3970 fi
3971 for ac_declaration in \
3972    '' \
3973    'extern "C" void std::exit (int) throw (); using std::exit;' \
3974    'extern "C" void std::exit (int); using std::exit;' \
3975    'extern "C" void exit (int) throw ();' \
3976    'extern "C" void exit (int);' \
3977    'void exit (int);'
3978 do
3979   cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h.  */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h.  */
3985 $ac_declaration
3986 #include <stdlib.h>
3987 int
3988 main ()
3989 {
3990 exit (42);
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997   (eval $ac_compile) 2>conftest.er1
3998   ac_status=$?
3999   grep -v '^ *+' conftest.er1 >conftest.err
4000   rm -f conftest.er1
4001   cat conftest.err >&5
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); } &&
4004          { ac_try='test -z "$ac_cxx_werror_flag"
4005                          || test ! -s conftest.err'
4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007   (eval $ac_try) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; } &&
4011          { ac_try='test -s conftest.$ac_objext'
4012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013   (eval $ac_try) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   :
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 continue
4023 fi
4024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 $ac_declaration
4032 int
4033 main ()
4034 {
4035 exit (42);
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042   (eval $ac_compile) 2>conftest.er1
4043   ac_status=$?
4044   grep -v '^ *+' conftest.er1 >conftest.err
4045   rm -f conftest.er1
4046   cat conftest.err >&5
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } &&
4049          { ac_try='test -z "$ac_cxx_werror_flag"
4050                          || test ! -s conftest.err'
4051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052   (eval $ac_try) 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); }; } &&
4056          { ac_try='test -s conftest.$ac_objext'
4057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058   (eval $ac_try) 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }; }; then
4062   break
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 fi
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 done
4070 rm -f conftest*
4071 if test -n "$ac_declaration"; then
4072   echo '#ifdef __cplusplus' >>confdefs.h
4073   echo $ac_declaration      >>confdefs.h
4074   echo '#endif'             >>confdefs.h
4075 fi
4076
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083 echo "$as_me:$LINENO: checking " >&5
4084 echo $ECHO_N "checking ... $ECHO_C" >&6
4085 if test "${ac_cv_has_flex+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   for ac_prog in flex lex
4089 do
4090   # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094 if test "${ac_cv_prog_LEX+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   if test -n "$LEX"; then
4098   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_exec_ext in '' $ac_executable_extensions; do
4106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107     ac_cv_prog_LEX="$ac_prog"
4108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109     break 2
4110   fi
4111 done
4112 done
4113
4114 fi
4115 fi
4116 LEX=$ac_cv_prog_LEX
4117 if test -n "$LEX"; then
4118   echo "$as_me:$LINENO: result: $LEX" >&5
4119 echo "${ECHO_T}$LEX" >&6
4120 else
4121   echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4123 fi
4124
4125   test -n "$LEX" && break
4126 done
4127 test -n "$LEX" || LEX=":"
4128
4129 if test -z "$LEXLIB"
4130 then
4131   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4132 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4133 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   ac_check_lib_save_LIBS=$LIBS
4137 LIBS="-lfl  $LIBS"
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144
4145 /* Override any gcc2 internal prototype to avoid an error.  */
4146 #ifdef __cplusplus
4147 extern "C"
4148 #endif
4149 /* We use char because int might match the return type of a gcc2
4150    builtin and then its argument prototype would still apply.  */
4151 char yywrap ();
4152 int
4153 main ()
4154 {
4155 yywrap ();
4156   ;
4157   return 0;
4158 }
4159 _ACEOF
4160 rm -f conftest.$ac_objext conftest$ac_exeext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4162   (eval $ac_link) 2>conftest.er1
4163   ac_status=$?
4164   grep -v '^ *+' conftest.er1 >conftest.err
4165   rm -f conftest.er1
4166   cat conftest.err >&5
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } &&
4169          { ac_try='test -z "$ac_c_werror_flag"
4170                          || test ! -s conftest.err'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; } &&
4176          { ac_try='test -s conftest$ac_exeext'
4177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178   (eval $ac_try) 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; }; then
4182   ac_cv_lib_fl_yywrap=yes
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 ac_cv_lib_fl_yywrap=no
4188 fi
4189 rm -f conftest.err conftest.$ac_objext \
4190       conftest$ac_exeext conftest.$ac_ext
4191 LIBS=$ac_check_lib_save_LIBS
4192 fi
4193 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4194 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4195 if test $ac_cv_lib_fl_yywrap = yes; then
4196   LEXLIB="-lfl"
4197 else
4198   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4199 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4200 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   ac_check_lib_save_LIBS=$LIBS
4204 LIBS="-ll  $LIBS"
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211
4212 /* Override any gcc2 internal prototype to avoid an error.  */
4213 #ifdef __cplusplus
4214 extern "C"
4215 #endif
4216 /* We use char because int might match the return type of a gcc2
4217    builtin and then its argument prototype would still apply.  */
4218 char yywrap ();
4219 int
4220 main ()
4221 {
4222 yywrap ();
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest.$ac_objext conftest$ac_exeext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4229   (eval $ac_link) 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } &&
4236          { ac_try='test -z "$ac_c_werror_flag"
4237                          || test ! -s conftest.err'
4238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239   (eval $ac_try) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; } &&
4243          { ac_try='test -s conftest$ac_exeext'
4244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245   (eval $ac_try) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; }; then
4249   ac_cv_lib_l_yywrap=yes
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 ac_cv_lib_l_yywrap=no
4255 fi
4256 rm -f conftest.err conftest.$ac_objext \
4257       conftest$ac_exeext conftest.$ac_ext
4258 LIBS=$ac_check_lib_save_LIBS
4259 fi
4260 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4261 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4262 if test $ac_cv_lib_l_yywrap = yes; then
4263   LEXLIB="-ll"
4264 fi
4265
4266 fi
4267
4268 fi
4269
4270 if test "x$LEX" != "x:"; then
4271   echo "$as_me:$LINENO: checking lex output file root" >&5
4272 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4273 if test "${ac_cv_prog_lex_root+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   # The minimal lex program is just a single line: %%.  But some broken lexes
4277 # (Solaris, I think it was) want two %% lines, so accommodate them.
4278 cat >conftest.l <<_ACEOF
4279 %%
4280 %%
4281 _ACEOF
4282 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4283   (eval $LEX conftest.l) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }
4287 if test -f lex.yy.c; then
4288   ac_cv_prog_lex_root=lex.yy
4289 elif test -f lexyy.c; then
4290   ac_cv_prog_lex_root=lexyy
4291 else
4292   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4293 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4294    { (exit 1); exit 1; }; }
4295 fi
4296 fi
4297 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4298 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4299 rm -f conftest.l
4300 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4301
4302 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4303 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4304 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   # POSIX says lex can declare yytext either as a pointer or an array; the
4308 # default is implementation-dependent. Figure out which it is, since
4309 # not all implementations provide the %pointer and %array declarations.
4310 ac_cv_prog_lex_yytext_pointer=no
4311 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4312 ac_save_LIBS=$LIBS
4313 LIBS="$LIBS $LEXLIB"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 `cat $LEX_OUTPUT_ROOT.c`
4316 _ACEOF
4317 rm -f conftest.$ac_objext conftest$ac_exeext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319   (eval $ac_link) 2>conftest.er1
4320   ac_status=$?
4321   grep -v '^ *+' conftest.er1 >conftest.err
4322   rm -f conftest.er1
4323   cat conftest.err >&5
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); } &&
4326          { ac_try='test -z "$ac_c_werror_flag"
4327                          || test ! -s conftest.err'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; } &&
4333          { ac_try='test -s conftest$ac_exeext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   ac_cv_prog_lex_yytext_pointer=yes
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 fi
4345 rm -f conftest.err conftest.$ac_objext \
4346       conftest$ac_exeext conftest.$ac_ext
4347 LIBS=$ac_save_LIBS
4348 rm -f "${LEX_OUTPUT_ROOT}.c"
4349
4350 fi
4351 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4352 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4353 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4354
4355 cat >>confdefs.h <<\_ACEOF
4356 #define YYTEXT_POINTER 1
4357 _ACEOF
4358
4359 fi
4360
4361 fi
4362
4363 fi
4364 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4365 echo "${ECHO_T}$ac_cv_has_flex" >&6
4366 if test "$LEX" != "flex"; then
4367   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4368 echo "$as_me: error: flex not found but required" >&2;}
4369    { (exit 1); exit 1; }; }
4370 else
4371   FLEX=flex
4372
4373 fi
4374
4375 echo "$as_me:$LINENO: checking " >&5
4376 echo $ECHO_N "checking ... $ECHO_C" >&6
4377 if test "${llvm_cv_has_bison+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   for ac_prog in 'bison -y' byacc
4381 do
4382   # Extract the first word of "$ac_prog", so it can be a program name with args.
4383 set dummy $ac_prog; ac_word=$2
4384 echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_YACC+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   if test -n "$YACC"; then
4390   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397   for ac_exec_ext in '' $ac_executable_extensions; do
4398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399     ac_cv_prog_YACC="$ac_prog"
4400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404 done
4405
4406 fi
4407 fi
4408 YACC=$ac_cv_prog_YACC
4409 if test -n "$YACC"; then
4410   echo "$as_me:$LINENO: result: $YACC" >&5
4411 echo "${ECHO_T}$YACC" >&6
4412 else
4413   echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4415 fi
4416
4417   test -n "$YACC" && break
4418 done
4419 test -n "$YACC" || YACC="yacc"
4420
4421 fi
4422 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4423 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4424 if test "$YACC" != "bison -y"; then
4425   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4426 echo "$as_me: error: bison not found but required" >&2;}
4427    { (exit 1); exit 1; }; }
4428 else
4429   BISON=bison
4430
4431 fi
4432
4433 echo "$as_me:$LINENO: checking for GNU make" >&5
4434 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4435 if test "${llvm_cv_gnu_make_command+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   llvm_cv_gnu_make_command=''
4439  for a in "$MAKE" make gmake gnumake ; do
4440   if test -z "$a" ; then continue ; fi ;
4441   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4442   then
4443    llvm_cv_gnu_make_command=$a ;
4444    break;
4445   fi
4446  done
4447 fi
4448 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4449 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4450  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4451    ifGNUmake='' ;
4452  else
4453    ifGNUmake='#' ;
4454    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4455 echo "${ECHO_T}\"Not found\"" >&6;
4456  fi
4457
4458
4459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4461 LN_S=$as_ln_s
4462 if test "$LN_S" = "ln -s"; then
4463   echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6
4465 else
4466   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4467 echo "${ECHO_T}no, using $LN_S" >&6
4468 fi
4469
4470 # Extract the first word of "cmp", so it can be a program name with args.
4471 set dummy cmp; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_path_CMP+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   case $CMP in
4478   [\\/]* | ?:[\\/]*)
4479   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4480   ;;
4481   *)
4482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494 done
4495
4496   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4497   ;;
4498 esac
4499 fi
4500 CMP=$ac_cv_path_CMP
4501
4502 if test -n "$CMP"; then
4503   echo "$as_me:$LINENO: result: $CMP" >&5
4504 echo "${ECHO_T}$CMP" >&6
4505 else
4506   echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4508 fi
4509
4510 # Extract the first word of "cp", so it can be a program name with args.
4511 set dummy cp; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_path_CP+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $CP in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535
4536   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4537   ;;
4538 esac
4539 fi
4540 CP=$ac_cv_path_CP
4541
4542 if test -n "$CP"; then
4543   echo "$as_me:$LINENO: result: $CP" >&5
4544 echo "${ECHO_T}$CP" >&6
4545 else
4546   echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4548 fi
4549
4550 # Extract the first word of "date", so it can be a program name with args.
4551 set dummy date; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_path_DATE+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   case $DATE in
4558   [\\/]* | ?:[\\/]*)
4559   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4560   ;;
4561   *)
4562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575
4576   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4577   ;;
4578 esac
4579 fi
4580 DATE=$ac_cv_path_DATE
4581
4582 if test -n "$DATE"; then
4583   echo "$as_me:$LINENO: result: $DATE" >&5
4584 echo "${ECHO_T}$DATE" >&6
4585 else
4586   echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4588 fi
4589
4590 # Extract the first word of "find", so it can be a program name with args.
4591 set dummy find; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_path_FIND+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   case $FIND in
4598   [\\/]* | ?:[\\/]*)
4599   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4600   ;;
4601   *)
4602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607   for ac_exec_ext in '' $ac_executable_extensions; do
4608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611     break 2
4612   fi
4613 done
4614 done
4615
4616   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4617   ;;
4618 esac
4619 fi
4620 FIND=$ac_cv_path_FIND
4621
4622 if test -n "$FIND"; then
4623   echo "$as_me:$LINENO: result: $FIND" >&5
4624 echo "${ECHO_T}$FIND" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630 # Extract the first word of "grep", so it can be a program name with args.
4631 set dummy grep; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_path_GREP+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   case $GREP in
4638   [\\/]* | ?:[\\/]*)
4639   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4640   ;;
4641   *)
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647   for ac_exec_ext in '' $ac_executable_extensions; do
4648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654 done
4655
4656   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4657   ;;
4658 esac
4659 fi
4660 GREP=$ac_cv_path_GREP
4661
4662 if test -n "$GREP"; then
4663   echo "$as_me:$LINENO: result: $GREP" >&5
4664 echo "${ECHO_T}$GREP" >&6
4665 else
4666   echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4668 fi
4669
4670 # Extract the first word of "llvm-gcc", so it can be a program name with args.
4671 set dummy llvm-gcc; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_path_LLVMGCC+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   case $LLVMGCC in
4678   [\\/]* | ?:[\\/]*)
4679   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
4680   ;;
4681   *)
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695
4696   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
4697   ;;
4698 esac
4699 fi
4700 LLVMGCC=$ac_cv_path_LLVMGCC
4701
4702 if test -n "$LLVMGCC"; then
4703   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
4704 echo "${ECHO_T}$LLVMGCC" >&6
4705 else
4706   echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4708 fi
4709
4710 # Extract the first word of "llvm-g++", so it can be a program name with args.
4711 set dummy llvm-g++; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_LLVMGXX+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   case $LLVMGXX in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727   for ac_exec_ext in '' $ac_executable_extensions; do
4728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
4730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734 done
4735
4736   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
4737   ;;
4738 esac
4739 fi
4740 LLVMGXX=$ac_cv_path_LLVMGXX
4741
4742 if test -n "$LLVMGXX"; then
4743   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
4744 echo "${ECHO_T}$LLVMGXX" >&6
4745 else
4746   echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6
4748 fi
4749
4750 # Extract the first word of "mkdir", so it can be a program name with args.
4751 set dummy mkdir; ac_word=$2
4752 echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754 if test "${ac_cv_path_MKDIR+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   case $MKDIR in
4758   [\\/]* | ?:[\\/]*)
4759   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4760   ;;
4761   *)
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767   for ac_exec_ext in '' $ac_executable_extensions; do
4768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771     break 2
4772   fi
4773 done
4774 done
4775
4776   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4777   ;;
4778 esac
4779 fi
4780 MKDIR=$ac_cv_path_MKDIR
4781
4782 if test -n "$MKDIR"; then
4783   echo "$as_me:$LINENO: result: $MKDIR" >&5
4784 echo "${ECHO_T}$MKDIR" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790 # Extract the first word of "mv", so it can be a program name with args.
4791 set dummy mv; ac_word=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_path_MV+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   case $MV in
4798   [\\/]* | ?:[\\/]*)
4799   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4800   ;;
4801   *)
4802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805   IFS=$as_save_IFS
4806   test -z "$as_dir" && as_dir=.
4807   for ac_exec_ext in '' $ac_executable_extensions; do
4808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811     break 2
4812   fi
4813 done
4814 done
4815
4816   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4817   ;;
4818 esac
4819 fi
4820 MV=$ac_cv_path_MV
4821
4822 if test -n "$MV"; then
4823   echo "$as_me:$LINENO: result: $MV" >&5
4824 echo "${ECHO_T}$MV" >&6
4825 else
4826   echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4828 fi
4829
4830 # Extract the first word of "pax", so it can be a program name with args.
4831 set dummy pax; ac_word=$2
4832 echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834 if test "${ac_cv_path_PAX+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   case $PAX in
4838   [\\/]* | ?:[\\/]*)
4839   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4840   ;;
4841   *)
4842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845   IFS=$as_save_IFS
4846   test -z "$as_dir" && as_dir=.
4847   for ac_exec_ext in '' $ac_executable_extensions; do
4848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851     break 2
4852   fi
4853 done
4854 done
4855
4856   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4857   ;;
4858 esac
4859 fi
4860 PAX=$ac_cv_path_PAX
4861
4862 if test -n "$PAX"; then
4863   echo "$as_me:$LINENO: result: $PAX" >&5
4864 echo "${ECHO_T}$PAX" >&6
4865 else
4866   echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4868 fi
4869
4870 if test -n "$ac_tool_prefix"; then
4871   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4873 echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_prog_RANLIB+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   if test -n "$RANLIB"; then
4879   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886   for ac_exec_ext in '' $ac_executable_extensions; do
4887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890     break 2
4891   fi
4892 done
4893 done
4894
4895 fi
4896 fi
4897 RANLIB=$ac_cv_prog_RANLIB
4898 if test -n "$RANLIB"; then
4899   echo "$as_me:$LINENO: result: $RANLIB" >&5
4900 echo "${ECHO_T}$RANLIB" >&6
4901 else
4902   echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4904 fi
4905
4906 fi
4907 if test -z "$ac_cv_prog_RANLIB"; then
4908   ac_ct_RANLIB=$RANLIB
4909   # Extract the first word of "ranlib", so it can be a program name with args.
4910 set dummy ranlib; ac_word=$2
4911 echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4913 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   if test -n "$ac_ct_RANLIB"; then
4917   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924   for ac_exec_ext in '' $ac_executable_extensions; do
4925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926     ac_cv_prog_ac_ct_RANLIB="ranlib"
4927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931 done
4932
4933   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4934 fi
4935 fi
4936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4937 if test -n "$ac_ct_RANLIB"; then
4938   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4939 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4940 else
4941   echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6
4943 fi
4944
4945   RANLIB=$ac_ct_RANLIB
4946 else
4947   RANLIB="$ac_cv_prog_RANLIB"
4948 fi
4949
4950 # Extract the first word of "rm", so it can be a program name with args.
4951 set dummy rm; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_path_RM+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   case $RM in
4958   [\\/]* | ?:[\\/]*)
4959   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4960   ;;
4961   *)
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967   for ac_exec_ext in '' $ac_executable_extensions; do
4968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971     break 2
4972   fi
4973 done
4974 done
4975
4976   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4977   ;;
4978 esac
4979 fi
4980 RM=$ac_cv_path_RM
4981
4982 if test -n "$RM"; then
4983   echo "$as_me:$LINENO: result: $RM" >&5
4984 echo "${ECHO_T}$RM" >&6
4985 else
4986   echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6
4988 fi
4989
4990 # Extract the first word of "sed", so it can be a program name with args.
4991 set dummy sed; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_path_SED+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   case $SED in
4998   [\\/]* | ?:[\\/]*)
4999   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5000   ;;
5001   *)
5002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007   for ac_exec_ext in '' $ac_executable_extensions; do
5008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014 done
5015
5016   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5017   ;;
5018 esac
5019 fi
5020 SED=$ac_cv_path_SED
5021
5022 if test -n "$SED"; then
5023   echo "$as_me:$LINENO: result: $SED" >&5
5024 echo "${ECHO_T}$SED" >&6
5025 else
5026   echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5028 fi
5029
5030 # Extract the first word of "tar", so it can be a program name with args.
5031 set dummy tar; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_path_TAR+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   case $TAR in
5038   [\\/]* | ?:[\\/]*)
5039   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5040   ;;
5041   *)
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055
5056   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5057   ;;
5058 esac
5059 fi
5060 TAR=$ac_cv_path_TAR
5061
5062 if test -n "$TAR"; then
5063   echo "$as_me:$LINENO: result: $TAR" >&5
5064 echo "${ECHO_T}$TAR" >&6
5065 else
5066   echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5068 fi
5069
5070
5071 # Find a good install program.  We prefer a C program (faster),
5072 # so one script is as good as another.  But avoid the broken or
5073 # incompatible versions:
5074 # SysV /etc/install, /usr/sbin/install
5075 # SunOS /usr/etc/install
5076 # IRIX /sbin/install
5077 # AIX /bin/install
5078 # AmigaOS /C/install, which installs bootblocks on floppy discs
5079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5082 # OS/2's system install, which has a completely different semantic
5083 # ./install, which can be erroneously created by make from ./install.sh.
5084 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5085 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5086 if test -z "$INSTALL"; then
5087 if test "${ac_cv_path_install+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   # Account for people who put trailing slashes in PATH elements.
5096 case $as_dir/ in
5097   ./ | .// | /cC/* | \
5098   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5099   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5100   /usr/ucb/* ) ;;
5101   *)
5102     # OSF1 and SCO ODT 3.0 have their own names for install.
5103     # Don't use installbsd from OSF since it installs stuff as root
5104     # by default.
5105     for ac_prog in ginstall scoinst install; do
5106       for ac_exec_ext in '' $ac_executable_extensions; do
5107         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5108           if test $ac_prog = install &&
5109             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5110             # AIX install.  It has an incompatible calling convention.
5111             :
5112           elif test $ac_prog = install &&
5113             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5114             # program-specific install script used by HP pwplus--don't use.
5115             :
5116           else
5117             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5118             break 3
5119           fi
5120         fi
5121       done
5122     done
5123     ;;
5124 esac
5125 done
5126
5127
5128 fi
5129   if test "${ac_cv_path_install+set}" = set; then
5130     INSTALL=$ac_cv_path_install
5131   else
5132     # As a last resort, use the slow shell script.  We don't cache a
5133     # path for INSTALL within a source directory, because that will
5134     # break other packages using the cache if that directory is
5135     # removed, or if the path is relative.
5136     INSTALL=$ac_install_sh
5137   fi
5138 fi
5139 echo "$as_me:$LINENO: result: $INSTALL" >&5
5140 echo "${ECHO_T}$INSTALL" >&6
5141
5142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5143 # It thinks the first close brace ends the variable substitution.
5144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5145
5146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5147
5148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5149
5150
5151 # Extract the first word of "bzip2", so it can be a program name with args.
5152 set dummy bzip2; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_path_BZIP2+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158   case $BZIP2 in
5159   [\\/]* | ?:[\\/]*)
5160   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5161   ;;
5162   *)
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175 done
5176
5177   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5178   ;;
5179 esac
5180 fi
5181 BZIP2=$ac_cv_path_BZIP2
5182
5183 if test -n "$BZIP2"; then
5184   echo "$as_me:$LINENO: result: $BZIP2" >&5
5185 echo "${ECHO_T}$BZIP2" >&6
5186 else
5187   echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5189 fi
5190
5191 # Extract the first word of "dot", so it can be a program name with args.
5192 set dummy dot; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_path_DOT+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   case $DOT in
5199   [\\/]* | ?:[\\/]*)
5200   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5201   ;;
5202   *)
5203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208   for ac_exec_ext in '' $ac_executable_extensions; do
5209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215 done
5216
5217   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5218   ;;
5219 esac
5220 fi
5221 DOT=$ac_cv_path_DOT
5222
5223 if test -n "$DOT"; then
5224   echo "$as_me:$LINENO: result: $DOT" >&5
5225 echo "${ECHO_T}$DOT" >&6
5226 else
5227   echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5229 fi
5230
5231 # Extract the first word of "doxygen", so it can be a program name with args.
5232 set dummy doxygen; ac_word=$2
5233 echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   case $DOXYGEN in
5239   [\\/]* | ?:[\\/]*)
5240   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5241   ;;
5242   *)
5243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256
5257   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5258   ;;
5259 esac
5260 fi
5261 DOXYGEN=$ac_cv_path_DOXYGEN
5262
5263 if test -n "$DOXYGEN"; then
5264   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5265 echo "${ECHO_T}$DOXYGEN" >&6
5266 else
5267   echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5269 fi
5270
5271 # Extract the first word of "etags", so it can be a program name with args.
5272 set dummy etags; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_path_ETAGS+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   case $ETAGS in
5279   [\\/]* | ?:[\\/]*)
5280   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5281   ;;
5282   *)
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288   for ac_exec_ext in '' $ac_executable_extensions; do
5289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295 done
5296
5297   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5298   ;;
5299 esac
5300 fi
5301 ETAGS=$ac_cv_path_ETAGS
5302
5303 if test -n "$ETAGS"; then
5304   echo "$as_me:$LINENO: result: $ETAGS" >&5
5305 echo "${ECHO_T}$ETAGS" >&6
5306 else
5307   echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5309 fi
5310
5311 # Extract the first word of "groff", so it can be a program name with args.
5312 set dummy groff; ac_word=$2
5313 echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315 if test "${ac_cv_path_GROFF+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   case $GROFF in
5319   [\\/]* | ?:[\\/]*)
5320   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5321   ;;
5322   *)
5323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328   for ac_exec_ext in '' $ac_executable_extensions; do
5329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335 done
5336
5337   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5338   ;;
5339 esac
5340 fi
5341 GROFF=$ac_cv_path_GROFF
5342
5343 if test -n "$GROFF"; then
5344   echo "$as_me:$LINENO: result: $GROFF" >&5
5345 echo "${ECHO_T}$GROFF" >&6
5346 else
5347   echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5349 fi
5350
5351 # Extract the first word of "gzip", so it can be a program name with args.
5352 set dummy gzip; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_path_GZIP+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   case $GZIP in
5359   [\\/]* | ?:[\\/]*)
5360   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5361   ;;
5362   *)
5363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368   for ac_exec_ext in '' $ac_executable_extensions; do
5369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375 done
5376
5377   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5378   ;;
5379 esac
5380 fi
5381 GZIP=$ac_cv_path_GZIP
5382
5383 if test -n "$GZIP"; then
5384   echo "$as_me:$LINENO: result: $GZIP" >&5
5385 echo "${ECHO_T}$GZIP" >&6
5386 else
5387   echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5389 fi
5390
5391 # Extract the first word of "pod2html", so it can be a program name with args.
5392 set dummy pod2html; ac_word=$2
5393 echo "$as_me:$LINENO: checking for $ac_word" >&5
5394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5395 if test "${ac_cv_path_POD2HTML+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   case $POD2HTML in
5399   [\\/]* | ?:[\\/]*)
5400   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5401   ;;
5402   *)
5403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408   for ac_exec_ext in '' $ac_executable_extensions; do
5409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415 done
5416
5417   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5418   ;;
5419 esac
5420 fi
5421 POD2HTML=$ac_cv_path_POD2HTML
5422
5423 if test -n "$POD2HTML"; then
5424   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5425 echo "${ECHO_T}$POD2HTML" >&6
5426 else
5427   echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6
5429 fi
5430
5431 # Extract the first word of "pod2man", so it can be a program name with args.
5432 set dummy pod2man; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_path_POD2MAN+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   case $POD2MAN in
5439   [\\/]* | ?:[\\/]*)
5440   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5441   ;;
5442   *)
5443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448   for ac_exec_ext in '' $ac_executable_extensions; do
5449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455 done
5456
5457   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5458   ;;
5459 esac
5460 fi
5461 POD2MAN=$ac_cv_path_POD2MAN
5462
5463 if test -n "$POD2MAN"; then
5464   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5465 echo "${ECHO_T}$POD2MAN" >&6
5466 else
5467   echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6
5469 fi
5470
5471 # Extract the first word of "runtest", so it can be a program name with args.
5472 set dummy runtest; ac_word=$2
5473 echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475 if test "${ac_cv_path_RUNTEST+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   case $RUNTEST in
5479   [\\/]* | ?:[\\/]*)
5480   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5481   ;;
5482   *)
5483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488   for ac_exec_ext in '' $ac_executable_extensions; do
5489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495 done
5496
5497   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5498   ;;
5499 esac
5500 fi
5501 RUNTEST=$ac_cv_path_RUNTEST
5502
5503 if test -n "$RUNTEST"; then
5504   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5505 echo "${ECHO_T}$RUNTEST" >&6
5506 else
5507   echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6
5509 fi
5510
5511
5512 no_itcl=true
5513 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5514 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5515
5516 # Check whether --with-tclinclude or --without-tclinclude was given.
5517 if test "${with_tclinclude+set}" = set; then
5518   withval="$with_tclinclude"
5519   with_tclinclude=${withval}
5520 else
5521   with_tclinclude=''
5522 fi;
5523 if test "${ac_cv_path_tclsh+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526
5527 if test x"${with_tclinclude}" != x ; then
5528   if test -f ${with_tclinclude}/tclsh ; then
5529     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5530   elif test -f ${with_tclinclude}/src/tclsh ; then
5531     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5532   else
5533     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5534 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5535    { (exit 1); exit 1; }; }
5536   fi
5537 fi
5538
5539 if test x"${ac_cv_path_tclsh}" = x ; then
5540   echo "$as_me:$LINENO: result: none" >&5
5541 echo "${ECHO_T}none" >&6
5542   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
5543 do
5544   # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_path_TCLSH+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   case $TCLSH in
5552   [\\/]* | ?:[\\/]*)
5553   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5554   ;;
5555   *)
5556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_exec_ext in '' $ac_executable_extensions; do
5562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568 done
5569
5570   ;;
5571 esac
5572 fi
5573 TCLSH=$ac_cv_path_TCLSH
5574
5575 if test -n "$TCLSH"; then
5576   echo "$as_me:$LINENO: result: $TCLSH" >&5
5577 echo "${ECHO_T}$TCLSH" >&6
5578 else
5579   echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6
5581 fi
5582
5583   test -n "$TCLSH" && break
5584 done
5585
5586   if test x"${TCLSH}" = x ; then
5587     ac_cv_path_tclsh='';
5588   else
5589     ac_cv_path_tclsh="${TCLSH}";
5590   fi
5591 else
5592   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5593 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5594   TCLSH="${ac_cv_path_tclsh}"
5595
5596 fi
5597
5598 fi
5599
5600 # Extract the first word of "zip", so it can be a program name with args.
5601 set dummy zip; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_ZIP+set}" = set; then
5605   echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607   case $ZIP in
5608   [\\/]* | ?:[\\/]*)
5609   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5610   ;;
5611   *)
5612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625
5626   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5627   ;;
5628 esac
5629 fi
5630 ZIP=$ac_cv_path_ZIP
5631
5632 if test -n "$ZIP"; then
5633   echo "$as_me:$LINENO: result: $ZIP" >&5
5634 echo "${ECHO_T}$ZIP" >&6
5635 else
5636   echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5638 fi
5639
5640
5641 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5642 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5643 if test "${llvm_cv_link_use_r+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646    ac_ext=c
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652   oldcflags="$CFLAGS"
5653   CFLAGS="$CFLAGS -Wl,-R."
5654   cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660
5661 int
5662 main ()
5663 {
5664 int main() { return 0; }
5665   ;
5666   return 0;
5667 }
5668 _ACEOF
5669 rm -f conftest.$ac_objext conftest$ac_exeext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671   (eval $ac_link) 2>conftest.er1
5672   ac_status=$?
5673   grep -v '^ *+' conftest.er1 >conftest.err
5674   rm -f conftest.er1
5675   cat conftest.err >&5
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } &&
5678          { ac_try='test -z "$ac_c_werror_flag"
5679                          || test ! -s conftest.err'
5680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681   (eval $ac_try) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; } &&
5685          { ac_try='test -s conftest$ac_exeext'
5686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687   (eval $ac_try) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; }; then
5691   llvm_cv_link_use_r=yes
5692 else
5693   echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696 llvm_cv_link_use_r=no
5697 fi
5698 rm -f conftest.err conftest.$ac_objext \
5699       conftest$ac_exeext conftest.$ac_ext
5700   CFLAGS="$oldcflags"
5701   ac_ext=c
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706
5707
5708 fi
5709 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5710 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5711 if test "$llvm_cv_link_use_r" = yes ; then
5712
5713 cat >>confdefs.h <<\_ACEOF
5714 #define HAVE_LINK_R 1
5715 _ACEOF
5716
5717   fi
5718
5719
5720
5721
5722 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5723 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5724 if test "${ac_cv_c_const+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h.  */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h.  */
5733
5734 int
5735 main ()
5736 {
5737 /* FIXME: Include the comments suggested by Paul. */
5738 #ifndef __cplusplus
5739   /* Ultrix mips cc rejects this.  */
5740   typedef int charset[2];
5741   const charset x;
5742   /* SunOS 4.1.1 cc rejects this.  */
5743   char const *const *ccp;
5744   char **p;
5745   /* NEC SVR4.0.2 mips cc rejects this.  */
5746   struct point {int x, y;};
5747   static struct point const zero = {0,0};
5748   /* AIX XL C 1.02.0.0 rejects this.
5749      It does not let you subtract one const X* pointer from another in
5750      an arm of an if-expression whose if-part is not a constant
5751      expression */
5752   const char *g = "string";
5753   ccp = &g + (g ? g-g : 0);
5754   /* HPUX 7.0 cc rejects these. */
5755   ++ccp;
5756   p = (char**) ccp;
5757   ccp = (char const *const *) p;
5758   { /* SCO 3.2v4 cc rejects this.  */
5759     char *t;
5760     char const *s = 0 ? (char *) 0 : (char const *) 0;
5761
5762     *t++ = 0;
5763   }
5764   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5765     int x[] = {25, 17};
5766     const int *foo = &x[0];
5767     ++foo;
5768   }
5769   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5770     typedef const int *iptr;
5771     iptr p = 0;
5772     ++p;
5773   }
5774   { /* AIX XL C 1.02.0.0 rejects this saying
5775        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5776     struct s { int j; const int *ap[3]; };
5777     struct s *b; b->j = 5;
5778   }
5779   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5780     const int foo = 10;
5781   }
5782 #endif
5783
5784   ;
5785   return 0;
5786 }
5787 _ACEOF
5788 rm -f conftest.$ac_objext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790   (eval $ac_compile) 2>conftest.er1
5791   ac_status=$?
5792   grep -v '^ *+' conftest.er1 >conftest.err
5793   rm -f conftest.er1
5794   cat conftest.err >&5
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } &&
5797          { ac_try='test -z "$ac_c_werror_flag"
5798                          || test ! -s conftest.err'
5799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800   (eval $ac_try) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); }; } &&
5804          { ac_try='test -s conftest.$ac_objext'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; }; then
5810   ac_cv_c_const=yes
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 ac_cv_c_const=no
5816 fi
5817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5818 fi
5819 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5820 echo "${ECHO_T}$ac_cv_c_const" >&6
5821 if test $ac_cv_c_const = no; then
5822
5823 cat >>confdefs.h <<\_ACEOF
5824 #define const
5825 _ACEOF
5826
5827 fi
5828
5829
5830 echo "$as_me:$LINENO: checking for egrep" >&5
5831 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5832 if test "${ac_cv_prog_egrep+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5836     then ac_cv_prog_egrep='grep -E'
5837     else ac_cv_prog_egrep='egrep'
5838     fi
5839 fi
5840 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5841 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5842  EGREP=$ac_cv_prog_egrep
5843
5844
5845 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5847 if test "${ac_cv_header_stdc+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856 #include <stdlib.h>
5857 #include <stdarg.h>
5858 #include <string.h>
5859 #include <float.h>
5860
5861 int
5862 main ()
5863 {
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_c_werror_flag"
5879                          || test ! -s conftest.err'
5880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881   (eval $ac_try) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; } &&
5885          { ac_try='test -s conftest.$ac_objext'
5886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887   (eval $ac_try) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }; }; then
5891   ac_cv_header_stdc=yes
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 ac_cv_header_stdc=no
5897 fi
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899
5900 if test $ac_cv_header_stdc = yes; then
5901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5902   cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908 #include <string.h>
5909
5910 _ACEOF
5911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5912   $EGREP "memchr" >/dev/null 2>&1; then
5913   :
5914 else
5915   ac_cv_header_stdc=no
5916 fi
5917 rm -f conftest*
5918
5919 fi
5920
5921 if test $ac_cv_header_stdc = yes; then
5922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5923   cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h.  */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h.  */
5929 #include <stdlib.h>
5930
5931 _ACEOF
5932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5933   $EGREP "free" >/dev/null 2>&1; then
5934   :
5935 else
5936   ac_cv_header_stdc=no
5937 fi
5938 rm -f conftest*
5939
5940 fi
5941
5942 if test $ac_cv_header_stdc = yes; then
5943   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5944   if test "$cross_compiling" = yes; then
5945   :
5946 else
5947   cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h.  */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h.  */
5953 #include <ctype.h>
5954 #if ((' ' & 0x0FF) == 0x020)
5955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5957 #else
5958 # define ISLOWER(c) \
5959                    (('a' <= (c) && (c) <= 'i') \
5960                      || ('j' <= (c) && (c) <= 'r') \
5961                      || ('s' <= (c) && (c) <= 'z'))
5962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5963 #endif
5964
5965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5966 int
5967 main ()
5968 {
5969   int i;
5970   for (i = 0; i < 256; i++)
5971     if (XOR (islower (i), ISLOWER (i))
5972         || toupper (i) != TOUPPER (i))
5973       exit(2);
5974   exit (0);
5975 }
5976 _ACEOF
5977 rm -f conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979   (eval $ac_link) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   :
5989 else
5990   echo "$as_me: program exited with status $ac_status" >&5
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 ( exit $ac_status )
5995 ac_cv_header_stdc=no
5996 fi
5997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5998 fi
5999 fi
6000 fi
6001 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6003 if test $ac_cv_header_stdc = yes; then
6004
6005 cat >>confdefs.h <<\_ACEOF
6006 #define STDC_HEADERS 1
6007 _ACEOF
6008
6009 fi
6010
6011
6012
6013
6014
6015
6016 ac_header_dirent=no
6017 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6018   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6019 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6020 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h.  */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h.  */
6030 #include <sys/types.h>
6031 #include <$ac_hdr>
6032
6033 int
6034 main ()
6035 {
6036 if ((DIR *) 0)
6037 return 0;
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044   (eval $ac_compile) 2>conftest.er1
6045   ac_status=$?
6046   grep -v '^ *+' conftest.er1 >conftest.err
6047   rm -f conftest.er1
6048   cat conftest.err >&5
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } &&
6051          { ac_try='test -z "$ac_c_werror_flag"
6052                          || test ! -s conftest.err'
6053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054   (eval $ac_try) 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }; } &&
6058          { ac_try='test -s conftest.$ac_objext'
6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060   (eval $ac_try) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; }; then
6064   eval "$as_ac_Header=yes"
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 eval "$as_ac_Header=no"
6070 fi
6071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6076   cat >>confdefs.h <<_ACEOF
6077 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6078 _ACEOF
6079
6080 ac_header_dirent=$ac_hdr; break
6081 fi
6082
6083 done
6084 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6085 if test $ac_header_dirent = dirent.h; then
6086   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6087 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6088 if test "${ac_cv_search_opendir+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   ac_func_search_save_LIBS=$LIBS
6092 ac_cv_search_opendir=no
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099
6100 /* Override any gcc2 internal prototype to avoid an error.  */
6101 #ifdef __cplusplus
6102 extern "C"
6103 #endif
6104 /* We use char because int might match the return type of a gcc2
6105    builtin and then its argument prototype would still apply.  */
6106 char opendir ();
6107 int
6108 main ()
6109 {
6110 opendir ();
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117   (eval $ac_link) 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -z "$ac_c_werror_flag"
6125                          || test ! -s conftest.err'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; } &&
6131          { ac_try='test -s conftest$ac_exeext'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; }; then
6137   ac_cv_search_opendir="none required"
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 fi
6143 rm -f conftest.err conftest.$ac_objext \
6144       conftest$ac_exeext conftest.$ac_ext
6145 if test "$ac_cv_search_opendir" = no; then
6146   for ac_lib in dir; do
6147     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6148     cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154
6155 /* Override any gcc2 internal prototype to avoid an error.  */
6156 #ifdef __cplusplus
6157 extern "C"
6158 #endif
6159 /* We use char because int might match the return type of a gcc2
6160    builtin and then its argument prototype would still apply.  */
6161 char opendir ();
6162 int
6163 main ()
6164 {
6165 opendir ();
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172   (eval $ac_link) 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } &&
6179          { ac_try='test -z "$ac_c_werror_flag"
6180                          || test ! -s conftest.err'
6181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182   (eval $ac_try) 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; } &&
6186          { ac_try='test -s conftest$ac_exeext'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; }; then
6192   ac_cv_search_opendir="-l$ac_lib"
6193 break
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 fi
6199 rm -f conftest.err conftest.$ac_objext \
6200       conftest$ac_exeext conftest.$ac_ext
6201   done
6202 fi
6203 LIBS=$ac_func_search_save_LIBS
6204 fi
6205 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6206 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6207 if test "$ac_cv_search_opendir" != no; then
6208   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6209
6210 fi
6211
6212 else
6213   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6214 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6215 if test "${ac_cv_search_opendir+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   ac_func_search_save_LIBS=$LIBS
6219 ac_cv_search_opendir=no
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226
6227 /* Override any gcc2 internal prototype to avoid an error.  */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 /* We use char because int might match the return type of a gcc2
6232    builtin and then its argument prototype would still apply.  */
6233 char opendir ();
6234 int
6235 main ()
6236 {
6237 opendir ();
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244   (eval $ac_link) 2>conftest.er1
6245   ac_status=$?
6246   grep -v '^ *+' conftest.er1 >conftest.err
6247   rm -f conftest.er1
6248   cat conftest.err >&5
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); } &&
6251          { ac_try='test -z "$ac_c_werror_flag"
6252                          || test ! -s conftest.err'
6253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254   (eval $ac_try) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; } &&
6258          { ac_try='test -s conftest$ac_exeext'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; }; then
6264   ac_cv_search_opendir="none required"
6265 else
6266   echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 fi
6270 rm -f conftest.err conftest.$ac_objext \
6271       conftest$ac_exeext conftest.$ac_ext
6272 if test "$ac_cv_search_opendir" = no; then
6273   for ac_lib in x; do
6274     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6275     cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h.  */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h.  */
6281
6282 /* Override any gcc2 internal prototype to avoid an error.  */
6283 #ifdef __cplusplus
6284 extern "C"
6285 #endif
6286 /* We use char because int might match the return type of a gcc2
6287    builtin and then its argument prototype would still apply.  */
6288 char opendir ();
6289 int
6290 main ()
6291 {
6292 opendir ();
6293   ;
6294   return 0;
6295 }
6296 _ACEOF
6297 rm -f conftest.$ac_objext conftest$ac_exeext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299   (eval $ac_link) 2>conftest.er1
6300   ac_status=$?
6301   grep -v '^ *+' conftest.er1 >conftest.err
6302   rm -f conftest.er1
6303   cat conftest.err >&5
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); } &&
6306          { ac_try='test -z "$ac_c_werror_flag"
6307                          || test ! -s conftest.err'
6308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309   (eval $ac_try) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }; } &&
6313          { ac_try='test -s conftest$ac_exeext'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; }; then
6319   ac_cv_search_opendir="-l$ac_lib"
6320 break
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 fi
6326 rm -f conftest.err conftest.$ac_objext \
6327       conftest$ac_exeext conftest.$ac_ext
6328   done
6329 fi
6330 LIBS=$ac_func_search_save_LIBS
6331 fi
6332 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6333 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6334 if test "$ac_cv_search_opendir" != no; then
6335   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6336
6337 fi
6338
6339 fi
6340
6341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6352                   inttypes.h stdint.h unistd.h
6353 do
6354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 echo "$as_me:$LINENO: checking for $ac_header" >&5
6356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 $ac_includes_default
6367
6368 #include <$ac_header>
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372   (eval $ac_compile) 2>conftest.er1
6373   ac_status=$?
6374   grep -v '^ *+' conftest.er1 >conftest.err
6375   rm -f conftest.er1
6376   cat conftest.err >&5
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); } &&
6379          { ac_try='test -z "$ac_c_werror_flag"
6380                          || test ! -s conftest.err'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; } &&
6386          { ac_try='test -s conftest.$ac_objext'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; }; then
6392   eval "$as_ac_Header=yes"
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 eval "$as_ac_Header=no"
6398 fi
6399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6400 fi
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404   cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 _ACEOF
6407
6408 fi
6409
6410 done
6411
6412
6413
6414 for ac_header in dlfcn.h
6415 do
6416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418   echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 fi
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 else
6426   # Is the header compilable?
6427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 $ac_includes_default
6436 #include <$ac_header>
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440   (eval $ac_compile) 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
6444   cat conftest.err >&5
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); } &&
6447          { ac_try='test -z "$ac_c_werror_flag"
6448                          || test ! -s conftest.err'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; } &&
6454          { ac_try='test -s conftest.$ac_objext'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   ac_header_compiler=yes
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 ac_header_compiler=no
6466 fi
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6469 echo "${ECHO_T}$ac_header_compiler" >&6
6470
6471 # Is the header present?
6472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h.  */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h.  */
6480 #include <$ac_header>
6481 _ACEOF
6482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6484   ac_status=$?
6485   grep -v '^ *+' conftest.er1 >conftest.err
6486   rm -f conftest.er1
6487   cat conftest.err >&5
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } >/dev/null; then
6490   if test -s conftest.err; then
6491     ac_cpp_err=$ac_c_preproc_warn_flag
6492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6493   else
6494     ac_cpp_err=
6495   fi
6496 else
6497   ac_cpp_err=yes
6498 fi
6499 if test -z "$ac_cpp_err"; then
6500   ac_header_preproc=yes
6501 else
6502   echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505   ac_header_preproc=no
6506 fi
6507 rm -f conftest.err conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6509 echo "${ECHO_T}$ac_header_preproc" >&6
6510
6511 # So?  What about this header?
6512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6513   yes:no: )
6514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6518     ac_header_preproc=yes
6519     ;;
6520   no:yes:* )
6521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6533     (
6534       cat <<\_ASBOX
6535 ## ----------------------------------- ##
6536 ## Report this to llvmbugs@cs.uiuc.edu ##
6537 ## ----------------------------------- ##
6538 _ASBOX
6539     ) |
6540       sed "s/^/$as_me: WARNING:     /" >&2
6541     ;;
6542 esac
6543 echo "$as_me:$LINENO: checking for $ac_header" >&5
6544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   eval "$as_ac_Header=\$ac_header_preproc"
6549 fi
6550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6552
6553 fi
6554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6555   cat >>confdefs.h <<_ACEOF
6556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6557 _ACEOF
6558
6559 fi
6560
6561 done
6562
6563 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6564 if test "${enable_ltdl_install+set}" = set; then
6565   enableval="$enable_ltdl_install"
6566
6567 fi;
6568
6569
6570
6571 if test x"${enable_ltdl_install-no}" != xno; then
6572   INSTALL_LTDL_TRUE=
6573   INSTALL_LTDL_FALSE='#'
6574 else
6575   INSTALL_LTDL_TRUE='#'
6576   INSTALL_LTDL_FALSE=
6577 fi
6578
6579
6580
6581 if test x"${enable_ltdl_convenience-no}" != xno; then
6582   CONVENIENCE_LTDL_TRUE=
6583   CONVENIENCE_LTDL_FALSE='#'
6584 else
6585   CONVENIENCE_LTDL_TRUE='#'
6586   CONVENIENCE_LTDL_FALSE=
6587 fi
6588
6589
6590 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6592 library_names_spec=
6593 libname_spec='lib$name'
6594 soname_spec=
6595 shrext_cmds=".so"
6596 postinstall_cmds=
6597 postuninstall_cmds=
6598 finish_cmds=
6599 finish_eval=
6600 shlibpath_var=
6601 shlibpath_overrides_runpath=unknown
6602 version_type=none
6603 dynamic_linker="$host_os ld.so"
6604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6605 if test "$GCC" = yes; then
6606   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6607   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6608     # if the path contains ";" then we assume it to be the separator
6609     # otherwise default to the standard path separator (i.e. ":") - it is
6610     # assumed that no part of a normal pathname contains ";" but that should
6611     # okay in the real world where ";" in dirpaths is itself problematic.
6612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6613   else
6614     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6615   fi
6616 else
6617   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6618 fi
6619 need_lib_prefix=unknown
6620 hardcode_into_libs=no
6621
6622 # when you set need_version to no, make sure it does not cause -set_version
6623 # flags to be left without arguments
6624 need_version=unknown
6625
6626 case $host_os in
6627 aix3*)
6628   version_type=linux
6629   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6630   shlibpath_var=LIBPATH
6631
6632   # AIX 3 has no versioning support, so we append a major version to the name.
6633   soname_spec='${libname}${release}${shared_ext}$major'
6634   ;;
6635
6636 aix4* | aix5*)
6637   version_type=linux
6638   need_lib_prefix=no
6639   need_version=no
6640   hardcode_into_libs=yes
6641   if test "$host_cpu" = ia64; then
6642     # AIX 5 supports IA64
6643     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6644     shlibpath_var=LD_LIBRARY_PATH
6645   else
6646     # With GCC up to 2.95.x, collect2 would create an import file
6647     # for dependence libraries.  The import file would start with
6648     # the line `#! .'.  This would cause the generated library to
6649     # depend on `.', always an invalid library.  This was fixed in
6650     # development snapshots of GCC prior to 3.0.
6651     case $host_os in
6652       aix4 | aix4.[01] | aix4.[01].*)
6653       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6654            echo ' yes '
6655            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6656         :
6657       else
6658         can_build_shared=no
6659       fi
6660       ;;
6661     esac
6662     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6663     # soname into executable. Probably we can add versioning support to
6664     # collect2, so additional links can be useful in future.
6665     if test "$aix_use_runtimelinking" = yes; then
6666       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6667       # instead of lib<name>.a to let people know that these are not
6668       # typical AIX shared libraries.
6669       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6670     else
6671       # We preserve .a as extension for shared libraries through AIX4.2
6672       # and later when we are not doing run time linking.
6673       library_names_spec='${libname}${release}.a $libname.a'
6674       soname_spec='${libname}${release}${shared_ext}$major'
6675     fi
6676     shlibpath_var=LIBPATH
6677   fi
6678   ;;
6679
6680 amigaos*)
6681   library_names_spec='$libname.ixlibrary $libname.a'
6682   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6683   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'
6684   ;;
6685
6686 beos*)
6687   library_names_spec='${libname}${shared_ext}'
6688   dynamic_linker="$host_os ld.so"
6689   shlibpath_var=LIBRARY_PATH
6690   ;;
6691
6692 bsdi[45]*)
6693   version_type=linux
6694   need_version=no
6695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6696   soname_spec='${libname}${release}${shared_ext}$major'
6697   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6698   shlibpath_var=LD_LIBRARY_PATH
6699   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6700   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6701   # the default ld.so.conf also contains /usr/contrib/lib and
6702   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6703   # libtool to hard-code these into programs
6704   ;;
6705
6706 cygwin* | mingw* | pw32*)
6707   version_type=windows
6708   shrext_cmds=".dll"
6709   need_version=no
6710   need_lib_prefix=no
6711
6712   case $GCC,$host_os in
6713   yes,cygwin* | yes,mingw* | yes,pw32*)
6714     library_names_spec='$libname.dll.a'
6715     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6716     postinstall_cmds='base_file=`basename \${file}`~
6717       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6718       dldir=$destdir/`dirname \$dlpath`~
6719       test -d \$dldir || mkdir -p \$dldir~
6720       $install_prog $dir/$dlname \$dldir/$dlname'
6721     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6722       dlpath=$dir/\$dldll~
6723        $rm \$dlpath'
6724     shlibpath_overrides_runpath=yes
6725
6726     case $host_os in
6727     cygwin*)
6728       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6729       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6730       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6731       ;;
6732     mingw*)
6733       # MinGW DLLs use traditional 'lib' prefix
6734       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6735       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6736       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6737         # It is most probably a Windows format PATH printed by
6738         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6739         # path with ; separators, and with drive letters. We can handle the
6740         # drive letters (cygwin fileutils understands them), so leave them,
6741         # especially as we might pass files found there to a mingw objdump,
6742         # which wouldn't understand a cygwinified path. Ahh.
6743         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6744       else
6745         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6746       fi
6747       ;;
6748     pw32*)
6749       # pw32 DLLs use 'pw' prefix rather than 'lib'
6750       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6751       ;;
6752     esac
6753     ;;
6754
6755   *)
6756     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6757     ;;
6758   esac
6759   dynamic_linker='Win32 ld.exe'
6760   # FIXME: first we should search . and the directory the executable is in
6761   shlibpath_var=PATH
6762   ;;
6763
6764 darwin* | rhapsody*)
6765   dynamic_linker="$host_os dyld"
6766   version_type=darwin
6767   need_lib_prefix=no
6768   need_version=no
6769   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6770   soname_spec='${libname}${release}${major}$shared_ext'
6771   shlibpath_overrides_runpath=yes
6772   shlibpath_var=DYLD_LIBRARY_PATH
6773   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6774   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6775   if test "$GCC" = yes; then
6776     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"`
6777   else
6778     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6779   fi
6780   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6781   ;;
6782
6783 dgux*)
6784   version_type=linux
6785   need_lib_prefix=no
6786   need_version=no
6787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6788   soname_spec='${libname}${release}${shared_ext}$major'
6789   shlibpath_var=LD_LIBRARY_PATH
6790   ;;
6791
6792 freebsd1*)
6793   dynamic_linker=no
6794   ;;
6795
6796 kfreebsd*-gnu)
6797   version_type=linux
6798   need_lib_prefix=no
6799   need_version=no
6800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6801   soname_spec='${libname}${release}${shared_ext}$major'
6802   shlibpath_var=LD_LIBRARY_PATH
6803   shlibpath_overrides_runpath=no
6804   hardcode_into_libs=yes
6805   dynamic_linker='GNU ld.so'
6806   ;;
6807
6808 freebsd*)
6809   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6810   version_type=freebsd-$objformat
6811   case $version_type in
6812     freebsd-elf*)
6813       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6814       need_version=no
6815       need_lib_prefix=no
6816       ;;
6817     freebsd-*)
6818       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6819       need_version=yes
6820       ;;
6821   esac
6822   shlibpath_var=LD_LIBRARY_PATH
6823   case $host_os in
6824   freebsd2*)
6825     shlibpath_overrides_runpath=yes
6826     ;;
6827   freebsd3.01* | freebsdelf3.01*)
6828     shlibpath_overrides_runpath=yes
6829     hardcode_into_libs=yes
6830     ;;
6831   *) # from 3.2 on
6832     shlibpath_overrides_runpath=no
6833     hardcode_into_libs=yes
6834     ;;
6835   esac
6836   ;;
6837
6838 gnu*)
6839   version_type=linux
6840   need_lib_prefix=no
6841   need_version=no
6842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6843   soname_spec='${libname}${release}${shared_ext}$major'
6844   shlibpath_var=LD_LIBRARY_PATH
6845   hardcode_into_libs=yes
6846   ;;
6847
6848 hpux9* | hpux10* | hpux11*)
6849   # Give a soname corresponding to the major version so that dld.sl refuses to
6850   # link against other versions.
6851   version_type=sunos
6852   need_lib_prefix=no
6853   need_version=no
6854   case "$host_cpu" in
6855   ia64*)
6856     shrext_cmds='.so'
6857     hardcode_into_libs=yes
6858     dynamic_linker="$host_os dld.so"
6859     shlibpath_var=LD_LIBRARY_PATH
6860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6862     soname_spec='${libname}${release}${shared_ext}$major'
6863     if test "X$HPUX_IA64_MODE" = X32; then
6864       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6865     else
6866       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6867     fi
6868     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6869     ;;
6870    hppa*64*)
6871      shrext_cmds='.sl'
6872      hardcode_into_libs=yes
6873      dynamic_linker="$host_os dld.sl"
6874      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6875      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6879      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6880      ;;
6881    *)
6882     shrext_cmds='.sl'
6883     dynamic_linker="$host_os dld.sl"
6884     shlibpath_var=SHLIB_PATH
6885     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6887     soname_spec='${libname}${release}${shared_ext}$major'
6888     ;;
6889   esac
6890   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6891   postinstall_cmds='chmod 555 $lib'
6892   ;;
6893
6894 irix5* | irix6* | nonstopux*)
6895   case $host_os in
6896     nonstopux*) version_type=nonstopux ;;
6897     *)
6898         if test "$lt_cv_prog_gnu_ld" = yes; then
6899                 version_type=linux
6900         else
6901                 version_type=irix
6902         fi ;;
6903   esac
6904   need_lib_prefix=no
6905   need_version=no
6906   soname_spec='${libname}${release}${shared_ext}$major'
6907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6908   case $host_os in
6909   irix5* | nonstopux*)
6910     libsuff= shlibsuff=
6911     ;;
6912   *)
6913     case $LD in # libtool.m4 will add one of these switches to LD
6914     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6915       libsuff= shlibsuff= libmagic=32-bit;;
6916     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6917       libsuff=32 shlibsuff=N32 libmagic=N32;;
6918     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6919       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6920     *) libsuff= shlibsuff= libmagic=never-match;;
6921     esac
6922     ;;
6923   esac
6924   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6925   shlibpath_overrides_runpath=no
6926   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6927   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6928   hardcode_into_libs=yes
6929   ;;
6930
6931 # No shared lib support for Linux oldld, aout, or coff.
6932 linux*oldld* | linux*aout* | linux*coff*)
6933   dynamic_linker=no
6934   ;;
6935
6936 # This must be Linux ELF.
6937 linux*)
6938   version_type=linux
6939   need_lib_prefix=no
6940   need_version=no
6941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6942   soname_spec='${libname}${release}${shared_ext}$major'
6943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6944   shlibpath_var=LD_LIBRARY_PATH
6945   shlibpath_overrides_runpath=no
6946   # This implies no fast_install, which is unacceptable.
6947   # Some rework will be needed to allow for fast_install
6948   # before this can be enabled.
6949   hardcode_into_libs=yes
6950
6951   # Append ld.so.conf contents to the search path
6952   if test -f /etc/ld.so.conf; then
6953     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6954     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6955   fi
6956
6957   # We used to test for /lib/ld.so.1 and disable shared libraries on
6958   # powerpc, because MkLinux only supported shared libraries with the
6959   # GNU dynamic linker.  Since this was broken with cross compilers,
6960   # most powerpc-linux boxes support dynamic linking these days and
6961   # people can always --disable-shared, the test was removed, and we
6962   # assume the GNU/Linux dynamic linker is in use.
6963   dynamic_linker='GNU/Linux ld.so'
6964   ;;
6965
6966 knetbsd*-gnu)
6967   version_type=linux
6968   need_lib_prefix=no
6969   need_version=no
6970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6971   soname_spec='${libname}${release}${shared_ext}$major'
6972   shlibpath_var=LD_LIBRARY_PATH
6973   shlibpath_overrides_runpath=no
6974   hardcode_into_libs=yes
6975   dynamic_linker='GNU ld.so'
6976   ;;
6977
6978 netbsd*)
6979   version_type=sunos
6980   need_lib_prefix=no
6981   need_version=no
6982   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6984     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6985     dynamic_linker='NetBSD (a.out) ld.so'
6986   else
6987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6988     soname_spec='${libname}${release}${shared_ext}$major'
6989     dynamic_linker='NetBSD ld.elf_so'
6990   fi
6991   shlibpath_var=LD_LIBRARY_PATH
6992   shlibpath_overrides_runpath=yes
6993   hardcode_into_libs=yes
6994   ;;
6995
6996 newsos6)
6997   version_type=linux
6998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6999   shlibpath_var=LD_LIBRARY_PATH
7000   shlibpath_overrides_runpath=yes
7001   ;;
7002
7003 nto-qnx*)
7004   version_type=linux
7005   need_lib_prefix=no
7006   need_version=no
7007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7008   soname_spec='${libname}${release}${shared_ext}$major'
7009   shlibpath_var=LD_LIBRARY_PATH
7010   shlibpath_overrides_runpath=yes
7011   ;;
7012
7013 openbsd*)
7014   version_type=sunos
7015   need_lib_prefix=no
7016   need_version=no
7017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7019   shlibpath_var=LD_LIBRARY_PATH
7020   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7021     case $host_os in
7022       openbsd2.[89] | openbsd2.[89].*)
7023         shlibpath_overrides_runpath=no
7024         ;;
7025       *)
7026         shlibpath_overrides_runpath=yes
7027         ;;
7028       esac
7029   else
7030     shlibpath_overrides_runpath=yes
7031   fi
7032   ;;
7033
7034 os2*)
7035   libname_spec='$name'
7036   shrext_cmds=".dll"
7037   need_lib_prefix=no
7038   library_names_spec='$libname${shared_ext} $libname.a'
7039   dynamic_linker='OS/2 ld.exe'
7040   shlibpath_var=LIBPATH
7041   ;;
7042
7043 osf3* | osf4* | osf5*)
7044   version_type=osf
7045   need_lib_prefix=no
7046   need_version=no
7047   soname_spec='${libname}${release}${shared_ext}$major'
7048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7049   shlibpath_var=LD_LIBRARY_PATH
7050   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7051   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7052   ;;
7053
7054 sco3.2v5*)
7055   version_type=osf
7056   soname_spec='${libname}${release}${shared_ext}$major'
7057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7058   shlibpath_var=LD_LIBRARY_PATH
7059   ;;
7060
7061 solaris*)
7062   version_type=linux
7063   need_lib_prefix=no
7064   need_version=no
7065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7066   soname_spec='${libname}${release}${shared_ext}$major'
7067   shlibpath_var=LD_LIBRARY_PATH
7068   shlibpath_overrides_runpath=yes
7069   hardcode_into_libs=yes
7070   # ldd complains unless libraries are executable
7071   postinstall_cmds='chmod +x $lib'
7072   ;;
7073
7074 sunos4*)
7075   version_type=sunos
7076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7077   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7078   shlibpath_var=LD_LIBRARY_PATH
7079   shlibpath_overrides_runpath=yes
7080   if test "$with_gnu_ld" = yes; then
7081     need_lib_prefix=no
7082   fi
7083   need_version=yes
7084   ;;
7085
7086 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7087   version_type=linux
7088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7089   soname_spec='${libname}${release}${shared_ext}$major'
7090   shlibpath_var=LD_LIBRARY_PATH
7091   case $host_vendor in
7092     sni)
7093       shlibpath_overrides_runpath=no
7094       need_lib_prefix=no
7095       export_dynamic_flag_spec='${wl}-Blargedynsym'
7096       runpath_var=LD_RUN_PATH
7097       ;;
7098     siemens)
7099       need_lib_prefix=no
7100       ;;
7101     motorola)
7102       need_lib_prefix=no
7103       need_version=no
7104       shlibpath_overrides_runpath=no
7105       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7106       ;;
7107   esac
7108   ;;
7109
7110 sysv4*MP*)
7111   if test -d /usr/nec ;then
7112     version_type=linux
7113     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7114     soname_spec='$libname${shared_ext}.$major'
7115     shlibpath_var=LD_LIBRARY_PATH
7116   fi
7117   ;;
7118
7119 uts4*)
7120   version_type=linux
7121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7122   soname_spec='${libname}${release}${shared_ext}$major'
7123   shlibpath_var=LD_LIBRARY_PATH
7124   ;;
7125
7126 *)
7127   dynamic_linker=no
7128   ;;
7129 esac
7130 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7131 echo "${ECHO_T}$dynamic_linker" >&6
7132 test "$dynamic_linker" = no && can_build_shared=no
7133
7134
7135 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7136 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7137 if test "${libltdl_cv_shlibext+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140
7141 module=yes
7142 eval libltdl_cv_shlibext=$shrext_cmds
7143
7144 fi
7145 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7146 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7147 if test -n "$libltdl_cv_shlibext"; then
7148
7149 cat >>confdefs.h <<_ACEOF
7150 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7151 _ACEOF
7152
7153 fi
7154
7155
7156 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7157 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7158 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   libltdl_cv_shlibpath_var="$shlibpath_var"
7162 fi
7163 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7164 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7165 if test -n "$libltdl_cv_shlibpath_var"; then
7166
7167 cat >>confdefs.h <<_ACEOF
7168 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7169 _ACEOF
7170
7171 fi
7172
7173
7174 echo "$as_me:$LINENO: checking for the default library search path" >&5
7175 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7176 if test "${libltdl_cv_sys_search_path+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7180 fi
7181 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7182 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7183 if test -n "$libltdl_cv_sys_search_path"; then
7184   sys_search_path=
7185   for dir in $libltdl_cv_sys_search_path; do
7186     if test -z "$sys_search_path"; then
7187       sys_search_path="$dir"
7188     else
7189       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7190     fi
7191   done
7192
7193 cat >>confdefs.h <<_ACEOF
7194 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7195 _ACEOF
7196
7197 fi
7198
7199 echo "$as_me:$LINENO: checking for objdir" >&5
7200 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7201 if test "${libltdl_cv_objdir+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   libltdl_cv_objdir="$objdir"
7205   if test -n "$objdir"; then
7206     :
7207   else
7208     rm -f .libs 2>/dev/null
7209     mkdir .libs 2>/dev/null
7210     if test -d .libs; then
7211       libltdl_cv_objdir=.libs
7212     else
7213       # MS-DOS does not allow filenames that begin with a dot.
7214       libltdl_cv_objdir=_libs
7215     fi
7216   rmdir .libs 2>/dev/null
7217   fi
7218
7219 fi
7220 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7221 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7222
7223 cat >>confdefs.h <<_ACEOF
7224 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7225 _ACEOF
7226
7227
7228 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7229 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7230 if test "${lt_cv_path_NM+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   if test -n "$NM"; then
7234   # Let the user override the test.
7235   lt_cv_path_NM="$NM"
7236 else
7237   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7238   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7239     IFS="$lt_save_ifs"
7240     test -z "$ac_dir" && ac_dir=.
7241     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7242     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7243       # Check to see if the nm accepts a BSD-compat flag.
7244       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7245       #   nm: unknown option "B" ignored
7246       # Tru64's nm complains that /dev/null is an invalid object file
7247       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7248       */dev/null* | *'Invalid file or object type'*)
7249         lt_cv_path_NM="$tmp_nm -B"
7250         break
7251         ;;
7252       *)
7253         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7254         */dev/null*)
7255           lt_cv_path_NM="$tmp_nm -p"
7256           break
7257           ;;
7258         *)
7259           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7260           continue # so that we can try to find one that supports BSD flags
7261           ;;
7262         esac
7263       esac
7264     fi
7265   done
7266   IFS="$lt_save_ifs"
7267   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7268 fi
7269 fi
7270 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7271 echo "${ECHO_T}$lt_cv_path_NM" >&6
7272 NM="$lt_cv_path_NM"
7273
7274
7275
7276
7277
7278 # Check for command to grab the raw symbol name followed by C symbol from nm.
7279 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7280 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7281 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284
7285 # These are sane defaults that work on at least a few old systems.
7286 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7287
7288 # Character class describing NM global symbol codes.
7289 symcode='[BCDEGRST]'
7290
7291 # Regexp to match symbols that can be accessed directly from C.
7292 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7293
7294 # Transform the above into a raw symbol and a C symbol.
7295 symxfrm='\1 \2\3 \3'
7296
7297 # Transform an extracted symbol line into a proper C declaration
7298 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7299
7300 # Transform an extracted symbol line into symbol name and symbol address
7301 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'"
7302
7303 # Define system-specific variables.
7304 case $host_os in
7305 aix*)
7306   symcode='[BCDT]'
7307   ;;
7308 cygwin* | mingw* | pw32*)
7309   symcode='[ABCDGISTW]'
7310   ;;
7311 hpux*) # Its linker distinguishes data from code symbols
7312   if test "$host_cpu" = ia64; then
7313     symcode='[ABCDEGRST]'
7314   fi
7315   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7316   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'"
7317   ;;
7318 linux*)
7319   if test "$host_cpu" = ia64; then
7320     symcode='[ABCDGIRSTW]'
7321     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7322     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'"
7323   fi
7324   ;;
7325 irix* | nonstopux*)
7326   symcode='[BCDEGRST]'
7327   ;;
7328 osf*)
7329   symcode='[BCDEGQRST]'
7330   ;;
7331 solaris* | sysv5*)
7332   symcode='[BDRT]'
7333   ;;
7334 sysv4)
7335   symcode='[DFNSTU]'
7336   ;;
7337 esac
7338
7339 # Handle CRLF in mingw tool chain
7340 opt_cr=
7341 case $build_os in
7342 mingw*)
7343   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7344   ;;
7345 esac
7346
7347 # If we're using GNU nm, then use its standard symbol codes.
7348 case `$NM -V 2>&1` in
7349 *GNU* | *'with BFD'*)
7350   symcode='[ABCDGIRSTW]' ;;
7351 esac
7352
7353 # Try without a prefix undercore, then with it.
7354 for ac_symprfx in "" "_"; do
7355
7356   # Write the raw and C identifiers.
7357   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7358
7359   # Check to see that the pipe works correctly.
7360   pipe_works=no
7361
7362   rm -f conftest*
7363   cat > conftest.$ac_ext <<EOF
7364 #ifdef __cplusplus
7365 extern "C" {
7366 #endif
7367 char nm_test_var;
7368 void nm_test_func(){}
7369 #ifdef __cplusplus
7370 }
7371 #endif
7372 int main(){nm_test_var='a';nm_test_func();return(0);}
7373 EOF
7374
7375   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376   (eval $ac_compile) 2>&5
7377   ac_status=$?
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); }; then
7380     # Now try to grab the symbols.
7381     nlist=conftest.nm
7382     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7383   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } && test -s "$nlist"; then
7387       # Try sorting and uniquifying the output.
7388       if sort "$nlist" | uniq > "$nlist"T; then
7389         mv -f "$nlist"T "$nlist"
7390       else
7391         rm -f "$nlist"T
7392       fi
7393
7394       # Make sure that we snagged all the symbols we need.
7395       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7396         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7397           cat <<EOF > conftest.$ac_ext
7398 #ifdef __cplusplus
7399 extern "C" {
7400 #endif
7401
7402 EOF
7403           # Now generate the symbol file.
7404           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7405
7406           cat <<EOF >> conftest.$ac_ext
7407 #if defined (__STDC__) && __STDC__
7408 # define lt_ptr_t void *
7409 #else
7410 # define lt_ptr_t char *
7411 # define const
7412 #endif
7413
7414 /* The mapping between symbol names and symbols. */
7415 const struct {
7416   const char *name;
7417   lt_ptr_t address;
7418 }
7419 lt_preloaded_symbols[] =
7420 {
7421 EOF
7422           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7423           cat <<\EOF >> conftest.$ac_ext
7424   {0, (lt_ptr_t) 0}
7425 };
7426
7427 #ifdef __cplusplus
7428 }
7429 #endif
7430 EOF
7431           # Now try linking the two files.
7432           mv conftest.$ac_objext conftstm.$ac_objext
7433           lt_save_LIBS="$LIBS"
7434           lt_save_CFLAGS="$CFLAGS"
7435           LIBS="conftstm.$ac_objext"
7436           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7437           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438   (eval $ac_link) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7442             pipe_works=yes
7443           fi
7444           LIBS="$lt_save_LIBS"
7445           CFLAGS="$lt_save_CFLAGS"
7446         else
7447           echo "cannot find nm_test_func in $nlist" >&5
7448         fi
7449       else
7450         echo "cannot find nm_test_var in $nlist" >&5
7451       fi
7452     else
7453       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7454     fi
7455   else
7456     echo "$progname: failed program was:" >&5
7457     cat conftest.$ac_ext >&5
7458   fi
7459   rm -f conftest* conftst*
7460
7461   # Do not use the global_symbol_pipe unless it works.
7462   if test "$pipe_works" = yes; then
7463     break
7464   else
7465     lt_cv_sys_global_symbol_pipe=
7466   fi
7467 done
7468
7469 fi
7470
7471 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7472   lt_cv_sys_global_symbol_to_cdecl=
7473 fi
7474 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7475   echo "$as_me:$LINENO: result: failed" >&5
7476 echo "${ECHO_T}failed" >&6
7477 else
7478   echo "$as_me:$LINENO: result: ok" >&5
7479 echo "${ECHO_T}ok" >&6
7480 fi
7481
7482
7483 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7484 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7485 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7489     libltdl_cv_preloaded_symbols=yes
7490   else
7491     libltdl_cv_preloaded_symbols=no
7492   fi
7493
7494 fi
7495 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7496 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7497 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_PRELOADED_SYMBOLS 1
7501 _ACEOF
7502
7503 fi
7504
7505 LIBADD_DL=
7506
7507 ac_ext=c
7508 ac_cpp='$CPP $CPPFLAGS'
7509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512
7513
7514 echo "$as_me:$LINENO: checking for shl_load" >&5
7515 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7516 if test "${ac_cv_func_shl_load+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h.  */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h.  */
7525 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7527 #define shl_load innocuous_shl_load
7528
7529 /* System header to define __stub macros and hopefully few prototypes,
7530     which can conflict with char shl_load (); below.
7531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532     <limits.h> exists even on freestanding compilers.  */
7533
7534 #ifdef __STDC__
7535 # include <limits.h>
7536 #else
7537 # include <assert.h>
7538 #endif
7539
7540 #undef shl_load
7541
7542 /* Override any gcc2 internal prototype to avoid an error.  */
7543 #ifdef __cplusplus
7544 extern "C"
7545 {
7546 #endif
7547 /* We use char because int might match the return type of a gcc2
7548    builtin and then its argument prototype would still apply.  */
7549 char shl_load ();
7550 /* The GNU C library defines this for functions which it implements
7551     to always fail with ENOSYS.  Some functions are actually named
7552     something starting with __ and the normal name is an alias.  */
7553 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7554 choke me
7555 #else
7556 char (*f) () = shl_load;
7557 #endif
7558 #ifdef __cplusplus
7559 }
7560 #endif
7561
7562 int
7563 main ()
7564 {
7565 return f != shl_load;
7566   ;
7567   return 0;
7568 }
7569 _ACEOF
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572   (eval $ac_link) 2>conftest.er1
7573   ac_status=$?
7574   grep -v '^ *+' conftest.er1 >conftest.err
7575   rm -f conftest.er1
7576   cat conftest.err >&5
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } &&
7579          { ac_try='test -z "$ac_c_werror_flag"
7580                          || test ! -s conftest.err'
7581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582   (eval $ac_try) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; } &&
7586          { ac_try='test -s conftest$ac_exeext'
7587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588   (eval $ac_try) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; }; then
7592   ac_cv_func_shl_load=yes
7593 else
7594   echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 ac_cv_func_shl_load=no
7598 fi
7599 rm -f conftest.err conftest.$ac_objext \
7600       conftest$ac_exeext conftest.$ac_ext
7601 fi
7602 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7603 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7604 if test $ac_cv_func_shl_load = yes; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_SHL_LOAD 1
7608 _ACEOF
7609
7610 else
7611   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7612 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7613 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   ac_check_lib_save_LIBS=$LIBS
7617 LIBS="-ldld  $LIBS"
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624
7625 /* Override any gcc2 internal prototype to avoid an error.  */
7626 #ifdef __cplusplus
7627 extern "C"
7628 #endif
7629 /* We use char because int might match the return type of a gcc2
7630    builtin and then its argument prototype would still apply.  */
7631 char shl_load ();
7632 int
7633 main ()
7634 {
7635 shl_load ();
7636   ;
7637   return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642   (eval $ac_link) 2>conftest.er1
7643   ac_status=$?
7644   grep -v '^ *+' conftest.er1 >conftest.err
7645   rm -f conftest.er1
7646   cat conftest.err >&5
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); } &&
7649          { ac_try='test -z "$ac_c_werror_flag"
7650                          || test ! -s conftest.err'
7651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652   (eval $ac_try) 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); }; } &&
7656          { ac_try='test -s conftest$ac_exeext'
7657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658   (eval $ac_try) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); }; }; then
7662   ac_cv_lib_dld_shl_load=yes
7663 else
7664   echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7666
7667 ac_cv_lib_dld_shl_load=no
7668 fi
7669 rm -f conftest.err conftest.$ac_objext \
7670       conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7672 fi
7673 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7674 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7675 if test $ac_cv_lib_dld_shl_load = yes; then
7676
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_SHL_LOAD 1
7679 _ACEOF
7680
7681         LIBADD_DL="$LIBADD_DL -ldld"
7682 else
7683   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   ac_check_lib_save_LIBS=$LIBS
7689 LIBS="-ldl  $LIBS"
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696
7697 /* Override any gcc2 internal prototype to avoid an error.  */
7698 #ifdef __cplusplus
7699 extern "C"
7700 #endif
7701 /* We use char because int might match the return type of a gcc2
7702    builtin and then its argument prototype would still apply.  */
7703 char dlopen ();
7704 int
7705 main ()
7706 {
7707 dlopen ();
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714   (eval $ac_link) 2>conftest.er1
7715   ac_status=$?
7716   grep -v '^ *+' conftest.er1 >conftest.err
7717   rm -f conftest.er1
7718   cat conftest.err >&5
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); } &&
7721          { ac_try='test -z "$ac_c_werror_flag"
7722                          || test ! -s conftest.err'
7723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724   (eval $ac_try) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); }; } &&
7728          { ac_try='test -s conftest$ac_exeext'
7729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; }; then
7734   ac_cv_lib_dl_dlopen=yes
7735 else
7736   echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ac_cv_lib_dl_dlopen=no
7740 fi
7741 rm -f conftest.err conftest.$ac_objext \
7742       conftest$ac_exeext conftest.$ac_ext
7743 LIBS=$ac_check_lib_save_LIBS
7744 fi
7745 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7747 if test $ac_cv_lib_dl_dlopen = yes; then
7748
7749 cat >>confdefs.h <<\_ACEOF
7750 #define HAVE_LIBDL 1
7751 _ACEOF
7752
7753                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7754 else
7755   cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761 #if HAVE_DLFCN_H
7762 #  include <dlfcn.h>
7763 #endif
7764
7765 int
7766 main ()
7767 {
7768 dlopen(0, 0);
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775   (eval $ac_link) 2>conftest.er1
7776   ac_status=$?
7777   grep -v '^ *+' conftest.er1 >conftest.err
7778   rm -f conftest.er1
7779   cat conftest.err >&5
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); } &&
7782          { ac_try='test -z "$ac_c_werror_flag"
7783                          || test ! -s conftest.err'
7784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785   (eval $ac_try) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; } &&
7789          { ac_try='test -s conftest$ac_exeext'
7790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791   (eval $ac_try) 2>&5
7792   ac_status=$?
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); }; }; then
7795
7796 cat >>confdefs.h <<\_ACEOF
7797 #define HAVE_LIBDL 1
7798 _ACEOF
7799  libltdl_cv_func_dlopen="yes"
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7805 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7806 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   ac_check_lib_save_LIBS=$LIBS
7810 LIBS="-lsvld  $LIBS"
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817
7818 /* Override any gcc2 internal prototype to avoid an error.  */
7819 #ifdef __cplusplus
7820 extern "C"
7821 #endif
7822 /* We use char because int might match the return type of a gcc2
7823    builtin and then its argument prototype would still apply.  */
7824 char dlopen ();
7825 int
7826 main ()
7827 {
7828 dlopen ();
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext conftest$ac_exeext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835   (eval $ac_link) 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -z "$ac_c_werror_flag"
7843                          || test ! -s conftest.err'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest$ac_exeext'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   ac_cv_lib_svld_dlopen=yes
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 ac_cv_lib_svld_dlopen=no
7861 fi
7862 rm -f conftest.err conftest.$ac_objext \
7863       conftest$ac_exeext conftest.$ac_ext
7864 LIBS=$ac_check_lib_save_LIBS
7865 fi
7866 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7867 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7868 if test $ac_cv_lib_svld_dlopen = yes; then
7869
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_LIBDL 1
7872 _ACEOF
7873
7874                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7875 else
7876   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7877 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7878 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   ac_check_lib_save_LIBS=$LIBS
7882 LIBS="-ldld  $LIBS"
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h.  */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h.  */
7889
7890 /* Override any gcc2 internal prototype to avoid an error.  */
7891 #ifdef __cplusplus
7892 extern "C"
7893 #endif
7894 /* We use char because int might match the return type of a gcc2
7895    builtin and then its argument prototype would still apply.  */
7896 char dld_link ();
7897 int
7898 main ()
7899 {
7900 dld_link ();
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907   (eval $ac_link) 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -z "$ac_c_werror_flag"
7915                          || test ! -s conftest.err'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; } &&
7921          { ac_try='test -s conftest$ac_exeext'
7922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923   (eval $ac_try) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; }; then
7927   ac_cv_lib_dld_dld_link=yes
7928 else
7929   echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 ac_cv_lib_dld_dld_link=no
7933 fi
7934 rm -f conftest.err conftest.$ac_objext \
7935       conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_lib_save_LIBS
7937 fi
7938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7939 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7940 if test $ac_cv_lib_dld_dld_link = yes; then
7941
7942 cat >>confdefs.h <<\_ACEOF
7943 #define HAVE_DLD 1
7944 _ACEOF
7945
7946                 LIBADD_DL="$LIBADD_DL -ldld"
7947 else
7948   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7949 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7950 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7961 #define _dyld_func_lookup innocuous__dyld_func_lookup
7962
7963 /* System header to define __stub macros and hopefully few prototypes,
7964     which can conflict with char _dyld_func_lookup (); below.
7965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7966     <limits.h> exists even on freestanding compilers.  */
7967
7968 #ifdef __STDC__
7969 # include <limits.h>
7970 #else
7971 # include <assert.h>
7972 #endif
7973
7974 #undef _dyld_func_lookup
7975
7976 /* Override any gcc2 internal prototype to avoid an error.  */
7977 #ifdef __cplusplus
7978 extern "C"
7979 {
7980 #endif
7981 /* We use char because int might match the return type of a gcc2
7982    builtin and then its argument prototype would still apply.  */
7983 char _dyld_func_lookup ();
7984 /* The GNU C library defines this for functions which it implements
7985     to always fail with ENOSYS.  Some functions are actually named
7986     something starting with __ and the normal name is an alias.  */
7987 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7988 choke me
7989 #else
7990 char (*f) () = _dyld_func_lookup;
7991 #endif
7992 #ifdef __cplusplus
7993 }
7994 #endif
7995
7996 int
7997 main ()
7998 {
7999 return f != _dyld_func_lookup;
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006   (eval $ac_link) 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } &&
8013          { ac_try='test -z "$ac_c_werror_flag"
8014                          || test ! -s conftest.err'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; } &&
8020          { ac_try='test -s conftest$ac_exeext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_cv_func__dyld_func_lookup=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ac_cv_func__dyld_func_lookup=no
8032 fi
8033 rm -f conftest.err conftest.$ac_objext \
8034       conftest$ac_exeext conftest.$ac_ext
8035 fi
8036 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8037 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8038 if test $ac_cv_func__dyld_func_lookup = yes; then
8039
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_DYLD 1
8042 _ACEOF
8043
8044 fi
8045
8046
8047 fi
8048
8049
8050 fi
8051
8052
8053 fi
8054 rm -f conftest.err conftest.$ac_objext \
8055       conftest$ac_exeext conftest.$ac_ext
8056
8057 fi
8058
8059
8060 fi
8061
8062
8063 fi
8064
8065
8066 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8067 then
8068   lt_save_LIBS="$LIBS"
8069   LIBS="$LIBS $LIBADD_DL"
8070
8071 for ac_func in dlerror
8072 do
8073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8074 echo "$as_me:$LINENO: checking for $ac_func" >&5
8075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8076 if eval "test \"\${$as_ac_var+set}\" = set"; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8087 #define $ac_func innocuous_$ac_func
8088
8089 /* System header to define __stub macros and hopefully few prototypes,
8090     which can conflict with char $ac_func (); below.
8091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8092     <limits.h> exists even on freestanding compilers.  */
8093
8094 #ifdef __STDC__
8095 # include <limits.h>
8096 #else
8097 # include <assert.h>
8098 #endif
8099
8100 #undef $ac_func
8101
8102 /* Override any gcc2 internal prototype to avoid an error.  */
8103 #ifdef __cplusplus
8104 extern "C"
8105 {
8106 #endif
8107 /* We use char because int might match the return type of a gcc2
8108    builtin and then its argument prototype would still apply.  */
8109 char $ac_func ();
8110 /* The GNU C library defines this for functions which it implements
8111     to always fail with ENOSYS.  Some functions are actually named
8112     something starting with __ and the normal name is an alias.  */
8113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8114 choke me
8115 #else
8116 char (*f) () = $ac_func;
8117 #endif
8118 #ifdef __cplusplus
8119 }
8120 #endif
8121
8122 int
8123 main ()
8124 {
8125 return f != $ac_func;
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132   (eval $ac_link) 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } &&
8139          { ac_try='test -z "$ac_c_werror_flag"
8140                          || test ! -s conftest.err'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; } &&
8146          { ac_try='test -s conftest$ac_exeext'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; }; then
8152   eval "$as_ac_var=yes"
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 eval "$as_ac_var=no"
8158 fi
8159 rm -f conftest.err conftest.$ac_objext \
8160       conftest$ac_exeext conftest.$ac_ext
8161 fi
8162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8164 if test `eval echo '${'$as_ac_var'}'` = yes; then
8165   cat >>confdefs.h <<_ACEOF
8166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8167 _ACEOF
8168
8169 fi
8170 done
8171
8172   LIBS="$lt_save_LIBS"
8173 fi
8174 ac_ext=c
8175 ac_cpp='$CPP $CPPFLAGS'
8176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8179
8180
8181
8182 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8183 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8184 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   ac_cv_sys_symbol_underscore=no
8188   cat > conftest.$ac_ext <<EOF
8189 void nm_test_func(){}
8190 int main(){nm_test_func;return 0;}
8191 EOF
8192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193   (eval $ac_compile) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; then
8197     # Now try to grab the symbols.
8198     ac_nlist=conftest.nm
8199     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8200   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } && test -s "$ac_nlist"; then
8204       # See whether the symbols have a leading underscore.
8205       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8206         ac_cv_sys_symbol_underscore=yes
8207       else
8208         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8209           :
8210         else
8211           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8212         fi
8213       fi
8214     else
8215       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8216     fi
8217   else
8218     echo "configure: failed program was:" >&5
8219     cat conftest.c >&5
8220   fi
8221   rm -rf conftest*
8222
8223 fi
8224 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8225 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8226
8227
8228 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8229   if test x"$libltdl_cv_func_dlopen" = xyes ||
8230      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8231         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8232 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8233 if test "${libltdl_cv_need_uscore+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236   libltdl_cv_need_uscore=unknown
8237           save_LIBS="$LIBS"
8238           LIBS="$LIBS $LIBADD_DL"
8239           if test "$cross_compiling" = yes; then :
8240   libltdl_cv_need_uscore=cross
8241 else
8242   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8243   lt_status=$lt_dlunknown
8244   cat > conftest.$ac_ext <<EOF
8245 #line 8245 "configure"
8246 #include "confdefs.h"
8247
8248 #if HAVE_DLFCN_H
8249 #include <dlfcn.h>
8250 #endif
8251
8252 #include <stdio.h>
8253
8254 #ifdef RTLD_GLOBAL
8255 #  define LT_DLGLOBAL           RTLD_GLOBAL
8256 #else
8257 #  ifdef DL_GLOBAL
8258 #    define LT_DLGLOBAL         DL_GLOBAL
8259 #  else
8260 #    define LT_DLGLOBAL         0
8261 #  endif
8262 #endif
8263
8264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8265    find out it does not work in some platform. */
8266 #ifndef LT_DLLAZY_OR_NOW
8267 #  ifdef RTLD_LAZY
8268 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8269 #  else
8270 #    ifdef DL_LAZY
8271 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8272 #    else
8273 #      ifdef RTLD_NOW
8274 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8275 #      else
8276 #        ifdef DL_NOW
8277 #          define LT_DLLAZY_OR_NOW      DL_NOW
8278 #        else
8279 #          define LT_DLLAZY_OR_NOW      0
8280 #        endif
8281 #      endif
8282 #    endif
8283 #  endif
8284 #endif
8285
8286 #ifdef __cplusplus
8287 extern "C" void exit (int);
8288 #endif
8289
8290 void fnord() { int i=42;}
8291 int main ()
8292 {
8293   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8294   int status = $lt_dlunknown;
8295
8296   if (self)
8297     {
8298       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8299       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8300       /* dlclose (self); */
8301     }
8302
8303     exit (status);
8304 }
8305 EOF
8306   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307   (eval $ac_link) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8311     (./conftest; exit; ) 2>/dev/null
8312     lt_status=$?
8313     case x$lt_status in
8314       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8315       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8316       x$lt_unknown|x*)  ;;
8317     esac
8318   else :
8319     # compilation failed
8320
8321   fi
8322 fi
8323 rm -fr conftest*
8324
8325           LIBS="$save_LIBS"
8326
8327 fi
8328 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8329 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8330   fi
8331 fi
8332
8333 if test x"$libltdl_cv_need_uscore" = xyes; then
8334
8335 cat >>confdefs.h <<\_ACEOF
8336 #define NEED_USCORE 1
8337 _ACEOF
8338
8339 fi
8340
8341
8342 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8343 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8344 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   # PORTME does your system automatically load deplibs for dlopen?
8348   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8349   # For now, we just catch OSes we know something about -- in the
8350   # future, we'll try test this programmatically.
8351   libltdl_cv_sys_dlopen_deplibs=unknown
8352   case "$host_os" in
8353   aix3*|aix4.1.*|aix4.2.*)
8354     # Unknown whether this is true for these versions of AIX, but
8355     # we want this `case' here to explicitly catch those versions.
8356     libltdl_cv_sys_dlopen_deplibs=unknown
8357     ;;
8358   aix[45]*)
8359     libltdl_cv_sys_dlopen_deplibs=yes
8360     ;;
8361   darwin*)
8362     # Assuming the user has installed a libdl from somewhere, this is true
8363     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8364     libltdl_cv_sys_dlopen_deplibs=yes
8365     ;;
8366   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8367     # GNU and its variants, using gnu ld.so (Glibc)
8368     libltdl_cv_sys_dlopen_deplibs=yes
8369     ;;
8370   hpux10*|hpux11*)
8371     libltdl_cv_sys_dlopen_deplibs=yes
8372     ;;
8373   irix[12345]*|irix6.[01]*)
8374     # Catch all versions of IRIX before 6.2, and indicate that we don't
8375     # know how it worked for any of those versions.
8376     libltdl_cv_sys_dlopen_deplibs=unknown
8377     ;;
8378   irix*)
8379     # The case above catches anything before 6.2, and it's known that
8380     # at 6.2 and later dlopen does load deplibs.
8381     libltdl_cv_sys_dlopen_deplibs=yes
8382     ;;
8383   netbsd*)
8384     libltdl_cv_sys_dlopen_deplibs=yes
8385     ;;
8386   openbsd*)
8387     libltdl_cv_sys_dlopen_deplibs=yes
8388     ;;
8389   osf[1234]*)
8390     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8391     # it did *not* use an RPATH in a shared library to find objects the
8392     # library depends on, so we explictly say `no'.
8393     libltdl_cv_sys_dlopen_deplibs=no
8394     ;;
8395   osf5.0|osf5.0a|osf5.1)
8396     # dlopen *does* load deplibs and with the right loader patch applied
8397     # it even uses RPATH in a shared library to search for shared objects
8398     # that the library depends on, but there's no easy way to know if that
8399     # patch is installed.  Since this is the case, all we can really
8400     # say is unknown -- it depends on the patch being installed.  If
8401     # it is, this changes to `yes'.  Without it, it would be `no'.
8402     libltdl_cv_sys_dlopen_deplibs=unknown
8403     ;;
8404   osf*)
8405     # the two cases above should catch all versions of osf <= 5.1.  Read
8406     # the comments above for what we know about them.
8407     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8408     # is used to find them so we can finally say `yes'.
8409     libltdl_cv_sys_dlopen_deplibs=yes
8410     ;;
8411   solaris*)
8412     libltdl_cv_sys_dlopen_deplibs=yes
8413     ;;
8414   esac
8415
8416 fi
8417 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8418 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8419 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8420
8421 cat >>confdefs.h <<\_ACEOF
8422 #define LTDL_DLOPEN_DEPLIBS 1
8423 _ACEOF
8424
8425 fi
8426
8427
8428 for ac_header in argz.h
8429 do
8430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8432   echo "$as_me:$LINENO: checking for $ac_header" >&5
8433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 fi
8437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439 else
8440   # Is the header compilable?
8441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 $ac_includes_default
8450 #include <$ac_header>
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454   (eval $ac_compile) 2>conftest.er1
8455   ac_status=$?
8456   grep -v '^ *+' conftest.er1 >conftest.err
8457   rm -f conftest.er1
8458   cat conftest.err >&5
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } &&
8461          { ac_try='test -z "$ac_c_werror_flag"
8462                          || test ! -s conftest.err'
8463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464   (eval $ac_try) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; } &&
8468          { ac_try='test -s conftest.$ac_objext'
8469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470   (eval $ac_try) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   ac_header_compiler=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 ac_header_compiler=no
8480 fi
8481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8483 echo "${ECHO_T}$ac_header_compiler" >&6
8484
8485 # Is the header present?
8486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494 #include <$ac_header>
8495 _ACEOF
8496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8498   ac_status=$?
8499   grep -v '^ *+' conftest.er1 >conftest.err
8500   rm -f conftest.er1
8501   cat conftest.err >&5
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); } >/dev/null; then
8504   if test -s conftest.err; then
8505     ac_cpp_err=$ac_c_preproc_warn_flag
8506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8507   else
8508     ac_cpp_err=
8509   fi
8510 else
8511   ac_cpp_err=yes
8512 fi
8513 if test -z "$ac_cpp_err"; then
8514   ac_header_preproc=yes
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519   ac_header_preproc=no
8520 fi
8521 rm -f conftest.err conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6
8524
8525 # So?  What about this header?
8526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527   yes:no: )
8528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532     ac_header_preproc=yes
8533     ;;
8534   no:yes:* )
8535     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8542 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8547     (
8548       cat <<\_ASBOX
8549 ## ----------------------------------- ##
8550 ## Report this to llvmbugs@cs.uiuc.edu ##
8551 ## ----------------------------------- ##
8552 _ASBOX
8553     ) |
8554       sed "s/^/$as_me: WARNING:     /" >&2
8555     ;;
8556 esac
8557 echo "$as_me:$LINENO: checking for $ac_header" >&5
8558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562   eval "$as_ac_Header=\$ac_header_preproc"
8563 fi
8564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8566
8567 fi
8568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569   cat >>confdefs.h <<_ACEOF
8570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 _ACEOF
8572
8573 fi
8574
8575 done
8576
8577
8578 echo "$as_me:$LINENO: checking for error_t" >&5
8579 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8580 if test "${ac_cv_type_error_t+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589 #if HAVE_ARGZ_H
8590 #  include <argz.h>
8591 #endif
8592
8593 int
8594 main ()
8595 {
8596 if ((error_t *) 0)
8597   return 0;
8598 if (sizeof (error_t))
8599   return 0;
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606   (eval $ac_compile) 2>conftest.er1
8607   ac_status=$?
8608   grep -v '^ *+' conftest.er1 >conftest.err
8609   rm -f conftest.er1
8610   cat conftest.err >&5
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -z "$ac_c_werror_flag"
8614                          || test ! -s conftest.err'
8615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616   (eval $ac_try) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }; } &&
8620          { ac_try='test -s conftest.$ac_objext'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; }; then
8626   ac_cv_type_error_t=yes
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 ac_cv_type_error_t=no
8632 fi
8633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8636 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8637 if test $ac_cv_type_error_t = yes; then
8638
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_ERROR_T 1
8641 _ACEOF
8642
8643
8644 else
8645
8646 cat >>confdefs.h <<\_ACEOF
8647 #define error_t int
8648 _ACEOF
8649
8650 fi
8651
8652
8653
8654
8655
8656
8657
8658 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8659 do
8660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8661 echo "$as_me:$LINENO: checking for $ac_func" >&5
8662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8663 if eval "test \"\${$as_ac_var+set}\" = set"; then
8664   echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666   cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h.  */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h.  */
8672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8674 #define $ac_func innocuous_$ac_func
8675
8676 /* System header to define __stub macros and hopefully few prototypes,
8677     which can conflict with char $ac_func (); below.
8678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8679     <limits.h> exists even on freestanding compilers.  */
8680
8681 #ifdef __STDC__
8682 # include <limits.h>
8683 #else
8684 # include <assert.h>
8685 #endif
8686
8687 #undef $ac_func
8688
8689 /* Override any gcc2 internal prototype to avoid an error.  */
8690 #ifdef __cplusplus
8691 extern "C"
8692 {
8693 #endif
8694 /* We use char because int might match the return type of a gcc2
8695    builtin and then its argument prototype would still apply.  */
8696 char $ac_func ();
8697 /* The GNU C library defines this for functions which it implements
8698     to always fail with ENOSYS.  Some functions are actually named
8699     something starting with __ and the normal name is an alias.  */
8700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701 choke me
8702 #else
8703 char (*f) () = $ac_func;
8704 #endif
8705 #ifdef __cplusplus
8706 }
8707 #endif
8708
8709 int
8710 main ()
8711 {
8712 return f != $ac_func;
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 rm -f conftest.$ac_objext conftest$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719   (eval $ac_link) 2>conftest.er1
8720   ac_status=$?
8721   grep -v '^ *+' conftest.er1 >conftest.err
8722   rm -f conftest.er1
8723   cat conftest.err >&5
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } &&
8726          { ac_try='test -z "$ac_c_werror_flag"
8727                          || test ! -s conftest.err'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; } &&
8733          { ac_try='test -s conftest$ac_exeext'
8734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735   (eval $ac_try) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }; }; then
8739   eval "$as_ac_var=yes"
8740 else
8741   echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 eval "$as_ac_var=no"
8745 fi
8746 rm -f conftest.err conftest.$ac_objext \
8747       conftest$ac_exeext conftest.$ac_ext
8748 fi
8749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8751 if test `eval echo '${'$as_ac_var'}'` = yes; then
8752   cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8754 _ACEOF
8755
8756 fi
8757 done
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8787                   stdio.h unistd.h
8788 do
8789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8791   echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 fi
8796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8798 else
8799   # Is the header compilable?
8800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 $ac_includes_default
8809 #include <$ac_header>
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813   (eval $ac_compile) 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -z "$ac_c_werror_flag"
8821                          || test ! -s conftest.err'
8822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823   (eval $ac_try) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); }; } &&
8827          { ac_try='test -s conftest.$ac_objext'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; }; then
8833   ac_header_compiler=yes
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838 ac_header_compiler=no
8839 fi
8840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8842 echo "${ECHO_T}$ac_header_compiler" >&6
8843
8844 # Is the header present?
8845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853 #include <$ac_header>
8854 _ACEOF
8855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8857   ac_status=$?
8858   grep -v '^ *+' conftest.er1 >conftest.err
8859   rm -f conftest.er1
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } >/dev/null; then
8863   if test -s conftest.err; then
8864     ac_cpp_err=$ac_c_preproc_warn_flag
8865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8866   else
8867     ac_cpp_err=
8868   fi
8869 else
8870   ac_cpp_err=yes
8871 fi
8872 if test -z "$ac_cpp_err"; then
8873   ac_header_preproc=yes
8874 else
8875   echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8877
8878   ac_header_preproc=no
8879 fi
8880 rm -f conftest.err conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8882 echo "${ECHO_T}$ac_header_preproc" >&6
8883
8884 # So?  What about this header?
8885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8886   yes:no: )
8887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8891     ac_header_preproc=yes
8892     ;;
8893   no:yes:* )
8894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8906     (
8907       cat <<\_ASBOX
8908 ## ----------------------------------- ##
8909 ## Report this to llvmbugs@cs.uiuc.edu ##
8910 ## ----------------------------------- ##
8911 _ASBOX
8912     ) |
8913       sed "s/^/$as_me: WARNING:     /" >&2
8914     ;;
8915 esac
8916 echo "$as_me:$LINENO: checking for $ac_header" >&5
8917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921   eval "$as_ac_Header=\$ac_header_preproc"
8922 fi
8923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925
8926 fi
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928   cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 _ACEOF
8931
8932 fi
8933
8934 done
8935
8936
8937
8938
8939
8940 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8941 do
8942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944   echo "$as_me:$LINENO: checking for $ac_header" >&5
8945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8947   echo $ECHO_N "(cached) $ECHO_C" >&6
8948 fi
8949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8951 else
8952   # Is the header compilable?
8953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961 $ac_includes_default
8962 #include <$ac_header>
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966   (eval $ac_compile) 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -z "$ac_c_werror_flag"
8974                          || test ! -s conftest.err'
8975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976   (eval $ac_try) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; } &&
8980          { ac_try='test -s conftest.$ac_objext'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; }; then
8986   ac_header_compiler=yes
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 ac_header_compiler=no
8992 fi
8993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8995 echo "${ECHO_T}$ac_header_compiler" >&6
8996
8997 # Is the header present?
8998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h.  */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h.  */
9006 #include <$ac_header>
9007 _ACEOF
9008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9010   ac_status=$?
9011   grep -v '^ *+' conftest.er1 >conftest.err
9012   rm -f conftest.er1
9013   cat conftest.err >&5
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } >/dev/null; then
9016   if test -s conftest.err; then
9017     ac_cpp_err=$ac_c_preproc_warn_flag
9018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9019   else
9020     ac_cpp_err=
9021   fi
9022 else
9023   ac_cpp_err=yes
9024 fi
9025 if test -z "$ac_cpp_err"; then
9026   ac_header_preproc=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031   ac_header_preproc=no
9032 fi
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9036
9037 # So?  What about this header?
9038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9039   yes:no: )
9040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9044     ac_header_preproc=yes
9045     ;;
9046   no:yes:* )
9047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9059     (
9060       cat <<\_ASBOX
9061 ## ----------------------------------- ##
9062 ## Report this to llvmbugs@cs.uiuc.edu ##
9063 ## ----------------------------------- ##
9064 _ASBOX
9065     ) |
9066       sed "s/^/$as_me: WARNING:     /" >&2
9067     ;;
9068 esac
9069 echo "$as_me:$LINENO: checking for $ac_header" >&5
9070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074   eval "$as_ac_Header=\$ac_header_preproc"
9075 fi
9076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9078
9079 fi
9080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081   cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083 _ACEOF
9084
9085 fi
9086
9087 done
9088
9089
9090
9091 for ac_header in string.h strings.h
9092 do
9093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9095   echo "$as_me:$LINENO: checking for $ac_header" >&5
9096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9098   echo $ECHO_N "(cached) $ECHO_C" >&6
9099 fi
9100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9102 else
9103   # Is the header compilable?
9104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112 $ac_includes_default
9113 #include <$ac_header>
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117   (eval $ac_compile) 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -z "$ac_c_werror_flag"
9125                          || test ! -s conftest.err'
9126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127   (eval $ac_try) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; } &&
9131          { ac_try='test -s conftest.$ac_objext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_header_compiler=yes
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_header_compiler=no
9143 fi
9144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9146 echo "${ECHO_T}$ac_header_compiler" >&6
9147
9148 # Is the header present?
9149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9151 cat >conftest.$ac_ext <<_ACEOF
9152 /* confdefs.h.  */
9153 _ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h.  */
9157 #include <$ac_header>
9158 _ACEOF
9159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9161   ac_status=$?
9162   grep -v '^ *+' conftest.er1 >conftest.err
9163   rm -f conftest.er1
9164   cat conftest.err >&5
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); } >/dev/null; then
9167   if test -s conftest.err; then
9168     ac_cpp_err=$ac_c_preproc_warn_flag
9169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9170   else
9171     ac_cpp_err=
9172   fi
9173 else
9174   ac_cpp_err=yes
9175 fi
9176 if test -z "$ac_cpp_err"; then
9177   ac_header_preproc=yes
9178 else
9179   echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9181
9182   ac_header_preproc=no
9183 fi
9184 rm -f conftest.err conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6
9187
9188 # So?  What about this header?
9189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9190   yes:no: )
9191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9195     ac_header_preproc=yes
9196     ;;
9197   no:yes:* )
9198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9210     (
9211       cat <<\_ASBOX
9212 ## ----------------------------------- ##
9213 ## Report this to llvmbugs@cs.uiuc.edu ##
9214 ## ----------------------------------- ##
9215 _ASBOX
9216     ) |
9217       sed "s/^/$as_me: WARNING:     /" >&2
9218     ;;
9219 esac
9220 echo "$as_me:$LINENO: checking for $ac_header" >&5
9221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   eval "$as_ac_Header=\$ac_header_preproc"
9226 fi
9227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9229
9230 fi
9231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9232   cat >>confdefs.h <<_ACEOF
9233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9234 _ACEOF
9235  break
9236 fi
9237
9238 done
9239
9240
9241
9242
9243 for ac_func in strchr index
9244 do
9245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 echo "$as_me:$LINENO: checking for $ac_func" >&5
9247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9248 if eval "test \"\${$as_ac_var+set}\" = set"; then
9249   echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251   cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h.  */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h.  */
9257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9259 #define $ac_func innocuous_$ac_func
9260
9261 /* System header to define __stub macros and hopefully few prototypes,
9262     which can conflict with char $ac_func (); below.
9263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264     <limits.h> exists even on freestanding compilers.  */
9265
9266 #ifdef __STDC__
9267 # include <limits.h>
9268 #else
9269 # include <assert.h>
9270 #endif
9271
9272 #undef $ac_func
9273
9274 /* Override any gcc2 internal prototype to avoid an error.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 {
9278 #endif
9279 /* We use char because int might match the return type of a gcc2
9280    builtin and then its argument prototype would still apply.  */
9281 char $ac_func ();
9282 /* The GNU C library defines this for functions which it implements
9283     to always fail with ENOSYS.  Some functions are actually named
9284     something starting with __ and the normal name is an alias.  */
9285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9286 choke me
9287 #else
9288 char (*f) () = $ac_func;
9289 #endif
9290 #ifdef __cplusplus
9291 }
9292 #endif
9293
9294 int
9295 main ()
9296 {
9297 return f != $ac_func;
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304   (eval $ac_link) 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } &&
9311          { ac_try='test -z "$ac_c_werror_flag"
9312                          || test ! -s conftest.err'
9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314   (eval $ac_try) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); }; } &&
9318          { ac_try='test -s conftest$ac_exeext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   eval "$as_ac_var=yes"
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 eval "$as_ac_var=no"
9330 fi
9331 rm -f conftest.err conftest.$ac_objext \
9332       conftest$ac_exeext conftest.$ac_ext
9333 fi
9334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9336 if test `eval echo '${'$as_ac_var'}'` = yes; then
9337   cat >>confdefs.h <<_ACEOF
9338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9339 _ACEOF
9340  break
9341 fi
9342 done
9343
9344
9345
9346 for ac_func in strrchr rindex
9347 do
9348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9349 echo "$as_me:$LINENO: checking for $ac_func" >&5
9350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9351 if eval "test \"\${$as_ac_var+set}\" = set"; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9362 #define $ac_func innocuous_$ac_func
9363
9364 /* System header to define __stub macros and hopefully few prototypes,
9365     which can conflict with char $ac_func (); below.
9366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9367     <limits.h> exists even on freestanding compilers.  */
9368
9369 #ifdef __STDC__
9370 # include <limits.h>
9371 #else
9372 # include <assert.h>
9373 #endif
9374
9375 #undef $ac_func
9376
9377 /* Override any gcc2 internal prototype to avoid an error.  */
9378 #ifdef __cplusplus
9379 extern "C"
9380 {
9381 #endif
9382 /* We use char because int might match the return type of a gcc2
9383    builtin and then its argument prototype would still apply.  */
9384 char $ac_func ();
9385 /* The GNU C library defines this for functions which it implements
9386     to always fail with ENOSYS.  Some functions are actually named
9387     something starting with __ and the normal name is an alias.  */
9388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9389 choke me
9390 #else
9391 char (*f) () = $ac_func;
9392 #endif
9393 #ifdef __cplusplus
9394 }
9395 #endif
9396
9397 int
9398 main ()
9399 {
9400 return f != $ac_func;
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407   (eval $ac_link) 2>conftest.er1
9408   ac_status=$?
9409   grep -v '^ *+' conftest.er1 >conftest.err
9410   rm -f conftest.er1
9411   cat conftest.err >&5
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } &&
9414          { ac_try='test -z "$ac_c_werror_flag"
9415                          || test ! -s conftest.err'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; } &&
9421          { ac_try='test -s conftest$ac_exeext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   eval "$as_ac_var=yes"
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 eval "$as_ac_var=no"
9433 fi
9434 rm -f conftest.err conftest.$ac_objext \
9435       conftest$ac_exeext conftest.$ac_ext
9436 fi
9437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9439 if test `eval echo '${'$as_ac_var'}'` = yes; then
9440   cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9442 _ACEOF
9443  break
9444 fi
9445 done
9446
9447
9448
9449 for ac_func in memcpy bcopy
9450 do
9451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9452 echo "$as_me:$LINENO: checking for $ac_func" >&5
9453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_var+set}\" = set"; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9465 #define $ac_func innocuous_$ac_func
9466
9467 /* System header to define __stub macros and hopefully few prototypes,
9468     which can conflict with char $ac_func (); below.
9469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9470     <limits.h> exists even on freestanding compilers.  */
9471
9472 #ifdef __STDC__
9473 # include <limits.h>
9474 #else
9475 # include <assert.h>
9476 #endif
9477
9478 #undef $ac_func
9479
9480 /* Override any gcc2 internal prototype to avoid an error.  */
9481 #ifdef __cplusplus
9482 extern "C"
9483 {
9484 #endif
9485 /* We use char because int might match the return type of a gcc2
9486    builtin and then its argument prototype would still apply.  */
9487 char $ac_func ();
9488 /* The GNU C library defines this for functions which it implements
9489     to always fail with ENOSYS.  Some functions are actually named
9490     something starting with __ and the normal name is an alias.  */
9491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492 choke me
9493 #else
9494 char (*f) () = $ac_func;
9495 #endif
9496 #ifdef __cplusplus
9497 }
9498 #endif
9499
9500 int
9501 main ()
9502 {
9503 return f != $ac_func;
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510   (eval $ac_link) 2>conftest.er1
9511   ac_status=$?
9512   grep -v '^ *+' conftest.er1 >conftest.err
9513   rm -f conftest.er1
9514   cat conftest.err >&5
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } &&
9517          { ac_try='test -z "$ac_c_werror_flag"
9518                          || test ! -s conftest.err'
9519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520   (eval $ac_try) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; } &&
9524          { ac_try='test -s conftest$ac_exeext'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; }; then
9530   eval "$as_ac_var=yes"
9531 else
9532   echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535 eval "$as_ac_var=no"
9536 fi
9537 rm -f conftest.err conftest.$ac_objext \
9538       conftest$ac_exeext conftest.$ac_ext
9539 fi
9540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9542 if test `eval echo '${'$as_ac_var'}'` = yes; then
9543   cat >>confdefs.h <<_ACEOF
9544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9545 _ACEOF
9546  break
9547 fi
9548 done
9549
9550
9551
9552 for ac_func in memmove strcmp
9553 do
9554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9555 echo "$as_me:$LINENO: checking for $ac_func" >&5
9556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9557 if eval "test \"\${$as_ac_var+set}\" = set"; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560   cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9568 #define $ac_func innocuous_$ac_func
9569
9570 /* System header to define __stub macros and hopefully few prototypes,
9571     which can conflict with char $ac_func (); below.
9572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573     <limits.h> exists even on freestanding compilers.  */
9574
9575 #ifdef __STDC__
9576 # include <limits.h>
9577 #else
9578 # include <assert.h>
9579 #endif
9580
9581 #undef $ac_func
9582
9583 /* Override any gcc2 internal prototype to avoid an error.  */
9584 #ifdef __cplusplus
9585 extern "C"
9586 {
9587 #endif
9588 /* We use char because int might match the return type of a gcc2
9589    builtin and then its argument prototype would still apply.  */
9590 char $ac_func ();
9591 /* The GNU C library defines this for functions which it implements
9592     to always fail with ENOSYS.  Some functions are actually named
9593     something starting with __ and the normal name is an alias.  */
9594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9595 choke me
9596 #else
9597 char (*f) () = $ac_func;
9598 #endif
9599 #ifdef __cplusplus
9600 }
9601 #endif
9602
9603 int
9604 main ()
9605 {
9606 return f != $ac_func;
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613   (eval $ac_link) 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } &&
9620          { ac_try='test -z "$ac_c_werror_flag"
9621                          || test ! -s conftest.err'
9622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623   (eval $ac_try) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); }; } &&
9627          { ac_try='test -s conftest$ac_exeext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   eval "$as_ac_var=yes"
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 eval "$as_ac_var=no"
9639 fi
9640 rm -f conftest.err conftest.$ac_objext \
9641       conftest$ac_exeext conftest.$ac_ext
9642 fi
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9645 if test `eval echo '${'$as_ac_var'}'` = yes; then
9646   cat >>confdefs.h <<_ACEOF
9647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9648 _ACEOF
9649
9650 fi
9651 done
9652
9653
9654
9655
9656 for ac_func in closedir opendir readdir
9657 do
9658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9659 echo "$as_me:$LINENO: checking for $ac_func" >&5
9660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9661 if eval "test \"\${$as_ac_var+set}\" = set"; then
9662   echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664   cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h.  */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h.  */
9670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9672 #define $ac_func innocuous_$ac_func
9673
9674 /* System header to define __stub macros and hopefully few prototypes,
9675     which can conflict with char $ac_func (); below.
9676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9677     <limits.h> exists even on freestanding compilers.  */
9678
9679 #ifdef __STDC__
9680 # include <limits.h>
9681 #else
9682 # include <assert.h>
9683 #endif
9684
9685 #undef $ac_func
9686
9687 /* Override any gcc2 internal prototype to avoid an error.  */
9688 #ifdef __cplusplus
9689 extern "C"
9690 {
9691 #endif
9692 /* We use char because int might match the return type of a gcc2
9693    builtin and then its argument prototype would still apply.  */
9694 char $ac_func ();
9695 /* The GNU C library defines this for functions which it implements
9696     to always fail with ENOSYS.  Some functions are actually named
9697     something starting with __ and the normal name is an alias.  */
9698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9699 choke me
9700 #else
9701 char (*f) () = $ac_func;
9702 #endif
9703 #ifdef __cplusplus
9704 }
9705 #endif
9706
9707 int
9708 main ()
9709 {
9710 return f != $ac_func;
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717   (eval $ac_link) 2>conftest.er1
9718   ac_status=$?
9719   grep -v '^ *+' conftest.er1 >conftest.err
9720   rm -f conftest.er1
9721   cat conftest.err >&5
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); } &&
9724          { ac_try='test -z "$ac_c_werror_flag"
9725                          || test ! -s conftest.err'
9726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727   (eval $ac_try) 2>&5
9728   ac_status=$?
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); }; } &&
9731          { ac_try='test -s conftest$ac_exeext'
9732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733   (eval $ac_try) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; }; then
9737   eval "$as_ac_var=yes"
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 eval "$as_ac_var=no"
9743 fi
9744 rm -f conftest.err conftest.$ac_objext \
9745       conftest$ac_exeext conftest.$ac_ext
9746 fi
9747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9749 if test `eval echo '${'$as_ac_var'}'` = yes; then
9750   cat >>confdefs.h <<_ACEOF
9751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9752 _ACEOF
9753
9754 fi
9755 done
9756
9757
9758 # Check whether --enable-shared or --disable-shared was given.
9759 if test "${enable_shared+set}" = set; then
9760   enableval="$enable_shared"
9761   p=${PACKAGE-default}
9762     case $enableval in
9763     yes) enable_shared=yes ;;
9764     no) enable_shared=no ;;
9765     *)
9766       enable_shared=no
9767       # Look at the argument we got.  We use all the common list separators.
9768       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9769       for pkg in $enableval; do
9770         IFS="$lt_save_ifs"
9771         if test "X$pkg" = "X$p"; then
9772           enable_shared=yes
9773         fi
9774       done
9775       IFS="$lt_save_ifs"
9776       ;;
9777     esac
9778 else
9779   enable_shared=yes
9780 fi;
9781
9782 # Check whether --enable-static or --disable-static was given.
9783 if test "${enable_static+set}" = set; then
9784   enableval="$enable_static"
9785   p=${PACKAGE-default}
9786     case $enableval in
9787     yes) enable_static=yes ;;
9788     no) enable_static=no ;;
9789     *)
9790      enable_static=no
9791       # Look at the argument we got.  We use all the common list separators.
9792       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9793       for pkg in $enableval; do
9794         IFS="$lt_save_ifs"
9795         if test "X$pkg" = "X$p"; then
9796           enable_static=yes
9797         fi
9798       done
9799       IFS="$lt_save_ifs"
9800       ;;
9801     esac
9802 else
9803   enable_static=yes
9804 fi;
9805
9806 # Check whether --enable-fast-install or --disable-fast-install was given.
9807 if test "${enable_fast_install+set}" = set; then
9808   enableval="$enable_fast_install"
9809   p=${PACKAGE-default}
9810     case $enableval in
9811     yes) enable_fast_install=yes ;;
9812     no) enable_fast_install=no ;;
9813     *)
9814       enable_fast_install=no
9815       # Look at the argument we got.  We use all the common list separators.
9816       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9817       for pkg in $enableval; do
9818         IFS="$lt_save_ifs"
9819         if test "X$pkg" = "X$p"; then
9820           enable_fast_install=yes
9821         fi
9822       done
9823       IFS="$lt_save_ifs"
9824       ;;
9825     esac
9826 else
9827   enable_fast_install=yes
9828 fi;
9829
9830 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9831 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9832 if test "${lt_cv_path_SED+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   # Loop through the user's path and test for sed and gsed.
9836 # Then use that list of sed's as ones to test for truncation.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9839 do
9840   IFS=$as_save_IFS
9841   test -z "$as_dir" && as_dir=.
9842   for lt_ac_prog in sed gsed; do
9843     for ac_exec_ext in '' $ac_executable_extensions; do
9844       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9845         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9846       fi
9847     done
9848   done
9849 done
9850 lt_ac_max=0
9851 lt_ac_count=0
9852 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9853 # along with /bin/sed that truncates output.
9854 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9855   test ! -f $lt_ac_sed && break
9856   cat /dev/null > conftest.in
9857   lt_ac_count=0
9858   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9859   # Check for GNU sed and select it if it is found.
9860   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9861     lt_cv_path_SED=$lt_ac_sed
9862     break
9863   fi
9864   while true; do
9865     cat conftest.in conftest.in >conftest.tmp
9866     mv conftest.tmp conftest.in
9867     cp conftest.in conftest.nl
9868     echo >>conftest.nl
9869     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9870     cmp -s conftest.out conftest.nl || break
9871     # 10000 chars as input seems more than enough
9872     test $lt_ac_count -gt 10 && break
9873     lt_ac_count=`expr $lt_ac_count + 1`
9874     if test $lt_ac_count -gt $lt_ac_max; then
9875       lt_ac_max=$lt_ac_count
9876       lt_cv_path_SED=$lt_ac_sed
9877     fi
9878   done
9879 done
9880
9881 fi
9882
9883 SED=$lt_cv_path_SED
9884 echo "$as_me:$LINENO: result: $SED" >&5
9885 echo "${ECHO_T}$SED" >&6
9886
9887
9888 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9889 if test "${with_gnu_ld+set}" = set; then
9890   withval="$with_gnu_ld"
9891   test "$withval" = no || with_gnu_ld=yes
9892 else
9893   with_gnu_ld=no
9894 fi;
9895 ac_prog=ld
9896 if test "$GCC" = yes; then
9897   # Check if gcc -print-prog-name=ld gives a path.
9898   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9899 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9900   case $host in
9901   *-*-mingw*)
9902     # gcc leaves a trailing carriage return which upsets mingw
9903     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9904   *)
9905     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9906   esac
9907   case $ac_prog in
9908     # Accept absolute paths.
9909     [\\/]* | ?:[\\/]*)
9910       re_direlt='/[^/][^/]*/\.\./'
9911       # Canonicalize the pathname of ld
9912       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9913       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9914         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9915       done
9916       test -z "$LD" && LD="$ac_prog"
9917       ;;
9918   "")
9919     # If it fails, then pretend we aren't using GCC.
9920     ac_prog=ld
9921     ;;
9922   *)
9923     # If it is relative, then search for the first ld in PATH.
9924     with_gnu_ld=unknown
9925     ;;
9926   esac
9927 elif test "$with_gnu_ld" = yes; then
9928   echo "$as_me:$LINENO: checking for GNU ld" >&5
9929 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9930 else
9931   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9932 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9933 fi
9934 if test "${lt_cv_path_LD+set}" = set; then
9935   echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937   if test -z "$LD"; then
9938   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9939   for ac_dir in $PATH; do
9940     IFS="$lt_save_ifs"
9941     test -z "$ac_dir" && ac_dir=.
9942     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9943       lt_cv_path_LD="$ac_dir/$ac_prog"
9944       # Check to see if the program is GNU ld.  I'd rather use --version,
9945       # but apparently some GNU ld's only accept -v.
9946       # Break only if it was the GNU/non-GNU ld that we prefer.
9947       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9948       *GNU* | *'with BFD'*)
9949         test "$with_gnu_ld" != no && break
9950         ;;
9951       *)
9952         test "$with_gnu_ld" != yes && break
9953         ;;
9954       esac
9955     fi
9956   done
9957   IFS="$lt_save_ifs"
9958 else
9959   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9960 fi
9961 fi
9962
9963 LD="$lt_cv_path_LD"
9964 if test -n "$LD"; then
9965   echo "$as_me:$LINENO: result: $LD" >&5
9966 echo "${ECHO_T}$LD" >&6
9967 else
9968   echo "$as_me:$LINENO: result: no" >&5
9969 echo "${ECHO_T}no" >&6
9970 fi
9971 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9972 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9973    { (exit 1); exit 1; }; }
9974 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9975 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9976 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9980 case `$LD -v 2>&1 </dev/null` in
9981 *GNU* | *'with BFD'*)
9982   lt_cv_prog_gnu_ld=yes
9983   ;;
9984 *)
9985   lt_cv_prog_gnu_ld=no
9986   ;;
9987 esac
9988 fi
9989 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9990 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9991 with_gnu_ld=$lt_cv_prog_gnu_ld
9992
9993
9994 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9995 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9996 if test "${lt_cv_ld_reload_flag+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   lt_cv_ld_reload_flag='-r'
10000 fi
10001 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10002 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10003 reload_flag=$lt_cv_ld_reload_flag
10004 case $reload_flag in
10005 "" | " "*) ;;
10006 *) reload_flag=" $reload_flag" ;;
10007 esac
10008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10009 case $host_os in
10010   darwin*)
10011     if test "$GCC" = yes; then
10012       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10013     else
10014       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10015     fi
10016     ;;
10017 esac
10018
10019 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10020 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10021 if test "${lt_cv_deplibs_check_method+set}" = set; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   lt_cv_file_magic_cmd='$MAGIC_CMD'
10025 lt_cv_file_magic_test_file=
10026 lt_cv_deplibs_check_method='unknown'
10027 # Need to set the preceding variable on all platforms that support
10028 # interlibrary dependencies.
10029 # 'none' -- dependencies not supported.
10030 # `unknown' -- same as none, but documents that we really don't know.
10031 # 'pass_all' -- all dependencies passed with no checks.
10032 # 'test_compile' -- check by making test program.
10033 # 'file_magic [[regex]]' -- check by looking for files in library path
10034 # which responds to the $file_magic_cmd with a given extended regex.
10035 # If you have `file' or equivalent on your system and you're not sure
10036 # whether `pass_all' will *always* work, you probably want this one.
10037
10038 case $host_os in
10039 aix4* | aix5*)
10040   lt_cv_deplibs_check_method=pass_all
10041   ;;
10042
10043 beos*)
10044   lt_cv_deplibs_check_method=pass_all
10045   ;;
10046
10047 bsdi[45]*)
10048   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10049   lt_cv_file_magic_cmd='/usr/bin/file -L'
10050   lt_cv_file_magic_test_file=/shlib/libc.so
10051   ;;
10052
10053 cygwin*)
10054   # func_win32_libid is a shell function defined in ltmain.sh
10055   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10056   lt_cv_file_magic_cmd='func_win32_libid'
10057   ;;
10058
10059 mingw* | pw32*)
10060   # Base MSYS/MinGW do not provide the 'file' command needed by
10061   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10062   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10063   lt_cv_file_magic_cmd='$OBJDUMP -f'
10064   ;;
10065
10066 darwin* | rhapsody*)
10067   lt_cv_deplibs_check_method=pass_all
10068   ;;
10069
10070 freebsd* | kfreebsd*-gnu)
10071   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10072     case $host_cpu in
10073     i*86 )
10074       # Not sure whether the presence of OpenBSD here was a mistake.
10075       # Let's accept both of them until this is cleared up.
10076       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10077       lt_cv_file_magic_cmd=/usr/bin/file
10078       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10079       ;;
10080     esac
10081   else
10082     lt_cv_deplibs_check_method=pass_all
10083   fi
10084   ;;
10085
10086 gnu*)
10087   lt_cv_deplibs_check_method=pass_all
10088   ;;
10089
10090 hpux10.20* | hpux11*)
10091   lt_cv_file_magic_cmd=/usr/bin/file
10092   case "$host_cpu" in
10093   ia64*)
10094     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10095     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10096     ;;
10097   hppa*64*)
10098     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]'
10099     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10100     ;;
10101   *)
10102     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10103     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10104     ;;
10105   esac
10106   ;;
10107
10108 irix5* | irix6* | nonstopux*)
10109   case $LD in
10110   *-32|*"-32 ") libmagic=32-bit;;
10111   *-n32|*"-n32 ") libmagic=N32;;
10112   *-64|*"-64 ") libmagic=64-bit;;
10113   *) libmagic=never-match;;
10114   esac
10115   lt_cv_deplibs_check_method=pass_all
10116   ;;
10117
10118 # This must be Linux ELF.
10119 linux*)
10120   lt_cv_deplibs_check_method=pass_all
10121   ;;
10122
10123 netbsd*)
10124   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10125     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10126   else
10127     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10128   fi
10129   ;;
10130
10131 newos6*)
10132   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10133   lt_cv_file_magic_cmd=/usr/bin/file
10134   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10135   ;;
10136
10137 nto-qnx*)
10138   lt_cv_deplibs_check_method=unknown
10139   ;;
10140
10141 openbsd*)
10142   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10143     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10144   else
10145     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10146   fi
10147   ;;
10148
10149 osf3* | osf4* | osf5*)
10150   lt_cv_deplibs_check_method=pass_all
10151   ;;
10152
10153 sco3.2v5*)
10154   lt_cv_deplibs_check_method=pass_all
10155   ;;
10156
10157 solaris*)
10158   lt_cv_deplibs_check_method=pass_all
10159   ;;
10160
10161 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10162   case $host_vendor in
10163   motorola)
10164     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]'
10165     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10166     ;;
10167   ncr)
10168     lt_cv_deplibs_check_method=pass_all
10169     ;;
10170   sequent)
10171     lt_cv_file_magic_cmd='/bin/file'
10172     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10173     ;;
10174   sni)
10175     lt_cv_file_magic_cmd='/bin/file'
10176     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10177     lt_cv_file_magic_test_file=/lib/libc.so
10178     ;;
10179   siemens)
10180     lt_cv_deplibs_check_method=pass_all
10181     ;;
10182   esac
10183   ;;
10184
10185 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10186   lt_cv_deplibs_check_method=pass_all
10187   ;;
10188 esac
10189
10190 fi
10191 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10192 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10193 file_magic_cmd=$lt_cv_file_magic_cmd
10194 deplibs_check_method=$lt_cv_deplibs_check_method
10195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10196
10197
10198
10199 # If no C compiler was specified, use CC.
10200 LTCC=${LTCC-"$CC"}
10201
10202 # Allow CC to be a program name with arguments.
10203 compiler=$CC
10204
10205 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10206 if test "${enable_libtool_lock+set}" = set; then
10207   enableval="$enable_libtool_lock"
10208
10209 fi;
10210 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10211
10212 # Some flags need to be propagated to the compiler or linker for good
10213 # libtool support.
10214 case $host in
10215 ia64-*-hpux*)
10216   # Find out which ABI we are using.
10217   echo 'int i;' > conftest.$ac_ext
10218   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219   (eval $ac_compile) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; then
10223     case `/usr/bin/file conftest.$ac_objext` in
10224     *ELF-32*)
10225       HPUX_IA64_MODE="32"
10226       ;;
10227     *ELF-64*)
10228       HPUX_IA64_MODE="64"
10229       ;;
10230     esac
10231   fi
10232   rm -rf conftest*
10233   ;;
10234 *-*-irix6*)
10235   # Find out which ABI we are using.
10236   echo '#line 10236 "configure"' > conftest.$ac_ext
10237   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238   (eval $ac_compile) 2>&5
10239   ac_status=$?
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); }; then
10242    if test "$lt_cv_prog_gnu_ld" = yes; then
10243     case `/usr/bin/file conftest.$ac_objext` in
10244     *32-bit*)
10245       LD="${LD-ld} -melf32bsmip"
10246       ;;
10247     *N32*)
10248       LD="${LD-ld} -melf32bmipn32"
10249       ;;
10250     *64-bit*)
10251       LD="${LD-ld} -melf64bmip"
10252       ;;
10253     esac
10254    else
10255     case `/usr/bin/file conftest.$ac_objext` in
10256     *32-bit*)
10257       LD="${LD-ld} -32"
10258       ;;
10259     *N32*)
10260       LD="${LD-ld} -n32"
10261       ;;
10262     *64-bit*)
10263       LD="${LD-ld} -64"
10264       ;;
10265     esac
10266    fi
10267   fi
10268   rm -rf conftest*
10269   ;;
10270
10271 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10272   # Find out which ABI we are using.
10273   echo 'int i;' > conftest.$ac_ext
10274   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275   (eval $ac_compile) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; then
10279     case "`/usr/bin/file conftest.o`" in
10280     *32-bit*)
10281       case $host in
10282         x86_64-*linux*)
10283           LD="${LD-ld} -m elf_i386"
10284           ;;
10285         ppc64-*linux*|powerpc64-*linux*)
10286           LD="${LD-ld} -m elf32ppclinux"
10287           ;;
10288         s390x-*linux*)
10289           LD="${LD-ld} -m elf_s390"
10290           ;;
10291         sparc64-*linux*)
10292           LD="${LD-ld} -m elf32_sparc"
10293           ;;
10294       esac
10295       ;;
10296     *64-bit*)
10297       case $host in
10298         x86_64-*linux*)
10299           LD="${LD-ld} -m elf_x86_64"
10300           ;;
10301         ppc*-*linux*|powerpc*-*linux*)
10302           LD="${LD-ld} -m elf64ppc"
10303           ;;
10304         s390*-*linux*)
10305           LD="${LD-ld} -m elf64_s390"
10306           ;;
10307         sparc*-*linux*)
10308           LD="${LD-ld} -m elf64_sparc"
10309           ;;
10310       esac
10311       ;;
10312     esac
10313   fi
10314   rm -rf conftest*
10315   ;;
10316
10317 *-*-sco3.2v5*)
10318   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10319   SAVE_CFLAGS="$CFLAGS"
10320   CFLAGS="$CFLAGS -belf"
10321   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10322 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10323 if test "${lt_cv_cc_needs_belf+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   ac_ext=c
10327 ac_cpp='$CPP $CPPFLAGS'
10328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10331
10332      cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338
10339 _ACEOF
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10342   (eval $ac_link) 2>conftest.er1
10343   ac_status=$?
10344   grep -v '^ *+' conftest.er1 >conftest.err
10345   rm -f conftest.er1
10346   cat conftest.err >&5
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } &&
10349          { ac_try='test -z "$ac_c_werror_flag"
10350                          || test ! -s conftest.err'
10351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352   (eval $ac_try) 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); }; } &&
10356          { ac_try='test -s conftest$ac_exeext'
10357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358   (eval $ac_try) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; }; then
10362   lt_cv_cc_needs_belf=yes
10363 else
10364   echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 lt_cv_cc_needs_belf=no
10368 fi
10369 rm -f conftest.err conftest.$ac_objext \
10370       conftest$ac_exeext conftest.$ac_ext
10371      ac_ext=c
10372 ac_cpp='$CPP $CPPFLAGS'
10373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10376
10377 fi
10378 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10379 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10380   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10381     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10382     CFLAGS="$SAVE_CFLAGS"
10383   fi
10384   ;;
10385
10386 esac
10387
10388 need_locks="$enable_libtool_lock"
10389
10390
10391
10392
10393 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10394     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10395     (test "X$CXX" != "Xg++"))) ; then
10396   ac_ext=cc
10397 ac_cpp='$CXXCPP $CPPFLAGS'
10398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10401 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10402 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10403 if test -z "$CXXCPP"; then
10404   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407       # Double quotes because CXXCPP needs to be expanded
10408     for CXXCPP in "$CXX -E" "/lib/cpp"
10409     do
10410       ac_preproc_ok=false
10411 for ac_cxx_preproc_warn_flag in '' yes
10412 do
10413   # Use a header file that comes with gcc, so configuring glibc
10414   # with a fresh cross-compiler works.
10415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416   # <limits.h> exists even on freestanding compilers.
10417   # On the NeXT, cc -E runs the code through the compiler's parser,
10418   # not just through cpp. "Syntax error" is here to catch this case.
10419   cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h.  */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h.  */
10425 #ifdef __STDC__
10426 # include <limits.h>
10427 #else
10428 # include <assert.h>
10429 #endif
10430                      Syntax error
10431 _ACEOF
10432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10434   ac_status=$?
10435   grep -v '^ *+' conftest.er1 >conftest.err
10436   rm -f conftest.er1
10437   cat conftest.err >&5
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } >/dev/null; then
10440   if test -s conftest.err; then
10441     ac_cpp_err=$ac_cxx_preproc_warn_flag
10442     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10443   else
10444     ac_cpp_err=
10445   fi
10446 else
10447   ac_cpp_err=yes
10448 fi
10449 if test -z "$ac_cpp_err"; then
10450   :
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455   # Broken: fails on valid input.
10456 continue
10457 fi
10458 rm -f conftest.err conftest.$ac_ext
10459
10460   # OK, works on sane cases.  Now check whether non-existent headers
10461   # can be detected and how.
10462   cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468 #include <ac_nonexistent.h>
10469 _ACEOF
10470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472   ac_status=$?
10473   grep -v '^ *+' conftest.er1 >conftest.err
10474   rm -f conftest.er1
10475   cat conftest.err >&5
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } >/dev/null; then
10478   if test -s conftest.err; then
10479     ac_cpp_err=$ac_cxx_preproc_warn_flag
10480     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10481   else
10482     ac_cpp_err=
10483   fi
10484 else
10485   ac_cpp_err=yes
10486 fi
10487 if test -z "$ac_cpp_err"; then
10488   # Broken: success on invalid input.
10489 continue
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494   # Passes both tests.
10495 ac_preproc_ok=:
10496 break
10497 fi
10498 rm -f conftest.err conftest.$ac_ext
10499
10500 done
10501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10502 rm -f conftest.err conftest.$ac_ext
10503 if $ac_preproc_ok; then
10504   break
10505 fi
10506
10507     done
10508     ac_cv_prog_CXXCPP=$CXXCPP
10509
10510 fi
10511   CXXCPP=$ac_cv_prog_CXXCPP
10512 else
10513   ac_cv_prog_CXXCPP=$CXXCPP
10514 fi
10515 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10516 echo "${ECHO_T}$CXXCPP" >&6
10517 ac_preproc_ok=false
10518 for ac_cxx_preproc_warn_flag in '' yes
10519 do
10520   # Use a header file that comes with gcc, so configuring glibc
10521   # with a fresh cross-compiler works.
10522   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10523   # <limits.h> exists even on freestanding compilers.
10524   # On the NeXT, cc -E runs the code through the compiler's parser,
10525   # not just through cpp. "Syntax error" is here to catch this case.
10526   cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532 #ifdef __STDC__
10533 # include <limits.h>
10534 #else
10535 # include <assert.h>
10536 #endif
10537                      Syntax error
10538 _ACEOF
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } >/dev/null; then
10547   if test -s conftest.err; then
10548     ac_cpp_err=$ac_cxx_preproc_warn_flag
10549     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10550   else
10551     ac_cpp_err=
10552   fi
10553 else
10554   ac_cpp_err=yes
10555 fi
10556 if test -z "$ac_cpp_err"; then
10557   :
10558 else
10559   echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562   # Broken: fails on valid input.
10563 continue
10564 fi
10565 rm -f conftest.err conftest.$ac_ext
10566
10567   # OK, works on sane cases.  Now check whether non-existent headers
10568   # can be detected and how.
10569   cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h.  */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h.  */
10575 #include <ac_nonexistent.h>
10576 _ACEOF
10577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10578   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10579   ac_status=$?
10580   grep -v '^ *+' conftest.er1 >conftest.err
10581   rm -f conftest.er1
10582   cat conftest.err >&5
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); } >/dev/null; then
10585   if test -s conftest.err; then
10586     ac_cpp_err=$ac_cxx_preproc_warn_flag
10587     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10588   else
10589     ac_cpp_err=
10590   fi
10591 else
10592   ac_cpp_err=yes
10593 fi
10594 if test -z "$ac_cpp_err"; then
10595   # Broken: success on invalid input.
10596 continue
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601   # Passes both tests.
10602 ac_preproc_ok=:
10603 break
10604 fi
10605 rm -f conftest.err conftest.$ac_ext
10606
10607 done
10608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10609 rm -f conftest.err conftest.$ac_ext
10610 if $ac_preproc_ok; then
10611   :
10612 else
10613   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10614 See \`config.log' for more details." >&5
10615 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10616 See \`config.log' for more details." >&2;}
10617    { (exit 1); exit 1; }; }
10618 fi
10619
10620 ac_ext=cc
10621 ac_cpp='$CXXCPP $CPPFLAGS'
10622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10625
10626 fi
10627
10628
10629 ac_ext=f
10630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10633 if test -n "$ac_tool_prefix"; then
10634   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10635   do
10636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10638 echo "$as_me:$LINENO: checking for $ac_word" >&5
10639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10640 if test "${ac_cv_prog_F77+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   if test -n "$F77"; then
10644   ac_cv_prog_F77="$F77" # Let the user override the test.
10645 else
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10648 do
10649   IFS=$as_save_IFS
10650   test -z "$as_dir" && as_dir=.
10651   for ac_exec_ext in '' $ac_executable_extensions; do
10652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10655     break 2
10656   fi
10657 done
10658 done
10659
10660 fi
10661 fi
10662 F77=$ac_cv_prog_F77
10663 if test -n "$F77"; then
10664   echo "$as_me:$LINENO: result: $F77" >&5
10665 echo "${ECHO_T}$F77" >&6
10666 else
10667   echo "$as_me:$LINENO: result: no" >&5
10668 echo "${ECHO_T}no" >&6
10669 fi
10670
10671     test -n "$F77" && break
10672   done
10673 fi
10674 if test -z "$F77"; then
10675   ac_ct_F77=$F77
10676   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10677 do
10678   # Extract the first word of "$ac_prog", so it can be a program name with args.
10679 set dummy $ac_prog; ac_word=$2
10680 echo "$as_me:$LINENO: checking for $ac_word" >&5
10681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10682 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   if test -n "$ac_ct_F77"; then
10686   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10687 else
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10690 do
10691   IFS=$as_save_IFS
10692   test -z "$as_dir" && as_dir=.
10693   for ac_exec_ext in '' $ac_executable_extensions; do
10694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10695     ac_cv_prog_ac_ct_F77="$ac_prog"
10696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10697     break 2
10698   fi
10699 done
10700 done
10701
10702 fi
10703 fi
10704 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10705 if test -n "$ac_ct_F77"; then
10706   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10707 echo "${ECHO_T}$ac_ct_F77" >&6
10708 else
10709   echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6
10711 fi
10712
10713   test -n "$ac_ct_F77" && break
10714 done
10715
10716   F77=$ac_ct_F77
10717 fi
10718
10719
10720 # Provide some information about the compiler.
10721 echo "$as_me:10721:" \
10722      "checking for Fortran 77 compiler version" >&5
10723 ac_compiler=`set X $ac_compile; echo $2`
10724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10725   (eval $ac_compiler --version </dev/null >&5) 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }
10729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10730   (eval $ac_compiler -v </dev/null >&5) 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }
10734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10735   (eval $ac_compiler -V </dev/null >&5) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); }
10739 rm -f a.out
10740
10741 # If we don't use `.F' as extension, the preprocessor is not run on the
10742 # input file.  (Note that this only needs to work for GNU compilers.)
10743 ac_save_ext=$ac_ext
10744 ac_ext=F
10745 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10746 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10747 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10748   echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750   cat >conftest.$ac_ext <<_ACEOF
10751       program main
10752 #ifndef __GNUC__
10753        choke me
10754 #endif
10755
10756       end
10757 _ACEOF
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760   (eval $ac_compile) 2>conftest.er1
10761   ac_status=$?
10762   grep -v '^ *+' conftest.er1 >conftest.err
10763   rm -f conftest.er1
10764   cat conftest.err >&5
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); } &&
10767          { ac_try='test -z "$ac_f77_werror_flag"
10768                          || test ! -s conftest.err'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; } &&
10774          { ac_try='test -s conftest.$ac_objext'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; }; then
10780   ac_compiler_gnu=yes
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 ac_compiler_gnu=no
10786 fi
10787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10788 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10789
10790 fi
10791 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10792 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10793 ac_ext=$ac_save_ext
10794 ac_test_FFLAGS=${FFLAGS+set}
10795 ac_save_FFLAGS=$FFLAGS
10796 FFLAGS=
10797 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10798 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10799 if test "${ac_cv_prog_f77_g+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   FFLAGS=-g
10803 cat >conftest.$ac_ext <<_ACEOF
10804       program main
10805
10806       end
10807 _ACEOF
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810   (eval $ac_compile) 2>conftest.er1
10811   ac_status=$?
10812   grep -v '^ *+' conftest.er1 >conftest.err
10813   rm -f conftest.er1
10814   cat conftest.err >&5
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -z "$ac_f77_werror_flag"
10818                          || test ! -s conftest.err'
10819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820   (eval $ac_try) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; } &&
10824          { ac_try='test -s conftest.$ac_objext'
10825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826   (eval $ac_try) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   ac_cv_prog_f77_g=yes
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_cv_prog_f77_g=no
10836 fi
10837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10838
10839 fi
10840 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10841 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10842 if test "$ac_test_FFLAGS" = set; then
10843   FFLAGS=$ac_save_FFLAGS
10844 elif test $ac_cv_prog_f77_g = yes; then
10845   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10846     FFLAGS="-g -O2"
10847   else
10848     FFLAGS="-g"
10849   fi
10850 else
10851   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10852     FFLAGS="-O2"
10853   else
10854     FFLAGS=
10855   fi
10856 fi
10857
10858 G77=`test $ac_compiler_gnu = yes && echo yes`
10859 ac_ext=c
10860 ac_cpp='$CPP $CPPFLAGS'
10861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10864
10865
10866
10867 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10868
10869 # find the maximum length of command line arguments
10870 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10871 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10872 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875     i=0
10876   teststring="ABCD"
10877
10878   case $build_os in
10879   msdosdjgpp*)
10880     # On DJGPP, this test can blow up pretty badly due to problems in libc
10881     # (any single argument exceeding 2000 bytes causes a buffer overrun
10882     # during glob expansion).  Even if it were fixed, the result of this
10883     # check would be larger than it should be.
10884     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10885     ;;
10886
10887   gnu*)
10888     # Under GNU Hurd, this test is not required because there is
10889     # no limit to the length of command line arguments.
10890     # Libtool will interpret -1 as no limit whatsoever
10891     lt_cv_sys_max_cmd_len=-1;
10892     ;;
10893
10894   cygwin* | mingw*)
10895     # On Win9x/ME, this test blows up -- it succeeds, but takes
10896     # about 5 minutes as the teststring grows exponentially.
10897     # Worse, since 9x/ME are not pre-emptively multitasking,
10898     # you end up with a "frozen" computer, even though with patience
10899     # the test eventually succeeds (with a max line length of 256k).
10900     # Instead, let's just punt: use the minimum linelength reported by
10901     # all of the supported platforms: 8192 (on NT/2K/XP).
10902     lt_cv_sys_max_cmd_len=8192;
10903     ;;
10904
10905   amigaos*)
10906     # On AmigaOS with pdksh, this test takes hours, literally.
10907     # So we just punt and use a minimum line length of 8192.
10908     lt_cv_sys_max_cmd_len=8192;
10909     ;;
10910
10911   netbsd* | freebsd* | openbsd* | darwin* )
10912     # This has been around since 386BSD, at least.  Likely further.
10913     if test -x /sbin/sysctl; then
10914       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10915     elif test -x /usr/sbin/sysctl; then
10916       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10917     else
10918       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10919     fi
10920     # And add a safety zone
10921     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10922     ;;
10923
10924  *)
10925     # If test is not a shell built-in, we'll probably end up computing a
10926     # maximum length that is only half of the actual maximum length, but
10927     # we can't tell.
10928     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10929     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10930                = "XX$teststring") >/dev/null 2>&1 &&
10931             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10932             lt_cv_sys_max_cmd_len=$new_result &&
10933             test $i != 17 # 1/2 MB should be enough
10934     do
10935       i=`expr $i + 1`
10936       teststring=$teststring$teststring
10937     done
10938     teststring=
10939     # Add a significant safety factor because C++ compilers can tack on massive
10940     # amounts of additional arguments before passing them to the linker.
10941     # It appears as though 1/2 is a usable value.
10942     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10943     ;;
10944   esac
10945
10946 fi
10947
10948 if test -n $lt_cv_sys_max_cmd_len ; then
10949   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10950 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10951 else
10952   echo "$as_me:$LINENO: result: none" >&5
10953 echo "${ECHO_T}none" >&6
10954 fi
10955
10956
10957
10958
10959 # Check for command to grab the raw symbol name followed by C symbol from nm.
10960 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10961 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10962 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965
10966 # These are sane defaults that work on at least a few old systems.
10967 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10968
10969 # Character class describing NM global symbol codes.
10970 symcode='[BCDEGRST]'
10971
10972 # Regexp to match symbols that can be accessed directly from C.
10973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10974
10975 # Transform the above into a raw symbol and a C symbol.
10976 symxfrm='\1 \2\3 \3'
10977
10978 # Transform an extracted symbol line into a proper C declaration
10979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10980
10981 # Transform an extracted symbol line into symbol name and symbol address
10982 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'"
10983
10984 # Define system-specific variables.
10985 case $host_os in
10986 aix*)
10987   symcode='[BCDT]'
10988   ;;
10989 cygwin* | mingw* | pw32*)
10990   symcode='[ABCDGISTW]'
10991   ;;
10992 hpux*) # Its linker distinguishes data from code symbols
10993   if test "$host_cpu" = ia64; then
10994     symcode='[ABCDEGRST]'
10995   fi
10996   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10997   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'"
10998   ;;
10999 linux*)
11000   if test "$host_cpu" = ia64; then
11001     symcode='[ABCDGIRSTW]'
11002     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11003     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'"
11004   fi
11005   ;;
11006 irix* | nonstopux*)
11007   symcode='[BCDEGRST]'
11008   ;;
11009 osf*)
11010   symcode='[BCDEGQRST]'
11011   ;;
11012 solaris* | sysv5*)
11013   symcode='[BDRT]'
11014   ;;
11015 sysv4)
11016   symcode='[DFNSTU]'
11017   ;;
11018 esac
11019
11020 # Handle CRLF in mingw tool chain
11021 opt_cr=
11022 case $build_os in
11023 mingw*)
11024   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11025   ;;
11026 esac
11027
11028 # If we're using GNU nm, then use its standard symbol codes.
11029 case `$NM -V 2>&1` in
11030 *GNU* | *'with BFD'*)
11031   symcode='[ABCDGIRSTW]' ;;
11032 esac
11033
11034 # Try without a prefix undercore, then with it.
11035 for ac_symprfx in "" "_"; do
11036
11037   # Write the raw and C identifiers.
11038   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11039
11040   # Check to see that the pipe works correctly.
11041   pipe_works=no
11042
11043   rm -f conftest*
11044   cat > conftest.$ac_ext <<EOF
11045 #ifdef __cplusplus
11046 extern "C" {
11047 #endif
11048 char nm_test_var;
11049 void nm_test_func(){}
11050 #ifdef __cplusplus
11051 }
11052 #endif
11053 int main(){nm_test_var='a';nm_test_func();return(0);}
11054 EOF
11055
11056   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057   (eval $ac_compile) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; then
11061     # Now try to grab the symbols.
11062     nlist=conftest.nm
11063     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11064   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } && test -s "$nlist"; then
11068       # Try sorting and uniquifying the output.
11069       if sort "$nlist" | uniq > "$nlist"T; then
11070         mv -f "$nlist"T "$nlist"
11071       else
11072         rm -f "$nlist"T
11073       fi
11074
11075       # Make sure that we snagged all the symbols we need.
11076       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11077         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11078           cat <<EOF > conftest.$ac_ext
11079 #ifdef __cplusplus
11080 extern "C" {
11081 #endif
11082
11083 EOF
11084           # Now generate the symbol file.
11085           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11086
11087           cat <<EOF >> conftest.$ac_ext
11088 #if defined (__STDC__) && __STDC__
11089 # define lt_ptr_t void *
11090 #else
11091 # define lt_ptr_t char *
11092 # define const
11093 #endif
11094
11095 /* The mapping between symbol names and symbols. */
11096 const struct {
11097   const char *name;
11098   lt_ptr_t address;
11099 }
11100 lt_preloaded_symbols[] =
11101 {
11102 EOF
11103           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11104           cat <<\EOF >> conftest.$ac_ext
11105   {0, (lt_ptr_t) 0}
11106 };
11107
11108 #ifdef __cplusplus
11109 }
11110 #endif
11111 EOF
11112           # Now try linking the two files.
11113           mv conftest.$ac_objext conftstm.$ac_objext
11114           lt_save_LIBS="$LIBS"
11115           lt_save_CFLAGS="$CFLAGS"
11116           LIBS="conftstm.$ac_objext"
11117           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11118           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119   (eval $ac_link) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11123             pipe_works=yes
11124           fi
11125           LIBS="$lt_save_LIBS"
11126           CFLAGS="$lt_save_CFLAGS"
11127         else
11128           echo "cannot find nm_test_func in $nlist" >&5
11129         fi
11130       else
11131         echo "cannot find nm_test_var in $nlist" >&5
11132       fi
11133     else
11134       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11135     fi
11136   else
11137     echo "$progname: failed program was:" >&5
11138     cat conftest.$ac_ext >&5
11139   fi
11140   rm -f conftest* conftst*
11141
11142   # Do not use the global_symbol_pipe unless it works.
11143   if test "$pipe_works" = yes; then
11144     break
11145   else
11146     lt_cv_sys_global_symbol_pipe=
11147   fi
11148 done
11149
11150 fi
11151
11152 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11153   lt_cv_sys_global_symbol_to_cdecl=
11154 fi
11155 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11156   echo "$as_me:$LINENO: result: failed" >&5
11157 echo "${ECHO_T}failed" >&6
11158 else
11159   echo "$as_me:$LINENO: result: ok" >&5
11160 echo "${ECHO_T}ok" >&6
11161 fi
11162
11163 echo "$as_me:$LINENO: checking for objdir" >&5
11164 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11165 if test "${lt_cv_objdir+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   rm -f .libs 2>/dev/null
11169 mkdir .libs 2>/dev/null
11170 if test -d .libs; then
11171   lt_cv_objdir=.libs
11172 else
11173   # MS-DOS does not allow filenames that begin with a dot.
11174   lt_cv_objdir=_libs
11175 fi
11176 rmdir .libs 2>/dev/null
11177 fi
11178 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11179 echo "${ECHO_T}$lt_cv_objdir" >&6
11180 objdir=$lt_cv_objdir
11181
11182
11183
11184
11185
11186 case $host_os in
11187 aix3*)
11188   # AIX sometimes has problems with the GCC collect2 program.  For some
11189   # reason, if we set the COLLECT_NAMES environment variable, the problems
11190   # vanish in a puff of smoke.
11191   if test "X${COLLECT_NAMES+set}" != Xset; then
11192     COLLECT_NAMES=
11193     export COLLECT_NAMES
11194   fi
11195   ;;
11196 esac
11197
11198 # Sed substitution that helps us do robust quoting.  It backslashifies
11199 # metacharacters that are still active within double-quoted strings.
11200 Xsed='sed -e s/^X//'
11201 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11202
11203 # Same as above, but do not quote variable references.
11204 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11205
11206 # Sed substitution to delay expansion of an escaped shell variable in a
11207 # double_quote_subst'ed string.
11208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11209
11210 # Sed substitution to avoid accidental globbing in evaled expressions
11211 no_glob_subst='s/\*/\\\*/g'
11212
11213 # Constants:
11214 rm="rm -f"
11215
11216 # Global variables:
11217 default_ofile=mklib
11218 can_build_shared=yes
11219
11220 # All known linkers require a `.a' archive for static linking (except M$VC,
11221 # which needs '.lib').
11222 libext=a
11223 ltmain="$ac_aux_dir/ltmain.sh"
11224 ofile="$default_ofile"
11225 with_gnu_ld="$lt_cv_prog_gnu_ld"
11226
11227 if test -n "$ac_tool_prefix"; then
11228   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11229 set dummy ${ac_tool_prefix}ar; ac_word=$2
11230 echo "$as_me:$LINENO: checking for $ac_word" >&5
11231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11232 if test "${ac_cv_prog_AR+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   if test -n "$AR"; then
11236   ac_cv_prog_AR="$AR" # Let the user override the test.
11237 else
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241   IFS=$as_save_IFS
11242   test -z "$as_dir" && as_dir=.
11243   for ac_exec_ext in '' $ac_executable_extensions; do
11244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11245     ac_cv_prog_AR="${ac_tool_prefix}ar"
11246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11247     break 2
11248   fi
11249 done
11250 done
11251
11252 fi
11253 fi
11254 AR=$ac_cv_prog_AR
11255 if test -n "$AR"; then
11256   echo "$as_me:$LINENO: result: $AR" >&5
11257 echo "${ECHO_T}$AR" >&6
11258 else
11259   echo "$as_me:$LINENO: result: no" >&5
11260 echo "${ECHO_T}no" >&6
11261 fi
11262
11263 fi
11264 if test -z "$ac_cv_prog_AR"; then
11265   ac_ct_AR=$AR
11266   # Extract the first word of "ar", so it can be a program name with args.
11267 set dummy ar; ac_word=$2
11268 echo "$as_me:$LINENO: checking for $ac_word" >&5
11269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11270 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273   if test -n "$ac_ct_AR"; then
11274   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11275 else
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11278 do
11279   IFS=$as_save_IFS
11280   test -z "$as_dir" && as_dir=.
11281   for ac_exec_ext in '' $ac_executable_extensions; do
11282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11283     ac_cv_prog_ac_ct_AR="ar"
11284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285     break 2
11286   fi
11287 done
11288 done
11289
11290   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11291 fi
11292 fi
11293 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11294 if test -n "$ac_ct_AR"; then
11295   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11296 echo "${ECHO_T}$ac_ct_AR" >&6
11297 else
11298   echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6
11300 fi
11301
11302   AR=$ac_ct_AR
11303 else
11304   AR="$ac_cv_prog_AR"
11305 fi
11306
11307 if test -n "$ac_tool_prefix"; then
11308   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11310 echo "$as_me:$LINENO: checking for $ac_word" >&5
11311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11312 if test "${ac_cv_prog_RANLIB+set}" = set; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   if test -n "$RANLIB"; then
11316   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11317 else
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11320 do
11321   IFS=$as_save_IFS
11322   test -z "$as_dir" && as_dir=.
11323   for ac_exec_ext in '' $ac_executable_extensions; do
11324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11327     break 2
11328   fi
11329 done
11330 done
11331
11332 fi
11333 fi
11334 RANLIB=$ac_cv_prog_RANLIB
11335 if test -n "$RANLIB"; then
11336   echo "$as_me:$LINENO: result: $RANLIB" >&5
11337 echo "${ECHO_T}$RANLIB" >&6
11338 else
11339   echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6
11341 fi
11342
11343 fi
11344 if test -z "$ac_cv_prog_RANLIB"; then
11345   ac_ct_RANLIB=$RANLIB
11346   # Extract the first word of "ranlib", so it can be a program name with args.
11347 set dummy ranlib; ac_word=$2
11348 echo "$as_me:$LINENO: checking for $ac_word" >&5
11349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11350 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11351   echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353   if test -n "$ac_ct_RANLIB"; then
11354   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11355 else
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359   IFS=$as_save_IFS
11360   test -z "$as_dir" && as_dir=.
11361   for ac_exec_ext in '' $ac_executable_extensions; do
11362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363     ac_cv_prog_ac_ct_RANLIB="ranlib"
11364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365     break 2
11366   fi
11367 done
11368 done
11369
11370   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11371 fi
11372 fi
11373 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11374 if test -n "$ac_ct_RANLIB"; then
11375   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11376 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11377 else
11378   echo "$as_me:$LINENO: result: no" >&5
11379 echo "${ECHO_T}no" >&6
11380 fi
11381
11382   RANLIB=$ac_ct_RANLIB
11383 else
11384   RANLIB="$ac_cv_prog_RANLIB"
11385 fi
11386
11387 if test -n "$ac_tool_prefix"; then
11388   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11389 set dummy ${ac_tool_prefix}strip; ac_word=$2
11390 echo "$as_me:$LINENO: checking for $ac_word" >&5
11391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11392 if test "${ac_cv_prog_STRIP+set}" = set; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   if test -n "$STRIP"; then
11396   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11397 else
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11400 do
11401   IFS=$as_save_IFS
11402   test -z "$as_dir" && as_dir=.
11403   for ac_exec_ext in '' $ac_executable_extensions; do
11404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11405     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11407     break 2
11408   fi
11409 done
11410 done
11411
11412 fi
11413 fi
11414 STRIP=$ac_cv_prog_STRIP
11415 if test -n "$STRIP"; then
11416   echo "$as_me:$LINENO: result: $STRIP" >&5
11417 echo "${ECHO_T}$STRIP" >&6
11418 else
11419   echo "$as_me:$LINENO: result: no" >&5
11420 echo "${ECHO_T}no" >&6
11421 fi
11422
11423 fi
11424 if test -z "$ac_cv_prog_STRIP"; then
11425   ac_ct_STRIP=$STRIP
11426   # Extract the first word of "strip", so it can be a program name with args.
11427 set dummy strip; ac_word=$2
11428 echo "$as_me:$LINENO: checking for $ac_word" >&5
11429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11431   echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433   if test -n "$ac_ct_STRIP"; then
11434   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11435 else
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11438 do
11439   IFS=$as_save_IFS
11440   test -z "$as_dir" && as_dir=.
11441   for ac_exec_ext in '' $ac_executable_extensions; do
11442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443     ac_cv_prog_ac_ct_STRIP="strip"
11444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11445     break 2
11446   fi
11447 done
11448 done
11449
11450   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11451 fi
11452 fi
11453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11454 if test -n "$ac_ct_STRIP"; then
11455   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11456 echo "${ECHO_T}$ac_ct_STRIP" >&6
11457 else
11458   echo "$as_me:$LINENO: result: no" >&5
11459 echo "${ECHO_T}no" >&6
11460 fi
11461
11462   STRIP=$ac_ct_STRIP
11463 else
11464   STRIP="$ac_cv_prog_STRIP"
11465 fi
11466
11467
11468 old_CC="$CC"
11469 old_CFLAGS="$CFLAGS"
11470
11471 # Set sane defaults for various variables
11472 test -z "$AR" && AR=ar
11473 test -z "$AR_FLAGS" && AR_FLAGS=cru
11474 test -z "$AS" && AS=as
11475 test -z "$CC" && CC=cc
11476 test -z "$LTCC" && LTCC=$CC
11477 test -z "$DLLTOOL" && DLLTOOL=dlltool
11478 test -z "$LD" && LD=ld
11479 test -z "$LN_S" && LN_S="ln -s"
11480 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11481 test -z "$NM" && NM=nm
11482 test -z "$SED" && SED=sed
11483 test -z "$OBJDUMP" && OBJDUMP=objdump
11484 test -z "$RANLIB" && RANLIB=:
11485 test -z "$STRIP" && STRIP=:
11486 test -z "$ac_objext" && ac_objext=o
11487
11488 # Determine commands to create old-style static archives.
11489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11490 old_postinstall_cmds='chmod 644 $oldlib'
11491 old_postuninstall_cmds=
11492
11493 if test -n "$RANLIB"; then
11494   case $host_os in
11495   openbsd*)
11496     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11497     ;;
11498   *)
11499     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11500     ;;
11501   esac
11502   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11503 fi
11504
11505 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11506
11507 # Only perform the check for file, if the check method requires it
11508 case $deplibs_check_method in
11509 file_magic*)
11510   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11511     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11512 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11514   echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516   case $MAGIC_CMD in
11517 [\\/*] |  ?:[\\/]*)
11518   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11519   ;;
11520 *)
11521   lt_save_MAGIC_CMD="$MAGIC_CMD"
11522   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11523   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11524   for ac_dir in $ac_dummy; do
11525     IFS="$lt_save_ifs"
11526     test -z "$ac_dir" && ac_dir=.
11527     if test -f $ac_dir/${ac_tool_prefix}file; then
11528       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11529       if test -n "$file_magic_test_file"; then
11530         case $deplibs_check_method in
11531         "file_magic "*)
11532           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11533           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11534           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11535             $EGREP "$file_magic_regex" > /dev/null; then
11536             :
11537           else
11538             cat <<EOF 1>&2
11539
11540 *** Warning: the command libtool uses to detect shared libraries,
11541 *** $file_magic_cmd, produces output that libtool cannot recognize.
11542 *** The result is that libtool may fail to recognize shared libraries
11543 *** as such.  This will affect the creation of libtool libraries that
11544 *** depend on shared libraries, but programs linked with such libtool
11545 *** libraries will work regardless of this problem.  Nevertheless, you
11546 *** may want to report the problem to your system manager and/or to
11547 *** bug-libtool@gnu.org
11548
11549 EOF
11550           fi ;;
11551         esac
11552       fi
11553       break
11554     fi
11555   done
11556   IFS="$lt_save_ifs"
11557   MAGIC_CMD="$lt_save_MAGIC_CMD"
11558   ;;
11559 esac
11560 fi
11561
11562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11563 if test -n "$MAGIC_CMD"; then
11564   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11565 echo "${ECHO_T}$MAGIC_CMD" >&6
11566 else
11567   echo "$as_me:$LINENO: result: no" >&5
11568 echo "${ECHO_T}no" >&6
11569 fi
11570
11571 if test -z "$lt_cv_path_MAGIC_CMD"; then
11572   if test -n "$ac_tool_prefix"; then
11573     echo "$as_me:$LINENO: checking for file" >&5
11574 echo $ECHO_N "checking for file... $ECHO_C" >&6
11575 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11576   echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578   case $MAGIC_CMD in
11579 [\\/*] |  ?:[\\/]*)
11580   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11581   ;;
11582 *)
11583   lt_save_MAGIC_CMD="$MAGIC_CMD"
11584   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11585   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11586   for ac_dir in $ac_dummy; do
11587     IFS="$lt_save_ifs"
11588     test -z "$ac_dir" && ac_dir=.
11589     if test -f $ac_dir/file; then
11590       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11591       if test -n "$file_magic_test_file"; then
11592         case $deplibs_check_method in
11593         "file_magic "*)
11594           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11595           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11596           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11597             $EGREP "$file_magic_regex" > /dev/null; then
11598             :
11599           else
11600             cat <<EOF 1>&2
11601
11602 *** Warning: the command libtool uses to detect shared libraries,
11603 *** $file_magic_cmd, produces output that libtool cannot recognize.
11604 *** The result is that libtool may fail to recognize shared libraries
11605 *** as such.  This will affect the creation of libtool libraries that
11606 *** depend on shared libraries, but programs linked with such libtool
11607 *** libraries will work regardless of this problem.  Nevertheless, you
11608 *** may want to report the problem to your system manager and/or to
11609 *** bug-libtool@gnu.org
11610
11611 EOF
11612           fi ;;
11613         esac
11614       fi
11615       break
11616     fi
11617   done
11618   IFS="$lt_save_ifs"
11619   MAGIC_CMD="$lt_save_MAGIC_CMD"
11620   ;;
11621 esac
11622 fi
11623
11624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11625 if test -n "$MAGIC_CMD"; then
11626   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11627 echo "${ECHO_T}$MAGIC_CMD" >&6
11628 else
11629   echo "$as_me:$LINENO: result: no" >&5
11630 echo "${ECHO_T}no" >&6
11631 fi
11632
11633   else
11634     MAGIC_CMD=:
11635   fi
11636 fi
11637
11638   fi
11639   ;;
11640 esac
11641
11642 enable_dlopen=yes
11643 enable_win32_dll=no
11644
11645 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11646 if test "${enable_libtool_lock+set}" = set; then
11647   enableval="$enable_libtool_lock"
11648
11649 fi;
11650 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11651
11652
11653 # Check whether --with-pic or --without-pic was given.
11654 if test "${with_pic+set}" = set; then
11655   withval="$with_pic"
11656   pic_mode="$withval"
11657 else
11658   pic_mode=default
11659 fi;
11660 test -z "$pic_mode" && pic_mode=default
11661
11662 # Use C for the default configuration in the libtool script
11663 tagname=
11664 lt_save_CC="$CC"
11665 ac_ext=c
11666 ac_cpp='$CPP $CPPFLAGS'
11667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11670
11671
11672 # Source file extension for C test sources.
11673 ac_ext=c
11674
11675 # Object file extension for compiled C test sources.
11676 objext=o
11677 objext=$objext
11678
11679 # Code to be used in simple compile tests
11680 lt_simple_compile_test_code="int some_variable = 0;\n"
11681
11682 # Code to be used in simple link tests
11683 lt_simple_link_test_code='int main(){return(0);}\n'
11684
11685
11686 # If no C compiler was specified, use CC.
11687 LTCC=${LTCC-"$CC"}
11688
11689 # Allow CC to be a program name with arguments.
11690 compiler=$CC
11691
11692
11693 #
11694 # Check for any special shared library compilation flags.
11695 #
11696 lt_prog_cc_shlib=
11697 if test "$GCC" = no; then
11698   case $host_os in
11699   sco3.2v5*)
11700     lt_prog_cc_shlib='-belf'
11701     ;;
11702   esac
11703 fi
11704 if test -n "$lt_prog_cc_shlib"; then
11705   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11706 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11707   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11708   else
11709     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11710 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11711     lt_cv_prog_cc_can_build_shared=no
11712   fi
11713 fi
11714
11715
11716 #
11717 # Check to make sure the static flag actually works.
11718 #
11719 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11720 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11721 if test "${lt_prog_compiler_static_works+set}" = set; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   lt_prog_compiler_static_works=no
11725    save_LDFLAGS="$LDFLAGS"
11726    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11727    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11728    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11729      # The compiler can only warn and ignore the option if not recognized
11730      # So say no if there are warnings
11731      if test -s conftest.err; then
11732        # Append any errors to the config.log.
11733        cat conftest.err 1>&5
11734      else
11735        lt_prog_compiler_static_works=yes
11736      fi
11737    fi
11738    $rm conftest*
11739    LDFLAGS="$save_LDFLAGS"
11740
11741 fi
11742 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11743 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11744
11745 if test x"$lt_prog_compiler_static_works" = xyes; then
11746     :
11747 else
11748     lt_prog_compiler_static=
11749 fi
11750
11751
11752
11753
11754 lt_prog_compiler_no_builtin_flag=
11755
11756 if test "$GCC" = yes; then
11757   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11758
11759
11760 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11761 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11762 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   lt_cv_prog_compiler_rtti_exceptions=no
11766   ac_outfile=conftest.$ac_objext
11767    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11768    lt_compiler_flag="-fno-rtti -fno-exceptions"
11769    # Insert the option either (1) after the last *FLAGS variable, or
11770    # (2) before a word containing "conftest.", or (3) at the end.
11771    # Note that $ac_compile itself does not contain backslashes and begins
11772    # with a dollar sign (not a hyphen), so the echo should work correctly.
11773    # The option is referenced via a variable to avoid confusing sed.
11774    lt_compile=`echo "$ac_compile" | $SED \
11775    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11777    -e 's:$: $lt_compiler_flag:'`
11778    (eval echo "\"\$as_me:11778: $lt_compile\"" >&5)
11779    (eval "$lt_compile" 2>conftest.err)
11780    ac_status=$?
11781    cat conftest.err >&5
11782    echo "$as_me:11782: \$? = $ac_status" >&5
11783    if (exit $ac_status) && test -s "$ac_outfile"; then
11784      # The compiler can only warn and ignore the option if not recognized
11785      # So say no if there are warnings
11786      if test ! -s conftest.err; then
11787        lt_cv_prog_compiler_rtti_exceptions=yes
11788      fi
11789    fi
11790    $rm conftest*
11791
11792 fi
11793 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11794 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11795
11796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11797     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11798 else
11799     :
11800 fi
11801
11802 fi
11803
11804 lt_prog_compiler_wl=
11805 lt_prog_compiler_pic=
11806 lt_prog_compiler_static=
11807
11808 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11809 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11810
11811   if test "$GCC" = yes; then
11812     lt_prog_compiler_wl='-Wl,'
11813     lt_prog_compiler_static='-static'
11814
11815     case $host_os in
11816       aix*)
11817       # All AIX code is PIC.
11818       if test "$host_cpu" = ia64; then
11819         # AIX 5 now supports IA64 processor
11820         lt_prog_compiler_static='-Bstatic'
11821       fi
11822       ;;
11823
11824     amigaos*)
11825       # FIXME: we need at least 68020 code to build shared libraries, but
11826       # adding the `-m68020' flag to GCC prevents building anything better,
11827       # like `-m68040'.
11828       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11829       ;;
11830
11831     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11832       # PIC is the default for these OSes.
11833       ;;
11834
11835     mingw* | pw32* | os2*)
11836       # This hack is so that the source file can tell whether it is being
11837       # built for inclusion in a dll (and should export symbols for example).
11838       lt_prog_compiler_pic='-DDLL_EXPORT'
11839       ;;
11840
11841     darwin* | rhapsody*)
11842       # PIC is the default on this platform
11843       # Common symbols not allowed in MH_DYLIB files
11844       lt_prog_compiler_pic='-fno-common'
11845       ;;
11846
11847     msdosdjgpp*)
11848       # Just because we use GCC doesn't mean we suddenly get shared libraries
11849       # on systems that don't support them.
11850       lt_prog_compiler_can_build_shared=no
11851       enable_shared=no
11852       ;;
11853
11854     sysv4*MP*)
11855       if test -d /usr/nec; then
11856         lt_prog_compiler_pic=-Kconform_pic
11857       fi
11858       ;;
11859
11860     hpux*)
11861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11862       # not for PA HP-UX.
11863       case "$host_cpu" in
11864       hppa*64*|ia64*)
11865         # +Z the default
11866         ;;
11867       *)
11868         lt_prog_compiler_pic='-fPIC'
11869         ;;
11870       esac
11871       ;;
11872
11873     *)
11874       lt_prog_compiler_pic='-fPIC'
11875       ;;
11876     esac
11877   else
11878     # PORTME Check for flag to pass linker flags through the system compiler.
11879     case $host_os in
11880     aix*)
11881       lt_prog_compiler_wl='-Wl,'
11882       if test "$host_cpu" = ia64; then
11883         # AIX 5 now supports IA64 processor
11884         lt_prog_compiler_static='-Bstatic'
11885       else
11886         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11887       fi
11888       ;;
11889       darwin*)
11890         # PIC is the default on this platform
11891         # Common symbols not allowed in MH_DYLIB files
11892        case "$cc_basename" in
11893          xlc*)
11894          lt_prog_compiler_pic='-qnocommon'
11895          lt_prog_compiler_wl='-Wl,'
11896          ;;
11897        esac
11898        ;;
11899
11900     mingw* | pw32* | os2*)
11901       # This hack is so that the source file can tell whether it is being
11902       # built for inclusion in a dll (and should export symbols for example).
11903       lt_prog_compiler_pic='-DDLL_EXPORT'
11904       ;;
11905
11906     hpux9* | hpux10* | hpux11*)
11907       lt_prog_compiler_wl='-Wl,'
11908       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11909       # not for PA HP-UX.
11910       case "$host_cpu" in
11911       hppa*64*|ia64*)
11912         # +Z the default
11913         ;;
11914       *)
11915         lt_prog_compiler_pic='+Z'
11916         ;;
11917       esac
11918       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11919       lt_prog_compiler_static='${wl}-a ${wl}archive'
11920       ;;
11921
11922     irix5* | irix6* | nonstopux*)
11923       lt_prog_compiler_wl='-Wl,'
11924       # PIC (with -KPIC) is the default.
11925       lt_prog_compiler_static='-non_shared'
11926       ;;
11927
11928     newsos6)
11929       lt_prog_compiler_pic='-KPIC'
11930       lt_prog_compiler_static='-Bstatic'
11931       ;;
11932
11933     linux*)
11934       case $CC in
11935       icc* | ecc*)
11936         lt_prog_compiler_wl='-Wl,'
11937         lt_prog_compiler_pic='-KPIC'
11938         lt_prog_compiler_static='-static'
11939         ;;
11940       ccc*)
11941         lt_prog_compiler_wl='-Wl,'
11942         # All Alpha code is PIC.
11943         lt_prog_compiler_static='-non_shared'
11944         ;;
11945       esac
11946       ;;
11947
11948     osf3* | osf4* | osf5*)
11949       lt_prog_compiler_wl='-Wl,'
11950       # All OSF/1 code is PIC.
11951       lt_prog_compiler_static='-non_shared'
11952       ;;
11953
11954     sco3.2v5*)
11955       lt_prog_compiler_pic='-Kpic'
11956       lt_prog_compiler_static='-dn'
11957       ;;
11958
11959     solaris*)
11960       lt_prog_compiler_wl='-Wl,'
11961       lt_prog_compiler_pic='-KPIC'
11962       lt_prog_compiler_static='-Bstatic'
11963       ;;
11964
11965     sunos4*)
11966       lt_prog_compiler_wl='-Qoption ld '
11967       lt_prog_compiler_pic='-PIC'
11968       lt_prog_compiler_static='-Bstatic'
11969       ;;
11970
11971     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11972       lt_prog_compiler_wl='-Wl,'
11973       lt_prog_compiler_pic='-KPIC'
11974       lt_prog_compiler_static='-Bstatic'
11975       ;;
11976
11977     sysv4*MP*)
11978       if test -d /usr/nec ;then
11979         lt_prog_compiler_pic='-Kconform_pic'
11980         lt_prog_compiler_static='-Bstatic'
11981       fi
11982       ;;
11983
11984     uts4*)
11985       lt_prog_compiler_pic='-pic'
11986       lt_prog_compiler_static='-Bstatic'
11987       ;;
11988
11989     *)
11990       lt_prog_compiler_can_build_shared=no
11991       ;;
11992     esac
11993   fi
11994
11995 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11996 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11997
11998 #
11999 # Check to make sure the PIC flag actually works.
12000 #
12001 if test -n "$lt_prog_compiler_pic"; then
12002
12003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12005 if test "${lt_prog_compiler_pic_works+set}" = set; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   lt_prog_compiler_pic_works=no
12009   ac_outfile=conftest.$ac_objext
12010    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12011    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12012    # Insert the option either (1) after the last *FLAGS variable, or
12013    # (2) before a word containing "conftest.", or (3) at the end.
12014    # Note that $ac_compile itself does not contain backslashes and begins
12015    # with a dollar sign (not a hyphen), so the echo should work correctly.
12016    # The option is referenced via a variable to avoid confusing sed.
12017    lt_compile=`echo "$ac_compile" | $SED \
12018    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12020    -e 's:$: $lt_compiler_flag:'`
12021    (eval echo "\"\$as_me:12021: $lt_compile\"" >&5)
12022    (eval "$lt_compile" 2>conftest.err)
12023    ac_status=$?
12024    cat conftest.err >&5
12025    echo "$as_me:12025: \$? = $ac_status" >&5
12026    if (exit $ac_status) && test -s "$ac_outfile"; then
12027      # The compiler can only warn and ignore the option if not recognized
12028      # So say no if there are warnings
12029      if test ! -s conftest.err; then
12030        lt_prog_compiler_pic_works=yes
12031      fi
12032    fi
12033    $rm conftest*
12034
12035 fi
12036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12037 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12038
12039 if test x"$lt_prog_compiler_pic_works" = xyes; then
12040     case $lt_prog_compiler_pic in
12041      "" | " "*) ;;
12042      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12043      esac
12044 else
12045     lt_prog_compiler_pic=
12046      lt_prog_compiler_can_build_shared=no
12047 fi
12048
12049 fi
12050 case "$host_os" in
12051   # For platforms which do not support PIC, -DPIC is meaningless:
12052   *djgpp*)
12053     lt_prog_compiler_pic=
12054     ;;
12055   *)
12056     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12057     ;;
12058 esac
12059
12060 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12062 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   lt_cv_prog_compiler_c_o=no
12066    $rm -r conftest 2>/dev/null
12067    mkdir conftest
12068    cd conftest
12069    mkdir out
12070    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12071
12072    lt_compiler_flag="-o out/conftest2.$ac_objext"
12073    # Insert the option either (1) after the last *FLAGS variable, or
12074    # (2) before a word containing "conftest.", or (3) at the end.
12075    # Note that $ac_compile itself does not contain backslashes and begins
12076    # with a dollar sign (not a hyphen), so the echo should work correctly.
12077    lt_compile=`echo "$ac_compile" | $SED \
12078    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12080    -e 's:$: $lt_compiler_flag:'`
12081    (eval echo "\"\$as_me:12081: $lt_compile\"" >&5)
12082    (eval "$lt_compile" 2>out/conftest.err)
12083    ac_status=$?
12084    cat out/conftest.err >&5
12085    echo "$as_me:12085: \$? = $ac_status" >&5
12086    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12087    then
12088      # The compiler can only warn and ignore the option if not recognized
12089      # So say no if there are warnings
12090      if test ! -s out/conftest.err; then
12091        lt_cv_prog_compiler_c_o=yes
12092      fi
12093    fi
12094    chmod u+w .
12095    $rm conftest*
12096    # SGI C++ compiler will create directory out/ii_files/ for
12097    # template instantiation
12098    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12099    $rm out/* && rmdir out
12100    cd ..
12101    rmdir conftest
12102    $rm conftest*
12103
12104 fi
12105 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12106 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12107
12108
12109 hard_links="nottested"
12110 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12111   # do not overwrite the value of need_locks provided by the user
12112   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12114   hard_links=yes
12115   $rm conftest*
12116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12117   touch conftest.a
12118   ln conftest.a conftest.b 2>&5 || hard_links=no
12119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12120   echo "$as_me:$LINENO: result: $hard_links" >&5
12121 echo "${ECHO_T}$hard_links" >&6
12122   if test "$hard_links" = no; then
12123     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12125     need_locks=warn
12126   fi
12127 else
12128   need_locks=no
12129 fi
12130
12131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12133
12134   runpath_var=
12135   allow_undefined_flag=
12136   enable_shared_with_static_runtimes=no
12137   archive_cmds=
12138   archive_expsym_cmds=
12139   old_archive_From_new_cmds=
12140   old_archive_from_expsyms_cmds=
12141   export_dynamic_flag_spec=
12142   whole_archive_flag_spec=
12143   thread_safe_flag_spec=
12144   hardcode_libdir_flag_spec=
12145   hardcode_libdir_flag_spec_ld=
12146   hardcode_libdir_separator=
12147   hardcode_direct=no
12148   hardcode_minus_L=no
12149   hardcode_shlibpath_var=unsupported
12150   link_all_deplibs=unknown
12151   hardcode_automatic=no
12152   module_cmds=
12153   module_expsym_cmds=
12154   always_export_symbols=no
12155   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12156   # include_expsyms should be a list of space-separated symbols to be *always*
12157   # included in the symbol list
12158   include_expsyms=
12159   # exclude_expsyms can be an extended regexp of symbols to exclude
12160   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12161   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12162   # as well as any symbol that contains `d'.
12163   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12164   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12165   # platforms (ab)use it in PIC code, but their linkers get confused if
12166   # the symbol is explicitly referenced.  Since portable code cannot
12167   # rely on this symbol name, it's probably fine to never include it in
12168   # preloaded symbol tables.
12169   extract_expsyms_cmds=
12170
12171   case $host_os in
12172   cygwin* | mingw* | pw32*)
12173     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12174     # When not using gcc, we currently assume that we are using
12175     # Microsoft Visual C++.
12176     if test "$GCC" != yes; then
12177       with_gnu_ld=no
12178     fi
12179     ;;
12180   openbsd*)
12181     with_gnu_ld=no
12182     ;;
12183   esac
12184
12185   ld_shlibs=yes
12186   if test "$with_gnu_ld" = yes; then
12187     # If archive_cmds runs LD, not CC, wlarc should be empty
12188     wlarc='${wl}'
12189
12190     # See if GNU ld supports shared libraries.
12191     case $host_os in
12192     aix3* | aix4* | aix5*)
12193       # On AIX/PPC, the GNU linker is very broken
12194       if test "$host_cpu" != ia64; then
12195         ld_shlibs=no
12196         cat <<EOF 1>&2
12197
12198 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12199 *** to be unable to reliably create shared libraries on AIX.
12200 *** Therefore, libtool is disabling shared libraries support.  If you
12201 *** really care for shared libraries, you may want to modify your PATH
12202 *** so that a non-GNU linker is found, and then restart.
12203
12204 EOF
12205       fi
12206       ;;
12207
12208     amigaos*)
12209       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)'
12210       hardcode_libdir_flag_spec='-L$libdir'
12211       hardcode_minus_L=yes
12212
12213       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12214       # that the semantics of dynamic libraries on AmigaOS, at least up
12215       # to version 4, is to share data among multiple programs linked
12216       # with the same dynamic library.  Since this doesn't match the
12217       # behavior of shared libraries on other platforms, we can't use
12218       # them.
12219       ld_shlibs=no
12220       ;;
12221
12222     beos*)
12223       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12224         allow_undefined_flag=unsupported
12225         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12226         # support --undefined.  This deserves some investigation.  FIXME
12227         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228       else
12229         ld_shlibs=no
12230       fi
12231       ;;
12232
12233     cygwin* | mingw* | pw32*)
12234       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12235       # as there is no search path for DLLs.
12236       hardcode_libdir_flag_spec='-L$libdir'
12237       allow_undefined_flag=unsupported
12238       always_export_symbols=no
12239       enable_shared_with_static_runtimes=yes
12240       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12241
12242       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12244         # If the export-symbols file already is a .def file (1st line
12245         # is EXPORTS), use it as is; otherwise, prepend...
12246         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12247           cp $export_symbols $output_objdir/$soname.def;
12248         else
12249           echo EXPORTS > $output_objdir/$soname.def;
12250           cat $export_symbols >> $output_objdir/$soname.def;
12251         fi~
12252         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12253       else
12254         ld_shlibs=no
12255       fi
12256       ;;
12257
12258     netbsd*)
12259       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12260         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12261         wlarc=
12262       else
12263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12265       fi
12266       ;;
12267
12268     solaris* | sysv5*)
12269       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12270         ld_shlibs=no
12271         cat <<EOF 1>&2
12272
12273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12274 *** create shared libraries on Solaris systems.  Therefore, libtool
12275 *** is disabling shared libraries support.  We urge you to upgrade GNU
12276 *** binutils to release 2.9.1 or newer.  Another option is to modify
12277 *** your PATH or compiler configuration so that the native linker is
12278 *** used, and then restart.
12279
12280 EOF
12281       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12282         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12284       else
12285         ld_shlibs=no
12286       fi
12287       ;;
12288
12289     sunos4*)
12290       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12291       wlarc=
12292       hardcode_direct=yes
12293       hardcode_shlibpath_var=no
12294       ;;
12295
12296   linux*)
12297     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299         archive_cmds="$tmp_archive_cmds"
12300       supports_anon_versioning=no
12301       case `$LD -v 2>/dev/null` in
12302         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12303         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12304         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12305         *\ 2.11.*) ;; # other 2.11 versions
12306         *) supports_anon_versioning=yes ;;
12307       esac
12308       if test $supports_anon_versioning = yes; then
12309         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12311 $echo "local: *; };" >> $output_objdir/$libname.ver~
12312         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12313       else
12314         archive_expsym_cmds="$tmp_archive_cmds"
12315       fi
12316     else
12317       ld_shlibs=no
12318     fi
12319     ;;
12320
12321     *)
12322       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12323         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12325       else
12326         ld_shlibs=no
12327       fi
12328       ;;
12329     esac
12330
12331     if test "$ld_shlibs" = yes; then
12332       runpath_var=LD_RUN_PATH
12333       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12334       export_dynamic_flag_spec='${wl}--export-dynamic'
12335       # ancient GNU ld didn't support --whole-archive et. al.
12336       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12337         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12338       else
12339         whole_archive_flag_spec=
12340       fi
12341     fi
12342   else
12343     # PORTME fill in a description of your system's linker (not GNU ld)
12344     case $host_os in
12345     aix3*)
12346       allow_undefined_flag=unsupported
12347       always_export_symbols=yes
12348       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'
12349       # Note: this linker hardcodes the directories in LIBPATH if there
12350       # are no directories specified by -L.
12351       hardcode_minus_L=yes
12352       if test "$GCC" = yes && test -z "$link_static_flag"; then
12353         # Neither direct hardcoding nor static linking is supported with a
12354         # broken collect2.
12355         hardcode_direct=unsupported
12356       fi
12357       ;;
12358
12359     aix4* | aix5*)
12360       if test "$host_cpu" = ia64; then
12361         # On IA64, the linker does run time linking by default, so we don't
12362         # have to do anything special.
12363         aix_use_runtimelinking=no
12364         exp_sym_flag='-Bexport'
12365         no_entry_flag=""
12366       else
12367         # If we're using GNU nm, then we don't want the "-C" option.
12368         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12369         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12370           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'
12371         else
12372           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'
12373         fi
12374         aix_use_runtimelinking=no
12375
12376         # Test if we are trying to use run time linking or normal
12377         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12378         # need to do runtime linking.
12379         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12380           for ld_flag in $LDFLAGS; do
12381           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12382             aix_use_runtimelinking=yes
12383             break
12384           fi
12385           done
12386         esac
12387
12388         exp_sym_flag='-bexport'
12389         no_entry_flag='-bnoentry'
12390       fi
12391
12392       # When large executables or shared objects are built, AIX ld can
12393       # have problems creating the table of contents.  If linking a library
12394       # or program results in "error TOC overflow" add -mminimal-toc to
12395       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12396       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12397
12398       archive_cmds=''
12399       hardcode_direct=yes
12400       hardcode_libdir_separator=':'
12401       link_all_deplibs=yes
12402
12403       if test "$GCC" = yes; then
12404         case $host_os in aix4.012|aix4.012.*)
12405         # We only want to do this on AIX 4.2 and lower, the check
12406         # below for broken collect2 doesn't work under 4.3+
12407           collect2name=`${CC} -print-prog-name=collect2`
12408           if test -f "$collect2name" && \
12409            strings "$collect2name" | grep resolve_lib_name >/dev/null
12410           then
12411           # We have reworked collect2
12412           hardcode_direct=yes
12413           else
12414           # We have old collect2
12415           hardcode_direct=unsupported
12416           # It fails to find uninstalled libraries when the uninstalled
12417           # path is not listed in the libpath.  Setting hardcode_minus_L
12418           # to unsupported forces relinking
12419           hardcode_minus_L=yes
12420           hardcode_libdir_flag_spec='-L$libdir'
12421           hardcode_libdir_separator=
12422           fi
12423         esac
12424         shared_flag='-shared'
12425       else
12426         # not using gcc
12427         if test "$host_cpu" = ia64; then
12428         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12429         # chokes on -Wl,-G. The following line is correct:
12430           shared_flag='-G'
12431         else
12432         if test "$aix_use_runtimelinking" = yes; then
12433             shared_flag='${wl}-G'
12434           else
12435             shared_flag='${wl}-bM:SRE'
12436         fi
12437         fi
12438       fi
12439
12440       # It seems that -bexpall does not export symbols beginning with
12441       # underscore (_), so it is better to generate a list of symbols to export.
12442       always_export_symbols=yes
12443       if test "$aix_use_runtimelinking" = yes; then
12444         # Warning - without using the other runtime loading flags (-brtl),
12445         # -berok will link without error, but may produce a broken library.
12446         allow_undefined_flag='-berok'
12447        # Determine the default libpath from the value encoded in an empty executable.
12448        cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454
12455 int
12456 main ()
12457 {
12458
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465   (eval $ac_link) 2>conftest.er1
12466   ac_status=$?
12467   grep -v '^ *+' conftest.er1 >conftest.err
12468   rm -f conftest.er1
12469   cat conftest.err >&5
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } &&
12472          { ac_try='test -z "$ac_c_werror_flag"
12473                          || test ! -s conftest.err'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; } &&
12479          { ac_try='test -s conftest$ac_exeext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485
12486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12487 }'`
12488 # Check for a 64-bit object if we didn't find anything.
12489 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; }
12490 }'`; fi
12491 else
12492   echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12494
12495 fi
12496 rm -f conftest.err conftest.$ac_objext \
12497       conftest$ac_exeext conftest.$ac_ext
12498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12499
12500        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12501         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"
12502        else
12503         if test "$host_cpu" = ia64; then
12504           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12505           allow_undefined_flag="-z nodefs"
12506           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"
12507         else
12508          # Determine the default libpath from the value encoded in an empty executable.
12509          cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h.  */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h.  */
12515
12516 int
12517 main ()
12518 {
12519
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526   (eval $ac_link) 2>conftest.er1
12527   ac_status=$?
12528   grep -v '^ *+' conftest.er1 >conftest.err
12529   rm -f conftest.er1
12530   cat conftest.err >&5
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -z "$ac_c_werror_flag"
12534                          || test ! -s conftest.err'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546
12547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12548 }'`
12549 # Check for a 64-bit object if we didn't find anything.
12550 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; }
12551 }'`; fi
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556 fi
12557 rm -f conftest.err conftest.$ac_objext \
12558       conftest$ac_exeext conftest.$ac_ext
12559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12560
12561          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12562           # Warning - without using the other run time loading flags,
12563           # -berok will link without error, but may produce a broken library.
12564           no_undefined_flag=' ${wl}-bernotok'
12565           allow_undefined_flag=' ${wl}-berok'
12566           # -bexpall does not export symbols beginning with underscore (_)
12567           always_export_symbols=yes
12568           # Exported symbols can be pulled into shared objects from archives
12569           whole_archive_flag_spec=' '
12570           archive_cmds_need_lc=yes
12571           # This is similar to how AIX traditionally builds it's shared libraries.
12572           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'
12573         fi
12574       fi
12575       ;;
12576
12577     amigaos*)
12578       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)'
12579       hardcode_libdir_flag_spec='-L$libdir'
12580       hardcode_minus_L=yes
12581       # see comment about different semantics on the GNU ld section
12582       ld_shlibs=no
12583       ;;
12584
12585     bsdi[45]*)
12586       export_dynamic_flag_spec=-rdynamic
12587       ;;
12588
12589     cygwin* | mingw* | pw32*)
12590       # When not using gcc, we currently assume that we are using
12591       # Microsoft Visual C++.
12592       # hardcode_libdir_flag_spec is actually meaningless, as there is
12593       # no search path for DLLs.
12594       hardcode_libdir_flag_spec=' '
12595       allow_undefined_flag=unsupported
12596       # Tell ltmain to make .lib files, not .a files.
12597       libext=lib
12598       # Tell ltmain to make .dll files, not .so files.
12599       shrext_cmds=".dll"
12600       # FIXME: Setting linknames here is a bad hack.
12601       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12602       # The linker will automatically build a .lib file if we build a DLL.
12603       old_archive_From_new_cmds='true'
12604       # FIXME: Should let the user specify the lib program.
12605       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12606       fix_srcfile_path='`cygpath -w "$srcfile"`'
12607       enable_shared_with_static_runtimes=yes
12608       ;;
12609
12610     darwin* | rhapsody*)
12611       case "$host_os" in
12612         rhapsody* | darwin1.[012])
12613          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12614          ;;
12615        *) # Darwin 1.3 on
12616          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12617            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12618          else
12619            case ${MACOSX_DEPLOYMENT_TARGET} in
12620              10.[012])
12621                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12622                ;;
12623              10.*)
12624                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12625                ;;
12626            esac
12627          fi
12628          ;;
12629       esac
12630       archive_cmds_need_lc=no
12631       hardcode_direct=no
12632       hardcode_automatic=yes
12633       hardcode_shlibpath_var=unsupported
12634       whole_archive_flag_spec=''
12635       link_all_deplibs=yes
12636     if test "$GCC" = yes ; then
12637         output_verbose_link_cmd='echo'
12638         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12639       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12640       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12641       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}'
12642       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}'
12643     else
12644       case "$cc_basename" in
12645         xlc*)
12646          output_verbose_link_cmd='echo'
12647          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12648          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12649           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12650          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}'
12651           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}'
12652           ;;
12653        *)
12654          ld_shlibs=no
12655           ;;
12656       esac
12657     fi
12658       ;;
12659
12660     dgux*)
12661       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12662       hardcode_libdir_flag_spec='-L$libdir'
12663       hardcode_shlibpath_var=no
12664       ;;
12665
12666     freebsd1*)
12667       ld_shlibs=no
12668       ;;
12669
12670     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12671     # support.  Future versions do this automatically, but an explicit c++rt0.o
12672     # does not break anything, and helps significantly (at the cost of a little
12673     # extra space).
12674     freebsd2.2*)
12675       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12676       hardcode_libdir_flag_spec='-R$libdir'
12677       hardcode_direct=yes
12678       hardcode_shlibpath_var=no
12679       ;;
12680
12681     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12682     freebsd2*)
12683       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12684       hardcode_direct=yes
12685       hardcode_minus_L=yes
12686       hardcode_shlibpath_var=no
12687       ;;
12688
12689     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12690     freebsd* | kfreebsd*-gnu)
12691       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12692       hardcode_libdir_flag_spec='-R$libdir'
12693       hardcode_direct=yes
12694       hardcode_shlibpath_var=no
12695       ;;
12696
12697     hpux9*)
12698       if test "$GCC" = yes; then
12699         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'
12700       else
12701         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'
12702       fi
12703       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12704       hardcode_libdir_separator=:
12705       hardcode_direct=yes
12706
12707       # hardcode_minus_L: Not really in the search PATH,
12708       # but as the default location of the library.
12709       hardcode_minus_L=yes
12710       export_dynamic_flag_spec='${wl}-E'
12711       ;;
12712
12713     hpux10* | hpux11*)
12714       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12715         case "$host_cpu" in
12716         hppa*64*|ia64*)
12717           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12718           ;;
12719         *)
12720           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12721           ;;
12722         esac
12723       else
12724         case "$host_cpu" in
12725         hppa*64*|ia64*)
12726           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12727           ;;
12728         *)
12729           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12730           ;;
12731         esac
12732       fi
12733       if test "$with_gnu_ld" = no; then
12734         case "$host_cpu" in
12735         hppa*64*)
12736           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12737           hardcode_libdir_flag_spec_ld='+b $libdir'
12738           hardcode_libdir_separator=:
12739           hardcode_direct=no
12740           hardcode_shlibpath_var=no
12741           ;;
12742         ia64*)
12743           hardcode_libdir_flag_spec='-L$libdir'
12744           hardcode_direct=no
12745           hardcode_shlibpath_var=no
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         *)
12752           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12753           hardcode_libdir_separator=:
12754           hardcode_direct=yes
12755           export_dynamic_flag_spec='${wl}-E'
12756
12757           # hardcode_minus_L: Not really in the search PATH,
12758           # but as the default location of the library.
12759           hardcode_minus_L=yes
12760           ;;
12761         esac
12762       fi
12763       ;;
12764
12765     irix5* | irix6* | nonstopux*)
12766       if test "$GCC" = yes; then
12767         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'
12768       else
12769         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'
12770         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12771       fi
12772       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12773       hardcode_libdir_separator=:
12774       link_all_deplibs=yes
12775       ;;
12776
12777     netbsd*)
12778       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12779         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12780       else
12781         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12782       fi
12783       hardcode_libdir_flag_spec='-R$libdir'
12784       hardcode_direct=yes
12785       hardcode_shlibpath_var=no
12786       ;;
12787
12788     newsos6)
12789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12790       hardcode_direct=yes
12791       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12792       hardcode_libdir_separator=:
12793       hardcode_shlibpath_var=no
12794       ;;
12795
12796     openbsd*)
12797       hardcode_direct=yes
12798       hardcode_shlibpath_var=no
12799       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12800         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12801         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12802         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12803         export_dynamic_flag_spec='${wl}-E'
12804       else
12805        case $host_os in
12806          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12807            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12808            hardcode_libdir_flag_spec='-R$libdir'
12809            ;;
12810          *)
12811            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12812            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12813            ;;
12814        esac
12815       fi
12816       ;;
12817
12818     os2*)
12819       hardcode_libdir_flag_spec='-L$libdir'
12820       hardcode_minus_L=yes
12821       allow_undefined_flag=unsupported
12822       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'
12823       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12824       ;;
12825
12826     osf3*)
12827       if test "$GCC" = yes; then
12828         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12829         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'
12830       else
12831         allow_undefined_flag=' -expect_unresolved \*'
12832         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'
12833       fi
12834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12835       hardcode_libdir_separator=:
12836       ;;
12837
12838     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12839       if test "$GCC" = yes; then
12840         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12841         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'
12842         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12843       else
12844         allow_undefined_flag=' -expect_unresolved \*'
12845         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'
12846         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12847         $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'
12848
12849         # Both c and cxx compiler support -rpath directly
12850         hardcode_libdir_flag_spec='-rpath $libdir'
12851       fi
12852       hardcode_libdir_separator=:
12853       ;;
12854
12855     sco3.2v5*)
12856       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857       hardcode_shlibpath_var=no
12858       export_dynamic_flag_spec='${wl}-Bexport'
12859       runpath_var=LD_RUN_PATH
12860       hardcode_runpath_var=yes
12861       ;;
12862
12863     solaris*)
12864       no_undefined_flag=' -z text'
12865       if test "$GCC" = yes; then
12866         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12867         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12868           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12869       else
12870         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12871         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12872         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12873       fi
12874       hardcode_libdir_flag_spec='-R$libdir'
12875       hardcode_shlibpath_var=no
12876       case $host_os in
12877       solaris2.[0-5] | solaris2.[0-5].*) ;;
12878       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12879         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12880       esac
12881       link_all_deplibs=yes
12882       ;;
12883
12884     sunos4*)
12885       if test "x$host_vendor" = xsequent; then
12886         # Use $CC to link under sequent, because it throws in some extra .o
12887         # files that make .init and .fini sections work.
12888         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12889       else
12890         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12891       fi
12892       hardcode_libdir_flag_spec='-L$libdir'
12893       hardcode_direct=yes
12894       hardcode_minus_L=yes
12895       hardcode_shlibpath_var=no
12896       ;;
12897
12898     sysv4)
12899       case $host_vendor in
12900         sni)
12901           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12902           hardcode_direct=yes # is this really true???
12903         ;;
12904         siemens)
12905           ## LD is ld it makes a PLAMLIB
12906           ## CC just makes a GrossModule.
12907           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12908           reload_cmds='$CC -r -o $output$reload_objs'
12909           hardcode_direct=no
12910         ;;
12911         motorola)
12912           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12914         ;;
12915       esac
12916       runpath_var='LD_RUN_PATH'
12917       hardcode_shlibpath_var=no
12918       ;;
12919
12920     sysv4.3*)
12921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922       hardcode_shlibpath_var=no
12923       export_dynamic_flag_spec='-Bexport'
12924       ;;
12925
12926     sysv4*MP*)
12927       if test -d /usr/nec; then
12928         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12929         hardcode_shlibpath_var=no
12930         runpath_var=LD_RUN_PATH
12931         hardcode_runpath_var=yes
12932         ld_shlibs=yes
12933       fi
12934       ;;
12935
12936     sysv4.2uw2*)
12937       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12938       hardcode_direct=yes
12939       hardcode_minus_L=no
12940       hardcode_shlibpath_var=no
12941       hardcode_runpath_var=yes
12942       runpath_var=LD_RUN_PATH
12943       ;;
12944
12945    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12946       no_undefined_flag='${wl}-z ${wl}text'
12947       if test "$GCC" = yes; then
12948         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12949       else
12950         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12951       fi
12952       runpath_var='LD_RUN_PATH'
12953       hardcode_shlibpath_var=no
12954       ;;
12955
12956     sysv5*)
12957       no_undefined_flag=' -z text'
12958       # $CC -shared without GNU ld will not create a library from C++
12959       # object files and a static libstdc++, better avoid it by now
12960       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12961       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12962                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12963       hardcode_libdir_flag_spec=
12964       hardcode_shlibpath_var=no
12965       runpath_var='LD_RUN_PATH'
12966       ;;
12967
12968     uts4*)
12969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970       hardcode_libdir_flag_spec='-L$libdir'
12971       hardcode_shlibpath_var=no
12972       ;;
12973
12974     *)
12975       ld_shlibs=no
12976       ;;
12977     esac
12978   fi
12979
12980 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12981 echo "${ECHO_T}$ld_shlibs" >&6
12982 test "$ld_shlibs" = no && can_build_shared=no
12983
12984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12985 if test "$GCC" = yes; then
12986   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12987 fi
12988
12989 #
12990 # Do we need to explicitly link libc?
12991 #
12992 case "x$archive_cmds_need_lc" in
12993 x|xyes)
12994   # Assume -lc should be added
12995   archive_cmds_need_lc=yes
12996
12997   if test "$enable_shared" = yes && test "$GCC" = yes; then
12998     case $archive_cmds in
12999     *'~'*)
13000       # FIXME: we may have to deal with multi-command sequences.
13001       ;;
13002     '$CC '*)
13003       # Test whether the compiler implicitly links with -lc since on some
13004       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13005       # to ld, don't add -lc before -lgcc.
13006       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13007 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13008       $rm conftest*
13009       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13010
13011       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012   (eval $ac_compile) 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); } 2>conftest.err; then
13016         soname=conftest
13017         lib=conftest
13018         libobjs=conftest.$ac_objext
13019         deplibs=
13020         wl=$lt_prog_compiler_wl
13021         compiler_flags=-v
13022         linker_flags=-v
13023         verstring=
13024         output_objdir=.
13025         libname=conftest
13026         lt_save_allow_undefined_flag=$allow_undefined_flag
13027         allow_undefined_flag=
13028         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13029   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); }
13033         then
13034           archive_cmds_need_lc=no
13035         else
13036           archive_cmds_need_lc=yes
13037         fi
13038         allow_undefined_flag=$lt_save_allow_undefined_flag
13039       else
13040         cat conftest.err 1>&5
13041       fi
13042       $rm conftest*
13043       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13044 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13045       ;;
13046     esac
13047   fi
13048   ;;
13049 esac
13050
13051 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13052 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13053 library_names_spec=
13054 libname_spec='lib$name'
13055 soname_spec=
13056 shrext_cmds=".so"
13057 postinstall_cmds=
13058 postuninstall_cmds=
13059 finish_cmds=
13060 finish_eval=
13061 shlibpath_var=
13062 shlibpath_overrides_runpath=unknown
13063 version_type=none
13064 dynamic_linker="$host_os ld.so"
13065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13066 if test "$GCC" = yes; then
13067   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13068   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13069     # if the path contains ";" then we assume it to be the separator
13070     # otherwise default to the standard path separator (i.e. ":") - it is
13071     # assumed that no part of a normal pathname contains ";" but that should
13072     # okay in the real world where ";" in dirpaths is itself problematic.
13073     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13074   else
13075     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13076   fi
13077 else
13078   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13079 fi
13080 need_lib_prefix=unknown
13081 hardcode_into_libs=no
13082
13083 # when you set need_version to no, make sure it does not cause -set_version
13084 # flags to be left without arguments
13085 need_version=unknown
13086
13087 case $host_os in
13088 aix3*)
13089   version_type=linux
13090   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13091   shlibpath_var=LIBPATH
13092
13093   # AIX 3 has no versioning support, so we append a major version to the name.
13094   soname_spec='${libname}${release}${shared_ext}$major'
13095   ;;
13096
13097 aix4* | aix5*)
13098   version_type=linux
13099   need_lib_prefix=no
13100   need_version=no
13101   hardcode_into_libs=yes
13102   if test "$host_cpu" = ia64; then
13103     # AIX 5 supports IA64
13104     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13105     shlibpath_var=LD_LIBRARY_PATH
13106   else
13107     # With GCC up to 2.95.x, collect2 would create an import file
13108     # for dependence libraries.  The import file would start with
13109     # the line `#! .'.  This would cause the generated library to
13110     # depend on `.', always an invalid library.  This was fixed in
13111     # development snapshots of GCC prior to 3.0.
13112     case $host_os in
13113       aix4 | aix4.[01] | aix4.[01].*)
13114       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13115            echo ' yes '
13116            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13117         :
13118       else
13119         can_build_shared=no
13120       fi
13121       ;;
13122     esac
13123     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13124     # soname into executable. Probably we can add versioning support to
13125     # collect2, so additional links can be useful in future.
13126     if test "$aix_use_runtimelinking" = yes; then
13127       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13128       # instead of lib<name>.a to let people know that these are not
13129       # typical AIX shared libraries.
13130       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131     else
13132       # We preserve .a as extension for shared libraries through AIX4.2
13133       # and later when we are not doing run time linking.
13134       library_names_spec='${libname}${release}.a $libname.a'
13135       soname_spec='${libname}${release}${shared_ext}$major'
13136     fi
13137     shlibpath_var=LIBPATH
13138   fi
13139   ;;
13140
13141 amigaos*)
13142   library_names_spec='$libname.ixlibrary $libname.a'
13143   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13144   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'
13145   ;;
13146
13147 beos*)
13148   library_names_spec='${libname}${shared_ext}'
13149   dynamic_linker="$host_os ld.so"
13150   shlibpath_var=LIBRARY_PATH
13151   ;;
13152
13153 bsdi[45]*)
13154   version_type=linux
13155   need_version=no
13156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157   soname_spec='${libname}${release}${shared_ext}$major'
13158   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13159   shlibpath_var=LD_LIBRARY_PATH
13160   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13161   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13162   # the default ld.so.conf also contains /usr/contrib/lib and
13163   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13164   # libtool to hard-code these into programs
13165   ;;
13166
13167 cygwin* | mingw* | pw32*)
13168   version_type=windows
13169   shrext_cmds=".dll"
13170   need_version=no
13171   need_lib_prefix=no
13172
13173   case $GCC,$host_os in
13174   yes,cygwin* | yes,mingw* | yes,pw32*)
13175     library_names_spec='$libname.dll.a'
13176     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13177     postinstall_cmds='base_file=`basename \${file}`~
13178       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13179       dldir=$destdir/`dirname \$dlpath`~
13180       test -d \$dldir || mkdir -p \$dldir~
13181       $install_prog $dir/$dlname \$dldir/$dlname'
13182     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183       dlpath=$dir/\$dldll~
13184        $rm \$dlpath'
13185     shlibpath_overrides_runpath=yes
13186
13187     case $host_os in
13188     cygwin*)
13189       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13192       ;;
13193     mingw*)
13194       # MinGW DLLs use traditional 'lib' prefix
13195       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13196       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13197       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13198         # It is most probably a Windows format PATH printed by
13199         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13200         # path with ; separators, and with drive letters. We can handle the
13201         # drive letters (cygwin fileutils understands them), so leave them,
13202         # especially as we might pass files found there to a mingw objdump,
13203         # which wouldn't understand a cygwinified path. Ahh.
13204         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13205       else
13206         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13207       fi
13208       ;;
13209     pw32*)
13210       # pw32 DLLs use 'pw' prefix rather than 'lib'
13211       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13212       ;;
13213     esac
13214     ;;
13215
13216   *)
13217     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13218     ;;
13219   esac
13220   dynamic_linker='Win32 ld.exe'
13221   # FIXME: first we should search . and the directory the executable is in
13222   shlibpath_var=PATH
13223   ;;
13224
13225 darwin* | rhapsody*)
13226   dynamic_linker="$host_os dyld"
13227   version_type=darwin
13228   need_lib_prefix=no
13229   need_version=no
13230   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13231   soname_spec='${libname}${release}${major}$shared_ext'
13232   shlibpath_overrides_runpath=yes
13233   shlibpath_var=DYLD_LIBRARY_PATH
13234   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13235   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13236   if test "$GCC" = yes; then
13237     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"`
13238   else
13239     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13240   fi
13241   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13242   ;;
13243
13244 dgux*)
13245   version_type=linux
13246   need_lib_prefix=no
13247   need_version=no
13248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13249   soname_spec='${libname}${release}${shared_ext}$major'
13250   shlibpath_var=LD_LIBRARY_PATH
13251   ;;
13252
13253 freebsd1*)
13254   dynamic_linker=no
13255   ;;
13256
13257 kfreebsd*-gnu)
13258   version_type=linux
13259   need_lib_prefix=no
13260   need_version=no
13261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13262   soname_spec='${libname}${release}${shared_ext}$major'
13263   shlibpath_var=LD_LIBRARY_PATH
13264   shlibpath_overrides_runpath=no
13265   hardcode_into_libs=yes
13266   dynamic_linker='GNU ld.so'
13267   ;;
13268
13269 freebsd*)
13270   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13271   version_type=freebsd-$objformat
13272   case $version_type in
13273     freebsd-elf*)
13274       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13275       need_version=no
13276       need_lib_prefix=no
13277       ;;
13278     freebsd-*)
13279       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13280       need_version=yes
13281       ;;
13282   esac
13283   shlibpath_var=LD_LIBRARY_PATH
13284   case $host_os in
13285   freebsd2*)
13286     shlibpath_overrides_runpath=yes
13287     ;;
13288   freebsd3.01* | freebsdelf3.01*)
13289     shlibpath_overrides_runpath=yes
13290     hardcode_into_libs=yes
13291     ;;
13292   *) # from 3.2 on
13293     shlibpath_overrides_runpath=no
13294     hardcode_into_libs=yes
13295     ;;
13296   esac
13297   ;;
13298
13299 gnu*)
13300   version_type=linux
13301   need_lib_prefix=no
13302   need_version=no
13303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13304   soname_spec='${libname}${release}${shared_ext}$major'
13305   shlibpath_var=LD_LIBRARY_PATH
13306   hardcode_into_libs=yes
13307   ;;
13308
13309 hpux9* | hpux10* | hpux11*)
13310   # Give a soname corresponding to the major version so that dld.sl refuses to
13311   # link against other versions.
13312   version_type=sunos
13313   need_lib_prefix=no
13314   need_version=no
13315   case "$host_cpu" in
13316   ia64*)
13317     shrext_cmds='.so'
13318     hardcode_into_libs=yes
13319     dynamic_linker="$host_os dld.so"
13320     shlibpath_var=LD_LIBRARY_PATH
13321     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323     soname_spec='${libname}${release}${shared_ext}$major'
13324     if test "X$HPUX_IA64_MODE" = X32; then
13325       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13326     else
13327       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13328     fi
13329     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13330     ;;
13331    hppa*64*)
13332      shrext_cmds='.sl'
13333      hardcode_into_libs=yes
13334      dynamic_linker="$host_os dld.sl"
13335      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13336      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13340      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13341      ;;
13342    *)
13343     shrext_cmds='.sl'
13344     dynamic_linker="$host_os dld.sl"
13345     shlibpath_var=SHLIB_PATH
13346     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13348     soname_spec='${libname}${release}${shared_ext}$major'
13349     ;;
13350   esac
13351   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13352   postinstall_cmds='chmod 555 $lib'
13353   ;;
13354
13355 irix5* | irix6* | nonstopux*)
13356   case $host_os in
13357     nonstopux*) version_type=nonstopux ;;
13358     *)
13359         if test "$lt_cv_prog_gnu_ld" = yes; then
13360                 version_type=linux
13361         else
13362                 version_type=irix
13363         fi ;;
13364   esac
13365   need_lib_prefix=no
13366   need_version=no
13367   soname_spec='${libname}${release}${shared_ext}$major'
13368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13369   case $host_os in
13370   irix5* | nonstopux*)
13371     libsuff= shlibsuff=
13372     ;;
13373   *)
13374     case $LD in # libtool.m4 will add one of these switches to LD
13375     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13376       libsuff= shlibsuff= libmagic=32-bit;;
13377     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13378       libsuff=32 shlibsuff=N32 libmagic=N32;;
13379     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13380       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13381     *) libsuff= shlibsuff= libmagic=never-match;;
13382     esac
13383     ;;
13384   esac
13385   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13386   shlibpath_overrides_runpath=no
13387   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13388   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13389   hardcode_into_libs=yes
13390   ;;
13391
13392 # No shared lib support for Linux oldld, aout, or coff.
13393 linux*oldld* | linux*aout* | linux*coff*)
13394   dynamic_linker=no
13395   ;;
13396
13397 # This must be Linux ELF.
13398 linux*)
13399   version_type=linux
13400   need_lib_prefix=no
13401   need_version=no
13402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403   soname_spec='${libname}${release}${shared_ext}$major'
13404   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13405   shlibpath_var=LD_LIBRARY_PATH
13406   shlibpath_overrides_runpath=no
13407   # This implies no fast_install, which is unacceptable.
13408   # Some rework will be needed to allow for fast_install
13409   # before this can be enabled.
13410   hardcode_into_libs=yes
13411
13412   # Append ld.so.conf contents to the search path
13413   if test -f /etc/ld.so.conf; then
13414     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13415     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13416   fi
13417
13418   # We used to test for /lib/ld.so.1 and disable shared libraries on
13419   # powerpc, because MkLinux only supported shared libraries with the
13420   # GNU dynamic linker.  Since this was broken with cross compilers,
13421   # most powerpc-linux boxes support dynamic linking these days and
13422   # people can always --disable-shared, the test was removed, and we
13423   # assume the GNU/Linux dynamic linker is in use.
13424   dynamic_linker='GNU/Linux ld.so'
13425   ;;
13426
13427 knetbsd*-gnu)
13428   version_type=linux
13429   need_lib_prefix=no
13430   need_version=no
13431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13432   soname_spec='${libname}${release}${shared_ext}$major'
13433   shlibpath_var=LD_LIBRARY_PATH
13434   shlibpath_overrides_runpath=no
13435   hardcode_into_libs=yes
13436   dynamic_linker='GNU ld.so'
13437   ;;
13438
13439 netbsd*)
13440   version_type=sunos
13441   need_lib_prefix=no
13442   need_version=no
13443   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13445     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13446     dynamic_linker='NetBSD (a.out) ld.so'
13447   else
13448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13449     soname_spec='${libname}${release}${shared_ext}$major'
13450     dynamic_linker='NetBSD ld.elf_so'
13451   fi
13452   shlibpath_var=LD_LIBRARY_PATH
13453   shlibpath_overrides_runpath=yes
13454   hardcode_into_libs=yes
13455   ;;
13456
13457 newsos6)
13458   version_type=linux
13459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460   shlibpath_var=LD_LIBRARY_PATH
13461   shlibpath_overrides_runpath=yes
13462   ;;
13463
13464 nto-qnx*)
13465   version_type=linux
13466   need_lib_prefix=no
13467   need_version=no
13468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469   soname_spec='${libname}${release}${shared_ext}$major'
13470   shlibpath_var=LD_LIBRARY_PATH
13471   shlibpath_overrides_runpath=yes
13472   ;;
13473
13474 openbsd*)
13475   version_type=sunos
13476   need_lib_prefix=no
13477   need_version=no
13478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13479   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480   shlibpath_var=LD_LIBRARY_PATH
13481   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13482     case $host_os in
13483       openbsd2.[89] | openbsd2.[89].*)
13484         shlibpath_overrides_runpath=no
13485         ;;
13486       *)
13487         shlibpath_overrides_runpath=yes
13488         ;;
13489       esac
13490   else
13491     shlibpath_overrides_runpath=yes
13492   fi
13493   ;;
13494
13495 os2*)
13496   libname_spec='$name'
13497   shrext_cmds=".dll"
13498   need_lib_prefix=no
13499   library_names_spec='$libname${shared_ext} $libname.a'
13500   dynamic_linker='OS/2 ld.exe'
13501   shlibpath_var=LIBPATH
13502   ;;
13503
13504 osf3* | osf4* | osf5*)
13505   version_type=osf
13506   need_lib_prefix=no
13507   need_version=no
13508   soname_spec='${libname}${release}${shared_ext}$major'
13509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510   shlibpath_var=LD_LIBRARY_PATH
13511   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13512   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13513   ;;
13514
13515 sco3.2v5*)
13516   version_type=osf
13517   soname_spec='${libname}${release}${shared_ext}$major'
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519   shlibpath_var=LD_LIBRARY_PATH
13520   ;;
13521
13522 solaris*)
13523   version_type=linux
13524   need_lib_prefix=no
13525   need_version=no
13526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527   soname_spec='${libname}${release}${shared_ext}$major'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   shlibpath_overrides_runpath=yes
13530   hardcode_into_libs=yes
13531   # ldd complains unless libraries are executable
13532   postinstall_cmds='chmod +x $lib'
13533   ;;
13534
13535 sunos4*)
13536   version_type=sunos
13537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13538   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13539   shlibpath_var=LD_LIBRARY_PATH
13540   shlibpath_overrides_runpath=yes
13541   if test "$with_gnu_ld" = yes; then
13542     need_lib_prefix=no
13543   fi
13544   need_version=yes
13545   ;;
13546
13547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13548   version_type=linux
13549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550   soname_spec='${libname}${release}${shared_ext}$major'
13551   shlibpath_var=LD_LIBRARY_PATH
13552   case $host_vendor in
13553     sni)
13554       shlibpath_overrides_runpath=no
13555       need_lib_prefix=no
13556       export_dynamic_flag_spec='${wl}-Blargedynsym'
13557       runpath_var=LD_RUN_PATH
13558       ;;
13559     siemens)
13560       need_lib_prefix=no
13561       ;;
13562     motorola)
13563       need_lib_prefix=no
13564       need_version=no
13565       shlibpath_overrides_runpath=no
13566       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13567       ;;
13568   esac
13569   ;;
13570
13571 sysv4*MP*)
13572   if test -d /usr/nec ;then
13573     version_type=linux
13574     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13575     soname_spec='$libname${shared_ext}.$major'
13576     shlibpath_var=LD_LIBRARY_PATH
13577   fi
13578   ;;
13579
13580 uts4*)
13581   version_type=linux
13582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583   soname_spec='${libname}${release}${shared_ext}$major'
13584   shlibpath_var=LD_LIBRARY_PATH
13585   ;;
13586
13587 *)
13588   dynamic_linker=no
13589   ;;
13590 esac
13591 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13592 echo "${ECHO_T}$dynamic_linker" >&6
13593 test "$dynamic_linker" = no && can_build_shared=no
13594
13595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13596 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13597 hardcode_action=
13598 if test -n "$hardcode_libdir_flag_spec" || \
13599    test -n "$runpath_var" || \
13600    test "X$hardcode_automatic" = "Xyes" ; then
13601
13602   # We can hardcode non-existant directories.
13603   if test "$hardcode_direct" != no &&
13604      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13605      # have to relink, otherwise we might link with an installed library
13606      # when we should be linking with a yet-to-be-installed one
13607      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13608      test "$hardcode_minus_L" != no; then
13609     # Linking always hardcodes the temporary library directory.
13610     hardcode_action=relink
13611   else
13612     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13613     hardcode_action=immediate
13614   fi
13615 else
13616   # We cannot hardcode anything, or else we can only hardcode existing
13617   # directories.
13618   hardcode_action=unsupported
13619 fi
13620 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13621 echo "${ECHO_T}$hardcode_action" >&6
13622
13623 if test "$hardcode_action" = relink; then
13624   # Fast installation is not supported
13625   enable_fast_install=no
13626 elif test "$shlibpath_overrides_runpath" = yes ||
13627      test "$enable_shared" = no; then
13628   # Fast installation is not necessary
13629   enable_fast_install=needless
13630 fi
13631
13632 striplib=
13633 old_striplib=
13634 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13635 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13636 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13637   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13638   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13639   echo "$as_me:$LINENO: result: yes" >&5
13640 echo "${ECHO_T}yes" >&6
13641 else
13642 # FIXME - insert some real tests, host_os isn't really good enough
13643   case $host_os in
13644    darwin*)
13645        if test -n "$STRIP" ; then
13646          striplib="$STRIP -x"
13647          echo "$as_me:$LINENO: result: yes" >&5
13648 echo "${ECHO_T}yes" >&6
13649        else
13650   echo "$as_me:$LINENO: result: no" >&5
13651 echo "${ECHO_T}no" >&6
13652 fi
13653        ;;
13654    *)
13655   echo "$as_me:$LINENO: result: no" >&5
13656 echo "${ECHO_T}no" >&6
13657     ;;
13658   esac
13659 fi
13660
13661 if test "x$enable_dlopen" != xyes; then
13662   enable_dlopen=unknown
13663   enable_dlopen_self=unknown
13664   enable_dlopen_self_static=unknown
13665 else
13666   lt_cv_dlopen=no
13667   lt_cv_dlopen_libs=
13668
13669   case $host_os in
13670   beos*)
13671     lt_cv_dlopen="load_add_on"
13672     lt_cv_dlopen_libs=
13673     lt_cv_dlopen_self=yes
13674     ;;
13675
13676   mingw* | pw32*)
13677     lt_cv_dlopen="LoadLibrary"
13678     lt_cv_dlopen_libs=
13679    ;;
13680
13681   cygwin*)
13682     lt_cv_dlopen="dlopen"
13683     lt_cv_dlopen_libs=
13684    ;;
13685
13686   darwin*)
13687   # if libdl is installed we need to link against it
13688     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13691   echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693   ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-ldl  $LIBS"
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h.  */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h.  */
13701
13702 /* Override any gcc2 internal prototype to avoid an error.  */
13703 #ifdef __cplusplus
13704 extern "C"
13705 #endif
13706 /* We use char because int might match the return type of a gcc2
13707    builtin and then its argument prototype would still apply.  */
13708 char dlopen ();
13709 int
13710 main ()
13711 {
13712 dlopen ();
13713   ;
13714   return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719   (eval $ac_link) 2>conftest.er1
13720   ac_status=$?
13721   grep -v '^ *+' conftest.er1 >conftest.err
13722   rm -f conftest.er1
13723   cat conftest.err >&5
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } &&
13726          { ac_try='test -z "$ac_c_werror_flag"
13727                          || test ! -s conftest.err'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; } &&
13733          { ac_try='test -s conftest$ac_exeext'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; }; then
13739   ac_cv_lib_dl_dlopen=yes
13740 else
13741   echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 ac_cv_lib_dl_dlopen=no
13745 fi
13746 rm -f conftest.err conftest.$ac_objext \
13747       conftest$ac_exeext conftest.$ac_ext
13748 LIBS=$ac_check_lib_save_LIBS
13749 fi
13750 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13751 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13752 if test $ac_cv_lib_dl_dlopen = yes; then
13753   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13754 else
13755
13756     lt_cv_dlopen="dyld"
13757     lt_cv_dlopen_libs=
13758     lt_cv_dlopen_self=yes
13759
13760 fi
13761
13762    ;;
13763
13764   *)
13765     echo "$as_me:$LINENO: checking for shl_load" >&5
13766 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13767 if test "${ac_cv_func_shl_load+set}" = set; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13778 #define shl_load innocuous_shl_load
13779
13780 /* System header to define __stub macros and hopefully few prototypes,
13781     which can conflict with char shl_load (); below.
13782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13783     <limits.h> exists even on freestanding compilers.  */
13784
13785 #ifdef __STDC__
13786 # include <limits.h>
13787 #else
13788 # include <assert.h>
13789 #endif
13790
13791 #undef shl_load
13792
13793 /* Override any gcc2 internal prototype to avoid an error.  */
13794 #ifdef __cplusplus
13795 extern "C"
13796 {
13797 #endif
13798 /* We use char because int might match the return type of a gcc2
13799    builtin and then its argument prototype would still apply.  */
13800 char shl_load ();
13801 /* The GNU C library defines this for functions which it implements
13802     to always fail with ENOSYS.  Some functions are actually named
13803     something starting with __ and the normal name is an alias.  */
13804 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13805 choke me
13806 #else
13807 char (*f) () = shl_load;
13808 #endif
13809 #ifdef __cplusplus
13810 }
13811 #endif
13812
13813 int
13814 main ()
13815 {
13816 return f != shl_load;
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13823   (eval $ac_link) 2>conftest.er1
13824   ac_status=$?
13825   grep -v '^ *+' conftest.er1 >conftest.err
13826   rm -f conftest.er1
13827   cat conftest.err >&5
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); } &&
13830          { ac_try='test -z "$ac_c_werror_flag"
13831                          || test ! -s conftest.err'
13832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833   (eval $ac_try) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); }; } &&
13837          { ac_try='test -s conftest$ac_exeext'
13838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839   (eval $ac_try) 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; }; then
13843   ac_cv_func_shl_load=yes
13844 else
13845   echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848 ac_cv_func_shl_load=no
13849 fi
13850 rm -f conftest.err conftest.$ac_objext \
13851       conftest$ac_exeext conftest.$ac_ext
13852 fi
13853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13855 if test $ac_cv_func_shl_load = yes; then
13856   lt_cv_dlopen="shl_load"
13857 else
13858   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863   ac_check_lib_save_LIBS=$LIBS
13864 LIBS="-ldld  $LIBS"
13865 cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871
13872 /* Override any gcc2 internal prototype to avoid an error.  */
13873 #ifdef __cplusplus
13874 extern "C"
13875 #endif
13876 /* We use char because int might match the return type of a gcc2
13877    builtin and then its argument prototype would still apply.  */
13878 char shl_load ();
13879 int
13880 main ()
13881 {
13882 shl_load ();
13883   ;
13884   return 0;
13885 }
13886 _ACEOF
13887 rm -f conftest.$ac_objext conftest$ac_exeext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13889   (eval $ac_link) 2>conftest.er1
13890   ac_status=$?
13891   grep -v '^ *+' conftest.er1 >conftest.err
13892   rm -f conftest.er1
13893   cat conftest.err >&5
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } &&
13896          { ac_try='test -z "$ac_c_werror_flag"
13897                          || test ! -s conftest.err'
13898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899   (eval $ac_try) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; } &&
13903          { ac_try='test -s conftest$ac_exeext'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   ac_cv_lib_dld_shl_load=yes
13910 else
13911   echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914 ac_cv_lib_dld_shl_load=no
13915 fi
13916 rm -f conftest.err conftest.$ac_objext \
13917       conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13919 fi
13920 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13921 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13922 if test $ac_cv_lib_dld_shl_load = yes; then
13923   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13924 else
13925   echo "$as_me:$LINENO: checking for dlopen" >&5
13926 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13927 if test "${ac_cv_func_dlopen+set}" = set; then
13928   echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930   cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h.  */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h.  */
13936 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13938 #define dlopen innocuous_dlopen
13939
13940 /* System header to define __stub macros and hopefully few prototypes,
13941     which can conflict with char dlopen (); below.
13942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13943     <limits.h> exists even on freestanding compilers.  */
13944
13945 #ifdef __STDC__
13946 # include <limits.h>
13947 #else
13948 # include <assert.h>
13949 #endif
13950
13951 #undef dlopen
13952
13953 /* Override any gcc2 internal prototype to avoid an error.  */
13954 #ifdef __cplusplus
13955 extern "C"
13956 {
13957 #endif
13958 /* We use char because int might match the return type of a gcc2
13959    builtin and then its argument prototype would still apply.  */
13960 char dlopen ();
13961 /* The GNU C library defines this for functions which it implements
13962     to always fail with ENOSYS.  Some functions are actually named
13963     something starting with __ and the normal name is an alias.  */
13964 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13965 choke me
13966 #else
13967 char (*f) () = dlopen;
13968 #endif
13969 #ifdef __cplusplus
13970 }
13971 #endif
13972
13973 int
13974 main ()
13975 {
13976 return f != dlopen;
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983   (eval $ac_link) 2>conftest.er1
13984   ac_status=$?
13985   grep -v '^ *+' conftest.er1 >conftest.err
13986   rm -f conftest.er1
13987   cat conftest.err >&5
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -z "$ac_c_werror_flag"
13991                          || test ! -s conftest.err'
13992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993   (eval $ac_try) 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); }; } &&
13997          { ac_try='test -s conftest$ac_exeext'
13998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999   (eval $ac_try) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; }; then
14003   ac_cv_func_dlopen=yes
14004 else
14005   echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 ac_cv_func_dlopen=no
14009 fi
14010 rm -f conftest.err conftest.$ac_objext \
14011       conftest$ac_exeext conftest.$ac_ext
14012 fi
14013 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14014 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14015 if test $ac_cv_func_dlopen = yes; then
14016   lt_cv_dlopen="dlopen"
14017 else
14018   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-ldl  $LIBS"
14025 cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h.  */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h.  */
14031
14032 /* Override any gcc2 internal prototype to avoid an error.  */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 /* We use char because int might match the return type of a gcc2
14037    builtin and then its argument prototype would still apply.  */
14038 char dlopen ();
14039 int
14040 main ()
14041 {
14042 dlopen ();
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext conftest$ac_exeext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049   (eval $ac_link) 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } &&
14056          { ac_try='test -z "$ac_c_werror_flag"
14057                          || test ! -s conftest.err'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; } &&
14063          { ac_try='test -s conftest$ac_exeext'
14064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065   (eval $ac_try) 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; }; then
14069   ac_cv_lib_dl_dlopen=yes
14070 else
14071   echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14073
14074 ac_cv_lib_dl_dlopen=no
14075 fi
14076 rm -f conftest.err conftest.$ac_objext \
14077       conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14079 fi
14080 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14081 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14082 if test $ac_cv_lib_dl_dlopen = yes; then
14083   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14084 else
14085   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14086 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14087 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14088   echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090   ac_check_lib_save_LIBS=$LIBS
14091 LIBS="-lsvld  $LIBS"
14092 cat >conftest.$ac_ext <<_ACEOF
14093 /* confdefs.h.  */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h.  */
14098
14099 /* Override any gcc2 internal prototype to avoid an error.  */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 /* We use char because int might match the return type of a gcc2
14104    builtin and then its argument prototype would still apply.  */
14105 char dlopen ();
14106 int
14107 main ()
14108 {
14109 dlopen ();
14110   ;
14111   return 0;
14112 }
14113 _ACEOF
14114 rm -f conftest.$ac_objext conftest$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116   (eval $ac_link) 2>conftest.er1
14117   ac_status=$?
14118   grep -v '^ *+' conftest.er1 >conftest.err
14119   rm -f conftest.er1
14120   cat conftest.err >&5
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); } &&
14123          { ac_try='test -z "$ac_c_werror_flag"
14124                          || test ! -s conftest.err'
14125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126   (eval $ac_try) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; } &&
14130          { ac_try='test -s conftest$ac_exeext'
14131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132   (eval $ac_try) 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); }; }; then
14136   ac_cv_lib_svld_dlopen=yes
14137 else
14138   echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14140
14141 ac_cv_lib_svld_dlopen=no
14142 fi
14143 rm -f conftest.err conftest.$ac_objext \
14144       conftest$ac_exeext conftest.$ac_ext
14145 LIBS=$ac_check_lib_save_LIBS
14146 fi
14147 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14148 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14149 if test $ac_cv_lib_svld_dlopen = yes; then
14150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14151 else
14152   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14153 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14154 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14155   echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157   ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-ldld  $LIBS"
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165
14166 /* Override any gcc2 internal prototype to avoid an error.  */
14167 #ifdef __cplusplus
14168 extern "C"
14169 #endif
14170 /* We use char because int might match the return type of a gcc2
14171    builtin and then its argument prototype would still apply.  */
14172 char dld_link ();
14173 int
14174 main ()
14175 {
14176 dld_link ();
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183   (eval $ac_link) 2>conftest.er1
14184   ac_status=$?
14185   grep -v '^ *+' conftest.er1 >conftest.err
14186   rm -f conftest.er1
14187   cat conftest.err >&5
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } &&
14190          { ac_try='test -z "$ac_c_werror_flag"
14191                          || test ! -s conftest.err'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; } &&
14197          { ac_try='test -s conftest$ac_exeext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_cv_lib_dld_dld_link=yes
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_cv_lib_dld_dld_link=no
14209 fi
14210 rm -f conftest.err conftest.$ac_objext \
14211       conftest$ac_exeext conftest.$ac_ext
14212 LIBS=$ac_check_lib_save_LIBS
14213 fi
14214 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14215 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14216 if test $ac_cv_lib_dld_dld_link = yes; then
14217   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14218 fi
14219
14220
14221 fi
14222
14223
14224 fi
14225
14226
14227 fi
14228
14229
14230 fi
14231
14232
14233 fi
14234
14235     ;;
14236   esac
14237
14238   if test "x$lt_cv_dlopen" != xno; then
14239     enable_dlopen=yes
14240   else
14241     enable_dlopen=no
14242   fi
14243
14244   case $lt_cv_dlopen in
14245   dlopen)
14246     save_CPPFLAGS="$CPPFLAGS"
14247     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14248
14249     save_LDFLAGS="$LDFLAGS"
14250     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14251
14252     save_LIBS="$LIBS"
14253     LIBS="$lt_cv_dlopen_libs $LIBS"
14254
14255     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14256 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14257 if test "${lt_cv_dlopen_self+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260           if test "$cross_compiling" = yes; then :
14261   lt_cv_dlopen_self=cross
14262 else
14263   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14264   lt_status=$lt_dlunknown
14265   cat > conftest.$ac_ext <<EOF
14266 #line 14266 "configure"
14267 #include "confdefs.h"
14268
14269 #if HAVE_DLFCN_H
14270 #include <dlfcn.h>
14271 #endif
14272
14273 #include <stdio.h>
14274
14275 #ifdef RTLD_GLOBAL
14276 #  define LT_DLGLOBAL           RTLD_GLOBAL
14277 #else
14278 #  ifdef DL_GLOBAL
14279 #    define LT_DLGLOBAL         DL_GLOBAL
14280 #  else
14281 #    define LT_DLGLOBAL         0
14282 #  endif
14283 #endif
14284
14285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14286    find out it does not work in some platform. */
14287 #ifndef LT_DLLAZY_OR_NOW
14288 #  ifdef RTLD_LAZY
14289 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14290 #  else
14291 #    ifdef DL_LAZY
14292 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14293 #    else
14294 #      ifdef RTLD_NOW
14295 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14296 #      else
14297 #        ifdef DL_NOW
14298 #          define LT_DLLAZY_OR_NOW      DL_NOW
14299 #        else
14300 #          define LT_DLLAZY_OR_NOW      0
14301 #        endif
14302 #      endif
14303 #    endif
14304 #  endif
14305 #endif
14306
14307 #ifdef __cplusplus
14308 extern "C" void exit (int);
14309 #endif
14310
14311 void fnord() { int i=42;}
14312 int main ()
14313 {
14314   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14315   int status = $lt_dlunknown;
14316
14317   if (self)
14318     {
14319       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14320       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14321       /* dlclose (self); */
14322     }
14323
14324     exit (status);
14325 }
14326 EOF
14327   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328   (eval $ac_link) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14332     (./conftest; exit; ) 2>/dev/null
14333     lt_status=$?
14334     case x$lt_status in
14335       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14336       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14337       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14338     esac
14339   else :
14340     # compilation failed
14341     lt_cv_dlopen_self=no
14342   fi
14343 fi
14344 rm -fr conftest*
14345
14346
14347 fi
14348 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14349 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14350
14351     if test "x$lt_cv_dlopen_self" = xyes; then
14352       LDFLAGS="$LDFLAGS $link_static_flag"
14353       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14354 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14355 if test "${lt_cv_dlopen_self_static+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358           if test "$cross_compiling" = yes; then :
14359   lt_cv_dlopen_self_static=cross
14360 else
14361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14362   lt_status=$lt_dlunknown
14363   cat > conftest.$ac_ext <<EOF
14364 #line 14364 "configure"
14365 #include "confdefs.h"
14366
14367 #if HAVE_DLFCN_H
14368 #include <dlfcn.h>
14369 #endif
14370
14371 #include <stdio.h>
14372
14373 #ifdef RTLD_GLOBAL
14374 #  define LT_DLGLOBAL           RTLD_GLOBAL
14375 #else
14376 #  ifdef DL_GLOBAL
14377 #    define LT_DLGLOBAL         DL_GLOBAL
14378 #  else
14379 #    define LT_DLGLOBAL         0
14380 #  endif
14381 #endif
14382
14383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14384    find out it does not work in some platform. */
14385 #ifndef LT_DLLAZY_OR_NOW
14386 #  ifdef RTLD_LAZY
14387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14388 #  else
14389 #    ifdef DL_LAZY
14390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14391 #    else
14392 #      ifdef RTLD_NOW
14393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14394 #      else
14395 #        ifdef DL_NOW
14396 #          define LT_DLLAZY_OR_NOW      DL_NOW
14397 #        else
14398 #          define LT_DLLAZY_OR_NOW      0
14399 #        endif
14400 #      endif
14401 #    endif
14402 #  endif
14403 #endif
14404
14405 #ifdef __cplusplus
14406 extern "C" void exit (int);
14407 #endif
14408
14409 void fnord() { int i=42;}
14410 int main ()
14411 {
14412   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14413   int status = $lt_dlunknown;
14414
14415   if (self)
14416     {
14417       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14418       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14419       /* dlclose (self); */
14420     }
14421
14422     exit (status);
14423 }
14424 EOF
14425   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426   (eval $ac_link) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14430     (./conftest; exit; ) 2>/dev/null
14431     lt_status=$?
14432     case x$lt_status in
14433       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14434       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14435       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14436     esac
14437   else :
14438     # compilation failed
14439     lt_cv_dlopen_self_static=no
14440   fi
14441 fi
14442 rm -fr conftest*
14443
14444
14445 fi
14446 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14447 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14448     fi
14449
14450     CPPFLAGS="$save_CPPFLAGS"
14451     LDFLAGS="$save_LDFLAGS"
14452     LIBS="$save_LIBS"
14453     ;;
14454   esac
14455
14456   case $lt_cv_dlopen_self in
14457   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14458   *) enable_dlopen_self=unknown ;;
14459   esac
14460
14461   case $lt_cv_dlopen_self_static in
14462   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14463   *) enable_dlopen_self_static=unknown ;;
14464   esac
14465 fi
14466
14467
14468 # Report which librarie types wil actually be built
14469 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14470 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14471 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14472 echo "${ECHO_T}$can_build_shared" >&6
14473
14474 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14475 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14476 test "$can_build_shared" = "no" && enable_shared=no
14477
14478 # On AIX, shared libraries and static libraries use the same namespace, and
14479 # are all built from PIC.
14480 case "$host_os" in
14481 aix3*)
14482   test "$enable_shared" = yes && enable_static=no
14483   if test -n "$RANLIB"; then
14484     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14485     postinstall_cmds='$RANLIB $lib'
14486   fi
14487   ;;
14488
14489 aix4* | aix5*)
14490   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14491     test "$enable_shared" = yes && enable_static=no
14492   fi
14493     ;;
14494 esac
14495 echo "$as_me:$LINENO: result: $enable_shared" >&5
14496 echo "${ECHO_T}$enable_shared" >&6
14497
14498 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14499 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14500 # Make sure either enable_shared or enable_static is yes.
14501 test "$enable_shared" = yes || enable_static=yes
14502 echo "$as_me:$LINENO: result: $enable_static" >&5
14503 echo "${ECHO_T}$enable_static" >&6
14504
14505 # The else clause should only fire when bootstrapping the
14506 # libtool distribution, otherwise you forgot to ship ltmain.sh
14507 # with your package, and you will get complaints that there are
14508 # no rules to generate ltmain.sh.
14509 if test -f "$ltmain"; then
14510   # See if we are running on zsh, and set the options which allow our commands through
14511   # without removal of \ escapes.
14512   if test -n "${ZSH_VERSION+set}" ; then
14513     setopt NO_GLOB_SUBST
14514   fi
14515   # Now quote all the things that may contain metacharacters while being
14516   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14517   # variables and quote the copies for generation of the libtool script.
14518   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14519     SED SHELL STRIP \
14520     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14521     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14522     deplibs_check_method reload_flag reload_cmds need_locks \
14523     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14524     lt_cv_sys_global_symbol_to_c_name_address \
14525     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14526     old_postinstall_cmds old_postuninstall_cmds \
14527     compiler \
14528     CC \
14529     LD \
14530     lt_prog_compiler_wl \
14531     lt_prog_compiler_pic \
14532     lt_prog_compiler_static \
14533     lt_prog_compiler_no_builtin_flag \
14534     export_dynamic_flag_spec \
14535     thread_safe_flag_spec \
14536     whole_archive_flag_spec \
14537     enable_shared_with_static_runtimes \
14538     old_archive_cmds \
14539     old_archive_from_new_cmds \
14540     predep_objects \
14541     postdep_objects \
14542     predeps \
14543     postdeps \
14544     compiler_lib_search_path \
14545     archive_cmds \
14546     archive_expsym_cmds \
14547     postinstall_cmds \
14548     postuninstall_cmds \
14549     old_archive_from_expsyms_cmds \
14550     allow_undefined_flag \
14551     no_undefined_flag \
14552     export_symbols_cmds \
14553     hardcode_libdir_flag_spec \
14554     hardcode_libdir_flag_spec_ld \
14555     hardcode_libdir_separator \
14556     hardcode_automatic \
14557     module_cmds \
14558     module_expsym_cmds \
14559     lt_cv_prog_compiler_c_o \
14560     exclude_expsyms \
14561     include_expsyms; do
14562
14563     case $var in
14564     old_archive_cmds | \
14565     old_archive_from_new_cmds | \
14566     archive_cmds | \
14567     archive_expsym_cmds | \
14568     module_cmds | \
14569     module_expsym_cmds | \
14570     old_archive_from_expsyms_cmds | \
14571     export_symbols_cmds | \
14572     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14573     postinstall_cmds | postuninstall_cmds | \
14574     old_postinstall_cmds | old_postuninstall_cmds | \
14575     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14576       # Double-quote double-evaled strings.
14577       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14578       ;;
14579     *)
14580       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14581       ;;
14582     esac
14583   done
14584
14585   case $lt_echo in
14586   *'\$0 --fallback-echo"')
14587     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14588     ;;
14589   esac
14590
14591 cfgfile="${ofile}T"
14592   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14593   $rm -f "$cfgfile"
14594   { echo "$as_me:$LINENO: creating $ofile" >&5
14595 echo "$as_me: creating $ofile" >&6;}
14596
14597   cat <<__EOF__ >> "$cfgfile"
14598 #! $SHELL
14599
14600 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14601 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14602 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14603 #
14604 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14605 # Free Software Foundation, Inc.
14606 #
14607 # This file is part of GNU Libtool:
14608 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14609 #
14610 # This program is free software; you can redistribute it and/or modify
14611 # it under the terms of the GNU General Public License as published by
14612 # the Free Software Foundation; either version 2 of the License, or
14613 # (at your option) any later version.
14614 #
14615 # This program is distributed in the hope that it will be useful, but
14616 # WITHOUT ANY WARRANTY; without even the implied warranty of
14617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14618 # General Public License for more details.
14619 #
14620 # You should have received a copy of the GNU General Public License
14621 # along with this program; if not, write to the Free Software
14622 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14623 #
14624 # As a special exception to the GNU General Public License, if you
14625 # distribute this file as part of a program that contains a
14626 # configuration script generated by Autoconf, you may include it under
14627 # the same distribution terms that you use for the rest of that program.
14628
14629 # A sed program that does not truncate output.
14630 SED=$lt_SED
14631
14632 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14633 Xsed="$SED -e s/^X//"
14634
14635 # The HP-UX ksh and POSIX shell print the target directory to stdout
14636 # if CDPATH is set.
14637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14638
14639 # The names of the tagged configurations supported by this script.
14640 available_tags=
14641
14642 # ### BEGIN LIBTOOL CONFIG
14643
14644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14645
14646 # Shell to use when invoking shell scripts.
14647 SHELL=$lt_SHELL
14648
14649 # Whether or not to build shared libraries.
14650 build_libtool_libs=$enable_shared
14651
14652 # Whether or not to build static libraries.
14653 build_old_libs=$enable_static
14654
14655 # Whether or not to add -lc for building shared libraries.
14656 build_libtool_need_lc=$archive_cmds_need_lc
14657
14658 # Whether or not to disallow shared libs when runtime libs are static
14659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14660
14661 # Whether or not to optimize for fast installation.
14662 fast_install=$enable_fast_install
14663
14664 # The host system.
14665 host_alias=$host_alias
14666 host=$host
14667
14668 # An echo program that does not interpret backslashes.
14669 echo=$lt_echo
14670
14671 # The archiver.
14672 AR=$lt_AR
14673 AR_FLAGS=$lt_AR_FLAGS
14674
14675 # A C compiler.
14676 LTCC=$lt_LTCC
14677
14678 # A language-specific compiler.
14679 CC=$lt_compiler
14680
14681 # Is the compiler the GNU C compiler?
14682 with_gcc=$GCC
14683
14684 # An ERE matcher.
14685 EGREP=$lt_EGREP
14686
14687 # The linker used to build libraries.
14688 LD=$lt_LD
14689
14690 # Whether we need hard or soft links.
14691 LN_S=$lt_LN_S
14692
14693 # A BSD-compatible nm program.
14694 NM=$lt_NM
14695
14696 # A symbol stripping program
14697 STRIP=$lt_STRIP
14698
14699 # Used to examine libraries when file_magic_cmd begins "file"
14700 MAGIC_CMD=$MAGIC_CMD
14701
14702 # Used on cygwin: DLL creation program.
14703 DLLTOOL="$DLLTOOL"
14704
14705 # Used on cygwin: object dumper.
14706 OBJDUMP="$OBJDUMP"
14707
14708 # Used on cygwin: assembler.
14709 AS="$AS"
14710
14711 # The name of the directory that contains temporary libtool files.
14712 objdir=$objdir
14713
14714 # How to create reloadable object files.
14715 reload_flag=$lt_reload_flag
14716 reload_cmds=$lt_reload_cmds
14717
14718 # How to pass a linker flag through the compiler.
14719 wl=$lt_lt_prog_compiler_wl
14720
14721 # Object file suffix (normally "o").
14722 objext="$ac_objext"
14723
14724 # Old archive suffix (normally "a").
14725 libext="$libext"
14726
14727 # Shared library suffix (normally ".so").
14728 shrext_cmds='$shrext_cmds'
14729
14730 # Executable file suffix (normally "").
14731 exeext="$exeext"
14732
14733 # Additional compiler flags for building library objects.
14734 pic_flag=$lt_lt_prog_compiler_pic
14735 pic_mode=$pic_mode
14736
14737 # What is the maximum length of a command?
14738 max_cmd_len=$lt_cv_sys_max_cmd_len
14739
14740 # Does compiler simultaneously support -c and -o options?
14741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14742
14743 # Must we lock files when doing compilation ?
14744 need_locks=$lt_need_locks
14745
14746 # Do we need the lib prefix for modules?
14747 need_lib_prefix=$need_lib_prefix
14748
14749 # Do we need a version for libraries?
14750 need_version=$need_version
14751
14752 # Whether dlopen is supported.
14753 dlopen_support=$enable_dlopen
14754
14755 # Whether dlopen of programs is supported.
14756 dlopen_self=$enable_dlopen_self
14757
14758 # Whether dlopen of statically linked programs is supported.
14759 dlopen_self_static=$enable_dlopen_self_static
14760
14761 # Compiler flag to prevent dynamic linking.
14762 link_static_flag=$lt_lt_prog_compiler_static
14763
14764 # Compiler flag to turn off builtin functions.
14765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14766
14767 # Compiler flag to allow reflexive dlopens.
14768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14769
14770 # Compiler flag to generate shared objects directly from archives.
14771 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14772
14773 # Compiler flag to generate thread-safe objects.
14774 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14775
14776 # Library versioning type.
14777 version_type=$version_type
14778
14779 # Format of library name prefix.
14780 libname_spec=$lt_libname_spec
14781
14782 # List of archive names.  First name is the real one, the rest are links.
14783 # The last name is the one that the linker finds with -lNAME.
14784 library_names_spec=$lt_library_names_spec
14785
14786 # The coded name of the library, if different from the real name.
14787 soname_spec=$lt_soname_spec
14788
14789 # Commands used to build and install an old-style archive.
14790 RANLIB=$lt_RANLIB
14791 old_archive_cmds=$lt_old_archive_cmds
14792 old_postinstall_cmds=$lt_old_postinstall_cmds
14793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14794
14795 # Create an old-style archive from a shared archive.
14796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14797
14798 # Create a temporary old-style archive to link instead of a shared archive.
14799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14800
14801 # Commands used to build and install a shared archive.
14802 archive_cmds=$lt_archive_cmds
14803 archive_expsym_cmds=$lt_archive_expsym_cmds
14804 postinstall_cmds=$lt_postinstall_cmds
14805 postuninstall_cmds=$lt_postuninstall_cmds
14806
14807 # Commands used to build a loadable module (assumed same as above if empty)
14808 module_cmds=$lt_module_cmds
14809 module_expsym_cmds=$lt_module_expsym_cmds
14810
14811 # Commands to strip libraries.
14812 old_striplib=$lt_old_striplib
14813 striplib=$lt_striplib
14814
14815 # Dependencies to place before the objects being linked to create a
14816 # shared library.
14817 predep_objects=$lt_predep_objects
14818
14819 # Dependencies to place after the objects being linked to create a
14820 # shared library.
14821 postdep_objects=$lt_postdep_objects
14822
14823 # Dependencies to place before the objects being linked to create a
14824 # shared library.
14825 predeps=$lt_predeps
14826
14827 # Dependencies to place after the objects being linked to create a
14828 # shared library.
14829 postdeps=$lt_postdeps
14830
14831 # The library search path used internally by the compiler when linking
14832 # a shared library.
14833 compiler_lib_search_path=$lt_compiler_lib_search_path
14834
14835 # Method to check whether dependent libraries are shared objects.
14836 deplibs_check_method=$lt_deplibs_check_method
14837
14838 # Command to use when deplibs_check_method == file_magic.
14839 file_magic_cmd=$lt_file_magic_cmd
14840
14841 # Flag that allows shared libraries with undefined symbols to be built.
14842 allow_undefined_flag=$lt_allow_undefined_flag
14843
14844 # Flag that forces no undefined symbols.
14845 no_undefined_flag=$lt_no_undefined_flag
14846
14847 # Commands used to finish a libtool library installation in a directory.
14848 finish_cmds=$lt_finish_cmds
14849
14850 # Same as above, but a single script fragment to be evaled but not shown.
14851 finish_eval=$lt_finish_eval
14852
14853 # Take the output of nm and produce a listing of raw symbols and C names.
14854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14855
14856 # Transform the output of nm in a proper C declaration
14857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14858
14859 # Transform the output of nm in a C name address pair
14860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14861
14862 # This is the shared library runtime path variable.
14863 runpath_var=$runpath_var
14864
14865 # This is the shared library path variable.
14866 shlibpath_var=$shlibpath_var
14867
14868 # Is shlibpath searched before the hard-coded library search path?
14869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14870
14871 # How to hardcode a shared library path into an executable.
14872 hardcode_action=$hardcode_action
14873
14874 # Whether we should hardcode library paths into libraries.
14875 hardcode_into_libs=$hardcode_into_libs
14876
14877 # Flag to hardcode \$libdir into a binary during linking.
14878 # This must work even if \$libdir does not exist.
14879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14880
14881 # If ld is used when linking, flag to hardcode \$libdir into
14882 # a binary during linking. This must work even if \$libdir does
14883 # not exist.
14884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14885
14886 # Whether we need a single -rpath flag with a separated argument.
14887 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14888
14889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14890 # resulting binary.
14891 hardcode_direct=$hardcode_direct
14892
14893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14894 # resulting binary.
14895 hardcode_minus_L=$hardcode_minus_L
14896
14897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14898 # the resulting binary.
14899 hardcode_shlibpath_var=$hardcode_shlibpath_var
14900
14901 # Set to yes if building a shared library automatically hardcodes DIR into the library
14902 # and all subsequent libraries and executables linked against it.
14903 hardcode_automatic=$hardcode_automatic
14904
14905 # Variables whose values should be saved in libtool wrapper scripts and
14906 # restored at relink time.
14907 variables_saved_for_relink="$variables_saved_for_relink"
14908
14909 # Whether libtool must link a program against all its dependency libraries.
14910 link_all_deplibs=$link_all_deplibs
14911
14912 # Compile-time system search path for libraries
14913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14914
14915 # Run-time system search path for libraries
14916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14917
14918 # Fix the shell variable \$srcfile for the compiler.
14919 fix_srcfile_path="$fix_srcfile_path"
14920
14921 # Set to yes if exported symbols are required.
14922 always_export_symbols=$always_export_symbols
14923
14924 # The commands to list exported symbols.
14925 export_symbols_cmds=$lt_export_symbols_cmds
14926
14927 # The commands to extract the exported symbol list from a shared archive.
14928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14929
14930 # Symbols that should not be listed in the preloaded symbols.
14931 exclude_expsyms=$lt_exclude_expsyms
14932
14933 # Symbols that must always be exported.
14934 include_expsyms=$lt_include_expsyms
14935
14936 # ### END LIBTOOL CONFIG
14937
14938 __EOF__
14939
14940
14941   case $host_os in
14942   aix3*)
14943     cat <<\EOF >> "$cfgfile"
14944
14945 # AIX sometimes has problems with the GCC collect2 program.  For some
14946 # reason, if we set the COLLECT_NAMES environment variable, the problems
14947 # vanish in a puff of smoke.
14948 if test "X${COLLECT_NAMES+set}" != Xset; then
14949   COLLECT_NAMES=
14950   export COLLECT_NAMES
14951 fi
14952 EOF
14953     ;;
14954   esac
14955
14956   # We use sed instead of cat because bash on DJGPP gets confused if
14957   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14958   # text mode, it properly converts lines to CR/LF.  This bash problem
14959   # is reportedly fixed, but why not run on old versions too?
14960   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14961
14962   mv -f "$cfgfile" "$ofile" || \
14963     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14964   chmod +x "$ofile"
14965
14966 else
14967   # If there is no Makefile yet, we rely on a make rule to execute
14968   # `config.status --recheck' to rerun these tests and create the
14969   # libtool script then.
14970   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14971   if test -f "$ltmain_in"; then
14972     test -f Makefile && make "$ltmain"
14973   fi
14974 fi
14975
14976
14977 ac_ext=c
14978 ac_cpp='$CPP $CPPFLAGS'
14979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14982
14983 CC="$lt_save_CC"
14984
14985
14986 # Check whether --with-tags or --without-tags was given.
14987 if test "${with_tags+set}" = set; then
14988   withval="$with_tags"
14989   tagnames="$withval"
14990 fi;
14991
14992 if test -f "$ltmain" && test -n "$tagnames"; then
14993   if test ! -f "${ofile}"; then
14994     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14995 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14996   fi
14997
14998   if test -z "$LTCC"; then
14999     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15000     if test -z "$LTCC"; then
15001       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15002 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15003     else
15004       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15005 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15006     fi
15007   fi
15008
15009   # Extract list of available tagged configurations in $ofile.
15010   # Note that this assumes the entire list is on one line.
15011   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15012
15013   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15014   for tagname in $tagnames; do
15015     IFS="$lt_save_ifs"
15016     # Check whether tagname contains only valid characters
15017     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15018     "") ;;
15019     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15020 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15021    { (exit 1); exit 1; }; }
15022         ;;
15023     esac
15024
15025     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15026     then
15027       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15028 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15029    { (exit 1); exit 1; }; }
15030     fi
15031
15032     # Update the list of available tags.
15033     if test -n "$tagname"; then
15034       echo appending configuration tag "$tagname" to $ofile
15035
15036       case $tagname in
15037       CXX)
15038         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15039             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15040             (test "X$CXX" != "Xg++"))) ; then
15041           ac_ext=cc
15042 ac_cpp='$CXXCPP $CPPFLAGS'
15043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15046
15047
15048
15049
15050 archive_cmds_need_lc_CXX=no
15051 allow_undefined_flag_CXX=
15052 always_export_symbols_CXX=no
15053 archive_expsym_cmds_CXX=
15054 export_dynamic_flag_spec_CXX=
15055 hardcode_direct_CXX=no
15056 hardcode_libdir_flag_spec_CXX=
15057 hardcode_libdir_flag_spec_ld_CXX=
15058 hardcode_libdir_separator_CXX=
15059 hardcode_minus_L_CXX=no
15060 hardcode_automatic_CXX=no
15061 module_cmds_CXX=
15062 module_expsym_cmds_CXX=
15063 link_all_deplibs_CXX=unknown
15064 old_archive_cmds_CXX=$old_archive_cmds
15065 no_undefined_flag_CXX=
15066 whole_archive_flag_spec_CXX=
15067 enable_shared_with_static_runtimes_CXX=no
15068
15069 # Dependencies to place before and after the object being linked:
15070 predep_objects_CXX=
15071 postdep_objects_CXX=
15072 predeps_CXX=
15073 postdeps_CXX=
15074 compiler_lib_search_path_CXX=
15075
15076 # Source file extension for C++ test sources.
15077 ac_ext=cc
15078
15079 # Object file extension for compiled C++ test sources.
15080 objext=o
15081 objext_CXX=$objext
15082
15083 # Code to be used in simple compile tests
15084 lt_simple_compile_test_code="int some_variable = 0;\n"
15085
15086 # Code to be used in simple link tests
15087 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15088
15089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15090
15091 # If no C compiler was specified, use CC.
15092 LTCC=${LTCC-"$CC"}
15093
15094 # Allow CC to be a program name with arguments.
15095 compiler=$CC
15096
15097
15098 # Allow CC to be a program name with arguments.
15099 lt_save_CC=$CC
15100 lt_save_LD=$LD
15101 lt_save_GCC=$GCC
15102 GCC=$GXX
15103 lt_save_with_gnu_ld=$with_gnu_ld
15104 lt_save_path_LD=$lt_cv_path_LD
15105 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15106   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15107 else
15108   unset lt_cv_prog_gnu_ld
15109 fi
15110 if test -n "${lt_cv_path_LDCXX+set}"; then
15111   lt_cv_path_LD=$lt_cv_path_LDCXX
15112 else
15113   unset lt_cv_path_LD
15114 fi
15115 test -z "${LDCXX+set}" || LD=$LDCXX
15116 CC=${CXX-"c++"}
15117 compiler=$CC
15118 compiler_CXX=$CC
15119 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15120
15121 # We don't want -fno-exception wen compiling C++ code, so set the
15122 # no_builtin_flag separately
15123 if test "$GXX" = yes; then
15124   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15125 else
15126   lt_prog_compiler_no_builtin_flag_CXX=
15127 fi
15128
15129 if test "$GXX" = yes; then
15130   # Set up default GNU C++ configuration
15131
15132
15133 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15134 if test "${with_gnu_ld+set}" = set; then
15135   withval="$with_gnu_ld"
15136   test "$withval" = no || with_gnu_ld=yes
15137 else
15138   with_gnu_ld=no
15139 fi;
15140 ac_prog=ld
15141 if test "$GCC" = yes; then
15142   # Check if gcc -print-prog-name=ld gives a path.
15143   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15144 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15145   case $host in
15146   *-*-mingw*)
15147     # gcc leaves a trailing carriage return which upsets mingw
15148     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15149   *)
15150     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15151   esac
15152   case $ac_prog in
15153     # Accept absolute paths.
15154     [\\/]* | ?:[\\/]*)
15155       re_direlt='/[^/][^/]*/\.\./'
15156       # Canonicalize the pathname of ld
15157       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15158       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15159         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15160       done
15161       test -z "$LD" && LD="$ac_prog"
15162       ;;
15163   "")
15164     # If it fails, then pretend we aren't using GCC.
15165     ac_prog=ld
15166     ;;
15167   *)
15168     # If it is relative, then search for the first ld in PATH.
15169     with_gnu_ld=unknown
15170     ;;
15171   esac
15172 elif test "$with_gnu_ld" = yes; then
15173   echo "$as_me:$LINENO: checking for GNU ld" >&5
15174 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15175 else
15176   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15177 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15178 fi
15179 if test "${lt_cv_path_LD+set}" = set; then
15180   echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182   if test -z "$LD"; then
15183   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15184   for ac_dir in $PATH; do
15185     IFS="$lt_save_ifs"
15186     test -z "$ac_dir" && ac_dir=.
15187     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15188       lt_cv_path_LD="$ac_dir/$ac_prog"
15189       # Check to see if the program is GNU ld.  I'd rather use --version,
15190       # but apparently some GNU ld's only accept -v.
15191       # Break only if it was the GNU/non-GNU ld that we prefer.
15192       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15193       *GNU* | *'with BFD'*)
15194         test "$with_gnu_ld" != no && break
15195         ;;
15196       *)
15197         test "$with_gnu_ld" != yes && break
15198         ;;
15199       esac
15200     fi
15201   done
15202   IFS="$lt_save_ifs"
15203 else
15204   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15205 fi
15206 fi
15207
15208 LD="$lt_cv_path_LD"
15209 if test -n "$LD"; then
15210   echo "$as_me:$LINENO: result: $LD" >&5
15211 echo "${ECHO_T}$LD" >&6
15212 else
15213   echo "$as_me:$LINENO: result: no" >&5
15214 echo "${ECHO_T}no" >&6
15215 fi
15216 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15217 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15218    { (exit 1); exit 1; }; }
15219 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15220 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15221 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15225 case `$LD -v 2>&1 </dev/null` in
15226 *GNU* | *'with BFD'*)
15227   lt_cv_prog_gnu_ld=yes
15228   ;;
15229 *)
15230   lt_cv_prog_gnu_ld=no
15231   ;;
15232 esac
15233 fi
15234 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15235 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15236 with_gnu_ld=$lt_cv_prog_gnu_ld
15237
15238
15239
15240   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15241   # archiving commands below assume that GNU ld is being used.
15242   if test "$with_gnu_ld" = yes; then
15243     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244     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'
15245
15246     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15247     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15248
15249     # If archive_cmds runs LD, not CC, wlarc should be empty
15250     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15251     #     investigate it a little bit more. (MM)
15252     wlarc='${wl}'
15253
15254     # ancient GNU ld didn't support --whole-archive et. al.
15255     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15256         grep 'no-whole-archive' > /dev/null; then
15257       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15258     else
15259       whole_archive_flag_spec_CXX=
15260     fi
15261   else
15262     with_gnu_ld=no
15263     wlarc=
15264
15265     # A generic and very simple default shared library creation
15266     # command for GNU C++ for the case where it uses the native
15267     # linker, instead of GNU ld.  If possible, this setting should
15268     # overridden to take advantage of the native linker features on
15269     # the platform it is being used on.
15270     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15271   fi
15272
15273   # Commands to make compiler produce verbose output that lists
15274   # what "hidden" libraries, object files and flags are used when
15275   # linking a shared library.
15276   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15277
15278 else
15279   GXX=no
15280   with_gnu_ld=no
15281   wlarc=
15282 fi
15283
15284 # PORTME: fill in a description of your system's C++ link characteristics
15285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15287 ld_shlibs_CXX=yes
15288 case $host_os in
15289   aix3*)
15290     # FIXME: insert proper C++ library support
15291     ld_shlibs_CXX=no
15292     ;;
15293   aix4* | aix5*)
15294     if test "$host_cpu" = ia64; then
15295       # On IA64, the linker does run time linking by default, so we don't
15296       # have to do anything special.
15297       aix_use_runtimelinking=no
15298       exp_sym_flag='-Bexport'
15299       no_entry_flag=""
15300     else
15301       aix_use_runtimelinking=no
15302
15303       # Test if we are trying to use run time linking or normal
15304       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15305       # need to do runtime linking.
15306       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15307         for ld_flag in $LDFLAGS; do
15308           case $ld_flag in
15309           *-brtl*)
15310             aix_use_runtimelinking=yes
15311             break
15312             ;;
15313           esac
15314         done
15315       esac
15316
15317       exp_sym_flag='-bexport'
15318       no_entry_flag='-bnoentry'
15319     fi
15320
15321     # When large executables or shared objects are built, AIX ld can
15322     # have problems creating the table of contents.  If linking a library
15323     # or program results in "error TOC overflow" add -mminimal-toc to
15324     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15325     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15326
15327     archive_cmds_CXX=''
15328     hardcode_direct_CXX=yes
15329     hardcode_libdir_separator_CXX=':'
15330     link_all_deplibs_CXX=yes
15331
15332     if test "$GXX" = yes; then
15333       case $host_os in aix4.012|aix4.012.*)
15334       # We only want to do this on AIX 4.2 and lower, the check
15335       # below for broken collect2 doesn't work under 4.3+
15336         collect2name=`${CC} -print-prog-name=collect2`
15337         if test -f "$collect2name" && \
15338            strings "$collect2name" | grep resolve_lib_name >/dev/null
15339         then
15340           # We have reworked collect2
15341           hardcode_direct_CXX=yes
15342         else
15343           # We have old collect2
15344           hardcode_direct_CXX=unsupported
15345           # It fails to find uninstalled libraries when the uninstalled
15346           # path is not listed in the libpath.  Setting hardcode_minus_L
15347           # to unsupported forces relinking
15348           hardcode_minus_L_CXX=yes
15349           hardcode_libdir_flag_spec_CXX='-L$libdir'
15350           hardcode_libdir_separator_CXX=
15351         fi
15352       esac
15353       shared_flag='-shared'
15354     else
15355       # not using gcc
15356       if test "$host_cpu" = ia64; then
15357         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15358         # chokes on -Wl,-G. The following line is correct:
15359         shared_flag='-G'
15360       else
15361         if test "$aix_use_runtimelinking" = yes; then
15362           shared_flag='${wl}-G'
15363         else
15364           shared_flag='${wl}-bM:SRE'
15365         fi
15366       fi
15367     fi
15368
15369     # It seems that -bexpall does not export symbols beginning with
15370     # underscore (_), so it is better to generate a list of symbols to export.
15371     always_export_symbols_CXX=yes
15372     if test "$aix_use_runtimelinking" = yes; then
15373       # Warning - without using the other runtime loading flags (-brtl),
15374       # -berok will link without error, but may produce a broken library.
15375       allow_undefined_flag_CXX='-berok'
15376       # Determine the default libpath from the value encoded in an empty executable.
15377       cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h.  */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h.  */
15383
15384 int
15385 main ()
15386 {
15387
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394   (eval $ac_link) 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -z "$ac_cxx_werror_flag"
15402                          || test ! -s conftest.err'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; } &&
15408          { ac_try='test -s conftest$ac_exeext'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414
15415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15416 }'`
15417 # Check for a 64-bit object if we didn't find anything.
15418 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; }
15419 }'`; fi
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 fi
15425 rm -f conftest.err conftest.$ac_objext \
15426       conftest$ac_exeext conftest.$ac_ext
15427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15428
15429       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15430
15431       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"
15432      else
15433       if test "$host_cpu" = ia64; then
15434         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15435         allow_undefined_flag_CXX="-z nodefs"
15436         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"
15437       else
15438         # Determine the default libpath from the value encoded in an empty executable.
15439         cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h.  */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h.  */
15445
15446 int
15447 main ()
15448 {
15449
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456   (eval $ac_link) 2>conftest.er1
15457   ac_status=$?
15458   grep -v '^ *+' conftest.er1 >conftest.err
15459   rm -f conftest.er1
15460   cat conftest.err >&5
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); } &&
15463          { ac_try='test -z "$ac_cxx_werror_flag"
15464                          || test ! -s conftest.err'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; } &&
15470          { ac_try='test -s conftest$ac_exeext'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; }; then
15476
15477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15478 }'`
15479 # Check for a 64-bit object if we didn't find anything.
15480 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; }
15481 }'`; fi
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 fi
15487 rm -f conftest.err conftest.$ac_objext \
15488       conftest$ac_exeext conftest.$ac_ext
15489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15490
15491         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15492         # Warning - without using the other run time loading flags,
15493         # -berok will link without error, but may produce a broken library.
15494         no_undefined_flag_CXX=' ${wl}-bernotok'
15495         allow_undefined_flag_CXX=' ${wl}-berok'
15496         # -bexpall does not export symbols beginning with underscore (_)
15497         always_export_symbols_CXX=yes
15498         # Exported symbols can be pulled into shared objects from archives
15499         whole_archive_flag_spec_CXX=' '
15500         archive_cmds_need_lc_CXX=yes
15501         # This is similar to how AIX traditionally builds it's shared libraries.
15502         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'
15503       fi
15504     fi
15505     ;;
15506   chorus*)
15507     case $cc_basename in
15508       *)
15509         # FIXME: insert proper C++ library support
15510         ld_shlibs_CXX=no
15511         ;;
15512     esac
15513     ;;
15514
15515
15516   cygwin* | mingw* | pw32*)
15517     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15518     # as there is no search path for DLLs.
15519     hardcode_libdir_flag_spec_CXX='-L$libdir'
15520     allow_undefined_flag_CXX=unsupported
15521     always_export_symbols_CXX=no
15522     enable_shared_with_static_runtimes_CXX=yes
15523
15524     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15525       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'
15526       # If the export-symbols file already is a .def file (1st line
15527       # is EXPORTS), use it as is; otherwise, prepend...
15528       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15529         cp $export_symbols $output_objdir/$soname.def;
15530       else
15531         echo EXPORTS > $output_objdir/$soname.def;
15532         cat $export_symbols >> $output_objdir/$soname.def;
15533       fi~
15534       $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'
15535     else
15536       ld_shlibs_CXX=no
15537     fi
15538   ;;
15539       darwin* | rhapsody*)
15540         case "$host_os" in
15541         rhapsody* | darwin1.[012])
15542          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15543          ;;
15544        *) # Darwin 1.3 on
15545          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15546            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15547          else
15548            case ${MACOSX_DEPLOYMENT_TARGET} in
15549              10.[012])
15550                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15551                ;;
15552              10.*)
15553                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15554                ;;
15555            esac
15556          fi
15557          ;;
15558         esac
15559       archive_cmds_need_lc_CXX=no
15560       hardcode_direct_CXX=no
15561       hardcode_automatic_CXX=yes
15562       hardcode_shlibpath_var_CXX=unsupported
15563       whole_archive_flag_spec_CXX=''
15564       link_all_deplibs_CXX=yes
15565
15566     if test "$GXX" = yes ; then
15567       lt_int_apple_cc_single_mod=no
15568       output_verbose_link_cmd='echo'
15569       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15570        lt_int_apple_cc_single_mod=yes
15571       fi
15572       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15573        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15574       else
15575           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'
15576         fi
15577         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15579           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15580             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}'
15581           else
15582             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}'
15583           fi
15584             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}'
15585       else
15586       case "$cc_basename" in
15587         xlc*)
15588          output_verbose_link_cmd='echo'
15589           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'
15590           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15591           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15592           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}'
15593           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}'
15594           ;;
15595        *)
15596          ld_shlibs_CXX=no
15597           ;;
15598       esac
15599       fi
15600         ;;
15601
15602   dgux*)
15603     case $cc_basename in
15604       ec++)
15605         # FIXME: insert proper C++ library support
15606         ld_shlibs_CXX=no
15607         ;;
15608       ghcx)
15609         # Green Hills C++ Compiler
15610         # FIXME: insert proper C++ library support
15611         ld_shlibs_CXX=no
15612         ;;
15613       *)
15614         # FIXME: insert proper C++ library support
15615         ld_shlibs_CXX=no
15616         ;;
15617     esac
15618     ;;
15619   freebsd12*)
15620     # C++ shared libraries reported to be fairly broken before switch to ELF
15621     ld_shlibs_CXX=no
15622     ;;
15623   freebsd-elf*)
15624     archive_cmds_need_lc_CXX=no
15625     ;;
15626   freebsd* | kfreebsd*-gnu)
15627     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15628     # conventions
15629     ld_shlibs_CXX=yes
15630     ;;
15631   gnu*)
15632     ;;
15633   hpux9*)
15634     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15635     hardcode_libdir_separator_CXX=:
15636     export_dynamic_flag_spec_CXX='${wl}-E'
15637     hardcode_direct_CXX=yes
15638     hardcode_minus_L_CXX=yes # Not in the search PATH,
15639                                 # but as the default
15640                                 # location of the library.
15641
15642     case $cc_basename in
15643     CC)
15644       # FIXME: insert proper C++ library support
15645       ld_shlibs_CXX=no
15646       ;;
15647     aCC)
15648       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'
15649       # Commands to make compiler produce verbose output that lists
15650       # what "hidden" libraries, object files and flags are used when
15651       # linking a shared library.
15652       #
15653       # There doesn't appear to be a way to prevent this compiler from
15654       # explicitly linking system object files so we need to strip them
15655       # from the output so that they don't get included in the library
15656       # dependencies.
15657       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'
15658       ;;
15659     *)
15660       if test "$GXX" = yes; then
15661         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'
15662       else
15663         # FIXME: insert proper C++ library support
15664         ld_shlibs_CXX=no
15665       fi
15666       ;;
15667     esac
15668     ;;
15669   hpux10*|hpux11*)
15670     if test $with_gnu_ld = no; then
15671       case "$host_cpu" in
15672       hppa*64*)
15673         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15674         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15675         hardcode_libdir_separator_CXX=:
15676         ;;
15677       ia64*)
15678         hardcode_libdir_flag_spec_CXX='-L$libdir'
15679         ;;
15680       *)
15681         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15682         hardcode_libdir_separator_CXX=:
15683         export_dynamic_flag_spec_CXX='${wl}-E'
15684         ;;
15685       esac
15686     fi
15687     case "$host_cpu" in
15688     hppa*64*)
15689       hardcode_direct_CXX=no
15690       hardcode_shlibpath_var_CXX=no
15691       ;;
15692     ia64*)
15693       hardcode_direct_CXX=no
15694       hardcode_shlibpath_var_CXX=no
15695       hardcode_minus_L_CXX=yes # Not in the search PATH,
15696                                               # but as the default
15697                                               # location of the library.
15698       ;;
15699     *)
15700       hardcode_direct_CXX=yes
15701       hardcode_minus_L_CXX=yes # Not in the search PATH,
15702                                               # but as the default
15703                                               # location of the library.
15704       ;;
15705     esac
15706
15707     case $cc_basename in
15708       CC)
15709         # FIXME: insert proper C++ library support
15710         ld_shlibs_CXX=no
15711         ;;
15712       aCC)
15713         case "$host_cpu" in
15714         hppa*64*|ia64*)
15715           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15716           ;;
15717         *)
15718           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15719           ;;
15720         esac
15721         # Commands to make compiler produce verbose output that lists
15722         # what "hidden" libraries, object files and flags are used when
15723         # linking a shared library.
15724         #
15725         # There doesn't appear to be a way to prevent this compiler from
15726         # explicitly linking system object files so we need to strip them
15727         # from the output so that they don't get included in the library
15728         # dependencies.
15729         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'
15730         ;;
15731       *)
15732         if test "$GXX" = yes; then
15733           if test $with_gnu_ld = no; then
15734             case "$host_cpu" in
15735             ia64*|hppa*64*)
15736               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15737               ;;
15738             *)
15739               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'
15740               ;;
15741             esac
15742           fi
15743         else
15744           # FIXME: insert proper C++ library support
15745           ld_shlibs_CXX=no
15746         fi
15747         ;;
15748     esac
15749     ;;
15750   irix5* | irix6*)
15751     case $cc_basename in
15752       CC)
15753         # SGI C++
15754         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'
15755
15756         # Archives containing C++ object files must be created using
15757         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15758         # necessary to make sure instantiated templates are included
15759         # in the archive.
15760         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15761         ;;
15762       *)
15763         if test "$GXX" = yes; then
15764           if test "$with_gnu_ld" = no; then
15765             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'
15766           else
15767             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'
15768           fi
15769         fi
15770         link_all_deplibs_CXX=yes
15771         ;;
15772     esac
15773     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15774     hardcode_libdir_separator_CXX=:
15775     ;;
15776   linux*)
15777     case $cc_basename in
15778       KCC)
15779         # Kuck and Associates, Inc. (KAI) C++ Compiler
15780
15781         # KCC will only create a shared library if the output file
15782         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15783         # to its proper name (with version) after linking.
15784         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'
15785         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'
15786         # Commands to make compiler produce verbose output that lists
15787         # what "hidden" libraries, object files and flags are used when
15788         # linking a shared library.
15789         #
15790         # There doesn't appear to be a way to prevent this compiler from
15791         # explicitly linking system object files so we need to strip them
15792         # from the output so that they don't get included in the library
15793         # dependencies.
15794         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'
15795
15796         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15797         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15798
15799         # Archives containing C++ object files must be created using
15800         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15801         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15802         ;;
15803       icpc)
15804         # Intel C++
15805         with_gnu_ld=yes
15806         # version 8.0 and above of icpc choke on multiply defined symbols
15807         # if we add $predep_objects and $postdep_objects, however 7.1 and
15808         # earlier do not add the objects themselves.
15809         case `$CC -V 2>&1` in
15810         *"Version 7."*)
15811           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812           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'
15813           ;;
15814         *)  # Version 8.0 or newer
15815           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15816         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15817           ;;
15818         esac
15819         archive_cmds_need_lc_CXX=no
15820         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15821         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15822         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15823         ;;
15824       cxx)
15825         # Compaq C++
15826         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827         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'
15828
15829         runpath_var=LD_RUN_PATH
15830         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15831         hardcode_libdir_separator_CXX=:
15832
15833         # Commands to make compiler produce verbose output that lists
15834         # what "hidden" libraries, object files and flags are used when
15835         # linking a shared library.
15836         #
15837         # There doesn't appear to be a way to prevent this compiler from
15838         # explicitly linking system object files so we need to strip them
15839         # from the output so that they don't get included in the library
15840         # dependencies.
15841         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'
15842         ;;
15843     esac
15844     ;;
15845   lynxos*)
15846     # FIXME: insert proper C++ library support
15847     ld_shlibs_CXX=no
15848     ;;
15849   m88k*)
15850     # FIXME: insert proper C++ library support
15851     ld_shlibs_CXX=no
15852     ;;
15853   mvs*)
15854     case $cc_basename in
15855       cxx)
15856         # FIXME: insert proper C++ library support
15857         ld_shlibs_CXX=no
15858         ;;
15859       *)
15860         # FIXME: insert proper C++ library support
15861         ld_shlibs_CXX=no
15862         ;;
15863     esac
15864     ;;
15865   netbsd*)
15866     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15867       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15868       wlarc=
15869       hardcode_libdir_flag_spec_CXX='-R$libdir'
15870       hardcode_direct_CXX=yes
15871       hardcode_shlibpath_var_CXX=no
15872     fi
15873     # Workaround some broken pre-1.5 toolchains
15874     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15875     ;;
15876   openbsd2*)
15877     # C++ shared libraries are fairly broken
15878     ld_shlibs_CXX=no
15879     ;;
15880   openbsd*)
15881     hardcode_direct_CXX=yes
15882     hardcode_shlibpath_var_CXX=no
15883     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15884     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15885     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15886       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15887       export_dynamic_flag_spec_CXX='${wl}-E'
15888       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15889     fi
15890     output_verbose_link_cmd='echo'
15891     ;;
15892   osf3*)
15893     case $cc_basename in
15894       KCC)
15895         # Kuck and Associates, Inc. (KAI) C++ Compiler
15896
15897         # KCC will only create a shared library if the output file
15898         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15899         # to its proper name (with version) after linking.
15900         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'
15901
15902         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15903         hardcode_libdir_separator_CXX=:
15904
15905         # Archives containing C++ object files must be created using
15906         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15907         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15908
15909         ;;
15910       RCC)
15911         # Rational C++ 2.4.1
15912         # FIXME: insert proper C++ library support
15913         ld_shlibs_CXX=no
15914         ;;
15915       cxx)
15916         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15917         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'
15918
15919         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15920         hardcode_libdir_separator_CXX=:
15921
15922         # Commands to make compiler produce verbose output that lists
15923         # what "hidden" libraries, object files and flags are used when
15924         # linking a shared library.
15925         #
15926         # There doesn't appear to be a way to prevent this compiler from
15927         # explicitly linking system object files so we need to strip them
15928         # from the output so that they don't get included in the library
15929         # dependencies.
15930         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'
15931         ;;
15932       *)
15933         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15934           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15935           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'
15936
15937           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15938           hardcode_libdir_separator_CXX=:
15939
15940           # Commands to make compiler produce verbose output that lists
15941           # what "hidden" libraries, object files and flags are used when
15942           # linking a shared library.
15943           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15944
15945         else
15946           # FIXME: insert proper C++ library support
15947           ld_shlibs_CXX=no
15948         fi
15949         ;;
15950     esac
15951     ;;
15952   osf4* | osf5*)
15953     case $cc_basename in
15954       KCC)
15955         # Kuck and Associates, Inc. (KAI) C++ Compiler
15956
15957         # KCC will only create a shared library if the output file
15958         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15959         # to its proper name (with version) after linking.
15960         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'
15961
15962         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15963         hardcode_libdir_separator_CXX=:
15964
15965         # Archives containing C++ object files must be created using
15966         # the KAI C++ compiler.
15967         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15968         ;;
15969       RCC)
15970         # Rational C++ 2.4.1
15971         # FIXME: insert proper C++ library support
15972         ld_shlibs_CXX=no
15973         ;;
15974       cxx)
15975         allow_undefined_flag_CXX=' -expect_unresolved \*'
15976         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'
15977         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15978           echo "-hidden">> $lib.exp~
15979           $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~
15980           $rm $lib.exp'
15981
15982         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15983         hardcode_libdir_separator_CXX=:
15984
15985         # Commands to make compiler produce verbose output that lists
15986         # what "hidden" libraries, object files and flags are used when
15987         # linking a shared library.
15988         #
15989         # There doesn't appear to be a way to prevent this compiler from
15990         # explicitly linking system object files so we need to strip them
15991         # from the output so that they don't get included in the library
15992         # dependencies.
15993         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'
15994         ;;
15995       *)
15996         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15997           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15998          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'
15999
16000           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16001           hardcode_libdir_separator_CXX=:
16002
16003           # Commands to make compiler produce verbose output that lists
16004           # what "hidden" libraries, object files and flags are used when
16005           # linking a shared library.
16006           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16007
16008         else
16009           # FIXME: insert proper C++ library support
16010           ld_shlibs_CXX=no
16011         fi
16012         ;;
16013     esac
16014     ;;
16015   psos*)
16016     # FIXME: insert proper C++ library support
16017     ld_shlibs_CXX=no
16018     ;;
16019   sco*)
16020     archive_cmds_need_lc_CXX=no
16021     case $cc_basename in
16022       CC)
16023         # FIXME: insert proper C++ library support
16024         ld_shlibs_CXX=no
16025         ;;
16026       *)
16027         # FIXME: insert proper C++ library support
16028         ld_shlibs_CXX=no
16029         ;;
16030     esac
16031     ;;
16032   sunos4*)
16033     case $cc_basename in
16034       CC)
16035         # Sun C++ 4.x
16036         # FIXME: insert proper C++ library support
16037         ld_shlibs_CXX=no
16038         ;;
16039       lcc)
16040         # Lucid
16041         # FIXME: insert proper C++ library support
16042         ld_shlibs_CXX=no
16043         ;;
16044       *)
16045         # FIXME: insert proper C++ library support
16046         ld_shlibs_CXX=no
16047         ;;
16048     esac
16049     ;;
16050   solaris*)
16051     case $cc_basename in
16052       CC)
16053         # Sun C++ 4.2, 5.x and Centerline C++
16054         no_undefined_flag_CXX=' -zdefs'
16055         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16056         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16057         $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'
16058
16059         hardcode_libdir_flag_spec_CXX='-R$libdir'
16060         hardcode_shlibpath_var_CXX=no
16061         case $host_os in
16062           solaris2.0-5 | solaris2.0-5.*) ;;
16063           *)
16064             # The C++ compiler is used as linker so we must use $wl
16065             # flag to pass the commands to the underlying system
16066             # linker.
16067             # Supported since Solaris 2.6 (maybe 2.5.1?)
16068             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16069             ;;
16070         esac
16071         link_all_deplibs_CXX=yes
16072
16073         # Commands to make compiler produce verbose output that lists
16074         # what "hidden" libraries, object files and flags are used when
16075         # linking a shared library.
16076         #
16077         # There doesn't appear to be a way to prevent this compiler from
16078         # explicitly linking system object files so we need to strip them
16079         # from the output so that they don't get included in the library
16080         # dependencies.
16081         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'
16082
16083         # Archives containing C++ object files must be created using
16084         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16085         # necessary to make sure instantiated templates are included
16086         # in the archive.
16087         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16088         ;;
16089       gcx)
16090         # Green Hills C++ Compiler
16091         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16092
16093         # The C++ compiler must be used to create the archive.
16094         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16095         ;;
16096       *)
16097         # GNU C++ compiler with Solaris linker
16098         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16099           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16100           if $CC --version | grep -v '^2\.7' > /dev/null; then
16101             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16102             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16103                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16104
16105             # Commands to make compiler produce verbose output that lists
16106             # what "hidden" libraries, object files and flags are used when
16107             # linking a shared library.
16108             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16109           else
16110             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16111             # platform.
16112             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16113             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16114                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16115
16116             # Commands to make compiler produce verbose output that lists
16117             # what "hidden" libraries, object files and flags are used when
16118             # linking a shared library.
16119             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16120           fi
16121
16122           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16123         fi
16124         ;;
16125     esac
16126     ;;
16127   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16128     archive_cmds_need_lc_CXX=no
16129     ;;
16130   tandem*)
16131     case $cc_basename in
16132       NCC)
16133         # NonStop-UX NCC 3.20
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     ;;
16143   vxworks*)
16144     # FIXME: insert proper C++ library support
16145     ld_shlibs_CXX=no
16146     ;;
16147   *)
16148     # FIXME: insert proper C++ library support
16149     ld_shlibs_CXX=no
16150     ;;
16151 esac
16152 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16153 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16154 test "$ld_shlibs_CXX" = no && can_build_shared=no
16155
16156 GCC_CXX="$GXX"
16157 LD_CXX="$LD"
16158
16159
16160 cat > conftest.$ac_ext <<EOF
16161 class Foo
16162 {
16163 public:
16164   Foo (void) { a = 0; }
16165 private:
16166   int a;
16167 };
16168 EOF
16169
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171   (eval $ac_compile) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; then
16175   # Parse the compiler output and extract the necessary
16176   # objects, libraries and library flags.
16177
16178   # Sentinel used to keep track of whether or not we are before
16179   # the conftest object file.
16180   pre_test_object_deps_done=no
16181
16182   # The `*' in the case matches for architectures that use `case' in
16183   # $output_verbose_cmd can trigger glob expansion during the loop
16184   # eval without this substitution.
16185   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16186
16187   for p in `eval $output_verbose_link_cmd`; do
16188     case $p in
16189
16190     -L* | -R* | -l*)
16191        # Some compilers place space between "-{L,R}" and the path.
16192        # Remove the space.
16193        if test $p = "-L" \
16194           || test $p = "-R"; then
16195          prev=$p
16196          continue
16197        else
16198          prev=
16199        fi
16200
16201        if test "$pre_test_object_deps_done" = no; then
16202          case $p in
16203          -L* | -R*)
16204            # Internal compiler library paths should come after those
16205            # provided the user.  The postdeps already come after the
16206            # user supplied libs so there is no need to process them.
16207            if test -z "$compiler_lib_search_path_CXX"; then
16208              compiler_lib_search_path_CXX="${prev}${p}"
16209            else
16210              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16211            fi
16212            ;;
16213          # The "-l" case would never come before the object being
16214          # linked, so don't bother handling this case.
16215          esac
16216        else
16217          if test -z "$postdeps_CXX"; then
16218            postdeps_CXX="${prev}${p}"
16219          else
16220            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16221          fi
16222        fi
16223        ;;
16224
16225     *.$objext)
16226        # This assumes that the test object file only shows up
16227        # once in the compiler output.
16228        if test "$p" = "conftest.$objext"; then
16229          pre_test_object_deps_done=yes
16230          continue
16231        fi
16232
16233        if test "$pre_test_object_deps_done" = no; then
16234          if test -z "$predep_objects_CXX"; then
16235            predep_objects_CXX="$p"
16236          else
16237            predep_objects_CXX="$predep_objects_CXX $p"
16238          fi
16239        else
16240          if test -z "$postdep_objects_CXX"; then
16241            postdep_objects_CXX="$p"
16242          else
16243            postdep_objects_CXX="$postdep_objects_CXX $p"
16244          fi
16245        fi
16246        ;;
16247
16248     *) ;; # Ignore the rest.
16249
16250     esac
16251   done
16252
16253   # Clean up.
16254   rm -f a.out a.exe
16255 else
16256   echo "libtool.m4: error: problem compiling CXX test program"
16257 fi
16258
16259 $rm -f confest.$objext
16260
16261 case " $postdeps_CXX " in
16262 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16263 esac
16264
16265 lt_prog_compiler_wl_CXX=
16266 lt_prog_compiler_pic_CXX=
16267 lt_prog_compiler_static_CXX=
16268
16269 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16270 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16271
16272   # C++ specific cases for pic, static, wl, etc.
16273   if test "$GXX" = yes; then
16274     lt_prog_compiler_wl_CXX='-Wl,'
16275     lt_prog_compiler_static_CXX='-static'
16276
16277     case $host_os in
16278     aix*)
16279       # All AIX code is PIC.
16280       if test "$host_cpu" = ia64; then
16281         # AIX 5 now supports IA64 processor
16282         lt_prog_compiler_static_CXX='-Bstatic'
16283       fi
16284       ;;
16285     amigaos*)
16286       # FIXME: we need at least 68020 code to build shared libraries, but
16287       # adding the `-m68020' flag to GCC prevents building anything better,
16288       # like `-m68040'.
16289       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16290       ;;
16291     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16292       # PIC is the default for these OSes.
16293       ;;
16294     mingw* | os2* | pw32*)
16295       # This hack is so that the source file can tell whether it is being
16296       # built for inclusion in a dll (and should export symbols for example).
16297       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16298       ;;
16299     darwin* | rhapsody*)
16300       # PIC is the default on this platform
16301       # Common symbols not allowed in MH_DYLIB files
16302       lt_prog_compiler_pic_CXX='-fno-common'
16303       ;;
16304     *djgpp*)
16305       # DJGPP does not support shared libraries at all
16306       lt_prog_compiler_pic_CXX=
16307       ;;
16308     sysv4*MP*)
16309       if test -d /usr/nec; then
16310         lt_prog_compiler_pic_CXX=-Kconform_pic
16311       fi
16312       ;;
16313     hpux*)
16314       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16315       # not for PA HP-UX.
16316       case "$host_cpu" in
16317       hppa*64*|ia64*)
16318         ;;
16319       *)
16320         lt_prog_compiler_pic_CXX='-fPIC'
16321         ;;
16322       esac
16323       ;;
16324     *)
16325       lt_prog_compiler_pic_CXX='-fPIC'
16326       ;;
16327     esac
16328   else
16329     case $host_os in
16330       aix4* | aix5*)
16331         # All AIX code is PIC.
16332         if test "$host_cpu" = ia64; then
16333           # AIX 5 now supports IA64 processor
16334           lt_prog_compiler_static_CXX='-Bstatic'
16335         else
16336           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16337         fi
16338         ;;
16339       chorus*)
16340         case $cc_basename in
16341         cxch68)
16342           # Green Hills C++ Compiler
16343           # _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"
16344           ;;
16345         esac
16346         ;;
16347        darwin*)
16348          # PIC is the default on this platform
16349          # Common symbols not allowed in MH_DYLIB files
16350          case "$cc_basename" in
16351            xlc*)
16352            lt_prog_compiler_pic_CXX='-qnocommon'
16353            lt_prog_compiler_wl_CXX='-Wl,'
16354            ;;
16355          esac
16356        ;;
16357       dgux*)
16358         case $cc_basename in
16359           ec++)
16360             lt_prog_compiler_pic_CXX='-KPIC'
16361             ;;
16362           ghcx)
16363             # Green Hills C++ Compiler
16364             lt_prog_compiler_pic_CXX='-pic'
16365             ;;
16366           *)
16367             ;;
16368         esac
16369         ;;
16370       freebsd* | kfreebsd*-gnu)
16371         # FreeBSD uses GNU C++
16372         ;;
16373       hpux9* | hpux10* | hpux11*)
16374         case $cc_basename in
16375           CC)
16376             lt_prog_compiler_wl_CXX='-Wl,'
16377             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16378             if test "$host_cpu" != ia64; then
16379               lt_prog_compiler_pic_CXX='+Z'
16380             fi
16381             ;;
16382           aCC)
16383             lt_prog_compiler_wl_CXX='-Wl,'
16384             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16385             case "$host_cpu" in
16386             hppa*64*|ia64*)
16387               # +Z the default
16388               ;;
16389             *)
16390               lt_prog_compiler_pic_CXX='+Z'
16391               ;;
16392             esac
16393             ;;
16394           *)
16395             ;;
16396         esac
16397         ;;
16398       irix5* | irix6* | nonstopux*)
16399         case $cc_basename in
16400           CC)
16401             lt_prog_compiler_wl_CXX='-Wl,'
16402             lt_prog_compiler_static_CXX='-non_shared'
16403             # CC pic flag -KPIC is the default.
16404             ;;
16405           *)
16406             ;;
16407         esac
16408         ;;
16409       linux*)
16410         case $cc_basename in
16411           KCC)
16412             # KAI C++ Compiler
16413             lt_prog_compiler_wl_CXX='--backend -Wl,'
16414             lt_prog_compiler_pic_CXX='-fPIC'
16415             ;;
16416           icpc)
16417             # Intel C++
16418             lt_prog_compiler_wl_CXX='-Wl,'
16419             lt_prog_compiler_pic_CXX='-KPIC'
16420             lt_prog_compiler_static_CXX='-static'
16421             ;;
16422           cxx)
16423             # Compaq C++
16424             # Make sure the PIC flag is empty.  It appears that all Alpha
16425             # Linux and Compaq Tru64 Unix objects are PIC.
16426             lt_prog_compiler_pic_CXX=
16427             lt_prog_compiler_static_CXX='-non_shared'
16428             ;;
16429           *)
16430             ;;
16431         esac
16432         ;;
16433       lynxos*)
16434         ;;
16435       m88k*)
16436         ;;
16437       mvs*)
16438         case $cc_basename in
16439           cxx)
16440             lt_prog_compiler_pic_CXX='-W c,exportall'
16441             ;;
16442           *)
16443             ;;
16444         esac
16445         ;;
16446       netbsd*)
16447         ;;
16448       osf3* | osf4* | osf5*)
16449         case $cc_basename in
16450           KCC)
16451             lt_prog_compiler_wl_CXX='--backend -Wl,'
16452             ;;
16453           RCC)
16454             # Rational C++ 2.4.1
16455             lt_prog_compiler_pic_CXX='-pic'
16456             ;;
16457           cxx)
16458             # Digital/Compaq C++
16459             lt_prog_compiler_wl_CXX='-Wl,'
16460             # Make sure the PIC flag is empty.  It appears that all Alpha
16461             # Linux and Compaq Tru64 Unix objects are PIC.
16462             lt_prog_compiler_pic_CXX=
16463             lt_prog_compiler_static_CXX='-non_shared'
16464             ;;
16465           *)
16466             ;;
16467         esac
16468         ;;
16469       psos*)
16470         ;;
16471       sco*)
16472         case $cc_basename in
16473           CC)
16474             lt_prog_compiler_pic_CXX='-fPIC'
16475             ;;
16476           *)
16477             ;;
16478         esac
16479         ;;
16480       solaris*)
16481         case $cc_basename in
16482           CC)
16483             # Sun C++ 4.2, 5.x and Centerline C++
16484             lt_prog_compiler_pic_CXX='-KPIC'
16485             lt_prog_compiler_static_CXX='-Bstatic'
16486             lt_prog_compiler_wl_CXX='-Qoption ld '
16487             ;;
16488           gcx)
16489             # Green Hills C++ Compiler
16490             lt_prog_compiler_pic_CXX='-PIC'
16491             ;;
16492           *)
16493             ;;
16494         esac
16495         ;;
16496       sunos4*)
16497         case $cc_basename in
16498           CC)
16499             # Sun C++ 4.x
16500             lt_prog_compiler_pic_CXX='-pic'
16501             lt_prog_compiler_static_CXX='-Bstatic'
16502             ;;
16503           lcc)
16504             # Lucid
16505             lt_prog_compiler_pic_CXX='-pic'
16506             ;;
16507           *)
16508             ;;
16509         esac
16510         ;;
16511       tandem*)
16512         case $cc_basename in
16513           NCC)
16514             # NonStop-UX NCC 3.20
16515             lt_prog_compiler_pic_CXX='-KPIC'
16516             ;;
16517           *)
16518             ;;
16519         esac
16520         ;;
16521       unixware*)
16522         ;;
16523       vxworks*)
16524         ;;
16525       *)
16526         lt_prog_compiler_can_build_shared_CXX=no
16527         ;;
16528     esac
16529   fi
16530
16531 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16532 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16533
16534 #
16535 # Check to make sure the PIC flag actually works.
16536 #
16537 if test -n "$lt_prog_compiler_pic_CXX"; then
16538
16539 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16540 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16541 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544   lt_prog_compiler_pic_works_CXX=no
16545   ac_outfile=conftest.$ac_objext
16546    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16547    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16548    # Insert the option either (1) after the last *FLAGS variable, or
16549    # (2) before a word containing "conftest.", or (3) at the end.
16550    # Note that $ac_compile itself does not contain backslashes and begins
16551    # with a dollar sign (not a hyphen), so the echo should work correctly.
16552    # The option is referenced via a variable to avoid confusing sed.
16553    lt_compile=`echo "$ac_compile" | $SED \
16554    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16555    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16556    -e 's:$: $lt_compiler_flag:'`
16557    (eval echo "\"\$as_me:16557: $lt_compile\"" >&5)
16558    (eval "$lt_compile" 2>conftest.err)
16559    ac_status=$?
16560    cat conftest.err >&5
16561    echo "$as_me:16561: \$? = $ac_status" >&5
16562    if (exit $ac_status) && test -s "$ac_outfile"; then
16563      # The compiler can only warn and ignore the option if not recognized
16564      # So say no if there are warnings
16565      if test ! -s conftest.err; then
16566        lt_prog_compiler_pic_works_CXX=yes
16567      fi
16568    fi
16569    $rm conftest*
16570
16571 fi
16572 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16573 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16574
16575 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16576     case $lt_prog_compiler_pic_CXX in
16577      "" | " "*) ;;
16578      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16579      esac
16580 else
16581     lt_prog_compiler_pic_CXX=
16582      lt_prog_compiler_can_build_shared_CXX=no
16583 fi
16584
16585 fi
16586 case "$host_os" in
16587   # For platforms which do not support PIC, -DPIC is meaningless:
16588   *djgpp*)
16589     lt_prog_compiler_pic_CXX=
16590     ;;
16591   *)
16592     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16593     ;;
16594 esac
16595
16596 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16597 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16598 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16599   echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601   lt_cv_prog_compiler_c_o_CXX=no
16602    $rm -r conftest 2>/dev/null
16603    mkdir conftest
16604    cd conftest
16605    mkdir out
16606    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16607
16608    lt_compiler_flag="-o out/conftest2.$ac_objext"
16609    # Insert the option either (1) after the last *FLAGS variable, or
16610    # (2) before a word containing "conftest.", or (3) at the end.
16611    # Note that $ac_compile itself does not contain backslashes and begins
16612    # with a dollar sign (not a hyphen), so the echo should work correctly.
16613    lt_compile=`echo "$ac_compile" | $SED \
16614    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16616    -e 's:$: $lt_compiler_flag:'`
16617    (eval echo "\"\$as_me:16617: $lt_compile\"" >&5)
16618    (eval "$lt_compile" 2>out/conftest.err)
16619    ac_status=$?
16620    cat out/conftest.err >&5
16621    echo "$as_me:16621: \$? = $ac_status" >&5
16622    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16623    then
16624      # The compiler can only warn and ignore the option if not recognized
16625      # So say no if there are warnings
16626      if test ! -s out/conftest.err; then
16627        lt_cv_prog_compiler_c_o_CXX=yes
16628      fi
16629    fi
16630    chmod u+w .
16631    $rm conftest*
16632    # SGI C++ compiler will create directory out/ii_files/ for
16633    # template instantiation
16634    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16635    $rm out/* && rmdir out
16636    cd ..
16637    rmdir conftest
16638    $rm conftest*
16639
16640 fi
16641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16643
16644
16645 hard_links="nottested"
16646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16647   # do not overwrite the value of need_locks provided by the user
16648   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16650   hard_links=yes
16651   $rm conftest*
16652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16653   touch conftest.a
16654   ln conftest.a conftest.b 2>&5 || hard_links=no
16655   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16656   echo "$as_me:$LINENO: result: $hard_links" >&5
16657 echo "${ECHO_T}$hard_links" >&6
16658   if test "$hard_links" = no; then
16659     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16661     need_locks=warn
16662   fi
16663 else
16664   need_locks=no
16665 fi
16666
16667 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16669
16670   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16671   case $host_os in
16672   aix4* | aix5*)
16673     # If we're using GNU nm, then we don't want the "-C" option.
16674     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16675     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16676       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'
16677     else
16678       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'
16679     fi
16680     ;;
16681   pw32*)
16682     export_symbols_cmds_CXX="$ltdll_cmds"
16683   ;;
16684   cygwin* | mingw*)
16685     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16686   ;;
16687   *)
16688     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16689   ;;
16690   esac
16691
16692 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16693 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16694 test "$ld_shlibs_CXX" = no && can_build_shared=no
16695
16696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16697 if test "$GCC" = yes; then
16698   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16699 fi
16700
16701 #
16702 # Do we need to explicitly link libc?
16703 #
16704 case "x$archive_cmds_need_lc_CXX" in
16705 x|xyes)
16706   # Assume -lc should be added
16707   archive_cmds_need_lc_CXX=yes
16708
16709   if test "$enable_shared" = yes && test "$GCC" = yes; then
16710     case $archive_cmds_CXX in
16711     *'~'*)
16712       # FIXME: we may have to deal with multi-command sequences.
16713       ;;
16714     '$CC '*)
16715       # Test whether the compiler implicitly links with -lc since on some
16716       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16717       # to ld, don't add -lc before -lgcc.
16718       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16719 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16720       $rm conftest*
16721       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16722
16723       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16724   (eval $ac_compile) 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } 2>conftest.err; then
16728         soname=conftest
16729         lib=conftest
16730         libobjs=conftest.$ac_objext
16731         deplibs=
16732         wl=$lt_prog_compiler_wl_CXX
16733         compiler_flags=-v
16734         linker_flags=-v
16735         verstring=
16736         output_objdir=.
16737         libname=conftest
16738         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16739         allow_undefined_flag_CXX=
16740         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16741   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }
16745         then
16746           archive_cmds_need_lc_CXX=no
16747         else
16748           archive_cmds_need_lc_CXX=yes
16749         fi
16750         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16751       else
16752         cat conftest.err 1>&5
16753       fi
16754       $rm conftest*
16755       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16756 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16757       ;;
16758     esac
16759   fi
16760   ;;
16761 esac
16762
16763 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16764 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16765 library_names_spec=
16766 libname_spec='lib$name'
16767 soname_spec=
16768 shrext_cmds=".so"
16769 postinstall_cmds=
16770 postuninstall_cmds=
16771 finish_cmds=
16772 finish_eval=
16773 shlibpath_var=
16774 shlibpath_overrides_runpath=unknown
16775 version_type=none
16776 dynamic_linker="$host_os ld.so"
16777 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16778 if test "$GCC" = yes; then
16779   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16780   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16781     # if the path contains ";" then we assume it to be the separator
16782     # otherwise default to the standard path separator (i.e. ":") - it is
16783     # assumed that no part of a normal pathname contains ";" but that should
16784     # okay in the real world where ";" in dirpaths is itself problematic.
16785     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16786   else
16787     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16788   fi
16789 else
16790   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16791 fi
16792 need_lib_prefix=unknown
16793 hardcode_into_libs=no
16794
16795 # when you set need_version to no, make sure it does not cause -set_version
16796 # flags to be left without arguments
16797 need_version=unknown
16798
16799 case $host_os in
16800 aix3*)
16801   version_type=linux
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16803   shlibpath_var=LIBPATH
16804
16805   # AIX 3 has no versioning support, so we append a major version to the name.
16806   soname_spec='${libname}${release}${shared_ext}$major'
16807   ;;
16808
16809 aix4* | aix5*)
16810   version_type=linux
16811   need_lib_prefix=no
16812   need_version=no
16813   hardcode_into_libs=yes
16814   if test "$host_cpu" = ia64; then
16815     # AIX 5 supports IA64
16816     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817     shlibpath_var=LD_LIBRARY_PATH
16818   else
16819     # With GCC up to 2.95.x, collect2 would create an import file
16820     # for dependence libraries.  The import file would start with
16821     # the line `#! .'.  This would cause the generated library to
16822     # depend on `.', always an invalid library.  This was fixed in
16823     # development snapshots of GCC prior to 3.0.
16824     case $host_os in
16825       aix4 | aix4.[01] | aix4.[01].*)
16826       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16827            echo ' yes '
16828            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16829         :
16830       else
16831         can_build_shared=no
16832       fi
16833       ;;
16834     esac
16835     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836     # soname into executable. Probably we can add versioning support to
16837     # collect2, so additional links can be useful in future.
16838     if test "$aix_use_runtimelinking" = yes; then
16839       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840       # instead of lib<name>.a to let people know that these are not
16841       # typical AIX shared libraries.
16842       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843     else
16844       # We preserve .a as extension for shared libraries through AIX4.2
16845       # and later when we are not doing run time linking.
16846       library_names_spec='${libname}${release}.a $libname.a'
16847       soname_spec='${libname}${release}${shared_ext}$major'
16848     fi
16849     shlibpath_var=LIBPATH
16850   fi
16851   ;;
16852
16853 amigaos*)
16854   library_names_spec='$libname.ixlibrary $libname.a'
16855   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16856   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'
16857   ;;
16858
16859 beos*)
16860   library_names_spec='${libname}${shared_ext}'
16861   dynamic_linker="$host_os ld.so"
16862   shlibpath_var=LIBRARY_PATH
16863   ;;
16864
16865 bsdi[45]*)
16866   version_type=linux
16867   need_version=no
16868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869   soname_spec='${libname}${release}${shared_ext}$major'
16870   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16871   shlibpath_var=LD_LIBRARY_PATH
16872   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16873   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16874   # the default ld.so.conf also contains /usr/contrib/lib and
16875   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16876   # libtool to hard-code these into programs
16877   ;;
16878
16879 cygwin* | mingw* | pw32*)
16880   version_type=windows
16881   shrext_cmds=".dll"
16882   need_version=no
16883   need_lib_prefix=no
16884
16885   case $GCC,$host_os in
16886   yes,cygwin* | yes,mingw* | yes,pw32*)
16887     library_names_spec='$libname.dll.a'
16888     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16889     postinstall_cmds='base_file=`basename \${file}`~
16890       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16891       dldir=$destdir/`dirname \$dlpath`~
16892       test -d \$dldir || mkdir -p \$dldir~
16893       $install_prog $dir/$dlname \$dldir/$dlname'
16894     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16895       dlpath=$dir/\$dldll~
16896        $rm \$dlpath'
16897     shlibpath_overrides_runpath=yes
16898
16899     case $host_os in
16900     cygwin*)
16901       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16902       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16903       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16904       ;;
16905     mingw*)
16906       # MinGW DLLs use traditional 'lib' prefix
16907       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16909       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16910         # It is most probably a Windows format PATH printed by
16911         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16912         # path with ; separators, and with drive letters. We can handle the
16913         # drive letters (cygwin fileutils understands them), so leave them,
16914         # especially as we might pass files found there to a mingw objdump,
16915         # which wouldn't understand a cygwinified path. Ahh.
16916         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16917       else
16918         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16919       fi
16920       ;;
16921     pw32*)
16922       # pw32 DLLs use 'pw' prefix rather than 'lib'
16923       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16924       ;;
16925     esac
16926     ;;
16927
16928   *)
16929     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16930     ;;
16931   esac
16932   dynamic_linker='Win32 ld.exe'
16933   # FIXME: first we should search . and the directory the executable is in
16934   shlibpath_var=PATH
16935   ;;
16936
16937 darwin* | rhapsody*)
16938   dynamic_linker="$host_os dyld"
16939   version_type=darwin
16940   need_lib_prefix=no
16941   need_version=no
16942   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16943   soname_spec='${libname}${release}${major}$shared_ext'
16944   shlibpath_overrides_runpath=yes
16945   shlibpath_var=DYLD_LIBRARY_PATH
16946   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16947   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16948   if test "$GCC" = yes; then
16949     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"`
16950   else
16951     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16952   fi
16953   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16954   ;;
16955
16956 dgux*)
16957   version_type=linux
16958   need_lib_prefix=no
16959   need_version=no
16960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16961   soname_spec='${libname}${release}${shared_ext}$major'
16962   shlibpath_var=LD_LIBRARY_PATH
16963   ;;
16964
16965 freebsd1*)
16966   dynamic_linker=no
16967   ;;
16968
16969 kfreebsd*-gnu)
16970   version_type=linux
16971   need_lib_prefix=no
16972   need_version=no
16973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974   soname_spec='${libname}${release}${shared_ext}$major'
16975   shlibpath_var=LD_LIBRARY_PATH
16976   shlibpath_overrides_runpath=no
16977   hardcode_into_libs=yes
16978   dynamic_linker='GNU ld.so'
16979   ;;
16980
16981 freebsd*)
16982   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16983   version_type=freebsd-$objformat
16984   case $version_type in
16985     freebsd-elf*)
16986       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16987       need_version=no
16988       need_lib_prefix=no
16989       ;;
16990     freebsd-*)
16991       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16992       need_version=yes
16993       ;;
16994   esac
16995   shlibpath_var=LD_LIBRARY_PATH
16996   case $host_os in
16997   freebsd2*)
16998     shlibpath_overrides_runpath=yes
16999     ;;
17000   freebsd3.01* | freebsdelf3.01*)
17001     shlibpath_overrides_runpath=yes
17002     hardcode_into_libs=yes
17003     ;;
17004   *) # from 3.2 on
17005     shlibpath_overrides_runpath=no
17006     hardcode_into_libs=yes
17007     ;;
17008   esac
17009   ;;
17010
17011 gnu*)
17012   version_type=linux
17013   need_lib_prefix=no
17014   need_version=no
17015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016   soname_spec='${libname}${release}${shared_ext}$major'
17017   shlibpath_var=LD_LIBRARY_PATH
17018   hardcode_into_libs=yes
17019   ;;
17020
17021 hpux9* | hpux10* | hpux11*)
17022   # Give a soname corresponding to the major version so that dld.sl refuses to
17023   # link against other versions.
17024   version_type=sunos
17025   need_lib_prefix=no
17026   need_version=no
17027   case "$host_cpu" in
17028   ia64*)
17029     shrext_cmds='.so'
17030     hardcode_into_libs=yes
17031     dynamic_linker="$host_os dld.so"
17032     shlibpath_var=LD_LIBRARY_PATH
17033     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035     soname_spec='${libname}${release}${shared_ext}$major'
17036     if test "X$HPUX_IA64_MODE" = X32; then
17037       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17038     else
17039       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17040     fi
17041     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17042     ;;
17043    hppa*64*)
17044      shrext_cmds='.sl'
17045      hardcode_into_libs=yes
17046      dynamic_linker="$host_os dld.sl"
17047      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17048      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17052      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17053      ;;
17054    *)
17055     shrext_cmds='.sl'
17056     dynamic_linker="$host_os dld.sl"
17057     shlibpath_var=SHLIB_PATH
17058     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060     soname_spec='${libname}${release}${shared_ext}$major'
17061     ;;
17062   esac
17063   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17064   postinstall_cmds='chmod 555 $lib'
17065   ;;
17066
17067 irix5* | irix6* | nonstopux*)
17068   case $host_os in
17069     nonstopux*) version_type=nonstopux ;;
17070     *)
17071         if test "$lt_cv_prog_gnu_ld" = yes; then
17072                 version_type=linux
17073         else
17074                 version_type=irix
17075         fi ;;
17076   esac
17077   need_lib_prefix=no
17078   need_version=no
17079   soname_spec='${libname}${release}${shared_ext}$major'
17080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17081   case $host_os in
17082   irix5* | nonstopux*)
17083     libsuff= shlibsuff=
17084     ;;
17085   *)
17086     case $LD in # libtool.m4 will add one of these switches to LD
17087     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17088       libsuff= shlibsuff= libmagic=32-bit;;
17089     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17090       libsuff=32 shlibsuff=N32 libmagic=N32;;
17091     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17092       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17093     *) libsuff= shlibsuff= libmagic=never-match;;
17094     esac
17095     ;;
17096   esac
17097   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17098   shlibpath_overrides_runpath=no
17099   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17100   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17101   hardcode_into_libs=yes
17102   ;;
17103
17104 # No shared lib support for Linux oldld, aout, or coff.
17105 linux*oldld* | linux*aout* | linux*coff*)
17106   dynamic_linker=no
17107   ;;
17108
17109 # This must be Linux ELF.
17110 linux*)
17111   version_type=linux
17112   need_lib_prefix=no
17113   need_version=no
17114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115   soname_spec='${libname}${release}${shared_ext}$major'
17116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17117   shlibpath_var=LD_LIBRARY_PATH
17118   shlibpath_overrides_runpath=no
17119   # This implies no fast_install, which is unacceptable.
17120   # Some rework will be needed to allow for fast_install
17121   # before this can be enabled.
17122   hardcode_into_libs=yes
17123
17124   # Append ld.so.conf contents to the search path
17125   if test -f /etc/ld.so.conf; then
17126     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17127     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17128   fi
17129
17130   # We used to test for /lib/ld.so.1 and disable shared libraries on
17131   # powerpc, because MkLinux only supported shared libraries with the
17132   # GNU dynamic linker.  Since this was broken with cross compilers,
17133   # most powerpc-linux boxes support dynamic linking these days and
17134   # people can always --disable-shared, the test was removed, and we
17135   # assume the GNU/Linux dynamic linker is in use.
17136   dynamic_linker='GNU/Linux ld.so'
17137   ;;
17138
17139 knetbsd*-gnu)
17140   version_type=linux
17141   need_lib_prefix=no
17142   need_version=no
17143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144   soname_spec='${libname}${release}${shared_ext}$major'
17145   shlibpath_var=LD_LIBRARY_PATH
17146   shlibpath_overrides_runpath=no
17147   hardcode_into_libs=yes
17148   dynamic_linker='GNU ld.so'
17149   ;;
17150
17151 netbsd*)
17152   version_type=sunos
17153   need_lib_prefix=no
17154   need_version=no
17155   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17157     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17158     dynamic_linker='NetBSD (a.out) ld.so'
17159   else
17160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161     soname_spec='${libname}${release}${shared_ext}$major'
17162     dynamic_linker='NetBSD ld.elf_so'
17163   fi
17164   shlibpath_var=LD_LIBRARY_PATH
17165   shlibpath_overrides_runpath=yes
17166   hardcode_into_libs=yes
17167   ;;
17168
17169 newsos6)
17170   version_type=linux
17171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172   shlibpath_var=LD_LIBRARY_PATH
17173   shlibpath_overrides_runpath=yes
17174   ;;
17175
17176 nto-qnx*)
17177   version_type=linux
17178   need_lib_prefix=no
17179   need_version=no
17180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181   soname_spec='${libname}${release}${shared_ext}$major'
17182   shlibpath_var=LD_LIBRARY_PATH
17183   shlibpath_overrides_runpath=yes
17184   ;;
17185
17186 openbsd*)
17187   version_type=sunos
17188   need_lib_prefix=no
17189   need_version=no
17190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192   shlibpath_var=LD_LIBRARY_PATH
17193   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17194     case $host_os in
17195       openbsd2.[89] | openbsd2.[89].*)
17196         shlibpath_overrides_runpath=no
17197         ;;
17198       *)
17199         shlibpath_overrides_runpath=yes
17200         ;;
17201       esac
17202   else
17203     shlibpath_overrides_runpath=yes
17204   fi
17205   ;;
17206
17207 os2*)
17208   libname_spec='$name'
17209   shrext_cmds=".dll"
17210   need_lib_prefix=no
17211   library_names_spec='$libname${shared_ext} $libname.a'
17212   dynamic_linker='OS/2 ld.exe'
17213   shlibpath_var=LIBPATH
17214   ;;
17215
17216 osf3* | osf4* | osf5*)
17217   version_type=osf
17218   need_lib_prefix=no
17219   need_version=no
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17224   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17225   ;;
17226
17227 sco3.2v5*)
17228   version_type=osf
17229   soname_spec='${libname}${release}${shared_ext}$major'
17230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17231   shlibpath_var=LD_LIBRARY_PATH
17232   ;;
17233
17234 solaris*)
17235   version_type=linux
17236   need_lib_prefix=no
17237   need_version=no
17238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239   soname_spec='${libname}${release}${shared_ext}$major'
17240   shlibpath_var=LD_LIBRARY_PATH
17241   shlibpath_overrides_runpath=yes
17242   hardcode_into_libs=yes
17243   # ldd complains unless libraries are executable
17244   postinstall_cmds='chmod +x $lib'
17245   ;;
17246
17247 sunos4*)
17248   version_type=sunos
17249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17250   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17251   shlibpath_var=LD_LIBRARY_PATH
17252   shlibpath_overrides_runpath=yes
17253   if test "$with_gnu_ld" = yes; then
17254     need_lib_prefix=no
17255   fi
17256   need_version=yes
17257   ;;
17258
17259 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17260   version_type=linux
17261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262   soname_spec='${libname}${release}${shared_ext}$major'
17263   shlibpath_var=LD_LIBRARY_PATH
17264   case $host_vendor in
17265     sni)
17266       shlibpath_overrides_runpath=no
17267       need_lib_prefix=no
17268       export_dynamic_flag_spec='${wl}-Blargedynsym'
17269       runpath_var=LD_RUN_PATH
17270       ;;
17271     siemens)
17272       need_lib_prefix=no
17273       ;;
17274     motorola)
17275       need_lib_prefix=no
17276       need_version=no
17277       shlibpath_overrides_runpath=no
17278       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17279       ;;
17280   esac
17281   ;;
17282
17283 sysv4*MP*)
17284   if test -d /usr/nec ;then
17285     version_type=linux
17286     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17287     soname_spec='$libname${shared_ext}.$major'
17288     shlibpath_var=LD_LIBRARY_PATH
17289   fi
17290   ;;
17291
17292 uts4*)
17293   version_type=linux
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295   soname_spec='${libname}${release}${shared_ext}$major'
17296   shlibpath_var=LD_LIBRARY_PATH
17297   ;;
17298
17299 *)
17300   dynamic_linker=no
17301   ;;
17302 esac
17303 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17304 echo "${ECHO_T}$dynamic_linker" >&6
17305 test "$dynamic_linker" = no && can_build_shared=no
17306
17307 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17308 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17309 hardcode_action_CXX=
17310 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17311    test -n "$runpath_var_CXX" || \
17312    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17313
17314   # We can hardcode non-existant directories.
17315   if test "$hardcode_direct_CXX" != no &&
17316      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17317      # have to relink, otherwise we might link with an installed library
17318      # when we should be linking with a yet-to-be-installed one
17319      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17320      test "$hardcode_minus_L_CXX" != no; then
17321     # Linking always hardcodes the temporary library directory.
17322     hardcode_action_CXX=relink
17323   else
17324     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17325     hardcode_action_CXX=immediate
17326   fi
17327 else
17328   # We cannot hardcode anything, or else we can only hardcode existing
17329   # directories.
17330   hardcode_action_CXX=unsupported
17331 fi
17332 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17333 echo "${ECHO_T}$hardcode_action_CXX" >&6
17334
17335 if test "$hardcode_action_CXX" = relink; then
17336   # Fast installation is not supported
17337   enable_fast_install=no
17338 elif test "$shlibpath_overrides_runpath" = yes ||
17339      test "$enable_shared" = no; then
17340   # Fast installation is not necessary
17341   enable_fast_install=needless
17342 fi
17343
17344 striplib=
17345 old_striplib=
17346 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17347 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17348 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17349   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17350   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17351   echo "$as_me:$LINENO: result: yes" >&5
17352 echo "${ECHO_T}yes" >&6
17353 else
17354 # FIXME - insert some real tests, host_os isn't really good enough
17355   case $host_os in
17356    darwin*)
17357        if test -n "$STRIP" ; then
17358          striplib="$STRIP -x"
17359          echo "$as_me:$LINENO: result: yes" >&5
17360 echo "${ECHO_T}yes" >&6
17361        else
17362   echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6
17364 fi
17365        ;;
17366    *)
17367   echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6
17369     ;;
17370   esac
17371 fi
17372
17373 if test "x$enable_dlopen" != xyes; then
17374   enable_dlopen=unknown
17375   enable_dlopen_self=unknown
17376   enable_dlopen_self_static=unknown
17377 else
17378   lt_cv_dlopen=no
17379   lt_cv_dlopen_libs=
17380
17381   case $host_os in
17382   beos*)
17383     lt_cv_dlopen="load_add_on"
17384     lt_cv_dlopen_libs=
17385     lt_cv_dlopen_self=yes
17386     ;;
17387
17388   mingw* | pw32*)
17389     lt_cv_dlopen="LoadLibrary"
17390     lt_cv_dlopen_libs=
17391    ;;
17392
17393   cygwin*)
17394     lt_cv_dlopen="dlopen"
17395     lt_cv_dlopen_libs=
17396    ;;
17397
17398   darwin*)
17399   # if libdl is installed we need to link against it
17400     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   ac_check_lib_save_LIBS=$LIBS
17406 LIBS="-ldl  $LIBS"
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413
17414 /* Override any gcc2 internal prototype to avoid an error.  */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 /* We use char because int might match the return type of a gcc2
17419    builtin and then its argument prototype would still apply.  */
17420 char dlopen ();
17421 int
17422 main ()
17423 {
17424 dlopen ();
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431   (eval $ac_link) 2>conftest.er1
17432   ac_status=$?
17433   grep -v '^ *+' conftest.er1 >conftest.err
17434   rm -f conftest.er1
17435   cat conftest.err >&5
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } &&
17438          { ac_try='test -z "$ac_cxx_werror_flag"
17439                          || test ! -s conftest.err'
17440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441   (eval $ac_try) 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; } &&
17445          { ac_try='test -s conftest$ac_exeext'
17446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447   (eval $ac_try) 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }; }; then
17451   ac_cv_lib_dl_dlopen=yes
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 ac_cv_lib_dl_dlopen=no
17457 fi
17458 rm -f conftest.err conftest.$ac_objext \
17459       conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17461 fi
17462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17463 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17464 if test $ac_cv_lib_dl_dlopen = yes; then
17465   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17466 else
17467
17468     lt_cv_dlopen="dyld"
17469     lt_cv_dlopen_libs=
17470     lt_cv_dlopen_self=yes
17471
17472 fi
17473
17474    ;;
17475
17476   *)
17477     echo "$as_me:$LINENO: checking for shl_load" >&5
17478 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17479 if test "${ac_cv_func_shl_load+set}" = set; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482   cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17490 #define shl_load innocuous_shl_load
17491
17492 /* System header to define __stub macros and hopefully few prototypes,
17493     which can conflict with char shl_load (); below.
17494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495     <limits.h> exists even on freestanding compilers.  */
17496
17497 #ifdef __STDC__
17498 # include <limits.h>
17499 #else
17500 # include <assert.h>
17501 #endif
17502
17503 #undef shl_load
17504
17505 /* Override any gcc2 internal prototype to avoid an error.  */
17506 #ifdef __cplusplus
17507 extern "C"
17508 {
17509 #endif
17510 /* We use char because int might match the return type of a gcc2
17511    builtin and then its argument prototype would still apply.  */
17512 char shl_load ();
17513 /* The GNU C library defines this for functions which it implements
17514     to always fail with ENOSYS.  Some functions are actually named
17515     something starting with __ and the normal name is an alias.  */
17516 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17517 choke me
17518 #else
17519 char (*f) () = shl_load;
17520 #endif
17521 #ifdef __cplusplus
17522 }
17523 #endif
17524
17525 int
17526 main ()
17527 {
17528 return f != shl_load;
17529   ;
17530   return 0;
17531 }
17532 _ACEOF
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535   (eval $ac_link) 2>conftest.er1
17536   ac_status=$?
17537   grep -v '^ *+' conftest.er1 >conftest.err
17538   rm -f conftest.er1
17539   cat conftest.err >&5
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); } &&
17542          { ac_try='test -z "$ac_cxx_werror_flag"
17543                          || test ! -s conftest.err'
17544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545   (eval $ac_try) 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; } &&
17549          { ac_try='test -s conftest$ac_exeext'
17550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551   (eval $ac_try) 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); }; }; then
17555   ac_cv_func_shl_load=yes
17556 else
17557   echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17559
17560 ac_cv_func_shl_load=no
17561 fi
17562 rm -f conftest.err conftest.$ac_objext \
17563       conftest$ac_exeext conftest.$ac_ext
17564 fi
17565 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17566 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17567 if test $ac_cv_func_shl_load = yes; then
17568   lt_cv_dlopen="shl_load"
17569 else
17570   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17571 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17573   echo $ECHO_N "(cached) $ECHO_C" >&6
17574 else
17575   ac_check_lib_save_LIBS=$LIBS
17576 LIBS="-ldld  $LIBS"
17577 cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583
17584 /* Override any gcc2 internal prototype to avoid an error.  */
17585 #ifdef __cplusplus
17586 extern "C"
17587 #endif
17588 /* We use char because int might match the return type of a gcc2
17589    builtin and then its argument prototype would still apply.  */
17590 char shl_load ();
17591 int
17592 main ()
17593 {
17594 shl_load ();
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17601   (eval $ac_link) 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } &&
17608          { ac_try='test -z "$ac_cxx_werror_flag"
17609                          || test ! -s conftest.err'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; } &&
17615          { ac_try='test -s conftest$ac_exeext'
17616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617   (eval $ac_try) 2>&5
17618   ac_status=$?
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); }; }; then
17621   ac_cv_lib_dld_shl_load=yes
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626 ac_cv_lib_dld_shl_load=no
17627 fi
17628 rm -f conftest.err conftest.$ac_objext \
17629       conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17631 fi
17632 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17633 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17634 if test $ac_cv_lib_dld_shl_load = yes; then
17635   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17636 else
17637   echo "$as_me:$LINENO: checking for dlopen" >&5
17638 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17639 if test "${ac_cv_func_dlopen+set}" = set; then
17640   echo $ECHO_N "(cached) $ECHO_C" >&6
17641 else
17642   cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h.  */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h.  */
17648 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17650 #define dlopen innocuous_dlopen
17651
17652 /* System header to define __stub macros and hopefully few prototypes,
17653     which can conflict with char dlopen (); below.
17654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17655     <limits.h> exists even on freestanding compilers.  */
17656
17657 #ifdef __STDC__
17658 # include <limits.h>
17659 #else
17660 # include <assert.h>
17661 #endif
17662
17663 #undef dlopen
17664
17665 /* Override any gcc2 internal prototype to avoid an error.  */
17666 #ifdef __cplusplus
17667 extern "C"
17668 {
17669 #endif
17670 /* We use char because int might match the return type of a gcc2
17671    builtin and then its argument prototype would still apply.  */
17672 char dlopen ();
17673 /* The GNU C library defines this for functions which it implements
17674     to always fail with ENOSYS.  Some functions are actually named
17675     something starting with __ and the normal name is an alias.  */
17676 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17677 choke me
17678 #else
17679 char (*f) () = dlopen;
17680 #endif
17681 #ifdef __cplusplus
17682 }
17683 #endif
17684
17685 int
17686 main ()
17687 {
17688 return f != dlopen;
17689   ;
17690   return 0;
17691 }
17692 _ACEOF
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695   (eval $ac_link) 2>conftest.er1
17696   ac_status=$?
17697   grep -v '^ *+' conftest.er1 >conftest.err
17698   rm -f conftest.er1
17699   cat conftest.err >&5
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); } &&
17702          { ac_try='test -z "$ac_cxx_werror_flag"
17703                          || test ! -s conftest.err'
17704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705   (eval $ac_try) 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }; } &&
17709          { ac_try='test -s conftest$ac_exeext'
17710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711   (eval $ac_try) 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; }; then
17715   ac_cv_func_dlopen=yes
17716 else
17717   echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17719
17720 ac_cv_func_dlopen=no
17721 fi
17722 rm -f conftest.err conftest.$ac_objext \
17723       conftest$ac_exeext conftest.$ac_ext
17724 fi
17725 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17726 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17727 if test $ac_cv_func_dlopen = yes; then
17728   lt_cv_dlopen="dlopen"
17729 else
17730   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17731 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   ac_check_lib_save_LIBS=$LIBS
17736 LIBS="-ldl  $LIBS"
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743
17744 /* Override any gcc2 internal prototype to avoid an error.  */
17745 #ifdef __cplusplus
17746 extern "C"
17747 #endif
17748 /* We use char because int might match the return type of a gcc2
17749    builtin and then its argument prototype would still apply.  */
17750 char dlopen ();
17751 int
17752 main ()
17753 {
17754 dlopen ();
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761   (eval $ac_link) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } &&
17768          { ac_try='test -z "$ac_cxx_werror_flag"
17769                          || test ! -s conftest.err'
17770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771   (eval $ac_try) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; } &&
17775          { ac_try='test -s conftest$ac_exeext'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; }; then
17781   ac_cv_lib_dl_dlopen=yes
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 ac_cv_lib_dl_dlopen=no
17787 fi
17788 rm -f conftest.err conftest.$ac_objext \
17789       conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17791 fi
17792 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17794 if test $ac_cv_lib_dl_dlopen = yes; then
17795   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17796 else
17797   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802   ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-lsvld  $LIBS"
17804 cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810
17811 /* Override any gcc2 internal prototype to avoid an error.  */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 /* We use char because int might match the return type of a gcc2
17816    builtin and then its argument prototype would still apply.  */
17817 char dlopen ();
17818 int
17819 main ()
17820 {
17821 dlopen ();
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17828   (eval $ac_link) 2>conftest.er1
17829   ac_status=$?
17830   grep -v '^ *+' conftest.er1 >conftest.err
17831   rm -f conftest.er1
17832   cat conftest.err >&5
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } &&
17835          { ac_try='test -z "$ac_cxx_werror_flag"
17836                          || test ! -s conftest.err'
17837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838   (eval $ac_try) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; } &&
17842          { ac_try='test -s conftest$ac_exeext'
17843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844   (eval $ac_try) 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; }; then
17848   ac_cv_lib_svld_dlopen=yes
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853 ac_cv_lib_svld_dlopen=no
17854 fi
17855 rm -f conftest.err conftest.$ac_objext \
17856       conftest$ac_exeext conftest.$ac_ext
17857 LIBS=$ac_check_lib_save_LIBS
17858 fi
17859 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17860 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17861 if test $ac_cv_lib_svld_dlopen = yes; then
17862   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17863 else
17864   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17865 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17866 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17867   echo $ECHO_N "(cached) $ECHO_C" >&6
17868 else
17869   ac_check_lib_save_LIBS=$LIBS
17870 LIBS="-ldld  $LIBS"
17871 cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877
17878 /* Override any gcc2 internal prototype to avoid an error.  */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 /* We use char because int might match the return type of a gcc2
17883    builtin and then its argument prototype would still apply.  */
17884 char dld_link ();
17885 int
17886 main ()
17887 {
17888 dld_link ();
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17895   (eval $ac_link) 2>conftest.er1
17896   ac_status=$?
17897   grep -v '^ *+' conftest.er1 >conftest.err
17898   rm -f conftest.er1
17899   cat conftest.err >&5
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); } &&
17902          { ac_try='test -z "$ac_cxx_werror_flag"
17903                          || test ! -s conftest.err'
17904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905   (eval $ac_try) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; } &&
17909          { ac_try='test -s conftest$ac_exeext'
17910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911   (eval $ac_try) 2>&5
17912   ac_status=$?
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); }; }; then
17915   ac_cv_lib_dld_dld_link=yes
17916 else
17917   echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920 ac_cv_lib_dld_dld_link=no
17921 fi
17922 rm -f conftest.err conftest.$ac_objext \
17923       conftest$ac_exeext conftest.$ac_ext
17924 LIBS=$ac_check_lib_save_LIBS
17925 fi
17926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17927 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17928 if test $ac_cv_lib_dld_dld_link = yes; then
17929   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17930 fi
17931
17932
17933 fi
17934
17935
17936 fi
17937
17938
17939 fi
17940
17941
17942 fi
17943
17944
17945 fi
17946
17947     ;;
17948   esac
17949
17950   if test "x$lt_cv_dlopen" != xno; then
17951     enable_dlopen=yes
17952   else
17953     enable_dlopen=no
17954   fi
17955
17956   case $lt_cv_dlopen in
17957   dlopen)
17958     save_CPPFLAGS="$CPPFLAGS"
17959     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17960
17961     save_LDFLAGS="$LDFLAGS"
17962     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17963
17964     save_LIBS="$LIBS"
17965     LIBS="$lt_cv_dlopen_libs $LIBS"
17966
17967     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17968 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17969 if test "${lt_cv_dlopen_self+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972           if test "$cross_compiling" = yes; then :
17973   lt_cv_dlopen_self=cross
17974 else
17975   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17976   lt_status=$lt_dlunknown
17977   cat > conftest.$ac_ext <<EOF
17978 #line 17978 "configure"
17979 #include "confdefs.h"
17980
17981 #if HAVE_DLFCN_H
17982 #include <dlfcn.h>
17983 #endif
17984
17985 #include <stdio.h>
17986
17987 #ifdef RTLD_GLOBAL
17988 #  define LT_DLGLOBAL           RTLD_GLOBAL
17989 #else
17990 #  ifdef DL_GLOBAL
17991 #    define LT_DLGLOBAL         DL_GLOBAL
17992 #  else
17993 #    define LT_DLGLOBAL         0
17994 #  endif
17995 #endif
17996
17997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17998    find out it does not work in some platform. */
17999 #ifndef LT_DLLAZY_OR_NOW
18000 #  ifdef RTLD_LAZY
18001 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18002 #  else
18003 #    ifdef DL_LAZY
18004 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18005 #    else
18006 #      ifdef RTLD_NOW
18007 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18008 #      else
18009 #        ifdef DL_NOW
18010 #          define LT_DLLAZY_OR_NOW      DL_NOW
18011 #        else
18012 #          define LT_DLLAZY_OR_NOW      0
18013 #        endif
18014 #      endif
18015 #    endif
18016 #  endif
18017 #endif
18018
18019 #ifdef __cplusplus
18020 extern "C" void exit (int);
18021 #endif
18022
18023 void fnord() { int i=42;}
18024 int main ()
18025 {
18026   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18027   int status = $lt_dlunknown;
18028
18029   if (self)
18030     {
18031       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18032       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18033       /* dlclose (self); */
18034     }
18035
18036     exit (status);
18037 }
18038 EOF
18039   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040   (eval $ac_link) 2>&5
18041   ac_status=$?
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18044     (./conftest; exit; ) 2>/dev/null
18045     lt_status=$?
18046     case x$lt_status in
18047       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18048       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18049       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18050     esac
18051   else :
18052     # compilation failed
18053     lt_cv_dlopen_self=no
18054   fi
18055 fi
18056 rm -fr conftest*
18057
18058
18059 fi
18060 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18061 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18062
18063     if test "x$lt_cv_dlopen_self" = xyes; then
18064       LDFLAGS="$LDFLAGS $link_static_flag"
18065       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18066 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18067 if test "${lt_cv_dlopen_self_static+set}" = set; then
18068   echo $ECHO_N "(cached) $ECHO_C" >&6
18069 else
18070           if test "$cross_compiling" = yes; then :
18071   lt_cv_dlopen_self_static=cross
18072 else
18073   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18074   lt_status=$lt_dlunknown
18075   cat > conftest.$ac_ext <<EOF
18076 #line 18076 "configure"
18077 #include "confdefs.h"
18078
18079 #if HAVE_DLFCN_H
18080 #include <dlfcn.h>
18081 #endif
18082
18083 #include <stdio.h>
18084
18085 #ifdef RTLD_GLOBAL
18086 #  define LT_DLGLOBAL           RTLD_GLOBAL
18087 #else
18088 #  ifdef DL_GLOBAL
18089 #    define LT_DLGLOBAL         DL_GLOBAL
18090 #  else
18091 #    define LT_DLGLOBAL         0
18092 #  endif
18093 #endif
18094
18095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18096    find out it does not work in some platform. */
18097 #ifndef LT_DLLAZY_OR_NOW
18098 #  ifdef RTLD_LAZY
18099 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18100 #  else
18101 #    ifdef DL_LAZY
18102 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18103 #    else
18104 #      ifdef RTLD_NOW
18105 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18106 #      else
18107 #        ifdef DL_NOW
18108 #          define LT_DLLAZY_OR_NOW      DL_NOW
18109 #        else
18110 #          define LT_DLLAZY_OR_NOW      0
18111 #        endif
18112 #      endif
18113 #    endif
18114 #  endif
18115 #endif
18116
18117 #ifdef __cplusplus
18118 extern "C" void exit (int);
18119 #endif
18120
18121 void fnord() { int i=42;}
18122 int main ()
18123 {
18124   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18125   int status = $lt_dlunknown;
18126
18127   if (self)
18128     {
18129       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18130       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18131       /* dlclose (self); */
18132     }
18133
18134     exit (status);
18135 }
18136 EOF
18137   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18138   (eval $ac_link) 2>&5
18139   ac_status=$?
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18142     (./conftest; exit; ) 2>/dev/null
18143     lt_status=$?
18144     case x$lt_status in
18145       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18146       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18147       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18148     esac
18149   else :
18150     # compilation failed
18151     lt_cv_dlopen_self_static=no
18152   fi
18153 fi
18154 rm -fr conftest*
18155
18156
18157 fi
18158 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18159 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18160     fi
18161
18162     CPPFLAGS="$save_CPPFLAGS"
18163     LDFLAGS="$save_LDFLAGS"
18164     LIBS="$save_LIBS"
18165     ;;
18166   esac
18167
18168   case $lt_cv_dlopen_self in
18169   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18170   *) enable_dlopen_self=unknown ;;
18171   esac
18172
18173   case $lt_cv_dlopen_self_static in
18174   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18175   *) enable_dlopen_self_static=unknown ;;
18176   esac
18177 fi
18178
18179
18180 # The else clause should only fire when bootstrapping the
18181 # libtool distribution, otherwise you forgot to ship ltmain.sh
18182 # with your package, and you will get complaints that there are
18183 # no rules to generate ltmain.sh.
18184 if test -f "$ltmain"; then
18185   # See if we are running on zsh, and set the options which allow our commands through
18186   # without removal of \ escapes.
18187   if test -n "${ZSH_VERSION+set}" ; then
18188     setopt NO_GLOB_SUBST
18189   fi
18190   # Now quote all the things that may contain metacharacters while being
18191   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18192   # variables and quote the copies for generation of the libtool script.
18193   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18194     SED SHELL STRIP \
18195     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18196     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18197     deplibs_check_method reload_flag reload_cmds need_locks \
18198     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18199     lt_cv_sys_global_symbol_to_c_name_address \
18200     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18201     old_postinstall_cmds old_postuninstall_cmds \
18202     compiler_CXX \
18203     CC_CXX \
18204     LD_CXX \
18205     lt_prog_compiler_wl_CXX \
18206     lt_prog_compiler_pic_CXX \
18207     lt_prog_compiler_static_CXX \
18208     lt_prog_compiler_no_builtin_flag_CXX \
18209     export_dynamic_flag_spec_CXX \
18210     thread_safe_flag_spec_CXX \
18211     whole_archive_flag_spec_CXX \
18212     enable_shared_with_static_runtimes_CXX \
18213     old_archive_cmds_CXX \
18214     old_archive_from_new_cmds_CXX \
18215     predep_objects_CXX \
18216     postdep_objects_CXX \
18217     predeps_CXX \
18218     postdeps_CXX \
18219     compiler_lib_search_path_CXX \
18220     archive_cmds_CXX \
18221     archive_expsym_cmds_CXX \
18222     postinstall_cmds_CXX \
18223     postuninstall_cmds_CXX \
18224     old_archive_from_expsyms_cmds_CXX \
18225     allow_undefined_flag_CXX \
18226     no_undefined_flag_CXX \
18227     export_symbols_cmds_CXX \
18228     hardcode_libdir_flag_spec_CXX \
18229     hardcode_libdir_flag_spec_ld_CXX \
18230     hardcode_libdir_separator_CXX \
18231     hardcode_automatic_CXX \
18232     module_cmds_CXX \
18233     module_expsym_cmds_CXX \
18234     lt_cv_prog_compiler_c_o_CXX \
18235     exclude_expsyms_CXX \
18236     include_expsyms_CXX; do
18237
18238     case $var in
18239     old_archive_cmds_CXX | \
18240     old_archive_from_new_cmds_CXX | \
18241     archive_cmds_CXX | \
18242     archive_expsym_cmds_CXX | \
18243     module_cmds_CXX | \
18244     module_expsym_cmds_CXX | \
18245     old_archive_from_expsyms_cmds_CXX | \
18246     export_symbols_cmds_CXX | \
18247     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18248     postinstall_cmds | postuninstall_cmds | \
18249     old_postinstall_cmds | old_postuninstall_cmds | \
18250     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18251       # Double-quote double-evaled strings.
18252       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18253       ;;
18254     *)
18255       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18256       ;;
18257     esac
18258   done
18259
18260   case $lt_echo in
18261   *'\$0 --fallback-echo"')
18262     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18263     ;;
18264   esac
18265
18266 cfgfile="$ofile"
18267
18268   cat <<__EOF__ >> "$cfgfile"
18269 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18270
18271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18272
18273 # Shell to use when invoking shell scripts.
18274 SHELL=$lt_SHELL
18275
18276 # Whether or not to build shared libraries.
18277 build_libtool_libs=$enable_shared
18278
18279 # Whether or not to build static libraries.
18280 build_old_libs=$enable_static
18281
18282 # Whether or not to add -lc for building shared libraries.
18283 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18284
18285 # Whether or not to disallow shared libs when runtime libs are static
18286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18287
18288 # Whether or not to optimize for fast installation.
18289 fast_install=$enable_fast_install
18290
18291 # The host system.
18292 host_alias=$host_alias
18293 host=$host
18294
18295 # An echo program that does not interpret backslashes.
18296 echo=$lt_echo
18297
18298 # The archiver.
18299 AR=$lt_AR
18300 AR_FLAGS=$lt_AR_FLAGS
18301
18302 # A C compiler.
18303 LTCC=$lt_LTCC
18304
18305 # A language-specific compiler.
18306 CC=$lt_compiler_CXX
18307
18308 # Is the compiler the GNU C compiler?
18309 with_gcc=$GCC_CXX
18310
18311 # An ERE matcher.
18312 EGREP=$lt_EGREP
18313
18314 # The linker used to build libraries.
18315 LD=$lt_LD_CXX
18316
18317 # Whether we need hard or soft links.
18318 LN_S=$lt_LN_S
18319
18320 # A BSD-compatible nm program.
18321 NM=$lt_NM
18322
18323 # A symbol stripping program
18324 STRIP=$lt_STRIP
18325
18326 # Used to examine libraries when file_magic_cmd begins "file"
18327 MAGIC_CMD=$MAGIC_CMD
18328
18329 # Used on cygwin: DLL creation program.
18330 DLLTOOL="$DLLTOOL"
18331
18332 # Used on cygwin: object dumper.
18333 OBJDUMP="$OBJDUMP"
18334
18335 # Used on cygwin: assembler.
18336 AS="$AS"
18337
18338 # The name of the directory that contains temporary libtool files.
18339 objdir=$objdir
18340
18341 # How to create reloadable object files.
18342 reload_flag=$lt_reload_flag
18343 reload_cmds=$lt_reload_cmds
18344
18345 # How to pass a linker flag through the compiler.
18346 wl=$lt_lt_prog_compiler_wl_CXX
18347
18348 # Object file suffix (normally "o").
18349 objext="$ac_objext"
18350
18351 # Old archive suffix (normally "a").
18352 libext="$libext"
18353
18354 # Shared library suffix (normally ".so").
18355 shrext_cmds='$shrext_cmds'
18356
18357 # Executable file suffix (normally "").
18358 exeext="$exeext"
18359
18360 # Additional compiler flags for building library objects.
18361 pic_flag=$lt_lt_prog_compiler_pic_CXX
18362 pic_mode=$pic_mode
18363
18364 # What is the maximum length of a command?
18365 max_cmd_len=$lt_cv_sys_max_cmd_len
18366
18367 # Does compiler simultaneously support -c and -o options?
18368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18369
18370 # Must we lock files when doing compilation ?
18371 need_locks=$lt_need_locks
18372
18373 # Do we need the lib prefix for modules?
18374 need_lib_prefix=$need_lib_prefix
18375
18376 # Do we need a version for libraries?
18377 need_version=$need_version
18378
18379 # Whether dlopen is supported.
18380 dlopen_support=$enable_dlopen
18381
18382 # Whether dlopen of programs is supported.
18383 dlopen_self=$enable_dlopen_self
18384
18385 # Whether dlopen of statically linked programs is supported.
18386 dlopen_self_static=$enable_dlopen_self_static
18387
18388 # Compiler flag to prevent dynamic linking.
18389 link_static_flag=$lt_lt_prog_compiler_static_CXX
18390
18391 # Compiler flag to turn off builtin functions.
18392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18393
18394 # Compiler flag to allow reflexive dlopens.
18395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18396
18397 # Compiler flag to generate shared objects directly from archives.
18398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18399
18400 # Compiler flag to generate thread-safe objects.
18401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18402
18403 # Library versioning type.
18404 version_type=$version_type
18405
18406 # Format of library name prefix.
18407 libname_spec=$lt_libname_spec
18408
18409 # List of archive names.  First name is the real one, the rest are links.
18410 # The last name is the one that the linker finds with -lNAME.
18411 library_names_spec=$lt_library_names_spec
18412
18413 # The coded name of the library, if different from the real name.
18414 soname_spec=$lt_soname_spec
18415
18416 # Commands used to build and install an old-style archive.
18417 RANLIB=$lt_RANLIB
18418 old_archive_cmds=$lt_old_archive_cmds_CXX
18419 old_postinstall_cmds=$lt_old_postinstall_cmds
18420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18421
18422 # Create an old-style archive from a shared archive.
18423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18424
18425 # Create a temporary old-style archive to link instead of a shared archive.
18426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18427
18428 # Commands used to build and install a shared archive.
18429 archive_cmds=$lt_archive_cmds_CXX
18430 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18431 postinstall_cmds=$lt_postinstall_cmds
18432 postuninstall_cmds=$lt_postuninstall_cmds
18433
18434 # Commands used to build a loadable module (assumed same as above if empty)
18435 module_cmds=$lt_module_cmds_CXX
18436 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18437
18438 # Commands to strip libraries.
18439 old_striplib=$lt_old_striplib
18440 striplib=$lt_striplib
18441
18442 # Dependencies to place before the objects being linked to create a
18443 # shared library.
18444 predep_objects=$lt_predep_objects_CXX
18445
18446 # Dependencies to place after the objects being linked to create a
18447 # shared library.
18448 postdep_objects=$lt_postdep_objects_CXX
18449
18450 # Dependencies to place before the objects being linked to create a
18451 # shared library.
18452 predeps=$lt_predeps_CXX
18453
18454 # Dependencies to place after the objects being linked to create a
18455 # shared library.
18456 postdeps=$lt_postdeps_CXX
18457
18458 # The library search path used internally by the compiler when linking
18459 # a shared library.
18460 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18461
18462 # Method to check whether dependent libraries are shared objects.
18463 deplibs_check_method=$lt_deplibs_check_method
18464
18465 # Command to use when deplibs_check_method == file_magic.
18466 file_magic_cmd=$lt_file_magic_cmd
18467
18468 # Flag that allows shared libraries with undefined symbols to be built.
18469 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18470
18471 # Flag that forces no undefined symbols.
18472 no_undefined_flag=$lt_no_undefined_flag_CXX
18473
18474 # Commands used to finish a libtool library installation in a directory.
18475 finish_cmds=$lt_finish_cmds
18476
18477 # Same as above, but a single script fragment to be evaled but not shown.
18478 finish_eval=$lt_finish_eval
18479
18480 # Take the output of nm and produce a listing of raw symbols and C names.
18481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18482
18483 # Transform the output of nm in a proper C declaration
18484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18485
18486 # Transform the output of nm in a C name address pair
18487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18488
18489 # This is the shared library runtime path variable.
18490 runpath_var=$runpath_var
18491
18492 # This is the shared library path variable.
18493 shlibpath_var=$shlibpath_var
18494
18495 # Is shlibpath searched before the hard-coded library search path?
18496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18497
18498 # How to hardcode a shared library path into an executable.
18499 hardcode_action=$hardcode_action_CXX
18500
18501 # Whether we should hardcode library paths into libraries.
18502 hardcode_into_libs=$hardcode_into_libs
18503
18504 # Flag to hardcode \$libdir into a binary during linking.
18505 # This must work even if \$libdir does not exist.
18506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18507
18508 # If ld is used when linking, flag to hardcode \$libdir into
18509 # a binary during linking. This must work even if \$libdir does
18510 # not exist.
18511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18512
18513 # Whether we need a single -rpath flag with a separated argument.
18514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18515
18516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18517 # resulting binary.
18518 hardcode_direct=$hardcode_direct_CXX
18519
18520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18521 # resulting binary.
18522 hardcode_minus_L=$hardcode_minus_L_CXX
18523
18524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18525 # the resulting binary.
18526 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18527
18528 # Set to yes if building a shared library automatically hardcodes DIR into the library
18529 # and all subsequent libraries and executables linked against it.
18530 hardcode_automatic=$hardcode_automatic_CXX
18531
18532 # Variables whose values should be saved in libtool wrapper scripts and
18533 # restored at relink time.
18534 variables_saved_for_relink="$variables_saved_for_relink"
18535
18536 # Whether libtool must link a program against all its dependency libraries.
18537 link_all_deplibs=$link_all_deplibs_CXX
18538
18539 # Compile-time system search path for libraries
18540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18541
18542 # Run-time system search path for libraries
18543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18544
18545 # Fix the shell variable \$srcfile for the compiler.
18546 fix_srcfile_path="$fix_srcfile_path_CXX"
18547
18548 # Set to yes if exported symbols are required.
18549 always_export_symbols=$always_export_symbols_CXX
18550
18551 # The commands to list exported symbols.
18552 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18553
18554 # The commands to extract the exported symbol list from a shared archive.
18555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18556
18557 # Symbols that should not be listed in the preloaded symbols.
18558 exclude_expsyms=$lt_exclude_expsyms_CXX
18559
18560 # Symbols that must always be exported.
18561 include_expsyms=$lt_include_expsyms_CXX
18562
18563 # ### END LIBTOOL TAG CONFIG: $tagname
18564
18565 __EOF__
18566
18567
18568 else
18569   # If there is no Makefile yet, we rely on a make rule to execute
18570   # `config.status --recheck' to rerun these tests and create the
18571   # libtool script then.
18572   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18573   if test -f "$ltmain_in"; then
18574     test -f Makefile && make "$ltmain"
18575   fi
18576 fi
18577
18578
18579 ac_ext=c
18580 ac_cpp='$CPP $CPPFLAGS'
18581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18584
18585 CC=$lt_save_CC
18586 LDCXX=$LD
18587 LD=$lt_save_LD
18588 GCC=$lt_save_GCC
18589 with_gnu_ldcxx=$with_gnu_ld
18590 with_gnu_ld=$lt_save_with_gnu_ld
18591 lt_cv_path_LDCXX=$lt_cv_path_LD
18592 lt_cv_path_LD=$lt_save_path_LD
18593 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18594 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18595
18596         else
18597           tagname=""
18598         fi
18599         ;;
18600
18601       F77)
18602         if test -n "$F77" && test "X$F77" != "Xno"; then
18603
18604 ac_ext=f
18605 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18606 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18608
18609
18610 archive_cmds_need_lc_F77=no
18611 allow_undefined_flag_F77=
18612 always_export_symbols_F77=no
18613 archive_expsym_cmds_F77=
18614 export_dynamic_flag_spec_F77=
18615 hardcode_direct_F77=no
18616 hardcode_libdir_flag_spec_F77=
18617 hardcode_libdir_flag_spec_ld_F77=
18618 hardcode_libdir_separator_F77=
18619 hardcode_minus_L_F77=no
18620 hardcode_automatic_F77=no
18621 module_cmds_F77=
18622 module_expsym_cmds_F77=
18623 link_all_deplibs_F77=unknown
18624 old_archive_cmds_F77=$old_archive_cmds
18625 no_undefined_flag_F77=
18626 whole_archive_flag_spec_F77=
18627 enable_shared_with_static_runtimes_F77=no
18628
18629 # Source file extension for f77 test sources.
18630 ac_ext=f
18631
18632 # Object file extension for compiled f77 test sources.
18633 objext=o
18634 objext_F77=$objext
18635
18636 # Code to be used in simple compile tests
18637 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18638
18639 # Code to be used in simple link tests
18640 lt_simple_link_test_code="      program t\n      end\n"
18641
18642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18643
18644 # If no C compiler was specified, use CC.
18645 LTCC=${LTCC-"$CC"}
18646
18647 # Allow CC to be a program name with arguments.
18648 compiler=$CC
18649
18650
18651 # Allow CC to be a program name with arguments.
18652 lt_save_CC="$CC"
18653 CC=${F77-"f77"}
18654 compiler=$CC
18655 compiler_F77=$CC
18656 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18657
18658 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18659 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18660 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18661 echo "${ECHO_T}$can_build_shared" >&6
18662
18663 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18664 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18665 test "$can_build_shared" = "no" && enable_shared=no
18666
18667 # On AIX, shared libraries and static libraries use the same namespace, and
18668 # are all built from PIC.
18669 case "$host_os" in
18670 aix3*)
18671   test "$enable_shared" = yes && enable_static=no
18672   if test -n "$RANLIB"; then
18673     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18674     postinstall_cmds='$RANLIB $lib'
18675   fi
18676   ;;
18677 aix4* | aix5*)
18678   test "$enable_shared" = yes && enable_static=no
18679   ;;
18680 esac
18681 echo "$as_me:$LINENO: result: $enable_shared" >&5
18682 echo "${ECHO_T}$enable_shared" >&6
18683
18684 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18685 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18686 # Make sure either enable_shared or enable_static is yes.
18687 test "$enable_shared" = yes || enable_static=yes
18688 echo "$as_me:$LINENO: result: $enable_static" >&5
18689 echo "${ECHO_T}$enable_static" >&6
18690
18691 test "$ld_shlibs_F77" = no && can_build_shared=no
18692
18693 GCC_F77="$G77"
18694 LD_F77="$LD"
18695
18696 lt_prog_compiler_wl_F77=
18697 lt_prog_compiler_pic_F77=
18698 lt_prog_compiler_static_F77=
18699
18700 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18701 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18702
18703   if test "$GCC" = yes; then
18704     lt_prog_compiler_wl_F77='-Wl,'
18705     lt_prog_compiler_static_F77='-static'
18706
18707     case $host_os in
18708       aix*)
18709       # All AIX code is PIC.
18710       if test "$host_cpu" = ia64; then
18711         # AIX 5 now supports IA64 processor
18712         lt_prog_compiler_static_F77='-Bstatic'
18713       fi
18714       ;;
18715
18716     amigaos*)
18717       # FIXME: we need at least 68020 code to build shared libraries, but
18718       # adding the `-m68020' flag to GCC prevents building anything better,
18719       # like `-m68040'.
18720       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18721       ;;
18722
18723     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18724       # PIC is the default for these OSes.
18725       ;;
18726
18727     mingw* | pw32* | os2*)
18728       # This hack is so that the source file can tell whether it is being
18729       # built for inclusion in a dll (and should export symbols for example).
18730       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18731       ;;
18732
18733     darwin* | rhapsody*)
18734       # PIC is the default on this platform
18735       # Common symbols not allowed in MH_DYLIB files
18736       lt_prog_compiler_pic_F77='-fno-common'
18737       ;;
18738
18739     msdosdjgpp*)
18740       # Just because we use GCC doesn't mean we suddenly get shared libraries
18741       # on systems that don't support them.
18742       lt_prog_compiler_can_build_shared_F77=no
18743       enable_shared=no
18744       ;;
18745
18746     sysv4*MP*)
18747       if test -d /usr/nec; then
18748         lt_prog_compiler_pic_F77=-Kconform_pic
18749       fi
18750       ;;
18751
18752     hpux*)
18753       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18754       # not for PA HP-UX.
18755       case "$host_cpu" in
18756       hppa*64*|ia64*)
18757         # +Z the default
18758         ;;
18759       *)
18760         lt_prog_compiler_pic_F77='-fPIC'
18761         ;;
18762       esac
18763       ;;
18764
18765     *)
18766       lt_prog_compiler_pic_F77='-fPIC'
18767       ;;
18768     esac
18769   else
18770     # PORTME Check for flag to pass linker flags through the system compiler.
18771     case $host_os in
18772     aix*)
18773       lt_prog_compiler_wl_F77='-Wl,'
18774       if test "$host_cpu" = ia64; then
18775         # AIX 5 now supports IA64 processor
18776         lt_prog_compiler_static_F77='-Bstatic'
18777       else
18778         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18779       fi
18780       ;;
18781       darwin*)
18782         # PIC is the default on this platform
18783         # Common symbols not allowed in MH_DYLIB files
18784        case "$cc_basename" in
18785          xlc*)
18786          lt_prog_compiler_pic_F77='-qnocommon'
18787          lt_prog_compiler_wl_F77='-Wl,'
18788          ;;
18789        esac
18790        ;;
18791
18792     mingw* | pw32* | os2*)
18793       # This hack is so that the source file can tell whether it is being
18794       # built for inclusion in a dll (and should export symbols for example).
18795       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18796       ;;
18797
18798     hpux9* | hpux10* | hpux11*)
18799       lt_prog_compiler_wl_F77='-Wl,'
18800       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18801       # not for PA HP-UX.
18802       case "$host_cpu" in
18803       hppa*64*|ia64*)
18804         # +Z the default
18805         ;;
18806       *)
18807         lt_prog_compiler_pic_F77='+Z'
18808         ;;
18809       esac
18810       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18811       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18812       ;;
18813
18814     irix5* | irix6* | nonstopux*)
18815       lt_prog_compiler_wl_F77='-Wl,'
18816       # PIC (with -KPIC) is the default.
18817       lt_prog_compiler_static_F77='-non_shared'
18818       ;;
18819
18820     newsos6)
18821       lt_prog_compiler_pic_F77='-KPIC'
18822       lt_prog_compiler_static_F77='-Bstatic'
18823       ;;
18824
18825     linux*)
18826       case $CC in
18827       icc* | ecc*)
18828         lt_prog_compiler_wl_F77='-Wl,'
18829         lt_prog_compiler_pic_F77='-KPIC'
18830         lt_prog_compiler_static_F77='-static'
18831         ;;
18832       ccc*)
18833         lt_prog_compiler_wl_F77='-Wl,'
18834         # All Alpha code is PIC.
18835         lt_prog_compiler_static_F77='-non_shared'
18836         ;;
18837       esac
18838       ;;
18839
18840     osf3* | osf4* | osf5*)
18841       lt_prog_compiler_wl_F77='-Wl,'
18842       # All OSF/1 code is PIC.
18843       lt_prog_compiler_static_F77='-non_shared'
18844       ;;
18845
18846     sco3.2v5*)
18847       lt_prog_compiler_pic_F77='-Kpic'
18848       lt_prog_compiler_static_F77='-dn'
18849       ;;
18850
18851     solaris*)
18852       lt_prog_compiler_wl_F77='-Wl,'
18853       lt_prog_compiler_pic_F77='-KPIC'
18854       lt_prog_compiler_static_F77='-Bstatic'
18855       ;;
18856
18857     sunos4*)
18858       lt_prog_compiler_wl_F77='-Qoption ld '
18859       lt_prog_compiler_pic_F77='-PIC'
18860       lt_prog_compiler_static_F77='-Bstatic'
18861       ;;
18862
18863     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18864       lt_prog_compiler_wl_F77='-Wl,'
18865       lt_prog_compiler_pic_F77='-KPIC'
18866       lt_prog_compiler_static_F77='-Bstatic'
18867       ;;
18868
18869     sysv4*MP*)
18870       if test -d /usr/nec ;then
18871         lt_prog_compiler_pic_F77='-Kconform_pic'
18872         lt_prog_compiler_static_F77='-Bstatic'
18873       fi
18874       ;;
18875
18876     uts4*)
18877       lt_prog_compiler_pic_F77='-pic'
18878       lt_prog_compiler_static_F77='-Bstatic'
18879       ;;
18880
18881     *)
18882       lt_prog_compiler_can_build_shared_F77=no
18883       ;;
18884     esac
18885   fi
18886
18887 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18888 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18889
18890 #
18891 # Check to make sure the PIC flag actually works.
18892 #
18893 if test -n "$lt_prog_compiler_pic_F77"; then
18894
18895 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18896 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18897 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900   lt_prog_compiler_pic_works_F77=no
18901   ac_outfile=conftest.$ac_objext
18902    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18903    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18904    # Insert the option either (1) after the last *FLAGS variable, or
18905    # (2) before a word containing "conftest.", or (3) at the end.
18906    # Note that $ac_compile itself does not contain backslashes and begins
18907    # with a dollar sign (not a hyphen), so the echo should work correctly.
18908    # The option is referenced via a variable to avoid confusing sed.
18909    lt_compile=`echo "$ac_compile" | $SED \
18910    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18912    -e 's:$: $lt_compiler_flag:'`
18913    (eval echo "\"\$as_me:18913: $lt_compile\"" >&5)
18914    (eval "$lt_compile" 2>conftest.err)
18915    ac_status=$?
18916    cat conftest.err >&5
18917    echo "$as_me:18917: \$? = $ac_status" >&5
18918    if (exit $ac_status) && test -s "$ac_outfile"; then
18919      # The compiler can only warn and ignore the option if not recognized
18920      # So say no if there are warnings
18921      if test ! -s conftest.err; then
18922        lt_prog_compiler_pic_works_F77=yes
18923      fi
18924    fi
18925    $rm conftest*
18926
18927 fi
18928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18929 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18930
18931 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18932     case $lt_prog_compiler_pic_F77 in
18933      "" | " "*) ;;
18934      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18935      esac
18936 else
18937     lt_prog_compiler_pic_F77=
18938      lt_prog_compiler_can_build_shared_F77=no
18939 fi
18940
18941 fi
18942 case "$host_os" in
18943   # For platforms which do not support PIC, -DPIC is meaningless:
18944   *djgpp*)
18945     lt_prog_compiler_pic_F77=
18946     ;;
18947   *)
18948     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18949     ;;
18950 esac
18951
18952 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18953 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18954 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18955   echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957   lt_cv_prog_compiler_c_o_F77=no
18958    $rm -r conftest 2>/dev/null
18959    mkdir conftest
18960    cd conftest
18961    mkdir out
18962    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18963
18964    lt_compiler_flag="-o out/conftest2.$ac_objext"
18965    # Insert the option either (1) after the last *FLAGS variable, or
18966    # (2) before a word containing "conftest.", or (3) at the end.
18967    # Note that $ac_compile itself does not contain backslashes and begins
18968    # with a dollar sign (not a hyphen), so the echo should work correctly.
18969    lt_compile=`echo "$ac_compile" | $SED \
18970    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18972    -e 's:$: $lt_compiler_flag:'`
18973    (eval echo "\"\$as_me:18973: $lt_compile\"" >&5)
18974    (eval "$lt_compile" 2>out/conftest.err)
18975    ac_status=$?
18976    cat out/conftest.err >&5
18977    echo "$as_me:18977: \$? = $ac_status" >&5
18978    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18979    then
18980      # The compiler can only warn and ignore the option if not recognized
18981      # So say no if there are warnings
18982      if test ! -s out/conftest.err; then
18983        lt_cv_prog_compiler_c_o_F77=yes
18984      fi
18985    fi
18986    chmod u+w .
18987    $rm conftest*
18988    # SGI C++ compiler will create directory out/ii_files/ for
18989    # template instantiation
18990    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18991    $rm out/* && rmdir out
18992    cd ..
18993    rmdir conftest
18994    $rm conftest*
18995
18996 fi
18997 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18998 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18999
19000
19001 hard_links="nottested"
19002 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19003   # do not overwrite the value of need_locks provided by the user
19004   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19005 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19006   hard_links=yes
19007   $rm conftest*
19008   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19009   touch conftest.a
19010   ln conftest.a conftest.b 2>&5 || hard_links=no
19011   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19012   echo "$as_me:$LINENO: result: $hard_links" >&5
19013 echo "${ECHO_T}$hard_links" >&6
19014   if test "$hard_links" = no; then
19015     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19016 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19017     need_locks=warn
19018   fi
19019 else
19020   need_locks=no
19021 fi
19022
19023 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19025
19026   runpath_var=
19027   allow_undefined_flag_F77=
19028   enable_shared_with_static_runtimes_F77=no
19029   archive_cmds_F77=
19030   archive_expsym_cmds_F77=
19031   old_archive_From_new_cmds_F77=
19032   old_archive_from_expsyms_cmds_F77=
19033   export_dynamic_flag_spec_F77=
19034   whole_archive_flag_spec_F77=
19035   thread_safe_flag_spec_F77=
19036   hardcode_libdir_flag_spec_F77=
19037   hardcode_libdir_flag_spec_ld_F77=
19038   hardcode_libdir_separator_F77=
19039   hardcode_direct_F77=no
19040   hardcode_minus_L_F77=no
19041   hardcode_shlibpath_var_F77=unsupported
19042   link_all_deplibs_F77=unknown
19043   hardcode_automatic_F77=no
19044   module_cmds_F77=
19045   module_expsym_cmds_F77=
19046   always_export_symbols_F77=no
19047   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19048   # include_expsyms should be a list of space-separated symbols to be *always*
19049   # included in the symbol list
19050   include_expsyms_F77=
19051   # exclude_expsyms can be an extended regexp of symbols to exclude
19052   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19053   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19054   # as well as any symbol that contains `d'.
19055   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19056   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19057   # platforms (ab)use it in PIC code, but their linkers get confused if
19058   # the symbol is explicitly referenced.  Since portable code cannot
19059   # rely on this symbol name, it's probably fine to never include it in
19060   # preloaded symbol tables.
19061   extract_expsyms_cmds=
19062
19063   case $host_os in
19064   cygwin* | mingw* | pw32*)
19065     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19066     # When not using gcc, we currently assume that we are using
19067     # Microsoft Visual C++.
19068     if test "$GCC" != yes; then
19069       with_gnu_ld=no
19070     fi
19071     ;;
19072   openbsd*)
19073     with_gnu_ld=no
19074     ;;
19075   esac
19076
19077   ld_shlibs_F77=yes
19078   if test "$with_gnu_ld" = yes; then
19079     # If archive_cmds runs LD, not CC, wlarc should be empty
19080     wlarc='${wl}'
19081
19082     # See if GNU ld supports shared libraries.
19083     case $host_os in
19084     aix3* | aix4* | aix5*)
19085       # On AIX/PPC, the GNU linker is very broken
19086       if test "$host_cpu" != ia64; then
19087         ld_shlibs_F77=no
19088         cat <<EOF 1>&2
19089
19090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19091 *** to be unable to reliably create shared libraries on AIX.
19092 *** Therefore, libtool is disabling shared libraries support.  If you
19093 *** really care for shared libraries, you may want to modify your PATH
19094 *** so that a non-GNU linker is found, and then restart.
19095
19096 EOF
19097       fi
19098       ;;
19099
19100     amigaos*)
19101       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)'
19102       hardcode_libdir_flag_spec_F77='-L$libdir'
19103       hardcode_minus_L_F77=yes
19104
19105       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19106       # that the semantics of dynamic libraries on AmigaOS, at least up
19107       # to version 4, is to share data among multiple programs linked
19108       # with the same dynamic library.  Since this doesn't match the
19109       # behavior of shared libraries on other platforms, we can't use
19110       # them.
19111       ld_shlibs_F77=no
19112       ;;
19113
19114     beos*)
19115       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19116         allow_undefined_flag_F77=unsupported
19117         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19118         # support --undefined.  This deserves some investigation.  FIXME
19119         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19120       else
19121         ld_shlibs_F77=no
19122       fi
19123       ;;
19124
19125     cygwin* | mingw* | pw32*)
19126       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19127       # as there is no search path for DLLs.
19128       hardcode_libdir_flag_spec_F77='-L$libdir'
19129       allow_undefined_flag_F77=unsupported
19130       always_export_symbols_F77=no
19131       enable_shared_with_static_runtimes_F77=yes
19132       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19133
19134       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19135         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19136         # If the export-symbols file already is a .def file (1st line
19137         # is EXPORTS), use it as is; otherwise, prepend...
19138         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19139           cp $export_symbols $output_objdir/$soname.def;
19140         else
19141           echo EXPORTS > $output_objdir/$soname.def;
19142           cat $export_symbols >> $output_objdir/$soname.def;
19143         fi~
19144         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19145       else
19146         ld_shlibs=no
19147       fi
19148       ;;
19149
19150     netbsd*)
19151       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19152         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19153         wlarc=
19154       else
19155         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19157       fi
19158       ;;
19159
19160     solaris* | sysv5*)
19161       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19162         ld_shlibs_F77=no
19163         cat <<EOF 1>&2
19164
19165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19166 *** create shared libraries on Solaris systems.  Therefore, libtool
19167 *** is disabling shared libraries support.  We urge you to upgrade GNU
19168 *** binutils to release 2.9.1 or newer.  Another option is to modify
19169 *** your PATH or compiler configuration so that the native linker is
19170 *** used, and then restart.
19171
19172 EOF
19173       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19174         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19176       else
19177         ld_shlibs_F77=no
19178       fi
19179       ;;
19180
19181     sunos4*)
19182       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19183       wlarc=
19184       hardcode_direct_F77=yes
19185       hardcode_shlibpath_var_F77=no
19186       ;;
19187
19188   linux*)
19189     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19190         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191         archive_cmds_F77="$tmp_archive_cmds"
19192       supports_anon_versioning=no
19193       case `$LD -v 2>/dev/null` in
19194         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19195         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19196         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19197         *\ 2.11.*) ;; # other 2.11 versions
19198         *) supports_anon_versioning=yes ;;
19199       esac
19200       if test $supports_anon_versioning = yes; then
19201         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19203 $echo "local: *; };" >> $output_objdir/$libname.ver~
19204         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19205       else
19206         archive_expsym_cmds_F77="$tmp_archive_cmds"
19207       fi
19208     else
19209       ld_shlibs_F77=no
19210     fi
19211     ;;
19212
19213     *)
19214       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19215         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19217       else
19218         ld_shlibs_F77=no
19219       fi
19220       ;;
19221     esac
19222
19223     if test "$ld_shlibs_F77" = yes; then
19224       runpath_var=LD_RUN_PATH
19225       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19226       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19227       # ancient GNU ld didn't support --whole-archive et. al.
19228       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19229         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19230       else
19231         whole_archive_flag_spec_F77=
19232       fi
19233     fi
19234   else
19235     # PORTME fill in a description of your system's linker (not GNU ld)
19236     case $host_os in
19237     aix3*)
19238       allow_undefined_flag_F77=unsupported
19239       always_export_symbols_F77=yes
19240       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'
19241       # Note: this linker hardcodes the directories in LIBPATH if there
19242       # are no directories specified by -L.
19243       hardcode_minus_L_F77=yes
19244       if test "$GCC" = yes && test -z "$link_static_flag"; then
19245         # Neither direct hardcoding nor static linking is supported with a
19246         # broken collect2.
19247         hardcode_direct_F77=unsupported
19248       fi
19249       ;;
19250
19251     aix4* | aix5*)
19252       if test "$host_cpu" = ia64; then
19253         # On IA64, the linker does run time linking by default, so we don't
19254         # have to do anything special.
19255         aix_use_runtimelinking=no
19256         exp_sym_flag='-Bexport'
19257         no_entry_flag=""
19258       else
19259         # If we're using GNU nm, then we don't want the "-C" option.
19260         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19261         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19262           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'
19263         else
19264           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'
19265         fi
19266         aix_use_runtimelinking=no
19267
19268         # Test if we are trying to use run time linking or normal
19269         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19270         # need to do runtime linking.
19271         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19272           for ld_flag in $LDFLAGS; do
19273           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19274             aix_use_runtimelinking=yes
19275             break
19276           fi
19277           done
19278         esac
19279
19280         exp_sym_flag='-bexport'
19281         no_entry_flag='-bnoentry'
19282       fi
19283
19284       # When large executables or shared objects are built, AIX ld can
19285       # have problems creating the table of contents.  If linking a library
19286       # or program results in "error TOC overflow" add -mminimal-toc to
19287       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19288       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19289
19290       archive_cmds_F77=''
19291       hardcode_direct_F77=yes
19292       hardcode_libdir_separator_F77=':'
19293       link_all_deplibs_F77=yes
19294
19295       if test "$GCC" = yes; then
19296         case $host_os in aix4.012|aix4.012.*)
19297         # We only want to do this on AIX 4.2 and lower, the check
19298         # below for broken collect2 doesn't work under 4.3+
19299           collect2name=`${CC} -print-prog-name=collect2`
19300           if test -f "$collect2name" && \
19301            strings "$collect2name" | grep resolve_lib_name >/dev/null
19302           then
19303           # We have reworked collect2
19304           hardcode_direct_F77=yes
19305           else
19306           # We have old collect2
19307           hardcode_direct_F77=unsupported
19308           # It fails to find uninstalled libraries when the uninstalled
19309           # path is not listed in the libpath.  Setting hardcode_minus_L
19310           # to unsupported forces relinking
19311           hardcode_minus_L_F77=yes
19312           hardcode_libdir_flag_spec_F77='-L$libdir'
19313           hardcode_libdir_separator_F77=
19314           fi
19315         esac
19316         shared_flag='-shared'
19317       else
19318         # not using gcc
19319         if test "$host_cpu" = ia64; then
19320         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19321         # chokes on -Wl,-G. The following line is correct:
19322           shared_flag='-G'
19323         else
19324         if test "$aix_use_runtimelinking" = yes; then
19325             shared_flag='${wl}-G'
19326           else
19327             shared_flag='${wl}-bM:SRE'
19328         fi
19329         fi
19330       fi
19331
19332       # It seems that -bexpall does not export symbols beginning with
19333       # underscore (_), so it is better to generate a list of symbols to export.
19334       always_export_symbols_F77=yes
19335       if test "$aix_use_runtimelinking" = yes; then
19336         # Warning - without using the other runtime loading flags (-brtl),
19337         # -berok will link without error, but may produce a broken library.
19338         allow_undefined_flag_F77='-berok'
19339        # Determine the default libpath from the value encoded in an empty executable.
19340        cat >conftest.$ac_ext <<_ACEOF
19341       program main
19342
19343       end
19344 _ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19347   (eval $ac_link) 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } &&
19354          { ac_try='test -z "$ac_f77_werror_flag"
19355                          || test ! -s conftest.err'
19356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357   (eval $ac_try) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; } &&
19361          { ac_try='test -s conftest$ac_exeext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367
19368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19369 }'`
19370 # Check for a 64-bit object if we didn't find anything.
19371 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; }
19372 }'`; fi
19373 else
19374   echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377 fi
19378 rm -f conftest.err conftest.$ac_objext \
19379       conftest$ac_exeext conftest.$ac_ext
19380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19381
19382        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19383         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"
19384        else
19385         if test "$host_cpu" = ia64; then
19386           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19387           allow_undefined_flag_F77="-z nodefs"
19388           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"
19389         else
19390          # Determine the default libpath from the value encoded in an empty executable.
19391          cat >conftest.$ac_ext <<_ACEOF
19392       program main
19393
19394       end
19395 _ACEOF
19396 rm -f conftest.$ac_objext conftest$ac_exeext
19397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19398   (eval $ac_link) 2>conftest.er1
19399   ac_status=$?
19400   grep -v '^ *+' conftest.er1 >conftest.err
19401   rm -f conftest.er1
19402   cat conftest.err >&5
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); } &&
19405          { ac_try='test -z "$ac_f77_werror_flag"
19406                          || test ! -s conftest.err'
19407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408   (eval $ac_try) 2>&5
19409   ac_status=$?
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); }; } &&
19412          { ac_try='test -s conftest$ac_exeext'
19413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414   (eval $ac_try) 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; }; then
19418
19419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19420 }'`
19421 # Check for a 64-bit object if we didn't find anything.
19422 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; }
19423 }'`; fi
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 fi
19429 rm -f conftest.err conftest.$ac_objext \
19430       conftest$ac_exeext conftest.$ac_ext
19431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19432
19433          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19434           # Warning - without using the other run time loading flags,
19435           # -berok will link without error, but may produce a broken library.
19436           no_undefined_flag_F77=' ${wl}-bernotok'
19437           allow_undefined_flag_F77=' ${wl}-berok'
19438           # -bexpall does not export symbols beginning with underscore (_)
19439           always_export_symbols_F77=yes
19440           # Exported symbols can be pulled into shared objects from archives
19441           whole_archive_flag_spec_F77=' '
19442           archive_cmds_need_lc_F77=yes
19443           # This is similar to how AIX traditionally builds it's shared libraries.
19444           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'
19445         fi
19446       fi
19447       ;;
19448
19449     amigaos*)
19450       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)'
19451       hardcode_libdir_flag_spec_F77='-L$libdir'
19452       hardcode_minus_L_F77=yes
19453       # see comment about different semantics on the GNU ld section
19454       ld_shlibs_F77=no
19455       ;;
19456
19457     bsdi[45]*)
19458       export_dynamic_flag_spec_F77=-rdynamic
19459       ;;
19460
19461     cygwin* | mingw* | pw32*)
19462       # When not using gcc, we currently assume that we are using
19463       # Microsoft Visual C++.
19464       # hardcode_libdir_flag_spec is actually meaningless, as there is
19465       # no search path for DLLs.
19466       hardcode_libdir_flag_spec_F77=' '
19467       allow_undefined_flag_F77=unsupported
19468       # Tell ltmain to make .lib files, not .a files.
19469       libext=lib
19470       # Tell ltmain to make .dll files, not .so files.
19471       shrext_cmds=".dll"
19472       # FIXME: Setting linknames here is a bad hack.
19473       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19474       # The linker will automatically build a .lib file if we build a DLL.
19475       old_archive_From_new_cmds_F77='true'
19476       # FIXME: Should let the user specify the lib program.
19477       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19478       fix_srcfile_path='`cygpath -w "$srcfile"`'
19479       enable_shared_with_static_runtimes_F77=yes
19480       ;;
19481
19482     darwin* | rhapsody*)
19483       case "$host_os" in
19484         rhapsody* | darwin1.[012])
19485          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19486          ;;
19487        *) # Darwin 1.3 on
19488          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19489            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19490          else
19491            case ${MACOSX_DEPLOYMENT_TARGET} in
19492              10.[012])
19493                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19494                ;;
19495              10.*)
19496                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19497                ;;
19498            esac
19499          fi
19500          ;;
19501       esac
19502       archive_cmds_need_lc_F77=no
19503       hardcode_direct_F77=no
19504       hardcode_automatic_F77=yes
19505       hardcode_shlibpath_var_F77=unsupported
19506       whole_archive_flag_spec_F77=''
19507       link_all_deplibs_F77=yes
19508     if test "$GCC" = yes ; then
19509         output_verbose_link_cmd='echo'
19510         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19511       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19512       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19513       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}'
19514       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}'
19515     else
19516       case "$cc_basename" in
19517         xlc*)
19518          output_verbose_link_cmd='echo'
19519          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19520          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19521           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19522          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}'
19523           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}'
19524           ;;
19525        *)
19526          ld_shlibs_F77=no
19527           ;;
19528       esac
19529     fi
19530       ;;
19531
19532     dgux*)
19533       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19534       hardcode_libdir_flag_spec_F77='-L$libdir'
19535       hardcode_shlibpath_var_F77=no
19536       ;;
19537
19538     freebsd1*)
19539       ld_shlibs_F77=no
19540       ;;
19541
19542     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19543     # support.  Future versions do this automatically, but an explicit c++rt0.o
19544     # does not break anything, and helps significantly (at the cost of a little
19545     # extra space).
19546     freebsd2.2*)
19547       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19548       hardcode_libdir_flag_spec_F77='-R$libdir'
19549       hardcode_direct_F77=yes
19550       hardcode_shlibpath_var_F77=no
19551       ;;
19552
19553     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19554     freebsd2*)
19555       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19556       hardcode_direct_F77=yes
19557       hardcode_minus_L_F77=yes
19558       hardcode_shlibpath_var_F77=no
19559       ;;
19560
19561     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19562     freebsd* | kfreebsd*-gnu)
19563       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19564       hardcode_libdir_flag_spec_F77='-R$libdir'
19565       hardcode_direct_F77=yes
19566       hardcode_shlibpath_var_F77=no
19567       ;;
19568
19569     hpux9*)
19570       if test "$GCC" = yes; then
19571         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'
19572       else
19573         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'
19574       fi
19575       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19576       hardcode_libdir_separator_F77=:
19577       hardcode_direct_F77=yes
19578
19579       # hardcode_minus_L: Not really in the search PATH,
19580       # but as the default location of the library.
19581       hardcode_minus_L_F77=yes
19582       export_dynamic_flag_spec_F77='${wl}-E'
19583       ;;
19584
19585     hpux10* | hpux11*)
19586       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19587         case "$host_cpu" in
19588         hppa*64*|ia64*)
19589           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590           ;;
19591         *)
19592           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19593           ;;
19594         esac
19595       else
19596         case "$host_cpu" in
19597         hppa*64*|ia64*)
19598           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19599           ;;
19600         *)
19601           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19602           ;;
19603         esac
19604       fi
19605       if test "$with_gnu_ld" = no; then
19606         case "$host_cpu" in
19607         hppa*64*)
19608           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19609           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19610           hardcode_libdir_separator_F77=:
19611           hardcode_direct_F77=no
19612           hardcode_shlibpath_var_F77=no
19613           ;;
19614         ia64*)
19615           hardcode_libdir_flag_spec_F77='-L$libdir'
19616           hardcode_direct_F77=no
19617           hardcode_shlibpath_var_F77=no
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         *)
19624           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19625           hardcode_libdir_separator_F77=:
19626           hardcode_direct_F77=yes
19627           export_dynamic_flag_spec_F77='${wl}-E'
19628
19629           # hardcode_minus_L: Not really in the search PATH,
19630           # but as the default location of the library.
19631           hardcode_minus_L_F77=yes
19632           ;;
19633         esac
19634       fi
19635       ;;
19636
19637     irix5* | irix6* | nonstopux*)
19638       if test "$GCC" = yes; then
19639         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'
19640       else
19641         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'
19642         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19643       fi
19644       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19645       hardcode_libdir_separator_F77=:
19646       link_all_deplibs_F77=yes
19647       ;;
19648
19649     netbsd*)
19650       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19651         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19652       else
19653         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19654       fi
19655       hardcode_libdir_flag_spec_F77='-R$libdir'
19656       hardcode_direct_F77=yes
19657       hardcode_shlibpath_var_F77=no
19658       ;;
19659
19660     newsos6)
19661       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19662       hardcode_direct_F77=yes
19663       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19664       hardcode_libdir_separator_F77=:
19665       hardcode_shlibpath_var_F77=no
19666       ;;
19667
19668     openbsd*)
19669       hardcode_direct_F77=yes
19670       hardcode_shlibpath_var_F77=no
19671       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19672         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19673         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19674         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19675         export_dynamic_flag_spec_F77='${wl}-E'
19676       else
19677        case $host_os in
19678          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19679            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19680            hardcode_libdir_flag_spec_F77='-R$libdir'
19681            ;;
19682          *)
19683            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19684            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19685            ;;
19686        esac
19687       fi
19688       ;;
19689
19690     os2*)
19691       hardcode_libdir_flag_spec_F77='-L$libdir'
19692       hardcode_minus_L_F77=yes
19693       allow_undefined_flag_F77=unsupported
19694       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'
19695       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19696       ;;
19697
19698     osf3*)
19699       if test "$GCC" = yes; then
19700         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19701         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'
19702       else
19703         allow_undefined_flag_F77=' -expect_unresolved \*'
19704         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'
19705       fi
19706       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19707       hardcode_libdir_separator_F77=:
19708       ;;
19709
19710     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19711       if test "$GCC" = yes; then
19712         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19713         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'
19714         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19715       else
19716         allow_undefined_flag_F77=' -expect_unresolved \*'
19717         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'
19718         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~
19719         $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'
19720
19721         # Both c and cxx compiler support -rpath directly
19722         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19723       fi
19724       hardcode_libdir_separator_F77=:
19725       ;;
19726
19727     sco3.2v5*)
19728       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19729       hardcode_shlibpath_var_F77=no
19730       export_dynamic_flag_spec_F77='${wl}-Bexport'
19731       runpath_var=LD_RUN_PATH
19732       hardcode_runpath_var=yes
19733       ;;
19734
19735     solaris*)
19736       no_undefined_flag_F77=' -z text'
19737       if test "$GCC" = yes; then
19738         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19739         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19740           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19741       else
19742         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19743         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19744         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19745       fi
19746       hardcode_libdir_flag_spec_F77='-R$libdir'
19747       hardcode_shlibpath_var_F77=no
19748       case $host_os in
19749       solaris2.[0-5] | solaris2.[0-5].*) ;;
19750       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19751         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19752       esac
19753       link_all_deplibs_F77=yes
19754       ;;
19755
19756     sunos4*)
19757       if test "x$host_vendor" = xsequent; then
19758         # Use $CC to link under sequent, because it throws in some extra .o
19759         # files that make .init and .fini sections work.
19760         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19761       else
19762         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19763       fi
19764       hardcode_libdir_flag_spec_F77='-L$libdir'
19765       hardcode_direct_F77=yes
19766       hardcode_minus_L_F77=yes
19767       hardcode_shlibpath_var_F77=no
19768       ;;
19769
19770     sysv4)
19771       case $host_vendor in
19772         sni)
19773           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19774           hardcode_direct_F77=yes # is this really true???
19775         ;;
19776         siemens)
19777           ## LD is ld it makes a PLAMLIB
19778           ## CC just makes a GrossModule.
19779           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19780           reload_cmds_F77='$CC -r -o $output$reload_objs'
19781           hardcode_direct_F77=no
19782         ;;
19783         motorola)
19784           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19786         ;;
19787       esac
19788       runpath_var='LD_RUN_PATH'
19789       hardcode_shlibpath_var_F77=no
19790       ;;
19791
19792     sysv4.3*)
19793       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19794       hardcode_shlibpath_var_F77=no
19795       export_dynamic_flag_spec_F77='-Bexport'
19796       ;;
19797
19798     sysv4*MP*)
19799       if test -d /usr/nec; then
19800         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19801         hardcode_shlibpath_var_F77=no
19802         runpath_var=LD_RUN_PATH
19803         hardcode_runpath_var=yes
19804         ld_shlibs_F77=yes
19805       fi
19806       ;;
19807
19808     sysv4.2uw2*)
19809       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19810       hardcode_direct_F77=yes
19811       hardcode_minus_L_F77=no
19812       hardcode_shlibpath_var_F77=no
19813       hardcode_runpath_var=yes
19814       runpath_var=LD_RUN_PATH
19815       ;;
19816
19817    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19818       no_undefined_flag_F77='${wl}-z ${wl}text'
19819       if test "$GCC" = yes; then
19820         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19821       else
19822         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19823       fi
19824       runpath_var='LD_RUN_PATH'
19825       hardcode_shlibpath_var_F77=no
19826       ;;
19827
19828     sysv5*)
19829       no_undefined_flag_F77=' -z text'
19830       # $CC -shared without GNU ld will not create a library from C++
19831       # object files and a static libstdc++, better avoid it by now
19832       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19834                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19835       hardcode_libdir_flag_spec_F77=
19836       hardcode_shlibpath_var_F77=no
19837       runpath_var='LD_RUN_PATH'
19838       ;;
19839
19840     uts4*)
19841       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842       hardcode_libdir_flag_spec_F77='-L$libdir'
19843       hardcode_shlibpath_var_F77=no
19844       ;;
19845
19846     *)
19847       ld_shlibs_F77=no
19848       ;;
19849     esac
19850   fi
19851
19852 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19853 echo "${ECHO_T}$ld_shlibs_F77" >&6
19854 test "$ld_shlibs_F77" = no && can_build_shared=no
19855
19856 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19857 if test "$GCC" = yes; then
19858   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19859 fi
19860
19861 #
19862 # Do we need to explicitly link libc?
19863 #
19864 case "x$archive_cmds_need_lc_F77" in
19865 x|xyes)
19866   # Assume -lc should be added
19867   archive_cmds_need_lc_F77=yes
19868
19869   if test "$enable_shared" = yes && test "$GCC" = yes; then
19870     case $archive_cmds_F77 in
19871     *'~'*)
19872       # FIXME: we may have to deal with multi-command sequences.
19873       ;;
19874     '$CC '*)
19875       # Test whether the compiler implicitly links with -lc since on some
19876       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19877       # to ld, don't add -lc before -lgcc.
19878       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19880       $rm conftest*
19881       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19882
19883       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884   (eval $ac_compile) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } 2>conftest.err; then
19888         soname=conftest
19889         lib=conftest
19890         libobjs=conftest.$ac_objext
19891         deplibs=
19892         wl=$lt_prog_compiler_wl_F77
19893         compiler_flags=-v
19894         linker_flags=-v
19895         verstring=
19896         output_objdir=.
19897         libname=conftest
19898         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19899         allow_undefined_flag_F77=
19900         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19901   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }
19905         then
19906           archive_cmds_need_lc_F77=no
19907         else
19908           archive_cmds_need_lc_F77=yes
19909         fi
19910         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19911       else
19912         cat conftest.err 1>&5
19913       fi
19914       $rm conftest*
19915       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19916 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19917       ;;
19918     esac
19919   fi
19920   ;;
19921 esac
19922
19923 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19924 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19925 library_names_spec=
19926 libname_spec='lib$name'
19927 soname_spec=
19928 shrext_cmds=".so"
19929 postinstall_cmds=
19930 postuninstall_cmds=
19931 finish_cmds=
19932 finish_eval=
19933 shlibpath_var=
19934 shlibpath_overrides_runpath=unknown
19935 version_type=none
19936 dynamic_linker="$host_os ld.so"
19937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19938 if test "$GCC" = yes; then
19939   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19940   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19941     # if the path contains ";" then we assume it to be the separator
19942     # otherwise default to the standard path separator (i.e. ":") - it is
19943     # assumed that no part of a normal pathname contains ";" but that should
19944     # okay in the real world where ";" in dirpaths is itself problematic.
19945     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19946   else
19947     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19948   fi
19949 else
19950   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19951 fi
19952 need_lib_prefix=unknown
19953 hardcode_into_libs=no
19954
19955 # when you set need_version to no, make sure it does not cause -set_version
19956 # flags to be left without arguments
19957 need_version=unknown
19958
19959 case $host_os in
19960 aix3*)
19961   version_type=linux
19962   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19963   shlibpath_var=LIBPATH
19964
19965   # AIX 3 has no versioning support, so we append a major version to the name.
19966   soname_spec='${libname}${release}${shared_ext}$major'
19967   ;;
19968
19969 aix4* | aix5*)
19970   version_type=linux
19971   need_lib_prefix=no
19972   need_version=no
19973   hardcode_into_libs=yes
19974   if test "$host_cpu" = ia64; then
19975     # AIX 5 supports IA64
19976     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19977     shlibpath_var=LD_LIBRARY_PATH
19978   else
19979     # With GCC up to 2.95.x, collect2 would create an import file
19980     # for dependence libraries.  The import file would start with
19981     # the line `#! .'.  This would cause the generated library to
19982     # depend on `.', always an invalid library.  This was fixed in
19983     # development snapshots of GCC prior to 3.0.
19984     case $host_os in
19985       aix4 | aix4.[01] | aix4.[01].*)
19986       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19987            echo ' yes '
19988            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19989         :
19990       else
19991         can_build_shared=no
19992       fi
19993       ;;
19994     esac
19995     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19996     # soname into executable. Probably we can add versioning support to
19997     # collect2, so additional links can be useful in future.
19998     if test "$aix_use_runtimelinking" = yes; then
19999       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20000       # instead of lib<name>.a to let people know that these are not
20001       # typical AIX shared libraries.
20002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20003     else
20004       # We preserve .a as extension for shared libraries through AIX4.2
20005       # and later when we are not doing run time linking.
20006       library_names_spec='${libname}${release}.a $libname.a'
20007       soname_spec='${libname}${release}${shared_ext}$major'
20008     fi
20009     shlibpath_var=LIBPATH
20010   fi
20011   ;;
20012
20013 amigaos*)
20014   library_names_spec='$libname.ixlibrary $libname.a'
20015   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20016   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'
20017   ;;
20018
20019 beos*)
20020   library_names_spec='${libname}${shared_ext}'
20021   dynamic_linker="$host_os ld.so"
20022   shlibpath_var=LIBRARY_PATH
20023   ;;
20024
20025 bsdi[45]*)
20026   version_type=linux
20027   need_version=no
20028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20029   soname_spec='${libname}${release}${shared_ext}$major'
20030   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20031   shlibpath_var=LD_LIBRARY_PATH
20032   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20033   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20034   # the default ld.so.conf also contains /usr/contrib/lib and
20035   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20036   # libtool to hard-code these into programs
20037   ;;
20038
20039 cygwin* | mingw* | pw32*)
20040   version_type=windows
20041   shrext_cmds=".dll"
20042   need_version=no
20043   need_lib_prefix=no
20044
20045   case $GCC,$host_os in
20046   yes,cygwin* | yes,mingw* | yes,pw32*)
20047     library_names_spec='$libname.dll.a'
20048     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20049     postinstall_cmds='base_file=`basename \${file}`~
20050       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20051       dldir=$destdir/`dirname \$dlpath`~
20052       test -d \$dldir || mkdir -p \$dldir~
20053       $install_prog $dir/$dlname \$dldir/$dlname'
20054     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20055       dlpath=$dir/\$dldll~
20056        $rm \$dlpath'
20057     shlibpath_overrides_runpath=yes
20058
20059     case $host_os in
20060     cygwin*)
20061       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20062       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20063       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20064       ;;
20065     mingw*)
20066       # MinGW DLLs use traditional 'lib' prefix
20067       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20068       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20069       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20070         # It is most probably a Windows format PATH printed by
20071         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20072         # path with ; separators, and with drive letters. We can handle the
20073         # drive letters (cygwin fileutils understands them), so leave them,
20074         # especially as we might pass files found there to a mingw objdump,
20075         # which wouldn't understand a cygwinified path. Ahh.
20076         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20077       else
20078         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20079       fi
20080       ;;
20081     pw32*)
20082       # pw32 DLLs use 'pw' prefix rather than 'lib'
20083       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20084       ;;
20085     esac
20086     ;;
20087
20088   *)
20089     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20090     ;;
20091   esac
20092   dynamic_linker='Win32 ld.exe'
20093   # FIXME: first we should search . and the directory the executable is in
20094   shlibpath_var=PATH
20095   ;;
20096
20097 darwin* | rhapsody*)
20098   dynamic_linker="$host_os dyld"
20099   version_type=darwin
20100   need_lib_prefix=no
20101   need_version=no
20102   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20103   soname_spec='${libname}${release}${major}$shared_ext'
20104   shlibpath_overrides_runpath=yes
20105   shlibpath_var=DYLD_LIBRARY_PATH
20106   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20107   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20108   if test "$GCC" = yes; then
20109     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"`
20110   else
20111     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20112   fi
20113   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20114   ;;
20115
20116 dgux*)
20117   version_type=linux
20118   need_lib_prefix=no
20119   need_version=no
20120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20121   soname_spec='${libname}${release}${shared_ext}$major'
20122   shlibpath_var=LD_LIBRARY_PATH
20123   ;;
20124
20125 freebsd1*)
20126   dynamic_linker=no
20127   ;;
20128
20129 kfreebsd*-gnu)
20130   version_type=linux
20131   need_lib_prefix=no
20132   need_version=no
20133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20134   soname_spec='${libname}${release}${shared_ext}$major'
20135   shlibpath_var=LD_LIBRARY_PATH
20136   shlibpath_overrides_runpath=no
20137   hardcode_into_libs=yes
20138   dynamic_linker='GNU ld.so'
20139   ;;
20140
20141 freebsd*)
20142   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20143   version_type=freebsd-$objformat
20144   case $version_type in
20145     freebsd-elf*)
20146       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20147       need_version=no
20148       need_lib_prefix=no
20149       ;;
20150     freebsd-*)
20151       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20152       need_version=yes
20153       ;;
20154   esac
20155   shlibpath_var=LD_LIBRARY_PATH
20156   case $host_os in
20157   freebsd2*)
20158     shlibpath_overrides_runpath=yes
20159     ;;
20160   freebsd3.01* | freebsdelf3.01*)
20161     shlibpath_overrides_runpath=yes
20162     hardcode_into_libs=yes
20163     ;;
20164   *) # from 3.2 on
20165     shlibpath_overrides_runpath=no
20166     hardcode_into_libs=yes
20167     ;;
20168   esac
20169   ;;
20170
20171 gnu*)
20172   version_type=linux
20173   need_lib_prefix=no
20174   need_version=no
20175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20176   soname_spec='${libname}${release}${shared_ext}$major'
20177   shlibpath_var=LD_LIBRARY_PATH
20178   hardcode_into_libs=yes
20179   ;;
20180
20181 hpux9* | hpux10* | hpux11*)
20182   # Give a soname corresponding to the major version so that dld.sl refuses to
20183   # link against other versions.
20184   version_type=sunos
20185   need_lib_prefix=no
20186   need_version=no
20187   case "$host_cpu" in
20188   ia64*)
20189     shrext_cmds='.so'
20190     hardcode_into_libs=yes
20191     dynamic_linker="$host_os dld.so"
20192     shlibpath_var=LD_LIBRARY_PATH
20193     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195     soname_spec='${libname}${release}${shared_ext}$major'
20196     if test "X$HPUX_IA64_MODE" = X32; then
20197       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20198     else
20199       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20200     fi
20201     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20202     ;;
20203    hppa*64*)
20204      shrext_cmds='.sl'
20205      hardcode_into_libs=yes
20206      dynamic_linker="$host_os dld.sl"
20207      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20208      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20212      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20213      ;;
20214    *)
20215     shrext_cmds='.sl'
20216     dynamic_linker="$host_os dld.sl"
20217     shlibpath_var=SHLIB_PATH
20218     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20220     soname_spec='${libname}${release}${shared_ext}$major'
20221     ;;
20222   esac
20223   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20224   postinstall_cmds='chmod 555 $lib'
20225   ;;
20226
20227 irix5* | irix6* | nonstopux*)
20228   case $host_os in
20229     nonstopux*) version_type=nonstopux ;;
20230     *)
20231         if test "$lt_cv_prog_gnu_ld" = yes; then
20232                 version_type=linux
20233         else
20234                 version_type=irix
20235         fi ;;
20236   esac
20237   need_lib_prefix=no
20238   need_version=no
20239   soname_spec='${libname}${release}${shared_ext}$major'
20240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20241   case $host_os in
20242   irix5* | nonstopux*)
20243     libsuff= shlibsuff=
20244     ;;
20245   *)
20246     case $LD in # libtool.m4 will add one of these switches to LD
20247     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20248       libsuff= shlibsuff= libmagic=32-bit;;
20249     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20250       libsuff=32 shlibsuff=N32 libmagic=N32;;
20251     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20252       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20253     *) libsuff= shlibsuff= libmagic=never-match;;
20254     esac
20255     ;;
20256   esac
20257   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20258   shlibpath_overrides_runpath=no
20259   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20260   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20261   hardcode_into_libs=yes
20262   ;;
20263
20264 # No shared lib support for Linux oldld, aout, or coff.
20265 linux*oldld* | linux*aout* | linux*coff*)
20266   dynamic_linker=no
20267   ;;
20268
20269 # This must be Linux ELF.
20270 linux*)
20271   version_type=linux
20272   need_lib_prefix=no
20273   need_version=no
20274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20275   soname_spec='${libname}${release}${shared_ext}$major'
20276   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20277   shlibpath_var=LD_LIBRARY_PATH
20278   shlibpath_overrides_runpath=no
20279   # This implies no fast_install, which is unacceptable.
20280   # Some rework will be needed to allow for fast_install
20281   # before this can be enabled.
20282   hardcode_into_libs=yes
20283
20284   # Append ld.so.conf contents to the search path
20285   if test -f /etc/ld.so.conf; then
20286     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20287     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20288   fi
20289
20290   # We used to test for /lib/ld.so.1 and disable shared libraries on
20291   # powerpc, because MkLinux only supported shared libraries with the
20292   # GNU dynamic linker.  Since this was broken with cross compilers,
20293   # most powerpc-linux boxes support dynamic linking these days and
20294   # people can always --disable-shared, the test was removed, and we
20295   # assume the GNU/Linux dynamic linker is in use.
20296   dynamic_linker='GNU/Linux ld.so'
20297   ;;
20298
20299 knetbsd*-gnu)
20300   version_type=linux
20301   need_lib_prefix=no
20302   need_version=no
20303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20304   soname_spec='${libname}${release}${shared_ext}$major'
20305   shlibpath_var=LD_LIBRARY_PATH
20306   shlibpath_overrides_runpath=no
20307   hardcode_into_libs=yes
20308   dynamic_linker='GNU ld.so'
20309   ;;
20310
20311 netbsd*)
20312   version_type=sunos
20313   need_lib_prefix=no
20314   need_version=no
20315   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20317     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20318     dynamic_linker='NetBSD (a.out) ld.so'
20319   else
20320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20321     soname_spec='${libname}${release}${shared_ext}$major'
20322     dynamic_linker='NetBSD ld.elf_so'
20323   fi
20324   shlibpath_var=LD_LIBRARY_PATH
20325   shlibpath_overrides_runpath=yes
20326   hardcode_into_libs=yes
20327   ;;
20328
20329 newsos6)
20330   version_type=linux
20331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20332   shlibpath_var=LD_LIBRARY_PATH
20333   shlibpath_overrides_runpath=yes
20334   ;;
20335
20336 nto-qnx*)
20337   version_type=linux
20338   need_lib_prefix=no
20339   need_version=no
20340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341   soname_spec='${libname}${release}${shared_ext}$major'
20342   shlibpath_var=LD_LIBRARY_PATH
20343   shlibpath_overrides_runpath=yes
20344   ;;
20345
20346 openbsd*)
20347   version_type=sunos
20348   need_lib_prefix=no
20349   need_version=no
20350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352   shlibpath_var=LD_LIBRARY_PATH
20353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20354     case $host_os in
20355       openbsd2.[89] | openbsd2.[89].*)
20356         shlibpath_overrides_runpath=no
20357         ;;
20358       *)
20359         shlibpath_overrides_runpath=yes
20360         ;;
20361       esac
20362   else
20363     shlibpath_overrides_runpath=yes
20364   fi
20365   ;;
20366
20367 os2*)
20368   libname_spec='$name'
20369   shrext_cmds=".dll"
20370   need_lib_prefix=no
20371   library_names_spec='$libname${shared_ext} $libname.a'
20372   dynamic_linker='OS/2 ld.exe'
20373   shlibpath_var=LIBPATH
20374   ;;
20375
20376 osf3* | osf4* | osf5*)
20377   version_type=osf
20378   need_lib_prefix=no
20379   need_version=no
20380   soname_spec='${libname}${release}${shared_ext}$major'
20381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382   shlibpath_var=LD_LIBRARY_PATH
20383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20385   ;;
20386
20387 sco3.2v5*)
20388   version_type=osf
20389   soname_spec='${libname}${release}${shared_ext}$major'
20390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391   shlibpath_var=LD_LIBRARY_PATH
20392   ;;
20393
20394 solaris*)
20395   version_type=linux
20396   need_lib_prefix=no
20397   need_version=no
20398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399   soname_spec='${libname}${release}${shared_ext}$major'
20400   shlibpath_var=LD_LIBRARY_PATH
20401   shlibpath_overrides_runpath=yes
20402   hardcode_into_libs=yes
20403   # ldd complains unless libraries are executable
20404   postinstall_cmds='chmod +x $lib'
20405   ;;
20406
20407 sunos4*)
20408   version_type=sunos
20409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20411   shlibpath_var=LD_LIBRARY_PATH
20412   shlibpath_overrides_runpath=yes
20413   if test "$with_gnu_ld" = yes; then
20414     need_lib_prefix=no
20415   fi
20416   need_version=yes
20417   ;;
20418
20419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20420   version_type=linux
20421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422   soname_spec='${libname}${release}${shared_ext}$major'
20423   shlibpath_var=LD_LIBRARY_PATH
20424   case $host_vendor in
20425     sni)
20426       shlibpath_overrides_runpath=no
20427       need_lib_prefix=no
20428       export_dynamic_flag_spec='${wl}-Blargedynsym'
20429       runpath_var=LD_RUN_PATH
20430       ;;
20431     siemens)
20432       need_lib_prefix=no
20433       ;;
20434     motorola)
20435       need_lib_prefix=no
20436       need_version=no
20437       shlibpath_overrides_runpath=no
20438       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20439       ;;
20440   esac
20441   ;;
20442
20443 sysv4*MP*)
20444   if test -d /usr/nec ;then
20445     version_type=linux
20446     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20447     soname_spec='$libname${shared_ext}.$major'
20448     shlibpath_var=LD_LIBRARY_PATH
20449   fi
20450   ;;
20451
20452 uts4*)
20453   version_type=linux
20454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455   soname_spec='${libname}${release}${shared_ext}$major'
20456   shlibpath_var=LD_LIBRARY_PATH
20457   ;;
20458
20459 *)
20460   dynamic_linker=no
20461   ;;
20462 esac
20463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20464 echo "${ECHO_T}$dynamic_linker" >&6
20465 test "$dynamic_linker" = no && can_build_shared=no
20466
20467 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20469 hardcode_action_F77=
20470 if test -n "$hardcode_libdir_flag_spec_F77" || \
20471    test -n "$runpath_var_F77" || \
20472    test "X$hardcode_automatic_F77" = "Xyes" ; then
20473
20474   # We can hardcode non-existant directories.
20475   if test "$hardcode_direct_F77" != no &&
20476      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20477      # have to relink, otherwise we might link with an installed library
20478      # when we should be linking with a yet-to-be-installed one
20479      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20480      test "$hardcode_minus_L_F77" != no; then
20481     # Linking always hardcodes the temporary library directory.
20482     hardcode_action_F77=relink
20483   else
20484     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20485     hardcode_action_F77=immediate
20486   fi
20487 else
20488   # We cannot hardcode anything, or else we can only hardcode existing
20489   # directories.
20490   hardcode_action_F77=unsupported
20491 fi
20492 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20493 echo "${ECHO_T}$hardcode_action_F77" >&6
20494
20495 if test "$hardcode_action_F77" = relink; then
20496   # Fast installation is not supported
20497   enable_fast_install=no
20498 elif test "$shlibpath_overrides_runpath" = yes ||
20499      test "$enable_shared" = no; then
20500   # Fast installation is not necessary
20501   enable_fast_install=needless
20502 fi
20503
20504 striplib=
20505 old_striplib=
20506 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20507 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20508 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20509   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20510   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20511   echo "$as_me:$LINENO: result: yes" >&5
20512 echo "${ECHO_T}yes" >&6
20513 else
20514 # FIXME - insert some real tests, host_os isn't really good enough
20515   case $host_os in
20516    darwin*)
20517        if test -n "$STRIP" ; then
20518          striplib="$STRIP -x"
20519          echo "$as_me:$LINENO: result: yes" >&5
20520 echo "${ECHO_T}yes" >&6
20521        else
20522   echo "$as_me:$LINENO: result: no" >&5
20523 echo "${ECHO_T}no" >&6
20524 fi
20525        ;;
20526    *)
20527   echo "$as_me:$LINENO: result: no" >&5
20528 echo "${ECHO_T}no" >&6
20529     ;;
20530   esac
20531 fi
20532
20533
20534
20535 # The else clause should only fire when bootstrapping the
20536 # libtool distribution, otherwise you forgot to ship ltmain.sh
20537 # with your package, and you will get complaints that there are
20538 # no rules to generate ltmain.sh.
20539 if test -f "$ltmain"; then
20540   # See if we are running on zsh, and set the options which allow our commands through
20541   # without removal of \ escapes.
20542   if test -n "${ZSH_VERSION+set}" ; then
20543     setopt NO_GLOB_SUBST
20544   fi
20545   # Now quote all the things that may contain metacharacters while being
20546   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20547   # variables and quote the copies for generation of the libtool script.
20548   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20549     SED SHELL STRIP \
20550     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20551     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20552     deplibs_check_method reload_flag reload_cmds need_locks \
20553     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20554     lt_cv_sys_global_symbol_to_c_name_address \
20555     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20556     old_postinstall_cmds old_postuninstall_cmds \
20557     compiler_F77 \
20558     CC_F77 \
20559     LD_F77 \
20560     lt_prog_compiler_wl_F77 \
20561     lt_prog_compiler_pic_F77 \
20562     lt_prog_compiler_static_F77 \
20563     lt_prog_compiler_no_builtin_flag_F77 \
20564     export_dynamic_flag_spec_F77 \
20565     thread_safe_flag_spec_F77 \
20566     whole_archive_flag_spec_F77 \
20567     enable_shared_with_static_runtimes_F77 \
20568     old_archive_cmds_F77 \
20569     old_archive_from_new_cmds_F77 \
20570     predep_objects_F77 \
20571     postdep_objects_F77 \
20572     predeps_F77 \
20573     postdeps_F77 \
20574     compiler_lib_search_path_F77 \
20575     archive_cmds_F77 \
20576     archive_expsym_cmds_F77 \
20577     postinstall_cmds_F77 \
20578     postuninstall_cmds_F77 \
20579     old_archive_from_expsyms_cmds_F77 \
20580     allow_undefined_flag_F77 \
20581     no_undefined_flag_F77 \
20582     export_symbols_cmds_F77 \
20583     hardcode_libdir_flag_spec_F77 \
20584     hardcode_libdir_flag_spec_ld_F77 \
20585     hardcode_libdir_separator_F77 \
20586     hardcode_automatic_F77 \
20587     module_cmds_F77 \
20588     module_expsym_cmds_F77 \
20589     lt_cv_prog_compiler_c_o_F77 \
20590     exclude_expsyms_F77 \
20591     include_expsyms_F77; do
20592
20593     case $var in
20594     old_archive_cmds_F77 | \
20595     old_archive_from_new_cmds_F77 | \
20596     archive_cmds_F77 | \
20597     archive_expsym_cmds_F77 | \
20598     module_cmds_F77 | \
20599     module_expsym_cmds_F77 | \
20600     old_archive_from_expsyms_cmds_F77 | \
20601     export_symbols_cmds_F77 | \
20602     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20603     postinstall_cmds | postuninstall_cmds | \
20604     old_postinstall_cmds | old_postuninstall_cmds | \
20605     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20606       # Double-quote double-evaled strings.
20607       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20608       ;;
20609     *)
20610       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20611       ;;
20612     esac
20613   done
20614
20615   case $lt_echo in
20616   *'\$0 --fallback-echo"')
20617     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20618     ;;
20619   esac
20620
20621 cfgfile="$ofile"
20622
20623   cat <<__EOF__ >> "$cfgfile"
20624 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20625
20626 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20627
20628 # Shell to use when invoking shell scripts.
20629 SHELL=$lt_SHELL
20630
20631 # Whether or not to build shared libraries.
20632 build_libtool_libs=$enable_shared
20633
20634 # Whether or not to build static libraries.
20635 build_old_libs=$enable_static
20636
20637 # Whether or not to add -lc for building shared libraries.
20638 build_libtool_need_lc=$archive_cmds_need_lc_F77
20639
20640 # Whether or not to disallow shared libs when runtime libs are static
20641 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20642
20643 # Whether or not to optimize for fast installation.
20644 fast_install=$enable_fast_install
20645
20646 # The host system.
20647 host_alias=$host_alias
20648 host=$host
20649
20650 # An echo program that does not interpret backslashes.
20651 echo=$lt_echo
20652
20653 # The archiver.
20654 AR=$lt_AR
20655 AR_FLAGS=$lt_AR_FLAGS
20656
20657 # A C compiler.
20658 LTCC=$lt_LTCC
20659
20660 # A language-specific compiler.
20661 CC=$lt_compiler_F77
20662
20663 # Is the compiler the GNU C compiler?
20664 with_gcc=$GCC_F77
20665
20666 # An ERE matcher.
20667 EGREP=$lt_EGREP
20668
20669 # The linker used to build libraries.
20670 LD=$lt_LD_F77
20671
20672 # Whether we need hard or soft links.
20673 LN_S=$lt_LN_S
20674
20675 # A BSD-compatible nm program.
20676 NM=$lt_NM
20677
20678 # A symbol stripping program
20679 STRIP=$lt_STRIP
20680
20681 # Used to examine libraries when file_magic_cmd begins "file"
20682 MAGIC_CMD=$MAGIC_CMD
20683
20684 # Used on cygwin: DLL creation program.
20685 DLLTOOL="$DLLTOOL"
20686
20687 # Used on cygwin: object dumper.
20688 OBJDUMP="$OBJDUMP"
20689
20690 # Used on cygwin: assembler.
20691 AS="$AS"
20692
20693 # The name of the directory that contains temporary libtool files.
20694 objdir=$objdir
20695
20696 # How to create reloadable object files.
20697 reload_flag=$lt_reload_flag
20698 reload_cmds=$lt_reload_cmds
20699
20700 # How to pass a linker flag through the compiler.
20701 wl=$lt_lt_prog_compiler_wl_F77
20702
20703 # Object file suffix (normally "o").
20704 objext="$ac_objext"
20705
20706 # Old archive suffix (normally "a").
20707 libext="$libext"
20708
20709 # Shared library suffix (normally ".so").
20710 shrext_cmds='$shrext_cmds'
20711
20712 # Executable file suffix (normally "").
20713 exeext="$exeext"
20714
20715 # Additional compiler flags for building library objects.
20716 pic_flag=$lt_lt_prog_compiler_pic_F77
20717 pic_mode=$pic_mode
20718
20719 # What is the maximum length of a command?
20720 max_cmd_len=$lt_cv_sys_max_cmd_len
20721
20722 # Does compiler simultaneously support -c and -o options?
20723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20724
20725 # Must we lock files when doing compilation ?
20726 need_locks=$lt_need_locks
20727
20728 # Do we need the lib prefix for modules?
20729 need_lib_prefix=$need_lib_prefix
20730
20731 # Do we need a version for libraries?
20732 need_version=$need_version
20733
20734 # Whether dlopen is supported.
20735 dlopen_support=$enable_dlopen
20736
20737 # Whether dlopen of programs is supported.
20738 dlopen_self=$enable_dlopen_self
20739
20740 # Whether dlopen of statically linked programs is supported.
20741 dlopen_self_static=$enable_dlopen_self_static
20742
20743 # Compiler flag to prevent dynamic linking.
20744 link_static_flag=$lt_lt_prog_compiler_static_F77
20745
20746 # Compiler flag to turn off builtin functions.
20747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20748
20749 # Compiler flag to allow reflexive dlopens.
20750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20751
20752 # Compiler flag to generate shared objects directly from archives.
20753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20754
20755 # Compiler flag to generate thread-safe objects.
20756 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20757
20758 # Library versioning type.
20759 version_type=$version_type
20760
20761 # Format of library name prefix.
20762 libname_spec=$lt_libname_spec
20763
20764 # List of archive names.  First name is the real one, the rest are links.
20765 # The last name is the one that the linker finds with -lNAME.
20766 library_names_spec=$lt_library_names_spec
20767
20768 # The coded name of the library, if different from the real name.
20769 soname_spec=$lt_soname_spec
20770
20771 # Commands used to build and install an old-style archive.
20772 RANLIB=$lt_RANLIB
20773 old_archive_cmds=$lt_old_archive_cmds_F77
20774 old_postinstall_cmds=$lt_old_postinstall_cmds
20775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20776
20777 # Create an old-style archive from a shared archive.
20778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20779
20780 # Create a temporary old-style archive to link instead of a shared archive.
20781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20782
20783 # Commands used to build and install a shared archive.
20784 archive_cmds=$lt_archive_cmds_F77
20785 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20786 postinstall_cmds=$lt_postinstall_cmds
20787 postuninstall_cmds=$lt_postuninstall_cmds
20788
20789 # Commands used to build a loadable module (assumed same as above if empty)
20790 module_cmds=$lt_module_cmds_F77
20791 module_expsym_cmds=$lt_module_expsym_cmds_F77
20792
20793 # Commands to strip libraries.
20794 old_striplib=$lt_old_striplib
20795 striplib=$lt_striplib
20796
20797 # Dependencies to place before the objects being linked to create a
20798 # shared library.
20799 predep_objects=$lt_predep_objects_F77
20800
20801 # Dependencies to place after the objects being linked to create a
20802 # shared library.
20803 postdep_objects=$lt_postdep_objects_F77
20804
20805 # Dependencies to place before the objects being linked to create a
20806 # shared library.
20807 predeps=$lt_predeps_F77
20808
20809 # Dependencies to place after the objects being linked to create a
20810 # shared library.
20811 postdeps=$lt_postdeps_F77
20812
20813 # The library search path used internally by the compiler when linking
20814 # a shared library.
20815 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20816
20817 # Method to check whether dependent libraries are shared objects.
20818 deplibs_check_method=$lt_deplibs_check_method
20819
20820 # Command to use when deplibs_check_method == file_magic.
20821 file_magic_cmd=$lt_file_magic_cmd
20822
20823 # Flag that allows shared libraries with undefined symbols to be built.
20824 allow_undefined_flag=$lt_allow_undefined_flag_F77
20825
20826 # Flag that forces no undefined symbols.
20827 no_undefined_flag=$lt_no_undefined_flag_F77
20828
20829 # Commands used to finish a libtool library installation in a directory.
20830 finish_cmds=$lt_finish_cmds
20831
20832 # Same as above, but a single script fragment to be evaled but not shown.
20833 finish_eval=$lt_finish_eval
20834
20835 # Take the output of nm and produce a listing of raw symbols and C names.
20836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20837
20838 # Transform the output of nm in a proper C declaration
20839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20840
20841 # Transform the output of nm in a C name address pair
20842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20843
20844 # This is the shared library runtime path variable.
20845 runpath_var=$runpath_var
20846
20847 # This is the shared library path variable.
20848 shlibpath_var=$shlibpath_var
20849
20850 # Is shlibpath searched before the hard-coded library search path?
20851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20852
20853 # How to hardcode a shared library path into an executable.
20854 hardcode_action=$hardcode_action_F77
20855
20856 # Whether we should hardcode library paths into libraries.
20857 hardcode_into_libs=$hardcode_into_libs
20858
20859 # Flag to hardcode \$libdir into a binary during linking.
20860 # This must work even if \$libdir does not exist.
20861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20862
20863 # If ld is used when linking, flag to hardcode \$libdir into
20864 # a binary during linking. This must work even if \$libdir does
20865 # not exist.
20866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20867
20868 # Whether we need a single -rpath flag with a separated argument.
20869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20870
20871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20872 # resulting binary.
20873 hardcode_direct=$hardcode_direct_F77
20874
20875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20876 # resulting binary.
20877 hardcode_minus_L=$hardcode_minus_L_F77
20878
20879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20880 # the resulting binary.
20881 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20882
20883 # Set to yes if building a shared library automatically hardcodes DIR into the library
20884 # and all subsequent libraries and executables linked against it.
20885 hardcode_automatic=$hardcode_automatic_F77
20886
20887 # Variables whose values should be saved in libtool wrapper scripts and
20888 # restored at relink time.
20889 variables_saved_for_relink="$variables_saved_for_relink"
20890
20891 # Whether libtool must link a program against all its dependency libraries.
20892 link_all_deplibs=$link_all_deplibs_F77
20893
20894 # Compile-time system search path for libraries
20895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20896
20897 # Run-time system search path for libraries
20898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20899
20900 # Fix the shell variable \$srcfile for the compiler.
20901 fix_srcfile_path="$fix_srcfile_path_F77"
20902
20903 # Set to yes if exported symbols are required.
20904 always_export_symbols=$always_export_symbols_F77
20905
20906 # The commands to list exported symbols.
20907 export_symbols_cmds=$lt_export_symbols_cmds_F77
20908
20909 # The commands to extract the exported symbol list from a shared archive.
20910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20911
20912 # Symbols that should not be listed in the preloaded symbols.
20913 exclude_expsyms=$lt_exclude_expsyms_F77
20914
20915 # Symbols that must always be exported.
20916 include_expsyms=$lt_include_expsyms_F77
20917
20918 # ### END LIBTOOL TAG CONFIG: $tagname
20919
20920 __EOF__
20921
20922
20923 else
20924   # If there is no Makefile yet, we rely on a make rule to execute
20925   # `config.status --recheck' to rerun these tests and create the
20926   # libtool script then.
20927   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20928   if test -f "$ltmain_in"; then
20929     test -f Makefile && make "$ltmain"
20930   fi
20931 fi
20932
20933
20934 ac_ext=c
20935 ac_cpp='$CPP $CPPFLAGS'
20936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939
20940 CC="$lt_save_CC"
20941
20942         else
20943           tagname=""
20944         fi
20945         ;;
20946
20947       GCJ)
20948         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20949           ac_ext=c
20950 ac_cpp='$CPP $CPPFLAGS'
20951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20954
20955
20956 # Source file extension for Java test sources.
20957 ac_ext=java
20958
20959 # Object file extension for compiled Java test sources.
20960 objext=o
20961 objext_GCJ=$objext
20962
20963 # Code to be used in simple compile tests
20964 lt_simple_compile_test_code="class foo {}\n"
20965
20966 # Code to be used in simple link tests
20967 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20968
20969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20970
20971 # If no C compiler was specified, use CC.
20972 LTCC=${LTCC-"$CC"}
20973
20974 # Allow CC to be a program name with arguments.
20975 compiler=$CC
20976
20977
20978 # Allow CC to be a program name with arguments.
20979 lt_save_CC="$CC"
20980 CC=${GCJ-"gcj"}
20981 compiler=$CC
20982 compiler_GCJ=$CC
20983
20984 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20985 archive_cmds_need_lc_GCJ=no
20986
20987
20988 lt_prog_compiler_no_builtin_flag_GCJ=
20989
20990 if test "$GCC" = yes; then
20991   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20992
20993
20994 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999   lt_cv_prog_compiler_rtti_exceptions=no
21000   ac_outfile=conftest.$ac_objext
21001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21002    lt_compiler_flag="-fno-rtti -fno-exceptions"
21003    # Insert the option either (1) after the last *FLAGS variable, or
21004    # (2) before a word containing "conftest.", or (3) at the end.
21005    # Note that $ac_compile itself does not contain backslashes and begins
21006    # with a dollar sign (not a hyphen), so the echo should work correctly.
21007    # The option is referenced via a variable to avoid confusing sed.
21008    lt_compile=`echo "$ac_compile" | $SED \
21009    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21011    -e 's:$: $lt_compiler_flag:'`
21012    (eval echo "\"\$as_me:21012: $lt_compile\"" >&5)
21013    (eval "$lt_compile" 2>conftest.err)
21014    ac_status=$?
21015    cat conftest.err >&5
21016    echo "$as_me:21016: \$? = $ac_status" >&5
21017    if (exit $ac_status) && test -s "$ac_outfile"; then
21018      # The compiler can only warn and ignore the option if not recognized
21019      # So say no if there are warnings
21020      if test ! -s conftest.err; then
21021        lt_cv_prog_compiler_rtti_exceptions=yes
21022      fi
21023    fi
21024    $rm conftest*
21025
21026 fi
21027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21028 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21029
21030 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21031     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21032 else
21033     :
21034 fi
21035
21036 fi
21037
21038 lt_prog_compiler_wl_GCJ=
21039 lt_prog_compiler_pic_GCJ=
21040 lt_prog_compiler_static_GCJ=
21041
21042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21044
21045   if test "$GCC" = yes; then
21046     lt_prog_compiler_wl_GCJ='-Wl,'
21047     lt_prog_compiler_static_GCJ='-static'
21048
21049     case $host_os in
21050       aix*)
21051       # All AIX code is PIC.
21052       if test "$host_cpu" = ia64; then
21053         # AIX 5 now supports IA64 processor
21054         lt_prog_compiler_static_GCJ='-Bstatic'
21055       fi
21056       ;;
21057
21058     amigaos*)
21059       # FIXME: we need at least 68020 code to build shared libraries, but
21060       # adding the `-m68020' flag to GCC prevents building anything better,
21061       # like `-m68040'.
21062       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21063       ;;
21064
21065     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21066       # PIC is the default for these OSes.
21067       ;;
21068
21069     mingw* | pw32* | os2*)
21070       # This hack is so that the source file can tell whether it is being
21071       # built for inclusion in a dll (and should export symbols for example).
21072       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21073       ;;
21074
21075     darwin* | rhapsody*)
21076       # PIC is the default on this platform
21077       # Common symbols not allowed in MH_DYLIB files
21078       lt_prog_compiler_pic_GCJ='-fno-common'
21079       ;;
21080
21081     msdosdjgpp*)
21082       # Just because we use GCC doesn't mean we suddenly get shared libraries
21083       # on systems that don't support them.
21084       lt_prog_compiler_can_build_shared_GCJ=no
21085       enable_shared=no
21086       ;;
21087
21088     sysv4*MP*)
21089       if test -d /usr/nec; then
21090         lt_prog_compiler_pic_GCJ=-Kconform_pic
21091       fi
21092       ;;
21093
21094     hpux*)
21095       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21096       # not for PA HP-UX.
21097       case "$host_cpu" in
21098       hppa*64*|ia64*)
21099         # +Z the default
21100         ;;
21101       *)
21102         lt_prog_compiler_pic_GCJ='-fPIC'
21103         ;;
21104       esac
21105       ;;
21106
21107     *)
21108       lt_prog_compiler_pic_GCJ='-fPIC'
21109       ;;
21110     esac
21111   else
21112     # PORTME Check for flag to pass linker flags through the system compiler.
21113     case $host_os in
21114     aix*)
21115       lt_prog_compiler_wl_GCJ='-Wl,'
21116       if test "$host_cpu" = ia64; then
21117         # AIX 5 now supports IA64 processor
21118         lt_prog_compiler_static_GCJ='-Bstatic'
21119       else
21120         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21121       fi
21122       ;;
21123       darwin*)
21124         # PIC is the default on this platform
21125         # Common symbols not allowed in MH_DYLIB files
21126        case "$cc_basename" in
21127          xlc*)
21128          lt_prog_compiler_pic_GCJ='-qnocommon'
21129          lt_prog_compiler_wl_GCJ='-Wl,'
21130          ;;
21131        esac
21132        ;;
21133
21134     mingw* | pw32* | os2*)
21135       # This hack is so that the source file can tell whether it is being
21136       # built for inclusion in a dll (and should export symbols for example).
21137       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21138       ;;
21139
21140     hpux9* | hpux10* | hpux11*)
21141       lt_prog_compiler_wl_GCJ='-Wl,'
21142       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21143       # not for PA HP-UX.
21144       case "$host_cpu" in
21145       hppa*64*|ia64*)
21146         # +Z the default
21147         ;;
21148       *)
21149         lt_prog_compiler_pic_GCJ='+Z'
21150         ;;
21151       esac
21152       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21153       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21154       ;;
21155
21156     irix5* | irix6* | nonstopux*)
21157       lt_prog_compiler_wl_GCJ='-Wl,'
21158       # PIC (with -KPIC) is the default.
21159       lt_prog_compiler_static_GCJ='-non_shared'
21160       ;;
21161
21162     newsos6)
21163       lt_prog_compiler_pic_GCJ='-KPIC'
21164       lt_prog_compiler_static_GCJ='-Bstatic'
21165       ;;
21166
21167     linux*)
21168       case $CC in
21169       icc* | ecc*)
21170         lt_prog_compiler_wl_GCJ='-Wl,'
21171         lt_prog_compiler_pic_GCJ='-KPIC'
21172         lt_prog_compiler_static_GCJ='-static'
21173         ;;
21174       ccc*)
21175         lt_prog_compiler_wl_GCJ='-Wl,'
21176         # All Alpha code is PIC.
21177         lt_prog_compiler_static_GCJ='-non_shared'
21178         ;;
21179       esac
21180       ;;
21181
21182     osf3* | osf4* | osf5*)
21183       lt_prog_compiler_wl_GCJ='-Wl,'
21184       # All OSF/1 code is PIC.
21185       lt_prog_compiler_static_GCJ='-non_shared'
21186       ;;
21187
21188     sco3.2v5*)
21189       lt_prog_compiler_pic_GCJ='-Kpic'
21190       lt_prog_compiler_static_GCJ='-dn'
21191       ;;
21192
21193     solaris*)
21194       lt_prog_compiler_wl_GCJ='-Wl,'
21195       lt_prog_compiler_pic_GCJ='-KPIC'
21196       lt_prog_compiler_static_GCJ='-Bstatic'
21197       ;;
21198
21199     sunos4*)
21200       lt_prog_compiler_wl_GCJ='-Qoption ld '
21201       lt_prog_compiler_pic_GCJ='-PIC'
21202       lt_prog_compiler_static_GCJ='-Bstatic'
21203       ;;
21204
21205     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21206       lt_prog_compiler_wl_GCJ='-Wl,'
21207       lt_prog_compiler_pic_GCJ='-KPIC'
21208       lt_prog_compiler_static_GCJ='-Bstatic'
21209       ;;
21210
21211     sysv4*MP*)
21212       if test -d /usr/nec ;then
21213         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21214         lt_prog_compiler_static_GCJ='-Bstatic'
21215       fi
21216       ;;
21217
21218     uts4*)
21219       lt_prog_compiler_pic_GCJ='-pic'
21220       lt_prog_compiler_static_GCJ='-Bstatic'
21221       ;;
21222
21223     *)
21224       lt_prog_compiler_can_build_shared_GCJ=no
21225       ;;
21226     esac
21227   fi
21228
21229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21230 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21231
21232 #
21233 # Check to make sure the PIC flag actually works.
21234 #
21235 if test -n "$lt_prog_compiler_pic_GCJ"; then
21236
21237 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21239 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21240   echo $ECHO_N "(cached) $ECHO_C" >&6
21241 else
21242   lt_prog_compiler_pic_works_GCJ=no
21243   ac_outfile=conftest.$ac_objext
21244    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21245    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21246    # Insert the option either (1) after the last *FLAGS variable, or
21247    # (2) before a word containing "conftest.", or (3) at the end.
21248    # Note that $ac_compile itself does not contain backslashes and begins
21249    # with a dollar sign (not a hyphen), so the echo should work correctly.
21250    # The option is referenced via a variable to avoid confusing sed.
21251    lt_compile=`echo "$ac_compile" | $SED \
21252    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21254    -e 's:$: $lt_compiler_flag:'`
21255    (eval echo "\"\$as_me:21255: $lt_compile\"" >&5)
21256    (eval "$lt_compile" 2>conftest.err)
21257    ac_status=$?
21258    cat conftest.err >&5
21259    echo "$as_me:21259: \$? = $ac_status" >&5
21260    if (exit $ac_status) && test -s "$ac_outfile"; then
21261      # The compiler can only warn and ignore the option if not recognized
21262      # So say no if there are warnings
21263      if test ! -s conftest.err; then
21264        lt_prog_compiler_pic_works_GCJ=yes
21265      fi
21266    fi
21267    $rm conftest*
21268
21269 fi
21270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21271 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21272
21273 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21274     case $lt_prog_compiler_pic_GCJ in
21275      "" | " "*) ;;
21276      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21277      esac
21278 else
21279     lt_prog_compiler_pic_GCJ=
21280      lt_prog_compiler_can_build_shared_GCJ=no
21281 fi
21282
21283 fi
21284 case "$host_os" in
21285   # For platforms which do not support PIC, -DPIC is meaningless:
21286   *djgpp*)
21287     lt_prog_compiler_pic_GCJ=
21288     ;;
21289   *)
21290     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21291     ;;
21292 esac
21293
21294 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21295 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21296 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21297   echo $ECHO_N "(cached) $ECHO_C" >&6
21298 else
21299   lt_cv_prog_compiler_c_o_GCJ=no
21300    $rm -r conftest 2>/dev/null
21301    mkdir conftest
21302    cd conftest
21303    mkdir out
21304    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21305
21306    lt_compiler_flag="-o out/conftest2.$ac_objext"
21307    # Insert the option either (1) after the last *FLAGS variable, or
21308    # (2) before a word containing "conftest.", or (3) at the end.
21309    # Note that $ac_compile itself does not contain backslashes and begins
21310    # with a dollar sign (not a hyphen), so the echo should work correctly.
21311    lt_compile=`echo "$ac_compile" | $SED \
21312    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21314    -e 's:$: $lt_compiler_flag:'`
21315    (eval echo "\"\$as_me:21315: $lt_compile\"" >&5)
21316    (eval "$lt_compile" 2>out/conftest.err)
21317    ac_status=$?
21318    cat out/conftest.err >&5
21319    echo "$as_me:21319: \$? = $ac_status" >&5
21320    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21321    then
21322      # The compiler can only warn and ignore the option if not recognized
21323      # So say no if there are warnings
21324      if test ! -s out/conftest.err; then
21325        lt_cv_prog_compiler_c_o_GCJ=yes
21326      fi
21327    fi
21328    chmod u+w .
21329    $rm conftest*
21330    # SGI C++ compiler will create directory out/ii_files/ for
21331    # template instantiation
21332    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21333    $rm out/* && rmdir out
21334    cd ..
21335    rmdir conftest
21336    $rm conftest*
21337
21338 fi
21339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21341
21342
21343 hard_links="nottested"
21344 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21345   # do not overwrite the value of need_locks provided by the user
21346   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21348   hard_links=yes
21349   $rm conftest*
21350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21351   touch conftest.a
21352   ln conftest.a conftest.b 2>&5 || hard_links=no
21353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21354   echo "$as_me:$LINENO: result: $hard_links" >&5
21355 echo "${ECHO_T}$hard_links" >&6
21356   if test "$hard_links" = no; then
21357     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21359     need_locks=warn
21360   fi
21361 else
21362   need_locks=no
21363 fi
21364
21365 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21367
21368   runpath_var=
21369   allow_undefined_flag_GCJ=
21370   enable_shared_with_static_runtimes_GCJ=no
21371   archive_cmds_GCJ=
21372   archive_expsym_cmds_GCJ=
21373   old_archive_From_new_cmds_GCJ=
21374   old_archive_from_expsyms_cmds_GCJ=
21375   export_dynamic_flag_spec_GCJ=
21376   whole_archive_flag_spec_GCJ=
21377   thread_safe_flag_spec_GCJ=
21378   hardcode_libdir_flag_spec_GCJ=
21379   hardcode_libdir_flag_spec_ld_GCJ=
21380   hardcode_libdir_separator_GCJ=
21381   hardcode_direct_GCJ=no
21382   hardcode_minus_L_GCJ=no
21383   hardcode_shlibpath_var_GCJ=unsupported
21384   link_all_deplibs_GCJ=unknown
21385   hardcode_automatic_GCJ=no
21386   module_cmds_GCJ=
21387   module_expsym_cmds_GCJ=
21388   always_export_symbols_GCJ=no
21389   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21390   # include_expsyms should be a list of space-separated symbols to be *always*
21391   # included in the symbol list
21392   include_expsyms_GCJ=
21393   # exclude_expsyms can be an extended regexp of symbols to exclude
21394   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21395   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21396   # as well as any symbol that contains `d'.
21397   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21398   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21399   # platforms (ab)use it in PIC code, but their linkers get confused if
21400   # the symbol is explicitly referenced.  Since portable code cannot
21401   # rely on this symbol name, it's probably fine to never include it in
21402   # preloaded symbol tables.
21403   extract_expsyms_cmds=
21404
21405   case $host_os in
21406   cygwin* | mingw* | pw32*)
21407     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21408     # When not using gcc, we currently assume that we are using
21409     # Microsoft Visual C++.
21410     if test "$GCC" != yes; then
21411       with_gnu_ld=no
21412     fi
21413     ;;
21414   openbsd*)
21415     with_gnu_ld=no
21416     ;;
21417   esac
21418
21419   ld_shlibs_GCJ=yes
21420   if test "$with_gnu_ld" = yes; then
21421     # If archive_cmds runs LD, not CC, wlarc should be empty
21422     wlarc='${wl}'
21423
21424     # See if GNU ld supports shared libraries.
21425     case $host_os in
21426     aix3* | aix4* | aix5*)
21427       # On AIX/PPC, the GNU linker is very broken
21428       if test "$host_cpu" != ia64; then
21429         ld_shlibs_GCJ=no
21430         cat <<EOF 1>&2
21431
21432 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21433 *** to be unable to reliably create shared libraries on AIX.
21434 *** Therefore, libtool is disabling shared libraries support.  If you
21435 *** really care for shared libraries, you may want to modify your PATH
21436 *** so that a non-GNU linker is found, and then restart.
21437
21438 EOF
21439       fi
21440       ;;
21441
21442     amigaos*)
21443       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)'
21444       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21445       hardcode_minus_L_GCJ=yes
21446
21447       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21448       # that the semantics of dynamic libraries on AmigaOS, at least up
21449       # to version 4, is to share data among multiple programs linked
21450       # with the same dynamic library.  Since this doesn't match the
21451       # behavior of shared libraries on other platforms, we can't use
21452       # them.
21453       ld_shlibs_GCJ=no
21454       ;;
21455
21456     beos*)
21457       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21458         allow_undefined_flag_GCJ=unsupported
21459         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21460         # support --undefined.  This deserves some investigation.  FIXME
21461         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21462       else
21463         ld_shlibs_GCJ=no
21464       fi
21465       ;;
21466
21467     cygwin* | mingw* | pw32*)
21468       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21469       # as there is no search path for DLLs.
21470       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21471       allow_undefined_flag_GCJ=unsupported
21472       always_export_symbols_GCJ=no
21473       enable_shared_with_static_runtimes_GCJ=yes
21474       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21475
21476       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21477         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21478         # If the export-symbols file already is a .def file (1st line
21479         # is EXPORTS), use it as is; otherwise, prepend...
21480         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21481           cp $export_symbols $output_objdir/$soname.def;
21482         else
21483           echo EXPORTS > $output_objdir/$soname.def;
21484           cat $export_symbols >> $output_objdir/$soname.def;
21485         fi~
21486         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21487       else
21488         ld_shlibs=no
21489       fi
21490       ;;
21491
21492     netbsd*)
21493       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21494         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21495         wlarc=
21496       else
21497         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21498         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21499       fi
21500       ;;
21501
21502     solaris* | sysv5*)
21503       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21504         ld_shlibs_GCJ=no
21505         cat <<EOF 1>&2
21506
21507 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21508 *** create shared libraries on Solaris systems.  Therefore, libtool
21509 *** is disabling shared libraries support.  We urge you to upgrade GNU
21510 *** binutils to release 2.9.1 or newer.  Another option is to modify
21511 *** your PATH or compiler configuration so that the native linker is
21512 *** used, and then restart.
21513
21514 EOF
21515       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21516         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21517         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21518       else
21519         ld_shlibs_GCJ=no
21520       fi
21521       ;;
21522
21523     sunos4*)
21524       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21525       wlarc=
21526       hardcode_direct_GCJ=yes
21527       hardcode_shlibpath_var_GCJ=no
21528       ;;
21529
21530   linux*)
21531     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21533         archive_cmds_GCJ="$tmp_archive_cmds"
21534       supports_anon_versioning=no
21535       case `$LD -v 2>/dev/null` in
21536         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21537         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21538         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21539         *\ 2.11.*) ;; # other 2.11 versions
21540         *) supports_anon_versioning=yes ;;
21541       esac
21542       if test $supports_anon_versioning = yes; then
21543         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21545 $echo "local: *; };" >> $output_objdir/$libname.ver~
21546         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21547       else
21548         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21549       fi
21550     else
21551       ld_shlibs_GCJ=no
21552     fi
21553     ;;
21554
21555     *)
21556       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21557         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21559       else
21560         ld_shlibs_GCJ=no
21561       fi
21562       ;;
21563     esac
21564
21565     if test "$ld_shlibs_GCJ" = yes; then
21566       runpath_var=LD_RUN_PATH
21567       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21568       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21569       # ancient GNU ld didn't support --whole-archive et. al.
21570       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21571         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21572       else
21573         whole_archive_flag_spec_GCJ=
21574       fi
21575     fi
21576   else
21577     # PORTME fill in a description of your system's linker (not GNU ld)
21578     case $host_os in
21579     aix3*)
21580       allow_undefined_flag_GCJ=unsupported
21581       always_export_symbols_GCJ=yes
21582       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'
21583       # Note: this linker hardcodes the directories in LIBPATH if there
21584       # are no directories specified by -L.
21585       hardcode_minus_L_GCJ=yes
21586       if test "$GCC" = yes && test -z "$link_static_flag"; then
21587         # Neither direct hardcoding nor static linking is supported with a
21588         # broken collect2.
21589         hardcode_direct_GCJ=unsupported
21590       fi
21591       ;;
21592
21593     aix4* | aix5*)
21594       if test "$host_cpu" = ia64; then
21595         # On IA64, the linker does run time linking by default, so we don't
21596         # have to do anything special.
21597         aix_use_runtimelinking=no
21598         exp_sym_flag='-Bexport'
21599         no_entry_flag=""
21600       else
21601         # If we're using GNU nm, then we don't want the "-C" option.
21602         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21603         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21604           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'
21605         else
21606           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'
21607         fi
21608         aix_use_runtimelinking=no
21609
21610         # Test if we are trying to use run time linking or normal
21611         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21612         # need to do runtime linking.
21613         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21614           for ld_flag in $LDFLAGS; do
21615           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21616             aix_use_runtimelinking=yes
21617             break
21618           fi
21619           done
21620         esac
21621
21622         exp_sym_flag='-bexport'
21623         no_entry_flag='-bnoentry'
21624       fi
21625
21626       # When large executables or shared objects are built, AIX ld can
21627       # have problems creating the table of contents.  If linking a library
21628       # or program results in "error TOC overflow" add -mminimal-toc to
21629       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21630       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21631
21632       archive_cmds_GCJ=''
21633       hardcode_direct_GCJ=yes
21634       hardcode_libdir_separator_GCJ=':'
21635       link_all_deplibs_GCJ=yes
21636
21637       if test "$GCC" = yes; then
21638         case $host_os in aix4.012|aix4.012.*)
21639         # We only want to do this on AIX 4.2 and lower, the check
21640         # below for broken collect2 doesn't work under 4.3+
21641           collect2name=`${CC} -print-prog-name=collect2`
21642           if test -f "$collect2name" && \
21643            strings "$collect2name" | grep resolve_lib_name >/dev/null
21644           then
21645           # We have reworked collect2
21646           hardcode_direct_GCJ=yes
21647           else
21648           # We have old collect2
21649           hardcode_direct_GCJ=unsupported
21650           # It fails to find uninstalled libraries when the uninstalled
21651           # path is not listed in the libpath.  Setting hardcode_minus_L
21652           # to unsupported forces relinking
21653           hardcode_minus_L_GCJ=yes
21654           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21655           hardcode_libdir_separator_GCJ=
21656           fi
21657         esac
21658         shared_flag='-shared'
21659       else
21660         # not using gcc
21661         if test "$host_cpu" = ia64; then
21662         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21663         # chokes on -Wl,-G. The following line is correct:
21664           shared_flag='-G'
21665         else
21666         if test "$aix_use_runtimelinking" = yes; then
21667             shared_flag='${wl}-G'
21668           else
21669             shared_flag='${wl}-bM:SRE'
21670         fi
21671         fi
21672       fi
21673
21674       # It seems that -bexpall does not export symbols beginning with
21675       # underscore (_), so it is better to generate a list of symbols to export.
21676       always_export_symbols_GCJ=yes
21677       if test "$aix_use_runtimelinking" = yes; then
21678         # Warning - without using the other runtime loading flags (-brtl),
21679         # -berok will link without error, but may produce a broken library.
21680         allow_undefined_flag_GCJ='-berok'
21681        # Determine the default libpath from the value encoded in an empty executable.
21682        cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688
21689 int
21690 main ()
21691 {
21692
21693   ;
21694   return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest.$ac_objext conftest$ac_exeext
21698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21699   (eval $ac_link) 2>conftest.er1
21700   ac_status=$?
21701   grep -v '^ *+' conftest.er1 >conftest.err
21702   rm -f conftest.er1
21703   cat conftest.err >&5
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); } &&
21706          { ac_try='test -z "$ac_c_werror_flag"
21707                          || test ! -s conftest.err'
21708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709   (eval $ac_try) 2>&5
21710   ac_status=$?
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); }; } &&
21713          { ac_try='test -s conftest$ac_exeext'
21714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715   (eval $ac_try) 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); }; }; then
21719
21720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21721 }'`
21722 # Check for a 64-bit object if we didn't find anything.
21723 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; }
21724 }'`; fi
21725 else
21726   echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 fi
21730 rm -f conftest.err conftest.$ac_objext \
21731       conftest$ac_exeext conftest.$ac_ext
21732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21733
21734        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21735         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"
21736        else
21737         if test "$host_cpu" = ia64; then
21738           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21739           allow_undefined_flag_GCJ="-z nodefs"
21740           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"
21741         else
21742          # Determine the default libpath from the value encoded in an empty executable.
21743          cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749
21750 int
21751 main ()
21752 {
21753
21754   ;
21755   return 0;
21756 }
21757 _ACEOF
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21760   (eval $ac_link) 2>conftest.er1
21761   ac_status=$?
21762   grep -v '^ *+' conftest.er1 >conftest.err
21763   rm -f conftest.er1
21764   cat conftest.err >&5
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); } &&
21767          { ac_try='test -z "$ac_c_werror_flag"
21768                          || test ! -s conftest.err'
21769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770   (eval $ac_try) 2>&5
21771   ac_status=$?
21772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); }; } &&
21774          { ac_try='test -s conftest$ac_exeext'
21775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776   (eval $ac_try) 2>&5
21777   ac_status=$?
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); }; }; then
21780
21781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21782 }'`
21783 # Check for a 64-bit object if we didn't find anything.
21784 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; }
21785 }'`; fi
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790 fi
21791 rm -f conftest.err conftest.$ac_objext \
21792       conftest$ac_exeext conftest.$ac_ext
21793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21794
21795          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21796           # Warning - without using the other run time loading flags,
21797           # -berok will link without error, but may produce a broken library.
21798           no_undefined_flag_GCJ=' ${wl}-bernotok'
21799           allow_undefined_flag_GCJ=' ${wl}-berok'
21800           # -bexpall does not export symbols beginning with underscore (_)
21801           always_export_symbols_GCJ=yes
21802           # Exported symbols can be pulled into shared objects from archives
21803           whole_archive_flag_spec_GCJ=' '
21804           archive_cmds_need_lc_GCJ=yes
21805           # This is similar to how AIX traditionally builds it's shared libraries.
21806           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'
21807         fi
21808       fi
21809       ;;
21810
21811     amigaos*)
21812       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)'
21813       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21814       hardcode_minus_L_GCJ=yes
21815       # see comment about different semantics on the GNU ld section
21816       ld_shlibs_GCJ=no
21817       ;;
21818
21819     bsdi[45]*)
21820       export_dynamic_flag_spec_GCJ=-rdynamic
21821       ;;
21822
21823     cygwin* | mingw* | pw32*)
21824       # When not using gcc, we currently assume that we are using
21825       # Microsoft Visual C++.
21826       # hardcode_libdir_flag_spec is actually meaningless, as there is
21827       # no search path for DLLs.
21828       hardcode_libdir_flag_spec_GCJ=' '
21829       allow_undefined_flag_GCJ=unsupported
21830       # Tell ltmain to make .lib files, not .a files.
21831       libext=lib
21832       # Tell ltmain to make .dll files, not .so files.
21833       shrext_cmds=".dll"
21834       # FIXME: Setting linknames here is a bad hack.
21835       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21836       # The linker will automatically build a .lib file if we build a DLL.
21837       old_archive_From_new_cmds_GCJ='true'
21838       # FIXME: Should let the user specify the lib program.
21839       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21840       fix_srcfile_path='`cygpath -w "$srcfile"`'
21841       enable_shared_with_static_runtimes_GCJ=yes
21842       ;;
21843
21844     darwin* | rhapsody*)
21845       case "$host_os" in
21846         rhapsody* | darwin1.[012])
21847          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21848          ;;
21849        *) # Darwin 1.3 on
21850          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21851            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21852          else
21853            case ${MACOSX_DEPLOYMENT_TARGET} in
21854              10.[012])
21855                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21856                ;;
21857              10.*)
21858                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21859                ;;
21860            esac
21861          fi
21862          ;;
21863       esac
21864       archive_cmds_need_lc_GCJ=no
21865       hardcode_direct_GCJ=no
21866       hardcode_automatic_GCJ=yes
21867       hardcode_shlibpath_var_GCJ=unsupported
21868       whole_archive_flag_spec_GCJ=''
21869       link_all_deplibs_GCJ=yes
21870     if test "$GCC" = yes ; then
21871         output_verbose_link_cmd='echo'
21872         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21873       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21874       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21875       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}'
21876       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}'
21877     else
21878       case "$cc_basename" in
21879         xlc*)
21880          output_verbose_link_cmd='echo'
21881          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21882          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21883           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21884          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}'
21885           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}'
21886           ;;
21887        *)
21888          ld_shlibs_GCJ=no
21889           ;;
21890       esac
21891     fi
21892       ;;
21893
21894     dgux*)
21895       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21896       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21897       hardcode_shlibpath_var_GCJ=no
21898       ;;
21899
21900     freebsd1*)
21901       ld_shlibs_GCJ=no
21902       ;;
21903
21904     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21905     # support.  Future versions do this automatically, but an explicit c++rt0.o
21906     # does not break anything, and helps significantly (at the cost of a little
21907     # extra space).
21908     freebsd2.2*)
21909       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21910       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911       hardcode_direct_GCJ=yes
21912       hardcode_shlibpath_var_GCJ=no
21913       ;;
21914
21915     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21916     freebsd2*)
21917       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21918       hardcode_direct_GCJ=yes
21919       hardcode_minus_L_GCJ=yes
21920       hardcode_shlibpath_var_GCJ=no
21921       ;;
21922
21923     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21924     freebsd* | kfreebsd*-gnu)
21925       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21926       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21927       hardcode_direct_GCJ=yes
21928       hardcode_shlibpath_var_GCJ=no
21929       ;;
21930
21931     hpux9*)
21932       if test "$GCC" = yes; then
21933         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'
21934       else
21935         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'
21936       fi
21937       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21938       hardcode_libdir_separator_GCJ=:
21939       hardcode_direct_GCJ=yes
21940
21941       # hardcode_minus_L: Not really in the search PATH,
21942       # but as the default location of the library.
21943       hardcode_minus_L_GCJ=yes
21944       export_dynamic_flag_spec_GCJ='${wl}-E'
21945       ;;
21946
21947     hpux10* | hpux11*)
21948       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21949         case "$host_cpu" in
21950         hppa*64*|ia64*)
21951           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21952           ;;
21953         *)
21954           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21955           ;;
21956         esac
21957       else
21958         case "$host_cpu" in
21959         hppa*64*|ia64*)
21960           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21961           ;;
21962         *)
21963           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21964           ;;
21965         esac
21966       fi
21967       if test "$with_gnu_ld" = no; then
21968         case "$host_cpu" in
21969         hppa*64*)
21970           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21971           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21972           hardcode_libdir_separator_GCJ=:
21973           hardcode_direct_GCJ=no
21974           hardcode_shlibpath_var_GCJ=no
21975           ;;
21976         ia64*)
21977           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21978           hardcode_direct_GCJ=no
21979           hardcode_shlibpath_var_GCJ=no
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         *)
21986           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21987           hardcode_libdir_separator_GCJ=:
21988           hardcode_direct_GCJ=yes
21989           export_dynamic_flag_spec_GCJ='${wl}-E'
21990
21991           # hardcode_minus_L: Not really in the search PATH,
21992           # but as the default location of the library.
21993           hardcode_minus_L_GCJ=yes
21994           ;;
21995         esac
21996       fi
21997       ;;
21998
21999     irix5* | irix6* | nonstopux*)
22000       if test "$GCC" = yes; then
22001         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'
22002       else
22003         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'
22004         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22005       fi
22006       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22007       hardcode_libdir_separator_GCJ=:
22008       link_all_deplibs_GCJ=yes
22009       ;;
22010
22011     netbsd*)
22012       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22013         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22014       else
22015         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22016       fi
22017       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018       hardcode_direct_GCJ=yes
22019       hardcode_shlibpath_var_GCJ=no
22020       ;;
22021
22022     newsos6)
22023       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22024       hardcode_direct_GCJ=yes
22025       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22026       hardcode_libdir_separator_GCJ=:
22027       hardcode_shlibpath_var_GCJ=no
22028       ;;
22029
22030     openbsd*)
22031       hardcode_direct_GCJ=yes
22032       hardcode_shlibpath_var_GCJ=no
22033       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22034         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22035         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22036         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22037         export_dynamic_flag_spec_GCJ='${wl}-E'
22038       else
22039        case $host_os in
22040          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22041            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22042            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22043            ;;
22044          *)
22045            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22046            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22047            ;;
22048        esac
22049       fi
22050       ;;
22051
22052     os2*)
22053       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22054       hardcode_minus_L_GCJ=yes
22055       allow_undefined_flag_GCJ=unsupported
22056       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'
22057       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22058       ;;
22059
22060     osf3*)
22061       if test "$GCC" = yes; then
22062         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22063         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'
22064       else
22065         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22066         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'
22067       fi
22068       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22069       hardcode_libdir_separator_GCJ=:
22070       ;;
22071
22072     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22073       if test "$GCC" = yes; then
22074         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22075         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'
22076         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22077       else
22078         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22079         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'
22080         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~
22081         $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'
22082
22083         # Both c and cxx compiler support -rpath directly
22084         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22085       fi
22086       hardcode_libdir_separator_GCJ=:
22087       ;;
22088
22089     sco3.2v5*)
22090       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22091       hardcode_shlibpath_var_GCJ=no
22092       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22093       runpath_var=LD_RUN_PATH
22094       hardcode_runpath_var=yes
22095       ;;
22096
22097     solaris*)
22098       no_undefined_flag_GCJ=' -z text'
22099       if test "$GCC" = yes; then
22100         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22101         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22102           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22103       else
22104         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22105         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22106         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22107       fi
22108       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22109       hardcode_shlibpath_var_GCJ=no
22110       case $host_os in
22111       solaris2.[0-5] | solaris2.[0-5].*) ;;
22112       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22113         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22114       esac
22115       link_all_deplibs_GCJ=yes
22116       ;;
22117
22118     sunos4*)
22119       if test "x$host_vendor" = xsequent; then
22120         # Use $CC to link under sequent, because it throws in some extra .o
22121         # files that make .init and .fini sections work.
22122         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22123       else
22124         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22125       fi
22126       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22127       hardcode_direct_GCJ=yes
22128       hardcode_minus_L_GCJ=yes
22129       hardcode_shlibpath_var_GCJ=no
22130       ;;
22131
22132     sysv4)
22133       case $host_vendor in
22134         sni)
22135           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22136           hardcode_direct_GCJ=yes # is this really true???
22137         ;;
22138         siemens)
22139           ## LD is ld it makes a PLAMLIB
22140           ## CC just makes a GrossModule.
22141           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22142           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22143           hardcode_direct_GCJ=no
22144         ;;
22145         motorola)
22146           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22148         ;;
22149       esac
22150       runpath_var='LD_RUN_PATH'
22151       hardcode_shlibpath_var_GCJ=no
22152       ;;
22153
22154     sysv4.3*)
22155       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22156       hardcode_shlibpath_var_GCJ=no
22157       export_dynamic_flag_spec_GCJ='-Bexport'
22158       ;;
22159
22160     sysv4*MP*)
22161       if test -d /usr/nec; then
22162         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22163         hardcode_shlibpath_var_GCJ=no
22164         runpath_var=LD_RUN_PATH
22165         hardcode_runpath_var=yes
22166         ld_shlibs_GCJ=yes
22167       fi
22168       ;;
22169
22170     sysv4.2uw2*)
22171       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22172       hardcode_direct_GCJ=yes
22173       hardcode_minus_L_GCJ=no
22174       hardcode_shlibpath_var_GCJ=no
22175       hardcode_runpath_var=yes
22176       runpath_var=LD_RUN_PATH
22177       ;;
22178
22179    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22180       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22181       if test "$GCC" = yes; then
22182         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22183       else
22184         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22185       fi
22186       runpath_var='LD_RUN_PATH'
22187       hardcode_shlibpath_var_GCJ=no
22188       ;;
22189
22190     sysv5*)
22191       no_undefined_flag_GCJ=' -z text'
22192       # $CC -shared without GNU ld will not create a library from C++
22193       # object files and a static libstdc++, better avoid it by now
22194       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22195       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22196                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22197       hardcode_libdir_flag_spec_GCJ=
22198       hardcode_shlibpath_var_GCJ=no
22199       runpath_var='LD_RUN_PATH'
22200       ;;
22201
22202     uts4*)
22203       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22205       hardcode_shlibpath_var_GCJ=no
22206       ;;
22207
22208     *)
22209       ld_shlibs_GCJ=no
22210       ;;
22211     esac
22212   fi
22213
22214 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22215 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22216 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22217
22218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22219 if test "$GCC" = yes; then
22220   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22221 fi
22222
22223 #
22224 # Do we need to explicitly link libc?
22225 #
22226 case "x$archive_cmds_need_lc_GCJ" in
22227 x|xyes)
22228   # Assume -lc should be added
22229   archive_cmds_need_lc_GCJ=yes
22230
22231   if test "$enable_shared" = yes && test "$GCC" = yes; then
22232     case $archive_cmds_GCJ in
22233     *'~'*)
22234       # FIXME: we may have to deal with multi-command sequences.
22235       ;;
22236     '$CC '*)
22237       # Test whether the compiler implicitly links with -lc since on some
22238       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22239       # to ld, don't add -lc before -lgcc.
22240       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22241 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22242       $rm conftest*
22243       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22244
22245       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22246   (eval $ac_compile) 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } 2>conftest.err; then
22250         soname=conftest
22251         lib=conftest
22252         libobjs=conftest.$ac_objext
22253         deplibs=
22254         wl=$lt_prog_compiler_wl_GCJ
22255         compiler_flags=-v
22256         linker_flags=-v
22257         verstring=
22258         output_objdir=.
22259         libname=conftest
22260         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22261         allow_undefined_flag_GCJ=
22262         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22263   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }
22267         then
22268           archive_cmds_need_lc_GCJ=no
22269         else
22270           archive_cmds_need_lc_GCJ=yes
22271         fi
22272         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22273       else
22274         cat conftest.err 1>&5
22275       fi
22276       $rm conftest*
22277       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22278 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22279       ;;
22280     esac
22281   fi
22282   ;;
22283 esac
22284
22285 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22286 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22287 library_names_spec=
22288 libname_spec='lib$name'
22289 soname_spec=
22290 shrext_cmds=".so"
22291 postinstall_cmds=
22292 postuninstall_cmds=
22293 finish_cmds=
22294 finish_eval=
22295 shlibpath_var=
22296 shlibpath_overrides_runpath=unknown
22297 version_type=none
22298 dynamic_linker="$host_os ld.so"
22299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22300 if test "$GCC" = yes; then
22301   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22302   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22303     # if the path contains ";" then we assume it to be the separator
22304     # otherwise default to the standard path separator (i.e. ":") - it is
22305     # assumed that no part of a normal pathname contains ";" but that should
22306     # okay in the real world where ";" in dirpaths is itself problematic.
22307     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22308   else
22309     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22310   fi
22311 else
22312   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22313 fi
22314 need_lib_prefix=unknown
22315 hardcode_into_libs=no
22316
22317 # when you set need_version to no, make sure it does not cause -set_version
22318 # flags to be left without arguments
22319 need_version=unknown
22320
22321 case $host_os in
22322 aix3*)
22323   version_type=linux
22324   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22325   shlibpath_var=LIBPATH
22326
22327   # AIX 3 has no versioning support, so we append a major version to the name.
22328   soname_spec='${libname}${release}${shared_ext}$major'
22329   ;;
22330
22331 aix4* | aix5*)
22332   version_type=linux
22333   need_lib_prefix=no
22334   need_version=no
22335   hardcode_into_libs=yes
22336   if test "$host_cpu" = ia64; then
22337     # AIX 5 supports IA64
22338     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22339     shlibpath_var=LD_LIBRARY_PATH
22340   else
22341     # With GCC up to 2.95.x, collect2 would create an import file
22342     # for dependence libraries.  The import file would start with
22343     # the line `#! .'.  This would cause the generated library to
22344     # depend on `.', always an invalid library.  This was fixed in
22345     # development snapshots of GCC prior to 3.0.
22346     case $host_os in
22347       aix4 | aix4.[01] | aix4.[01].*)
22348       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22349            echo ' yes '
22350            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22351         :
22352       else
22353         can_build_shared=no
22354       fi
22355       ;;
22356     esac
22357     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22358     # soname into executable. Probably we can add versioning support to
22359     # collect2, so additional links can be useful in future.
22360     if test "$aix_use_runtimelinking" = yes; then
22361       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22362       # instead of lib<name>.a to let people know that these are not
22363       # typical AIX shared libraries.
22364       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22365     else
22366       # We preserve .a as extension for shared libraries through AIX4.2
22367       # and later when we are not doing run time linking.
22368       library_names_spec='${libname}${release}.a $libname.a'
22369       soname_spec='${libname}${release}${shared_ext}$major'
22370     fi
22371     shlibpath_var=LIBPATH
22372   fi
22373   ;;
22374
22375 amigaos*)
22376   library_names_spec='$libname.ixlibrary $libname.a'
22377   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22378   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'
22379   ;;
22380
22381 beos*)
22382   library_names_spec='${libname}${shared_ext}'
22383   dynamic_linker="$host_os ld.so"
22384   shlibpath_var=LIBRARY_PATH
22385   ;;
22386
22387 bsdi[45]*)
22388   version_type=linux
22389   need_version=no
22390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22391   soname_spec='${libname}${release}${shared_ext}$major'
22392   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22393   shlibpath_var=LD_LIBRARY_PATH
22394   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22395   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22396   # the default ld.so.conf also contains /usr/contrib/lib and
22397   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22398   # libtool to hard-code these into programs
22399   ;;
22400
22401 cygwin* | mingw* | pw32*)
22402   version_type=windows
22403   shrext_cmds=".dll"
22404   need_version=no
22405   need_lib_prefix=no
22406
22407   case $GCC,$host_os in
22408   yes,cygwin* | yes,mingw* | yes,pw32*)
22409     library_names_spec='$libname.dll.a'
22410     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22411     postinstall_cmds='base_file=`basename \${file}`~
22412       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22413       dldir=$destdir/`dirname \$dlpath`~
22414       test -d \$dldir || mkdir -p \$dldir~
22415       $install_prog $dir/$dlname \$dldir/$dlname'
22416     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22417       dlpath=$dir/\$dldll~
22418        $rm \$dlpath'
22419     shlibpath_overrides_runpath=yes
22420
22421     case $host_os in
22422     cygwin*)
22423       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22424       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22425       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22426       ;;
22427     mingw*)
22428       # MinGW DLLs use traditional 'lib' prefix
22429       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22430       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22431       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22432         # It is most probably a Windows format PATH printed by
22433         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22434         # path with ; separators, and with drive letters. We can handle the
22435         # drive letters (cygwin fileutils understands them), so leave them,
22436         # especially as we might pass files found there to a mingw objdump,
22437         # which wouldn't understand a cygwinified path. Ahh.
22438         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22439       else
22440         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22441       fi
22442       ;;
22443     pw32*)
22444       # pw32 DLLs use 'pw' prefix rather than 'lib'
22445       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22446       ;;
22447     esac
22448     ;;
22449
22450   *)
22451     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22452     ;;
22453   esac
22454   dynamic_linker='Win32 ld.exe'
22455   # FIXME: first we should search . and the directory the executable is in
22456   shlibpath_var=PATH
22457   ;;
22458
22459 darwin* | rhapsody*)
22460   dynamic_linker="$host_os dyld"
22461   version_type=darwin
22462   need_lib_prefix=no
22463   need_version=no
22464   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22465   soname_spec='${libname}${release}${major}$shared_ext'
22466   shlibpath_overrides_runpath=yes
22467   shlibpath_var=DYLD_LIBRARY_PATH
22468   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22469   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22470   if test "$GCC" = yes; then
22471     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"`
22472   else
22473     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22474   fi
22475   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22476   ;;
22477
22478 dgux*)
22479   version_type=linux
22480   need_lib_prefix=no
22481   need_version=no
22482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22483   soname_spec='${libname}${release}${shared_ext}$major'
22484   shlibpath_var=LD_LIBRARY_PATH
22485   ;;
22486
22487 freebsd1*)
22488   dynamic_linker=no
22489   ;;
22490
22491 kfreebsd*-gnu)
22492   version_type=linux
22493   need_lib_prefix=no
22494   need_version=no
22495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22496   soname_spec='${libname}${release}${shared_ext}$major'
22497   shlibpath_var=LD_LIBRARY_PATH
22498   shlibpath_overrides_runpath=no
22499   hardcode_into_libs=yes
22500   dynamic_linker='GNU ld.so'
22501   ;;
22502
22503 freebsd*)
22504   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22505   version_type=freebsd-$objformat
22506   case $version_type in
22507     freebsd-elf*)
22508       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22509       need_version=no
22510       need_lib_prefix=no
22511       ;;
22512     freebsd-*)
22513       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22514       need_version=yes
22515       ;;
22516   esac
22517   shlibpath_var=LD_LIBRARY_PATH
22518   case $host_os in
22519   freebsd2*)
22520     shlibpath_overrides_runpath=yes
22521     ;;
22522   freebsd3.01* | freebsdelf3.01*)
22523     shlibpath_overrides_runpath=yes
22524     hardcode_into_libs=yes
22525     ;;
22526   *) # from 3.2 on
22527     shlibpath_overrides_runpath=no
22528     hardcode_into_libs=yes
22529     ;;
22530   esac
22531   ;;
22532
22533 gnu*)
22534   version_type=linux
22535   need_lib_prefix=no
22536   need_version=no
22537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22538   soname_spec='${libname}${release}${shared_ext}$major'
22539   shlibpath_var=LD_LIBRARY_PATH
22540   hardcode_into_libs=yes
22541   ;;
22542
22543 hpux9* | hpux10* | hpux11*)
22544   # Give a soname corresponding to the major version so that dld.sl refuses to
22545   # link against other versions.
22546   version_type=sunos
22547   need_lib_prefix=no
22548   need_version=no
22549   case "$host_cpu" in
22550   ia64*)
22551     shrext_cmds='.so'
22552     hardcode_into_libs=yes
22553     dynamic_linker="$host_os dld.so"
22554     shlibpath_var=LD_LIBRARY_PATH
22555     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22557     soname_spec='${libname}${release}${shared_ext}$major'
22558     if test "X$HPUX_IA64_MODE" = X32; then
22559       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22560     else
22561       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22562     fi
22563     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22564     ;;
22565    hppa*64*)
22566      shrext_cmds='.sl'
22567      hardcode_into_libs=yes
22568      dynamic_linker="$host_os dld.sl"
22569      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22570      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22574      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22575      ;;
22576    *)
22577     shrext_cmds='.sl'
22578     dynamic_linker="$host_os dld.sl"
22579     shlibpath_var=SHLIB_PATH
22580     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22582     soname_spec='${libname}${release}${shared_ext}$major'
22583     ;;
22584   esac
22585   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22586   postinstall_cmds='chmod 555 $lib'
22587   ;;
22588
22589 irix5* | irix6* | nonstopux*)
22590   case $host_os in
22591     nonstopux*) version_type=nonstopux ;;
22592     *)
22593         if test "$lt_cv_prog_gnu_ld" = yes; then
22594                 version_type=linux
22595         else
22596                 version_type=irix
22597         fi ;;
22598   esac
22599   need_lib_prefix=no
22600   need_version=no
22601   soname_spec='${libname}${release}${shared_ext}$major'
22602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22603   case $host_os in
22604   irix5* | nonstopux*)
22605     libsuff= shlibsuff=
22606     ;;
22607   *)
22608     case $LD in # libtool.m4 will add one of these switches to LD
22609     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22610       libsuff= shlibsuff= libmagic=32-bit;;
22611     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22612       libsuff=32 shlibsuff=N32 libmagic=N32;;
22613     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22614       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22615     *) libsuff= shlibsuff= libmagic=never-match;;
22616     esac
22617     ;;
22618   esac
22619   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22620   shlibpath_overrides_runpath=no
22621   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22622   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22623   hardcode_into_libs=yes
22624   ;;
22625
22626 # No shared lib support for Linux oldld, aout, or coff.
22627 linux*oldld* | linux*aout* | linux*coff*)
22628   dynamic_linker=no
22629   ;;
22630
22631 # This must be Linux ELF.
22632 linux*)
22633   version_type=linux
22634   need_lib_prefix=no
22635   need_version=no
22636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22637   soname_spec='${libname}${release}${shared_ext}$major'
22638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22639   shlibpath_var=LD_LIBRARY_PATH
22640   shlibpath_overrides_runpath=no
22641   # This implies no fast_install, which is unacceptable.
22642   # Some rework will be needed to allow for fast_install
22643   # before this can be enabled.
22644   hardcode_into_libs=yes
22645
22646   # Append ld.so.conf contents to the search path
22647   if test -f /etc/ld.so.conf; then
22648     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22649     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22650   fi
22651
22652   # We used to test for /lib/ld.so.1 and disable shared libraries on
22653   # powerpc, because MkLinux only supported shared libraries with the
22654   # GNU dynamic linker.  Since this was broken with cross compilers,
22655   # most powerpc-linux boxes support dynamic linking these days and
22656   # people can always --disable-shared, the test was removed, and we
22657   # assume the GNU/Linux dynamic linker is in use.
22658   dynamic_linker='GNU/Linux ld.so'
22659   ;;
22660
22661 knetbsd*-gnu)
22662   version_type=linux
22663   need_lib_prefix=no
22664   need_version=no
22665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22666   soname_spec='${libname}${release}${shared_ext}$major'
22667   shlibpath_var=LD_LIBRARY_PATH
22668   shlibpath_overrides_runpath=no
22669   hardcode_into_libs=yes
22670   dynamic_linker='GNU ld.so'
22671   ;;
22672
22673 netbsd*)
22674   version_type=sunos
22675   need_lib_prefix=no
22676   need_version=no
22677   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22679     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22680     dynamic_linker='NetBSD (a.out) ld.so'
22681   else
22682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22683     soname_spec='${libname}${release}${shared_ext}$major'
22684     dynamic_linker='NetBSD ld.elf_so'
22685   fi
22686   shlibpath_var=LD_LIBRARY_PATH
22687   shlibpath_overrides_runpath=yes
22688   hardcode_into_libs=yes
22689   ;;
22690
22691 newsos6)
22692   version_type=linux
22693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22694   shlibpath_var=LD_LIBRARY_PATH
22695   shlibpath_overrides_runpath=yes
22696   ;;
22697
22698 nto-qnx*)
22699   version_type=linux
22700   need_lib_prefix=no
22701   need_version=no
22702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22703   soname_spec='${libname}${release}${shared_ext}$major'
22704   shlibpath_var=LD_LIBRARY_PATH
22705   shlibpath_overrides_runpath=yes
22706   ;;
22707
22708 openbsd*)
22709   version_type=sunos
22710   need_lib_prefix=no
22711   need_version=no
22712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22713   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22714   shlibpath_var=LD_LIBRARY_PATH
22715   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22716     case $host_os in
22717       openbsd2.[89] | openbsd2.[89].*)
22718         shlibpath_overrides_runpath=no
22719         ;;
22720       *)
22721         shlibpath_overrides_runpath=yes
22722         ;;
22723       esac
22724   else
22725     shlibpath_overrides_runpath=yes
22726   fi
22727   ;;
22728
22729 os2*)
22730   libname_spec='$name'
22731   shrext_cmds=".dll"
22732   need_lib_prefix=no
22733   library_names_spec='$libname${shared_ext} $libname.a'
22734   dynamic_linker='OS/2 ld.exe'
22735   shlibpath_var=LIBPATH
22736   ;;
22737
22738 osf3* | osf4* | osf5*)
22739   version_type=osf
22740   need_lib_prefix=no
22741   need_version=no
22742   soname_spec='${libname}${release}${shared_ext}$major'
22743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22744   shlibpath_var=LD_LIBRARY_PATH
22745   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22746   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22747   ;;
22748
22749 sco3.2v5*)
22750   version_type=osf
22751   soname_spec='${libname}${release}${shared_ext}$major'
22752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22753   shlibpath_var=LD_LIBRARY_PATH
22754   ;;
22755
22756 solaris*)
22757   version_type=linux
22758   need_lib_prefix=no
22759   need_version=no
22760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22761   soname_spec='${libname}${release}${shared_ext}$major'
22762   shlibpath_var=LD_LIBRARY_PATH
22763   shlibpath_overrides_runpath=yes
22764   hardcode_into_libs=yes
22765   # ldd complains unless libraries are executable
22766   postinstall_cmds='chmod +x $lib'
22767   ;;
22768
22769 sunos4*)
22770   version_type=sunos
22771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22772   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22773   shlibpath_var=LD_LIBRARY_PATH
22774   shlibpath_overrides_runpath=yes
22775   if test "$with_gnu_ld" = yes; then
22776     need_lib_prefix=no
22777   fi
22778   need_version=yes
22779   ;;
22780
22781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22782   version_type=linux
22783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22784   soname_spec='${libname}${release}${shared_ext}$major'
22785   shlibpath_var=LD_LIBRARY_PATH
22786   case $host_vendor in
22787     sni)
22788       shlibpath_overrides_runpath=no
22789       need_lib_prefix=no
22790       export_dynamic_flag_spec='${wl}-Blargedynsym'
22791       runpath_var=LD_RUN_PATH
22792       ;;
22793     siemens)
22794       need_lib_prefix=no
22795       ;;
22796     motorola)
22797       need_lib_prefix=no
22798       need_version=no
22799       shlibpath_overrides_runpath=no
22800       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22801       ;;
22802   esac
22803   ;;
22804
22805 sysv4*MP*)
22806   if test -d /usr/nec ;then
22807     version_type=linux
22808     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22809     soname_spec='$libname${shared_ext}.$major'
22810     shlibpath_var=LD_LIBRARY_PATH
22811   fi
22812   ;;
22813
22814 uts4*)
22815   version_type=linux
22816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22817   soname_spec='${libname}${release}${shared_ext}$major'
22818   shlibpath_var=LD_LIBRARY_PATH
22819   ;;
22820
22821 *)
22822   dynamic_linker=no
22823   ;;
22824 esac
22825 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22826 echo "${ECHO_T}$dynamic_linker" >&6
22827 test "$dynamic_linker" = no && can_build_shared=no
22828
22829 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22830 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22831 hardcode_action_GCJ=
22832 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22833    test -n "$runpath_var_GCJ" || \
22834    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22835
22836   # We can hardcode non-existant directories.
22837   if test "$hardcode_direct_GCJ" != no &&
22838      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22839      # have to relink, otherwise we might link with an installed library
22840      # when we should be linking with a yet-to-be-installed one
22841      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22842      test "$hardcode_minus_L_GCJ" != no; then
22843     # Linking always hardcodes the temporary library directory.
22844     hardcode_action_GCJ=relink
22845   else
22846     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22847     hardcode_action_GCJ=immediate
22848   fi
22849 else
22850   # We cannot hardcode anything, or else we can only hardcode existing
22851   # directories.
22852   hardcode_action_GCJ=unsupported
22853 fi
22854 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22855 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22856
22857 if test "$hardcode_action_GCJ" = relink; then
22858   # Fast installation is not supported
22859   enable_fast_install=no
22860 elif test "$shlibpath_overrides_runpath" = yes ||
22861      test "$enable_shared" = no; then
22862   # Fast installation is not necessary
22863   enable_fast_install=needless
22864 fi
22865
22866 striplib=
22867 old_striplib=
22868 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22869 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22870 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22871   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22872   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22873   echo "$as_me:$LINENO: result: yes" >&5
22874 echo "${ECHO_T}yes" >&6
22875 else
22876 # FIXME - insert some real tests, host_os isn't really good enough
22877   case $host_os in
22878    darwin*)
22879        if test -n "$STRIP" ; then
22880          striplib="$STRIP -x"
22881          echo "$as_me:$LINENO: result: yes" >&5
22882 echo "${ECHO_T}yes" >&6
22883        else
22884   echo "$as_me:$LINENO: result: no" >&5
22885 echo "${ECHO_T}no" >&6
22886 fi
22887        ;;
22888    *)
22889   echo "$as_me:$LINENO: result: no" >&5
22890 echo "${ECHO_T}no" >&6
22891     ;;
22892   esac
22893 fi
22894
22895 if test "x$enable_dlopen" != xyes; then
22896   enable_dlopen=unknown
22897   enable_dlopen_self=unknown
22898   enable_dlopen_self_static=unknown
22899 else
22900   lt_cv_dlopen=no
22901   lt_cv_dlopen_libs=
22902
22903   case $host_os in
22904   beos*)
22905     lt_cv_dlopen="load_add_on"
22906     lt_cv_dlopen_libs=
22907     lt_cv_dlopen_self=yes
22908     ;;
22909
22910   mingw* | pw32*)
22911     lt_cv_dlopen="LoadLibrary"
22912     lt_cv_dlopen_libs=
22913    ;;
22914
22915   cygwin*)
22916     lt_cv_dlopen="dlopen"
22917     lt_cv_dlopen_libs=
22918    ;;
22919
22920   darwin*)
22921   # if libdl is installed we need to link against it
22922     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22923 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22924 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22925   echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927   ac_check_lib_save_LIBS=$LIBS
22928 LIBS="-ldl  $LIBS"
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935
22936 /* Override any gcc2 internal prototype to avoid an error.  */
22937 #ifdef __cplusplus
22938 extern "C"
22939 #endif
22940 /* We use char because int might match the return type of a gcc2
22941    builtin and then its argument prototype would still apply.  */
22942 char dlopen ();
22943 int
22944 main ()
22945 {
22946 dlopen ();
22947   ;
22948   return 0;
22949 }
22950 _ACEOF
22951 rm -f conftest.$ac_objext conftest$ac_exeext
22952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22953   (eval $ac_link) 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } &&
22960          { ac_try='test -z "$ac_c_werror_flag"
22961                          || test ! -s conftest.err'
22962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963   (eval $ac_try) 2>&5
22964   ac_status=$?
22965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966   (exit $ac_status); }; } &&
22967          { ac_try='test -s conftest$ac_exeext'
22968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969   (eval $ac_try) 2>&5
22970   ac_status=$?
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); }; }; then
22973   ac_cv_lib_dl_dlopen=yes
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978 ac_cv_lib_dl_dlopen=no
22979 fi
22980 rm -f conftest.err conftest.$ac_objext \
22981       conftest$ac_exeext conftest.$ac_ext
22982 LIBS=$ac_check_lib_save_LIBS
22983 fi
22984 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22985 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22986 if test $ac_cv_lib_dl_dlopen = yes; then
22987   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22988 else
22989
22990     lt_cv_dlopen="dyld"
22991     lt_cv_dlopen_libs=
22992     lt_cv_dlopen_self=yes
22993
22994 fi
22995
22996    ;;
22997
22998   *)
22999     echo "$as_me:$LINENO: checking for shl_load" >&5
23000 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23001 if test "${ac_cv_func_shl_load+set}" = set; then
23002   echo $ECHO_N "(cached) $ECHO_C" >&6
23003 else
23004   cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23012 #define shl_load innocuous_shl_load
23013
23014 /* System header to define __stub macros and hopefully few prototypes,
23015     which can conflict with char shl_load (); below.
23016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23017     <limits.h> exists even on freestanding compilers.  */
23018
23019 #ifdef __STDC__
23020 # include <limits.h>
23021 #else
23022 # include <assert.h>
23023 #endif
23024
23025 #undef shl_load
23026
23027 /* Override any gcc2 internal prototype to avoid an error.  */
23028 #ifdef __cplusplus
23029 extern "C"
23030 {
23031 #endif
23032 /* We use char because int might match the return type of a gcc2
23033    builtin and then its argument prototype would still apply.  */
23034 char shl_load ();
23035 /* The GNU C library defines this for functions which it implements
23036     to always fail with ENOSYS.  Some functions are actually named
23037     something starting with __ and the normal name is an alias.  */
23038 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23039 choke me
23040 #else
23041 char (*f) () = shl_load;
23042 #endif
23043 #ifdef __cplusplus
23044 }
23045 #endif
23046
23047 int
23048 main ()
23049 {
23050 return f != shl_load;
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23057   (eval $ac_link) 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } &&
23064          { ac_try='test -z "$ac_c_werror_flag"
23065                          || test ! -s conftest.err'
23066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067   (eval $ac_try) 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); }; } &&
23071          { ac_try='test -s conftest$ac_exeext'
23072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073   (eval $ac_try) 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; }; then
23077   ac_cv_func_shl_load=yes
23078 else
23079   echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082 ac_cv_func_shl_load=no
23083 fi
23084 rm -f conftest.err conftest.$ac_objext \
23085       conftest$ac_exeext conftest.$ac_ext
23086 fi
23087 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23088 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23089 if test $ac_cv_func_shl_load = yes; then
23090   lt_cv_dlopen="shl_load"
23091 else
23092   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23093 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23094 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23095   echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097   ac_check_lib_save_LIBS=$LIBS
23098 LIBS="-ldld  $LIBS"
23099 cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105
23106 /* Override any gcc2 internal prototype to avoid an error.  */
23107 #ifdef __cplusplus
23108 extern "C"
23109 #endif
23110 /* We use char because int might match the return type of a gcc2
23111    builtin and then its argument prototype would still apply.  */
23112 char shl_load ();
23113 int
23114 main ()
23115 {
23116 shl_load ();
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123   (eval $ac_link) 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } &&
23130          { ac_try='test -z "$ac_c_werror_flag"
23131                          || test ! -s conftest.err'
23132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133   (eval $ac_try) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; } &&
23137          { ac_try='test -s conftest$ac_exeext'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; }; then
23143   ac_cv_lib_dld_shl_load=yes
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 ac_cv_lib_dld_shl_load=no
23149 fi
23150 rm -f conftest.err conftest.$ac_objext \
23151       conftest$ac_exeext conftest.$ac_ext
23152 LIBS=$ac_check_lib_save_LIBS
23153 fi
23154 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23155 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23156 if test $ac_cv_lib_dld_shl_load = yes; then
23157   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23158 else
23159   echo "$as_me:$LINENO: checking for dlopen" >&5
23160 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23161 if test "${ac_cv_func_dlopen+set}" = set; then
23162   echo $ECHO_N "(cached) $ECHO_C" >&6
23163 else
23164   cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h.  */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h.  */
23170 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23172 #define dlopen innocuous_dlopen
23173
23174 /* System header to define __stub macros and hopefully few prototypes,
23175     which can conflict with char dlopen (); below.
23176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23177     <limits.h> exists even on freestanding compilers.  */
23178
23179 #ifdef __STDC__
23180 # include <limits.h>
23181 #else
23182 # include <assert.h>
23183 #endif
23184
23185 #undef dlopen
23186
23187 /* Override any gcc2 internal prototype to avoid an error.  */
23188 #ifdef __cplusplus
23189 extern "C"
23190 {
23191 #endif
23192 /* We use char because int might match the return type of a gcc2
23193    builtin and then its argument prototype would still apply.  */
23194 char dlopen ();
23195 /* The GNU C library defines this for functions which it implements
23196     to always fail with ENOSYS.  Some functions are actually named
23197     something starting with __ and the normal name is an alias.  */
23198 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23199 choke me
23200 #else
23201 char (*f) () = dlopen;
23202 #endif
23203 #ifdef __cplusplus
23204 }
23205 #endif
23206
23207 int
23208 main ()
23209 {
23210 return f != dlopen;
23211   ;
23212   return 0;
23213 }
23214 _ACEOF
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217   (eval $ac_link) 2>conftest.er1
23218   ac_status=$?
23219   grep -v '^ *+' conftest.er1 >conftest.err
23220   rm -f conftest.er1
23221   cat conftest.err >&5
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); } &&
23224          { ac_try='test -z "$ac_c_werror_flag"
23225                          || test ! -s conftest.err'
23226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227   (eval $ac_try) 2>&5
23228   ac_status=$?
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); }; } &&
23231          { ac_try='test -s conftest$ac_exeext'
23232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233   (eval $ac_try) 2>&5
23234   ac_status=$?
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); }; }; then
23237   ac_cv_func_dlopen=yes
23238 else
23239   echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23241
23242 ac_cv_func_dlopen=no
23243 fi
23244 rm -f conftest.err conftest.$ac_objext \
23245       conftest$ac_exeext conftest.$ac_ext
23246 fi
23247 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23248 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23249 if test $ac_cv_func_dlopen = yes; then
23250   lt_cv_dlopen="dlopen"
23251 else
23252   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23253 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23255   echo $ECHO_N "(cached) $ECHO_C" >&6
23256 else
23257   ac_check_lib_save_LIBS=$LIBS
23258 LIBS="-ldl  $LIBS"
23259 cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h.  */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h.  */
23265
23266 /* Override any gcc2 internal prototype to avoid an error.  */
23267 #ifdef __cplusplus
23268 extern "C"
23269 #endif
23270 /* We use char because int might match the return type of a gcc2
23271    builtin and then its argument prototype would still apply.  */
23272 char dlopen ();
23273 int
23274 main ()
23275 {
23276 dlopen ();
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283   (eval $ac_link) 2>conftest.er1
23284   ac_status=$?
23285   grep -v '^ *+' conftest.er1 >conftest.err
23286   rm -f conftest.er1
23287   cat conftest.err >&5
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } &&
23290          { ac_try='test -z "$ac_c_werror_flag"
23291                          || test ! -s conftest.err'
23292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293   (eval $ac_try) 2>&5
23294   ac_status=$?
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); }; } &&
23297          { ac_try='test -s conftest$ac_exeext'
23298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299   (eval $ac_try) 2>&5
23300   ac_status=$?
23301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); }; }; then
23303   ac_cv_lib_dl_dlopen=yes
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 ac_cv_lib_dl_dlopen=no
23309 fi
23310 rm -f conftest.err conftest.$ac_objext \
23311       conftest$ac_exeext conftest.$ac_ext
23312 LIBS=$ac_check_lib_save_LIBS
23313 fi
23314 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23315 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23316 if test $ac_cv_lib_dl_dlopen = yes; then
23317   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23318 else
23319   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23320 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23321 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23322   echo $ECHO_N "(cached) $ECHO_C" >&6
23323 else
23324   ac_check_lib_save_LIBS=$LIBS
23325 LIBS="-lsvld  $LIBS"
23326 cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h.  */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h.  */
23332
23333 /* Override any gcc2 internal prototype to avoid an error.  */
23334 #ifdef __cplusplus
23335 extern "C"
23336 #endif
23337 /* We use char because int might match the return type of a gcc2
23338    builtin and then its argument prototype would still apply.  */
23339 char dlopen ();
23340 int
23341 main ()
23342 {
23343 dlopen ();
23344   ;
23345   return 0;
23346 }
23347 _ACEOF
23348 rm -f conftest.$ac_objext conftest$ac_exeext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23350   (eval $ac_link) 2>conftest.er1
23351   ac_status=$?
23352   grep -v '^ *+' conftest.er1 >conftest.err
23353   rm -f conftest.er1
23354   cat conftest.err >&5
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); } &&
23357          { ac_try='test -z "$ac_c_werror_flag"
23358                          || test ! -s conftest.err'
23359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360   (eval $ac_try) 2>&5
23361   ac_status=$?
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); }; } &&
23364          { ac_try='test -s conftest$ac_exeext'
23365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366   (eval $ac_try) 2>&5
23367   ac_status=$?
23368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369   (exit $ac_status); }; }; then
23370   ac_cv_lib_svld_dlopen=yes
23371 else
23372   echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375 ac_cv_lib_svld_dlopen=no
23376 fi
23377 rm -f conftest.err conftest.$ac_objext \
23378       conftest$ac_exeext conftest.$ac_ext
23379 LIBS=$ac_check_lib_save_LIBS
23380 fi
23381 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23382 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23383 if test $ac_cv_lib_svld_dlopen = yes; then
23384   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23385 else
23386   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23387 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23388 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23389   echo $ECHO_N "(cached) $ECHO_C" >&6
23390 else
23391   ac_check_lib_save_LIBS=$LIBS
23392 LIBS="-ldld  $LIBS"
23393 cat >conftest.$ac_ext <<_ACEOF
23394 /* confdefs.h.  */
23395 _ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h.  */
23399
23400 /* Override any gcc2 internal prototype to avoid an error.  */
23401 #ifdef __cplusplus
23402 extern "C"
23403 #endif
23404 /* We use char because int might match the return type of a gcc2
23405    builtin and then its argument prototype would still apply.  */
23406 char dld_link ();
23407 int
23408 main ()
23409 {
23410 dld_link ();
23411   ;
23412   return 0;
23413 }
23414 _ACEOF
23415 rm -f conftest.$ac_objext conftest$ac_exeext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23417   (eval $ac_link) 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } &&
23424          { ac_try='test -z "$ac_c_werror_flag"
23425                          || test ! -s conftest.err'
23426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427   (eval $ac_try) 2>&5
23428   ac_status=$?
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); }; } &&
23431          { ac_try='test -s conftest$ac_exeext'
23432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433   (eval $ac_try) 2>&5
23434   ac_status=$?
23435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436   (exit $ac_status); }; }; then
23437   ac_cv_lib_dld_dld_link=yes
23438 else
23439   echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23441
23442 ac_cv_lib_dld_dld_link=no
23443 fi
23444 rm -f conftest.err conftest.$ac_objext \
23445       conftest$ac_exeext conftest.$ac_ext
23446 LIBS=$ac_check_lib_save_LIBS
23447 fi
23448 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23449 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23450 if test $ac_cv_lib_dld_dld_link = yes; then
23451   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23452 fi
23453
23454
23455 fi
23456
23457
23458 fi
23459
23460
23461 fi
23462
23463
23464 fi
23465
23466
23467 fi
23468
23469     ;;
23470   esac
23471
23472   if test "x$lt_cv_dlopen" != xno; then
23473     enable_dlopen=yes
23474   else
23475     enable_dlopen=no
23476   fi
23477
23478   case $lt_cv_dlopen in
23479   dlopen)
23480     save_CPPFLAGS="$CPPFLAGS"
23481     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23482
23483     save_LDFLAGS="$LDFLAGS"
23484     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23485
23486     save_LIBS="$LIBS"
23487     LIBS="$lt_cv_dlopen_libs $LIBS"
23488
23489     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23490 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23491 if test "${lt_cv_dlopen_self+set}" = set; then
23492   echo $ECHO_N "(cached) $ECHO_C" >&6
23493 else
23494           if test "$cross_compiling" = yes; then :
23495   lt_cv_dlopen_self=cross
23496 else
23497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23498   lt_status=$lt_dlunknown
23499   cat > conftest.$ac_ext <<EOF
23500 #line 23500 "configure"
23501 #include "confdefs.h"
23502
23503 #if HAVE_DLFCN_H
23504 #include <dlfcn.h>
23505 #endif
23506
23507 #include <stdio.h>
23508
23509 #ifdef RTLD_GLOBAL
23510 #  define LT_DLGLOBAL           RTLD_GLOBAL
23511 #else
23512 #  ifdef DL_GLOBAL
23513 #    define LT_DLGLOBAL         DL_GLOBAL
23514 #  else
23515 #    define LT_DLGLOBAL         0
23516 #  endif
23517 #endif
23518
23519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23520    find out it does not work in some platform. */
23521 #ifndef LT_DLLAZY_OR_NOW
23522 #  ifdef RTLD_LAZY
23523 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23524 #  else
23525 #    ifdef DL_LAZY
23526 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23527 #    else
23528 #      ifdef RTLD_NOW
23529 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23530 #      else
23531 #        ifdef DL_NOW
23532 #          define LT_DLLAZY_OR_NOW      DL_NOW
23533 #        else
23534 #          define LT_DLLAZY_OR_NOW      0
23535 #        endif
23536 #      endif
23537 #    endif
23538 #  endif
23539 #endif
23540
23541 #ifdef __cplusplus
23542 extern "C" void exit (int);
23543 #endif
23544
23545 void fnord() { int i=42;}
23546 int main ()
23547 {
23548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23549   int status = $lt_dlunknown;
23550
23551   if (self)
23552     {
23553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23554       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23555       /* dlclose (self); */
23556     }
23557
23558     exit (status);
23559 }
23560 EOF
23561   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562   (eval $ac_link) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23566     (./conftest; exit; ) 2>/dev/null
23567     lt_status=$?
23568     case x$lt_status in
23569       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23570       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23571       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23572     esac
23573   else :
23574     # compilation failed
23575     lt_cv_dlopen_self=no
23576   fi
23577 fi
23578 rm -fr conftest*
23579
23580
23581 fi
23582 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23583 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23584
23585     if test "x$lt_cv_dlopen_self" = xyes; then
23586       LDFLAGS="$LDFLAGS $link_static_flag"
23587       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23588 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23589 if test "${lt_cv_dlopen_self_static+set}" = set; then
23590   echo $ECHO_N "(cached) $ECHO_C" >&6
23591 else
23592           if test "$cross_compiling" = yes; then :
23593   lt_cv_dlopen_self_static=cross
23594 else
23595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23596   lt_status=$lt_dlunknown
23597   cat > conftest.$ac_ext <<EOF
23598 #line 23598 "configure"
23599 #include "confdefs.h"
23600
23601 #if HAVE_DLFCN_H
23602 #include <dlfcn.h>
23603 #endif
23604
23605 #include <stdio.h>
23606
23607 #ifdef RTLD_GLOBAL
23608 #  define LT_DLGLOBAL           RTLD_GLOBAL
23609 #else
23610 #  ifdef DL_GLOBAL
23611 #    define LT_DLGLOBAL         DL_GLOBAL
23612 #  else
23613 #    define LT_DLGLOBAL         0
23614 #  endif
23615 #endif
23616
23617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23618    find out it does not work in some platform. */
23619 #ifndef LT_DLLAZY_OR_NOW
23620 #  ifdef RTLD_LAZY
23621 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23622 #  else
23623 #    ifdef DL_LAZY
23624 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23625 #    else
23626 #      ifdef RTLD_NOW
23627 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23628 #      else
23629 #        ifdef DL_NOW
23630 #          define LT_DLLAZY_OR_NOW      DL_NOW
23631 #        else
23632 #          define LT_DLLAZY_OR_NOW      0
23633 #        endif
23634 #      endif
23635 #    endif
23636 #  endif
23637 #endif
23638
23639 #ifdef __cplusplus
23640 extern "C" void exit (int);
23641 #endif
23642
23643 void fnord() { int i=42;}
23644 int main ()
23645 {
23646   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23647   int status = $lt_dlunknown;
23648
23649   if (self)
23650     {
23651       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23652       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23653       /* dlclose (self); */
23654     }
23655
23656     exit (status);
23657 }
23658 EOF
23659   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23660   (eval $ac_link) 2>&5
23661   ac_status=$?
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23664     (./conftest; exit; ) 2>/dev/null
23665     lt_status=$?
23666     case x$lt_status in
23667       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23668       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23669       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23670     esac
23671   else :
23672     # compilation failed
23673     lt_cv_dlopen_self_static=no
23674   fi
23675 fi
23676 rm -fr conftest*
23677
23678
23679 fi
23680 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23681 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23682     fi
23683
23684     CPPFLAGS="$save_CPPFLAGS"
23685     LDFLAGS="$save_LDFLAGS"
23686     LIBS="$save_LIBS"
23687     ;;
23688   esac
23689
23690   case $lt_cv_dlopen_self in
23691   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23692   *) enable_dlopen_self=unknown ;;
23693   esac
23694
23695   case $lt_cv_dlopen_self_static in
23696   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23697   *) enable_dlopen_self_static=unknown ;;
23698   esac
23699 fi
23700
23701
23702 # The else clause should only fire when bootstrapping the
23703 # libtool distribution, otherwise you forgot to ship ltmain.sh
23704 # with your package, and you will get complaints that there are
23705 # no rules to generate ltmain.sh.
23706 if test -f "$ltmain"; then
23707   # See if we are running on zsh, and set the options which allow our commands through
23708   # without removal of \ escapes.
23709   if test -n "${ZSH_VERSION+set}" ; then
23710     setopt NO_GLOB_SUBST
23711   fi
23712   # Now quote all the things that may contain metacharacters while being
23713   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23714   # variables and quote the copies for generation of the libtool script.
23715   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23716     SED SHELL STRIP \
23717     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23718     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23719     deplibs_check_method reload_flag reload_cmds need_locks \
23720     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23721     lt_cv_sys_global_symbol_to_c_name_address \
23722     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23723     old_postinstall_cmds old_postuninstall_cmds \
23724     compiler_GCJ \
23725     CC_GCJ \
23726     LD_GCJ \
23727     lt_prog_compiler_wl_GCJ \
23728     lt_prog_compiler_pic_GCJ \
23729     lt_prog_compiler_static_GCJ \
23730     lt_prog_compiler_no_builtin_flag_GCJ \
23731     export_dynamic_flag_spec_GCJ \
23732     thread_safe_flag_spec_GCJ \
23733     whole_archive_flag_spec_GCJ \
23734     enable_shared_with_static_runtimes_GCJ \
23735     old_archive_cmds_GCJ \
23736     old_archive_from_new_cmds_GCJ \
23737     predep_objects_GCJ \
23738     postdep_objects_GCJ \
23739     predeps_GCJ \
23740     postdeps_GCJ \
23741     compiler_lib_search_path_GCJ \
23742     archive_cmds_GCJ \
23743     archive_expsym_cmds_GCJ \
23744     postinstall_cmds_GCJ \
23745     postuninstall_cmds_GCJ \
23746     old_archive_from_expsyms_cmds_GCJ \
23747     allow_undefined_flag_GCJ \
23748     no_undefined_flag_GCJ \
23749     export_symbols_cmds_GCJ \
23750     hardcode_libdir_flag_spec_GCJ \
23751     hardcode_libdir_flag_spec_ld_GCJ \
23752     hardcode_libdir_separator_GCJ \
23753     hardcode_automatic_GCJ \
23754     module_cmds_GCJ \
23755     module_expsym_cmds_GCJ \
23756     lt_cv_prog_compiler_c_o_GCJ \
23757     exclude_expsyms_GCJ \
23758     include_expsyms_GCJ; do
23759
23760     case $var in
23761     old_archive_cmds_GCJ | \
23762     old_archive_from_new_cmds_GCJ | \
23763     archive_cmds_GCJ | \
23764     archive_expsym_cmds_GCJ | \
23765     module_cmds_GCJ | \
23766     module_expsym_cmds_GCJ | \
23767     old_archive_from_expsyms_cmds_GCJ | \
23768     export_symbols_cmds_GCJ | \
23769     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23770     postinstall_cmds | postuninstall_cmds | \
23771     old_postinstall_cmds | old_postuninstall_cmds | \
23772     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23773       # Double-quote double-evaled strings.
23774       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23775       ;;
23776     *)
23777       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23778       ;;
23779     esac
23780   done
23781
23782   case $lt_echo in
23783   *'\$0 --fallback-echo"')
23784     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23785     ;;
23786   esac
23787
23788 cfgfile="$ofile"
23789
23790   cat <<__EOF__ >> "$cfgfile"
23791 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23792
23793 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23794
23795 # Shell to use when invoking shell scripts.
23796 SHELL=$lt_SHELL
23797
23798 # Whether or not to build shared libraries.
23799 build_libtool_libs=$enable_shared
23800
23801 # Whether or not to build static libraries.
23802 build_old_libs=$enable_static
23803
23804 # Whether or not to add -lc for building shared libraries.
23805 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23806
23807 # Whether or not to disallow shared libs when runtime libs are static
23808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23809
23810 # Whether or not to optimize for fast installation.
23811 fast_install=$enable_fast_install
23812
23813 # The host system.
23814 host_alias=$host_alias
23815 host=$host
23816
23817 # An echo program that does not interpret backslashes.
23818 echo=$lt_echo
23819
23820 # The archiver.
23821 AR=$lt_AR
23822 AR_FLAGS=$lt_AR_FLAGS
23823
23824 # A C compiler.
23825 LTCC=$lt_LTCC
23826
23827 # A language-specific compiler.
23828 CC=$lt_compiler_GCJ
23829
23830 # Is the compiler the GNU C compiler?
23831 with_gcc=$GCC_GCJ
23832
23833 # An ERE matcher.
23834 EGREP=$lt_EGREP
23835
23836 # The linker used to build libraries.
23837 LD=$lt_LD_GCJ
23838
23839 # Whether we need hard or soft links.
23840 LN_S=$lt_LN_S
23841
23842 # A BSD-compatible nm program.
23843 NM=$lt_NM
23844
23845 # A symbol stripping program
23846 STRIP=$lt_STRIP
23847
23848 # Used to examine libraries when file_magic_cmd begins "file"
23849 MAGIC_CMD=$MAGIC_CMD
23850
23851 # Used on cygwin: DLL creation program.
23852 DLLTOOL="$DLLTOOL"
23853
23854 # Used on cygwin: object dumper.
23855 OBJDUMP="$OBJDUMP"
23856
23857 # Used on cygwin: assembler.
23858 AS="$AS"
23859
23860 # The name of the directory that contains temporary libtool files.
23861 objdir=$objdir
23862
23863 # How to create reloadable object files.
23864 reload_flag=$lt_reload_flag
23865 reload_cmds=$lt_reload_cmds
23866
23867 # How to pass a linker flag through the compiler.
23868 wl=$lt_lt_prog_compiler_wl_GCJ
23869
23870 # Object file suffix (normally "o").
23871 objext="$ac_objext"
23872
23873 # Old archive suffix (normally "a").
23874 libext="$libext"
23875
23876 # Shared library suffix (normally ".so").
23877 shrext_cmds='$shrext_cmds'
23878
23879 # Executable file suffix (normally "").
23880 exeext="$exeext"
23881
23882 # Additional compiler flags for building library objects.
23883 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23884 pic_mode=$pic_mode
23885
23886 # What is the maximum length of a command?
23887 max_cmd_len=$lt_cv_sys_max_cmd_len
23888
23889 # Does compiler simultaneously support -c and -o options?
23890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23891
23892 # Must we lock files when doing compilation ?
23893 need_locks=$lt_need_locks
23894
23895 # Do we need the lib prefix for modules?
23896 need_lib_prefix=$need_lib_prefix
23897
23898 # Do we need a version for libraries?
23899 need_version=$need_version
23900
23901 # Whether dlopen is supported.
23902 dlopen_support=$enable_dlopen
23903
23904 # Whether dlopen of programs is supported.
23905 dlopen_self=$enable_dlopen_self
23906
23907 # Whether dlopen of statically linked programs is supported.
23908 dlopen_self_static=$enable_dlopen_self_static
23909
23910 # Compiler flag to prevent dynamic linking.
23911 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23912
23913 # Compiler flag to turn off builtin functions.
23914 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23915
23916 # Compiler flag to allow reflexive dlopens.
23917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23918
23919 # Compiler flag to generate shared objects directly from archives.
23920 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23921
23922 # Compiler flag to generate thread-safe objects.
23923 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23924
23925 # Library versioning type.
23926 version_type=$version_type
23927
23928 # Format of library name prefix.
23929 libname_spec=$lt_libname_spec
23930
23931 # List of archive names.  First name is the real one, the rest are links.
23932 # The last name is the one that the linker finds with -lNAME.
23933 library_names_spec=$lt_library_names_spec
23934
23935 # The coded name of the library, if different from the real name.
23936 soname_spec=$lt_soname_spec
23937
23938 # Commands used to build and install an old-style archive.
23939 RANLIB=$lt_RANLIB
23940 old_archive_cmds=$lt_old_archive_cmds_GCJ
23941 old_postinstall_cmds=$lt_old_postinstall_cmds
23942 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23943
23944 # Create an old-style archive from a shared archive.
23945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23946
23947 # Create a temporary old-style archive to link instead of a shared archive.
23948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23949
23950 # Commands used to build and install a shared archive.
23951 archive_cmds=$lt_archive_cmds_GCJ
23952 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23953 postinstall_cmds=$lt_postinstall_cmds
23954 postuninstall_cmds=$lt_postuninstall_cmds
23955
23956 # Commands used to build a loadable module (assumed same as above if empty)
23957 module_cmds=$lt_module_cmds_GCJ
23958 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23959
23960 # Commands to strip libraries.
23961 old_striplib=$lt_old_striplib
23962 striplib=$lt_striplib
23963
23964 # Dependencies to place before the objects being linked to create a
23965 # shared library.
23966 predep_objects=$lt_predep_objects_GCJ
23967
23968 # Dependencies to place after the objects being linked to create a
23969 # shared library.
23970 postdep_objects=$lt_postdep_objects_GCJ
23971
23972 # Dependencies to place before the objects being linked to create a
23973 # shared library.
23974 predeps=$lt_predeps_GCJ
23975
23976 # Dependencies to place after the objects being linked to create a
23977 # shared library.
23978 postdeps=$lt_postdeps_GCJ
23979
23980 # The library search path used internally by the compiler when linking
23981 # a shared library.
23982 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23983
23984 # Method to check whether dependent libraries are shared objects.
23985 deplibs_check_method=$lt_deplibs_check_method
23986
23987 # Command to use when deplibs_check_method == file_magic.
23988 file_magic_cmd=$lt_file_magic_cmd
23989
23990 # Flag that allows shared libraries with undefined symbols to be built.
23991 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23992
23993 # Flag that forces no undefined symbols.
23994 no_undefined_flag=$lt_no_undefined_flag_GCJ
23995
23996 # Commands used to finish a libtool library installation in a directory.
23997 finish_cmds=$lt_finish_cmds
23998
23999 # Same as above, but a single script fragment to be evaled but not shown.
24000 finish_eval=$lt_finish_eval
24001
24002 # Take the output of nm and produce a listing of raw symbols and C names.
24003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24004
24005 # Transform the output of nm in a proper C declaration
24006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24007
24008 # Transform the output of nm in a C name address pair
24009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24010
24011 # This is the shared library runtime path variable.
24012 runpath_var=$runpath_var
24013
24014 # This is the shared library path variable.
24015 shlibpath_var=$shlibpath_var
24016
24017 # Is shlibpath searched before the hard-coded library search path?
24018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24019
24020 # How to hardcode a shared library path into an executable.
24021 hardcode_action=$hardcode_action_GCJ
24022
24023 # Whether we should hardcode library paths into libraries.
24024 hardcode_into_libs=$hardcode_into_libs
24025
24026 # Flag to hardcode \$libdir into a binary during linking.
24027 # This must work even if \$libdir does not exist.
24028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24029
24030 # If ld is used when linking, flag to hardcode \$libdir into
24031 # a binary during linking. This must work even if \$libdir does
24032 # not exist.
24033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24034
24035 # Whether we need a single -rpath flag with a separated argument.
24036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24037
24038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24039 # resulting binary.
24040 hardcode_direct=$hardcode_direct_GCJ
24041
24042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24043 # resulting binary.
24044 hardcode_minus_L=$hardcode_minus_L_GCJ
24045
24046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24047 # the resulting binary.
24048 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24049
24050 # Set to yes if building a shared library automatically hardcodes DIR into the library
24051 # and all subsequent libraries and executables linked against it.
24052 hardcode_automatic=$hardcode_automatic_GCJ
24053
24054 # Variables whose values should be saved in libtool wrapper scripts and
24055 # restored at relink time.
24056 variables_saved_for_relink="$variables_saved_for_relink"
24057
24058 # Whether libtool must link a program against all its dependency libraries.
24059 link_all_deplibs=$link_all_deplibs_GCJ
24060
24061 # Compile-time system search path for libraries
24062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24063
24064 # Run-time system search path for libraries
24065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24066
24067 # Fix the shell variable \$srcfile for the compiler.
24068 fix_srcfile_path="$fix_srcfile_path_GCJ"
24069
24070 # Set to yes if exported symbols are required.
24071 always_export_symbols=$always_export_symbols_GCJ
24072
24073 # The commands to list exported symbols.
24074 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24075
24076 # The commands to extract the exported symbol list from a shared archive.
24077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24078
24079 # Symbols that should not be listed in the preloaded symbols.
24080 exclude_expsyms=$lt_exclude_expsyms_GCJ
24081
24082 # Symbols that must always be exported.
24083 include_expsyms=$lt_include_expsyms_GCJ
24084
24085 # ### END LIBTOOL TAG CONFIG: $tagname
24086
24087 __EOF__
24088
24089
24090 else
24091   # If there is no Makefile yet, we rely on a make rule to execute
24092   # `config.status --recheck' to rerun these tests and create the
24093   # libtool script then.
24094   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24095   if test -f "$ltmain_in"; then
24096     test -f Makefile && make "$ltmain"
24097   fi
24098 fi
24099
24100
24101 ac_ext=c
24102 ac_cpp='$CPP $CPPFLAGS'
24103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24106
24107 CC="$lt_save_CC"
24108
24109         else
24110           tagname=""
24111         fi
24112         ;;
24113
24114       RC)
24115         ac_ext=c
24116 ac_cpp='$CPP $CPPFLAGS'
24117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24120
24121
24122 # Source file extension for RC test sources.
24123 ac_ext=rc
24124
24125 # Object file extension for compiled RC test sources.
24126 objext=o
24127 objext_RC=$objext
24128
24129 # Code to be used in simple compile tests
24130 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24131
24132 # Code to be used in simple link tests
24133 lt_simple_link_test_code="$lt_simple_compile_test_code"
24134
24135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24136
24137 # If no C compiler was specified, use CC.
24138 LTCC=${LTCC-"$CC"}
24139
24140 # Allow CC to be a program name with arguments.
24141 compiler=$CC
24142
24143
24144 # Allow CC to be a program name with arguments.
24145 lt_save_CC="$CC"
24146 CC=${RC-"windres"}
24147 compiler=$CC
24148 compiler_RC=$CC
24149 lt_cv_prog_compiler_c_o_RC=yes
24150
24151 # The else clause should only fire when bootstrapping the
24152 # libtool distribution, otherwise you forgot to ship ltmain.sh
24153 # with your package, and you will get complaints that there are
24154 # no rules to generate ltmain.sh.
24155 if test -f "$ltmain"; then
24156   # See if we are running on zsh, and set the options which allow our commands through
24157   # without removal of \ escapes.
24158   if test -n "${ZSH_VERSION+set}" ; then
24159     setopt NO_GLOB_SUBST
24160   fi
24161   # Now quote all the things that may contain metacharacters while being
24162   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24163   # variables and quote the copies for generation of the libtool script.
24164   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24165     SED SHELL STRIP \
24166     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24167     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24168     deplibs_check_method reload_flag reload_cmds need_locks \
24169     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24170     lt_cv_sys_global_symbol_to_c_name_address \
24171     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24172     old_postinstall_cmds old_postuninstall_cmds \
24173     compiler_RC \
24174     CC_RC \
24175     LD_RC \
24176     lt_prog_compiler_wl_RC \
24177     lt_prog_compiler_pic_RC \
24178     lt_prog_compiler_static_RC \
24179     lt_prog_compiler_no_builtin_flag_RC \
24180     export_dynamic_flag_spec_RC \
24181     thread_safe_flag_spec_RC \
24182     whole_archive_flag_spec_RC \
24183     enable_shared_with_static_runtimes_RC \
24184     old_archive_cmds_RC \
24185     old_archive_from_new_cmds_RC \
24186     predep_objects_RC \
24187     postdep_objects_RC \
24188     predeps_RC \
24189     postdeps_RC \
24190     compiler_lib_search_path_RC \
24191     archive_cmds_RC \
24192     archive_expsym_cmds_RC \
24193     postinstall_cmds_RC \
24194     postuninstall_cmds_RC \
24195     old_archive_from_expsyms_cmds_RC \
24196     allow_undefined_flag_RC \
24197     no_undefined_flag_RC \
24198     export_symbols_cmds_RC \
24199     hardcode_libdir_flag_spec_RC \
24200     hardcode_libdir_flag_spec_ld_RC \
24201     hardcode_libdir_separator_RC \
24202     hardcode_automatic_RC \
24203     module_cmds_RC \
24204     module_expsym_cmds_RC \
24205     lt_cv_prog_compiler_c_o_RC \
24206     exclude_expsyms_RC \
24207     include_expsyms_RC; do
24208
24209     case $var in
24210     old_archive_cmds_RC | \
24211     old_archive_from_new_cmds_RC | \
24212     archive_cmds_RC | \
24213     archive_expsym_cmds_RC | \
24214     module_cmds_RC | \
24215     module_expsym_cmds_RC | \
24216     old_archive_from_expsyms_cmds_RC | \
24217     export_symbols_cmds_RC | \
24218     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24219     postinstall_cmds | postuninstall_cmds | \
24220     old_postinstall_cmds | old_postuninstall_cmds | \
24221     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24222       # Double-quote double-evaled strings.
24223       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24224       ;;
24225     *)
24226       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24227       ;;
24228     esac
24229   done
24230
24231   case $lt_echo in
24232   *'\$0 --fallback-echo"')
24233     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24234     ;;
24235   esac
24236
24237 cfgfile="$ofile"
24238
24239   cat <<__EOF__ >> "$cfgfile"
24240 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24241
24242 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24243
24244 # Shell to use when invoking shell scripts.
24245 SHELL=$lt_SHELL
24246
24247 # Whether or not to build shared libraries.
24248 build_libtool_libs=$enable_shared
24249
24250 # Whether or not to build static libraries.
24251 build_old_libs=$enable_static
24252
24253 # Whether or not to add -lc for building shared libraries.
24254 build_libtool_need_lc=$archive_cmds_need_lc_RC
24255
24256 # Whether or not to disallow shared libs when runtime libs are static
24257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24258
24259 # Whether or not to optimize for fast installation.
24260 fast_install=$enable_fast_install
24261
24262 # The host system.
24263 host_alias=$host_alias
24264 host=$host
24265
24266 # An echo program that does not interpret backslashes.
24267 echo=$lt_echo
24268
24269 # The archiver.
24270 AR=$lt_AR
24271 AR_FLAGS=$lt_AR_FLAGS
24272
24273 # A C compiler.
24274 LTCC=$lt_LTCC
24275
24276 # A language-specific compiler.
24277 CC=$lt_compiler_RC
24278
24279 # Is the compiler the GNU C compiler?
24280 with_gcc=$GCC_RC
24281
24282 # An ERE matcher.
24283 EGREP=$lt_EGREP
24284
24285 # The linker used to build libraries.
24286 LD=$lt_LD_RC
24287
24288 # Whether we need hard or soft links.
24289 LN_S=$lt_LN_S
24290
24291 # A BSD-compatible nm program.
24292 NM=$lt_NM
24293
24294 # A symbol stripping program
24295 STRIP=$lt_STRIP
24296
24297 # Used to examine libraries when file_magic_cmd begins "file"
24298 MAGIC_CMD=$MAGIC_CMD
24299
24300 # Used on cygwin: DLL creation program.
24301 DLLTOOL="$DLLTOOL"
24302
24303 # Used on cygwin: object dumper.
24304 OBJDUMP="$OBJDUMP"
24305
24306 # Used on cygwin: assembler.
24307 AS="$AS"
24308
24309 # The name of the directory that contains temporary libtool files.
24310 objdir=$objdir
24311
24312 # How to create reloadable object files.
24313 reload_flag=$lt_reload_flag
24314 reload_cmds=$lt_reload_cmds
24315
24316 # How to pass a linker flag through the compiler.
24317 wl=$lt_lt_prog_compiler_wl_RC
24318
24319 # Object file suffix (normally "o").
24320 objext="$ac_objext"
24321
24322 # Old archive suffix (normally "a").
24323 libext="$libext"
24324
24325 # Shared library suffix (normally ".so").
24326 shrext_cmds='$shrext_cmds'
24327
24328 # Executable file suffix (normally "").
24329 exeext="$exeext"
24330
24331 # Additional compiler flags for building library objects.
24332 pic_flag=$lt_lt_prog_compiler_pic_RC
24333 pic_mode=$pic_mode
24334
24335 # What is the maximum length of a command?
24336 max_cmd_len=$lt_cv_sys_max_cmd_len
24337
24338 # Does compiler simultaneously support -c and -o options?
24339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24340
24341 # Must we lock files when doing compilation ?
24342 need_locks=$lt_need_locks
24343
24344 # Do we need the lib prefix for modules?
24345 need_lib_prefix=$need_lib_prefix
24346
24347 # Do we need a version for libraries?
24348 need_version=$need_version
24349
24350 # Whether dlopen is supported.
24351 dlopen_support=$enable_dlopen
24352
24353 # Whether dlopen of programs is supported.
24354 dlopen_self=$enable_dlopen_self
24355
24356 # Whether dlopen of statically linked programs is supported.
24357 dlopen_self_static=$enable_dlopen_self_static
24358
24359 # Compiler flag to prevent dynamic linking.
24360 link_static_flag=$lt_lt_prog_compiler_static_RC
24361
24362 # Compiler flag to turn off builtin functions.
24363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24364
24365 # Compiler flag to allow reflexive dlopens.
24366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24367
24368 # Compiler flag to generate shared objects directly from archives.
24369 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24370
24371 # Compiler flag to generate thread-safe objects.
24372 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24373
24374 # Library versioning type.
24375 version_type=$version_type
24376
24377 # Format of library name prefix.
24378 libname_spec=$lt_libname_spec
24379
24380 # List of archive names.  First name is the real one, the rest are links.
24381 # The last name is the one that the linker finds with -lNAME.
24382 library_names_spec=$lt_library_names_spec
24383
24384 # The coded name of the library, if different from the real name.
24385 soname_spec=$lt_soname_spec
24386
24387 # Commands used to build and install an old-style archive.
24388 RANLIB=$lt_RANLIB
24389 old_archive_cmds=$lt_old_archive_cmds_RC
24390 old_postinstall_cmds=$lt_old_postinstall_cmds
24391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24392
24393 # Create an old-style archive from a shared archive.
24394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24395
24396 # Create a temporary old-style archive to link instead of a shared archive.
24397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24398
24399 # Commands used to build and install a shared archive.
24400 archive_cmds=$lt_archive_cmds_RC
24401 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24402 postinstall_cmds=$lt_postinstall_cmds
24403 postuninstall_cmds=$lt_postuninstall_cmds
24404
24405 # Commands used to build a loadable module (assumed same as above if empty)
24406 module_cmds=$lt_module_cmds_RC
24407 module_expsym_cmds=$lt_module_expsym_cmds_RC
24408
24409 # Commands to strip libraries.
24410 old_striplib=$lt_old_striplib
24411 striplib=$lt_striplib
24412
24413 # Dependencies to place before the objects being linked to create a
24414 # shared library.
24415 predep_objects=$lt_predep_objects_RC
24416
24417 # Dependencies to place after the objects being linked to create a
24418 # shared library.
24419 postdep_objects=$lt_postdep_objects_RC
24420
24421 # Dependencies to place before the objects being linked to create a
24422 # shared library.
24423 predeps=$lt_predeps_RC
24424
24425 # Dependencies to place after the objects being linked to create a
24426 # shared library.
24427 postdeps=$lt_postdeps_RC
24428
24429 # The library search path used internally by the compiler when linking
24430 # a shared library.
24431 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24432
24433 # Method to check whether dependent libraries are shared objects.
24434 deplibs_check_method=$lt_deplibs_check_method
24435
24436 # Command to use when deplibs_check_method == file_magic.
24437 file_magic_cmd=$lt_file_magic_cmd
24438
24439 # Flag that allows shared libraries with undefined symbols to be built.
24440 allow_undefined_flag=$lt_allow_undefined_flag_RC
24441
24442 # Flag that forces no undefined symbols.
24443 no_undefined_flag=$lt_no_undefined_flag_RC
24444
24445 # Commands used to finish a libtool library installation in a directory.
24446 finish_cmds=$lt_finish_cmds
24447
24448 # Same as above, but a single script fragment to be evaled but not shown.
24449 finish_eval=$lt_finish_eval
24450
24451 # Take the output of nm and produce a listing of raw symbols and C names.
24452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24453
24454 # Transform the output of nm in a proper C declaration
24455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24456
24457 # Transform the output of nm in a C name address pair
24458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24459
24460 # This is the shared library runtime path variable.
24461 runpath_var=$runpath_var
24462
24463 # This is the shared library path variable.
24464 shlibpath_var=$shlibpath_var
24465
24466 # Is shlibpath searched before the hard-coded library search path?
24467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24468
24469 # How to hardcode a shared library path into an executable.
24470 hardcode_action=$hardcode_action_RC
24471
24472 # Whether we should hardcode library paths into libraries.
24473 hardcode_into_libs=$hardcode_into_libs
24474
24475 # Flag to hardcode \$libdir into a binary during linking.
24476 # This must work even if \$libdir does not exist.
24477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24478
24479 # If ld is used when linking, flag to hardcode \$libdir into
24480 # a binary during linking. This must work even if \$libdir does
24481 # not exist.
24482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24483
24484 # Whether we need a single -rpath flag with a separated argument.
24485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24486
24487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24488 # resulting binary.
24489 hardcode_direct=$hardcode_direct_RC
24490
24491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24492 # resulting binary.
24493 hardcode_minus_L=$hardcode_minus_L_RC
24494
24495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24496 # the resulting binary.
24497 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24498
24499 # Set to yes if building a shared library automatically hardcodes DIR into the library
24500 # and all subsequent libraries and executables linked against it.
24501 hardcode_automatic=$hardcode_automatic_RC
24502
24503 # Variables whose values should be saved in libtool wrapper scripts and
24504 # restored at relink time.
24505 variables_saved_for_relink="$variables_saved_for_relink"
24506
24507 # Whether libtool must link a program against all its dependency libraries.
24508 link_all_deplibs=$link_all_deplibs_RC
24509
24510 # Compile-time system search path for libraries
24511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24512
24513 # Run-time system search path for libraries
24514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24515
24516 # Fix the shell variable \$srcfile for the compiler.
24517 fix_srcfile_path="$fix_srcfile_path_RC"
24518
24519 # Set to yes if exported symbols are required.
24520 always_export_symbols=$always_export_symbols_RC
24521
24522 # The commands to list exported symbols.
24523 export_symbols_cmds=$lt_export_symbols_cmds_RC
24524
24525 # The commands to extract the exported symbol list from a shared archive.
24526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24527
24528 # Symbols that should not be listed in the preloaded symbols.
24529 exclude_expsyms=$lt_exclude_expsyms_RC
24530
24531 # Symbols that must always be exported.
24532 include_expsyms=$lt_include_expsyms_RC
24533
24534 # ### END LIBTOOL TAG CONFIG: $tagname
24535
24536 __EOF__
24537
24538
24539 else
24540   # If there is no Makefile yet, we rely on a make rule to execute
24541   # `config.status --recheck' to rerun these tests and create the
24542   # libtool script then.
24543   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24544   if test -f "$ltmain_in"; then
24545     test -f Makefile && make "$ltmain"
24546   fi
24547 fi
24548
24549
24550 ac_ext=c
24551 ac_cpp='$CPP $CPPFLAGS'
24552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24555
24556 CC="$lt_save_CC"
24557
24558         ;;
24559
24560       *)
24561         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24562 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24563    { (exit 1); exit 1; }; }
24564         ;;
24565       esac
24566
24567       # Append the new tag name to the list of available tags.
24568       if test -n "$tagname" ; then
24569       available_tags="$available_tags $tagname"
24570     fi
24571     fi
24572   done
24573   IFS="$lt_save_ifs"
24574
24575   # Now substitute the updated list of available tags.
24576   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24577     mv "${ofile}T" "$ofile"
24578     chmod +x "$ofile"
24579   else
24580     rm -f "${ofile}T"
24581     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24582 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24583    { (exit 1); exit 1; }; }
24584   fi
24585 fi
24586
24587
24588
24589 # This can be used to rebuild libtool when needed
24590 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24591
24592 # Always use our own libtool.
24593 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24594
24595 # Prevent multiple expansion
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617 etags_version=`$ETAGS --version 2>&1`
24618 case "$etags_version" in
24619         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24620         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24621         *) ETAGSFLAGS="" ;;
24622 esac
24623 ETAGSFLAGS=$ETAGSFLAGS
24624
24625
24626 echo "$as_me:$LINENO: checking tool compatibility" >&5
24627 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24628
24629 ICC=no
24630 IXX=no
24631 case $CC in
24632   icc*|icpc*)
24633     ICC=yes
24634     IXX=yes
24635     ;;
24636    *)
24637     ;;
24638 esac
24639
24640 if test "$GCC" != "yes" && test "$ICC" != "yes"
24641 then
24642   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24643 echo "$as_me: error: gcc|icc required but not found" >&2;}
24644    { (exit 1); exit 1; }; }
24645 fi
24646
24647 if test "$GXX" != "yes" && test "$IXX" != "yes"
24648 then
24649   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24650 echo "$as_me: error: g++|icc required but not found" >&2;}
24651    { (exit 1); exit 1; }; }
24652 fi
24653
24654 if test "$GCC" = "yes"
24655 then
24656   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24657   if test "$gccmajor" -lt "3"
24658   then
24659     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24660 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24661    { (exit 1); exit 1; }; }
24662   fi
24663 fi
24664
24665 if test -z "$llvm_cv_gnu_make_command"
24666 then
24667   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24668 echo "$as_me: error: GNU Make required but not found" >&2;}
24669    { (exit 1); exit 1; }; }
24670 fi
24671
24672 echo "$as_me:$LINENO: result: ok" >&5
24673 echo "${ECHO_T}ok" >&6
24674
24675
24676
24677 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24678 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24679 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24680   echo $ECHO_N "(cached) $ECHO_C" >&6
24681 else
24682   ac_check_lib_save_LIBS=$LIBS
24683 LIBS="-lelf  $LIBS"
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h.  */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h.  */
24690
24691 /* Override any gcc2 internal prototype to avoid an error.  */
24692 #ifdef __cplusplus
24693 extern "C"
24694 #endif
24695 /* We use char because int might match the return type of a gcc2
24696    builtin and then its argument prototype would still apply.  */
24697 char elf_begin ();
24698 int
24699 main ()
24700 {
24701 elf_begin ();
24702   ;
24703   return 0;
24704 }
24705 _ACEOF
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24708   (eval $ac_link) 2>conftest.er1
24709   ac_status=$?
24710   grep -v '^ *+' conftest.er1 >conftest.err
24711   rm -f conftest.er1
24712   cat conftest.err >&5
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); } &&
24715          { ac_try='test -z "$ac_c_werror_flag"
24716                          || test ! -s conftest.err'
24717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718   (eval $ac_try) 2>&5
24719   ac_status=$?
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); }; } &&
24722          { ac_try='test -s conftest$ac_exeext'
24723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724   (eval $ac_try) 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); }; }; then
24728   ac_cv_lib_elf_elf_begin=yes
24729 else
24730   echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733 ac_cv_lib_elf_elf_begin=no
24734 fi
24735 rm -f conftest.err conftest.$ac_objext \
24736       conftest$ac_exeext conftest.$ac_ext
24737 LIBS=$ac_check_lib_save_LIBS
24738 fi
24739 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24740 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24741 if test $ac_cv_lib_elf_elf_begin = yes; then
24742   cat >>confdefs.h <<_ACEOF
24743 #define HAVE_LIBELF 1
24744 _ACEOF
24745
24746   LIBS="-lelf $LIBS"
24747
24748 fi
24749
24750
24751 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24752 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24753 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24754   echo $ECHO_N "(cached) $ECHO_C" >&6
24755 else
24756   ac_func_search_save_LIBS=$LIBS
24757 ac_cv_search_lt_dlopen=no
24758 cat >conftest.$ac_ext <<_ACEOF
24759 /* confdefs.h.  */
24760 _ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h.  */
24764
24765 /* Override any gcc2 internal prototype to avoid an error.  */
24766 #ifdef __cplusplus
24767 extern "C"
24768 #endif
24769 /* We use char because int might match the return type of a gcc2
24770    builtin and then its argument prototype would still apply.  */
24771 char lt_dlopen ();
24772 int
24773 main ()
24774 {
24775 lt_dlopen ();
24776   ;
24777   return 0;
24778 }
24779 _ACEOF
24780 rm -f conftest.$ac_objext conftest$ac_exeext
24781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782   (eval $ac_link) 2>conftest.er1
24783   ac_status=$?
24784   grep -v '^ *+' conftest.er1 >conftest.err
24785   rm -f conftest.er1
24786   cat conftest.err >&5
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } &&
24789          { ac_try='test -z "$ac_c_werror_flag"
24790                          || test ! -s conftest.err'
24791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792   (eval $ac_try) 2>&5
24793   ac_status=$?
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); }; } &&
24796          { ac_try='test -s conftest$ac_exeext'
24797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798   (eval $ac_try) 2>&5
24799   ac_status=$?
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); }; }; then
24802   ac_cv_search_lt_dlopen="none required"
24803 else
24804   echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807 fi
24808 rm -f conftest.err conftest.$ac_objext \
24809       conftest$ac_exeext conftest.$ac_ext
24810 if test "$ac_cv_search_lt_dlopen" = no; then
24811   for ac_lib in ltdl; do
24812     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24813     cat >conftest.$ac_ext <<_ACEOF
24814 /* confdefs.h.  */
24815 _ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h.  */
24819
24820 /* Override any gcc2 internal prototype to avoid an error.  */
24821 #ifdef __cplusplus
24822 extern "C"
24823 #endif
24824 /* We use char because int might match the return type of a gcc2
24825    builtin and then its argument prototype would still apply.  */
24826 char lt_dlopen ();
24827 int
24828 main ()
24829 {
24830 lt_dlopen ();
24831   ;
24832   return 0;
24833 }
24834 _ACEOF
24835 rm -f conftest.$ac_objext conftest$ac_exeext
24836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24837   (eval $ac_link) 2>conftest.er1
24838   ac_status=$?
24839   grep -v '^ *+' conftest.er1 >conftest.err
24840   rm -f conftest.er1
24841   cat conftest.err >&5
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); } &&
24844          { ac_try='test -z "$ac_c_werror_flag"
24845                          || test ! -s conftest.err'
24846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847   (eval $ac_try) 2>&5
24848   ac_status=$?
24849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850   (exit $ac_status); }; } &&
24851          { ac_try='test -s conftest$ac_exeext'
24852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); }; }; then
24857   ac_cv_search_lt_dlopen="-l$ac_lib"
24858 break
24859 else
24860   echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 fi
24864 rm -f conftest.err conftest.$ac_objext \
24865       conftest$ac_exeext conftest.$ac_ext
24866   done
24867 fi
24868 LIBS=$ac_func_search_save_LIBS
24869 fi
24870 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24871 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24872 if test "$ac_cv_search_lt_dlopen" != no; then
24873   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24874
24875 cat >>confdefs.h <<\_ACEOF
24876 #define HAVE_LT_DLOPEN 1
24877 _ACEOF
24878
24879 else
24880   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24881                            not be available" >&5
24882 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24883                            not be available" >&2;}
24884 fi
24885
24886
24887 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24888 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24889 if test "${ac_cv_search_dlopen+set}" = set; then
24890   echo $ECHO_N "(cached) $ECHO_C" >&6
24891 else
24892   ac_func_search_save_LIBS=$LIBS
24893 ac_cv_search_dlopen=no
24894 cat >conftest.$ac_ext <<_ACEOF
24895 /* confdefs.h.  */
24896 _ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h.  */
24900
24901 /* Override any gcc2 internal prototype to avoid an error.  */
24902 #ifdef __cplusplus
24903 extern "C"
24904 #endif
24905 /* We use char because int might match the return type of a gcc2
24906    builtin and then its argument prototype would still apply.  */
24907 char dlopen ();
24908 int
24909 main ()
24910 {
24911 dlopen ();
24912   ;
24913   return 0;
24914 }
24915 _ACEOF
24916 rm -f conftest.$ac_objext conftest$ac_exeext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24918   (eval $ac_link) 2>conftest.er1
24919   ac_status=$?
24920   grep -v '^ *+' conftest.er1 >conftest.err
24921   rm -f conftest.er1
24922   cat conftest.err >&5
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); } &&
24925          { ac_try='test -z "$ac_c_werror_flag"
24926                          || test ! -s conftest.err'
24927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928   (eval $ac_try) 2>&5
24929   ac_status=$?
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); }; } &&
24932          { ac_try='test -s conftest$ac_exeext'
24933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934   (eval $ac_try) 2>&5
24935   ac_status=$?
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); }; }; then
24938   ac_cv_search_dlopen="none required"
24939 else
24940   echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24942
24943 fi
24944 rm -f conftest.err conftest.$ac_objext \
24945       conftest$ac_exeext conftest.$ac_ext
24946 if test "$ac_cv_search_dlopen" = no; then
24947   for ac_lib in dl; do
24948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24949     cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h.  */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h.  */
24955
24956 /* Override any gcc2 internal prototype to avoid an error.  */
24957 #ifdef __cplusplus
24958 extern "C"
24959 #endif
24960 /* We use char because int might match the return type of a gcc2
24961    builtin and then its argument prototype would still apply.  */
24962 char dlopen ();
24963 int
24964 main ()
24965 {
24966 dlopen ();
24967   ;
24968   return 0;
24969 }
24970 _ACEOF
24971 rm -f conftest.$ac_objext conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973   (eval $ac_link) 2>conftest.er1
24974   ac_status=$?
24975   grep -v '^ *+' conftest.er1 >conftest.err
24976   rm -f conftest.er1
24977   cat conftest.err >&5
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); } &&
24980          { ac_try='test -z "$ac_c_werror_flag"
24981                          || test ! -s conftest.err'
24982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983   (eval $ac_try) 2>&5
24984   ac_status=$?
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); }; } &&
24987          { ac_try='test -s conftest$ac_exeext'
24988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989   (eval $ac_try) 2>&5
24990   ac_status=$?
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); }; }; then
24993   ac_cv_search_dlopen="-l$ac_lib"
24994 break
24995 else
24996   echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999 fi
25000 rm -f conftest.err conftest.$ac_objext \
25001       conftest$ac_exeext conftest.$ac_ext
25002   done
25003 fi
25004 LIBS=$ac_func_search_save_LIBS
25005 fi
25006 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25007 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25008 if test "$ac_cv_search_dlopen" != no; then
25009   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25010
25011 cat >>confdefs.h <<\_ACEOF
25012 #define HAVE_DLOPEN 1
25013 _ACEOF
25014
25015 else
25016   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25017 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25018 fi
25019
25020
25021 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25022 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25023 if test "${ac_cv_search_mallinfo+set}" = set; then
25024   echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026   ac_func_search_save_LIBS=$LIBS
25027 ac_cv_search_mallinfo=no
25028 cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034
25035 /* Override any gcc2 internal prototype to avoid an error.  */
25036 #ifdef __cplusplus
25037 extern "C"
25038 #endif
25039 /* We use char because int might match the return type of a gcc2
25040    builtin and then its argument prototype would still apply.  */
25041 char mallinfo ();
25042 int
25043 main ()
25044 {
25045 mallinfo ();
25046   ;
25047   return 0;
25048 }
25049 _ACEOF
25050 rm -f conftest.$ac_objext conftest$ac_exeext
25051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25052   (eval $ac_link) 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } &&
25059          { ac_try='test -z "$ac_c_werror_flag"
25060                          || test ! -s conftest.err'
25061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062   (eval $ac_try) 2>&5
25063   ac_status=$?
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); }; } &&
25066          { ac_try='test -s conftest$ac_exeext'
25067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068   (eval $ac_try) 2>&5
25069   ac_status=$?
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); }; }; then
25072   ac_cv_search_mallinfo="none required"
25073 else
25074   echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 fi
25078 rm -f conftest.err conftest.$ac_objext \
25079       conftest$ac_exeext conftest.$ac_ext
25080 if test "$ac_cv_search_mallinfo" = no; then
25081   for ac_lib in malloc; do
25082     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25083     cat >conftest.$ac_ext <<_ACEOF
25084 /* confdefs.h.  */
25085 _ACEOF
25086 cat confdefs.h >>conftest.$ac_ext
25087 cat >>conftest.$ac_ext <<_ACEOF
25088 /* end confdefs.h.  */
25089
25090 /* Override any gcc2 internal prototype to avoid an error.  */
25091 #ifdef __cplusplus
25092 extern "C"
25093 #endif
25094 /* We use char because int might match the return type of a gcc2
25095    builtin and then its argument prototype would still apply.  */
25096 char mallinfo ();
25097 int
25098 main ()
25099 {
25100 mallinfo ();
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25107   (eval $ac_link) 2>conftest.er1
25108   ac_status=$?
25109   grep -v '^ *+' conftest.er1 >conftest.err
25110   rm -f conftest.er1
25111   cat conftest.err >&5
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); } &&
25114          { ac_try='test -z "$ac_c_werror_flag"
25115                          || test ! -s conftest.err'
25116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117   (eval $ac_try) 2>&5
25118   ac_status=$?
25119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120   (exit $ac_status); }; } &&
25121          { ac_try='test -s conftest$ac_exeext'
25122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123   (eval $ac_try) 2>&5
25124   ac_status=$?
25125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); }; }; then
25127   ac_cv_search_mallinfo="-l$ac_lib"
25128 break
25129 else
25130   echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25132
25133 fi
25134 rm -f conftest.err conftest.$ac_objext \
25135       conftest$ac_exeext conftest.$ac_ext
25136   done
25137 fi
25138 LIBS=$ac_func_search_save_LIBS
25139 fi
25140 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25141 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25142 if test "$ac_cv_search_mallinfo" != no; then
25143   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25144
25145 cat >>confdefs.h <<\_ACEOF
25146 #define HAVE_MALLINFO 1
25147 _ACEOF
25148
25149 fi
25150
25151
25152 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25153 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25154 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 else
25157   ac_func_search_save_LIBS=$LIBS
25158 ac_cv_search_pthread_mutex_lock=no
25159 cat >conftest.$ac_ext <<_ACEOF
25160 /* confdefs.h.  */
25161 _ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h.  */
25165
25166 /* Override any gcc2 internal prototype to avoid an error.  */
25167 #ifdef __cplusplus
25168 extern "C"
25169 #endif
25170 /* We use char because int might match the return type of a gcc2
25171    builtin and then its argument prototype would still apply.  */
25172 char pthread_mutex_lock ();
25173 int
25174 main ()
25175 {
25176 pthread_mutex_lock ();
25177   ;
25178   return 0;
25179 }
25180 _ACEOF
25181 rm -f conftest.$ac_objext conftest$ac_exeext
25182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25183   (eval $ac_link) 2>conftest.er1
25184   ac_status=$?
25185   grep -v '^ *+' conftest.er1 >conftest.err
25186   rm -f conftest.er1
25187   cat conftest.err >&5
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); } &&
25190          { ac_try='test -z "$ac_c_werror_flag"
25191                          || test ! -s conftest.err'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; } &&
25197          { ac_try='test -s conftest$ac_exeext'
25198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199   (eval $ac_try) 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; }; then
25203   ac_cv_search_pthread_mutex_lock="none required"
25204 else
25205   echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208 fi
25209 rm -f conftest.err conftest.$ac_objext \
25210       conftest$ac_exeext conftest.$ac_ext
25211 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25212   for ac_lib in pthread; do
25213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25214     cat >conftest.$ac_ext <<_ACEOF
25215 /* confdefs.h.  */
25216 _ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h.  */
25220
25221 /* Override any gcc2 internal prototype to avoid an error.  */
25222 #ifdef __cplusplus
25223 extern "C"
25224 #endif
25225 /* We use char because int might match the return type of a gcc2
25226    builtin and then its argument prototype would still apply.  */
25227 char pthread_mutex_lock ();
25228 int
25229 main ()
25230 {
25231 pthread_mutex_lock ();
25232   ;
25233   return 0;
25234 }
25235 _ACEOF
25236 rm -f conftest.$ac_objext conftest$ac_exeext
25237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25238   (eval $ac_link) 2>conftest.er1
25239   ac_status=$?
25240   grep -v '^ *+' conftest.er1 >conftest.err
25241   rm -f conftest.er1
25242   cat conftest.err >&5
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); } &&
25245          { ac_try='test -z "$ac_c_werror_flag"
25246                          || test ! -s conftest.err'
25247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248   (eval $ac_try) 2>&5
25249   ac_status=$?
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); }; } &&
25252          { ac_try='test -s conftest$ac_exeext'
25253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254   (eval $ac_try) 2>&5
25255   ac_status=$?
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); }; }; then
25258   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25259 break
25260 else
25261   echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25263
25264 fi
25265 rm -f conftest.err conftest.$ac_objext \
25266       conftest$ac_exeext conftest.$ac_ext
25267   done
25268 fi
25269 LIBS=$ac_func_search_save_LIBS
25270 fi
25271 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25272 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25273 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25274   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25275
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_PTHREAD_MUTEX_LOCK 1
25278 _ACEOF
25279
25280 fi
25281
25282
25283
25284 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25285 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25286 if test "${ac_cv_header_stdc+set}" = set; then
25287   echo $ECHO_N "(cached) $ECHO_C" >&6
25288 else
25289   cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h.  */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h.  */
25295 #include <stdlib.h>
25296 #include <stdarg.h>
25297 #include <string.h>
25298 #include <float.h>
25299
25300 int
25301 main ()
25302 {
25303
25304   ;
25305   return 0;
25306 }
25307 _ACEOF
25308 rm -f conftest.$ac_objext
25309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25310   (eval $ac_compile) 2>conftest.er1
25311   ac_status=$?
25312   grep -v '^ *+' conftest.er1 >conftest.err
25313   rm -f conftest.er1
25314   cat conftest.err >&5
25315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316   (exit $ac_status); } &&
25317          { ac_try='test -z "$ac_c_werror_flag"
25318                          || test ! -s conftest.err'
25319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25320   (eval $ac_try) 2>&5
25321   ac_status=$?
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); }; } &&
25324          { ac_try='test -s conftest.$ac_objext'
25325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326   (eval $ac_try) 2>&5
25327   ac_status=$?
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); }; }; then
25330   ac_cv_header_stdc=yes
25331 else
25332   echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335 ac_cv_header_stdc=no
25336 fi
25337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25338
25339 if test $ac_cv_header_stdc = yes; then
25340   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25341   cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h.  */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h.  */
25347 #include <string.h>
25348
25349 _ACEOF
25350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25351   $EGREP "memchr" >/dev/null 2>&1; then
25352   :
25353 else
25354   ac_cv_header_stdc=no
25355 fi
25356 rm -f conftest*
25357
25358 fi
25359
25360 if test $ac_cv_header_stdc = yes; then
25361   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25362   cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h.  */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h.  */
25368 #include <stdlib.h>
25369
25370 _ACEOF
25371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25372   $EGREP "free" >/dev/null 2>&1; then
25373   :
25374 else
25375   ac_cv_header_stdc=no
25376 fi
25377 rm -f conftest*
25378
25379 fi
25380
25381 if test $ac_cv_header_stdc = yes; then
25382   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25383   if test "$cross_compiling" = yes; then
25384   :
25385 else
25386   cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392 #include <ctype.h>
25393 #if ((' ' & 0x0FF) == 0x020)
25394 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25395 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25396 #else
25397 # define ISLOWER(c) \
25398                    (('a' <= (c) && (c) <= 'i') \
25399                      || ('j' <= (c) && (c) <= 'r') \
25400                      || ('s' <= (c) && (c) <= 'z'))
25401 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25402 #endif
25403
25404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25405 int
25406 main ()
25407 {
25408   int i;
25409   for (i = 0; i < 256; i++)
25410     if (XOR (islower (i), ISLOWER (i))
25411         || toupper (i) != TOUPPER (i))
25412       exit(2);
25413   exit (0);
25414 }
25415 _ACEOF
25416 rm -f conftest$ac_exeext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25418   (eval $ac_link) 2>&5
25419   ac_status=$?
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423   (eval $ac_try) 2>&5
25424   ac_status=$?
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); }; }; then
25427   :
25428 else
25429   echo "$as_me: program exited with status $ac_status" >&5
25430 echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25432
25433 ( exit $ac_status )
25434 ac_cv_header_stdc=no
25435 fi
25436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25437 fi
25438 fi
25439 fi
25440 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25441 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25442 if test $ac_cv_header_stdc = yes; then
25443
25444 cat >>confdefs.h <<\_ACEOF
25445 #define STDC_HEADERS 1
25446 _ACEOF
25447
25448 fi
25449
25450
25451 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25452 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25453 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25454   echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456   cat >conftest.$ac_ext <<_ACEOF
25457 /* confdefs.h.  */
25458 _ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h.  */
25462 #include <sys/types.h>
25463 #include <sys/wait.h>
25464 #ifndef WEXITSTATUS
25465 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25466 #endif
25467 #ifndef WIFEXITED
25468 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25469 #endif
25470
25471 int
25472 main ()
25473 {
25474   int s;
25475   wait (&s);
25476   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25477   ;
25478   return 0;
25479 }
25480 _ACEOF
25481 rm -f conftest.$ac_objext
25482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25483   (eval $ac_compile) 2>conftest.er1
25484   ac_status=$?
25485   grep -v '^ *+' conftest.er1 >conftest.err
25486   rm -f conftest.er1
25487   cat conftest.err >&5
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } &&
25490          { ac_try='test -z "$ac_c_werror_flag"
25491                          || test ! -s conftest.err'
25492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493   (eval $ac_try) 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); }; } &&
25497          { ac_try='test -s conftest.$ac_objext'
25498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499   (eval $ac_try) 2>&5
25500   ac_status=$?
25501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); }; }; then
25503   ac_cv_header_sys_wait_h=yes
25504 else
25505   echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25507
25508 ac_cv_header_sys_wait_h=no
25509 fi
25510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25511 fi
25512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25514 if test $ac_cv_header_sys_wait_h = yes; then
25515
25516 cat >>confdefs.h <<\_ACEOF
25517 #define HAVE_SYS_WAIT_H 1
25518 _ACEOF
25519
25520 fi
25521
25522
25523
25524
25525
25526
25527 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25528 do
25529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25531   echo "$as_me:$LINENO: checking for $ac_header" >&5
25532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25534   echo $ECHO_N "(cached) $ECHO_C" >&6
25535 fi
25536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25538 else
25539   # Is the header compilable?
25540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25542 cat >conftest.$ac_ext <<_ACEOF
25543 /* confdefs.h.  */
25544 _ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h.  */
25548 $ac_includes_default
25549 #include <$ac_header>
25550 _ACEOF
25551 rm -f conftest.$ac_objext
25552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25553   (eval $ac_compile) 2>conftest.er1
25554   ac_status=$?
25555   grep -v '^ *+' conftest.er1 >conftest.err
25556   rm -f conftest.er1
25557   cat conftest.err >&5
25558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559   (exit $ac_status); } &&
25560          { ac_try='test -z "$ac_c_werror_flag"
25561                          || test ! -s conftest.err'
25562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563   (eval $ac_try) 2>&5
25564   ac_status=$?
25565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); }; } &&
25567          { ac_try='test -s conftest.$ac_objext'
25568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569   (eval $ac_try) 2>&5
25570   ac_status=$?
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); }; }; then
25573   ac_header_compiler=yes
25574 else
25575   echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25577
25578 ac_header_compiler=no
25579 fi
25580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25582 echo "${ECHO_T}$ac_header_compiler" >&6
25583
25584 # Is the header present?
25585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25587 cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h.  */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h.  */
25593 #include <$ac_header>
25594 _ACEOF
25595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25597   ac_status=$?
25598   grep -v '^ *+' conftest.er1 >conftest.err
25599   rm -f conftest.er1
25600   cat conftest.err >&5
25601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); } >/dev/null; then
25603   if test -s conftest.err; then
25604     ac_cpp_err=$ac_c_preproc_warn_flag
25605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25606   else
25607     ac_cpp_err=
25608   fi
25609 else
25610   ac_cpp_err=yes
25611 fi
25612 if test -z "$ac_cpp_err"; then
25613   ac_header_preproc=yes
25614 else
25615   echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25617
25618   ac_header_preproc=no
25619 fi
25620 rm -f conftest.err conftest.$ac_ext
25621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25622 echo "${ECHO_T}$ac_header_preproc" >&6
25623
25624 # So?  What about this header?
25625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25626   yes:no: )
25627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25631     ac_header_preproc=yes
25632     ;;
25633   no:yes:* )
25634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25646     (
25647       cat <<\_ASBOX
25648 ## ----------------------------------- ##
25649 ## Report this to llvmbugs@cs.uiuc.edu ##
25650 ## ----------------------------------- ##
25651 _ASBOX
25652     ) |
25653       sed "s/^/$as_me: WARNING:     /" >&2
25654     ;;
25655 esac
25656 echo "$as_me:$LINENO: checking for $ac_header" >&5
25657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661   eval "$as_ac_Header=\$ac_header_preproc"
25662 fi
25663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25665
25666 fi
25667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25668   cat >>confdefs.h <<_ACEOF
25669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25670 _ACEOF
25671
25672 fi
25673
25674 done
25675
25676
25677
25678
25679
25680
25681 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25682 do
25683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25685   echo "$as_me:$LINENO: checking for $ac_header" >&5
25686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25688   echo $ECHO_N "(cached) $ECHO_C" >&6
25689 fi
25690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25692 else
25693   # Is the header compilable?
25694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25696 cat >conftest.$ac_ext <<_ACEOF
25697 /* confdefs.h.  */
25698 _ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h.  */
25702 $ac_includes_default
25703 #include <$ac_header>
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25707   (eval $ac_compile) 2>conftest.er1
25708   ac_status=$?
25709   grep -v '^ *+' conftest.er1 >conftest.err
25710   rm -f conftest.er1
25711   cat conftest.err >&5
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } &&
25714          { ac_try='test -z "$ac_c_werror_flag"
25715                          || test ! -s conftest.err'
25716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717   (eval $ac_try) 2>&5
25718   ac_status=$?
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); }; } &&
25721          { ac_try='test -s conftest.$ac_objext'
25722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723   (eval $ac_try) 2>&5
25724   ac_status=$?
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); }; }; then
25727   ac_header_compiler=yes
25728 else
25729   echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 ac_header_compiler=no
25733 fi
25734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25736 echo "${ECHO_T}$ac_header_compiler" >&6
25737
25738 # Is the header present?
25739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25741 cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h.  */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h.  */
25747 #include <$ac_header>
25748 _ACEOF
25749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25751   ac_status=$?
25752   grep -v '^ *+' conftest.er1 >conftest.err
25753   rm -f conftest.er1
25754   cat conftest.err >&5
25755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); } >/dev/null; then
25757   if test -s conftest.err; then
25758     ac_cpp_err=$ac_c_preproc_warn_flag
25759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25760   else
25761     ac_cpp_err=
25762   fi
25763 else
25764   ac_cpp_err=yes
25765 fi
25766 if test -z "$ac_cpp_err"; then
25767   ac_header_preproc=yes
25768 else
25769   echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25771
25772   ac_header_preproc=no
25773 fi
25774 rm -f conftest.err conftest.$ac_ext
25775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25776 echo "${ECHO_T}$ac_header_preproc" >&6
25777
25778 # So?  What about this header?
25779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25780   yes:no: )
25781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25785     ac_header_preproc=yes
25786     ;;
25787   no:yes:* )
25788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25800     (
25801       cat <<\_ASBOX
25802 ## ----------------------------------- ##
25803 ## Report this to llvmbugs@cs.uiuc.edu ##
25804 ## ----------------------------------- ##
25805 _ASBOX
25806     ) |
25807       sed "s/^/$as_me: WARNING:     /" >&2
25808     ;;
25809 esac
25810 echo "$as_me:$LINENO: checking for $ac_header" >&5
25811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25813   echo $ECHO_N "(cached) $ECHO_C" >&6
25814 else
25815   eval "$as_ac_Header=\$ac_header_preproc"
25816 fi
25817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25819
25820 fi
25821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25822   cat >>confdefs.h <<_ACEOF
25823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25824 _ACEOF
25825
25826 fi
25827
25828 done
25829
25830
25831
25832
25833 for ac_header in malloc.h unistd.h windows.h
25834 do
25835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25837   echo "$as_me:$LINENO: checking for $ac_header" >&5
25838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25840   echo $ECHO_N "(cached) $ECHO_C" >&6
25841 fi
25842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25844 else
25845   # Is the header compilable?
25846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25848 cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h.  */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h.  */
25854 $ac_includes_default
25855 #include <$ac_header>
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25859   (eval $ac_compile) 2>conftest.er1
25860   ac_status=$?
25861   grep -v '^ *+' conftest.er1 >conftest.err
25862   rm -f conftest.er1
25863   cat conftest.err >&5
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); } &&
25866          { ac_try='test -z "$ac_c_werror_flag"
25867                          || test ! -s conftest.err'
25868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869   (eval $ac_try) 2>&5
25870   ac_status=$?
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); }; } &&
25873          { ac_try='test -s conftest.$ac_objext'
25874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875   (eval $ac_try) 2>&5
25876   ac_status=$?
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); }; }; then
25879   ac_header_compiler=yes
25880 else
25881   echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25883
25884 ac_header_compiler=no
25885 fi
25886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25888 echo "${ECHO_T}$ac_header_compiler" >&6
25889
25890 # Is the header present?
25891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25893 cat >conftest.$ac_ext <<_ACEOF
25894 /* confdefs.h.  */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h.  */
25899 #include <$ac_header>
25900 _ACEOF
25901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25903   ac_status=$?
25904   grep -v '^ *+' conftest.er1 >conftest.err
25905   rm -f conftest.er1
25906   cat conftest.err >&5
25907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908   (exit $ac_status); } >/dev/null; then
25909   if test -s conftest.err; then
25910     ac_cpp_err=$ac_c_preproc_warn_flag
25911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25912   else
25913     ac_cpp_err=
25914   fi
25915 else
25916   ac_cpp_err=yes
25917 fi
25918 if test -z "$ac_cpp_err"; then
25919   ac_header_preproc=yes
25920 else
25921   echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924   ac_header_preproc=no
25925 fi
25926 rm -f conftest.err conftest.$ac_ext
25927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25928 echo "${ECHO_T}$ac_header_preproc" >&6
25929
25930 # So?  What about this header?
25931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25932   yes:no: )
25933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25937     ac_header_preproc=yes
25938     ;;
25939   no:yes:* )
25940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25952     (
25953       cat <<\_ASBOX
25954 ## ----------------------------------- ##
25955 ## Report this to llvmbugs@cs.uiuc.edu ##
25956 ## ----------------------------------- ##
25957 _ASBOX
25958     ) |
25959       sed "s/^/$as_me: WARNING:     /" >&2
25960     ;;
25961 esac
25962 echo "$as_me:$LINENO: checking for $ac_header" >&5
25963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25965   echo $ECHO_N "(cached) $ECHO_C" >&6
25966 else
25967   eval "$as_ac_Header=\$ac_header_preproc"
25968 fi
25969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25971
25972 fi
25973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25974   cat >>confdefs.h <<_ACEOF
25975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25976 _ACEOF
25977
25978 fi
25979
25980 done
25981
25982 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25983 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25984 if test "${ac_cv_header_time+set}" = set; then
25985   echo $ECHO_N "(cached) $ECHO_C" >&6
25986 else
25987   cat >conftest.$ac_ext <<_ACEOF
25988 /* confdefs.h.  */
25989 _ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h.  */
25993 #include <sys/types.h>
25994 #include <sys/time.h>
25995 #include <time.h>
25996
25997 int
25998 main ()
25999 {
26000 if ((struct tm *) 0)
26001 return 0;
26002   ;
26003   return 0;
26004 }
26005 _ACEOF
26006 rm -f conftest.$ac_objext
26007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26008   (eval $ac_compile) 2>conftest.er1
26009   ac_status=$?
26010   grep -v '^ *+' conftest.er1 >conftest.err
26011   rm -f conftest.er1
26012   cat conftest.err >&5
26013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014   (exit $ac_status); } &&
26015          { ac_try='test -z "$ac_c_werror_flag"
26016                          || test ! -s conftest.err'
26017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018   (eval $ac_try) 2>&5
26019   ac_status=$?
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); }; } &&
26022          { ac_try='test -s conftest.$ac_objext'
26023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024   (eval $ac_try) 2>&5
26025   ac_status=$?
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); }; }; then
26028   ac_cv_header_time=yes
26029 else
26030   echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26032
26033 ac_cv_header_time=no
26034 fi
26035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26036 fi
26037 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26038 echo "${ECHO_T}$ac_cv_header_time" >&6
26039 if test $ac_cv_header_time = yes; then
26040
26041 cat >>confdefs.h <<\_ACEOF
26042 #define TIME_WITH_SYS_TIME 1
26043 _ACEOF
26044
26045 fi
26046
26047 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26048 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26049 if test "${ac_cv_header_mmap_anon+set}" = set; then
26050   echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052    ac_ext=c
26053 ac_cpp='$CPP $CPPFLAGS'
26054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26057
26058   cat >conftest.$ac_ext <<_ACEOF
26059 /* confdefs.h.  */
26060 _ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h.  */
26064 #include <sys/mman.h>
26065 #include <unistd.h>
26066 #include <fcntl.h>
26067 int
26068 main ()
26069 {
26070 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26071   ;
26072   return 0;
26073 }
26074 _ACEOF
26075 rm -f conftest.$ac_objext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26077   (eval $ac_compile) 2>conftest.er1
26078   ac_status=$?
26079   grep -v '^ *+' conftest.er1 >conftest.err
26080   rm -f conftest.er1
26081   cat conftest.err >&5
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); } &&
26084          { ac_try='test -z "$ac_c_werror_flag"
26085                          || test ! -s conftest.err'
26086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087   (eval $ac_try) 2>&5
26088   ac_status=$?
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); }; } &&
26091          { ac_try='test -s conftest.$ac_objext'
26092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093   (eval $ac_try) 2>&5
26094   ac_status=$?
26095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096   (exit $ac_status); }; }; then
26097   ac_cv_header_mmap_anon=yes
26098 else
26099   echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102 ac_cv_header_mmap_anon=no
26103 fi
26104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26105   ac_ext=c
26106 ac_cpp='$CPP $CPPFLAGS'
26107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26110
26111
26112 fi
26113 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26114 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26115 if test "$ac_cv_header_mmap_anon" = yes; then
26116
26117 cat >>confdefs.h <<\_ACEOF
26118 #define HAVE_MMAP_ANONYMOUS
26119 _ACEOF
26120
26121 fi
26122
26123
26124
26125
26126 for ac_header in inttypes.h stdint.h
26127 do
26128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26130   echo "$as_me:$LINENO: checking for $ac_header" >&5
26131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26133   echo $ECHO_N "(cached) $ECHO_C" >&6
26134 fi
26135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26137 else
26138   # Is the header compilable?
26139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26141 cat >conftest.$ac_ext <<_ACEOF
26142 /* confdefs.h.  */
26143 _ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h.  */
26147 $ac_includes_default
26148 #include <$ac_header>
26149 _ACEOF
26150 rm -f conftest.$ac_objext
26151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26152   (eval $ac_compile) 2>conftest.er1
26153   ac_status=$?
26154   grep -v '^ *+' conftest.er1 >conftest.err
26155   rm -f conftest.er1
26156   cat conftest.err >&5
26157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); } &&
26159          { ac_try='test -z "$ac_c_werror_flag"
26160                          || test ! -s conftest.err'
26161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162   (eval $ac_try) 2>&5
26163   ac_status=$?
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); }; } &&
26166          { ac_try='test -s conftest.$ac_objext'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; }; then
26172   ac_header_compiler=yes
26173 else
26174   echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.$ac_ext >&5
26176
26177 ac_header_compiler=no
26178 fi
26179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26181 echo "${ECHO_T}$ac_header_compiler" >&6
26182
26183 # Is the header present?
26184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26186 cat >conftest.$ac_ext <<_ACEOF
26187 /* confdefs.h.  */
26188 _ACEOF
26189 cat confdefs.h >>conftest.$ac_ext
26190 cat >>conftest.$ac_ext <<_ACEOF
26191 /* end confdefs.h.  */
26192 #include <$ac_header>
26193 _ACEOF
26194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26196   ac_status=$?
26197   grep -v '^ *+' conftest.er1 >conftest.err
26198   rm -f conftest.er1
26199   cat conftest.err >&5
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); } >/dev/null; then
26202   if test -s conftest.err; then
26203     ac_cpp_err=$ac_c_preproc_warn_flag
26204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26205   else
26206     ac_cpp_err=
26207   fi
26208 else
26209   ac_cpp_err=yes
26210 fi
26211 if test -z "$ac_cpp_err"; then
26212   ac_header_preproc=yes
26213 else
26214   echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26216
26217   ac_header_preproc=no
26218 fi
26219 rm -f conftest.err conftest.$ac_ext
26220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26221 echo "${ECHO_T}$ac_header_preproc" >&6
26222
26223 # So?  What about this header?
26224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26225   yes:no: )
26226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26230     ac_header_preproc=yes
26231     ;;
26232   no:yes:* )
26233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26245     (
26246       cat <<\_ASBOX
26247 ## ----------------------------------- ##
26248 ## Report this to llvmbugs@cs.uiuc.edu ##
26249 ## ----------------------------------- ##
26250 _ASBOX
26251     ) |
26252       sed "s/^/$as_me: WARNING:     /" >&2
26253     ;;
26254 esac
26255 echo "$as_me:$LINENO: checking for $ac_header" >&5
26256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26258   echo $ECHO_N "(cached) $ECHO_C" >&6
26259 else
26260   eval "$as_ac_Header=\$ac_header_preproc"
26261 fi
26262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26264
26265 fi
26266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26267   cat >>confdefs.h <<_ACEOF
26268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26269 _ACEOF
26270
26271 fi
26272
26273 done
26274
26275
26276
26277 echo "$as_me:$LINENO: checking for pid_t" >&5
26278 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26279 if test "${ac_cv_type_pid_t+set}" = set; then
26280   echo $ECHO_N "(cached) $ECHO_C" >&6
26281 else
26282   cat >conftest.$ac_ext <<_ACEOF
26283 /* confdefs.h.  */
26284 _ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h.  */
26288 $ac_includes_default
26289 int
26290 main ()
26291 {
26292 if ((pid_t *) 0)
26293   return 0;
26294 if (sizeof (pid_t))
26295   return 0;
26296   ;
26297   return 0;
26298 }
26299 _ACEOF
26300 rm -f conftest.$ac_objext
26301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26302   (eval $ac_compile) 2>conftest.er1
26303   ac_status=$?
26304   grep -v '^ *+' conftest.er1 >conftest.err
26305   rm -f conftest.er1
26306   cat conftest.err >&5
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); } &&
26309          { ac_try='test -z "$ac_c_werror_flag"
26310                          || test ! -s conftest.err'
26311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312   (eval $ac_try) 2>&5
26313   ac_status=$?
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); }; } &&
26316          { ac_try='test -s conftest.$ac_objext'
26317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318   (eval $ac_try) 2>&5
26319   ac_status=$?
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); }; }; then
26322   ac_cv_type_pid_t=yes
26323 else
26324   echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26326
26327 ac_cv_type_pid_t=no
26328 fi
26329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26330 fi
26331 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26332 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26333 if test $ac_cv_type_pid_t = yes; then
26334   :
26335 else
26336
26337 cat >>confdefs.h <<_ACEOF
26338 #define pid_t int
26339 _ACEOF
26340
26341 fi
26342
26343 echo "$as_me:$LINENO: checking for size_t" >&5
26344 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26345 if test "${ac_cv_type_size_t+set}" = set; then
26346   echo $ECHO_N "(cached) $ECHO_C" >&6
26347 else
26348   cat >conftest.$ac_ext <<_ACEOF
26349 /* confdefs.h.  */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h.  */
26354 $ac_includes_default
26355 int
26356 main ()
26357 {
26358 if ((size_t *) 0)
26359   return 0;
26360 if (sizeof (size_t))
26361   return 0;
26362   ;
26363   return 0;
26364 }
26365 _ACEOF
26366 rm -f conftest.$ac_objext
26367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26368   (eval $ac_compile) 2>conftest.er1
26369   ac_status=$?
26370   grep -v '^ *+' conftest.er1 >conftest.err
26371   rm -f conftest.er1
26372   cat conftest.err >&5
26373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374   (exit $ac_status); } &&
26375          { ac_try='test -z "$ac_c_werror_flag"
26376                          || test ! -s conftest.err'
26377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378   (eval $ac_try) 2>&5
26379   ac_status=$?
26380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381   (exit $ac_status); }; } &&
26382          { ac_try='test -s conftest.$ac_objext'
26383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384   (eval $ac_try) 2>&5
26385   ac_status=$?
26386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387   (exit $ac_status); }; }; then
26388   ac_cv_type_size_t=yes
26389 else
26390   echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26392
26393 ac_cv_type_size_t=no
26394 fi
26395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26396 fi
26397 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26398 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26399 if test $ac_cv_type_size_t = yes; then
26400   :
26401 else
26402
26403 cat >>confdefs.h <<_ACEOF
26404 #define size_t unsigned
26405 _ACEOF
26406
26407 fi
26408
26409 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26411 if test "${ac_cv_type_signal+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   cat >conftest.$ac_ext <<_ACEOF
26415 /* confdefs.h.  */
26416 _ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h.  */
26420 #include <sys/types.h>
26421 #include <signal.h>
26422 #ifdef signal
26423 # undef signal
26424 #endif
26425 #ifdef __cplusplus
26426 extern "C" void (*signal (int, void (*)(int)))(int);
26427 #else
26428 void (*signal ()) ();
26429 #endif
26430
26431 int
26432 main ()
26433 {
26434 int i;
26435   ;
26436   return 0;
26437 }
26438 _ACEOF
26439 rm -f conftest.$ac_objext
26440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441   (eval $ac_compile) 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } &&
26448          { ac_try='test -z "$ac_c_werror_flag"
26449                          || test ! -s conftest.err'
26450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451   (eval $ac_try) 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); }; } &&
26455          { ac_try='test -s conftest.$ac_objext'
26456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457   (eval $ac_try) 2>&5
26458   ac_status=$?
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); }; }; then
26461   ac_cv_type_signal=void
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466 ac_cv_type_signal=int
26467 fi
26468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26469 fi
26470 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26471 echo "${ECHO_T}$ac_cv_type_signal" >&6
26472
26473 cat >>confdefs.h <<_ACEOF
26474 #define RETSIGTYPE $ac_cv_type_signal
26475 _ACEOF
26476
26477
26478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26480 if test "${ac_cv_struct_tm+set}" = set; then
26481   echo $ECHO_N "(cached) $ECHO_C" >&6
26482 else
26483   cat >conftest.$ac_ext <<_ACEOF
26484 /* confdefs.h.  */
26485 _ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h.  */
26489 #include <sys/types.h>
26490 #include <time.h>
26491
26492 int
26493 main ()
26494 {
26495 struct tm *tp; tp->tm_sec;
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502   (eval $ac_compile) 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } &&
26509          { ac_try='test -z "$ac_c_werror_flag"
26510                          || test ! -s conftest.err'
26511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512   (eval $ac_try) 2>&5
26513   ac_status=$?
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); }; } &&
26516          { ac_try='test -s conftest.$ac_objext'
26517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518   (eval $ac_try) 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; }; then
26522   ac_cv_struct_tm=time.h
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527 ac_cv_struct_tm=sys/time.h
26528 fi
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530 fi
26531 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26532 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26533 if test $ac_cv_struct_tm = sys/time.h; then
26534
26535 cat >>confdefs.h <<\_ACEOF
26536 #define TM_IN_SYS_TIME 1
26537 _ACEOF
26538
26539 fi
26540
26541 echo "$as_me:$LINENO: checking for int64_t" >&5
26542 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26543 if test "${ac_cv_type_int64_t+set}" = set; then
26544   echo $ECHO_N "(cached) $ECHO_C" >&6
26545 else
26546   cat >conftest.$ac_ext <<_ACEOF
26547 /* confdefs.h.  */
26548 _ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h.  */
26552 $ac_includes_default
26553 int
26554 main ()
26555 {
26556 if ((int64_t *) 0)
26557   return 0;
26558 if (sizeof (int64_t))
26559   return 0;
26560   ;
26561   return 0;
26562 }
26563 _ACEOF
26564 rm -f conftest.$ac_objext
26565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26566   (eval $ac_compile) 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } &&
26573          { ac_try='test -z "$ac_c_werror_flag"
26574                          || test ! -s conftest.err'
26575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576   (eval $ac_try) 2>&5
26577   ac_status=$?
26578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); }; } &&
26580          { ac_try='test -s conftest.$ac_objext'
26581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582   (eval $ac_try) 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); }; }; then
26586   ac_cv_type_int64_t=yes
26587 else
26588   echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591 ac_cv_type_int64_t=no
26592 fi
26593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26594 fi
26595 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26596 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26597 if test $ac_cv_type_int64_t = yes; then
26598
26599 cat >>confdefs.h <<_ACEOF
26600 #define HAVE_INT64_T 1
26601 _ACEOF
26602
26603
26604 else
26605   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26606 echo "$as_me: error: Type int64_t required but not found" >&2;}
26607    { (exit 1); exit 1; }; }
26608 fi
26609
26610 echo "$as_me:$LINENO: checking for uint64_t" >&5
26611 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26612 if test "${ac_cv_type_uint64_t+set}" = set; then
26613   echo $ECHO_N "(cached) $ECHO_C" >&6
26614 else
26615   cat >conftest.$ac_ext <<_ACEOF
26616 /* confdefs.h.  */
26617 _ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h.  */
26621 $ac_includes_default
26622 int
26623 main ()
26624 {
26625 if ((uint64_t *) 0)
26626   return 0;
26627 if (sizeof (uint64_t))
26628   return 0;
26629   ;
26630   return 0;
26631 }
26632 _ACEOF
26633 rm -f conftest.$ac_objext
26634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26635   (eval $ac_compile) 2>conftest.er1
26636   ac_status=$?
26637   grep -v '^ *+' conftest.er1 >conftest.err
26638   rm -f conftest.er1
26639   cat conftest.err >&5
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); } &&
26642          { ac_try='test -z "$ac_c_werror_flag"
26643                          || test ! -s conftest.err'
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); }; } &&
26649          { ac_try='test -s conftest.$ac_objext'
26650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651   (eval $ac_try) 2>&5
26652   ac_status=$?
26653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); }; }; then
26655   ac_cv_type_uint64_t=yes
26656 else
26657   echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26659
26660 ac_cv_type_uint64_t=no
26661 fi
26662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26663 fi
26664 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26665 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26666 if test $ac_cv_type_uint64_t = yes; then
26667
26668 cat >>confdefs.h <<_ACEOF
26669 #define HAVE_UINT64_T 1
26670 _ACEOF
26671
26672
26673 else
26674   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26675 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26676 if test "${ac_cv_type_u_int64_t+set}" = set; then
26677   echo $ECHO_N "(cached) $ECHO_C" >&6
26678 else
26679   cat >conftest.$ac_ext <<_ACEOF
26680 /* confdefs.h.  */
26681 _ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h.  */
26685 $ac_includes_default
26686 int
26687 main ()
26688 {
26689 if ((u_int64_t *) 0)
26690   return 0;
26691 if (sizeof (u_int64_t))
26692   return 0;
26693   ;
26694   return 0;
26695 }
26696 _ACEOF
26697 rm -f conftest.$ac_objext
26698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26699   (eval $ac_compile) 2>conftest.er1
26700   ac_status=$?
26701   grep -v '^ *+' conftest.er1 >conftest.err
26702   rm -f conftest.er1
26703   cat conftest.err >&5
26704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); } &&
26706          { ac_try='test -z "$ac_c_werror_flag"
26707                          || test ! -s conftest.err'
26708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709   (eval $ac_try) 2>&5
26710   ac_status=$?
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); }; } &&
26713          { ac_try='test -s conftest.$ac_objext'
26714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715   (eval $ac_try) 2>&5
26716   ac_status=$?
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); }; }; then
26719   ac_cv_type_u_int64_t=yes
26720 else
26721   echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724 ac_cv_type_u_int64_t=no
26725 fi
26726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26727 fi
26728 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26729 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26730 if test $ac_cv_type_u_int64_t = yes; then
26731
26732 cat >>confdefs.h <<_ACEOF
26733 #define HAVE_U_INT64_T 1
26734 _ACEOF
26735
26736
26737 else
26738   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26739 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26740    { (exit 1); exit 1; }; }
26741 fi
26742
26743 fi
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26754 do
26755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26756 echo "$as_me:$LINENO: checking for $ac_func" >&5
26757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26758 if eval "test \"\${$as_ac_var+set}\" = set"; then
26759   echo $ECHO_N "(cached) $ECHO_C" >&6
26760 else
26761   cat >conftest.$ac_ext <<_ACEOF
26762 /* confdefs.h.  */
26763 _ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h.  */
26767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26769 #define $ac_func innocuous_$ac_func
26770
26771 /* System header to define __stub macros and hopefully few prototypes,
26772     which can conflict with char $ac_func (); below.
26773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26774     <limits.h> exists even on freestanding compilers.  */
26775
26776 #ifdef __STDC__
26777 # include <limits.h>
26778 #else
26779 # include <assert.h>
26780 #endif
26781
26782 #undef $ac_func
26783
26784 /* Override any gcc2 internal prototype to avoid an error.  */
26785 #ifdef __cplusplus
26786 extern "C"
26787 {
26788 #endif
26789 /* We use char because int might match the return type of a gcc2
26790    builtin and then its argument prototype would still apply.  */
26791 char $ac_func ();
26792 /* The GNU C library defines this for functions which it implements
26793     to always fail with ENOSYS.  Some functions are actually named
26794     something starting with __ and the normal name is an alias.  */
26795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26796 choke me
26797 #else
26798 char (*f) () = $ac_func;
26799 #endif
26800 #ifdef __cplusplus
26801 }
26802 #endif
26803
26804 int
26805 main ()
26806 {
26807 return f != $ac_func;
26808   ;
26809   return 0;
26810 }
26811 _ACEOF
26812 rm -f conftest.$ac_objext conftest$ac_exeext
26813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26814   (eval $ac_link) 2>conftest.er1
26815   ac_status=$?
26816   grep -v '^ *+' conftest.er1 >conftest.err
26817   rm -f conftest.er1
26818   cat conftest.err >&5
26819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820   (exit $ac_status); } &&
26821          { ac_try='test -z "$ac_c_werror_flag"
26822                          || test ! -s conftest.err'
26823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824   (eval $ac_try) 2>&5
26825   ac_status=$?
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); }; } &&
26828          { ac_try='test -s conftest$ac_exeext'
26829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830   (eval $ac_try) 2>&5
26831   ac_status=$?
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); }; }; then
26834   eval "$as_ac_var=yes"
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839 eval "$as_ac_var=no"
26840 fi
26841 rm -f conftest.err conftest.$ac_objext \
26842       conftest$ac_exeext conftest.$ac_ext
26843 fi
26844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26846 if test `eval echo '${'$as_ac_var'}'` = yes; then
26847   cat >>confdefs.h <<_ACEOF
26848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26849 _ACEOF
26850
26851 fi
26852 done
26853
26854
26855
26856
26857 for ac_func in mkdtemp mkstemp mktemp
26858 do
26859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26860 echo "$as_me:$LINENO: checking for $ac_func" >&5
26861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26862 if eval "test \"\${$as_ac_var+set}\" = set"; then
26863   echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865   cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26873 #define $ac_func innocuous_$ac_func
26874
26875 /* System header to define __stub macros and hopefully few prototypes,
26876     which can conflict with char $ac_func (); below.
26877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26878     <limits.h> exists even on freestanding compilers.  */
26879
26880 #ifdef __STDC__
26881 # include <limits.h>
26882 #else
26883 # include <assert.h>
26884 #endif
26885
26886 #undef $ac_func
26887
26888 /* Override any gcc2 internal prototype to avoid an error.  */
26889 #ifdef __cplusplus
26890 extern "C"
26891 {
26892 #endif
26893 /* We use char because int might match the return type of a gcc2
26894    builtin and then its argument prototype would still apply.  */
26895 char $ac_func ();
26896 /* The GNU C library defines this for functions which it implements
26897     to always fail with ENOSYS.  Some functions are actually named
26898     something starting with __ and the normal name is an alias.  */
26899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26900 choke me
26901 #else
26902 char (*f) () = $ac_func;
26903 #endif
26904 #ifdef __cplusplus
26905 }
26906 #endif
26907
26908 int
26909 main ()
26910 {
26911 return f != $ac_func;
26912   ;
26913   return 0;
26914 }
26915 _ACEOF
26916 rm -f conftest.$ac_objext conftest$ac_exeext
26917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26918   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
26939 else
26940   echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26942
26943 eval "$as_ac_var=no"
26944 fi
26945 rm -f conftest.err conftest.$ac_objext \
26946       conftest$ac_exeext conftest.$ac_ext
26947 fi
26948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26950 if test `eval echo '${'$as_ac_var'}'` = yes; then
26951   cat >>confdefs.h <<_ACEOF
26952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26953 _ACEOF
26954
26955 fi
26956 done
26957
26958
26959
26960
26961
26962
26963 for ac_func in realpath strdup strtoq strtoll sysconf
26964 do
26965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26966 echo "$as_me:$LINENO: checking for $ac_func" >&5
26967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26968 if eval "test \"\${$as_ac_var+set}\" = set"; then
26969   echo $ECHO_N "(cached) $ECHO_C" >&6
26970 else
26971   cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26979 #define $ac_func innocuous_$ac_func
26980
26981 /* System header to define __stub macros and hopefully few prototypes,
26982     which can conflict with char $ac_func (); below.
26983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26984     <limits.h> exists even on freestanding compilers.  */
26985
26986 #ifdef __STDC__
26987 # include <limits.h>
26988 #else
26989 # include <assert.h>
26990 #endif
26991
26992 #undef $ac_func
26993
26994 /* Override any gcc2 internal prototype to avoid an error.  */
26995 #ifdef __cplusplus
26996 extern "C"
26997 {
26998 #endif
26999 /* We use char because int might match the return type of a gcc2
27000    builtin and then its argument prototype would still apply.  */
27001 char $ac_func ();
27002 /* The GNU C library defines this for functions which it implements
27003     to always fail with ENOSYS.  Some functions are actually named
27004     something starting with __ and the normal name is an alias.  */
27005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27006 choke me
27007 #else
27008 char (*f) () = $ac_func;
27009 #endif
27010 #ifdef __cplusplus
27011 }
27012 #endif
27013
27014 int
27015 main ()
27016 {
27017 return f != $ac_func;
27018   ;
27019   return 0;
27020 }
27021 _ACEOF
27022 rm -f conftest.$ac_objext conftest$ac_exeext
27023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27024   (eval $ac_link) 2>conftest.er1
27025   ac_status=$?
27026   grep -v '^ *+' conftest.er1 >conftest.err
27027   rm -f conftest.er1
27028   cat conftest.err >&5
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); } &&
27031          { ac_try='test -z "$ac_c_werror_flag"
27032                          || test ! -s conftest.err'
27033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034   (eval $ac_try) 2>&5
27035   ac_status=$?
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); }; } &&
27038          { ac_try='test -s conftest$ac_exeext'
27039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040   (eval $ac_try) 2>&5
27041   ac_status=$?
27042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); }; }; then
27044   eval "$as_ac_var=yes"
27045 else
27046   echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049 eval "$as_ac_var=no"
27050 fi
27051 rm -f conftest.err conftest.$ac_objext \
27052       conftest$ac_exeext conftest.$ac_ext
27053 fi
27054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27056 if test `eval echo '${'$as_ac_var'}'` = yes; then
27057   cat >>confdefs.h <<_ACEOF
27058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27059 _ACEOF
27060
27061 fi
27062 done
27063
27064 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27065 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27066 if test "${llvm_cv_c_printf_a+set}" = set; then
27067   echo $ECHO_N "(cached) $ECHO_C" >&6
27068 else
27069   ac_ext=c
27070 ac_cpp='$CPP $CPPFLAGS'
27071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27074
27075  if test "$cross_compiling" = yes; then
27076   llvmac_cv_c_printf_a=no
27077 else
27078   cat >conftest.$ac_ext <<_ACEOF
27079
27080   /* confdefs.h.  */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h.  */
27085
27086 #include <stdio.h>
27087 #include <stdlib.h>
27088
27089 int
27090 main ()
27091 {
27092
27093 volatile double A, B;
27094 char Buffer[100];
27095 A = 1;
27096 A /= 10.0;
27097 sprintf(Buffer, "%a", A);
27098 B = atof(Buffer);
27099 if (A != B)
27100   return (1);
27101 if (A != 0x1.999999999999ap-4)
27102   return (1);
27103 return (0);
27104   ;
27105   return 0;
27106 }
27107 _ACEOF
27108 rm -f conftest$ac_exeext
27109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110   (eval $ac_link) 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115   (eval $ac_try) 2>&5
27116   ac_status=$?
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); }; }; then
27119   llvm_cv_c_printf_a=yes
27120 else
27121   echo "$as_me: program exited with status $ac_status" >&5
27122 echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27124
27125 ( exit $ac_status )
27126 llvmac_cv_c_printf_a=no
27127 fi
27128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27129 fi
27130  ac_ext=c
27131 ac_cpp='$CPP $CPPFLAGS'
27132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27135
27136 fi
27137 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27138 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27139  if test "$llvm_cv_c_printf_a" = "yes"; then
27140
27141 cat >>confdefs.h <<\_ACEOF
27142 #define HAVE_PRINTF_A 1
27143 _ACEOF
27144
27145  fi
27146
27147 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27148 # for constant arguments.  Useless!
27149 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27150 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27151 if test "${ac_cv_working_alloca_h+set}" = set; then
27152   echo $ECHO_N "(cached) $ECHO_C" >&6
27153 else
27154   cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160 #include <alloca.h>
27161 int
27162 main ()
27163 {
27164 char *p = (char *) alloca (2 * sizeof (int));
27165   ;
27166   return 0;
27167 }
27168 _ACEOF
27169 rm -f conftest.$ac_objext conftest$ac_exeext
27170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27171   (eval $ac_link) 2>conftest.er1
27172   ac_status=$?
27173   grep -v '^ *+' conftest.er1 >conftest.err
27174   rm -f conftest.er1
27175   cat conftest.err >&5
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); } &&
27178          { ac_try='test -z "$ac_c_werror_flag"
27179                          || test ! -s conftest.err'
27180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181   (eval $ac_try) 2>&5
27182   ac_status=$?
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); }; } &&
27185          { ac_try='test -s conftest$ac_exeext'
27186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187   (eval $ac_try) 2>&5
27188   ac_status=$?
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); }; }; then
27191   ac_cv_working_alloca_h=yes
27192 else
27193   echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27195
27196 ac_cv_working_alloca_h=no
27197 fi
27198 rm -f conftest.err conftest.$ac_objext \
27199       conftest$ac_exeext conftest.$ac_ext
27200 fi
27201 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27202 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27203 if test $ac_cv_working_alloca_h = yes; then
27204
27205 cat >>confdefs.h <<\_ACEOF
27206 #define HAVE_ALLOCA_H 1
27207 _ACEOF
27208
27209 fi
27210
27211 echo "$as_me:$LINENO: checking for alloca" >&5
27212 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27213 if test "${ac_cv_func_alloca_works+set}" = set; then
27214   echo $ECHO_N "(cached) $ECHO_C" >&6
27215 else
27216   cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222 #ifdef __GNUC__
27223 # define alloca __builtin_alloca
27224 #else
27225 # ifdef _MSC_VER
27226 #  include <malloc.h>
27227 #  define alloca _alloca
27228 # else
27229 #  if HAVE_ALLOCA_H
27230 #   include <alloca.h>
27231 #  else
27232 #   ifdef _AIX
27233  #pragma alloca
27234 #   else
27235 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27236 char *alloca ();
27237 #    endif
27238 #   endif
27239 #  endif
27240 # endif
27241 #endif
27242
27243 int
27244 main ()
27245 {
27246 char *p = (char *) alloca (1);
27247   ;
27248   return 0;
27249 }
27250 _ACEOF
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27253   (eval $ac_link) 2>conftest.er1
27254   ac_status=$?
27255   grep -v '^ *+' conftest.er1 >conftest.err
27256   rm -f conftest.er1
27257   cat conftest.err >&5
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); } &&
27260          { ac_try='test -z "$ac_c_werror_flag"
27261                          || test ! -s conftest.err'
27262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263   (eval $ac_try) 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; } &&
27267          { ac_try='test -s conftest$ac_exeext'
27268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269   (eval $ac_try) 2>&5
27270   ac_status=$?
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); }; }; then
27273   ac_cv_func_alloca_works=yes
27274 else
27275   echo "$as_me: failed program was:" >&5
27276 sed 's/^/| /' conftest.$ac_ext >&5
27277
27278 ac_cv_func_alloca_works=no
27279 fi
27280 rm -f conftest.err conftest.$ac_objext \
27281       conftest$ac_exeext conftest.$ac_ext
27282 fi
27283 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27284 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27285
27286 if test $ac_cv_func_alloca_works = yes; then
27287
27288 cat >>confdefs.h <<\_ACEOF
27289 #define HAVE_ALLOCA 1
27290 _ACEOF
27291
27292 else
27293   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27294 # that cause trouble.  Some versions do not even contain alloca or
27295 # contain a buggy version.  If you still want to use their alloca,
27296 # use ar to extract alloca.o from them instead of compiling alloca.c.
27297
27298 ALLOCA=alloca.$ac_objext
27299
27300 cat >>confdefs.h <<\_ACEOF
27301 #define C_ALLOCA 1
27302 _ACEOF
27303
27304
27305 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27306 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27307 if test "${ac_cv_os_cray+set}" = set; then
27308   echo $ECHO_N "(cached) $ECHO_C" >&6
27309 else
27310   cat >conftest.$ac_ext <<_ACEOF
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316 #if defined(CRAY) && ! defined(CRAY2)
27317 webecray
27318 #else
27319 wenotbecray
27320 #endif
27321
27322 _ACEOF
27323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27324   $EGREP "webecray" >/dev/null 2>&1; then
27325   ac_cv_os_cray=yes
27326 else
27327   ac_cv_os_cray=no
27328 fi
27329 rm -f conftest*
27330
27331 fi
27332 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27333 echo "${ECHO_T}$ac_cv_os_cray" >&6
27334 if test $ac_cv_os_cray = yes; then
27335   for ac_func in _getb67 GETB67 getb67; do
27336     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27337 echo "$as_me:$LINENO: checking for $ac_func" >&5
27338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27339 if eval "test \"\${$as_ac_var+set}\" = set"; then
27340   echo $ECHO_N "(cached) $ECHO_C" >&6
27341 else
27342   cat >conftest.$ac_ext <<_ACEOF
27343 /* confdefs.h.  */
27344 _ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h.  */
27348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27350 #define $ac_func innocuous_$ac_func
27351
27352 /* System header to define __stub macros and hopefully few prototypes,
27353     which can conflict with char $ac_func (); below.
27354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27355     <limits.h> exists even on freestanding compilers.  */
27356
27357 #ifdef __STDC__
27358 # include <limits.h>
27359 #else
27360 # include <assert.h>
27361 #endif
27362
27363 #undef $ac_func
27364
27365 /* Override any gcc2 internal prototype to avoid an error.  */
27366 #ifdef __cplusplus
27367 extern "C"
27368 {
27369 #endif
27370 /* We use char because int might match the return type of a gcc2
27371    builtin and then its argument prototype would still apply.  */
27372 char $ac_func ();
27373 /* The GNU C library defines this for functions which it implements
27374     to always fail with ENOSYS.  Some functions are actually named
27375     something starting with __ and the normal name is an alias.  */
27376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27377 choke me
27378 #else
27379 char (*f) () = $ac_func;
27380 #endif
27381 #ifdef __cplusplus
27382 }
27383 #endif
27384
27385 int
27386 main ()
27387 {
27388 return f != $ac_func;
27389   ;
27390   return 0;
27391 }
27392 _ACEOF
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27395   (eval $ac_link) 2>conftest.er1
27396   ac_status=$?
27397   grep -v '^ *+' conftest.er1 >conftest.err
27398   rm -f conftest.er1
27399   cat conftest.err >&5
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); } &&
27402          { ac_try='test -z "$ac_c_werror_flag"
27403                          || test ! -s conftest.err'
27404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405   (eval $ac_try) 2>&5
27406   ac_status=$?
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); }; } &&
27409          { ac_try='test -s conftest$ac_exeext'
27410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411   (eval $ac_try) 2>&5
27412   ac_status=$?
27413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414   (exit $ac_status); }; }; then
27415   eval "$as_ac_var=yes"
27416 else
27417   echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420 eval "$as_ac_var=no"
27421 fi
27422 rm -f conftest.err conftest.$ac_objext \
27423       conftest$ac_exeext conftest.$ac_ext
27424 fi
27425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27427 if test `eval echo '${'$as_ac_var'}'` = yes; then
27428
27429 cat >>confdefs.h <<_ACEOF
27430 #define CRAY_STACKSEG_END $ac_func
27431 _ACEOF
27432
27433     break
27434 fi
27435
27436   done
27437 fi
27438
27439 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27440 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27441 if test "${ac_cv_c_stack_direction+set}" = set; then
27442   echo $ECHO_N "(cached) $ECHO_C" >&6
27443 else
27444   if test "$cross_compiling" = yes; then
27445   ac_cv_c_stack_direction=0
27446 else
27447   cat >conftest.$ac_ext <<_ACEOF
27448 /* confdefs.h.  */
27449 _ACEOF
27450 cat confdefs.h >>conftest.$ac_ext
27451 cat >>conftest.$ac_ext <<_ACEOF
27452 /* end confdefs.h.  */
27453 int
27454 find_stack_direction ()
27455 {
27456   static char *addr = 0;
27457   auto char dummy;
27458   if (addr == 0)
27459     {
27460       addr = &dummy;
27461       return find_stack_direction ();
27462     }
27463   else
27464     return (&dummy > addr) ? 1 : -1;
27465 }
27466
27467 int
27468 main ()
27469 {
27470   exit (find_stack_direction () < 0);
27471 }
27472 _ACEOF
27473 rm -f conftest$ac_exeext
27474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27475   (eval $ac_link) 2>&5
27476   ac_status=$?
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480   (eval $ac_try) 2>&5
27481   ac_status=$?
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); }; }; then
27484   ac_cv_c_stack_direction=1
27485 else
27486   echo "$as_me: program exited with status $ac_status" >&5
27487 echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27489
27490 ( exit $ac_status )
27491 ac_cv_c_stack_direction=-1
27492 fi
27493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27494 fi
27495 fi
27496 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27497 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27498
27499 cat >>confdefs.h <<_ACEOF
27500 #define STACK_DIRECTION $ac_cv_c_stack_direction
27501 _ACEOF
27502
27503
27504 fi
27505
27506
27507 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27508 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27509 if test "${ac_cv_func_rand48+set}" = set; then
27510   echo $ECHO_N "(cached) $ECHO_C" >&6
27511 else
27512   ac_ext=cc
27513 ac_cpp='$CXXCPP $CPPFLAGS'
27514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27517
27518    cat >conftest.$ac_ext <<_ACEOF
27519 /* confdefs.h.  */
27520 _ACEOF
27521 cat confdefs.h >>conftest.$ac_ext
27522 cat >>conftest.$ac_ext <<_ACEOF
27523 /* end confdefs.h.  */
27524 #include <stdlib.h>
27525 int
27526 main ()
27527 {
27528 srand48(0);lrand48();drand48();
27529   ;
27530   return 0;
27531 }
27532 _ACEOF
27533 rm -f conftest.$ac_objext
27534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27535   (eval $ac_compile) 2>conftest.er1
27536   ac_status=$?
27537   grep -v '^ *+' conftest.er1 >conftest.err
27538   rm -f conftest.er1
27539   cat conftest.err >&5
27540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541   (exit $ac_status); } &&
27542          { ac_try='test -z "$ac_cxx_werror_flag"
27543                          || test ! -s conftest.err'
27544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545   (eval $ac_try) 2>&5
27546   ac_status=$?
27547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548   (exit $ac_status); }; } &&
27549          { ac_try='test -s conftest.$ac_objext'
27550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551   (eval $ac_try) 2>&5
27552   ac_status=$?
27553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); }; }; then
27555   ac_cv_func_rand48=yes
27556 else
27557   echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27559
27560 ac_cv_func_rand48=no
27561 fi
27562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27563   ac_ext=c
27564 ac_cpp='$CPP $CPPFLAGS'
27565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27568
27569 fi
27570 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27571 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27572
27573 if test "$ac_cv_func_rand48" = "yes" ; then
27574
27575 cat >>confdefs.h <<\_ACEOF
27576 #define HAVE_RAND48 1
27577 _ACEOF
27578
27579 fi
27580
27581
27582 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27583 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27584 if test "${ac_cv_cxx_namespaces+set}" = set; then
27585   echo $ECHO_N "(cached) $ECHO_C" >&6
27586 else
27587   ac_ext=cc
27588 ac_cpp='$CXXCPP $CPPFLAGS'
27589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27592
27593  cat >conftest.$ac_ext <<_ACEOF
27594 /* confdefs.h.  */
27595 _ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h.  */
27599 namespace Outer { namespace Inner { int i = 0; }}
27600 int
27601 main ()
27602 {
27603 using namespace Outer::Inner; return i;
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27610   (eval $ac_compile) 2>conftest.er1
27611   ac_status=$?
27612   grep -v '^ *+' conftest.er1 >conftest.err
27613   rm -f conftest.er1
27614   cat conftest.err >&5
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); } &&
27617          { ac_try='test -z "$ac_cxx_werror_flag"
27618                          || test ! -s conftest.err'
27619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620   (eval $ac_try) 2>&5
27621   ac_status=$?
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); }; } &&
27624          { ac_try='test -s conftest.$ac_objext'
27625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626   (eval $ac_try) 2>&5
27627   ac_status=$?
27628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); }; }; then
27630   ac_cv_cxx_namespaces=yes
27631 else
27632   echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27634
27635 ac_cv_cxx_namespaces=no
27636 fi
27637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27638  ac_ext=c
27639 ac_cpp='$CPP $CPPFLAGS'
27640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27643
27644
27645 fi
27646 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27647 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27648 if test "$ac_cv_cxx_namespaces" = yes; then
27649
27650 cat >>confdefs.h <<\_ACEOF
27651 #define HAVE_NAMESPACES
27652 _ACEOF
27653
27654 fi
27655
27656 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27657 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27658 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27659   echo $ECHO_N "(cached) $ECHO_C" >&6
27660 else
27661
27662   ac_ext=cc
27663 ac_cpp='$CXXCPP $CPPFLAGS'
27664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27667
27668   cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674 #include <ext/hash_map>
27675 #ifdef HAVE_NAMESPACES
27676 using namespace std;
27677 #endif
27678 int
27679 main ()
27680 {
27681 hash_map<int, int> t;
27682   ;
27683   return 0;
27684 }
27685 _ACEOF
27686 rm -f conftest.$ac_objext
27687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27688   (eval $ac_compile) 2>conftest.er1
27689   ac_status=$?
27690   grep -v '^ *+' conftest.er1 >conftest.err
27691   rm -f conftest.er1
27692   cat conftest.err >&5
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); } &&
27695          { ac_try='test -z "$ac_cxx_werror_flag"
27696                          || test ! -s conftest.err'
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); }; } &&
27702          { ac_try='test -s conftest.$ac_objext'
27703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704   (eval $ac_try) 2>&5
27705   ac_status=$?
27706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707   (exit $ac_status); }; }; then
27708   ac_cv_cxx_have_std_ext_hash_map=yes
27709 else
27710   echo "$as_me: failed program was:" >&5
27711 sed 's/^/| /' conftest.$ac_ext >&5
27712
27713 ac_cv_cxx_have_std_ext_hash_map=no
27714 fi
27715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27716   ac_ext=c
27717 ac_cpp='$CPP $CPPFLAGS'
27718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27721
27722 fi
27723 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27724 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27725  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27726  then
27727
27728 cat >>confdefs.h <<\_ACEOF
27729 #define HAVE_STD_EXT_HASH_MAP 1
27730 _ACEOF
27731
27732  else
27733
27734 cat >>confdefs.h <<\_ACEOF
27735 #define HAVE_STD_EXT_HASH_MAP 0
27736 _ACEOF
27737
27738  fi
27739
27740  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27741 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27742 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27743   echo $ECHO_N "(cached) $ECHO_C" >&6
27744 else
27745
27746   ac_ext=cc
27747 ac_cpp='$CXXCPP $CPPFLAGS'
27748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27751
27752   cat >conftest.$ac_ext <<_ACEOF
27753 /* confdefs.h.  */
27754 _ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h.  */
27758 #include <ext/hash_map>
27759 #ifdef HAVE_NAMESPACES
27760 using namespace __gnu_cxx;
27761 #endif
27762 int
27763 main ()
27764 {
27765 hash_map<int,int> t;
27766   ;
27767   return 0;
27768 }
27769 _ACEOF
27770 rm -f conftest.$ac_objext
27771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27772   (eval $ac_compile) 2>conftest.er1
27773   ac_status=$?
27774   grep -v '^ *+' conftest.er1 >conftest.err
27775   rm -f conftest.er1
27776   cat conftest.err >&5
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); } &&
27779          { ac_try='test -z "$ac_cxx_werror_flag"
27780                          || test ! -s conftest.err'
27781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27782   (eval $ac_try) 2>&5
27783   ac_status=$?
27784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785   (exit $ac_status); }; } &&
27786          { ac_try='test -s conftest.$ac_objext'
27787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788   (eval $ac_try) 2>&5
27789   ac_status=$?
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); }; }; then
27792   ac_cv_cxx_have_gnu_ext_hash_map=yes
27793 else
27794   echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27796
27797 ac_cv_cxx_have_gnu_ext_hash_map=no
27798 fi
27799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27800   ac_ext=c
27801 ac_cpp='$CPP $CPPFLAGS'
27802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27805
27806 fi
27807 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27808 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27809  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27810  then
27811
27812 cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_GNU_EXT_HASH_MAP 1
27814 _ACEOF
27815
27816  else
27817
27818 cat >>confdefs.h <<\_ACEOF
27819 #define HAVE_GNU_EXT_HASH_MAP 0
27820 _ACEOF
27821
27822  fi
27823
27824  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27825 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27826 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27827   echo $ECHO_N "(cached) $ECHO_C" >&6
27828 else
27829
27830   ac_ext=cc
27831 ac_cpp='$CXXCPP $CPPFLAGS'
27832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27835
27836   cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h.  */
27838 _ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h.  */
27842 #include <hash_map>
27843 int
27844 main ()
27845 {
27846 hash_map<int,int> t;
27847   ;
27848   return 0;
27849 }
27850 _ACEOF
27851 rm -f conftest.$ac_objext
27852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27853   (eval $ac_compile) 2>conftest.er1
27854   ac_status=$?
27855   grep -v '^ *+' conftest.er1 >conftest.err
27856   rm -f conftest.er1
27857   cat conftest.err >&5
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } &&
27860          { ac_try='test -z "$ac_cxx_werror_flag"
27861                          || test ! -s conftest.err'
27862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863   (eval $ac_try) 2>&5
27864   ac_status=$?
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); }; } &&
27867          { ac_try='test -s conftest.$ac_objext'
27868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869   (eval $ac_try) 2>&5
27870   ac_status=$?
27871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872   (exit $ac_status); }; }; then
27873   ac_cv_cxx_have_global_hash_map=yes
27874 else
27875   echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27877
27878 ac_cv_cxx_have_global_hash_map=no
27879 fi
27880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27881   ac_ext=c
27882 ac_cpp='$CPP $CPPFLAGS'
27883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27886
27887 fi
27888 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27889 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27890  if test "$ac_cv_cxx_have_global_hash_map" = yes
27891  then
27892
27893 cat >>confdefs.h <<\_ACEOF
27894 #define HAVE_GLOBAL_HASH_MAP 1
27895 _ACEOF
27896
27897  else
27898
27899 cat >>confdefs.h <<\_ACEOF
27900 #define HAVE_GLOBAL_HASH_MAP 0
27901 _ACEOF
27902
27903  fi
27904
27905 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27906 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27907 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27908   echo $ECHO_N "(cached) $ECHO_C" >&6
27909 else
27910
27911   ac_ext=cc
27912 ac_cpp='$CXXCPP $CPPFLAGS'
27913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27916
27917   cat >conftest.$ac_ext <<_ACEOF
27918 /* confdefs.h.  */
27919 _ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h.  */
27923 #include <ext/hash_set>
27924 #ifdef HAVE_NAMESPACES
27925 using namespace std;
27926 #endif
27927 int
27928 main ()
27929 {
27930 hash_set<int> t;
27931   ;
27932   return 0;
27933 }
27934 _ACEOF
27935 rm -f conftest.$ac_objext
27936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27937   (eval $ac_compile) 2>conftest.er1
27938   ac_status=$?
27939   grep -v '^ *+' conftest.er1 >conftest.err
27940   rm -f conftest.er1
27941   cat conftest.err >&5
27942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943   (exit $ac_status); } &&
27944          { ac_try='test -z "$ac_cxx_werror_flag"
27945                          || test ! -s conftest.err'
27946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947   (eval $ac_try) 2>&5
27948   ac_status=$?
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); }; } &&
27951          { ac_try='test -s conftest.$ac_objext'
27952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953   (eval $ac_try) 2>&5
27954   ac_status=$?
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); }; }; then
27957   ac_cv_cxx_have_std_ext_hash_set=yes
27958 else
27959   echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27961
27962 ac_cv_cxx_have_std_ext_hash_set=no
27963 fi
27964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27965   ac_ext=c
27966 ac_cpp='$CPP $CPPFLAGS'
27967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27970
27971 fi
27972 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27973 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27974  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27975  then
27976
27977 cat >>confdefs.h <<\_ACEOF
27978 #define HAVE_STD_EXT_HASH_SET 1
27979 _ACEOF
27980
27981  else
27982
27983 cat >>confdefs.h <<\_ACEOF
27984 #define HAVE_STD_EXT_HASH_SET 0
27985 _ACEOF
27986
27987  fi
27988
27989  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27990 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27991 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27992   echo $ECHO_N "(cached) $ECHO_C" >&6
27993 else
27994
27995   ac_ext=cc
27996 ac_cpp='$CXXCPP $CPPFLAGS'
27997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28000
28001   cat >conftest.$ac_ext <<_ACEOF
28002 /* confdefs.h.  */
28003 _ACEOF
28004 cat confdefs.h >>conftest.$ac_ext
28005 cat >>conftest.$ac_ext <<_ACEOF
28006 /* end confdefs.h.  */
28007 #include <ext/hash_set>
28008 #ifdef HAVE_NAMESPACES
28009 using namespace __gnu_cxx;
28010 #endif
28011 int
28012 main ()
28013 {
28014 hash_set<int> t;
28015   ;
28016   return 0;
28017 }
28018 _ACEOF
28019 rm -f conftest.$ac_objext
28020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28021   (eval $ac_compile) 2>conftest.er1
28022   ac_status=$?
28023   grep -v '^ *+' conftest.er1 >conftest.err
28024   rm -f conftest.er1
28025   cat conftest.err >&5
28026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027   (exit $ac_status); } &&
28028          { ac_try='test -z "$ac_cxx_werror_flag"
28029                          || test ! -s conftest.err'
28030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031   (eval $ac_try) 2>&5
28032   ac_status=$?
28033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); }; } &&
28035          { ac_try='test -s conftest.$ac_objext'
28036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037   (eval $ac_try) 2>&5
28038   ac_status=$?
28039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040   (exit $ac_status); }; }; then
28041   ac_cv_cxx_have_gnu_ext_hash_set=yes
28042 else
28043   echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28045
28046 ac_cv_cxx_have_gnu_ext_hash_set=no
28047 fi
28048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28049   ac_ext=c
28050 ac_cpp='$CPP $CPPFLAGS'
28051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28054
28055 fi
28056 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28057 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28058  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28059  then
28060
28061 cat >>confdefs.h <<\_ACEOF
28062 #define HAVE_GNU_EXT_HASH_SET 1
28063 _ACEOF
28064
28065  else
28066
28067 cat >>confdefs.h <<\_ACEOF
28068 #define HAVE_GNU_EXT_HASH_SET 0
28069 _ACEOF
28070
28071  fi
28072
28073  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28074 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28075 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28076   echo $ECHO_N "(cached) $ECHO_C" >&6
28077 else
28078
28079   ac_ext=cc
28080 ac_cpp='$CXXCPP $CPPFLAGS'
28081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28084
28085   cat >conftest.$ac_ext <<_ACEOF
28086 /* confdefs.h.  */
28087 _ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h.  */
28091 #include <hash_set>
28092 int
28093 main ()
28094 {
28095 hash_set<int> t; return 0;
28096   ;
28097   return 0;
28098 }
28099 _ACEOF
28100 rm -f conftest.$ac_objext
28101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28102   (eval $ac_compile) 2>conftest.er1
28103   ac_status=$?
28104   grep -v '^ *+' conftest.er1 >conftest.err
28105   rm -f conftest.er1
28106   cat conftest.err >&5
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); } &&
28109          { ac_try='test -z "$ac_cxx_werror_flag"
28110                          || test ! -s conftest.err'
28111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112   (eval $ac_try) 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); }; } &&
28116          { ac_try='test -s conftest.$ac_objext'
28117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118   (eval $ac_try) 2>&5
28119   ac_status=$?
28120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121   (exit $ac_status); }; }; then
28122   ac_cv_cxx_have_global_hash_set=yes
28123 else
28124   echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28126
28127 ac_cv_cxx_have_global_hash_set=no
28128 fi
28129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28130   ac_ext=c
28131 ac_cpp='$CPP $CPPFLAGS'
28132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28135
28136 fi
28137 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28138 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28139  if test "$ac_cv_cxx_have_global_hash_set" = yes
28140  then
28141
28142 cat >>confdefs.h <<\_ACEOF
28143 #define HAVE_GLOBAL_HASH_SET 1
28144 _ACEOF
28145
28146  else
28147
28148 cat >>confdefs.h <<\_ACEOF
28149 #define HAVE_GLOBAL_HASH_SET 0
28150 _ACEOF
28151
28152  fi
28153
28154 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28155 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28156 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28157   echo $ECHO_N "(cached) $ECHO_C" >&6
28158 else
28159
28160   ac_ext=cc
28161 ac_cpp='$CXXCPP $CPPFLAGS'
28162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28165
28166   cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172 #include <iterator>
28173 #ifdef HAVE_NAMESPACES
28174 using namespace std;
28175 #endif
28176 int
28177 main ()
28178 {
28179 iterator<int,int,int> t; return 0;
28180   ;
28181   return 0;
28182 }
28183 _ACEOF
28184 rm -f conftest.$ac_objext
28185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28186   (eval $ac_compile) 2>conftest.er1
28187   ac_status=$?
28188   grep -v '^ *+' conftest.er1 >conftest.err
28189   rm -f conftest.er1
28190   cat conftest.err >&5
28191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192   (exit $ac_status); } &&
28193          { ac_try='test -z "$ac_cxx_werror_flag"
28194                          || test ! -s conftest.err'
28195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196   (eval $ac_try) 2>&5
28197   ac_status=$?
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); }; } &&
28200          { ac_try='test -s conftest.$ac_objext'
28201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202   (eval $ac_try) 2>&5
28203   ac_status=$?
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); }; }; then
28206   ac_cv_cxx_have_std_iterator=yes
28207 else
28208   echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28210
28211 ac_cv_cxx_have_std_iterator=no
28212 fi
28213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28214   ac_ext=c
28215 ac_cpp='$CPP $CPPFLAGS'
28216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28219
28220
28221 fi
28222 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28223 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28224 if test "$ac_cv_cxx_have_std_iterator" = yes
28225 then
28226
28227 cat >>confdefs.h <<\_ACEOF
28228 #define HAVE_STD_ITERATOR 1
28229 _ACEOF
28230
28231 else
28232
28233 cat >>confdefs.h <<\_ACEOF
28234 #define HAVE_STD_ITERATOR 0
28235 _ACEOF
28236
28237 fi
28238
28239 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28240 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28241 if test "${ac_cv_cxx_have_bi_iterator+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 <iterator>
28258 #ifdef HAVE_NAMESPACES
28259 using namespace std;
28260 #endif
28261 int
28262 main ()
28263 {
28264 bidirectional_iterator<int,int> t; return 0;
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_bi_iterator=yes
28292 else
28293   echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296 ac_cv_cxx_have_bi_iterator=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
28306 fi
28307 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28308 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28309 if test "$ac_cv_cxx_have_bi_iterator" = yes
28310 then
28311
28312 cat >>confdefs.h <<\_ACEOF
28313 #define HAVE_BI_ITERATOR 1
28314 _ACEOF
28315
28316 else
28317
28318 cat >>confdefs.h <<\_ACEOF
28319 #define HAVE_BI_ITERATOR 0
28320 _ACEOF
28321
28322 fi
28323
28324 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28325 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28326 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28327   echo $ECHO_N "(cached) $ECHO_C" >&6
28328 else
28329
28330   ac_ext=cc
28331 ac_cpp='$CXXCPP $CPPFLAGS'
28332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28335
28336   cat >conftest.$ac_ext <<_ACEOF
28337 /* confdefs.h.  */
28338 _ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h.  */
28342 #include <iterator>
28343 #ifdef HAVE_NAMESPACES
28344 using namespace std;
28345 #endif
28346 int
28347 main ()
28348 {
28349 forward_iterator<int,int> t; return 0;
28350   ;
28351   return 0;
28352 }
28353 _ACEOF
28354 rm -f conftest.$ac_objext
28355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28356   (eval $ac_compile) 2>conftest.er1
28357   ac_status=$?
28358   grep -v '^ *+' conftest.er1 >conftest.err
28359   rm -f conftest.er1
28360   cat conftest.err >&5
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); } &&
28363          { ac_try='test -z "$ac_cxx_werror_flag"
28364                          || test ! -s conftest.err'
28365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366   (eval $ac_try) 2>&5
28367   ac_status=$?
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); }; } &&
28370          { ac_try='test -s conftest.$ac_objext'
28371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372   (eval $ac_try) 2>&5
28373   ac_status=$?
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); }; }; then
28376   ac_cv_cxx_have_fwd_iterator=yes
28377 else
28378   echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28380
28381 ac_cv_cxx_have_fwd_iterator=no
28382 fi
28383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28384   ac_ext=c
28385 ac_cpp='$CPP $CPPFLAGS'
28386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28389
28390
28391 fi
28392 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28393 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28394 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28395 then
28396
28397 cat >>confdefs.h <<\_ACEOF
28398 #define HAVE_FWD_ITERATOR 1
28399 _ACEOF
28400
28401 else
28402
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_FWD_ITERATOR 0
28405 _ACEOF
28406
28407 fi
28408
28409
28410 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28411 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28412 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28413   echo $ECHO_N "(cached) $ECHO_C" >&6
28414 else
28415   ac_ext=cc
28416 ac_cpp='$CXXCPP $CPPFLAGS'
28417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28420
28421    cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427 #include <math.h>
28428 int
28429 main ()
28430 {
28431 float f; isnan(f);
28432   ;
28433   return 0;
28434 }
28435 _ACEOF
28436 rm -f conftest.$ac_objext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28438   (eval $ac_compile) 2>conftest.er1
28439   ac_status=$?
28440   grep -v '^ *+' conftest.er1 >conftest.err
28441   rm -f conftest.er1
28442   cat conftest.err >&5
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); } &&
28445          { ac_try='test -z "$ac_cxx_werror_flag"
28446                          || test ! -s conftest.err'
28447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448   (eval $ac_try) 2>&5
28449   ac_status=$?
28450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); }; } &&
28452          { ac_try='test -s conftest.$ac_objext'
28453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454   (eval $ac_try) 2>&5
28455   ac_status=$?
28456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457   (exit $ac_status); }; }; then
28458   ac_cv_func_isnan_in_math_h=yes
28459 else
28460   echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28462
28463 ac_cv_func_isnan_in_math_h=no
28464 fi
28465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28466   ac_ext=c
28467 ac_cpp='$CPP $CPPFLAGS'
28468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28471
28472 fi
28473 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28474 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28475
28476
28477 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28478
28479 cat >>confdefs.h <<\_ACEOF
28480 #define HAVE_ISNAN_IN_MATH_H 1
28481 _ACEOF
28482
28483 fi
28484
28485 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28486 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28487 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28488   echo $ECHO_N "(cached) $ECHO_C" >&6
28489 else
28490   ac_ext=cc
28491 ac_cpp='$CXXCPP $CPPFLAGS'
28492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28495
28496    cat >conftest.$ac_ext <<_ACEOF
28497 /* confdefs.h.  */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h.  */
28502 #include <cmath>
28503 int
28504 main ()
28505 {
28506 float f; isnan(f);
28507   ;
28508   return 0;
28509 }
28510 _ACEOF
28511 rm -f conftest.$ac_objext
28512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28513   (eval $ac_compile) 2>conftest.er1
28514   ac_status=$?
28515   grep -v '^ *+' conftest.er1 >conftest.err
28516   rm -f conftest.er1
28517   cat conftest.err >&5
28518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519   (exit $ac_status); } &&
28520          { ac_try='test -z "$ac_cxx_werror_flag"
28521                          || test ! -s conftest.err'
28522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523   (eval $ac_try) 2>&5
28524   ac_status=$?
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); }; } &&
28527          { ac_try='test -s conftest.$ac_objext'
28528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529   (eval $ac_try) 2>&5
28530   ac_status=$?
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); }; }; then
28533   ac_cv_func_isnan_in_cmath=yes
28534 else
28535   echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28537
28538 ac_cv_func_isnan_in_cmath=no
28539 fi
28540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28541   ac_ext=c
28542 ac_cpp='$CPP $CPPFLAGS'
28543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28546
28547 fi
28548 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28549 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28550
28551 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28552
28553 cat >>confdefs.h <<\_ACEOF
28554 #define HAVE_ISNAN_IN_CMATH 1
28555 _ACEOF
28556
28557 fi
28558
28559 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28560 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28561 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28562   echo $ECHO_N "(cached) $ECHO_C" >&6
28563 else
28564   ac_ext=cc
28565 ac_cpp='$CXXCPP $CPPFLAGS'
28566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28569
28570    cat >conftest.$ac_ext <<_ACEOF
28571 /* confdefs.h.  */
28572 _ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h.  */
28576 #include <cmath>
28577 int
28578 main ()
28579 {
28580 float f; std::isnan(f);
28581   ;
28582   return 0;
28583 }
28584 _ACEOF
28585 rm -f conftest.$ac_objext
28586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28587   (eval $ac_compile) 2>conftest.er1
28588   ac_status=$?
28589   grep -v '^ *+' conftest.er1 >conftest.err
28590   rm -f conftest.er1
28591   cat conftest.err >&5
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); } &&
28594          { ac_try='test -z "$ac_cxx_werror_flag"
28595                          || test ! -s conftest.err'
28596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597   (eval $ac_try) 2>&5
28598   ac_status=$?
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); }; } &&
28601          { ac_try='test -s conftest.$ac_objext'
28602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603   (eval $ac_try) 2>&5
28604   ac_status=$?
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); }; }; then
28607   ac_cv_func_std_isnan_in_cmath=yes
28608 else
28609   echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28611
28612 ac_cv_func_std_isnan_in_cmath=no
28613 fi
28614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28615   ac_ext=c
28616 ac_cpp='$CPP $CPPFLAGS'
28617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28620
28621 fi
28622 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28623 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28624
28625 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28626
28627 cat >>confdefs.h <<\_ACEOF
28628 #define HAVE_STD_ISNAN_IN_CMATH 1
28629 _ACEOF
28630
28631 fi
28632
28633
28634 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28635 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28636 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28637   echo $ECHO_N "(cached) $ECHO_C" >&6
28638 else
28639   ac_ext=cc
28640 ac_cpp='$CXXCPP $CPPFLAGS'
28641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28644
28645    cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h.  */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h.  */
28651 #include <math.h>
28652 int
28653 main ()
28654 {
28655 float f; isinf(f);
28656   ;
28657   return 0;
28658 }
28659 _ACEOF
28660 rm -f conftest.$ac_objext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28662   (eval $ac_compile) 2>conftest.er1
28663   ac_status=$?
28664   grep -v '^ *+' conftest.er1 >conftest.err
28665   rm -f conftest.er1
28666   cat conftest.err >&5
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); } &&
28669          { ac_try='test -z "$ac_cxx_werror_flag"
28670                          || test ! -s conftest.err'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; } &&
28676          { ac_try='test -s conftest.$ac_objext'
28677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678   (eval $ac_try) 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; }; then
28682   ac_cv_func_isinf_in_math_h=yes
28683 else
28684   echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687 ac_cv_func_isinf_in_math_h=no
28688 fi
28689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28690   ac_ext=c
28691 ac_cpp='$CPP $CPPFLAGS'
28692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28695
28696 fi
28697 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28698 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28699
28700 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28701
28702 cat >>confdefs.h <<\_ACEOF
28703 #define HAVE_ISINF_IN_MATH_H 1
28704 _ACEOF
28705
28706 fi
28707
28708 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28709 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28710 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28711   echo $ECHO_N "(cached) $ECHO_C" >&6
28712 else
28713   ac_ext=cc
28714 ac_cpp='$CXXCPP $CPPFLAGS'
28715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28718
28719    cat >conftest.$ac_ext <<_ACEOF
28720 /* confdefs.h.  */
28721 _ACEOF
28722 cat confdefs.h >>conftest.$ac_ext
28723 cat >>conftest.$ac_ext <<_ACEOF
28724 /* end confdefs.h.  */
28725 #include <cmath>
28726 int
28727 main ()
28728 {
28729 float f; isinf(f);
28730   ;
28731   return 0;
28732 }
28733 _ACEOF
28734 rm -f conftest.$ac_objext
28735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28736   (eval $ac_compile) 2>conftest.er1
28737   ac_status=$?
28738   grep -v '^ *+' conftest.er1 >conftest.err
28739   rm -f conftest.er1
28740   cat conftest.err >&5
28741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742   (exit $ac_status); } &&
28743          { ac_try='test -z "$ac_cxx_werror_flag"
28744                          || test ! -s conftest.err'
28745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746   (eval $ac_try) 2>&5
28747   ac_status=$?
28748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749   (exit $ac_status); }; } &&
28750          { ac_try='test -s conftest.$ac_objext'
28751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752   (eval $ac_try) 2>&5
28753   ac_status=$?
28754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755   (exit $ac_status); }; }; then
28756   ac_cv_func_isinf_in_cmath=yes
28757 else
28758   echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28760
28761 ac_cv_func_isinf_in_cmath=no
28762 fi
28763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28764   ac_ext=c
28765 ac_cpp='$CPP $CPPFLAGS'
28766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28769
28770 fi
28771 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28772 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28773
28774 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28775
28776 cat >>confdefs.h <<\_ACEOF
28777 #define HAVE_ISINF_IN_CMATH 1
28778 _ACEOF
28779
28780 fi
28781
28782 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28783 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28784 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28785   echo $ECHO_N "(cached) $ECHO_C" >&6
28786 else
28787   ac_ext=cc
28788 ac_cpp='$CXXCPP $CPPFLAGS'
28789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28792
28793    cat >conftest.$ac_ext <<_ACEOF
28794 /* confdefs.h.  */
28795 _ACEOF
28796 cat confdefs.h >>conftest.$ac_ext
28797 cat >>conftest.$ac_ext <<_ACEOF
28798 /* end confdefs.h.  */
28799 #include <cmath>
28800 int
28801 main ()
28802 {
28803 float f; std::isinf(f)}
28804   ;
28805   return 0;
28806 }
28807 _ACEOF
28808 rm -f conftest.$ac_objext
28809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28810   (eval $ac_compile) 2>conftest.er1
28811   ac_status=$?
28812   grep -v '^ *+' conftest.er1 >conftest.err
28813   rm -f conftest.er1
28814   cat conftest.err >&5
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); } &&
28817          { ac_try='test -z "$ac_cxx_werror_flag"
28818                          || test ! -s conftest.err'
28819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820   (eval $ac_try) 2>&5
28821   ac_status=$?
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); }; } &&
28824          { ac_try='test -s conftest.$ac_objext'
28825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826   (eval $ac_try) 2>&5
28827   ac_status=$?
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); }; }; then
28830   ac_cv_func_std_isinf_in_cmath=yes
28831 else
28832   echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28834
28835 ac_cv_func_std_isinf_in_cmath=no
28836 fi
28837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28838   ac_ext=c
28839 ac_cpp='$CPP $CPPFLAGS'
28840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28843
28844 fi
28845 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28846 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28847
28848 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28849
28850 cat >>confdefs.h <<\_ACEOF
28851 #define HAVE_STD_ISINF_IN_CMATH 1
28852 _ACEOF
28853
28854 fi
28855
28856 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28857 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28858 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28859   echo $ECHO_N "(cached) $ECHO_C" >&6
28860 else
28861   ac_ext=cc
28862 ac_cpp='$CXXCPP $CPPFLAGS'
28863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28866
28867    cat >conftest.$ac_ext <<_ACEOF
28868 /* confdefs.h.  */
28869 _ACEOF
28870 cat confdefs.h >>conftest.$ac_ext
28871 cat >>conftest.$ac_ext <<_ACEOF
28872 /* end confdefs.h.  */
28873 #include <ieeefp.h>
28874 int
28875 main ()
28876 {
28877 float f; finite(f);
28878   ;
28879   return 0;
28880 }
28881 _ACEOF
28882 rm -f conftest.$ac_objext
28883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28884   (eval $ac_compile) 2>conftest.er1
28885   ac_status=$?
28886   grep -v '^ *+' conftest.er1 >conftest.err
28887   rm -f conftest.er1
28888   cat conftest.err >&5
28889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890   (exit $ac_status); } &&
28891          { ac_try='test -z "$ac_cxx_werror_flag"
28892                          || test ! -s conftest.err'
28893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894   (eval $ac_try) 2>&5
28895   ac_status=$?
28896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897   (exit $ac_status); }; } &&
28898          { ac_try='test -s conftest.$ac_objext'
28899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900   (eval $ac_try) 2>&5
28901   ac_status=$?
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); }; }; then
28904   ac_cv_func_finite_in_ieeefp_h=yes
28905 else
28906   echo "$as_me: failed program was:" >&5
28907 sed 's/^/| /' conftest.$ac_ext >&5
28908
28909 ac_cv_func_finite_in_ieeefp_h=no
28910 fi
28911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28912   ac_ext=c
28913 ac_cpp='$CPP $CPPFLAGS'
28914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28917
28918 fi
28919 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28920 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28921
28922 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28923
28924 cat >>confdefs.h <<\_ACEOF
28925 #define HAVE_FINITE_IN_IEEEFP_H 1
28926 _ACEOF
28927
28928 fi
28929
28930
28931
28932
28933
28934 for ac_header in stdlib.h unistd.h
28935 do
28936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28938   echo "$as_me:$LINENO: checking for $ac_header" >&5
28939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28941   echo $ECHO_N "(cached) $ECHO_C" >&6
28942 fi
28943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28945 else
28946   # Is the header compilable?
28947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28949 cat >conftest.$ac_ext <<_ACEOF
28950 /* confdefs.h.  */
28951 _ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h.  */
28955 $ac_includes_default
28956 #include <$ac_header>
28957 _ACEOF
28958 rm -f conftest.$ac_objext
28959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28960   (eval $ac_compile) 2>conftest.er1
28961   ac_status=$?
28962   grep -v '^ *+' conftest.er1 >conftest.err
28963   rm -f conftest.er1
28964   cat conftest.err >&5
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); } &&
28967          { ac_try='test -z "$ac_c_werror_flag"
28968                          || test ! -s conftest.err'
28969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970   (eval $ac_try) 2>&5
28971   ac_status=$?
28972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973   (exit $ac_status); }; } &&
28974          { ac_try='test -s conftest.$ac_objext'
28975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976   (eval $ac_try) 2>&5
28977   ac_status=$?
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); }; }; then
28980   ac_header_compiler=yes
28981 else
28982   echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28984
28985 ac_header_compiler=no
28986 fi
28987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28989 echo "${ECHO_T}$ac_header_compiler" >&6
28990
28991 # Is the header present?
28992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28994 cat >conftest.$ac_ext <<_ACEOF
28995 /* confdefs.h.  */
28996 _ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h.  */
29000 #include <$ac_header>
29001 _ACEOF
29002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29004   ac_status=$?
29005   grep -v '^ *+' conftest.er1 >conftest.err
29006   rm -f conftest.er1
29007   cat conftest.err >&5
29008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); } >/dev/null; then
29010   if test -s conftest.err; then
29011     ac_cpp_err=$ac_c_preproc_warn_flag
29012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29013   else
29014     ac_cpp_err=
29015   fi
29016 else
29017   ac_cpp_err=yes
29018 fi
29019 if test -z "$ac_cpp_err"; then
29020   ac_header_preproc=yes
29021 else
29022   echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29024
29025   ac_header_preproc=no
29026 fi
29027 rm -f conftest.err conftest.$ac_ext
29028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29029 echo "${ECHO_T}$ac_header_preproc" >&6
29030
29031 # So?  What about this header?
29032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29033   yes:no: )
29034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29038     ac_header_preproc=yes
29039     ;;
29040   no:yes:* )
29041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29053     (
29054       cat <<\_ASBOX
29055 ## ----------------------------------- ##
29056 ## Report this to llvmbugs@cs.uiuc.edu ##
29057 ## ----------------------------------- ##
29058 _ASBOX
29059     ) |
29060       sed "s/^/$as_me: WARNING:     /" >&2
29061     ;;
29062 esac
29063 echo "$as_me:$LINENO: checking for $ac_header" >&5
29064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29066   echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068   eval "$as_ac_Header=\$ac_header_preproc"
29069 fi
29070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29072
29073 fi
29074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29075   cat >>confdefs.h <<_ACEOF
29076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29077 _ACEOF
29078
29079 fi
29080
29081 done
29082
29083
29084 for ac_func in getpagesize
29085 do
29086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29087 echo "$as_me:$LINENO: checking for $ac_func" >&5
29088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29089 if eval "test \"\${$as_ac_var+set}\" = set"; then
29090   echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092   cat >conftest.$ac_ext <<_ACEOF
29093 /* confdefs.h.  */
29094 _ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h.  */
29098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29100 #define $ac_func innocuous_$ac_func
29101
29102 /* System header to define __stub macros and hopefully few prototypes,
29103     which can conflict with char $ac_func (); below.
29104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29105     <limits.h> exists even on freestanding compilers.  */
29106
29107 #ifdef __STDC__
29108 # include <limits.h>
29109 #else
29110 # include <assert.h>
29111 #endif
29112
29113 #undef $ac_func
29114
29115 /* Override any gcc2 internal prototype to avoid an error.  */
29116 #ifdef __cplusplus
29117 extern "C"
29118 {
29119 #endif
29120 /* We use char because int might match the return type of a gcc2
29121    builtin and then its argument prototype would still apply.  */
29122 char $ac_func ();
29123 /* The GNU C library defines this for functions which it implements
29124     to always fail with ENOSYS.  Some functions are actually named
29125     something starting with __ and the normal name is an alias.  */
29126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29127 choke me
29128 #else
29129 char (*f) () = $ac_func;
29130 #endif
29131 #ifdef __cplusplus
29132 }
29133 #endif
29134
29135 int
29136 main ()
29137 {
29138 return f != $ac_func;
29139   ;
29140   return 0;
29141 }
29142 _ACEOF
29143 rm -f conftest.$ac_objext conftest$ac_exeext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29145   (eval $ac_link) 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } &&
29152          { ac_try='test -z "$ac_c_werror_flag"
29153                          || test ! -s conftest.err'
29154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155   (eval $ac_try) 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; } &&
29159          { ac_try='test -s conftest$ac_exeext'
29160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161   (eval $ac_try) 2>&5
29162   ac_status=$?
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); }; }; then
29165   eval "$as_ac_var=yes"
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170 eval "$as_ac_var=no"
29171 fi
29172 rm -f conftest.err conftest.$ac_objext \
29173       conftest$ac_exeext conftest.$ac_ext
29174 fi
29175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29177 if test `eval echo '${'$as_ac_var'}'` = yes; then
29178   cat >>confdefs.h <<_ACEOF
29179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29180 _ACEOF
29181
29182 fi
29183 done
29184
29185 echo "$as_me:$LINENO: checking for working mmap" >&5
29186 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29187 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29188   echo $ECHO_N "(cached) $ECHO_C" >&6
29189 else
29190   if test "$cross_compiling" = yes; then
29191   ac_cv_func_mmap_fixed_mapped=no
29192 else
29193   cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h.  */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h.  */
29199 $ac_includes_default
29200 /* malloc might have been renamed as rpl_malloc. */
29201 #undef malloc
29202
29203 /* Thanks to Mike Haertel and Jim Avera for this test.
29204    Here is a matrix of mmap possibilities:
29205         mmap private not fixed
29206         mmap private fixed at somewhere currently unmapped
29207         mmap private fixed at somewhere already mapped
29208         mmap shared not fixed
29209         mmap shared fixed at somewhere currently unmapped
29210         mmap shared fixed at somewhere already mapped
29211    For private mappings, we should verify that changes cannot be read()
29212    back from the file, nor mmap's back from the file at a different
29213    address.  (There have been systems where private was not correctly
29214    implemented like the infamous i386 svr4.0, and systems where the
29215    VM page cache was not coherent with the file system buffer cache
29216    like early versions of FreeBSD and possibly contemporary NetBSD.)
29217    For shared mappings, we should conversely verify that changes get
29218    propagated back to all the places they're supposed to be.
29219
29220    Grep wants private fixed already mapped.
29221    The main things grep needs to know about mmap are:
29222    * does it exist and is it safe to write into the mmap'd area
29223    * how to use it (BSD variants)  */
29224
29225 #include <fcntl.h>
29226 #include <sys/mman.h>
29227
29228 #if !STDC_HEADERS && !HAVE_STDLIB_H
29229 char *malloc ();
29230 #endif
29231
29232 /* This mess was copied from the GNU getpagesize.h.  */
29233 #if !HAVE_GETPAGESIZE
29234 /* Assume that all systems that can run configure have sys/param.h.  */
29235 # if !HAVE_SYS_PARAM_H
29236 #  define HAVE_SYS_PARAM_H 1
29237 # endif
29238
29239 # ifdef _SC_PAGESIZE
29240 #  define getpagesize() sysconf(_SC_PAGESIZE)
29241 # else /* no _SC_PAGESIZE */
29242 #  if HAVE_SYS_PARAM_H
29243 #   include <sys/param.h>
29244 #   ifdef EXEC_PAGESIZE
29245 #    define getpagesize() EXEC_PAGESIZE
29246 #   else /* no EXEC_PAGESIZE */
29247 #    ifdef NBPG
29248 #     define getpagesize() NBPG * CLSIZE
29249 #     ifndef CLSIZE
29250 #      define CLSIZE 1
29251 #     endif /* no CLSIZE */
29252 #    else /* no NBPG */
29253 #     ifdef NBPC
29254 #      define getpagesize() NBPC
29255 #     else /* no NBPC */
29256 #      ifdef PAGESIZE
29257 #       define getpagesize() PAGESIZE
29258 #      endif /* PAGESIZE */
29259 #     endif /* no NBPC */
29260 #    endif /* no NBPG */
29261 #   endif /* no EXEC_PAGESIZE */
29262 #  else /* no HAVE_SYS_PARAM_H */
29263 #   define getpagesize() 8192   /* punt totally */
29264 #  endif /* no HAVE_SYS_PARAM_H */
29265 # endif /* no _SC_PAGESIZE */
29266
29267 #endif /* no HAVE_GETPAGESIZE */
29268
29269 int
29270 main ()
29271 {
29272   char *data, *data2, *data3;
29273   int i, pagesize;
29274   int fd;
29275
29276   pagesize = getpagesize ();
29277
29278   /* First, make a file with some known garbage in it. */
29279   data = (char *) malloc (pagesize);
29280   if (!data)
29281     exit (1);
29282   for (i = 0; i < pagesize; ++i)
29283     *(data + i) = rand ();
29284   umask (0);
29285   fd = creat ("conftest.mmap", 0600);
29286   if (fd < 0)
29287     exit (1);
29288   if (write (fd, data, pagesize) != pagesize)
29289     exit (1);
29290   close (fd);
29291
29292   /* Next, try to mmap the file at a fixed address which already has
29293      something else allocated at it.  If we can, also make sure that
29294      we see the same garbage.  */
29295   fd = open ("conftest.mmap", O_RDWR);
29296   if (fd < 0)
29297     exit (1);
29298   data2 = (char *) malloc (2 * pagesize);
29299   if (!data2)
29300     exit (1);
29301   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29302   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29303                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29304     exit (1);
29305   for (i = 0; i < pagesize; ++i)
29306     if (*(data + i) != *(data2 + i))
29307       exit (1);
29308
29309   /* Finally, make sure that changes to the mapped area do not
29310      percolate back to the file as seen by read().  (This is a bug on
29311      some variants of i386 svr4.0.)  */
29312   for (i = 0; i < pagesize; ++i)
29313     *(data2 + i) = *(data2 + i) + 1;
29314   data3 = (char *) malloc (pagesize);
29315   if (!data3)
29316     exit (1);
29317   if (read (fd, data3, pagesize) != pagesize)
29318     exit (1);
29319   for (i = 0; i < pagesize; ++i)
29320     if (*(data + i) != *(data3 + i))
29321       exit (1);
29322   close (fd);
29323   exit (0);
29324 }
29325 _ACEOF
29326 rm -f conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328   (eval $ac_link) 2>&5
29329   ac_status=$?
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333   (eval $ac_try) 2>&5
29334   ac_status=$?
29335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336   (exit $ac_status); }; }; then
29337   ac_cv_func_mmap_fixed_mapped=yes
29338 else
29339   echo "$as_me: program exited with status $ac_status" >&5
29340 echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29342
29343 ( exit $ac_status )
29344 ac_cv_func_mmap_fixed_mapped=no
29345 fi
29346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29347 fi
29348 fi
29349 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29350 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29351 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29352
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_MMAP 1
29355 _ACEOF
29356
29357 fi
29358 rm -f conftest.mmap
29359
29360 echo "$as_me:$LINENO: checking for mmap of files" >&5
29361 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29362 if test "${ac_cv_func_mmap_file+set}" = set; then
29363   echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365    ac_ext=c
29366 ac_cpp='$CPP $CPPFLAGS'
29367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29370
29371   if test "$cross_compiling" = yes; then
29372   ac_cv_func_mmap_file=no
29373 else
29374   cat >conftest.$ac_ext <<_ACEOF
29375
29376     /* confdefs.h.  */
29377 _ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h.  */
29381
29382 #include <sys/types.h>
29383 #include <sys/mman.h>
29384 #include <fcntl.h>
29385
29386 int
29387 main ()
29388 {
29389
29390   int fd;
29391   fd = creat ("foo",0777);
29392   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29393   unlink ("foo");
29394   return (fd != (int) MAP_FAILED);
29395   ;
29396   return 0;
29397 }
29398 _ACEOF
29399 rm -f conftest$ac_exeext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29401   (eval $ac_link) 2>&5
29402   ac_status=$?
29403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406   (eval $ac_try) 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   ac_cv_func_mmap_file=yes
29411 else
29412   echo "$as_me: program exited with status $ac_status" >&5
29413 echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416 ( exit $ac_status )
29417 ac_cv_func_mmap_file=no
29418 fi
29419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29420 fi
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
29428 fi
29429 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29430 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29431 if test "$ac_cv_func_mmap_file" = yes; then
29432
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_MMAP_FILE
29435 _ACEOF
29436
29437    MMAP_FILE=yes
29438
29439 fi
29440
29441 echo "$as_me:$LINENO: checking for mprotect" >&5
29442 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29443 if test "${ac_cv_func_mprotect+set}" = set; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 else
29446   cat >conftest.$ac_ext <<_ACEOF
29447 /* confdefs.h.  */
29448 _ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h.  */
29452 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29454 #define mprotect innocuous_mprotect
29455
29456 /* System header to define __stub macros and hopefully few prototypes,
29457     which can conflict with char mprotect (); below.
29458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29459     <limits.h> exists even on freestanding compilers.  */
29460
29461 #ifdef __STDC__
29462 # include <limits.h>
29463 #else
29464 # include <assert.h>
29465 #endif
29466
29467 #undef mprotect
29468
29469 /* Override any gcc2 internal prototype to avoid an error.  */
29470 #ifdef __cplusplus
29471 extern "C"
29472 {
29473 #endif
29474 /* We use char because int might match the return type of a gcc2
29475    builtin and then its argument prototype would still apply.  */
29476 char mprotect ();
29477 /* The GNU C library defines this for functions which it implements
29478     to always fail with ENOSYS.  Some functions are actually named
29479     something starting with __ and the normal name is an alias.  */
29480 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29481 choke me
29482 #else
29483 char (*f) () = mprotect;
29484 #endif
29485 #ifdef __cplusplus
29486 }
29487 #endif
29488
29489 int
29490 main ()
29491 {
29492 return f != mprotect;
29493   ;
29494   return 0;
29495 }
29496 _ACEOF
29497 rm -f conftest.$ac_objext conftest$ac_exeext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29499   (eval $ac_link) 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } &&
29506          { ac_try='test -z "$ac_c_werror_flag"
29507                          || test ! -s conftest.err'
29508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509   (eval $ac_try) 2>&5
29510   ac_status=$?
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); }; } &&
29513          { ac_try='test -s conftest$ac_exeext'
29514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515   (eval $ac_try) 2>&5
29516   ac_status=$?
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); }; }; then
29519   ac_cv_func_mprotect=yes
29520 else
29521   echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524 ac_cv_func_mprotect=no
29525 fi
29526 rm -f conftest.err conftest.$ac_objext \
29527       conftest$ac_exeext conftest.$ac_ext
29528 fi
29529 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29530 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29531 if test $ac_cv_func_mprotect = yes; then
29532   :
29533 else
29534   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29535 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29536    { (exit 1); exit 1; }; }
29537 fi
29538
29539
29540 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29541 then
29542   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29543 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29544 fi
29545 if test "$ac_cv_func_mmap_file" = "no"
29546 then
29547   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29548 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29549 fi
29550
29551
29552 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29553 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29554 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29555   echo $ECHO_N "(cached) $ECHO_C" >&6
29556 else
29557   llvm_cv_llvmgcc_sanity="no"
29558 if test -x "$LLVMGCC" ; then
29559   cp /dev/null conftest.c
29560   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29561   if test $? -eq 0 ; then
29562     llvm_cv_llvmgcc_sanity="yes"
29563   fi
29564   rm conftest.c
29565 fi
29566 fi
29567 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29568 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29569
29570 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29571   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
29572   LLVMCC1=$llvmcc1path
29573
29574   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
29575   LLVMCC1PLUS=$llvmcc1pluspath
29576
29577   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
29578   LLVMGCCDIR=$llvmgccdir
29579
29580 fi
29581
29582 SHLIBEXT=$libltdl_cv_shlibext
29583
29584
29585 # Translate the various configuration directories and other basic
29586 # information into substitutions that will end up in Makefile.config.in
29587 # that these configured values can be used by the makefiles
29588 eval LLVM_PREFIX="${prefix}";
29589 eval LLVM_BINDIR="${prefix}/bin";
29590 eval LLVM_LIBDIR="${prefix}/lib";
29591 eval LLVM_DATADIR="${prefix}/share/llvm";
29592 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29593 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29594 eval LLVM_INCLUDEDIR="${prefix}/include";
29595 eval LLVM_INFODIR="${prefix}/info";
29596 eval LLVM_MANDIR="${prefix}/man";
29597 LLVM_CONFIGTIME=`date`
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609 # Place the various directores into the config.h file as #defines so that we
29610 # can know about the installation paths within LLVM.
29611
29612 cat >>confdefs.h <<_ACEOF
29613 #define LLVM_PREFIX "$LLVM_PREFIX"
29614 _ACEOF
29615
29616
29617 cat >>confdefs.h <<_ACEOF
29618 #define LLVM_BINDIR "$LLVM_BINDIR"
29619 _ACEOF
29620
29621
29622 cat >>confdefs.h <<_ACEOF
29623 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29624 _ACEOF
29625
29626
29627 cat >>confdefs.h <<_ACEOF
29628 #define LLVM_DATADIR "$LLVM_DATADIR"
29629 _ACEOF
29630
29631
29632 cat >>confdefs.h <<_ACEOF
29633 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29634 _ACEOF
29635
29636
29637 cat >>confdefs.h <<_ACEOF
29638 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29639 _ACEOF
29640
29641
29642 cat >>confdefs.h <<_ACEOF
29643 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29644 _ACEOF
29645
29646
29647 cat >>confdefs.h <<_ACEOF
29648 #define LLVM_INFODIR "$LLVM_INFODIR"
29649 _ACEOF
29650
29651
29652 cat >>confdefs.h <<_ACEOF
29653 #define LLVM_MANDIR "$LLVM_MANDIR"
29654 _ACEOF
29655
29656
29657 cat >>confdefs.h <<_ACEOF
29658 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29659 _ACEOF
29660
29661
29662
29663           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29664
29665
29666           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29667
29668           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29669
29670           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29671
29672           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29673
29674           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29675
29676
29677           ac_config_files="$ac_config_files Makefile.config"
29678
29679
29680                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29681
29682
29683           ac_config_files="$ac_config_files docs/doxygen.cfg"
29684
29685
29686           ac_config_commands="$ac_config_commands Makefile"
29687
29688
29689           ac_config_commands="$ac_config_commands Makefile.common"
29690
29691
29692           ac_config_commands="$ac_config_commands examples/Makefile"
29693
29694
29695           ac_config_commands="$ac_config_commands lib/Makefile"
29696
29697
29698           ac_config_commands="$ac_config_commands runtime/Makefile"
29699
29700
29701           ac_config_commands="$ac_config_commands test/Makefile"
29702
29703
29704           ac_config_commands="$ac_config_commands test/Makefile.tests"
29705
29706
29707           ac_config_commands="$ac_config_commands tools/Makefile"
29708
29709
29710           ac_config_commands="$ac_config_commands utils/Makefile"
29711
29712
29713           ac_config_commands="$ac_config_commands projects/Makefile"
29714
29715
29716
29717 cat >confcache <<\_ACEOF
29718 # This file is a shell script that caches the results of configure
29719 # tests run on this system so they can be shared between configure
29720 # scripts and configure runs, see configure's option --config-cache.
29721 # It is not useful on other systems.  If it contains results you don't
29722 # want to keep, you may remove or edit it.
29723 #
29724 # config.status only pays attention to the cache file if you give it
29725 # the --recheck option to rerun configure.
29726 #
29727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29729 # following values.
29730
29731 _ACEOF
29732
29733 # The following way of writing the cache mishandles newlines in values,
29734 # but we know of no workaround that is simple, portable, and efficient.
29735 # So, don't put newlines in cache variables' values.
29736 # Ultrix sh set writes to stderr and can't be redirected directly,
29737 # and sets the high bit in the cache file unless we assign to the vars.
29738 {
29739   (set) 2>&1 |
29740     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29741     *ac_space=\ *)
29742       # `set' does not quote correctly, so add quotes (double-quote
29743       # substitution turns \\\\ into \\, and sed turns \\ into \).
29744       sed -n \
29745         "s/'/'\\\\''/g;
29746           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29747       ;;
29748     *)
29749       # `set' quotes correctly as required by POSIX, so do not add quotes.
29750       sed -n \
29751         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29752       ;;
29753     esac;
29754 } |
29755   sed '
29756      t clear
29757      : clear
29758      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29759      t end
29760      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29761      : end' >>confcache
29762 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29763   if test -w $cache_file; then
29764     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29765     cat confcache >$cache_file
29766   else
29767     echo "not updating unwritable cache $cache_file"
29768   fi
29769 fi
29770 rm -f confcache
29771
29772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29773 # Let make expand exec_prefix.
29774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29775
29776 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29777 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29778 # trailing colons and then remove the whole line if VPATH becomes empty
29779 # (actually we leave an empty line to preserve line numbers).
29780 if test "x$srcdir" = x.; then
29781   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29782 s/:*\$(srcdir):*/:/;
29783 s/:*\${srcdir}:*/:/;
29784 s/:*@srcdir@:*/:/;
29785 s/^\([^=]*=[     ]*\):*/\1/;
29786 s/:*$//;
29787 s/^[^=]*=[       ]*$//;
29788 }'
29789 fi
29790
29791 DEFS=-DHAVE_CONFIG_H
29792
29793 ac_libobjs=
29794 ac_ltlibobjs=
29795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29796   # 1. Remove the extension, and $U if already installed.
29797   ac_i=`echo "$ac_i" |
29798          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29799   # 2. Add them.
29800   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29801   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29802 done
29803 LIBOBJS=$ac_libobjs
29804
29805 LTLIBOBJS=$ac_ltlibobjs
29806
29807
29808 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29809   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29810 Usually this means the macro was only invoked conditionally." >&5
29811 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29812 Usually this means the macro was only invoked conditionally." >&2;}
29813    { (exit 1); exit 1; }; }
29814 fi
29815 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29816   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29817 Usually this means the macro was only invoked conditionally." >&5
29818 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29819 Usually this means the macro was only invoked conditionally." >&2;}
29820    { (exit 1); exit 1; }; }
29821 fi
29822
29823 : ${CONFIG_STATUS=./config.status}
29824 ac_clean_files_save=$ac_clean_files
29825 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29826 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29827 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29828 cat >$CONFIG_STATUS <<_ACEOF
29829 #! $SHELL
29830 # Generated by $as_me.
29831 # Run this file to recreate the current configuration.
29832 # Compiler output produced by configure, useful for debugging
29833 # configure, is in config.log if it exists.
29834
29835 debug=false
29836 ac_cs_recheck=false
29837 ac_cs_silent=false
29838 SHELL=\${CONFIG_SHELL-$SHELL}
29839 _ACEOF
29840
29841 cat >>$CONFIG_STATUS <<\_ACEOF
29842 ## --------------------- ##
29843 ## M4sh Initialization.  ##
29844 ## --------------------- ##
29845
29846 # Be Bourne compatible
29847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29848   emulate sh
29849   NULLCMD=:
29850   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29851   # is contrary to our usage.  Disable this feature.
29852   alias -g '${1+"$@"}'='"$@"'
29853 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29854   set -o posix
29855 fi
29856 DUALCASE=1; export DUALCASE # for MKS sh
29857
29858 # Support unset when possible.
29859 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29860   as_unset=unset
29861 else
29862   as_unset=false
29863 fi
29864
29865
29866 # Work around bugs in pre-3.0 UWIN ksh.
29867 $as_unset ENV MAIL MAILPATH
29868 PS1='$ '
29869 PS2='> '
29870 PS4='+ '
29871
29872 # NLS nuisances.
29873 for as_var in \
29874   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29875   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29876   LC_TELEPHONE LC_TIME
29877 do
29878   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29879     eval $as_var=C; export $as_var
29880   else
29881     $as_unset $as_var
29882   fi
29883 done
29884
29885 # Required to use basename.
29886 if expr a : '\(a\)' >/dev/null 2>&1; then
29887   as_expr=expr
29888 else
29889   as_expr=false
29890 fi
29891
29892 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29893   as_basename=basename
29894 else
29895   as_basename=false
29896 fi
29897
29898
29899 # Name of the executable.
29900 as_me=`$as_basename "$0" ||
29901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29902          X"$0" : 'X\(//\)$' \| \
29903          X"$0" : 'X\(/\)$' \| \
29904          .     : '\(.\)' 2>/dev/null ||
29905 echo X/"$0" |
29906     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29907           /^X\/\(\/\/\)$/{ s//\1/; q; }
29908           /^X\/\(\/\).*/{ s//\1/; q; }
29909           s/.*/./; q'`
29910
29911
29912 # PATH needs CR, and LINENO needs CR and PATH.
29913 # Avoid depending upon Character Ranges.
29914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29917 as_cr_digits='0123456789'
29918 as_cr_alnum=$as_cr_Letters$as_cr_digits
29919
29920 # The user is always right.
29921 if test "${PATH_SEPARATOR+set}" != set; then
29922   echo "#! /bin/sh" >conf$$.sh
29923   echo  "exit 0"   >>conf$$.sh
29924   chmod +x conf$$.sh
29925   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29926     PATH_SEPARATOR=';'
29927   else
29928     PATH_SEPARATOR=:
29929   fi
29930   rm -f conf$$.sh
29931 fi
29932
29933
29934   as_lineno_1=$LINENO
29935   as_lineno_2=$LINENO
29936   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29937   test "x$as_lineno_1" != "x$as_lineno_2" &&
29938   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29939   # Find who we are.  Look in the path if we contain no path at all
29940   # relative or not.
29941   case $0 in
29942     *[\\/]* ) as_myself=$0 ;;
29943     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29944 for as_dir in $PATH
29945 do
29946   IFS=$as_save_IFS
29947   test -z "$as_dir" && as_dir=.
29948   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29949 done
29950
29951        ;;
29952   esac
29953   # We did not find ourselves, most probably we were run as `sh COMMAND'
29954   # in which case we are not to be found in the path.
29955   if test "x$as_myself" = x; then
29956     as_myself=$0
29957   fi
29958   if test ! -f "$as_myself"; then
29959     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29960 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29961    { (exit 1); exit 1; }; }
29962   fi
29963   case $CONFIG_SHELL in
29964   '')
29965     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29966 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29967 do
29968   IFS=$as_save_IFS
29969   test -z "$as_dir" && as_dir=.
29970   for as_base in sh bash ksh sh5; do
29971          case $as_dir in
29972          /*)
29973            if ("$as_dir/$as_base" -c '
29974   as_lineno_1=$LINENO
29975   as_lineno_2=$LINENO
29976   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29977   test "x$as_lineno_1" != "x$as_lineno_2" &&
29978   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29979              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29980              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29981              CONFIG_SHELL=$as_dir/$as_base
29982              export CONFIG_SHELL
29983              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29984            fi;;
29985          esac
29986        done
29987 done
29988 ;;
29989   esac
29990
29991   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29992   # uniformly replaced by the line number.  The first 'sed' inserts a
29993   # line-number line before each line; the second 'sed' does the real
29994   # work.  The second script uses 'N' to pair each line-number line
29995   # with the numbered line, and appends trailing '-' during
29996   # substitution so that $LINENO is not a special case at line end.
29997   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29998   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29999   sed '=' <$as_myself |
30000     sed '
30001       N
30002       s,$,-,
30003       : loop
30004       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30005       t loop
30006       s,-$,,
30007       s,^['$as_cr_digits']*\n,,
30008     ' >$as_me.lineno &&
30009   chmod +x $as_me.lineno ||
30010     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30011 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30012    { (exit 1); exit 1; }; }
30013
30014   # Don't try to exec as it changes $[0], causing all sort of problems
30015   # (the dirname of $[0] is not the place where we might find the
30016   # original and so on.  Autoconf is especially sensible to this).
30017   . ./$as_me.lineno
30018   # Exit status is that of the last command.
30019   exit
30020 }
30021
30022
30023 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30024   *c*,-n*) ECHO_N= ECHO_C='
30025 ' ECHO_T='      ' ;;
30026   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30027   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30028 esac
30029
30030 if expr a : '\(a\)' >/dev/null 2>&1; then
30031   as_expr=expr
30032 else
30033   as_expr=false
30034 fi
30035
30036 rm -f conf$$ conf$$.exe conf$$.file
30037 echo >conf$$.file
30038 if ln -s conf$$.file conf$$ 2>/dev/null; then
30039   # We could just check for DJGPP; but this test a) works b) is more generic
30040   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30041   if test -f conf$$.exe; then
30042     # Don't use ln at all; we don't have any links
30043     as_ln_s='cp -p'
30044   else
30045     as_ln_s='ln -s'
30046   fi
30047 elif ln conf$$.file conf$$ 2>/dev/null; then
30048   as_ln_s=ln
30049 else
30050   as_ln_s='cp -p'
30051 fi
30052 rm -f conf$$ conf$$.exe conf$$.file
30053
30054 if mkdir -p . 2>/dev/null; then
30055   as_mkdir_p=:
30056 else
30057   test -d ./-p && rmdir ./-p
30058   as_mkdir_p=false
30059 fi
30060
30061 as_executable_p="test -f"
30062
30063 # Sed expression to map a string onto a valid CPP name.
30064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30065
30066 # Sed expression to map a string onto a valid variable name.
30067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30068
30069
30070 # IFS
30071 # We need space, tab and new line, in precisely that order.
30072 as_nl='
30073 '
30074 IFS="   $as_nl"
30075
30076 # CDPATH.
30077 $as_unset CDPATH
30078
30079 exec 6>&1
30080
30081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30082 # report actual input values of CONFIG_FILES etc. instead of their
30083 # values after options handling.  Logging --version etc. is OK.
30084 exec 5>>config.log
30085 {
30086   echo
30087   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30088 ## Running $as_me. ##
30089 _ASBOX
30090 } >&5
30091 cat >&5 <<_CSEOF
30092
30093 This file was extended by llvm $as_me 1.4, which was
30094 generated by GNU Autoconf 2.59.  Invocation command line was
30095
30096   CONFIG_FILES    = $CONFIG_FILES
30097   CONFIG_HEADERS  = $CONFIG_HEADERS
30098   CONFIG_LINKS    = $CONFIG_LINKS
30099   CONFIG_COMMANDS = $CONFIG_COMMANDS
30100   $ $0 $@
30101
30102 _CSEOF
30103 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30104 echo >&5
30105 _ACEOF
30106
30107 # Files that config.status was made for.
30108 if test -n "$ac_config_files"; then
30109   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30110 fi
30111
30112 if test -n "$ac_config_headers"; then
30113   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30114 fi
30115
30116 if test -n "$ac_config_links"; then
30117   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30118 fi
30119
30120 if test -n "$ac_config_commands"; then
30121   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30122 fi
30123
30124 cat >>$CONFIG_STATUS <<\_ACEOF
30125
30126 ac_cs_usage="\
30127 \`$as_me' instantiates files from templates according to the
30128 current configuration.
30129
30130 Usage: $0 [OPTIONS] [FILE]...
30131
30132   -h, --help       print this help, then exit
30133   -V, --version    print version number, then exit
30134   -q, --quiet      do not print progress messages
30135   -d, --debug      don't remove temporary files
30136       --recheck    update $as_me by reconfiguring in the same conditions
30137   --file=FILE[:TEMPLATE]
30138                    instantiate the configuration file FILE
30139   --header=FILE[:TEMPLATE]
30140                    instantiate the configuration header FILE
30141
30142 Configuration files:
30143 $config_files
30144
30145 Configuration headers:
30146 $config_headers
30147
30148 Configuration links:
30149 $config_links
30150
30151 Configuration commands:
30152 $config_commands
30153
30154 Report bugs to <bug-autoconf@gnu.org>."
30155 _ACEOF
30156
30157 cat >>$CONFIG_STATUS <<_ACEOF
30158 ac_cs_version="\\
30159 llvm config.status 1.4
30160 configured by $0, generated by GNU Autoconf 2.59,
30161   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30162
30163 Copyright (C) 2003 Free Software Foundation, Inc.
30164 This config.status script is free software; the Free Software Foundation
30165 gives unlimited permission to copy, distribute and modify it."
30166 srcdir=$srcdir
30167 INSTALL="$INSTALL"
30168 _ACEOF
30169
30170 cat >>$CONFIG_STATUS <<\_ACEOF
30171 # If no file are specified by the user, then we need to provide default
30172 # value.  By we need to know if files were specified by the user.
30173 ac_need_defaults=:
30174 while test $# != 0
30175 do
30176   case $1 in
30177   --*=*)
30178     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30179     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30180     ac_shift=:
30181     ;;
30182   -*)
30183     ac_option=$1
30184     ac_optarg=$2
30185     ac_shift=shift
30186     ;;
30187   *) # This is not an option, so the user has probably given explicit
30188      # arguments.
30189      ac_option=$1
30190      ac_need_defaults=false;;
30191   esac
30192
30193   case $ac_option in
30194   # Handling of the options.
30195 _ACEOF
30196 cat >>$CONFIG_STATUS <<\_ACEOF
30197   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30198     ac_cs_recheck=: ;;
30199   --version | --vers* | -V )
30200     echo "$ac_cs_version"; exit 0 ;;
30201   --he | --h)
30202     # Conflict between --help and --header
30203     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30204 Try \`$0 --help' for more information." >&5
30205 echo "$as_me: error: ambiguous option: $1
30206 Try \`$0 --help' for more information." >&2;}
30207    { (exit 1); exit 1; }; };;
30208   --help | --hel | -h )
30209     echo "$ac_cs_usage"; exit 0 ;;
30210   --debug | --d* | -d )
30211     debug=: ;;
30212   --file | --fil | --fi | --f )
30213     $ac_shift
30214     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30215     ac_need_defaults=false;;
30216   --header | --heade | --head | --hea )
30217     $ac_shift
30218     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30219     ac_need_defaults=false;;
30220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30221   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30222     ac_cs_silent=: ;;
30223
30224   # This is an error.
30225   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30226 Try \`$0 --help' for more information." >&5
30227 echo "$as_me: error: unrecognized option: $1
30228 Try \`$0 --help' for more information." >&2;}
30229    { (exit 1); exit 1; }; } ;;
30230
30231   *) ac_config_targets="$ac_config_targets $1" ;;
30232
30233   esac
30234   shift
30235 done
30236
30237 ac_configure_extra_args=
30238
30239 if $ac_cs_silent; then
30240   exec 6>/dev/null
30241   ac_configure_extra_args="$ac_configure_extra_args --silent"
30242 fi
30243
30244 _ACEOF
30245 cat >>$CONFIG_STATUS <<_ACEOF
30246 if \$ac_cs_recheck; then
30247   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30248   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30249 fi
30250
30251 _ACEOF
30252
30253 cat >>$CONFIG_STATUS <<_ACEOF
30254 #
30255 # INIT-COMMANDS section.
30256 #
30257
30258 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30259 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30260 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30261 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30262 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30263 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30264 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30265 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30266 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30267 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30268
30269 _ACEOF
30270
30271
30272
30273 cat >>$CONFIG_STATUS <<\_ACEOF
30274 for ac_config_target in $ac_config_targets
30275 do
30276   case "$ac_config_target" in
30277   # Handling of arguments.
30278   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30279   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30280   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30281   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30282   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30283   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30284   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30285   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30286   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30287   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30288   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30289   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30290   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30291   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30292   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30293   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30294   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30295   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30296   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30297   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30298   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30299   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30300   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30301   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30302 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30303    { (exit 1); exit 1; }; };;
30304   esac
30305 done
30306
30307 # If the user did not use the arguments to specify the items to instantiate,
30308 # then the envvar interface is used.  Set only those that are not.
30309 # We use the long form for the default assignment because of an extremely
30310 # bizarre bug on SunOS 4.1.3.
30311 if $ac_need_defaults; then
30312   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30313   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30314   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30315   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30316 fi
30317
30318 # Have a temporary directory for convenience.  Make it in the build tree
30319 # simply because there is no reason to put it here, and in addition,
30320 # creating and moving files from /tmp can sometimes cause problems.
30321 # Create a temporary directory, and hook for its removal unless debugging.
30322 $debug ||
30323 {
30324   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30325   trap '{ (exit 1); exit 1; }' 1 2 13 15
30326 }
30327
30328 # Create a (secure) tmp directory for tmp files.
30329
30330 {
30331   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30332   test -n "$tmp" && test -d "$tmp"
30333 }  ||
30334 {
30335   tmp=./confstat$$-$RANDOM
30336   (umask 077 && mkdir $tmp)
30337 } ||
30338 {
30339    echo "$me: cannot create a temporary directory in ." >&2
30340    { (exit 1); exit 1; }
30341 }
30342
30343 _ACEOF
30344
30345 cat >>$CONFIG_STATUS <<_ACEOF
30346
30347 #
30348 # CONFIG_FILES section.
30349 #
30350
30351 # No need to generate the scripts if there are no CONFIG_FILES.
30352 # This happens for instance when ./config.status config.h
30353 if test -n "\$CONFIG_FILES"; then
30354   # Protect against being on the right side of a sed subst in config.status.
30355   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30356    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30357 s,@SHELL@,$SHELL,;t t
30358 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30359 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30360 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30361 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30362 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30363 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30364 s,@exec_prefix@,$exec_prefix,;t t
30365 s,@prefix@,$prefix,;t t
30366 s,@program_transform_name@,$program_transform_name,;t t
30367 s,@bindir@,$bindir,;t t
30368 s,@sbindir@,$sbindir,;t t
30369 s,@libexecdir@,$libexecdir,;t t
30370 s,@datadir@,$datadir,;t t
30371 s,@sysconfdir@,$sysconfdir,;t t
30372 s,@sharedstatedir@,$sharedstatedir,;t t
30373 s,@localstatedir@,$localstatedir,;t t
30374 s,@libdir@,$libdir,;t t
30375 s,@includedir@,$includedir,;t t
30376 s,@oldincludedir@,$oldincludedir,;t t
30377 s,@infodir@,$infodir,;t t
30378 s,@mandir@,$mandir,;t t
30379 s,@build_alias@,$build_alias,;t t
30380 s,@host_alias@,$host_alias,;t t
30381 s,@target_alias@,$target_alias,;t t
30382 s,@DEFS@,$DEFS,;t t
30383 s,@ECHO_C@,$ECHO_C,;t t
30384 s,@ECHO_N@,$ECHO_N,;t t
30385 s,@ECHO_T@,$ECHO_T,;t t
30386 s,@LIBS@,$LIBS,;t t
30387 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30388 s,@subdirs@,$subdirs,;t t
30389 s,@build@,$build,;t t
30390 s,@build_cpu@,$build_cpu,;t t
30391 s,@build_vendor@,$build_vendor,;t t
30392 s,@build_os@,$build_os,;t t
30393 s,@host@,$host,;t t
30394 s,@host_cpu@,$host_cpu,;t t
30395 s,@host_vendor@,$host_vendor,;t t
30396 s,@host_os@,$host_os,;t t
30397 s,@target@,$target,;t t
30398 s,@target_cpu@,$target_cpu,;t t
30399 s,@target_vendor@,$target_vendor,;t t
30400 s,@target_os@,$target_os,;t t
30401 s,@OS@,$OS,;t t
30402 s,@ARCH@,$ARCH,;t t
30403 s,@ENDIAN@,$ENDIAN,;t t
30404 s,@CC@,$CC,;t t
30405 s,@CFLAGS@,$CFLAGS,;t t
30406 s,@LDFLAGS@,$LDFLAGS,;t t
30407 s,@CPPFLAGS@,$CPPFLAGS,;t t
30408 s,@ac_ct_CC@,$ac_ct_CC,;t t
30409 s,@EXEEXT@,$EXEEXT,;t t
30410 s,@OBJEXT@,$OBJEXT,;t t
30411 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30412 s,@JIT@,$JIT,;t t
30413 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30414 s,@CPP@,$CPP,;t t
30415 s,@CXX@,$CXX,;t t
30416 s,@CXXFLAGS@,$CXXFLAGS,;t t
30417 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30418 s,@LEX@,$LEX,;t t
30419 s,@LEXLIB@,$LEXLIB,;t t
30420 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30421 s,@FLEX@,$FLEX,;t t
30422 s,@YACC@,$YACC,;t t
30423 s,@BISON@,$BISON,;t t
30424 s,@ifGNUmake@,$ifGNUmake,;t t
30425 s,@LN_S@,$LN_S,;t t
30426 s,@CMP@,$CMP,;t t
30427 s,@CP@,$CP,;t t
30428 s,@DATE@,$DATE,;t t
30429 s,@FIND@,$FIND,;t t
30430 s,@GREP@,$GREP,;t t
30431 s,@LLVMGCC@,$LLVMGCC,;t t
30432 s,@LLVMGXX@,$LLVMGXX,;t t
30433 s,@MKDIR@,$MKDIR,;t t
30434 s,@MV@,$MV,;t t
30435 s,@PAX@,$PAX,;t t
30436 s,@RANLIB@,$RANLIB,;t t
30437 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30438 s,@RM@,$RM,;t t
30439 s,@SED@,$SED,;t t
30440 s,@TAR@,$TAR,;t t
30441 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30442 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30443 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30444 s,@BZIP2@,$BZIP2,;t t
30445 s,@DOT@,$DOT,;t t
30446 s,@DOXYGEN@,$DOXYGEN,;t t
30447 s,@ETAGS@,$ETAGS,;t t
30448 s,@GROFF@,$GROFF,;t t
30449 s,@GZIP@,$GZIP,;t t
30450 s,@POD2HTML@,$POD2HTML,;t t
30451 s,@POD2MAN@,$POD2MAN,;t t
30452 s,@RUNTEST@,$RUNTEST,;t t
30453 s,@TCLSH@,$TCLSH,;t t
30454 s,@ZIP@,$ZIP,;t t
30455 s,@EGREP@,$EGREP,;t t
30456 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30457 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30458 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30459 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30460 s,@LIBADD_DL@,$LIBADD_DL,;t t
30461 s,@ECHO@,$ECHO,;t t
30462 s,@AR@,$AR,;t t
30463 s,@ac_ct_AR@,$ac_ct_AR,;t t
30464 s,@STRIP@,$STRIP,;t t
30465 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30466 s,@CXXCPP@,$CXXCPP,;t t
30467 s,@F77@,$F77,;t t
30468 s,@FFLAGS@,$FFLAGS,;t t
30469 s,@ac_ct_F77@,$ac_ct_F77,;t t
30470 s,@LIBTOOL@,$LIBTOOL,;t t
30471 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30472 s,@ALLOCA@,$ALLOCA,;t t
30473 s,@MMAP_FILE@,$MMAP_FILE,;t t
30474 s,@LLVMCC1@,$LLVMCC1,;t t
30475 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30476 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30477 s,@SHLIBEXT@,$SHLIBEXT,;t t
30478 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30479 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30480 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30481 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30482 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30483 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30484 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30485 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30486 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30487 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30488 s,@LIBOBJS@,$LIBOBJS,;t t
30489 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30490 CEOF
30491
30492 _ACEOF
30493
30494   cat >>$CONFIG_STATUS <<\_ACEOF
30495   # Split the substitutions into bite-sized pieces for seds with
30496   # small command number limits, like on Digital OSF/1 and HP-UX.
30497   ac_max_sed_lines=48
30498   ac_sed_frag=1 # Number of current file.
30499   ac_beg=1 # First line for current file.
30500   ac_end=$ac_max_sed_lines # Line after last line for current file.
30501   ac_more_lines=:
30502   ac_sed_cmds=
30503   while $ac_more_lines; do
30504     if test $ac_beg -gt 1; then
30505       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30506     else
30507       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30508     fi
30509     if test ! -s $tmp/subs.frag; then
30510       ac_more_lines=false
30511     else
30512       # The purpose of the label and of the branching condition is to
30513       # speed up the sed processing (if there are no `@' at all, there
30514       # is no need to browse any of the substitutions).
30515       # These are the two extra sed commands mentioned above.
30516       (echo ':t
30517   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30518       if test -z "$ac_sed_cmds"; then
30519         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30520       else
30521         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30522       fi
30523       ac_sed_frag=`expr $ac_sed_frag + 1`
30524       ac_beg=$ac_end
30525       ac_end=`expr $ac_end + $ac_max_sed_lines`
30526     fi
30527   done
30528   if test -z "$ac_sed_cmds"; then
30529     ac_sed_cmds=cat
30530   fi
30531 fi # test -n "$CONFIG_FILES"
30532
30533 _ACEOF
30534 cat >>$CONFIG_STATUS <<\_ACEOF
30535 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30536   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30537   case $ac_file in
30538   - | *:- | *:-:* ) # input from stdin
30539         cat >$tmp/stdin
30540         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30541         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30542   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30543         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30544   * )   ac_file_in=$ac_file.in ;;
30545   esac
30546
30547   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30548   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30550          X"$ac_file" : 'X\(//\)[^/]' \| \
30551          X"$ac_file" : 'X\(//\)$' \| \
30552          X"$ac_file" : 'X\(/\)' \| \
30553          .     : '\(.\)' 2>/dev/null ||
30554 echo X"$ac_file" |
30555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30556           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30557           /^X\(\/\/\)$/{ s//\1/; q; }
30558           /^X\(\/\).*/{ s//\1/; q; }
30559           s/.*/./; q'`
30560   { if $as_mkdir_p; then
30561     mkdir -p "$ac_dir"
30562   else
30563     as_dir="$ac_dir"
30564     as_dirs=
30565     while test ! -d "$as_dir"; do
30566       as_dirs="$as_dir $as_dirs"
30567       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30569          X"$as_dir" : 'X\(//\)[^/]' \| \
30570          X"$as_dir" : 'X\(//\)$' \| \
30571          X"$as_dir" : 'X\(/\)' \| \
30572          .     : '\(.\)' 2>/dev/null ||
30573 echo X"$as_dir" |
30574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30576           /^X\(\/\/\)$/{ s//\1/; q; }
30577           /^X\(\/\).*/{ s//\1/; q; }
30578           s/.*/./; q'`
30579     done
30580     test ! -n "$as_dirs" || mkdir $as_dirs
30581   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30582 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30583    { (exit 1); exit 1; }; }; }
30584
30585   ac_builddir=.
30586
30587 if test "$ac_dir" != .; then
30588   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30589   # A "../" for each directory in $ac_dir_suffix.
30590   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30591 else
30592   ac_dir_suffix= ac_top_builddir=
30593 fi
30594
30595 case $srcdir in
30596   .)  # No --srcdir option.  We are building in place.
30597     ac_srcdir=.
30598     if test -z "$ac_top_builddir"; then
30599        ac_top_srcdir=.
30600     else
30601        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30602     fi ;;
30603   [\\/]* | ?:[\\/]* )  # Absolute path.
30604     ac_srcdir=$srcdir$ac_dir_suffix;
30605     ac_top_srcdir=$srcdir ;;
30606   *) # Relative path.
30607     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30608     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30609 esac
30610
30611 # Do not use `cd foo && pwd` to compute absolute paths, because
30612 # the directories may not exist.
30613 case `pwd` in
30614 .) ac_abs_builddir="$ac_dir";;
30615 *)
30616   case "$ac_dir" in
30617   .) ac_abs_builddir=`pwd`;;
30618   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30619   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30620   esac;;
30621 esac
30622 case $ac_abs_builddir in
30623 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30624 *)
30625   case ${ac_top_builddir}. in
30626   .) ac_abs_top_builddir=$ac_abs_builddir;;
30627   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30628   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30629   esac;;
30630 esac
30631 case $ac_abs_builddir in
30632 .) ac_abs_srcdir=$ac_srcdir;;
30633 *)
30634   case $ac_srcdir in
30635   .) ac_abs_srcdir=$ac_abs_builddir;;
30636   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30637   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30638   esac;;
30639 esac
30640 case $ac_abs_builddir in
30641 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30642 *)
30643   case $ac_top_srcdir in
30644   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30645   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30646   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30647   esac;;
30648 esac
30649
30650
30651   case $INSTALL in
30652   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30653   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30654   esac
30655
30656   if test x"$ac_file" != x-; then
30657     { echo "$as_me:$LINENO: creating $ac_file" >&5
30658 echo "$as_me: creating $ac_file" >&6;}
30659     rm -f "$ac_file"
30660   fi
30661   # Let's still pretend it is `configure' which instantiates (i.e., don't
30662   # use $as_me), people would be surprised to read:
30663   #    /* config.h.  Generated by config.status.  */
30664   if test x"$ac_file" = x-; then
30665     configure_input=
30666   else
30667     configure_input="$ac_file.  "
30668   fi
30669   configure_input=$configure_input"Generated from `echo $ac_file_in |
30670                                      sed 's,.*/,,'` by configure."
30671
30672   # First look for the input files in the build tree, otherwise in the
30673   # src tree.
30674   ac_file_inputs=`IFS=:
30675     for f in $ac_file_in; do
30676       case $f in
30677       -) echo $tmp/stdin ;;
30678       [\\/$]*)
30679          # Absolute (can't be DOS-style, as IFS=:)
30680          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30681 echo "$as_me: error: cannot find input file: $f" >&2;}
30682    { (exit 1); exit 1; }; }
30683          echo "$f";;
30684       *) # Relative
30685          if test -f "$f"; then
30686            # Build tree
30687            echo "$f"
30688          elif test -f "$srcdir/$f"; then
30689            # Source tree
30690            echo "$srcdir/$f"
30691          else
30692            # /dev/null tree
30693            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30694 echo "$as_me: error: cannot find input file: $f" >&2;}
30695    { (exit 1); exit 1; }; }
30696          fi;;
30697       esac
30698     done` || { (exit 1); exit 1; }
30699 _ACEOF
30700 cat >>$CONFIG_STATUS <<_ACEOF
30701   sed "$ac_vpsub
30702 $extrasub
30703 _ACEOF
30704 cat >>$CONFIG_STATUS <<\_ACEOF
30705 :t
30706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30707 s,@configure_input@,$configure_input,;t t
30708 s,@srcdir@,$ac_srcdir,;t t
30709 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30710 s,@top_srcdir@,$ac_top_srcdir,;t t
30711 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30712 s,@builddir@,$ac_builddir,;t t
30713 s,@abs_builddir@,$ac_abs_builddir,;t t
30714 s,@top_builddir@,$ac_top_builddir,;t t
30715 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30716 s,@INSTALL@,$ac_INSTALL,;t t
30717 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30718   rm -f $tmp/stdin
30719   if test x"$ac_file" != x-; then
30720     mv $tmp/out $ac_file
30721   else
30722     cat $tmp/out
30723     rm -f $tmp/out
30724   fi
30725
30726 done
30727 _ACEOF
30728 cat >>$CONFIG_STATUS <<\_ACEOF
30729
30730 #
30731 # CONFIG_HEADER section.
30732 #
30733
30734 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30735 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30736 #
30737 # ac_d sets the value in "#define NAME VALUE" lines.
30738 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30739 ac_dB='[         ].*$,\1#\2'
30740 ac_dC=' '
30741 ac_dD=',;t'
30742 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30743 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30744 ac_uB='$,\1#\2define\3'
30745 ac_uC=' '
30746 ac_uD=',;t'
30747
30748 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30749   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30750   case $ac_file in
30751   - | *:- | *:-:* ) # input from stdin
30752         cat >$tmp/stdin
30753         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30754         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30755   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30757   * )   ac_file_in=$ac_file.in ;;
30758   esac
30759
30760   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30761 echo "$as_me: creating $ac_file" >&6;}
30762
30763   # First look for the input files in the build tree, otherwise in the
30764   # src tree.
30765   ac_file_inputs=`IFS=:
30766     for f in $ac_file_in; do
30767       case $f in
30768       -) echo $tmp/stdin ;;
30769       [\\/$]*)
30770          # Absolute (can't be DOS-style, as IFS=:)
30771          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30772 echo "$as_me: error: cannot find input file: $f" >&2;}
30773    { (exit 1); exit 1; }; }
30774          # Do quote $f, to prevent DOS paths from being IFS'd.
30775          echo "$f";;
30776       *) # Relative
30777          if test -f "$f"; then
30778            # Build tree
30779            echo "$f"
30780          elif test -f "$srcdir/$f"; then
30781            # Source tree
30782            echo "$srcdir/$f"
30783          else
30784            # /dev/null tree
30785            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30786 echo "$as_me: error: cannot find input file: $f" >&2;}
30787    { (exit 1); exit 1; }; }
30788          fi;;
30789       esac
30790     done` || { (exit 1); exit 1; }
30791   # Remove the trailing spaces.
30792   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30793
30794 _ACEOF
30795
30796 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30797 # `conftest.undefs', that substitutes the proper values into
30798 # config.h.in to produce config.h.  The first handles `#define'
30799 # templates, and the second `#undef' templates.
30800 # And first: Protect against being on the right side of a sed subst in
30801 # config.status.  Protect against being in an unquoted here document
30802 # in config.status.
30803 rm -f conftest.defines conftest.undefs
30804 # Using a here document instead of a string reduces the quoting nightmare.
30805 # Putting comments in sed scripts is not portable.
30806 #
30807 # `end' is used to avoid that the second main sed command (meant for
30808 # 0-ary CPP macros) applies to n-ary macro definitions.
30809 # See the Autoconf documentation for `clear'.
30810 cat >confdef2sed.sed <<\_ACEOF
30811 s/[\\&,]/\\&/g
30812 s,[\\$`],\\&,g
30813 t clear
30814 : clear
30815 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30816 t end
30817 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30818 : end
30819 _ACEOF
30820 # If some macros were called several times there might be several times
30821 # the same #defines, which is useless.  Nevertheless, we may not want to
30822 # sort them, since we want the *last* AC-DEFINE to be honored.
30823 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30824 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30825 rm -f confdef2sed.sed
30826
30827 # This sed command replaces #undef with comments.  This is necessary, for
30828 # example, in the case of _POSIX_SOURCE, which is predefined and required
30829 # on some systems where configure will not decide to define it.
30830 cat >>conftest.undefs <<\_ACEOF
30831 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30832 _ACEOF
30833
30834 # Break up conftest.defines because some shells have a limit on the size
30835 # of here documents, and old seds have small limits too (100 cmds).
30836 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30837 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30838 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30839 echo '  :' >>$CONFIG_STATUS
30840 rm -f conftest.tail
30841 while grep . conftest.defines >/dev/null
30842 do
30843   # Write a limited-size here document to $tmp/defines.sed.
30844   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30845   # Speed up: don't consider the non `#define' lines.
30846   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30847   # Work around the forget-to-reset-the-flag bug.
30848   echo 't clr' >>$CONFIG_STATUS
30849   echo ': clr' >>$CONFIG_STATUS
30850   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30851   echo 'CEOF
30852   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30853   rm -f $tmp/in
30854   mv $tmp/out $tmp/in
30855 ' >>$CONFIG_STATUS
30856   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30857   rm -f conftest.defines
30858   mv conftest.tail conftest.defines
30859 done
30860 rm -f conftest.defines
30861 echo '  fi # grep' >>$CONFIG_STATUS
30862 echo >>$CONFIG_STATUS
30863
30864 # Break up conftest.undefs because some shells have a limit on the size
30865 # of here documents, and old seds have small limits too (100 cmds).
30866 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30867 rm -f conftest.tail
30868 while grep . conftest.undefs >/dev/null
30869 do
30870   # Write a limited-size here document to $tmp/undefs.sed.
30871   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30872   # Speed up: don't consider the non `#undef'
30873   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30874   # Work around the forget-to-reset-the-flag bug.
30875   echo 't clr' >>$CONFIG_STATUS
30876   echo ': clr' >>$CONFIG_STATUS
30877   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30878   echo 'CEOF
30879   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30880   rm -f $tmp/in
30881   mv $tmp/out $tmp/in
30882 ' >>$CONFIG_STATUS
30883   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30884   rm -f conftest.undefs
30885   mv conftest.tail conftest.undefs
30886 done
30887 rm -f conftest.undefs
30888
30889 cat >>$CONFIG_STATUS <<\_ACEOF
30890   # Let's still pretend it is `configure' which instantiates (i.e., don't
30891   # use $as_me), people would be surprised to read:
30892   #    /* config.h.  Generated by config.status.  */
30893   if test x"$ac_file" = x-; then
30894     echo "/* Generated by configure.  */" >$tmp/config.h
30895   else
30896     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30897   fi
30898   cat $tmp/in >>$tmp/config.h
30899   rm -f $tmp/in
30900   if test x"$ac_file" != x-; then
30901     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30902       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30903 echo "$as_me: $ac_file is unchanged" >&6;}
30904     else
30905       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30907          X"$ac_file" : 'X\(//\)[^/]' \| \
30908          X"$ac_file" : 'X\(//\)$' \| \
30909          X"$ac_file" : 'X\(/\)' \| \
30910          .     : '\(.\)' 2>/dev/null ||
30911 echo X"$ac_file" |
30912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30913           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30914           /^X\(\/\/\)$/{ s//\1/; q; }
30915           /^X\(\/\).*/{ s//\1/; q; }
30916           s/.*/./; q'`
30917       { if $as_mkdir_p; then
30918     mkdir -p "$ac_dir"
30919   else
30920     as_dir="$ac_dir"
30921     as_dirs=
30922     while test ! -d "$as_dir"; do
30923       as_dirs="$as_dir $as_dirs"
30924       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30926          X"$as_dir" : 'X\(//\)[^/]' \| \
30927          X"$as_dir" : 'X\(//\)$' \| \
30928          X"$as_dir" : 'X\(/\)' \| \
30929          .     : '\(.\)' 2>/dev/null ||
30930 echo X"$as_dir" |
30931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30933           /^X\(\/\/\)$/{ s//\1/; q; }
30934           /^X\(\/\).*/{ s//\1/; q; }
30935           s/.*/./; q'`
30936     done
30937     test ! -n "$as_dirs" || mkdir $as_dirs
30938   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30940    { (exit 1); exit 1; }; }; }
30941
30942       rm -f $ac_file
30943       mv $tmp/config.h $ac_file
30944     fi
30945   else
30946     cat $tmp/config.h
30947     rm -f $tmp/config.h
30948   fi
30949 done
30950 _ACEOF
30951 cat >>$CONFIG_STATUS <<\_ACEOF
30952
30953 #
30954 # CONFIG_LINKS section.
30955 #
30956
30957 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30958   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30959   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30960
30961   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30962 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30963
30964   if test ! -r $srcdir/$ac_source; then
30965     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30966 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30967    { (exit 1); exit 1; }; }
30968   fi
30969   rm -f $ac_dest
30970
30971   # Make relative symlinks.
30972   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30973 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30974          X"$ac_dest" : 'X\(//\)[^/]' \| \
30975          X"$ac_dest" : 'X\(//\)$' \| \
30976          X"$ac_dest" : 'X\(/\)' \| \
30977          .     : '\(.\)' 2>/dev/null ||
30978 echo X"$ac_dest" |
30979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30980           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30981           /^X\(\/\/\)$/{ s//\1/; q; }
30982           /^X\(\/\).*/{ s//\1/; q; }
30983           s/.*/./; q'`
30984   { if $as_mkdir_p; then
30985     mkdir -p "$ac_dest_dir"
30986   else
30987     as_dir="$ac_dest_dir"
30988     as_dirs=
30989     while test ! -d "$as_dir"; do
30990       as_dirs="$as_dir $as_dirs"
30991       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30993          X"$as_dir" : 'X\(//\)[^/]' \| \
30994          X"$as_dir" : 'X\(//\)$' \| \
30995          X"$as_dir" : 'X\(/\)' \| \
30996          .     : '\(.\)' 2>/dev/null ||
30997 echo X"$as_dir" |
30998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31000           /^X\(\/\/\)$/{ s//\1/; q; }
31001           /^X\(\/\).*/{ s//\1/; q; }
31002           s/.*/./; q'`
31003     done
31004     test ! -n "$as_dirs" || mkdir $as_dirs
31005   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31006 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31007    { (exit 1); exit 1; }; }; }
31008
31009   ac_builddir=.
31010
31011 if test "$ac_dest_dir" != .; then
31012   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31013   # A "../" for each directory in $ac_dir_suffix.
31014   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31015 else
31016   ac_dir_suffix= ac_top_builddir=
31017 fi
31018
31019 case $srcdir in
31020   .)  # No --srcdir option.  We are building in place.
31021     ac_srcdir=.
31022     if test -z "$ac_top_builddir"; then
31023        ac_top_srcdir=.
31024     else
31025        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31026     fi ;;
31027   [\\/]* | ?:[\\/]* )  # Absolute path.
31028     ac_srcdir=$srcdir$ac_dir_suffix;
31029     ac_top_srcdir=$srcdir ;;
31030   *) # Relative path.
31031     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31032     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31033 esac
31034
31035 # Do not use `cd foo && pwd` to compute absolute paths, because
31036 # the directories may not exist.
31037 case `pwd` in
31038 .) ac_abs_builddir="$ac_dest_dir";;
31039 *)
31040   case "$ac_dest_dir" in
31041   .) ac_abs_builddir=`pwd`;;
31042   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31043   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31044   esac;;
31045 esac
31046 case $ac_abs_builddir in
31047 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31048 *)
31049   case ${ac_top_builddir}. in
31050   .) ac_abs_top_builddir=$ac_abs_builddir;;
31051   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31052   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31053   esac;;
31054 esac
31055 case $ac_abs_builddir in
31056 .) ac_abs_srcdir=$ac_srcdir;;
31057 *)
31058   case $ac_srcdir in
31059   .) ac_abs_srcdir=$ac_abs_builddir;;
31060   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31061   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31062   esac;;
31063 esac
31064 case $ac_abs_builddir in
31065 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31066 *)
31067   case $ac_top_srcdir in
31068   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31069   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31070   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31071   esac;;
31072 esac
31073
31074
31075   case $srcdir in
31076   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31077       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31078   esac
31079
31080   # Try a symlink, then a hard link, then a copy.
31081   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31082     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31083     cp -p $srcdir/$ac_source $ac_dest ||
31084     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31085 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31086    { (exit 1); exit 1; }; }
31087 done
31088 _ACEOF
31089 cat >>$CONFIG_STATUS <<\_ACEOF
31090
31091 #
31092 # CONFIG_COMMANDS section.
31093 #
31094 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31095   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31096   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31097   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31098 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31099          X"$ac_dest" : 'X\(//\)[^/]' \| \
31100          X"$ac_dest" : 'X\(//\)$' \| \
31101          X"$ac_dest" : 'X\(/\)' \| \
31102          .     : '\(.\)' 2>/dev/null ||
31103 echo X"$ac_dest" |
31104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31106           /^X\(\/\/\)$/{ s//\1/; q; }
31107           /^X\(\/\).*/{ s//\1/; q; }
31108           s/.*/./; q'`
31109   { if $as_mkdir_p; then
31110     mkdir -p "$ac_dir"
31111   else
31112     as_dir="$ac_dir"
31113     as_dirs=
31114     while test ! -d "$as_dir"; do
31115       as_dirs="$as_dir $as_dirs"
31116       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31118          X"$as_dir" : 'X\(//\)[^/]' \| \
31119          X"$as_dir" : 'X\(//\)$' \| \
31120          X"$as_dir" : 'X\(/\)' \| \
31121          .     : '\(.\)' 2>/dev/null ||
31122 echo X"$as_dir" |
31123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31125           /^X\(\/\/\)$/{ s//\1/; q; }
31126           /^X\(\/\).*/{ s//\1/; q; }
31127           s/.*/./; q'`
31128     done
31129     test ! -n "$as_dirs" || mkdir $as_dirs
31130   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31132    { (exit 1); exit 1; }; }; }
31133
31134   ac_builddir=.
31135
31136 if test "$ac_dir" != .; then
31137   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31138   # A "../" for each directory in $ac_dir_suffix.
31139   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31140 else
31141   ac_dir_suffix= ac_top_builddir=
31142 fi
31143
31144 case $srcdir in
31145   .)  # No --srcdir option.  We are building in place.
31146     ac_srcdir=.
31147     if test -z "$ac_top_builddir"; then
31148        ac_top_srcdir=.
31149     else
31150        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31151     fi ;;
31152   [\\/]* | ?:[\\/]* )  # Absolute path.
31153     ac_srcdir=$srcdir$ac_dir_suffix;
31154     ac_top_srcdir=$srcdir ;;
31155   *) # Relative path.
31156     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31157     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31158 esac
31159
31160 # Do not use `cd foo && pwd` to compute absolute paths, because
31161 # the directories may not exist.
31162 case `pwd` in
31163 .) ac_abs_builddir="$ac_dir";;
31164 *)
31165   case "$ac_dir" in
31166   .) ac_abs_builddir=`pwd`;;
31167   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31168   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31169   esac;;
31170 esac
31171 case $ac_abs_builddir in
31172 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31173 *)
31174   case ${ac_top_builddir}. in
31175   .) ac_abs_top_builddir=$ac_abs_builddir;;
31176   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31177   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31178   esac;;
31179 esac
31180 case $ac_abs_builddir in
31181 .) ac_abs_srcdir=$ac_srcdir;;
31182 *)
31183   case $ac_srcdir in
31184   .) ac_abs_srcdir=$ac_abs_builddir;;
31185   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31186   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31187   esac;;
31188 esac
31189 case $ac_abs_builddir in
31190 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31191 *)
31192   case $ac_top_srcdir in
31193   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31194   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31195   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31196   esac;;
31197 esac
31198
31199
31200   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31201 echo "$as_me: executing $ac_dest commands" >&6;}
31202   case $ac_dest in
31203     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31204     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31205     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31206     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31207     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31208     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31209     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31210     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31211     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31212     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31213   esac
31214 done
31215 _ACEOF
31216
31217 cat >>$CONFIG_STATUS <<\_ACEOF
31218
31219 { (exit 0); exit 0; }
31220 _ACEOF
31221 chmod +x $CONFIG_STATUS
31222 ac_clean_files=$ac_clean_files_save
31223
31224
31225 # configure is writing to config.log, and then calls config.status.
31226 # config.status does its own redirection, appending to config.log.
31227 # Unfortunately, on DOS this fails, as config.log is still kept open
31228 # by configure, so config.status won't be able to write to it; its
31229 # output is simply discarded.  So we exec the FD to /dev/null,
31230 # effectively closing config.log, so it can be properly (re)opened and
31231 # appended to by config.status.  When coming back to configure, we
31232 # need to make the FD available again.
31233 if test "$no_create" != yes; then
31234   ac_cs_success=:
31235   ac_config_status_args=
31236   test "$silent" = yes &&
31237     ac_config_status_args="$ac_config_status_args --quiet"
31238   exec 5>/dev/null
31239   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31240   exec 5>>config.log
31241   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31242   # would make configure fail if this is the last instruction.
31243   $ac_cs_success || { (exit 1); exit 1; }
31244 fi
31245
31246 #
31247 # CONFIG_SUBDIRS section.
31248 #
31249 if test "$no_recursion" != yes; then
31250
31251   # Remove --cache-file and --srcdir arguments so they do not pile up.
31252   ac_sub_configure_args=
31253   ac_prev=
31254   for ac_arg in $ac_configure_args; do
31255     if test -n "$ac_prev"; then
31256       ac_prev=
31257       continue
31258     fi
31259     case $ac_arg in
31260     -cache-file | --cache-file | --cache-fil | --cache-fi \
31261     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31262       ac_prev=cache_file ;;
31263     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31264     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31265     | --c=*)
31266       ;;
31267     --config-cache | -C)
31268       ;;
31269     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31270       ac_prev=srcdir ;;
31271     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31272       ;;
31273     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31274       ac_prev=prefix ;;
31275     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31276       ;;
31277     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31278     esac
31279   done
31280
31281   # Always prepend --prefix to ensure using the same prefix
31282   # in subdir configurations.
31283   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31284
31285   ac_popdir=`pwd`
31286   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31287
31288     # Do not complain, so a configure script can configure whichever
31289     # parts of a large source tree are present.
31290     test -d $srcdir/$ac_dir || continue
31291
31292     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31293 echo "$as_me: configuring in $ac_dir" >&6;}
31294     { if $as_mkdir_p; then
31295     mkdir -p "$ac_dir"
31296   else
31297     as_dir="$ac_dir"
31298     as_dirs=
31299     while test ! -d "$as_dir"; do
31300       as_dirs="$as_dir $as_dirs"
31301       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31303          X"$as_dir" : 'X\(//\)[^/]' \| \
31304          X"$as_dir" : 'X\(//\)$' \| \
31305          X"$as_dir" : 'X\(/\)' \| \
31306          .     : '\(.\)' 2>/dev/null ||
31307 echo X"$as_dir" |
31308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31309           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31310           /^X\(\/\/\)$/{ s//\1/; q; }
31311           /^X\(\/\).*/{ s//\1/; q; }
31312           s/.*/./; q'`
31313     done
31314     test ! -n "$as_dirs" || mkdir $as_dirs
31315   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31317    { (exit 1); exit 1; }; }; }
31318
31319     ac_builddir=.
31320
31321 if test "$ac_dir" != .; then
31322   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31323   # A "../" for each directory in $ac_dir_suffix.
31324   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31325 else
31326   ac_dir_suffix= ac_top_builddir=
31327 fi
31328
31329 case $srcdir in
31330   .)  # No --srcdir option.  We are building in place.
31331     ac_srcdir=.
31332     if test -z "$ac_top_builddir"; then
31333        ac_top_srcdir=.
31334     else
31335        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31336     fi ;;
31337   [\\/]* | ?:[\\/]* )  # Absolute path.
31338     ac_srcdir=$srcdir$ac_dir_suffix;
31339     ac_top_srcdir=$srcdir ;;
31340   *) # Relative path.
31341     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31342     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31343 esac
31344
31345 # Do not use `cd foo && pwd` to compute absolute paths, because
31346 # the directories may not exist.
31347 case `pwd` in
31348 .) ac_abs_builddir="$ac_dir";;
31349 *)
31350   case "$ac_dir" in
31351   .) ac_abs_builddir=`pwd`;;
31352   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31353   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31354   esac;;
31355 esac
31356 case $ac_abs_builddir in
31357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31358 *)
31359   case ${ac_top_builddir}. in
31360   .) ac_abs_top_builddir=$ac_abs_builddir;;
31361   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31362   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31363   esac;;
31364 esac
31365 case $ac_abs_builddir in
31366 .) ac_abs_srcdir=$ac_srcdir;;
31367 *)
31368   case $ac_srcdir in
31369   .) ac_abs_srcdir=$ac_abs_builddir;;
31370   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31371   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31372   esac;;
31373 esac
31374 case $ac_abs_builddir in
31375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31376 *)
31377   case $ac_top_srcdir in
31378   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31379   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31380   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31381   esac;;
31382 esac
31383
31384
31385     cd $ac_dir
31386
31387     # Check for guested configure; otherwise get Cygnus style configure.
31388     if test -f $ac_srcdir/configure.gnu; then
31389       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31390     elif test -f $ac_srcdir/configure; then
31391       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31392     elif test -f $ac_srcdir/configure.in; then
31393       ac_sub_configure=$ac_configure
31394     else
31395       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31396 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31397       ac_sub_configure=
31398     fi
31399
31400     # The recursion is here.
31401     if test -n "$ac_sub_configure"; then
31402       # Make the cache file name correct relative to the subdirectory.
31403       case $cache_file in
31404       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31405       *) # Relative path.
31406         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31407       esac
31408
31409       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31410 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31411       # The eval makes quoting arguments work.
31412       eval $ac_sub_configure $ac_sub_configure_args \
31413            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31414         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31415 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31416    { (exit 1); exit 1; }; }
31417     fi
31418
31419     cd $ac_popdir
31420   done
31421 fi
31422
31423
31424 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31425  { echo "$as_me:$LINENO: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&5
31426 echo "$as_me: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&2;}
31427  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31428 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31429  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31430 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31431  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31432 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31433  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31434 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31435 fi